Mini Kabibi Habibi

Current Path : C:/Program Files/Adobe/Adobe Creative Cloud/Components/CCLibs/resources/designLibraries/
Upload File :
Current File : C:/Program Files/Adobe/Adobe Creative Cloud/Components/CCLibs/resources/designLibraries/main.js

/*! For license information please see main.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CCLibraries=t():e.CCLibraries=t()}(self,(()=>(()=>{var __webpack_modules__={13050:(e,t,r)=>{var n={"./ACCC/css/darker/main.scss":[60853,3326],"./ACCC/css/light/main.scss":[10417,5180],"./AEFT/css/dark-v7/main.scss":[14957,7725],"./AEFT/css/dark/main.scss":[63853,5599],"./AEFT/css/darker/main.scss":[39542,4231],"./AEFT/css/generated/10/main.scss":[55562,2923],"./AEFT/css/generated/13/main.scss":[86752,7050],"./AEFT/css/generated/15/main.scss":[28682,59],"./AEFT/css/generated/18/main.scss":[84447,4356],"./AEFT/css/generated/20/main.scss":[52234,7334],"./AEFT/css/generated/23/main.scss":[5426,4882],"./AEFT/css/generated/25/main.scss":[55166,2625],"./AEFT/css/generated/28/main.scss":[20605,4738],"./AEFT/css/generated/3/main.scss":[19521,1813],"./AEFT/css/generated/30/main.scss":[77768,2497],"./AEFT/css/generated/33/main.scss":[66726,9988],"./AEFT/css/generated/35/main.scss":[54003,5874],"./AEFT/css/generated/38/main.scss":[89138,2581],"./AEFT/css/generated/40/main.scss":[4175,9369],"./AEFT/css/generated/43/main.scss":[119,539],"./AEFT/css/generated/45/main.scss":[89547,2716],"./AEFT/css/generated/48/main.scss":[19533,2e3],"./AEFT/css/generated/5/main.scss":[58861,622],"./AEFT/css/generated/50/main.scss":[64636,3368],"./AEFT/css/generated/53/main.scss":[58777,3239],"./AEFT/css/generated/55/main.scss":[94320,4549],"./AEFT/css/generated/58/main.scss":[60616,2399],"./AEFT/css/generated/60/main.scss":[59641,1766],"./AEFT/css/generated/63/main.scss":[94289,2124],"./AEFT/css/generated/65/main.scss":[20572,7057],"./AEFT/css/generated/68/main.scss":[95789,9107],"./AEFT/css/generated/70/main.scss":[60584,8211],"./AEFT/css/generated/73/main.scss":[42286,5408],"./AEFT/css/generated/75/main.scss":[18031,6900],"./AEFT/css/generated/78/main.scss":[10967,3482],"./AEFT/css/generated/8/main.scss":[45338,3681],"./AEFT/css/generated/80/main.scss":[35890,810],"./AEFT/css/generated/83/main.scss":[28257,1441],"./AEFT/css/generated/85/main.scss":[5489,5108],"./AEFT/css/generated/88/main.scss":[1049,4589],"./AEFT/css/generated/90/main.scss":[85464,8237],"./AEFT/css/generated/93/main.scss":[3244,3703],"./AEFT/css/generated/95/main.scss":[39898,2861],"./AEFT/css/generated/98/main.scss":[99284,2012],"./AEFT/css/light/main.scss":[49306,2880],"./AH/css/darker/main.scss":[58365,9690],"./AH/css/light/main.scss":[10210,9910],"./CLIO/css/dark/main.scss":[60834,9011],"./CLIO/css/darker/main.scss":[1225,3113],"./CLIO/css/light/main.scss":[46405,608],"./CLIO/css/lighter/main.scss":[14559,8797],"./DRWV/css/dark/main.scss":[64140,4671],"./DRWV/css/darker/main.scss":[7774,1890],"./DRWV/css/light/main.scss":[57720,1839],"./DRWV/css/lighter/main.scss":[7410,3633],"./FLPR/css/dark/main.scss":[82370,5169],"./FLPR/css/lighter/main.scss":[9453,8320],"./Figma/css/dark/main.scss":[31213,5812],"./Figma/css/lighter/main.scss":[43546,5897],"./GenStudio/css/lighter/main.scss":[2492,7938],"./GoogleSlides/css/lighter/main.scss":[12410,5895],"./IDSN/css/dark/main.scss":[52741,4923],"./IDSN/css/darker/main.scss":[98913,4668],"./IDSN/css/light/main.scss":[61800,406],"./IDSN/css/lighter/main.scss":[4391,1573],"./ILST/css/dark/main.scss":[11182,7254],"./ILST/css/darker/main.scss":[38946,7776],"./ILST/css/light/main.scss":[40124,4029],"./ILST/css/lighter/main.scss":[11602,5548],"./ILST_UXP/css/dark/main.scss":[56675,4031],"./ILST_UXP/css/darker/main.scss":[40986,6030],"./ILST_UXP/css/light/main.scss":[62122,5019],"./ILST_UXP/css/lighter/main.scss":[51161,3240],"./KBRG/css/dark/main.scss":[70617,2777],"./KBRG/css/dark_mondo/main.scss":[2847,6465],"./KBRG/css/darker/main.scss":[19927,1672],"./KBRG/css/light_mondo/main.scss":[31506,6589],"./KBRG/css/lighter/main.scss":[32830,4192],"./KBRG/css/lighter_mondo/main.scss":[2882,5341],"./PHXS/css/dark/main.scss":[73247,5661],"./PHXS/css/darker/main.scss":[15868,1583],"./PHXS/css/light/main.scss":[71482,3775],"./PHXS/css/lighter/main.scss":[77116,7128],"./PHXS_UXP/css/dark/main.scss":[50184,4959],"./PHXS_UXP/css/darker/main.scss":[27402,9297],"./PHXS_UXP/css/light/main.scss":[76466,2663],"./PHXS_UXP/css/lighter/main.scss":[4024,8362],"./PPRO/css/dark-v7/main.scss":[21630,8499],"./PPRO/css/dark/main.scss":[653,2397],"./PPRO/css/darker/main.scss":[55260,9623],"./PPRO/css/generated/10/main.scss":[3433,6289],"./PPRO/css/generated/13/main.scss":[55338,4450],"./PPRO/css/generated/15/main.scss":[16115,1311],"./PPRO/css/generated/18/main.scss":[64806,6321],"./PPRO/css/generated/20/main.scss":[38419,3769],"./PPRO/css/generated/23/main.scss":[43106,583],"./PPRO/css/generated/25/main.scss":[45842,2002],"./PPRO/css/generated/28/main.scss":[82622,6284],"./PPRO/css/generated/3/main.scss":[74593,2472],"./PPRO/css/generated/30/main.scss":[20472,9776],"./PPRO/css/generated/33/main.scss":[96565,2369],"./PPRO/css/generated/35/main.scss":[2473,1952],"./PPRO/css/generated/38/main.scss":[87917,3659],"./PPRO/css/generated/40/main.scss":[62666,3878],"./PPRO/css/generated/43/main.scss":[74659,7136],"./PPRO/css/generated/45/main.scss":[10432,1341],"./PPRO/css/generated/48/main.scss":[55717,3945],"./PPRO/css/generated/5/main.scss":[82547,6552],"./PPRO/css/generated/50/main.scss":[64440,532],"./PPRO/css/generated/53/main.scss":[33548,437],"./PPRO/css/generated/55/main.scss":[90934,1016],"./PPRO/css/generated/58/main.scss":[21011,3241],"./PPRO/css/generated/60/main.scss":[81126,2984],"./PPRO/css/generated/63/main.scss":[35169,2131],"./PPRO/css/generated/65/main.scss":[31667,8740],"./PPRO/css/generated/68/main.scss":[83023,4135],"./PPRO/css/generated/70/main.scss":[98559,2194],"./PPRO/css/generated/73/main.scss":[44761,2216],"./PPRO/css/generated/75/main.scss":[97220,4665],"./PPRO/css/generated/78/main.scss":[54043,6488],"./PPRO/css/generated/8/main.scss":[96661,2425],"./PPRO/css/generated/80/main.scss":[34250,9754],"./PPRO/css/generated/83/main.scss":[8393,2269],"./PPRO/css/generated/85/main.scss":[79787,7326],"./PPRO/css/generated/88/main.scss":[35124,7423],"./PPRO/css/generated/90/main.scss":[10818,8843],"./PPRO/css/generated/93/main.scss":[97103,6776],"./PPRO/css/generated/95/main.scss":[19058,8544],"./PPRO/css/generated/98/main.scss":[73054,926],"./PPRO/css/light/main.scss":[19794,3019],"./PowerPoint/css/darker/main.scss":[85169,3869],"./PowerPoint/css/lighter/main.scss":[47932,1071],"./SPRK/css/lighter/main.scss":[82235,7933],"./STGR/css/darker/main.scss":[41503,1331],"./STGR/css/lighter/main.scss":[79921,4386],"./StyleGuide/css/lighter/main.scss":[91497,1465],"./Word/css/darker/main.scss":[37075,9729],"./Word/css/lighter/main.scss":[48056,4214]};function i(e){if(!r.o(n,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],i=t[0];return r.e(t[1]).then((()=>r.t(i,19)))}i.keys=()=>Object.keys(n),i.id=13050,e.exports=i},42649:(e,t,r)=>{var n={"./DropToUploadIllustration.svg":33976,"./File.svg":26871,"./GreenCircleCheckmark.svg":22479,"./cover1.svg":34045,"./cover10.svg":55756,"./cover11.svg":50999,"./cover12.svg":95512,"./cover13.svg":93605,"./cover14.svg":86304,"./cover15.svg":89201,"./cover16.svg":63587,"./cover17.svg":82659,"./cover18.svg":89133,"./cover19.svg":41226,"./cover2.svg":7627,"./cover20.svg":48527,"./cover3.svg":91564,"./cover4.svg":39937,"./cover5.svg":68591,"./cover6.svg":85836,"./cover7.svg":17456,"./cover8.svg":87298,"./cover9.svg":83993};function i(e){var t=o(e);return r(t)}function o(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=o,e.exports=i,i.id=42649},90305:(e,t,r)=>{var n={"./aac_filetype_256.svg":19824,"./aac_filetype_64.svg":63045,"./aif_filetype_256.svg":59466,"./aif_filetype_64.svg":11612,"./aiff_filetype_256.svg":23546,"./aiff_filetype_64.svg":13206,"./m4a_filetype_256.svg":157,"./m4a_filetype_64.svg":32224,"./mp2_filetype_256.svg":27129,"./mp2_filetype_64.svg":8823,"./mp3_filetype_256.svg":60501,"./mp3_filetype_64.svg":88050,"./mpga_filetype_64.svg":44255,"./wav_filetype_256.svg":48775,"./wav_filetype_64.svg":91546};function i(e){var t=o(e);return r(t)}function o(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=o,e.exports=i,i.id=90305},50238:(e,t,r)=>{var n={"./dn_filetype_1024.svg":10565,"./exr_filetype_1024.svg":92576,"./fbx_filetype_1024.svg":76064,"./glb_filetype_1024.svg":51760,"./gltf_filetype_1024.svg":61161,"./hdr_filetype_1024.svg":88762,"./ibl_filetype_1024.svg":51235,"./mdl_filetype_1024.svg":49363,"./obj_filetype_1024.svg":26361,"./sbsar_filetype_1024.svg":82911,"./usdz_filetype_1024.svg":95496};function i(e){var t=o(e);return r(t)}function o(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=o,e.exports=i,i.id=50238},5515:(e,t,r)=>{var n={"./AH404Error.svg":28069,"./AHNoElements.svg":570,"./ActivateFonts.svg":35213,"./ActivateFontsSpinner.svg":11867,"./Add.svg":65403,"./Add12.svg":49331,"./Add14.svg":1963,"./AddAnimation.svg":6791,"./AddBrush.svg":15406,"./AddCCLibrary.svg":37461,"./AddCharacterStyle.svg":69035,"./AddCircle.svg":92846,"./AddCircleOutline.svg":28506,"./AddComponent.svg":70793,"./AddCopy.svg":18434,"./AddDropdown.svg":33433,"./AddGroup.svg":4931,"./AddImage.svg":9981,"./AddLayerStyle.svg":752,"./AddLink.svg":29451,"./AddLook.svg":64978,"./AddModel.svg":99743,"./AddParagraphStyle.svg":52576,"./AddPattern.svg":33610,"./AddStock.svg":30571,"./AddText.svg":1360,"./AdobeFonts.svg":62344,"./Alert.svg":20568,"./AlertOutline.svg":32903,"./AllFilterIcon.svg":95852,"./ArrowDown.svg":42964,"./ArrowUp.svg":78027,"./AssetBrokenElement.svg":31651,"./AssetBrokenLink.svg":29179,"./AssetLinked.svg":54104,"./AssetRestricted.svg":27481,"./AssetUpdate.svg":70474,"./AssetUploading.svg":49864,"./Back.svg":61659,"./BackArrow.svg":46787,"./Browse.svg":48907,"./BrowseTeamLibrary.svg":58389,"./Building.svg":67012,"./CCLibrary.svg":56586,"./CCLibrary16.svg":19161,"./CCLibraryLocked.svg":6598,"./CCXCreateBrandPlus.svg":99910,"./CCXCreateColor.svg":33666,"./CCXCreateFont.svg":69177,"./CCXCreateImage.svg":23130,"./CCXCreateLogo.svg":13558,"./CCXCreateTemplate.svg":21425,"./Capture.svg":21105,"./ChangeCloud.svg":46922,"./Checkmark.svg":48567,"./CheckmarkCircle.svg":31719,"./CheckmarkRounded.svg":42625,"./ChevronDownMedium.svg":49386,"./ChevronDownSmall.svg":73453,"./ChevronLeftMedium.svg":78714,"./ChevronLeftSmall.svg":20776,"./ChevronRightMedium.svg":506,"./ChevronRightSmall.svg":75797,"./Clock.svg":9126,"./Close.svg":80351,"./Cloud.svg":7007,"./ColorPalette.svg":9848,"./Copy.svg":27327,"./CreateATeamLibrary.svg":40880,"./CreateColor.svg":26222,"./CreateColortheme.svg":94275,"./CreateFont.svg":33949,"./CreateImage.svg":14484,"./CreateLogo.svg":62159,"./CreateTemplate.svg":453,"./CreativeCloud.svg":58823,"./CreativeCloudAlert.svg":242,"./CreativeCloudError.svg":46690,"./Date.svg":13068,"./Delete.svg":97991,"./DiscoverLibraries.svg":86346,"./DocumentAssets.svg":94878,"./DownArrow.svg":64172,"./DownloadFromCloud.svg":55158,"./Duplicate.svg":64851,"./Edit.svg":51371,"./EmptyLibrary.svg":23087,"./EmptyLibrary1.svg":838,"./EmptyLibrary2.svg":42699,"./EmptyLibrary3.svg":4471,"./Error.svg":41791,"./Eyedropper.svg":11551,"./Filter.svg":22370,"./Filter16.svg":74989,"./FilterApplied.svg":85394,"./FilterNotification16.svg":93038,"./FilterWarning.svg":22209,"./Flag.svg":82261,"./Folder.svg":81764,"./FolderOpen.svg":48538,"./Globe.svg":29575,"./GlobeSearch.svg":8332,"./GridView.svg":97365,"./Group.svg":73344,"./HelpOutline.svg":51546,"./IlluAccessAssetsEverywhere.svg":28902,"./Image.svg":86109,"./Info.svg":16825,"./InfoOutline.svg":32548,"./InfoS2.svg":56533,"./Invite.svg":83383,"./Leave.svg":86080,"./LibraryAccess.svg":34533,"./Link.svg":30998,"./LinkedDocumentLibrary_CanEdit.svg":4005,"./LinkedDocumentLibrary_CanView.svg":56016,"./LinkedLibrary.svg":61439,"./ListView.svg":46089,"./Lock.svg":29932,"./LockMenu.svg":14904,"./LockPopup.svg":72836,"./Logos.svg":98618,"./Magnify.svg":87584,"./MissingFontWarning.svg":24861,"./More.svg":17296,"./Move.svg":4006,"./NamingOrder.svg":21296,"./Next.svg":61419,"./NoSearchResults.svg":68857,"./Note.svg":29974,"./OnboardingCCLibrary.svg":99576,"./OpenIn.svg":36652,"./Organisations.svg":1704,"./PathView.svg":9801,"./PlaceOnCanvas.svg":11537,"./Plus.svg":41464,"./PlusDrag.svg":42110,"./Projects.svg":54721,"./PublishRemove.svg":53225,"./Question.svg":17529,"./ReadOnly.svg":83742,"./Rename.svg":91355,"./ReuseUpdateAssets.svg":36346,"./S2_Icon_Copy_20_N.svg":7639,"./SX_Buildings.svg":39895,"./SX_Close.svg":83841,"./SX_Delete.svg":66529,"./SX_Download.svg":80862,"./SX_Duplicate.svg":89030,"./SX_Edit.svg":93567,"./SX_Filter.svg":9997,"./SX_Flag.svg":3367,"./SX_GlobeGrid.svg":61383,"./SX_Invite.svg":58530,"./SX_Leave.svg":78295,"./SX_Logo.svg":54381,"./SX_PublishRemove.svg":75151,"./SX_Search.svg":16314,"./SX_SortOrderDown.svg":77729,"./SX_SortOrderUp.svg":60791,"./SX_User.svg":21549,"./SX_UserGroup.svg":60569,"./S_MoveTo_18_N.svg":7280,"./Settings.svg":4465,"./ShareAssets.svg":26246,"./Shop.svg":62458,"./ShoppingCart.svg":57325,"./ShowMenu.svg":73557,"./Sort.svg":2548,"./SortDescending.svg":93065,"./StockLicensedBadge.svg":87295,"./Subscribed.svg":45071,"./SyncAlert.svg":29184,"./SyncDefault.svg":32797,"./SyncError.svg":47403,"./Syncing.svg":69543,"./SyncingSpinner.svg":8404,"./TraditionalLibrary_CanEdit.svg":73671,"./TraditionalLibrary_CanView.svg":88998,"./TreeView.svg":57067,"./UploadDocAssets.svg":23687,"./UploadImage.svg":88864,"./UseAsBrand.svg":7317,"./UseAsLibrary.svg":52449,"./User.svg":39100,"./UserGroup.svg":33380,"./UserGroupOutline.svg":4046,"./VerifyContentAuthenticity.svg":95861,"./Visibility.svg":7237,"./XDFile.svg":71001};function i(e){var t=o(e);return r(t)}function o(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=o,e.exports=i,i.id=5515},77123:(e,t,r)=>{("undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"cc-libraries-panel@4.11.88"}},44054:(e,t,r)=>{"use strict";r.d(t,{R:()=>C});var n=r(70678),i=r(55725),o=r(20512),a=r(23155),s=r(94143),c=r(32962),l=r(18476);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var h=r(26487),f=r(31209),m=r(52059),g=r(58950);function v(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=y(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function y(e,t){if(e){if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x(e){return void 0===e.type}function L(e){return"transaction"===e.type}var O=r(29412),S=r(49230),T=r(12856),P=r(7521),I=r(57602),A=r(10710);class C extends class{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn&&(this._dsn=(0,n.vK)(e.dsn)),this._dsn){const t=(0,l.U)(this._dsn,e);this._transport=e.transport(E(E({recordDroppedEvent:this.recordDroppedEvent.bind(this)},e.transportOptions),{},{url:t}))}}captureException(e,t,r){if((0,i.YO)(e))return;let n=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,r))).then((e=>{n=e}))),n}captureMessage(e,t,r,n){let i=r&&r.event_id;const a=(0,o.pt)(e)?this.eventFromMessage(String(e),t,r):this.eventFromException(e,r);return this._process(a.then((e=>this._captureEvent(e,r,n))).then((e=>{i=e}))),i}captureEvent(e,t,r){if(t&&t.originalException&&(0,i.YO)(t.originalException))return;let n=t&&t.event_id;return this._process(this._captureEvent(e,t,r).then((e=>{n=e}))),n}captureSession(e){"string"!=typeof e.release||(this.sendSession(e),(0,f.CT)(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?this._isClientDoneProcessing(e).then((r=>t.flush(e).then((e=>r&&e)))):(0,a.WD)(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&(this._integrations=(0,h.q4)(this,this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(e){return null}}addIntegration(e){(0,h.m7)(this,e,this._integrations)}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=function(e,t,r,n){const i=(0,s.HY)(r),o=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,r&&r.sdk);const a=(0,s.Cd)(e,i,n,t);delete e.sdkProcessingMetadata;const c=[{type:o},e];return(0,s.Jd)(a,[c])}(e,this._dsn,this._options._metadata,this._options.tunnel);var n,i=v(t.attachments||[]);try{for(i.s();!(n=i.n()).done;){const e=n.value;r=(0,s.BO)(r,(0,s.zQ)(e,this._options.transportOptions&&this._options.transportOptions.textEncoder))}}catch(e){i.e(e)}finally{i.f()}const o=this._sendEnvelope(r);o&&o.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,r,i){const o=(0,s.HY)(r),a=d(d({sent_at:(new Date).toISOString()},o&&{sdk:o}),!!i&&t&&{dsn:(0,n.RA)(t)}),c="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,s.Jd)(a,[c])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,r){if(this._options.sendClientReports){const r=`${e}:${t}`;this._outcomes[r]=this._outcomes[r]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_updateSessionFromEvent(e,t){let r=!1,n=!1;const i=t.exception&&t.exception.values;if(i){n=!0;var o,a=v(i);try{for(a.s();!(o=a.n()).done;){const e=o.value.mechanism;if(e&&!1===e.handled){r=!0;break}}}catch(e){a.e(e)}finally{a.f()}}const s="ok"===e.status;(s&&0===e.errors||s&&r)&&((0,f.CT)(e,E(E({},r&&{status:"crashed"}),{},{errors:e.errors||Number(n||r)})),this.captureSession(e))}_isClientDoneProcessing(e){return new a.cW((t=>{let r=0;const n=setInterval((()=>{0==this._numProcessing?(clearInterval(n),t(!0)):(r+=1,e&&r>=e&&(clearInterval(n),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r){const n=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),(0,g.R)(n,e,t,r,this).then((e=>{if(null===e)return e;const t=(e.sdkProcessingMetadata||{}).propagationContext;if((!e.contexts||!e.contexts.trace)&&t){const n=t.traceId,i=t.spanId,o=t.parentSpanId,a=t.dsc;e.contexts=E({trace:{trace_id:n,span_id:i,parent_span_id:o}},e.contexts);const s=a||(0,m._)(n,this,r);e.sdkProcessingMetadata=E({dynamicSamplingContext:s},e.sdkProcessingMetadata)}return e}))}_captureEvent(e,t={},r){return this._processEvent(e,t,r).then((e=>e.event_id),(e=>{}))}_processEvent(e,t,r){const n=this.getOptions(),i=n.sampleRate,s=L(e),l=x(e),u=e.type||"error",d=`before send for type \`${u}\``;if(l&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),(0,a.$2)(new c.b(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const p="replay_event"===u?"replay":u;return this._prepareEvent(e,t,r).then((r=>{if(null===r)throw this.recordDroppedEvent("event_processor",p,e),new c.b("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return r;const i=function(e,t,r){const n=e.beforeSend,i=e.beforeSendTransaction;return x(t)&&n?n(t,r):L(t)&&i?i(t,r):t}(n,r,t);return function(e,t){const r=`${t} must return \`null\` or a valid event.`;if((0,o.J8)(e))return e.then((e=>{if(!(0,o.PO)(e)&&null!==e)throw new c.b(r);return e}),(e=>{throw new c.b(`${t} rejected with ${e}`)}));if(!(0,o.PO)(e)&&null!==e)throw new c.b(r);return e}(i,d)})).then((n=>{if(null===n)throw this.recordDroppedEvent("before_send",p,e),new c.b(`${d} returned \`null\`, will not send event.`,"log");const i=r&&r.getSession();!s&&i&&this._updateSessionFromEvent(i,n);const o=n.transaction_info;if(s&&o&&n.transaction!==e.transaction){const e="custom";n.transaction_info=E(E({},o),{},{source:e})}return this.sendEvent(n,t),n})).then(null,(e=>{if(e instanceof c.b)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new c.b(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,(e=>{}))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),2!==o.length);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e)||y(e,2)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.split(":"));return{reason:r[0],category:r[1],quantity:e[t]}}))}}{constructor(e){const t=I.m9.SENTRY_SDK_SOURCE||(0,T.S)();e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${t}:@sentry/browser`,version:O.J}],version:O.J},super(e),e.sendClientReports&&I.m9.document&&I.m9.document.addEventListener("visibilitychange",(()=>{"hidden"===I.m9.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return(0,P.dr)(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return(0,P.aB)(this._options.stackParser,e,t,r,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return;const t=(0,A.r)(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return;if(!this._dsn)return;const t=function(e,t,r){const n=[{type:"client_report"},{timestamp:(0,S.yW)(),discarded_events:e}];return(0,s.Jd)(t?{dsn:t}:{},[n])}(e,this._options.tunnel&&(0,n.RA)(this._dsn));this._sendEnvelope(t)}}},7521:(e,t,r)=>{"use strict";r.d(t,{GJ:()=>p,ME:()=>b,aB:()=>y,dr:()=>v});var n=r(21955),i=r(20512),o=r(93937),a=r(55725),s=r(23155),c=r(7938);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){const r=f(e,t),n={type:t&&t.name,value:g(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function h(e,t){return{exception:{values:[p(e,t)]}}}function f(e,t){const r=t.stacktrace||t.stack||"",n=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(m.test(e.message))return 1}return 0}(t);try{return e(r,n)}catch(e){}return[]}const m=/Minified React error #\d+;/i;function g(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function v(e,t,r,n){const i=b(e,t,r&&r.syntheticException||void 0,n);return(0,a.EG)(i),i.level="error",r&&r.event_id&&(i.event_id=r.event_id),(0,s.WD)(i)}function y(e,t,r="info",n,i){const o=_(e,t,n&&n.syntheticException||void 0,i);return o.level=r,n&&n.event_id&&(o.event_id=n.event_id),(0,s.WD)(o)}function b(e,t,r,s,c){let l;if((0,i.VW)(t)&&t.error)return h(e,t.error);if((0,i.TX)(t)||(0,i.fm)(t)){const n=t;if("stack"in t)l=h(e,t);else{const t=n.name||((0,i.TX)(n)?"DOMError":"DOMException"),o=n.message?`${t}: ${n.message}`:t;l=_(e,o,r,s),(0,a.Db)(l,o)}return"code"in n&&(l.tags=u(u({},l.tags),{},{"DOMException.code":`${n.code}`})),l}return(0,i.VZ)(t)?h(e,t):(0,i.PO)(t)||(0,i.cO)(t)?(l=function(e,t,r,a){const s=(0,n.Gd)().getClient(),c=s&&s.getOptions().normalizeDepth,l={exception:{values:[{type:(0,i.cO)(t)?t.constructor.name:a?"UnhandledRejection":"Error",value:E(t,{isUnhandledRejection:a})}]},extra:{__serialized__:(0,o.Qy)(t,c)}};if(r){const t=f(e,r);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,r,c),(0,a.EG)(l,{synthetic:!0}),l):(l=_(e,t,r,s),(0,a.Db)(l,`${t}`,void 0),(0,a.EG)(l,{synthetic:!0}),l)}function _(e,t,r,n){const i={message:t};if(n&&r){const n=f(e,r);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]})}return i}function E(e,{isUnhandledRejection:t}){const r=(0,c.zf)(e),n=t?"promise rejection":"exception";return(0,i.VW)(e)?`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``:(0,i.cO)(e)?`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${n}`:`Object captured as ${n} with keys: ${r}`}},57602:(e,t,r)=>{"use strict";r.d(t,{Wz:()=>p,m9:()=>u,re:()=>h});var n=r(10470),i=r(19596),o=r(7938),a=r(55725);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const u=i.n2;let d=0;function p(){return d>0}function h(e,t={},r){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if((0,o.HK)(e))return e}catch(t){return e}const i=function(){const i=Array.prototype.slice.call(arguments);try{r&&"function"==typeof r&&r.apply(this,arguments);const n=i.map((e=>h(e,t)));return e.apply(this,n)}catch(e){throw d++,setTimeout((()=>{d--})),(0,n.$e)((r=>{r.addEventProcessor((e=>(t.mechanism&&((0,a.Db)(e,void 0,void 0),(0,a.EG)(e,t.mechanism)),e.extra=c(c({},e.extra),{},{arguments:i}),e))),(0,n.Tb)(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}catch(e){}(0,o.$Q)(i,e),(0,o.xp)(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>e.name})}catch(e){}return i}},41616:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Breadcrumbs:()=>He.O,BrowserClient:()=>Ne.R,BrowserProfilingIntegration:()=>as,BrowserTracing:()=>fa,Dedupe:()=>Ye.I,FunctionToString:()=>o.c,GlobalHandlers:()=>Ge.d,HttpContext:()=>Ve.q,Hub:()=>y.Xb,InboundFilters:()=>a.QD,Integrations:()=>ds,LinkedErrors:()=>ze.i,ModuleMetadata:()=>v,Replay:()=>Zo,SDK_VERSION:()=>Te.J,Scope:()=>Pe.s,TryCatch:()=>Ue.p,WINDOW:()=>De.m9,addBreadcrumb:()=>Ie.n_,addGlobalEventProcessor:()=>Ae.cc,addIntegration:()=>Ce.M5,addTracingExtensions:()=>oe,captureEvent:()=>Ie.eN,captureException:()=>Ie.Tb,captureMessage:()=>Ie.uT,captureUserFeedback:()=>Be.Jd,chromeStackLineParser:()=>je.$3,close:()=>Ie.xv,configureScope:()=>Ie.e,continueTrace:()=>fe,createTransport:()=>ke.q,createUserFeedbackEnvelope:()=>Ze.r,defaultIntegrations:()=>Be.SS,defaultRequestInstrumentationOptions:()=>sa,defaultStackLineParsers:()=>je.d8,defaultStackParser:()=>je.Dt,eventFromException:()=>Fe.dr,eventFromMessage:()=>Fe.aB,exceptionFromError:()=>Fe.GJ,extractTraceparentData:()=>D,flush:()=>Ie.yl,forceLoad:()=>Be.Eg,geckoStackLineParser:()=>je.$Q,getActiveSpan:()=>he,getActiveTransaction:()=>_,getCurrentHub:()=>y.Gd,getHubFromCarrier:()=>y.vi,init:()=>Be.S1,instrumentOutgoingRequests:()=>ca,lastEventId:()=>Ie.eW,makeBrowserOfflineTransport:()=>ka,makeFetchTransport:()=>Re.f,makeMain:()=>y.pj,makeMultiplexedTransport:()=>Oe,makeXHRTransport:()=>Me.K,onLoad:()=>Be.lA,onProfilingStartRouteTransaction:()=>ns,opera10StackLineParser:()=>je.NP,opera11StackLineParser:()=>je.HH,setContext:()=>Ie.v,setExtra:()=>Ie.sU,setExtras:()=>Ie.rJ,setMeasurement:()=>Se,setTag:()=>Ie.YA,setTags:()=>Ie.mG,setUser:()=>Ie.av,showReportDialog:()=>Be.jp,spanStatusfromHttpCode:()=>G,startInactiveSpan:()=>pe,startSpan:()=>ue,startSpanManual:()=>de,startTransaction:()=>Ie.Yr,trace:()=>le,winjsStackLineParser:()=>je.R2,withScope:()=>Ie.$e,wrap:()=>Be.re});var n={};r.r(n),r.d(n,{FunctionToString:()=>o.c,InboundFilters:()=>a.QD,LinkedErrors:()=>l});var i={};r.r(i),r.d(i,{Breadcrumbs:()=>He.O,Dedupe:()=>Ye.I,GlobalHandlers:()=>Ge.d,HttpContext:()=>Ve.q,LinkedErrors:()=>ze.i,TryCatch:()=>Ue.p});var o=r(23186),a=r(93105),s=r(14893);function c(e,t){const r={type:t.name||t.constructor.name,value:t.message},n=function(e,t){return e(t.stack||"",1)}(e,t);return n.length&&(r.stacktrace={frames:n}),r}class l{static __initStatic(){this.id="LinkedErrors"}constructor(e={}){this._key=e.key||"cause",this._limit=e.limit||5,this.name=l.id}setupOnce(){}preprocessEvent(e,t,r){const n=r.getOptions();(0,s.Z)(c,n.stackParser,n.maxValueLength,this._key,this._limit,e,t)}}l.__initStatic();var u=r(94143),d=r(19596);function p(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const f=new Map,m=new Set;function g(e,t){return function(e){if(d.n2._sentryModuleMetadata)for(var t=0,r=Object.keys(d.n2._sentryModuleMetadata);t<r.length;t++){const o=r[t],a=d.n2._sentryModuleMetadata[o];if(!m.has(o)){m.add(o);var n,i=p(e(o).reverse());try{for(i.s();!(n=i.n()).done;){const e=n.value;if(e.filename){f.set(e.filename,a);break}}}catch(e){i.e(e)}finally{i.f()}}}}(e),f.get(t)}class v{static __initStatic(){this.id="ModuleMetadata"}constructor(){this.name=v.id}setupOnce(e,t){const r=t().getClient();if(!r||"function"!=typeof r.on)return;r.on("beforeEnvelope",(e=>{(0,u.gv)(e,((e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&(function(e){try{e.exception.values.forEach((e=>{if(e.stacktrace){var t,r=p(e.stacktrace.frames||[]);try{for(r.s();!(t=r.n()).done;)delete t.value.module_metadata}catch(e){r.e(e)}finally{r.f()}}}))}catch(e){}}(t),e[1]=t)}}))}));const n=r.getOptions().stackParser;e((e=>(function(e,t){try{t.exception.values.forEach((t=>{if(t.stacktrace){var r,n=p(t.stacktrace.frames||[]);try{for(n.s();!(r=n.n()).done;){const t=r.value;if(!t.filename)continue;const n=g(e,t.filename);n&&(t.module_metadata=n)}}catch(e){n.e(e)}finally{n.f()}}}))}catch(e){}}(n,e),e)))}}v.__initStatic();var y=r(21955),b=r(81239);function _(e){return(e||(0,y.Gd)()).getScope().getTransaction()}let E=!1;function w(){const e=_();if(e){const t="internal_error";e.setStatus(t)}}w.tag="sentry_tracingErrorCallback";var x=r(49230),L=r(55725),O=r(20512);function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach((function(t){P(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const I="sentry-",A=/^sentry-/;function C(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,r])=>(e[t]=r,e)),{})}const k=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function D(e){if(!e)return;const t=e.match(k);if(!t)return;let r;return"1"===t[3]?r=!0:"0"===t[3]&&(r=!1),{traceId:t[1],parentSampled:r,parentSpanId:t[2]}}function N(e,t){const r=D(e),n=function(e){if(!(0,O.HD)(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>{const r=C(t);return T(T({},e),r)}),{});else{if(!e)return;t=C(e)}const r=Object.entries(t).reduce(((e,[t,r])=>(t.match(A)&&(e[t.slice(I.length)]=r),e)),{});return Object.keys(r).length>0?r:void 0}(t),i=r||{},o=i.traceId,a=i.parentSpanId,s=i.parentSampled,c={traceId:o||(0,L.DM)(),spanId:(0,L.DM)().substring(16),sampled:s};return a&&(c.parentSpanId=a),n&&(c.dsc=n),{traceparentData:r,dynamicSamplingContext:n,propagationContext:c}}var R=r(7938);function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach((function(t){F(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function F(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Z{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class B{constructor(e={}){this.traceId=e.traceId||(0,L.DM)(),this.spanId=e.spanId||(0,L.DM)().substring(16),this.startTimestamp=e.startTimestamp||(0,x.ph)(),this.tags=e.tags||{},this.data=e.data||{},this.instrumenter=e.instrumenter||"sentry",this.origin=e.origin||"manual",e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.name&&(this.description=e.name),e.status&&(this.status=e.status),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}get name(){return this.description||""}set name(e){this.setName(e)}startChild(e){const t=new B(j(j({},e),{},{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t),t.transaction=this.transaction,t}setTag(e,t){return this.tags=j(j({},this.tags),{},{[e]:t}),this}setData(e,t){return this.data=j(j({},this.data),{},{[e]:t}),this}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e)),this.setData("http.response.status_code",e);const t=G(e);return"unknown_error"!==t&&this.setStatus(t),this}setName(e){this.description=e}isSuccess(){return"ok"===this.status}finish(e){this.endTimestamp="number"==typeof e?e:(0,x.ph)()}toTraceparent(){return function(e=(0,L.DM)(),t=(0,L.DM)().substring(16),r){let n="";return void 0!==r&&(n=r?"-1":"-0"),`${e}-${t}${n}`}(this.traceId,this.spanId,this.sampled)}toContext(){return(0,R.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=e.data||{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=e.spanId||this.spanId,this.startTimestamp=e.startTimestamp||this.startTimestamp,this.status=e.status,this.tags=e.tags||{},this.traceId=e.traceId||this.traceId,this}getTraceContext(){return(0,R.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return(0,R.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId,origin:this.origin})}}function G(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}var U=r(52059);function H(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?H(Object(r),!0).forEach((function(t){V(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function V(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Y extends B{constructor(e,t){super(e),delete this.description,this._measurements={},this._contexts={},this._hub=t||(0,y.Gd)(),this._name=e.name||"",this.metadata=z(z({source:"custom"},e.metadata),{},{spanMetadata:{}}),this._trimEnd=e.trimEnd,this.transaction=this;const r=this.metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext=z({},r))}get name(){return this._name}set name(e){this.setName(e)}setName(e,t="custom"){this._name=e,this.metadata.source=t}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new Z(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,r=""){this._measurements[e]={value:t,unit:r}}setMetadata(e){this.metadata=z(z({},this.metadata),e)}finish(e){const t=this._finishTransaction(e);if(t)return this._hub.captureEvent(t)}toContext(){const e=super.toContext();return(0,R.Jr)(z(z({},e),{},{name:this.name,trimEnd:this._trimEnd}))}updateWithContext(e){return super.updateWithContext(e),this.name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;const e=this._hub||(0,y.Gd)(),t=e.getClient();if(!t)return{};const r=e.getScope(),n=(0,U._)(this.traceId,t,r),i=this.metadata.sampleRate;void 0!==i&&(n.sample_rate=`${i}`);const o=this.metadata.source;return o&&"url"!==o&&(n.transaction=this.name),void 0!==this.sampled&&(n.sampled=String(this.sampled)),n}setHub(e){this._hub=e}_finishTransaction(e){if(void 0!==this.endTimestamp)return;this.name||(this.name="<unlabeled transaction>"),super.finish(e);const t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this.sampled)return void(t&&t.recordDroppedEvent("sample_rate","transaction"));const r=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&e.endTimestamp)):[];this._trimEnd&&r.length>0&&(this.endTimestamp=r.reduce(((e,t)=>e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e)).endTimestamp);const n=this.metadata,i=z({contexts:z(z({},this._contexts),{},{trace:this.getTraceContext()}),spans:r,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:z(z({},n),{},{dynamicSamplingContext:this.getDynamicSamplingContext()})},n.source&&{transaction_info:{source:n.source}});return Object.keys(this._measurements).length>0&&(i.measurements=this._measurements),i}}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const K={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},$=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class q extends Z{constructor(e,t,r,n){super(n),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=r}add(e){e.spanId!==this.transactionSpanId&&(e.finish=t=>{e.endTimestamp="number"==typeof t?t:(0,x.ph)(),this._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),super.add(e)}}class X extends Y{constructor(e,t,r=K.idleTimeout,n=K.finalTimeout,i=K.heartbeatInterval,o=!1){super(e,t),this._idleHub=t,this._idleTimeout=r,this._finalTimeout=n,this._heartbeatInterval=i,this._onScope=o,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=$[4],o&&t.configureScope((e=>e.setSpan(this))),this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=$[3],this.finish())}),this._finalTimeout)}finish(e=(0,x.ph)()){if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this._finishReason),this.spanRecorder){var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return W(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?W(e,t):void 0}}(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(this._beforeFinishCallbacks);try{for(r.s();!(t=r.n()).done;)(0,t.value)(this,e)}catch(e){r.e(e)}finally{r.f()}this.spanRecorder.spans=this.spanRecorder.spans.filter((t=>{if(t.spanId===this.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus("cancelled"));const r=t.startTimestamp<e,n=(this._finalTimeout+this._idleTimeout)/1e3,i=t.endTimestamp-this.startTimestamp<n;return r&&i}))}if(this._onScope){const e=this._idleHub.getScope();e.getTransaction()===this&&e.setSpan(void 0)}return super.finish(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const t=e=>{this._finished||this._pushActivity(e)},r=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new q(t,r,this.spanId,e),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=$[5],this.finish(e)))}setFinishReason(e){this._finishReason=e}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=$[1],this.finish(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),this.activities[e]=!0}_popActivity(e){if(this.activities[e]&&delete this.activities[e],0===Object.keys(this.activities).length){const e=(0,x.ph)();this._idleTimeoutCanceledPermanently?(this._finishReason=$[5],this.finish(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(this.setStatus("deadline_exceeded"),this._finishReason=$[0],this.finish()):this._pingHeartbeat()}_pingHeartbeat(){setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}function J(e,t,r){return e.sampled=!1,e}function Q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(r),!0).forEach((function(t){te(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function te(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function re(){const e=this.getScope().getSpan();return e?{"sentry-trace":e.toTraceparent()}:{}}function ne(e,t){const r=this.getClient(),n=r&&r.getOptions()||{};(n.instrumenter||"sentry")!==(e.instrumenter||"sentry")&&(e.sampled=!1);let i=new Y(e,this);return i=J(i,0,ee({parentSampled:e.parentSampled,transactionContext:e},t)),i.sampled&&i.initSpanRecorder(n._experiments&&n._experiments.maxSpans),r&&r.emit&&r.emit("startTransaction",i),i}function ie(e,t,r,n,i,o,a){const s=e.getClient(),c=s&&s.getOptions()||{};let l=new X(t,e,r,n,a,i);return l=J(l,0,ee({parentSampled:t.parentSampled,transactionContext:t},o)),l.sampled&&l.initSpanRecorder(c._experiments&&c._experiments.maxSpans),s&&s.emit&&s.emit("startTransaction",l),l}function oe(){const e=(0,y.cu)();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=ne),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=re),E||(E=!0,(0,b.oq)("error",w),(0,b.oq)("unhandledrejection",w)))}function ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(r),!0).forEach((function(t){ce(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ae(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ce(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function le(e,t,r=(()=>{})){me(e);const n=(0,y.Gd)(),i=n.getScope(),o=i.getSpan(),a=void 0;function s(){n.getScope().setSpan(o)}let c;i.setSpan(a);try{c=t(a)}catch(e){throw r(e),s(),e}return(0,O.J8)(c)?Promise.resolve(c).then((()=>{s()}),(e=>{r(e),s()})):s(),c}function ue(e,t){me(e);const r=(0,y.Gd)(),n=r.getScope(),i=n.getSpan(),o=void 0;function a(){r.getScope().setSpan(i)}let s;n.setSpan(o);try{s=t(o)}catch(e){throw a(),e}return(0,O.J8)(s)?Promise.resolve(s).then((()=>{a()}),(()=>{a()})):a(),s}function de(e,t){me(e);const r=(0,y.Gd)(),n=r.getScope(),i=n.getSpan(),o=void 0;let a;n.setSpan(o);try{a=t(o,(function(){r.getScope().setSpan(i)}))}catch(e){throw e}return(0,O.J8)(a)&&Promise.resolve(a).then(void 0,(()=>{})),a}function pe(e){}function he(){return(0,y.Gd)().getScope().getSpan()}function fe({sentryTrace:e,baggage:t},r){const n=(0,y.Gd)().getScope(),i=N(e,t),o=i.traceparentData,a=i.dynamicSamplingContext,s=i.propagationContext;return n.setPropagationContext(s),r(se(se({},o),{},{metadata:(0,R.Jr)({dynamicSamplingContext:o&&!a?{}:a})}))}function me(e){const t=se({},e);return void 0!==t.name&&void 0===t.description&&(t.description=t.name),t}var ge=r(70678),ve=r(18476);function ye(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function be(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(r),!0).forEach((function(t){_e(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ye(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ee(){Ee=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function we(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function xe(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){we(o,n,i,a,s,"next",e)}function s(e){we(o,n,i,a,s,"throw",e)}a(void 0)}))}}function Le(e,t){let r;return(0,u.gv)(e,((e,n)=>(t.includes(n)&&(r=Array.isArray(e)?e[1]:void 0),!!r))),r}function Oe(e,t){return r=>{const n=e(r),i={};function o(t,n){const o=n?`${t}:${n}`:t;if(!i[o]){const a=(0,ge.U4)(t);if(!a)return;const s=(0,ve.U)(a);i[o]=n?function(e,t){return r=>{const n=e(r);return{send:(i=xe(Ee().mark((function e(r){var i;return Ee().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(i=Le(r,["event","transaction","profile","replay_event"]))&&(i.release=t),e.abrupt("return",n.send(r));case 3:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)}),flush:e=>n.flush(e)};var i}}(e,n)(be(be({},r),{},{url:s})):e(be(be({},r),{},{url:s}))}return i[o]}function a(){return(a=xe(Ee().mark((function e(r){var i,a;return Ee().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return 0===(i=t({envelope:r,getEvent:function(e){const t=e&&e.length?e:["event"];return Le(r,t)}}).map((e=>"string"==typeof e?o(e,void 0):o(e.dsn,e.release))).filter((e=>!!e))).length&&i.push(n),e.next=5,Promise.all(i.map((e=>e.send(r))));case 5:return a=e.sent,e.abrupt("return",a[0]);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function s(){return s=xe(Ee().mark((function e(t){var r,o;return Ee().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=[...Object.keys(i).map((e=>i[e])),n],e.next=3,Promise.all(r.map((e=>e.flush(t))));case 3:return o=e.sent,e.abrupt("return",o.every((e=>e)));case 5:case"end":return e.stop()}}),e)}))),s.apply(this,arguments)}return{send:function(e){return a.apply(this,arguments)},flush:function(e){return s.apply(this,arguments)}}}}function Se(e,t,r){const n=_();n&&n.setMeasurement(e,t,r)}var Te=r(29412),Pe=r(6316),Ie=r(10470),Ae=r(49475),Ce=r(26487),ke=r(76616),De=r(57602),Ne=r(44054),Re=r(6413),Me=r(57693),je=r(87003),Fe=r(7521),Ze=r(10710),Be=r(13824),Ge=r(92743),Ue=r(74948),He=r(44645),ze=r(11431),Ve=r(32819),Ye=r(35428),We=r(40263),Ke=r(58950),$e=r(93937),qe=r(99110),Xe=r(3790),Je=r(2306),Qe=r(68688);function et(){return"undefined"!=typeof window&&(!(0,Qe.KV)()||void 0!==d.n2.process&&"renderer"===d.n2.process.type)}const tt=(e,t,r)=>{let n,i;return o=>{t.value>=0&&(o||r)&&(i=t.value-(n||0),(i||void 0===n)&&(n=t.value,t.delta=i,e(t)))}},rt=d.n2,nt=()=>rt.__WEB_VITALS_POLYFILL__?rt.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=rt.performance.timing,t=rt.performance.navigation.type,r={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const t in e)"navigationStart"!==t&&"toJSON"!==t&&(r[t]=Math.max(e[t]-e.navigationStart,0));return r})()):rt.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],it=()=>{const e=nt();return e&&e.activationStart||0},ot=(e,t)=>{const r=nt();let n="navigate";return r&&(n=rt.document.prerendering||it()>0?"prerender":r.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:n}},at=(e,t,r)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const n=new PerformanceObserver((e=>{t(e.getEntries())}));return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(e){}},st=(e,t)=>{const r=n=>{"pagehide"!==n.type&&"hidden"!==rt.document.visibilityState||(e(n),t&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)};let ct=-1;const lt=()=>(ct<0&&(ct="hidden"!==rt.document.visibilityState||rt.document.prerendering?1/0:0,st((({timeStamp:e})=>{ct=e}),!0)),{get firstHiddenTime(){return ct}}),ut={};function dt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const pt={},ht={};let ft,mt,gt;function vt(e){return xt("lcp",e,wt,gt)}function yt(e,t){return Lt(e,t),ht[e]||(function(e){const t={};"event"===e&&(t.durationThreshold=0),at(e,(t=>{bt(e,{entries:t})}),t)}(e),ht[e]=!0),Ot(e,t)}function bt(e,t){const r=pt[e];if(r&&r.length){var n,i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return dt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?dt(e,t):void 0}}(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(r);try{for(i.s();!(n=i.n()).done;){const r=n.value;try{r(t)}catch(e){}}}catch(e){i.e(e)}finally{i.f()}}}function _t(){(e=>{const t=ot("CLS",0);let r,n=0,i=[];const o=e=>{e.forEach((e=>{if(!e.hadRecentInput){const o=i[0],a=i[i.length-1];n&&0!==i.length&&e.startTime-a.startTime<1e3&&e.startTime-o.startTime<5e3?(n+=e.value,i.push(e)):(n=e.value,i=[e]),n>t.value&&(t.value=n,t.entries=i,r&&r())}}))},a=at("layout-shift",o);a&&(r=tt((e=>{bt("cls",{metric:e}),ft=e}),t),st((()=>{o(a.takeRecords()),r(!0)})))})()}function Et(){(e=>{const t=lt(),r=ot("FID");let n;const i=e=>{e.startTime<t.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},o=e=>{e.forEach(i)},a=at("first-input",o);n=tt((e=>{bt("fid",{metric:e}),mt=e}),r),a&&st((()=>{o(a.takeRecords()),a.disconnect()}),!0)})()}function wt(){(e=>{const t=lt(),r=ot("LCP");let n;const i=e=>{const i=e[e.length-1];if(i){const e=Math.max(i.startTime-it(),0);e<t.firstHiddenTime&&(r.value=e,r.entries=[i],n())}},o=at("largest-contentful-paint",i);if(o){n=tt((e=>{bt("lcp",{metric:e}),gt=e}),r);const e=()=>{ut[r.id]||(i(o.takeRecords()),o.disconnect(),ut[r.id]=!0,n(!0))};["keydown","click"].forEach((t=>{addEventListener(t,e,{once:!0,capture:!0})})),st(e,!0)}})()}function xt(e,t,r,n){return Lt(e,t),ht[e]||(r(),ht[e]=!0),n&&t({metric:n}),Ot(e,t)}function Lt(e,t){pt[e]=pt[e]||[],pt[e].push(t)}function Ot(e,t){return()=>{const r=pt[e];if(!r)return;const n=r.indexOf(t);-1!==n&&r.splice(n,1)}}function St(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Tt(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){St(o,n,i,a,s,"next",e)}function s(e){St(o,n,i,a,s,"throw",e)}a(void 0)}))}}function Pt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function It(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pt(Object(r),!0).forEach((function(t){At(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function At(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ct(){Ct=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function kt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||Nt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dt(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Nt(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function Nt(e,t){if(e){if("string"==typeof e)return Rt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Rt(e,t):void 0}}function Rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Mt=d.n2,jt="sentryReplaySession",Ft="replay_event",Zt="Unable to send Replay",Bt=15e4,Gt=5e3,Ut=2e7;var Ht;function zt(e){const t=null==e?void 0:e.host;return Boolean((null==t?void 0:t.shadowRoot)===e)}function Vt(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Yt(e){try{const r=e.rules||e.cssRules;return r?((t=Array.from(r,Wt).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function Wt(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=Yt(e.styleSheet)||function(e){const t=e.cssText;if(t.split('"').length<3)return t;const r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return function(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}(e.cssText);return t||e.cssText}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Ht||(Ht={}));class Kt{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){var t;if(!e)return-1;const r=null===(t=this.getMeta(e))||void 0===t?void 0:t.id;return null!=r?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function $t({maskInputOptions:e,tagName:t,type:r}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||r&&e[r]||"password"===r||"INPUT"===t&&!r&&e.text)}function qt({isMasked:e,element:t,value:r,maskInputFn:n}){let i=r||"";return e?(n&&(i=n(i,t)),"*".repeat(i.length)):i}function Xt(e){return e.toLowerCase()}function Jt(e){return e.toUpperCase()}const Qt="__rrweb_original__";function er(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Xt(t):null}function tr(e,t,r){return"INPUT"!==t||"radio"!==r&&"checkbox"!==r?e.value:e.getAttribute("value")||""}let rr=1;const nr=new RegExp("[^a-z0-9-_:]");function ir(){return rr++}let or,ar;const sr=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,cr=/^(?:[a-z+]+:)?\/\//i,lr=/^www\..*/i,ur=/^(data:)([^,]*),(.*)/i;function dr(e,t){return(e||"").replace(sr,((e,r,n,i,o,a)=>{const s=n||o||a,c=r||i||"";if(!s)return e;if(cr.test(s)||lr.test(s))return`url(${c}${s}${c})`;if(ur.test(s))return`url(${c}${s}${c})`;if("/"===s[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+s}${c})`;const l=t.split("/"),u=s.split("/");l.pop();var d,p=Dt(u);try{for(p.s();!(d=p.n()).done;){const e=d.value;"."!==e&&(".."===e?l.pop():l.push(e))}}catch(e){p.e(e)}finally{p.f()}return`url(${c}${l.join("/")}${c})`}))}const pr=/^[^ \t\n\r\u000c]+/,hr=/^[, \t\n\r\u000c]+/;function fr(e,t){if(!t||""===t.trim())return t;const r=e.createElement("a");return r.href=t,r.href}function mr(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function gr(){const e=document.createElement("a");return e.href="",e.href}function vr(e,t,r,n,i,o){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?fr(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n;const i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}const i=[];for(;n(hr),!(r>=t.length);){let o=n(pr);if(","===o.slice(-1))o=fr(e,o.substring(0,o.length-1)),i.push(o);else{let n="";o=fr(e,o);let a=!1;for(;;){const e=t.charAt(r);if(""===e){i.push((o+n).trim());break}if(a)")"===e&&(a=!1);else{if(","===e){r+=1,i.push((o+n).trim());break}"("===e&&(a=!0)}n+=e,r+=1}}}return i.join(", ")}(e,n):"style"===r?dr(n,gr()):"object"===t&&"data"===r?fr(e,n):"function"==typeof o?o(r,n,i):n:fr(e,n):n}function yr(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function br(e,t,r=1/0,n=0){return e?e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:br(e.parentNode,t,r,n+1):-1}function _r(e,t){return r=>{const n=r;if(null===n)return!1;if(e)if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}return!1}(n,e))return!0;return!(!t||!n.matches(t))}}function Er(e,t,r,n,i,o){try{const a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===a)return!1;let s=-1,c=-1;if(o){if(c=br(a,_r(n,i)),c<0)return!0;s=br(a,_r(t,r),c>=0?c:1/0)}else{if(s=br(a,_r(t,r)),s<0)return!1;c=br(a,_r(n,i),s>=0?s:1/0)}return s>=0?!(c>=0)||s<=c:!(c>=0||!o)}catch(e){}return!!o}function wr(e){return null==e?"":e.toLowerCase()}function xr(e,t){const r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,a=t.unblockSelector,s=t.maskAllText,c=t.maskTextClass,l=t.unmaskTextClass,u=t.maskTextSelector,d=t.unmaskTextSelector,p=t.skipChild,h=void 0!==p&&p,f=t.inlineStylesheet,m=void 0===f||f,g=t.maskInputOptions,v=void 0===g?{}:g,y=t.maskAttributeFn,b=t.maskTextFn,_=t.maskInputFn,E=t.slimDOMOptions,w=t.dataURLOptions,x=void 0===w?{}:w,L=t.inlineImages,O=void 0!==L&&L,S=t.recordCanvas,T=void 0!==S&&S,P=t.onSerialize,I=t.onIframeLoad,A=t.iframeLoadTimeout,C=void 0===A?5e3:A,k=t.onStylesheetLoad,D=t.stylesheetLoadTimeout,N=void 0===D?5e3:D,R=t.keepIframeSrcFn,M=void 0===R?()=>!1:R,j=t.newlyAddedElement,F=void 0!==j&&j;let Z=t.preserveWhiteSpace,B=void 0===Z||Z;const G=function(e,t){const r=t.doc,n=t.blockClass,i=t.blockSelector,o=t.unblockSelector,a=t.maskAllText,s=t.maskAttributeFn,c=t.maskTextClass,l=t.unmaskTextClass,u=t.maskTextSelector,d=t.unmaskTextSelector,p=t.inlineStylesheet,h=t.maskInputOptions,f=void 0===h?{}:h,m=t.maskTextFn,g=t.maskInputFn,v=t.dataURLOptions,y=void 0===v?{}:v,b=t.inlineImages,_=t.recordCanvas,E=t.keepIframeSrcFn,w=t.newlyAddedElement,x=void 0!==w&&w,L=function(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return 1===r?void 0:r}(r,t.mirror);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Ht.Document,childNodes:[],compatMode:e.compatMode}:{type:Ht.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Ht.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:L};case e.ELEMENT_NODE:return function(e,t){const r=t.doc,n=t.inlineStylesheet,i=t.maskInputOptions,o=void 0===i?{}:i,a=t.maskAttributeFn,s=t.maskInputFn,c=t.dataURLOptions,l=void 0===c?{}:c,u=t.inlineImages,d=t.recordCanvas,p=t.keepIframeSrcFn,h=t.newlyAddedElement,f=void 0!==h&&h,m=t.rootId,g=t.maskTextClass,v=t.unmaskTextClass,y=t.maskTextSelector,b=t.unmaskTextSelector,_=function(e,t,r,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,t.blockClass,t.blockSelector,t.unblockSelector),E=function(e){if(e instanceof HTMLFormElement)return"form";const t=Xt(e.tagName);return nr.test(t)?"div":t}(e);let w={};const x=e.attributes.length;for(let t=0;t<x;t++){const n=e.attributes[t];yr(E,n.name,n.value)||(w[n.name]=vr(r,E,Xt(n.name),n.value,e,a))}if("link"===E&&n){const t=Array.from(r.styleSheets).find((t=>t.href===e.href));let n=null;t&&(n=Yt(t)),n&&(delete w.rel,delete w.href,w._cssText=dr(n,t.href))}if("style"===E&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=Yt(e.sheet);t&&(w._cssText=dr(t,gr()))}if("input"===E||"textarea"===E||"select"===E||"option"===E){const t=e,r=er(t),n=tr(t,Jt(E),r),i=t.checked;if("submit"!==r&&"button"!==r&&n){const e=Er(t,g,y,v,b,$t({type:r,tagName:Jt(E),maskInputOptions:o}));w.value=qt({isMasked:e,element:t,value:n,maskInputFn:s})}i&&(w.checked=i)}if("option"===E&&(e.selected&&!o.select?w.selected=!0:delete w.selected),"canvas"===E&&d)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){const i=t.getImageData,o=Qt in i?i.__rrweb_original__:i;if(new Uint32Array(o.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(w.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),r=document.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(l.type,l.quality)&&(w.rr_dataURL=t)}if("img"===E&&u){or||(or=r.createElement("canvas"),ar=or.getContext("2d"));const t=e,n=t.crossOrigin;t.crossOrigin="anonymous";const i=()=>{t.removeEventListener("load",i);try{or.width=t.naturalWidth,or.height=t.naturalHeight,ar.drawImage(t,0,0),w.rr_dataURL=or.toDataURL(l.type,l.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}n?w.crossOrigin=n:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i)}if("audio"!==E&&"video"!==E||(w.rr_mediaState=e.paused?"paused":"played",w.rr_mediaCurrentTime=e.currentTime),f||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop)),_){const t=e.getBoundingClientRect(),r=t.width,n=t.height;w={class:w.class,rr_width:`${r}px`,rr_height:`${n}px`}}let L;"iframe"!==E||p(w.src)||(e.contentDocument||(w.rr_src=w.src),delete w.src);try{customElements.get(E)&&(L=!0)}catch(e){}return{type:Ht.Element,tagName:E,attributes:w,childNodes:[],isSVG:mr(e)||void 0,needBlock:_,rootId:m,isCustom:L}}(e,{doc:r,blockClass:n,blockSelector:i,unblockSelector:o,inlineStylesheet:p,maskAttributeFn:s,maskInputOptions:f,maskInputFn:g,dataURLOptions:y,inlineImages:b,recordCanvas:_,keepIframeSrcFn:E,newlyAddedElement:x,rootId:L,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d});case e.TEXT_NODE:return function(e,t){var r;const n=t.maskAllText,i=t.maskTextClass,o=t.unmaskTextClass,a=t.maskTextSelector,s=t.unmaskTextSelector,c=t.maskTextFn,l=t.maskInputOptions,u=t.maskInputFn,d=t.rootId,p=e.parentNode&&e.parentNode.tagName;let h=e.textContent;const f="STYLE"===p||void 0,m="SCRIPT"===p||void 0,g="TEXTAREA"===p||void 0;if(f&&h){try{e.nextSibling||e.previousSibling||(null===(r=e.parentNode.sheet)||void 0===r?void 0:r.cssRules)&&(h=Yt(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}h=dr(h,gr())}m&&(h="SCRIPT_PLACEHOLDER");const v=Er(e,i,a,o,s,n);return f||m||g||!h||!v||(h=c?c(h):h.replace(/[\S]/g,"*")),g&&h&&(l.textarea||v)&&(h=u?u(h,e.parentNode):h.replace(/[\S]/g,"*")),"OPTION"===p&&h&&(h=qt({isMasked:Er(e,i,a,o,s,$t({type:null,tagName:p,maskInputOptions:l})),element:e,value:h,maskInputFn:u})),{type:Ht.Text,textContent:h||"",isStyle:f,rootId:d}}(e,{maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,maskTextFn:m,maskInputOptions:f,maskInputFn:g,rootId:L});case e.CDATA_SECTION_NODE:return{type:Ht.CDATA,textContent:"",rootId:L};case e.COMMENT_NODE:return{type:Ht.Comment,textContent:e.textContent||"",rootId:L};default:return!1}}(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,maskAllText:s,unblockSelector:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:m,maskInputOptions:v,maskAttributeFn:y,maskTextFn:b,maskInputFn:_,dataURLOptions:x,inlineImages:O,recordCanvas:T,keepIframeSrcFn:M,newlyAddedElement:F});if(!G)return console.warn(e,"not serialized"),null;let U;U=n.hasNode(e)?n.getId(e):!function(e,t){if(t.comment&&e.type===Ht.Comment)return!0;if(e.type===Ht.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(wr(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===wr(e.attributes.name)||"icon"===wr(e.attributes.rel)||"apple-touch-icon"===wr(e.attributes.rel)||"shortcut icon"===wr(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&wr(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(wr(e.attributes.property).match(/^(og|twitter|fb):/)||wr(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===wr(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===wr(e.attributes.name)||"googlebot"===wr(e.attributes.name)||"bingbot"===wr(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===wr(e.attributes.name)||"generator"===wr(e.attributes.name)||"framework"===wr(e.attributes.name)||"publisher"===wr(e.attributes.name)||"progid"===wr(e.attributes.name)||wr(e.attributes.property).match(/^article:/)||wr(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===wr(e.attributes.name)||"yandex-verification"===wr(e.attributes.name)||"csrf-token"===wr(e.attributes.name)||"p:domain_verify"===wr(e.attributes.name)||"verify-v1"===wr(e.attributes.name)||"verification"===wr(e.attributes.name)||"shopify-checkout-api-token"===wr(e.attributes.name)))return!0}}return!1}(G,E)&&(B||G.type!==Ht.Text||G.isStyle||G.textContent.replace(/^\s+|\s+$/gm,"").length)?ir():-2;const H=Object.assign(G,{id:U});if(n.add(e,H),-2===U)return null;P&&P(e);let z=!h;if(H.type===Ht.Element){z=z&&!H.needBlock,delete H.needBlock;const t=e.shadowRoot;t&&Vt(t)&&(H.isShadowHost=!0)}if((H.type===Ht.Document||H.type===Ht.Element)&&z){E.headWhitespace&&H.type===Ht.Element&&"head"===H.tagName&&(B=!1);const t={doc:r,mirror:n,blockClass:i,blockSelector:o,maskAllText:s,unblockSelector:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:h,inlineStylesheet:m,maskInputOptions:v,maskAttributeFn:y,maskTextFn:b,maskInputFn:_,slimDOMOptions:E,dataURLOptions:x,inlineImages:O,recordCanvas:T,preserveWhiteSpace:B,onSerialize:P,onIframeLoad:I,iframeLoadTimeout:C,onStylesheetLoad:k,stylesheetLoadTimeout:N,keepIframeSrcFn:M};for(var V=0,Y=Array.from(e.childNodes);V<Y.length;V++){const e=xr(Y[V],t);e&&H.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(var W=0,K=Array.from(e.shadowRoot.childNodes);W<K.length;W++){const r=xr(K[W],t);r&&(Vt(e.shadowRoot)&&(r.isShadow=!0),H.childNodes.push(r))}}return e.parentNode&&zt(e.parentNode)&&Vt(e.parentNode)&&(H.isShadow=!0),H.type===Ht.Element&&"iframe"===H.tagName&&function(e,t,r){const n=e.contentWindow;if(!n)return;let i,o=!1;try{i=n.document.readyState}catch(e){return}if("complete"!==i){const n=setTimeout((()=>{o||(t(),o=!0)}),r);return void e.addEventListener("load",(()=>{clearTimeout(n),o=!0,t()}))}const a="about:blank";if(n.location.href!==a||e.src===a||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument;if(t&&I){const r=xr(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:m,maskInputOptions:v,maskAttributeFn:y,maskTextFn:b,maskInputFn:_,slimDOMOptions:E,dataURLOptions:x,inlineImages:O,recordCanvas:T,preserveWhiteSpace:B,onSerialize:P,onIframeLoad:I,iframeLoadTimeout:C,onStylesheetLoad:k,stylesheetLoadTimeout:N,keepIframeSrcFn:M});r&&I(e,r)}}),C),H.type===Ht.Element&&"link"===H.tagName&&"stylesheet"===H.attributes.rel&&function(e,t,r){let n,i=!1;try{n=e.sheet}catch(e){return}if(n)return;const o=setTimeout((()=>{i||(t(),i=!0)}),r);e.addEventListener("load",(()=>{clearTimeout(o),i=!0,t()}))}(e,(()=>{if(k){const t=xr(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:m,maskInputOptions:v,maskAttributeFn:y,maskTextFn:b,maskInputFn:_,slimDOMOptions:E,dataURLOptions:x,inlineImages:O,recordCanvas:T,preserveWhiteSpace:B,onSerialize:P,onIframeLoad:I,iframeLoadTimeout:C,onStylesheetLoad:k,stylesheetLoadTimeout:N,keepIframeSrcFn:M});t&&k(e,t)}}),N),H}function Lr(e,t,r=document){const n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}const Or="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let Sr={map:{},getId:()=>(console.error(Or),-1),getNode:()=>(console.error(Or),null),removeNodeFromMap(){console.error(Or)},has:()=>(console.error(Or),!1),reset(){console.error(Or)}};function Tr(e,t,r={}){let n=null,i=0;return function(...o){const a=Date.now();i||!1!==r.leading||(i=a);const s=t-(a-i),c=this;s<=0||s>t?(n&&(clearTimeout(n),n=null),i=a,e.apply(c,o)):n||!1===r.trailing||(n=setTimeout((()=>{i=!1===r.leading?0:Date.now(),n=null,e.apply(c,o)}),s))}}function Pr(e,t,r,n,i=window){const o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set(e){setTimeout((()=>{r.set.call(this,e)}),0),o&&o.set&&o.set.call(this,e)}}),()=>Pr(e,t,o||{},!0)}function Ir(e,t,r){try{if(!(t in e))return()=>{};const n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,()=>{e[t]=n}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Sr=new Proxy(Sr,{get:(e,t,r)=>("map"===t&&console.error(Or),Reflect.get(e,t,r))}));let Ar=Date.now;function Cr(e){var t,r,n,i,o,a;const s=e.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:(null==s?void 0:s.documentElement.scrollLeft)||(null===(r=null===(t=null==s?void 0:s.body)||void 0===t?void 0:t.parentElement)||void 0===r?void 0:r.scrollLeft)||(null===(n=null==s?void 0:s.body)||void 0===n?void 0:n.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==s?void 0:s.documentElement.scrollTop)||(null===(o=null===(i=null==s?void 0:s.body)||void 0===i?void 0:i.parentElement)||void 0===o?void 0:o.scrollTop)||(null===(a=null==s?void 0:s.body)||void 0===a?void 0:a.scrollTop)||0}}function kr(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Dr(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Nr(e,t,r,n,i){if(!e)return!1;const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!o)return!1;const a=_r(t,r);if(!i){const e=n&&o.matches(n);return a(o)&&!e}const s=br(o,a);let c=-1;return!(s<0)&&(n&&(c=br(o,_r(null,n))),s>-1&&c<0||s<c)}function Rr(e,t){return-2===t.getId(e)}function Mr(e,t){if(zt(e))return!1;const r=t.getId(e);return!t.has(r)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Mr(e.parentNode,t))}function jr(e){return Boolean(e.changedTouches)}function Fr(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Zr(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Br(e){return Boolean(null==e?void 0:e.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(Ar=()=>(new Date).getTime());class Gr{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){var t;return null!==(t=this.styleIDMap.get(e))&&void 0!==t?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let r;return r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Ur(e){var t,r;let n=null;return(null===(r=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e))||void 0===r?void 0:r.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(n=e.getRootNode().host),n}function Hr(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){const t=e.ownerDocument;if(!t)return!1;const r=function(e){let t,r=e;for(;t=Ur(r);)r=t;return r}(e);return t.contains(r)}(e))}var zr=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(zr||{}),Vr=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Vr||{}),Yr=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Yr||{}),Wr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Wr||{}),Kr=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Kr||{});function $r(e){return"__ln"in e}class qr{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&$r(e.previousSibling)){const r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&$r(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const Xr=(e,t)=>`${e}@${t}`;class Jr{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,r=new qr,n=e=>{let t=e,r=-2;for(;-2===r;)t=t&&t.nextSibling,r=t&&this.mirror.getId(t);return r},i=i=>{if(!i.parentNode||!Hr(i))return;const o=zt(i.parentNode)?this.mirror.getId(Ur(i)):this.mirror.getId(i.parentNode),a=n(i);if(-1===o||-1===a)return r.addNode(i);const s=xr(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{Fr(e,this.mirror)&&this.iframeManager.addIframe(e),Zr(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Br(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});s&&(e.push({parentId:o,nextId:a,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());var o,a=Dt(this.movedSet);try{for(a.s();!(o=a.n()).done;){const e=o.value;en(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||i(e)}}catch(e){a.e(e)}finally{a.f()}var s,c=Dt(this.addedSet);try{for(c.s();!(s=c.n()).done;){const e=s.value;rn(this.droppedSet,e)||en(this.removes,e,this.mirror)?rn(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e)}}catch(e){c.e(e)}finally{c.f()}let l=null;for(;r.length;){let e=null;if(l){const t=this.mirror.getId(l.value.parentNode),r=n(l.value);-1!==t&&-1!==r&&(e=l)}if(!e){let t=r.tail;for(;t;){const r=t;if(t=t.previous,r){const t=this.mirror.getId(r.value.parentNode);if(-1===n(r.value))continue;if(-1!==t){e=r;break}{const t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const n=t.parentNode.host;if(-1!==this.mirror.getId(n)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}l=e.previous,r.removeNode(e.value),i(e.value)}const u={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const t=e.attributes;if("string"==typeof t.style){const r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(u.texts.length||u.attributes.length||u.removes.length||u.adds.length)&&(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(u))},this.processMutation=e=>{if(Rr(e.target,this.mirror))return;let t;try{t=document.implementation.createHTMLDocument()}catch(e){t=this.doc}switch(e.type){case"characterData":{const t=e.target.textContent;Nr(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:Er(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const a=e.target;let s=e.attributeName,c=e.target.getAttribute(s);if("value"===s){const t=er(a),r=a.tagName;c=tr(a,r,t);const n=$t({maskInputOptions:this.maskInputOptions,tagName:r,type:t});c=qt({isMasked:Er(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,n),element:a,value:c,maskInputFn:this.maskInputFn})}if(Nr(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||c===e.oldValue)return;let l=this.attributes.find((t=>t.node===e.target));if("IFRAME"===a.tagName&&"src"===s&&!this.keepIframeSrcFn(c)){if(a.contentDocument)return;s="rr_src"}if(l||(l={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(l)),"type"===s&&"INPUT"===a.tagName&&"password"===(e.oldValue||"").toLowerCase()&&a.setAttribute("data-rr-is-password","true"),!yr(a.tagName,s)&&(l.attributes[s]=vr(this.doc,Xt(a.tagName),Xt(s),c,a,this.maskAttributeFn),"style"===s)){const s=t.createElement("span");e.oldValue&&s.setAttribute("style",e.oldValue);for(var r=0,n=Array.from(a.style);r<n.length;r++){const e=n[r],t=a.style.getPropertyValue(e),i=a.style.getPropertyPriority(e);t!==s.style.getPropertyValue(e)||i!==s.style.getPropertyPriority(e)?l.styleDiff[e]=""===i?t:[t,i]:l._unchangedStyles[e]=[t,i]}for(var i=0,o=Array.from(s.style);i<o.length;i++){const e=o[i];""===a.style.getPropertyValue(e)&&(l.styleDiff[e]=!1)}}break}case"childList":if(Nr(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const r=this.mirror.getId(t),n=zt(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Nr(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Rr(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(Qr(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||Mr(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Xr(r,n)]?Qr(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!(!zt(e.target)||!Vt(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(Rr(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[Xr(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Nr(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),Br(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Qr(e,t){e.delete(t),t.childNodes.forEach((t=>Qr(e,t)))}function en(e,t,r){return 0!==e.length&&tn(e,t,r)}function tn(e,t,r){const n=t.parentNode;if(!n)return!1;const i=r.getId(n);return!!e.some((e=>e.id===i))||tn(e,n,r)}function rn(e,t){return 0!==e.size&&nn(e,t)}function nn(e,t){const r=t.parentNode;return!!r&&(!!e.has(r)||nn(e,r))}let on;const an=e=>on?(...t)=>{try{return e(...t)}catch(e){if(on&&!0===on(e))return()=>{};throw e}}:e,sn=[];function cn(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function ln(e,t){var r,n;const i=new Jr;sn.push(i),i.init(e);let o=window.MutationObserver||window.__rrMutationObserver;const a=null===(n=null===(r=null===window||void 0===window?void 0:window.Zone)||void 0===r?void 0:r.__symbol__)||void 0===n?void 0:n.call(r,"MutationObserver");a&&window[a]&&(o=window[a]);const s=new o(an((t=>{e.onMutation&&!1===e.onMutation(t)||i.processMutations.bind(i)(t)})));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function un({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,sampling:a}){return Lr("scroll",an(Tr(an((a=>{const s=cn(a);if(!s||Nr(s,n,i,o,!0))return;const c=r.getId(s);if(s===t&&t.defaultView){const r=Cr(t.defaultView);e({id:c,x:r.left,y:r.top})}else e({id:c,x:s.scrollLeft,y:s.scrollTop})})),a.scroll||100)),t)}function dn(e,t){const r=Object.assign({},e);return t||delete r.userTriggered,r}const pn=["INPUT","TEXTAREA","SELECT"],hn=new WeakMap;function fn(e){return function(e,t){if(yn("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||yn("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||yn("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||yn("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){const r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}(e,[])}function mn(e,t,r){let n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function gn({mirror:e,stylesheetManager:t},r){var n,i,o;let a=null;a="#document"===r.nodeName?e.getId(r):e.getId(r.host);const s="#document"===r.nodeName?null===(n=r.defaultView)||void 0===n?void 0:n.Document:null===(o=null===(i=r.ownerDocument)||void 0===i?void 0:i.defaultView)||void 0===o?void 0:o.ShadowRoot,c=(null==s?void 0:s.prototype)?Object.getOwnPropertyDescriptor(null==s?void 0:s.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&s&&c?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get(){var e;return null===(e=c.get)||void 0===e?void 0:e.call(this)},set(e){var r;const n=null===(r=c.set)||void 0===r?void 0:r.call(this,e);if(null!==a&&-1!==a)try{t.adoptStyleSheets(e,a)}catch(e){}return n}}),an((()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))):()=>{}}function vn(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};!function(e,t){const r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,a=e.viewportResizeCb,s=e.inputCb,c=e.mediaInteractionCb,l=e.styleSheetRuleCb,u=e.styleDeclarationCb,d=e.canvasMutationCb,p=e.fontCb,h=e.selectionCb,f=e.customElementCb;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),r(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),n(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),i(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),o(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),a(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),s(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),c(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),l(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),u(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),d(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),p(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),h(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),f(...e)}}(e,t);const n=ln(e,e.doc),i=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){if(!1===t.mousemove)return()=>{};const i="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let a,s=[];const c=Tr(an((t=>{const r=Date.now()-a;e(s.map((e=>(e.timeOffset-=r,e))),t),s=[],a=null})),o),l=an(Tr(an((e=>{const t=cn(e),r=jr(e)?e.changedTouches[0]:e,i=r.clientX,o=r.clientY;a||(a=Ar()),s.push({x:i,y:o,id:n.getId(t),timeOffset:Ar()-a}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?Vr.Drag:e instanceof MouseEvent?Vr.MouseMove:Vr.TouchMove)})),i,{trailing:!1})),u=[Lr("mousemove",l,r),Lr("touchmove",l,r),Lr("drag",l,r)];return an((()=>{u.forEach((e=>e()))}))}(e),o=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,sampling:a}){if(!1===a.mouseInteraction)return()=>{};const s=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,c=[];let l=null;return Object.keys(Yr).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e])).forEach((a=>{let s=Xt(a);const u=(t=>a=>{const s=cn(a);if(Nr(s,n,i,o,!0))return;let c=null,u=t;if("pointerType"in a){switch(a.pointerType){case"mouse":c=Wr.Mouse;break;case"touch":c=Wr.Touch;break;case"pen":c=Wr.Pen}c===Wr.Touch?Yr[t]===Yr.MouseDown?u="TouchStart":Yr[t]===Yr.MouseUp&&(u="TouchEnd"):Wr.Pen}else jr(a)&&(c=Wr.Touch);null!==c?(l=c,(u.startsWith("Touch")&&c===Wr.Touch||u.startsWith("Mouse")&&c===Wr.Mouse)&&(c=null)):Yr[t]===Yr.Click&&(c=l,l=null);const d=jr(a)?a.changedTouches[0]:a;if(!d)return;const p=r.getId(s),h=d.clientX,f=d.clientY;an(e)(Object.assign({type:Yr[u],id:p,x:h,y:f},null!==c&&{pointerType:c}))})(a);if(window.PointerEvent)switch(Yr[a]){case Yr.MouseDown:case Yr.MouseUp:s=s.replace("mouse","pointer");break;case Yr.TouchStart:case Yr.TouchEnd:return}c.push(Lr(s,u,t))})),an((()=>{c.forEach((e=>e()))}))}(e),a=un(e),s=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return Lr("resize",an(Tr(an((()=>{const t=kr(),i=Dr();r===t&&n===i||(e({width:Number(i),height:Number(t)}),r=t,n=i)})),200)),t)}(e,{win:r}),c=function({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,ignoreClass:a,ignoreSelector:s,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:m}){function g(e){let r=cn(e);const u=e.isTrusted,g=r&&Jt(r.tagName);if("OPTION"===g&&(r=r.parentElement),!r||!g||pn.indexOf(g)<0||Nr(r,n,i,o,!0))return;const y=r;if(y.classList.contains(a)||s&&y.matches(s))return;const b=er(r);let _=tr(y,g,b),E=!1;const w=$t({maskInputOptions:c,tagName:g,type:b}),x=Er(r,p,f,h,m,w);"radio"!==b&&"checkbox"!==b||(E=r.checked),_=qt({isMasked:x,element:r,value:_,maskInputFn:l}),v(r,an(dn)({text:_,isChecked:E,userTriggered:u},d));const L=r.name;"radio"===b&&L&&E&&t.querySelectorAll(`input[type="radio"][name="${L}"]`).forEach((e=>{if(e!==r){const t=qt({isMasked:x,element:e,value:tr(e,g,b),maskInputFn:l});v(e,an(dn)({text:t,isChecked:!E,userTriggered:!1},d))}}))}function v(t,n){const i=hn.get(t);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){hn.set(t,n);const i=r.getId(t);an(e)(Object.assign(Object.assign({},n),{id:i}))}}const y=("last"===u.input?["change"]:["input","change"]).map((e=>Lr(e,an(g),t))),b=t.defaultView;if(!b)return()=>{y.forEach((e=>e()))};const _=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),E=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return _&&_.set&&y.push(...E.map((e=>Pr(e[0],e[1],{set(){an(g)({target:this,isTrusted:!1})}},!1,b)))),an((()=>{y.forEach((e=>e()))}))}(e),l=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:i,sampling:o,doc:a}){const s=an((a=>Tr(an((o=>{const s=cn(o);if(!s||Nr(s,t,r,n,!0))return;const c=s.currentTime,l=s.volume,u=s.muted,d=s.playbackRate;e({type:a,id:i.getId(s),currentTime:c,volume:l,muted:u,playbackRate:d})})),o.media||500))),c=[Lr("play",s(0),a),Lr("pause",s(1),a),Lr("seeked",s(2),a),Lr("volumechange",s(3),a),Lr("ratechange",s(4),a)];return an((()=>{c.forEach((e=>e()))}))}(e),u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const i=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:an(((n,i,o)=>{const a=kt(o,2),s=a[0],c=a[1],l=mn(i,t,r.styleMirror),u=l.id,d=l.styleId;return(u&&-1!==u||d&&-1!==d)&&e({id:u,styleId:d,adds:[{rule:s,index:c}]}),n.apply(i,o)}))});const o=n.CSSStyleSheet.prototype.deleteRule;let a,s;n.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:an(((n,i,o)=>{const a=kt(o,1)[0],s=mn(i,t,r.styleMirror),c=s.id,l=s.styleId;return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,removes:[{index:a}]}),n.apply(i,o)}))}),n.CSSStyleSheet.prototype.replace&&(a=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:an(((n,i,o)=>{const a=kt(o,1)[0],s=mn(i,t,r.styleMirror),c=s.id,l=s.styleId;return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,replace:a}),n.apply(i,o)}))})),n.CSSStyleSheet.prototype.replaceSync&&(s=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:an(((n,i,o)=>{const a=kt(o,1)[0],s=mn(i,t,r.styleMirror),c=s.id,l=s.styleId;return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,replaceSync:a}),n.apply(i,o)}))}));const c={};bn("CSSGroupingRule")?c.CSSGroupingRule=n.CSSGroupingRule:(bn("CSSMediaRule")&&(c.CSSMediaRule=n.CSSMediaRule),bn("CSSConditionRule")&&(c.CSSConditionRule=n.CSSConditionRule),bn("CSSSupportsRule")&&(c.CSSSupportsRule=n.CSSSupportsRule));const l={};return Object.entries(c).forEach((([n,i])=>{l[n]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(l[n].insertRule,{apply:an(((n,i,o)=>{const a=kt(o,2),s=a[0],c=a[1],l=mn(i.parentStyleSheet,t,r.styleMirror),u=l.id,d=l.styleId;return(u&&-1!==u||d&&-1!==d)&&e({id:u,styleId:d,adds:[{rule:s,index:[...fn(i),c||0]}]}),n.apply(i,o)}))}),i.prototype.deleteRule=new Proxy(l[n].deleteRule,{apply:an(((n,i,o)=>{const a=kt(o,1)[0],s=mn(i.parentStyleSheet,t,r.styleMirror),c=s.id,l=s.styleId;return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,removes:[{index:[...fn(i),a]}]}),n.apply(i,o)}))})})),an((()=>{n.CSSStyleSheet.prototype.insertRule=i,n.CSSStyleSheet.prototype.deleteRule=o,a&&(n.CSSStyleSheet.prototype.replace=a),s&&(n.CSSStyleSheet.prototype.replaceSync=s),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule}))}))}(e,{win:r}),d=gn(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:i}){const o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:an(((i,a,s)=>{var c;const l=kt(s,3),u=l[0],d=l[1],p=l[2];if(r.has(u))return o.apply(a,[u,d,p]);const h=mn(null===(c=a.parentRule)||void 0===c?void 0:c.parentStyleSheet,t,n.styleMirror),f=h.id,m=h.styleId;return(f&&-1!==f||m&&-1!==m)&&e({id:f,styleId:m,set:{property:u,value:d,priority:p},index:fn(a.parentRule)}),i.apply(a,s)}))});const a=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:an(((i,o,s)=>{var c;const l=kt(s,1)[0];if(r.has(l))return a.apply(o,[l]);const u=mn(null===(c=o.parentRule)||void 0===c?void 0:c.parentStyleSheet,t,n.styleMirror),d=u.id,p=u.styleId;return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,remove:{property:l},index:fn(o.parentRule)}),i.apply(o,s)}))}),an((()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=a}))}(e,{win:r}),h=e.collectFonts?function({fontCb:e,doc:t}){const r=t.defaultView;if(!r)return()=>{};const n=[],i=new WeakMap,o=r.FontFace;r.FontFace=function(e,t,r){const n=new o(e,t,r);return i.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};const a=Ir(t.fonts,"add",(function(t){return function(r){return setTimeout(an((()=>{const t=i.get(r);t&&(e(t),i.delete(r))})),0),t.apply(this,[r])}}));return n.push((()=>{r.FontFace=o})),n.push(a),an((()=>{n.forEach((e=>e()))}))}(e):()=>{},f=function(e){const t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.unblockSelector,a=e.selectionCb;let s=!0;const c=an((()=>{const e=t.getSelection();if(!e||s&&(null==e?void 0:e.isCollapsed))return;s=e.isCollapsed||!1;const c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const a=e.getRangeAt(t),s=a.startContainer,l=a.startOffset,u=a.endContainer,d=a.endOffset;Nr(s,n,i,o,!0)||Nr(u,n,i,o,!0)||c.push({start:r.getId(s),startOffset:l,end:r.getId(u),endOffset:d})}a({ranges:c})}));return c(),Lr("selectionchange",c)}(e),m=function({doc:e,customElementCb:t}){const r=e.defaultView;return r&&r.customElements?Ir(r.customElements,"define",(function(e){return function(r,n,i){try{t({define:{name:r}})}catch(e){}return e.apply(this,[r,n,i])}})):()=>{}}(e),g=[];var v,y=Dt(e.plugins);try{for(y.s();!(v=y.n()).done;){const e=v.value;g.push(e.observer(e.callback,r,e.options))}}catch(e){y.e(e)}finally{y.f()}return an((()=>{sn.forEach((e=>e.reset())),n.disconnect(),i(),o(),a(),s(),c(),l(),u(),d(),p(),h(),f(),m(),g.forEach((e=>e()))}))}function yn(e){return void 0!==window[e]}function bn(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class _n{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){const i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e);let a=i.get(t);return a||(a=this.generateIdFn(),i.set(t,a),o.set(a,t)),a}getIds(e,t){const r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,r,n)))}getRemoteId(e,t,r){const n=r||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:n.get(t)||-1}getRemoteIds(e,t){const r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,r)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class En{constructor(){this.crossOriginIframeMirror=new _n(ir),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class wn{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new _n(ir),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new _n(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var r;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(r=this.loadListener)||void 0===r||r.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const r=this.crossOriginIframeMap.get(e.source);if(!r)return;const n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}transformCrossOriginEvent(e,t){var r;switch(t.type){case zr.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:zr.IncrementalSnapshot,data:{source:Vr.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case zr.Meta:case zr.Load:case zr.DomContentLoaded:return!1;case zr.Plugin:return t;case zr.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case zr.IncrementalSnapshot:switch(t.data.source){case Vr.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Vr.Drag:case Vr.TouchMove:case Vr.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Vr.ViewportResize:return!1;case Vr.MediaInteraction:case Vr.MouseInteraction:case Vr.Scroll:case Vr.CanvasMutation:case Vr.Input:return this.replaceIds(t.data,e,["id"]),t;case Vr.StyleSheetRule:case Vr.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Vr.Font:return t;case Vr.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case Vr.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null===(r=t.data.styles)||void 0===r||r.forEach((t=>{this.replaceStyleIds(t,e,["styleId"])})),t}}return!1}replace(e,t,r,n){var i,o=Dt(n);try{for(o.s();!(i=o.n()).done;){const n=i.value;(Array.isArray(t[n])||"number"==typeof t[n])&&(Array.isArray(t[n])?t[n]=e.getIds(r,t[n]):t[n]=e.getId(r,t[n]))}}catch(e){o.e(e)}finally{o.f()}return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===Ht.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class xn{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class Ln{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!Vt(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const r=ln(Object.assign(Object.assign({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push((()=>r.disconnect())),this.restoreHandlers.push(un(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(gn({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const r=this;this.restoreHandlers.push(Ir(e.prototype,"attachShadow",(function(e){return function(n){const i=e.call(this,n);return this.shadowRoot&&Hr(this)&&r.addShadowRoot(this.shadowRoot,t),i}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var On="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Sn="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Tn=0;Tn<64;Tn++)Sn[On.charCodeAt(Tn)]=Tn;const Pn=new Map,In=(e,t,r)=>{if(!e||!kn(e,t)&&"object"!=typeof e)return;const n=function(e,t){let r=Pn.get(e);return r||(r=new Map,Pn.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name);let i=n.indexOf(e);return-1===i&&(i=n.length,n.push(e)),i};function An(e,t,r){if(e instanceof Array)return e.map((e=>An(e,t,r)));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const t=e.constructor.name,r=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=On[r[t]>>2],i+=On[(3&r[t])<<4|r[t+1]>>4],i+=On[(15&r[t+1])<<2|r[t+2]>>6],i+=On[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i}(e);return{rr_type:t,base64:r}}return e instanceof DataView?{rr_type:e.constructor.name,args:[An(e.buffer,t,r),e.byteOffset,e.byteLength]}:e instanceof HTMLImageElement?{rr_type:e.constructor.name,src:e.src}:e instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:e.toDataURL()}:e instanceof ImageData?{rr_type:e.constructor.name,args:[An(e.data,t,r),e.width,e.height]}:kn(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:In(e,t,r)}:e}const Cn=(e,t,r)=>[...e].map((e=>An(e,t,r))),kn=(e,t)=>{const r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((e=>"function"==typeof t[e]));return Boolean(r.find((r=>e instanceof t[r])))};function Dn(e,t,r,n,i){const o=[];try{const a=Ir(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(o,...a){if(!Nr(this,t,r,n,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(o);if("__context"in this||(this.__context=e),i&&["webgl","webgl2"].includes(e))if(a[0]&&"object"==typeof a[0]){const e=a[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[o,...a])}}));o.push(a)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach((e=>e()))}}function Nn(e,t,r,n,i,o,a,s){const c=[];var l,u=Dt(Object.getOwnPropertyNames(e));try{for(u.s();!(l=u.n()).done;){const a=l.value;if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if("function"!=typeof e[a])continue;const l=Ir(e,a,(function(e){return function(...c){const l=e.apply(this,c);if(In(l,s,this),"tagName"in this.canvas&&!Nr(this.canvas,n,i,o,!0)){const e=Cn([...c],s,this),n={type:t,property:a,args:e};r(this.canvas,n)}return l}}));c.push(l)}catch(n){const i=Pr(e,a,{set(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});c.push(i)}}}catch(e){u.e(e)}finally{u.f()}return c}var Rn,Mn=function(e){return Rn=Rn||function(e,t,r){var n=function(e,t){var r=atob(e);return r}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24gKCkgewogICAgJ3VzZSBzdHJpY3QnOwoKICAgIC8qISAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KICAgIENvcHlyaWdodCAoYykgTWljcm9zb2Z0IENvcnBvcmF0aW9uLg0KDQogICAgUGVybWlzc2lvbiB0byB1c2UsIGNvcHksIG1vZGlmeSwgYW5kL29yIGRpc3RyaWJ1dGUgdGhpcyBzb2Z0d2FyZSBmb3IgYW55DQogICAgcHVycG9zZSB3aXRoIG9yIHdpdGhvdXQgZmVlIGlzIGhlcmVieSBncmFudGVkLg0KDQogICAgVEhFIFNPRlRXQVJFIElTIFBST1ZJREVEICJBUyBJUyIgQU5EIFRIRSBBVVRIT1IgRElTQ0xBSU1TIEFMTCBXQVJSQU5USUVTIFdJVEgNCiAgICBSRUdBUkQgVE8gVEhJUyBTT0ZUV0FSRSBJTkNMVURJTkcgQUxMIElNUExJRUQgV0FSUkFOVElFUyBPRiBNRVJDSEFOVEFCSUxJVFkNCiAgICBBTkQgRklUTkVTUy4gSU4gTk8gRVZFTlQgU0hBTEwgVEhFIEFVVEhPUiBCRSBMSUFCTEUgRk9SIEFOWSBTUEVDSUFMLCBESVJFQ1QsDQogICAgSU5ESVJFQ1QsIE9SIENPTlNFUVVFTlRJQUwgREFNQUdFUyBPUiBBTlkgREFNQUdFUyBXSEFUU09FVkVSIFJFU1VMVElORyBGUk9NDQogICAgTE9TUyBPRiBVU0UsIERBVEEgT1IgUFJPRklUUywgV0hFVEhFUiBJTiBBTiBBQ1RJT04gT0YgQ09OVFJBQ1QsIE5FR0xJR0VOQ0UgT1INCiAgICBPVEhFUiBUT1JUSU9VUyBBQ1RJT04sIEFSSVNJTkcgT1VUIE9GIE9SIElOIENPTk5FQ1RJT04gV0lUSCBUSEUgVVNFIE9SDQogICAgUEVSRk9STUFOQ0UgT0YgVEhJUyBTT0ZUV0FSRS4NCiAgICAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiAqLw0KDQogICAgZnVuY3Rpb24gX19hd2FpdGVyKHRoaXNBcmcsIF9hcmd1bWVudHMsIFAsIGdlbmVyYXRvcikgew0KICAgICAgICBmdW5jdGlvbiBhZG9wdCh2YWx1ZSkgeyByZXR1cm4gdmFsdWUgaW5zdGFuY2VvZiBQID8gdmFsdWUgOiBuZXcgUChmdW5jdGlvbiAocmVzb2x2ZSkgeyByZXNvbHZlKHZhbHVlKTsgfSk7IH0NCiAgICAgICAgcmV0dXJuIG5ldyAoUCB8fCAoUCA9IFByb21pc2UpKShmdW5jdGlvbiAocmVzb2x2ZSwgcmVqZWN0KSB7DQogICAgICAgICAgICBmdW5jdGlvbiBmdWxmaWxsZWQodmFsdWUpIHsgdHJ5IHsgc3RlcChnZW5lcmF0b3IubmV4dCh2YWx1ZSkpOyB9IGNhdGNoIChlKSB7IHJlamVjdChlKTsgfSB9DQogICAgICAgICAgICBmdW5jdGlvbiByZWplY3RlZCh2YWx1ZSkgeyB0cnkgeyBzdGVwKGdlbmVyYXRvclsidGhyb3ciXSh2YWx1ZSkpOyB9IGNhdGNoIChlKSB7IHJlamVjdChlKTsgfSB9DQogICAgICAgICAgICBmdW5jdGlvbiBzdGVwKHJlc3VsdCkgeyByZXN1bHQuZG9uZSA/IHJlc29sdmUocmVzdWx0LnZhbHVlKSA6IGFkb3B0KHJlc3VsdC52YWx1ZSkudGhlbihmdWxmaWxsZWQsIHJlamVjdGVkKTsgfQ0KICAgICAgICAgICAgc3RlcCgoZ2VuZXJhdG9yID0gZ2VuZXJhdG9yLmFwcGx5KHRoaXNBcmcsIF9hcmd1bWVudHMgfHwgW10pKS5uZXh0KCkpOw0KICAgICAgICB9KTsNCiAgICB9CgogICAgLyoKICAgICAqIGJhc2U2NC1hcnJheWJ1ZmZlciAxLjAuMSA8aHR0cHM6Ly9naXRodWIuY29tL25pa2xhc3ZoL2Jhc2U2NC1hcnJheWJ1ZmZlcj4KICAgICAqIENvcHlyaWdodCAoYykgMjAyMSBOaWtsYXMgdm9uIEhlcnR6ZW4gPGh0dHBzOi8vaGVydHplbi5jb20+CiAgICAgKiBSZWxlYXNlZCB1bmRlciBNSVQgTGljZW5zZQogICAgICovCiAgICB2YXIgY2hhcnMgPSAnQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyc7CiAgICAvLyBVc2UgYSBsb29rdXAgdGFibGUgdG8gZmluZCB0aGUgaW5kZXguCiAgICB2YXIgbG9va3VwID0gdHlwZW9mIFVpbnQ4QXJyYXkgPT09ICd1bmRlZmluZWQnID8gW10gOiBuZXcgVWludDhBcnJheSgyNTYpOwogICAgZm9yICh2YXIgaSA9IDA7IGkgPCBjaGFycy5sZW5ndGg7IGkrKykgewogICAgICAgIGxvb2t1cFtjaGFycy5jaGFyQ29kZUF0KGkpXSA9IGk7CiAgICB9CiAgICB2YXIgZW5jb2RlID0gZnVuY3Rpb24gKGFycmF5YnVmZmVyKSB7CiAgICAgICAgdmFyIGJ5dGVzID0gbmV3IFVpbnQ4QXJyYXkoYXJyYXlidWZmZXIpLCBpLCBsZW4gPSBieXRlcy5sZW5ndGgsIGJhc2U2NCA9ICcnOwogICAgICAgIGZvciAoaSA9IDA7IGkgPCBsZW47IGkgKz0gMykgewogICAgICAgICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaV0gPj4gMl07CiAgICAgICAgICAgIGJhc2U2NCArPSBjaGFyc1soKGJ5dGVzW2ldICYgMykgPDwgNCkgfCAoYnl0ZXNbaSArIDFdID4+IDQpXTsKICAgICAgICAgICAgYmFzZTY0ICs9IGNoYXJzWygoYnl0ZXNbaSArIDFdICYgMTUpIDw8IDIpIHwgKGJ5dGVzW2kgKyAyXSA+PiA2KV07CiAgICAgICAgICAgIGJhc2U2NCArPSBjaGFyc1tieXRlc1tpICsgMl0gJiA2M107CiAgICAgICAgfQogICAgICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgICAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgJz0nOwogICAgICAgIH0KICAgICAgICBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgICAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgJz09JzsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIGJhc2U2NDsKICAgIH07CgogICAgY29uc3QgbGFzdEJsb2JNYXAgPSBuZXcgTWFwKCk7DQogICAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gbmV3IE1hcCgpOw0KICAgIGZ1bmN0aW9uIGdldFRyYW5zcGFyZW50QmxvYkZvcih3aWR0aCwgaGVpZ2h0LCBkYXRhVVJMT3B0aW9ucykgew0KICAgICAgICByZXR1cm4gX19hd2FpdGVyKHRoaXMsIHZvaWQgMCwgdm9pZCAwLCBmdW5jdGlvbiogKCkgew0KICAgICAgICAgICAgY29uc3QgaWQgPSBgJHt3aWR0aH0tJHtoZWlnaHR9YDsNCiAgICAgICAgICAgIGlmICgnT2Zmc2NyZWVuQ2FudmFzJyBpbiBnbG9iYWxUaGlzKSB7DQogICAgICAgICAgICAgICAgaWYgKHRyYW5zcGFyZW50QmxvYk1hcC5oYXMoaWQpKQ0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gdHJhbnNwYXJlbnRCbG9iTWFwLmdldChpZCk7DQogICAgICAgICAgICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsNCiAgICAgICAgICAgICAgICBvZmZzY3JlZW4uZ2V0Q29udGV4dCgnMmQnKTsNCiAgICAgICAgICAgICAgICBjb25zdCBibG9iID0geWllbGQgb2Zmc2NyZWVuLmNvbnZlcnRUb0Jsb2IoZGF0YVVSTE9wdGlvbnMpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0geWllbGQgYmxvYi5hcnJheUJ1ZmZlcigpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7DQogICAgICAgICAgICAgICAgdHJhbnNwYXJlbnRCbG9iTWFwLnNldChpZCwgYmFzZTY0KTsNCiAgICAgICAgICAgICAgICByZXR1cm4gYmFzZTY0Ow0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgZWxzZSB7DQogICAgICAgICAgICAgICAgcmV0dXJuICcnOw0KICAgICAgICAgICAgfQ0KICAgICAgICB9KTsNCiAgICB9DQogICAgY29uc3Qgd29ya2VyID0gc2VsZjsNCiAgICB3b3JrZXIub25tZXNzYWdlID0gZnVuY3Rpb24gKGUpIHsNCiAgICAgICAgcmV0dXJuIF9fYXdhaXRlcih0aGlzLCB2b2lkIDAsIHZvaWQgMCwgZnVuY3Rpb24qICgpIHsNCiAgICAgICAgICAgIGlmICgnT2Zmc2NyZWVuQ2FudmFzJyBpbiBnbG9iYWxUaGlzKSB7DQogICAgICAgICAgICAgICAgY29uc3QgeyBpZCwgYml0bWFwLCB3aWR0aCwgaGVpZ2h0LCBkYXRhVVJMT3B0aW9ucyB9ID0gZS5kYXRhOw0KICAgICAgICAgICAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zKTsNCiAgICAgICAgICAgICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGN0eCA9IG9mZnNjcmVlbi5nZXRDb250ZXh0KCcyZCcpOw0KICAgICAgICAgICAgICAgIGN0eC5kcmF3SW1hZ2UoYml0bWFwLCAwLCAwKTsNCiAgICAgICAgICAgICAgICBiaXRtYXAuY2xvc2UoKTsNCiAgICAgICAgICAgICAgICBjb25zdCBibG9iID0geWllbGQgb2Zmc2NyZWVuLmNvbnZlcnRUb0Jsb2IoZGF0YVVSTE9wdGlvbnMpOw0KICAgICAgICAgICAgICAgIGNvbnN0IHR5cGUgPSBibG9iLnR5cGU7DQogICAgICAgICAgICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSB5aWVsZCBibG9iLmFycmF5QnVmZmVyKCk7DQogICAgICAgICAgICAgICAgY29uc3QgYmFzZTY0ID0gZW5jb2RlKGFycmF5QnVmZmVyKTsNCiAgICAgICAgICAgICAgICBpZiAoIWxhc3RCbG9iTWFwLmhhcyhpZCkgJiYgKHlpZWxkIHRyYW5zcGFyZW50QmFzZTY0KSA9PT0gYmFzZTY0KSB7DQogICAgICAgICAgICAgICAgICAgIGxhc3RCbG9iTWFwLnNldChpZCwgYmFzZTY0KTsNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkIH0pOw0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KQ0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7DQogICAgICAgICAgICAgICAgd29ya2VyLnBvc3RNZXNzYWdlKHsNCiAgICAgICAgICAgICAgICAgICAgaWQsDQogICAgICAgICAgICAgICAgICAgIHR5cGUsDQogICAgICAgICAgICAgICAgICAgIGJhc2U2NCwNCiAgICAgICAgICAgICAgICAgICAgd2lkdGgsDQogICAgICAgICAgICAgICAgICAgIGhlaWdodCwNCiAgICAgICAgICAgICAgICB9KTsNCiAgICAgICAgICAgICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7DQogICAgICAgICAgICB9DQogICAgICAgICAgICBlbHNlIHsNCiAgICAgICAgICAgICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsNCiAgICAgICAgICAgIH0NCiAgICAgICAgfSk7DQogICAgfTsKCn0pKCk7Cgo="),i=n.indexOf("\n",10)+1,o=n.substring(i)+"",a=new Blob([o],{type:"application/javascript"});return URL.createObjectURL(a)}(),new Worker(Rn,e)};class jn{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}}class Fn{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const t=e.sampling,r=void 0===t?"all":t,n=e.win,i=e.blockClass,o=e.blockSelector,a=e.unblockSelector,s=e.recordCanvas,c=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,s&&"all"===r&&this.initCanvasMutationObserver(n,i,o,a),s&&"number"==typeof r&&this.initCanvasFPSObserver(r,n,i,o,a,{dataURLOptions:c})}initCanvasFPSObserver(e,t,r,n,i,o){const a=Dn(t,r,n,i,!0),s=new Map,c=new Mn;c.onmessage=e=>{const t=e.data.id;if(s.set(t,!1),!("base64"in e.data))return;const r=e.data,n=r.base64,i=r.type,o=r.width,a=r.height;this.mutationCb({id:t,type:Kr["2D"],commands:[{property:"clearRect",args:[0,0,o,a]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})};const l=1e3/e;let u,d=0;const p=e=>{d&&e-d<l||(d=e,(()=>{const e=[];return t.document.querySelectorAll("canvas").forEach((t=>{Nr(t,r,n,i,!0)||e.push(t)})),e})().forEach((e=>function(e,t,r,n){return new(r||(r=Promise))((function(t,i){function o(e){try{s(n.next(e))}catch(e){i(e)}}function a(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var n;e.done?t(e.value):(n=e.value,n instanceof r?n:new r((function(e){e(n)}))).then(o,a)}s((n=n.apply(e,[])).next())}))}(this,0,void 0,Ct().mark((function t(){var r,n,i,a;return Ct().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.mirror.getId(e),!s.get(n)){t.next=3;break}return t.abrupt("return");case 3:return s.set(n,!0),["webgl","webgl2"].includes(e.__context)&&(i=e.getContext(e.__context),!1===(null===(r=null==i?void 0:i.getContextAttributes())||void 0===r?void 0:r.preserveDrawingBuffer)&&i.clear(i.COLOR_BUFFER_BIT)),t.next=7,createImageBitmap(e);case 7:a=t.sent,c.postMessage({id:n,bitmap:a,width:e.width,height:e.height,dataURLOptions:o.dataURLOptions},[a]);case 9:case"end":return t.stop()}}),t,this)})))))),u=requestAnimationFrame(p)};u=requestAnimationFrame(p),this.resetObservers=()=>{a(),cancelAnimationFrame(u)}}initCanvasMutationObserver(e,t,r,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=Dn(e,t,r,n,!1),o=function(e,t,r,n,i){const o=[];var a,s=Dt(Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype));try{for(s.s();!(a=s.n()).done;){const s=a.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])continue;const a=Ir(t.CanvasRenderingContext2D.prototype,s,(function(o){return function(...a){return Nr(this.canvas,r,n,i,!0)||setTimeout((()=>{const r=Cn([...a],t,this);e(this.canvas,{type:Kr["2D"],property:s,args:r})}),0),o.apply(this,a)}}));o.push(a)}catch(r){const n=Pr(t.CanvasRenderingContext2D.prototype,s,{set(t){e(this.canvas,{type:Kr["2D"],property:s,args:[t],setter:!0})}});o.push(n)}}}catch(e){s.e(e)}finally{s.f()}return()=>{o.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r,n),a=function(e,t,r,n,i,o){const a=[];return a.push(...Nn(t.WebGLRenderingContext.prototype,Kr.WebGL,e,r,n,i,0,t)),void 0!==t.WebGL2RenderingContext&&a.push(...Nn(t.WebGL2RenderingContext.prototype,Kr.WebGL2,e,r,n,i,0,t)),()=>{a.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r,n,this.mirror);this.resetObservers=()=>{i(),o(),a()}}startPendingCanvasMutationFlusher(){requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{const r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)})),requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;const n=r.map((e=>{const t=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(e,["type"]);return t})),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}class Zn{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Gr,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const r={id:t,styleIds:[]},n=[];var i,o=Dt(e);try{for(o.s();!(i=o.n()).done;){const e=i.value;let t;this.styleMirror.has(e)?t=this.styleMirror.getId(e):(t=this.styleMirror.add(e),n.push({styleId:t,rules:Array.from(e.rules||CSSRule,((e,t)=>({rule:Wt(e),index:t})))})),r.styleIds.push(t)}}catch(e){o.e(e)}finally{o.f()}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Bn{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){requestAnimationFrame((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const r=this.nodeMap.get(e);return r&&Array.from(r).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function Gn(e){return Object.assign(Object.assign({},e),{timestamp:Ar()})}let Un,Hn,zn,Vn=!1;const Yn=new Kt;function Wn(e={}){const t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,o=void 0===i?"rr-block":i,a=e.blockSelector,s=void 0===a?null:a,c=e.unblockSelector,l=void 0===c?null:c,u=e.ignoreClass,d=void 0===u?"rr-ignore":u,p=e.ignoreSelector,h=void 0===p?null:p,f=e.maskAllText,m=void 0!==f&&f,g=e.maskTextClass,v=void 0===g?"rr-mask":g,y=e.unmaskTextClass,b=void 0===y?null:y,_=e.maskTextSelector,E=void 0===_?null:_,w=e.unmaskTextSelector,x=void 0===w?null:w,L=e.inlineStylesheet,O=void 0===L||L,S=e.maskAllInputs,T=e.maskInputOptions,P=e.slimDOMOptions,I=e.maskAttributeFn,A=e.maskInputFn,C=e.maskTextFn,k=e.hooks,D=e.packFn,N=e.sampling,R=void 0===N?{}:N,M=e.dataURLOptions,j=void 0===M?{}:M,F=e.mousemoveWait,Z=e.recordCanvas,B=void 0!==Z&&Z,G=e.recordCrossOriginIframes,U=void 0!==G&&G,H=e.recordAfter,z=void 0===H?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":H,V=e.userTriggeredOnInput,Y=void 0!==V&&V,W=e.collectFonts,K=void 0!==W&&W,$=e.inlineImages,q=void 0!==$&&$,X=e.plugins,J=e.keepIframeSrcFn,Q=void 0===J?()=>!1:J,ee=e.ignoreCSSAttributes,te=void 0===ee?new Set([]):ee,re=e.errorHandler,ne=e.onMutation;!function(e){on=e}(re);const ie=!U||window.parent===window;let oe=!1;if(!ie)try{window.parent.document&&(oe=!1)}catch(e){oe=!0}if(ie&&!t)throw new Error("emit function is required");void 0!==F&&void 0===R.mousemove&&(R.mousemove=F),Yn.reset();const ae=!0===S?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==T?T:{},se=!0===P||"all"===P?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===P,headMetaDescKeywords:"all"===P}:P||{};let ce;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let le=0;const ue=e=>{var t,r=Dt(X||[]);try{for(r.s();!(t=r.n()).done;){const r=t.value;r.eventProcessor&&(e=r.eventProcessor(e))}}catch(e){r.e(e)}finally{r.f()}return D&&!oe&&(e=D(e)),e};Un=(e,i)=>{var o;if(!(null===(o=sn[0])||void 0===o?void 0:o.isFrozen())||e.type===zr.FullSnapshot||e.type===zr.IncrementalSnapshot&&e.data.source===Vr.Mutation||sn.forEach((e=>e.unfreeze())),ie)null==t||t(ue(e),i);else if(oe){const t={type:"rrweb",event:ue(e),origin:window.location.origin,isCheckout:i};window.parent.postMessage(t,"*")}if(e.type===zr.FullSnapshot)ce=e,le=0;else if(e.type===zr.IncrementalSnapshot){if(e.data.source===Vr.Mutation&&e.data.isAttachIframe)return;le++;const t=n&&le>=n,i=r&&e.timestamp-ce.timestamp>r;(t||i)&&Hn(!0)}};const de=e=>{Un(Gn({type:zr.IncrementalSnapshot,data:Object.assign({source:Vr.Mutation},e)}))},pe=e=>Un(Gn({type:zr.IncrementalSnapshot,data:Object.assign({source:Vr.Scroll},e)})),he=e=>Un(Gn({type:zr.IncrementalSnapshot,data:Object.assign({source:Vr.CanvasMutation},e)})),fe=new Zn({mutationCb:de,adoptedStyleSheetCb:e=>Un(Gn({type:zr.IncrementalSnapshot,data:Object.assign({source:Vr.AdoptedStyleSheet},e)}))}),me="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new En:new wn({mirror:Yn,mutationCb:de,stylesheetManager:fe,recordCrossOriginIframes:U,wrappedEmit:Un});var ge,ve=Dt(X||[]);try{for(ve.s();!(ge=ve.n()).done;){const e=ge.value;e.getMirror&&e.getMirror({nodeMirror:Yn,crossOriginIframeMirror:me.crossOriginIframeMirror,crossOriginIframeStyleMirror:me.crossOriginIframeStyleMirror})}}catch(e){ve.e(e)}finally{ve.f()}const ye=new Bn;zn="boolean"==typeof __RRWEB_EXCLUDE_CANVAS__&&__RRWEB_EXCLUDE_CANVAS__?new jn:new Fn({recordCanvas:B,mutationCb:he,win:window,blockClass:o,blockSelector:s,unblockSelector:l,mirror:Yn,sampling:R.canvas,dataURLOptions:j});const be="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new xn:new Ln({mutationCb:de,scrollCb:pe,bypassOptions:{onMutation:ne,blockClass:o,blockSelector:s,unblockSelector:l,maskAllText:m,maskTextClass:v,unmaskTextClass:b,maskTextSelector:E,unmaskTextSelector:x,inlineStylesheet:O,maskInputOptions:ae,dataURLOptions:j,maskAttributeFn:I,maskTextFn:C,maskInputFn:A,recordCanvas:B,inlineImages:q,sampling:R,slimDOMOptions:se,iframeManager:me,stylesheetManager:fe,canvasManager:zn,keepIframeSrcFn:Q,processedNodeManager:ye},mirror:Yn});Hn=(e=!1)=>{Un(Gn({type:zr.Meta,data:{href:window.location.href,width:Dr(),height:kr()}}),e),fe.reset(),be.init(),sn.forEach((e=>e.lock()));const t=function(e,t){const r=t||{},n=r.mirror,i=void 0===n?new Kt:n,o=r.blockClass,a=r.blockSelector,s=r.unblockSelector,c=r.maskAllText,l=r.maskTextClass,u=r.unmaskTextClass,d=r.maskTextSelector,p=r.unmaskTextSelector,h=r.inlineStylesheet,f=r.inlineImages,m=r.recordCanvas,g=r.maskAllInputs,v=void 0!==g&&g,y=r.slimDOM,b=void 0!==y&&y,_=r.keepIframeSrcFn;return xr(e,{doc:e,mirror:i,blockClass:void 0===o?"rr-block":o,blockSelector:void 0===a?null:a,unblockSelector:void 0===s?null:s,maskAllText:void 0!==c&&c,maskTextClass:void 0===l?"rr-mask":l,unmaskTextClass:void 0===u?null:u,maskTextSelector:void 0===d?null:d,unmaskTextSelector:void 0===p?null:p,skipChild:!1,inlineStylesheet:void 0===h||h,maskInputOptions:!0===v?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===v?{}:v,maskAttributeFn:r.maskAttributeFn,maskTextFn:r.maskTextFn,maskInputFn:r.maskInputFn,slimDOMOptions:!0===b||"all"===b?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===b,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===b?{}:b,dataURLOptions:r.dataURLOptions,inlineImages:void 0!==f&&f,recordCanvas:void 0!==m&&m,preserveWhiteSpace:r.preserveWhiteSpace,onSerialize:r.onSerialize,onIframeLoad:r.onIframeLoad,iframeLoadTimeout:r.iframeLoadTimeout,onStylesheetLoad:r.onStylesheetLoad,stylesheetLoadTimeout:r.stylesheetLoadTimeout,keepIframeSrcFn:void 0===_?()=>!1:_,newlyAddedElement:!1})}(document,{mirror:Yn,blockClass:o,blockSelector:s,unblockSelector:l,maskAllText:m,maskTextClass:v,unmaskTextClass:b,maskTextSelector:E,unmaskTextSelector:x,inlineStylesheet:O,maskAllInputs:ae,maskAttributeFn:I,maskInputFn:A,maskTextFn:C,slimDOM:se,dataURLOptions:j,recordCanvas:B,inlineImages:q,onSerialize:e=>{Fr(e,Yn)&&me.addIframe(e),Zr(e,Yn)&&fe.trackLinkElement(e),Br(e)&&be.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{me.attachIframe(e,t),be.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{fe.attachLinkElement(e,t)},keepIframeSrcFn:Q});if(!t)return console.warn("Failed to snapshot the document");Un(Gn({type:zr.FullSnapshot,data:{node:t,initialOffset:Cr(window)}}),e),sn.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&fe.adoptStyleSheets(document.adoptedStyleSheets,Yn.getId(document))};try{const e=[],t=e=>{var t;return an(vn)({onMutation:ne,mutationCb:de,mousemoveCb:(e,t)=>Un(Gn({type:zr.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>Un(Gn({type:zr.IncrementalSnapshot,data:Object.assign({source:Vr.MouseInteraction},e)})),scrollCb:pe,viewportResizeCb:e=>Un(Gn({type:zr.IncrementalSnapshot,data:Object.assign({source:Vr.ViewportResize},e)})),inputCb:e=>Un(Gn({type:zr.IncrementalSnapshot,data:Object.assign({source:Vr.Input},e)})),mediaInteractionCb:e=>Un(Gn({type:zr.IncrementalSnapshot,data:Object.assign({source:Vr.MediaInteraction},e)})),styleSheetRuleCb:e=>Un(Gn({type:zr.IncrementalSnapshot,data:Object.assign({source:Vr.StyleSheetRule},e)})),styleDeclarationCb:e=>Un(Gn({type:zr.IncrementalSnapshot,data:Object.assign({source:Vr.StyleDeclaration},e)})),canvasMutationCb:he,fontCb:e=>Un(Gn({type:zr.IncrementalSnapshot,data:Object.assign({source:Vr.Font},e)})),selectionCb:e=>{Un(Gn({type:zr.IncrementalSnapshot,data:Object.assign({source:Vr.Selection},e)}))},customElementCb:e=>{Un(Gn({type:zr.IncrementalSnapshot,data:Object.assign({source:Vr.CustomElement},e)}))},blockClass:o,ignoreClass:d,ignoreSelector:h,maskAllText:m,maskTextClass:v,unmaskTextClass:b,maskTextSelector:E,unmaskTextSelector:x,maskInputOptions:ae,inlineStylesheet:O,sampling:R,recordCanvas:B,inlineImages:q,userTriggeredOnInput:Y,collectFonts:K,doc:e,maskAttributeFn:I,maskInputFn:A,maskTextFn:C,keepIframeSrcFn:Q,blockSelector:s,unblockSelector:l,slimDOMOptions:se,dataURLOptions:j,mirror:Yn,iframeManager:me,stylesheetManager:fe,shadowDomManager:be,processedNodeManager:ye,canvasManager:zn,ignoreCSSAttributes:te,plugins:(null===(t=null==X?void 0:X.filter((e=>e.observer)))||void 0===t?void 0:t.map((e=>({observer:e.observer,options:e.options,callback:t=>Un(Gn({type:zr.Plugin,data:{plugin:e.name,payload:t}}))}))))||[]},k)};me.addLoadListener((r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}}));const r=()=>{Hn(),e.push(t(document)),Vn=!0};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(Lr("DOMContentLoaded",(()=>{Un(Gn({type:zr.DomContentLoaded,data:{}})),"DOMContentLoaded"===z&&r()}))),e.push(Lr("load",(()=>{Un(Gn({type:zr.Load,data:{}})),"load"===z&&r()}),window))),()=>{e.forEach((e=>e())),ye.destroy(),Vn=!1,on=void 0}}catch(e){console.warn(e)}}function Kn(e){return e>9999999999?e:1e3*e}function $n(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:zr.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,$e.Fv)(t,10,1e3)}}),"console"===t.category))))}function qn(e){const t=Xn(e);return t&&t instanceof Element&&t.closest("button,a")||t}function Xn(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let Jn;Wn.addCustomEvent=(e,t)=>{if(!Vn)throw new Error("please add custom event after start recording");Un(Gn({type:zr.Custom,data:{tag:e,payload:t}}))},Wn.freezePage=()=>{sn.forEach((e=>e.freeze()))},Wn.takeFullSnapshot=e=>{if(!Vn)throw new Error("please take full snapshot after start recording");Hn(e)},Wn.mirror=Yn;class Qn{constructor(e,t,r=$n){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const e=()=>{this._lastScroll=ti()},t=function(e){return Jn||(Jn=[],(0,R.hl)(Mt,"open",(function(e){return function(...t){if(Jn)try{Jn.forEach((e=>e()))}catch(e){}return e.apply(Mt,t)}}))),Jn.push(e),()=>{const t=Jn?Jn.indexOf(e):-1;t>-1&&Jn.splice(t,1)}}((()=>{this._lastMutation=ti()})),r=e=>{if(!e.target)return;const t=qn(e);t&&this._handleMultiClick(t)},n=new MutationObserver((()=>{this._lastMutation=ti()}));n.observe(Mt.document.documentElement,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),Mt.addEventListener("scroll",e,{passive:!0}),Mt.addEventListener("click",r,{passive:!0}),this._teardown=()=>{Mt.removeEventListener("scroll",e),Mt.removeEventListener("click",r),t(),n.disconnect(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){return!ei.includes(e.tagName)||"INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||"")||!("A"!==e.tagName||!(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))||!(!t||!e.matches(t))}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const r={timestamp:(n=e.timestamp,n>9999999999?n/1e3:n),clickBreadcrumb:e,clickCount:0,node:t};var n;this._clicks.some((e=>e.node===r.node&&Math.abs(e.timestamp-r.timestamp)<1))||(this._clicks.push(r),1===this._clicks.length&&this._scheduleCheckClicks())}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=ti();this._clicks.forEach((r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=t&&e.push(r)}));for(var r=0,n=e;r<n.length;r++){const e=n[r],t=this._clicks.indexOf(e);t>-1&&(this._generateBreadcrumbs(e),this._clicks.splice(t,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,i=!r&&!n,o=e.clickCount,a=e.clickBreadcrumb;if(i){const r=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),n=r<1e3*this._timeout?"mutation":"timeout",i={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:It(It({},a.data),{},{url:Mt.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:o||1})};this._addBreadcrumbEvent(t,i)}else if(o>1){const e={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:It(It({},a.data),{},{url:Mt.location.href,route:t.getCurrentRoute(),clickCount:o,metric:!0})};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout((()=>this._checkClicks()),1e3)}}const ei=["A","BUTTON","INPUT"];function ti(){return Date.now()/1e3}function ri(e){return It({timestamp:Date.now()/1e3,type:"default"},e)}var ni;!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(ni||(ni={}));const ii=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled"]);function oi(e){const t={};for(const r in e)if(ii.has(r)){let n=r;"data-testid"!==r&&"data-test-id"!==r||(n="testId"),t[n]=e[r]}return t}function ai(e,t){const r=Wn.mirror.getId(e),n=r&&Wn.mirror.getNode(r),i=n&&Wn.mirror.getMeta(n),o=i&&function(e){return e.type===ni.Element}(i)?i:null;return{message:t,data:o?{nodeId:r,node:{id:r,tagName:o.tagName,textContent:Array.from(o.childNodes).map((e=>e.type===ni.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:oi(o.attributes)}}:{}}}const si={resource:function(e){const t=e.entryType,r=e.initiatorType,n=e.name,i=e.responseEnd,o=e.startTime,a=e.decodedBodySize,s=e.encodedBodySize,c=e.responseStatus,l=e.transferSize;return["fetch","xmlhttprequest"].includes(r)?null:{type:`${t}.${r}`,start:li(o),end:li(i),name:n,data:{size:l,statusCode:c,decodedBodySize:a,encodedBodySize:s}}},paint:function(e){const t=e.duration,r=e.entryType,n=e.name,i=li(e.startTime);return{type:r,name:n,start:i,end:i+t,data:void 0}},navigation:function(e){const t=e.entryType,r=e.name,n=e.decodedBodySize,i=e.duration,o=e.domComplete,a=e.encodedBodySize,s=e.domContentLoadedEventStart,c=e.domContentLoadedEventEnd,l=e.domInteractive,u=e.loadEventStart,d=e.loadEventEnd,p=e.redirectCount,h=e.startTime,f=e.transferSize,m=e.type;return 0===i?null:{type:`${t}.${m}`,start:li(h),end:li(o),name:r,data:{size:f,decodedBodySize:n,encodedBodySize:a,duration:i,domInteractive:l,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:o,redirectCount:p}}}};function ci(e){return si[e.entryType]?si[e.entryType](e):null}function li(e){return((x.Z1||Mt.performance.timeOrigin)+e)/1e3}class ui extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class di{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}addEvent(e){var t=this;return Tt(Ct().mark((function r(){var n;return Ct().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=JSON.stringify(e).length,t._totalSize+=n,!(t._totalSize>Ut)){r.next=4;break}throw new ui;case 4:t.events.push(e);case 5:case"end":return r.stop()}}),r)})))()}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?Kn(e):null}}class pi{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:r})=>{r.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){this._worker.terminate()}postMessage(e,t){const r=this._getAndIncrementId();return new Promise(((n,i)=>{const o=({data:t})=>{const a=t;a.method===e&&a.id===r&&(this._worker.removeEventListener("message",o),a.success?n(a.response):i(new Error("Error in compression worker")))};this._worker.addEventListener("message",o),this._worker.postMessage({id:r,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class hi{constructor(e){this._worker=new pi(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=Kn(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const r=JSON.stringify(e);return this._totalSize+=r.length,this._totalSize>Ut?Promise.reject(new ui):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear")}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}_finishRequest(){var e=this;return Tt(Ct().mark((function t(){var r;return Ct().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._worker.postMessage("finish");case 2:return r=t.sent,e._earliestTimestamp=null,e._totalSize=0,t.abrupt("return",r);case 6:case"end":return t.stop()}}),t)})))()}}class fi{constructor(e){this._fallback=new di,this._compression=new hi(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}finish(){var e=this;return Tt(Ct().mark((function t(){return Ct().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.ensureWorkerIsLoaded();case 2:return t.abrupt("return",e._used.finish());case 3:case"end":return t.stop()}}),t)})))()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}_ensureWorkerIsLoaded(){var e=this;return Tt(Ct().mark((function t(){return Ct().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e._compression.ensureReady();case 3:t.next=9;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return");case 9:return t.next=11,e._switchToCompressionWorker();case 11:case"end":return t.stop()}}),t,null,[[0,5]])})))()}_switchToCompressionWorker(){var e=this;return Tt(Ct().mark((function t(){var r,n,i,o,a,s,c;return Ct().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e._fallback,n=r.events,i=r.hasCheckout,o=[],a=Dt(n);try{for(a.s();!(s=a.n()).done;)c=s.value,o.push(e._compression.addEvent(c))}catch(e){a.e(e)}finally{a.f()}return e._compression.hasCheckout=i,e._used=e._compression,t.prev=6,t.next=9,Promise.all(o);case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(6);case 14:case"end":return t.stop()}}),t,null,[[6,11]])})))()}}function mi(){try{return"sessionStorage"in Mt&&!!Mt.sessionStorage}catch(e){return!1}}function gi(e){!function(){if(mi())try{Mt.sessionStorage.removeItem(jt)}catch(e){}}(),e.session=void 0}function vi(e){return void 0!==e&&Math.random()<e}function yi(e){if(mi())try{Mt.sessionStorage.setItem(jt,JSON.stringify(e))}catch(e){}}function bi(e){const t=Date.now();return{id:e.id||(0,L.DM)(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function _i({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){const i=function(e,t){return vi(e)?"session":!!t&&"buffer"}(e,t),o=bi({sampled:i,previousSessionId:n});return r&&yi(o),o}function Ei(e,t,r=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=r}function wi(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return Ei(e.started,t,n)||Ei(e.lastActivity,r,n)}function xi(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!!wi(e,{sessionIdleExpire:t,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function Li({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:r,previousSessionId:n},i){const o=i.stickySession&&function(e){if(!mi())return null;try{const e=Mt.sessionStorage.getItem(jt);return e?bi(JSON.parse(e)):null}catch(e){return null}}();return o?xi(o,{sessionIdleExpire:t,maxReplayDuration:r})?_i(i,{previousSessionId:o.id}):o:_i(i,{previousSessionId:n})}function Oi(e,t,r){return!!Pi(e,t)&&(Si(e,t,r),!0)}function Si(e,t,r){return Ti.apply(this,arguments)}function Ti(){return Ti=Tt(Ct().mark((function e(t,r,n){var i,o,a,s;return Ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.eventBuffer){e.next=2;break}return e.abrupt("return",null);case 2:if(e.prev=2,n&&"buffer"===t.recordingMode&&t.eventBuffer.clear(),n&&(t.eventBuffer.hasCheckout=!0),i=t.getOptions(),o=Ii(r,i.beforeAddRecordingEvent)){e.next=9;break}return e.abrupt("return");case 9:return e.next=11,t.eventBuffer.addEvent(o);case 11:return e.abrupt("return",e.sent);case 14:return e.prev=14,e.t0=e.catch(2),a=e.t0&&e.t0 instanceof ui?"addEventSizeExceeded":"addEvent",e.next=20,t.stop({reason:a});case 20:(s=(0,y.Gd)().getClient())&&s.recordDroppedEvent("internal_sdk_error","replay");case 22:case"end":return e.stop()}}),e,null,[[2,14]])}))),Ti.apply(this,arguments)}function Pi(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const r=Kn(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now()||r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration&&(e.getOptions()._experiments.traceInternals,1))}function Ii(e,t){try{if("function"==typeof t&&function(e){return e.type===zr.Custom}(e))return t(e)}catch(e){return null}return e}function Ai(e){return!e.type}function Ci(e){return"transaction"===e.type}function ki(e){const t=function(){const e=(0,y.Gd)().getClient();if(!e)return!1;const t=e.getTransport();return t&&t.send.__sentry__baseTransport__||!1}();return(r,n)=>{if(!e.isEnabled()||!Ai(r)&&!Ci(r))return;const i=n&&n.statusCode;t&&(!i||i<200||i>=300)||(Ci(r)?function(e,t){const r=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&r.traceIds.size<100&&r.traceIds.add(t.contexts.trace.trace_id)}(e,r):function(e,t){const r=e.getContext();t.event_id&&r.errorIds.size<100&&r.errorIds.add(t.event_id),"buffer"===e.recordingMode&&t.tags&&t.tags.replayId&&setTimeout((()=>{e.sendBufferedReplayOrFlush()}))}(e,r))}}function Di(e,t){return t.map((({type:t,start:r,end:n,name:i,data:o})=>{const a=e.throttledAddEvent({type:zr.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:r,endTimestamp:n,data:o}}});return"string"==typeof a?Promise.resolve(null):a}))}function Ni(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(0,We.W)(t,(0,y.Gd)())}(0,t.name)||e.addUpdate((()=>(Di(e,[t]),!0))))}const Ri=10,Mi=11,ji=12,Fi=13,Zi=14,Bi=15,Gi=20,Ui=21,Hi=22,zi=23,Vi=["true","false","null"];function Yi(e,t,r){const n=e[e.length-1],i=t[r];if(!/\s/.test(i))if('"'!==i||Wi(t,r))switch(i){case"{":!function(e,t){t&&t!==Fi?(t===Ui&&e.push(Ri),t===Gi&&e.push(Ri)):e.push(Ri)}(e,n);break;case"[":!function(e,t){t?t===Fi?(e.push(Gi),e.push(Ui)):(t===Ui&&(e.push(Gi),e.push(Ui)),t===Gi&&(e.push(Gi),e.push(Ui))):(e.push(Gi),e.push(Ui))}(e,n);break;case":":!function(e,t){t===Mi&&(e.pop(),e.push(Fi))}(e,n);break;case",":!function(e,t){if(t!==Fi)return t===Bi?(e.pop(),void e.pop()):void(t!==Ui&&t===zi&&e.pop());e.pop()}(e,n);break;case"}":!function(e,t){t===Ri&&e.pop(),t===Fi&&(e.pop(),e.pop()),t===Bi&&(e.pop(),e.pop(),e.pop()),e[e.length-1]===Fi&&e.push(Bi),e[e.length-1]===Ui&&e.push(zi)}(e,n);break;case"]":!function(e,t){t===Gi&&e.pop(),t===Ui&&(e.pop(),e.pop()),t===zi&&(e.pop(),e.pop(),e.pop()),e[e.length-1]===Fi&&e.push(Bi),e[e.length-1]===Ui&&e.push(zi)}(e,n)}else!function(e,t){t===Zi?(e.pop(),e.push(Bi)):t===Hi?(e.pop(),e.push(zi)):t!==Fi?t!==Ui?t!==Ri?t===ji&&(e.pop(),e.push(11)):e.push(ji):e.push(Hi):e.push(Zi)}(e,n)}function Wi(e,t){return"\\"===e[t-1]&&!Wi(e,t-1)}function Ki(e){return function(e,t){if(!t.length)return e;let r=e;const n=t.length-1;r=function(e,t){switch(t){case Ri:return`${e}"~~":"~~"`;case 11:return`${e}:"~~"`;case 12:return`${e}~~":"~~"`;case Fi:return function(e){const t=e.lastIndexOf(":"),r=e.slice(t+1);return Vi.includes(r.trim())?`${e},"~~":"~~"`:`${e.slice(0,t+1)}"~~"`}(e);case 14:return`${e}~~"`;case Bi:return`${e},"~~":"~~"`;case Gi:return`${e}"~~"`;case Ui:return function(e){const t=function(e){for(let t=e.length-1;t>=0;t--){const r=e[t];if(","===r||"["===r)return t}return-1}(e);if(t>-1){const r=e.slice(t+1);return Vi.includes(r.trim())?`${e},"~~"`:`${e.slice(0,t+1)}"~~"`}return e}(e);case 22:return`${e}~~"`;case zi:return`${e},"~~"`}return e}(r,t[n]);for(let e=n;e>=0;e--)switch(t[e]){case Ri:r=`${r}}`;break;case Gi:r=`${r}]`}return r}(e,function(e){const t=[];for(let r=0;r<e.length;r++)Yi(t,e,r);return t}(e))}function $i(e,t){if(e)try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const r=ro(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function qi(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Xi(e){return"string"==typeof e?e:e instanceof URLSearchParams?e.toString():e instanceof FormData?ro(e):void 0}function Ji(e,t){if(!t)return null;const r=t.startTimestamp,n=t.endTimestamp,i=t.url,o=t.method,a=t.statusCode,s=t.request,c=t.response;return{type:e,start:r/1e3,end:n/1e3,name:i,data:(0,R.Jr)({method:o,statusCode:a,request:s,response:c})}}function Qi(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function eo(e,t,r){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!r)return{headers:e,size:t};const n={headers:e,size:t},i=function(e){if(!e||"string"!=typeof e)return{body:e,warnings:[]};const t=e.length>Bt;if(function(e){const t=e[0],r=e[e.length-1];return"["===t&&"]"===r||"{"===t&&"}"===r}(e))try{const r=t?Ki(e.slice(0,Bt)):e;return{body:JSON.parse(r),warnings:t?["JSON_TRUNCATED"]:[]}}catch(r){return{body:t?`${e.slice(0,Bt)}…`:e,warnings:t?["INVALID_JSON","TEXT_TRUNCATED"]:["INVALID_JSON"]}}return{body:t?`${e.slice(0,Bt)}…`:e,warnings:t?["TEXT_TRUNCATED"]:[]}}(r),o=i.body,a=i.warnings;return n.body=o,a.length>0&&(n._meta={warnings:a}),n}function to(e,t){return Object.keys(e).reduce(((r,n)=>{const i=n.toLowerCase();return t.includes(i)&&e[n]&&(r[i]=e[n]),r}),{})}function ro(e){return new URLSearchParams(e).toString()}function no(e,t){const r=function(e,t=Mt.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Mt.location.origin))return e;const r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;const n=r.href;return!e.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):n}(e);return(0,Je.U0)(r,t)}function io(){return(io=Tt(Ct().mark((function e(t,r,n){var i,o;return Ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,oo(t,r,n);case 3:i=e.sent,o=Ji("resource.fetch",i),Ni(n.replay,o),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})))).apply(this,arguments)}function oo(e,t,r){return ao.apply(this,arguments)}function ao(){return ao=Tt(Ct().mark((function e(t,r,n){var i,o,a,s,c,l,u,d,p,h,f,m;return Ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.startTimestamp,o=r.endTimestamp,a=t.data,s=a.url,c=a.method,l=a.status_code,u=void 0===l?0:l,d=a.request_body_size,p=a.response_body_size,h=no(s,n.networkDetailAllowUrls)&&!no(s,n.networkDetailDenyUrls),f=h?so(n,r.input,d):Qi(d),e.next=6,co(h,n,r.response,p);case 6:return m=e.sent,e.abrupt("return",{startTimestamp:i,endTimestamp:o,url:s,method:c,statusCode:u,request:f,response:m});case 8:case"end":return e.stop()}}),e)}))),ao.apply(this,arguments)}function so({networkCaptureBodies:e,networkRequestHeaders:t},r,n){const i=function(e,t){return 1===e.length&&"string"!=typeof e[0]?mo(e[0],t):2===e.length?mo(e[1],t):{}}(r,t);return eo(i,n,e?Xi(ho(r)):void 0)}function co(e,t,r,n){return lo.apply(this,arguments)}function lo(){return(lo=Tt(Ct().mark((function e(t,{networkCaptureBodies:r,textEncoder:n,networkResponseHeaders:i},o,a){var s,c,l,u;return Ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t||void 0===a){e.next=2;break}return e.abrupt("return",Qi(a));case 2:if(s=fo(o.headers,i),r||void 0===a){e.next=5;break}return e.abrupt("return",eo(s,a,void 0));case 5:return e.prev=5,c=o.clone(),e.next=9,uo(c);case 9:if(l=e.sent,u=l&&l.length&&void 0===a?$i(l,n):a,t){e.next=13;break}return e.abrupt("return",Qi(u));case 13:if(!r){e.next=15;break}return e.abrupt("return",eo(s,u,l));case 15:return e.abrupt("return",eo(s,u,void 0));case 18:return e.prev=18,e.t0=e.catch(5),e.abrupt("return",eo(s,a,void 0));case 21:case"end":return e.stop()}}),e,null,[[5,18]])})))).apply(this,arguments)}function uo(e){return po.apply(this,arguments)}function po(){return(po=Tt(Ct().mark((function e(t){return Ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.text();case 3:return e.abrupt("return",e.sent);case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",void 0);case 9:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function ho(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function fo(e,t){const r={};return t.forEach((t=>{e.get(t)&&(r[t]=e.get(t))})),r}function mo(e,t){if(!e)return{};const r=e.headers;return r?r instanceof Headers?fo(r,t):Array.isArray(r)?{}:to(r,t):{}}function go(){return(go=Tt(Ct().mark((function e(t,r,n){var i,o;return Ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{i=vo(t,r,n),o=Ji("resource.xhr",i),Ni(n.replay,o)}catch(e){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vo(e,t,r){const n=t.startTimestamp,i=t.endTimestamp,o=t.input,a=t.xhr,s=e.data,c=s.url,l=s.method,u=s.status_code,d=void 0===u?0:u,p=s.request_body_size,h=s.response_body_size;if(!c)return null;if(!no(c,r.networkDetailAllowUrls)||no(c,r.networkDetailDenyUrls))return{startTimestamp:n,endTimestamp:i,url:c,method:l,statusCode:d,request:Qi(p),response:Qi(h)};const f=a[b.xU],m=f?to(f.request_headers,r.networkRequestHeaders):{},g=to(function(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce(((e,t)=>{const r=kt(t.split(": "),2),n=r[0],i=r[1];return e[n.toLowerCase()]=i,e}),{}):{}}(a),r.networkResponseHeaders);return{startTimestamp:n,endTimestamp:i,url:c,method:l,statusCode:d,request:eo(m,p,r.networkCaptureBodies?Xi(o):void 0),response:eo(g,h,r.networkCaptureBodies?t.xhr.responseText:void 0)}}let yo=null;function bo(e){return!(!e||!e.on)}function _o(e){return Eo.apply(this,arguments)}function Eo(){return(Eo=Tt(Ct().mark((function e(t){return Ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",Promise.all(Di(t,[wo(Mt.performance.memory)])));case 4:return e.prev=4,e.t0=e.catch(0),e.abrupt("return",[]);case 7:case"end":return e.stop()}}),e,null,[[0,4]])})))).apply(this,arguments)}function wo(e){const t=e.jsHeapSizeLimit,r=e.totalJSHeapSize,n=e.usedJSHeapSize,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}function xo(e){let t=!1;return(r,n)=>{if(!e.checkAndHandleExpiredSession())return;const i=n||!t;t=!0,e.addUpdate((()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!Oi(e,r,i))return!0;if(!i)return!1;if(function(e,t){t&&e.session&&0===e.session.segmentId&&Oi(e,function(e){const t=e.getOptions();return{type:zr.Custom,timestamp:Date.now(),data:{tag:"options",payload:{sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,i),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){const t=e.eventBuffer.getEarliestTimestamp();t&&(new Date(t),e.getOptions()._experiments.traceInternals,e.session.started=t,e.getOptions().stickySession&&yi(e.session))}return"session"===e.recordingMode&&e.flush(),!0}))}}function Lo(e,t,r,n){return(0,u.Jd)((0,u.Cd)(e,(0,u.HY)(e),n,r),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}function Oo({recordingData:e,headers:t}){let r;const n=`${JSON.stringify(t)}\n`;if("string"==typeof e)r=`${n}${e}`;else{const t=(new TextEncoder).encode(n);r=new Uint8Array(t.length+e.length),r.set(t),r.set(e,t.length)}return r}function So(e){return To.apply(this,arguments)}function To(){return To=Tt(Ct().mark((function e({client:t,scope:r,replayId:n,event:i}){var o,a,s,c,l,u,d;return Ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o="object"!=typeof t._integrations||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations),a={event_id:n,integrations:o},t.emit&&t.emit("preprocessEvent",i,a),e.next=5,(0,Ke.R)(t.getOptions(),i,a,r,t);case 5:if(s=e.sent){e.next=8;break}return e.abrupt("return",null);case 8:return s.platform=s.platform||"javascript",c=t.getSdkMetadata&&t.getSdkMetadata(),l=c&&c.sdk||{},u=l.name,d=l.version,s.sdk=It(It({},s.sdk),{},{name:u||"sentry.javascript.unknown",version:d||"0.0.0"}),e.abrupt("return",s);case 13:case"end":return e.stop()}}),e)}))),To.apply(this,arguments)}function Po(e){return Io.apply(this,arguments)}function Io(){return Io=Tt(Ct().mark((function e({recordingData:t,replayId:r,segmentId:n,eventContext:i,timestamp:o,session:a}){var s,c,l,u,d,p,h,f,m,g,v,b,_,E,w;return Ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=Oo({recordingData:t,headers:{segment_id:n}}),c=i.urls,l=i.errorIds,u=i.traceIds,d=i.initialTimestamp,p=(0,y.Gd)(),h=p.getClient(),f=p.getScope(),m=h&&h.getTransport(),g=h&&h.getDsn(),h&&m&&g&&a.sampled){e.next=9;break}return e.abrupt("return");case 9:return v={type:Ft,replay_start_timestamp:d/1e3,timestamp:o/1e3,error_ids:l,trace_ids:u,urls:c,replay_id:r,segment_id:n,replay_type:a.sampled},e.next=12,So({scope:f,client:h,replayId:r,event:v});case 12:if(b=e.sent){e.next=17;break}return h.recordDroppedEvent("event_processor","replay",v),e.abrupt("return");case 17:return delete b.sdkProcessingMetadata,_=Lo(b,s,g,h.getOptions().tunnel),e.prev=19,e.next=22,m.send(_);case 22:E=e.sent,e.next=30;break;case 25:e.prev=25,e.t0=e.catch(19),w=new Error(Zt);try{w.cause=e.t0}catch(e){}throw w;case 30:if(E){e.next=32;break}return e.abrupt("return",E);case 32:if("number"!=typeof E.statusCode||!(E.statusCode<200||E.statusCode>=300)){e.next=34;break}throw new Ao(E.statusCode);case 34:return e.abrupt("return",E);case 35:case"end":return e.stop()}}),e,null,[[19,25]])}))),Io.apply(this,arguments)}class Ao extends Error{constructor(e){super(`Transport returned status code ${e}`)}}function Co(e){return ko.apply(this,arguments)}function ko(){return(ko=Tt(Ct().mark((function e(t,r={count:0,interval:5e3}){var n,i;return Ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.recordingData,t.options,n.length){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,e.next=6,Po(t);case 6:return e.abrupt("return",!0);case 9:if(e.prev=9,e.t0=e.catch(3),!(e.t0 instanceof Ao)){e.next=13;break}throw e.t0;case 13:if((0,Ie.v)("Replays",{_retryCount:r.count}),!(r.count>=3)){e.next=19;break}i=new Error("Unable to send Replay - max retries exceeded");try{i.cause=e.t0}catch(e){}throw i;case 19:return r.interval*=++r.count,e.abrupt("return",new Promise(((e,n)=>{setTimeout(Tt(Ct().mark((function i(){return Ct().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,Co(t,r);case 3:e(!0),i.next=9;break;case 6:i.prev=6,i.t0=i.catch(0),n(i.t0);case 9:case"end":return i.stop()}}),i,null,[[0,6]])}))),r.interval)})));case 21:case"end":return e.stop()}}),e,null,[[3,9]])})))).apply(this,arguments)}const Do="__THROTTLED";class No{constructor({options:e,recordingOptions:t}){No.prototype.__init.call(this),No.prototype.__init2.call(this),No.prototype.__init3.call(this),No.prototype.__init4.call(this),No.prototype.__init5.call(this),No.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,r){let n,i,o;const a=r&&r.maxWait?Math.max(r.maxWait,t):0;function s(){return c(),n=e(),n}function c(){void 0!==i&&clearTimeout(i),void 0!==o&&clearTimeout(o),i=o=void 0}function l(){return i&&clearTimeout(i),i=setTimeout(s,t),a&&void 0===o&&(o=setTimeout(s,a)),n}return l.cancel=c,l.flush=function(){return void 0!==i||void 0!==o?s():n},l}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,r){const n=new Map;let i=!1;return(...t)=>{const r=Math.floor(Date.now()/1e3);if((e=>{const t=e-5;n.forEach(((e,r)=>{r<t&&n.delete(r)}))})(r),[...n.values()].reduce(((e,t)=>e+t),0)>=300){const e=i;return i=!0,e?"__SKIPPED":Do}i=!1;const o=n.get(r)||0;return n.set(r,o+1),e(...t)}}(((e,t)=>function(e,t,r){return Pi(e,t)?Si(e,t,r):Promise.resolve(null)}(this,e,t)));const r=this.getOptions(),n=r.slowClickTimeout,i=r.slowClickIgnoreSelectors,o=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:i?i.join(","):""}:void 0;o&&(this.clickDetector=new Qn(this,o))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}initializeSampling(e){const t=this._options,r=t.errorSampleRate,n=t.sessionSampleRate;r<=0&&n<=0||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",this.recordingMode,this._options._experiments.traceInternals,this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");this._options._experiments.traceInternals;const e=Li({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");this._options._experiments.traceInternals;const e=Li({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{this._stopRecording=Wn(It(It(It({},this._recordingOptions),"buffer"===this.recordingMode&&{checkoutEveryNms:6e4}),{},{emit:xo(this),onMutation:this._onMutationHandler}))}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}stop({forceFlush:e=!1,reason:t}={}){var r=this;return Tt(Ct().mark((function t(){return Ct().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r._isEnabled){t.next=2;break}return t.abrupt("return");case 2:if(r._isEnabled=!1,t.prev=3,r._options._experiments.traceInternals,r._removeListeners(),r.stopRecording(),r._debouncedFlush.cancel(),!e){t.next=11;break}return t.next=11,r._flush({force:!0});case 11:r.eventBuffer&&r.eventBuffer.destroy(),r.eventBuffer=null,gi(r),t.next=19;break;case 16:t.prev=16,t.t0=t.catch(3),r._handleException(t.t0);case 19:case"end":return t.stop()}}),t,null,[[3,16]])})))()}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),this._options._experiments.traceInternals)}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),this._options._experiments.traceInternals)}sendBufferedReplayOrFlush({continueRecording:e=!0}={}){var t=this;return Tt(Ct().mark((function r(){var n,i;return Ct().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("session"!==t.recordingMode){r.next=2;break}return r.abrupt("return",t.flushImmediate());case 2:return n=Date.now(),t._options._experiments.traceInternals,r.next=6,t.flushImmediate();case 6:if(i=t.stopRecording(),e&&i){r.next=9;break}return r.abrupt("return");case 9:if("session"!==t.recordingMode){r.next=11;break}return r.abrupt("return");case 11:t.recordingMode="session",t.session&&(t._updateUserActivity(n),t._updateSessionActivity(n),t._maybeSaveSession()),t.startRecording();case 14:case"end":return r.stop()}}),r)})))()}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&Ei(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${Mt.location.pathname}${Mt.location.hash}${Mt.location.search}`,t=`${Mt.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const r=this._throttledAddEvent(e,t);if(r===Do){const e=ri({category:"replay.throttled"});this.addUpdate((()=>!Oi(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return r}getCurrentRoute(){const e=this.lastTransaction||(0,y.Gd)().getScope().getTransaction();if(e&&["route","custom"].includes(e.metadata.source))return e.name}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){const e=new Blob(['var t={},e={};function a(t){let e=t.length;for(;--e>=0;)t[e]=0}const s=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),r=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),n=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),i=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),_=new Array(576);a(_);const l=new Array(60);a(l);const h=new Array(512);a(h);const o=new Array(256);a(o);const d=new Array(29);a(d);const u=new Array(30);function f(t,e,a,s,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=s,this.max_length=r,this.has_stree=t&&t.length}let c,p,g;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}a(u);const m=t=>t<256?h[t]:h[256+(t>>>7)],b=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},y=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,b(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},v=(t,e,a)=>{y(t,a[2*e],a[2*e+1])},z=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},k=(t,e,a)=>{const s=new Array(16);let r,n,i=0;for(r=1;r<=15;r++)i=i+a[r-1]<<1,s[r]=i;for(n=0;n<=e;n++){let e=t[2*n+1];0!==e&&(t[2*n]=z(s[e]++,e))}},x=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},A=t=>{t.bi_valid>8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},E=(t,e,a,s)=>{const r=2*e,n=2*a;return t[r]<t[n]||t[r]===t[n]&&s[e]<=s[a]},Z=(t,e,a)=>{const s=t.heap[a];let r=a<<1;for(;r<=t.heap_len&&(r<t.heap_len&&E(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!E(e,s,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=s},S=(t,e,a)=>{let n,i,_,l,h=0;if(0!==t.sym_next)do{n=255&t.pending_buf[t.sym_buf+h++],n+=(255&t.pending_buf[t.sym_buf+h++])<<8,i=t.pending_buf[t.sym_buf+h++],0===n?v(t,i,e):(_=o[i],v(t,_+256+1,e),l=s[_],0!==l&&(i-=d[_],y(t,i,l)),n--,_=m(n),v(t,_,a),l=r[_],0!==l&&(n-=u[_],y(t,n,l)))}while(h<t.sym_next);v(t,256,e)},U=(t,e)=>{const a=e.dyn_tree,s=e.stat_desc.static_tree,r=e.stat_desc.has_stree,n=e.stat_desc.elems;let i,_,l,h=-1;for(t.heap_len=0,t.heap_max=573,i=0;i<n;i++)0!==a[2*i]?(t.heap[++t.heap_len]=h=i,t.depth[i]=0):a[2*i+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=h<2?++h:0,a[2*l]=1,t.depth[l]=0,t.opt_len--,r&&(t.static_len-=s[2*l+1]);for(e.max_code=h,i=t.heap_len>>1;i>=1;i--)Z(t,a,i);l=n;do{i=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Z(t,a,1),_=t.heap[1],t.heap[--t.heap_max]=i,t.heap[--t.heap_max]=_,a[2*l]=a[2*i]+a[2*_],t.depth[l]=(t.depth[i]>=t.depth[_]?t.depth[i]:t.depth[_])+1,a[2*i+1]=a[2*_+1]=l,t.heap[1]=l++,Z(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,s=e.max_code,r=e.stat_desc.static_tree,n=e.stat_desc.has_stree,i=e.stat_desc.extra_bits,_=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,o,d,u,f,c,p=0;for(u=0;u<=15;u++)t.bl_count[u]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)o=t.heap[h],u=a[2*a[2*o+1]+1]+1,u>l&&(u=l,p++),a[2*o+1]=u,o>s||(t.bl_count[u]++,f=0,o>=_&&(f=i[o-_]),c=a[2*o],t.opt_len+=c*(u+f),n&&(t.static_len+=c*(r[2*o+1]+f)));if(0!==p){do{for(u=l-1;0===t.bl_count[u];)u--;t.bl_count[u]--,t.bl_count[u+1]+=2,t.bl_count[l]--,p-=2}while(p>0);for(u=l;0!==u;u--)for(o=t.bl_count[u];0!==o;)d=t.heap[--h],d>s||(a[2*d+1]!==u&&(t.opt_len+=(u-a[2*d+1])*a[2*d],a[2*d+1]=u),o--)}})(t,e),k(a,h,t.bl_count)},R=(t,e,a)=>{let s,r,n=-1,i=e[1],_=0,l=7,h=4;for(0===i&&(l=138,h=3),e[2*(a+1)+1]=65535,s=0;s<=a;s++)r=i,i=e[2*(s+1)+1],++_<l&&r===i||(_<h?t.bl_tree[2*r]+=_:0!==r?(r!==n&&t.bl_tree[2*r]++,t.bl_tree[32]++):_<=10?t.bl_tree[34]++:t.bl_tree[36]++,_=0,n=r,0===i?(l=138,h=3):r===i?(l=6,h=3):(l=7,h=4))},L=(t,e,a)=>{let s,r,n=-1,i=e[1],_=0,l=7,h=4;for(0===i&&(l=138,h=3),s=0;s<=a;s++)if(r=i,i=e[2*(s+1)+1],!(++_<l&&r===i)){if(_<h)do{v(t,r,t.bl_tree)}while(0!=--_);else 0!==r?(r!==n&&(v(t,r,t.bl_tree),_--),v(t,16,t.bl_tree),y(t,_-3,2)):_<=10?(v(t,17,t.bl_tree),y(t,_-3,3)):(v(t,18,t.bl_tree),y(t,_-11,7));_=0,n=r,0===i?(l=138,h=3):r===i?(l=6,h=3):(l=7,h=4)}};let T=!1;const F=(t,e,a,s)=>{y(t,0+(s?1:0),3),A(t),b(t,a),b(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};e._tr_init=t=>{T||((()=>{let t,e,a,i,w;const m=new Array(16);for(a=0,i=0;i<28;i++)for(d[i]=a,t=0;t<1<<s[i];t++)o[a++]=i;for(o[a-1]=i,w=0,i=0;i<16;i++)for(u[i]=w,t=0;t<1<<r[i];t++)h[w++]=i;for(w>>=7;i<30;i++)for(u[i]=w<<7,t=0;t<1<<r[i]-7;t++)h[256+w++]=i;for(e=0;e<=15;e++)m[e]=0;for(t=0;t<=143;)_[2*t+1]=8,t++,m[8]++;for(;t<=255;)_[2*t+1]=9,t++,m[9]++;for(;t<=279;)_[2*t+1]=7,t++,m[7]++;for(;t<=287;)_[2*t+1]=8,t++,m[8]++;for(k(_,287,m),t=0;t<30;t++)l[2*t+1]=5,l[2*t]=z(t,5);c=new f(_,s,257,286,15),p=new f(l,r,0,30,15),g=new f(new Array(0),n,0,19,7)})(),T=!0),t.l_desc=new w(t.dyn_ltree,c),t.d_desc=new w(t.dyn_dtree,p),t.bl_desc=new w(t.bl_tree,g),t.bi_buf=0,t.bi_valid=0,x(t)},e._tr_stored_block=F,e._tr_flush_block=(t,e,a,s)=>{let r,n,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),U(t,t.l_desc),U(t,t.d_desc),h=(t=>{let e;for(R(t,t.dyn_ltree,t.l_desc.max_code),R(t,t.dyn_dtree,t.d_desc.max_code),U(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*i[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),r=t.opt_len+3+7>>>3,n=t.static_len+3+7>>>3,n<=r&&(r=n)):r=n=a+5,a+4<=r&&-1!==e?F(t,e,a,s):4===t.strategy||n===r?(y(t,2+(s?1:0),3),S(t,_,l)):(y(t,4+(s?1:0),3),((t,e,a,s)=>{let r;for(y(t,e-257,5),y(t,a-1,5),y(t,s-4,4),r=0;r<s;r++)y(t,t.bl_tree[2*i[r]+1],3);L(t,t.dyn_ltree,e-1),L(t,t.dyn_dtree,a-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),S(t,t.dyn_ltree,t.dyn_dtree)),x(t),s&&A(t)},e._tr_tally=(t,e,a)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(o[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.sym_next===t.sym_end),e._tr_align=t=>{y(t,2,3),v(t,256,_),(t=>{16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)};var O=(t,e,a,s)=>{let r=65535&t|0,n=t>>>16&65535|0,i=0;for(;0!==a;){i=a>2e3?2e3:a,a-=i;do{r=r+e[s++]|0,n=n+r|0}while(--i);r%=65521,n%=65521}return r|n<<16|0};const D=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var s=0;s<8;s++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var N=(t,e,a,s)=>{const r=D,n=s+a;t^=-1;for(let a=s;a<n;a++)t=t>>>8^r[255&(t^e[a])];return-1^t},C={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},I={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:H,_tr_stored_block:B,_tr_flush_block:M,_tr_tally:P,_tr_align:Y}=e,K=O,j=N,G=C,{Z_NO_FLUSH:X,Z_PARTIAL_FLUSH:W,Z_FULL_FLUSH:q,Z_FINISH:J,Z_BLOCK:Q,Z_OK:V,Z_STREAM_END:$,Z_STREAM_ERROR:tt,Z_DATA_ERROR:et,Z_BUF_ERROR:at,Z_DEFAULT_COMPRESSION:st,Z_FILTERED:rt,Z_HUFFMAN_ONLY:nt,Z_RLE:it,Z_FIXED:_t,Z_DEFAULT_STRATEGY:lt,Z_UNKNOWN:ht,Z_DEFLATED:ot}=I,dt=(t,e)=>(t.msg=G[e],e),ut=t=>2*t-(t>4?9:0),ft=t=>{let e=t.length;for(;--e>=0;)t[e]=0},ct=t=>{let e,a,s,r=t.w_size;e=t.hash_size,s=e;do{a=t.head[--s],t.head[s]=a>=r?a-r:0}while(--e);e=r,s=e;do{a=t.prev[--s],t.prev[s]=a>=r?a-r:0}while(--e)};let pt=(t,e,a)=>(e<<t.hash_shift^a)&t.hash_mask;const gt=t=>{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},wt=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,gt(t.strm)},mt=(t,e)=>{t.pending_buf[t.pending++]=e},bt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},yt=(t,e,a,s)=>{let r=t.avail_in;return r>s&&(r=s),0===r?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),a),1===t.state.wrap?t.adler=K(t.adler,e,r,a):2===t.state.wrap&&(t.adler=j(t.adler,e,r,a)),t.next_in+=r,t.total_in+=r,r)},vt=(t,e)=>{let a,s,r=t.max_chain_length,n=t.strstart,i=t.prev_length,_=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,o=t.w_mask,d=t.prev,u=t.strstart+258;let f=h[n+i-1],c=h[n+i];t.prev_length>=t.good_match&&(r>>=2),_>t.lookahead&&(_=t.lookahead);do{if(a=e,h[a+i]===c&&h[a+i-1]===f&&h[a]===h[n]&&h[++a]===h[n+1]){n+=2,a++;do{}while(h[++n]===h[++a]&&h[++n]===h[++a]&&h[++n]===h[++a]&&h[++n]===h[++a]&&h[++n]===h[++a]&&h[++n]===h[++a]&&h[++n]===h[++a]&&h[++n]===h[++a]&&n<u);if(s=258-(u-n),n=u-258,s>i){if(t.match_start=e,i=s,s>=_)break;f=h[n+i-1],c=h[n+i]}}}while((e=d[e&o])>l&&0!=--r);return i<=t.lookahead?i:t.lookahead},zt=t=>{const e=t.w_size;let a,s,r;do{if(s=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)&&(t.window.set(t.window.subarray(e,e+e-s),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),ct(t),s+=e),0===t.strm.avail_in)break;if(a=yt(t.strm,t.window,t.strstart+t.lookahead,s),t.lookahead+=a,t.lookahead+t.insert>=3)for(r=t.strstart-t.insert,t.ins_h=t.window[r],t.ins_h=pt(t,t.ins_h,t.window[r+1]);t.insert&&(t.ins_h=pt(t,t.ins_h,t.window[r+3-1]),t.prev[r&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=r,r++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},kt=(t,e)=>{let a,s,r,n=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,i=0,_=t.strm.avail_in;do{if(a=65535,r=t.bi_valid+42>>3,t.strm.avail_out<r)break;if(r=t.strm.avail_out-r,s=t.strstart-t.block_start,a>s+t.strm.avail_in&&(a=s+t.strm.avail_in),a>r&&(a=r),a<n&&(0===a&&e!==J||e===X||a!==s+t.strm.avail_in))break;i=e===J&&a===s+t.strm.avail_in?1:0,B(t,0,0,i),t.pending_buf[t.pending-4]=a,t.pending_buf[t.pending-3]=a>>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,gt(t.strm),s&&(s>a&&(s=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+s),t.strm.next_out),t.strm.next_out+=s,t.strm.avail_out-=s,t.strm.total_out+=s,t.block_start+=s,a-=s),a&&(yt(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===i);return _-=t.strm.avail_in,_&&(_>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=_&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-_,t.strm.next_in),t.strstart),t.strstart+=_,t.insert+=_>t.w_size-t.insert?t.w_size-t.insert:_),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),i?4:e!==X&&e!==J&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(r=t.window_size-t.strstart,t.strm.avail_in>r&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,r+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),r>t.strm.avail_in&&(r=t.strm.avail_in),r&&(yt(t.strm,t.window,t.strstart,r),t.strstart+=r,t.insert+=r>t.w_size-t.insert?t.w_size-t.insert:r),t.high_water<t.strstart&&(t.high_water=t.strstart),r=t.bi_valid+42>>3,r=t.pending_buf_size-r>65535?65535:t.pending_buf_size-r,n=r>t.w_size?t.w_size:r,s=t.strstart-t.block_start,(s>=n||(s||e===J)&&e!==X&&0===t.strm.avail_in&&s<=r)&&(a=s>r?r:s,i=e===J&&0===t.strm.avail_in&&a===s?1:0,B(t,t.block_start,a,i),t.block_start+=a,gt(t.strm)),i?3:1)},xt=(t,e)=>{let a,s;for(;;){if(t.lookahead<262){if(zt(t),t.lookahead<262&&e===X)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=pt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-262&&(t.match_length=vt(t,a)),t.match_length>=3)if(s=P(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=pt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=pt(t,t.ins_h,t.window[t.strstart+1]);else s=P(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(s&&(wt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===J?(wt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(wt(t,!1),0===t.strm.avail_out)?1:2},At=(t,e)=>{let a,s,r;for(;;){if(t.lookahead<262){if(zt(t),t.lookahead<262&&e===X)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=pt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-262&&(t.match_length=vt(t,a),t.match_length<=5&&(t.strategy===rt||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,s=P(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=pt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,s&&(wt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(s=P(t,0,t.window[t.strstart-1]),s&&wt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(s=P(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===J?(wt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(wt(t,!1),0===t.strm.avail_out)?1:2};function Et(t,e,a,s,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=s,this.func=r}const Zt=[new Et(0,0,0,0,kt),new Et(4,4,8,4,xt),new Et(4,5,16,8,xt),new Et(4,6,32,32,xt),new Et(4,4,16,16,At),new Et(8,16,32,32,At),new Et(8,16,128,128,At),new Et(8,32,128,256,At),new Et(32,128,258,1024,At),new Et(32,258,258,4096,At)];function St(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ot,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),ft(this.dyn_ltree),ft(this.dyn_dtree),ft(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),ft(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),ft(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Ut=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Rt=t=>{if(Ut(t))return dt(t,tt);t.total_in=t.total_out=0,t.data_type=ht;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,H(e),V},Lt=t=>{const e=Rt(t);var a;return e===V&&((a=t.state).window_size=2*a.w_size,ft(a.head),a.max_lazy_match=Zt[a.level].max_lazy,a.good_match=Zt[a.level].good_length,a.nice_match=Zt[a.level].nice_length,a.max_chain_length=Zt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},Tt=(t,e,a,s,r,n)=>{if(!t)return tt;let i=1;if(e===st&&(e=6),s<0?(i=0,s=-s):s>15&&(i=2,s-=16),r<1||r>9||a!==ot||s<8||s>15||e<0||e>9||n<0||n>_t||8===s&&1!==i)return dt(t,tt);8===s&&(s=9);const _=new St;return t.state=_,_.strm=t,_.status=42,_.wrap=i,_.gzhead=null,_.w_bits=s,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=r+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+3-1)/3),_.window=new Uint8Array(2*_.w_size),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<<r+6,_.pending_buf_size=4*_.lit_bufsize,_.pending_buf=new Uint8Array(_.pending_buf_size),_.sym_buf=_.lit_bufsize,_.sym_end=3*(_.lit_bufsize-1),_.level=e,_.strategy=n,_.method=a,Lt(t)};t.deflateInit=(t,e)=>Tt(t,e,ot,15,8,lt),t.deflateInit2=Tt,t.deflateReset=Lt,t.deflateResetKeep=Rt,t.deflateSetHeader=(t,e)=>Ut(t)||2!==t.state.wrap?tt:(t.state.gzhead=e,V),t.deflate=(t,e)=>{if(Ut(t)||e>Q||e<0)return t?dt(t,tt):tt;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===a.status&&e!==J)return dt(t,0===t.avail_out?at:tt);const s=a.last_flush;if(a.last_flush=e,0!==a.pending){if(gt(t),0===t.avail_out)return a.last_flush=-1,V}else if(0===t.avail_in&&ut(e)<=ut(s)&&e!==J)return dt(t,at);if(666===a.status&&0!==t.avail_in)return dt(t,at);if(42===a.status&&0===a.wrap&&(a.status=113),42===a.status){let e=ot+(a.w_bits-8<<4)<<8,s=-1;if(s=a.strategy>=nt||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=s<<6,0!==a.strstart&&(e|=32),e+=31-e%31,bt(a,e),0!==a.strstart&&(bt(a,t.adler>>>16),bt(a,65535&t.adler)),t.adler=1,a.status=113,gt(t),0!==a.pending)return a.last_flush=-1,V}if(57===a.status)if(t.adler=0,mt(a,31),mt(a,139),mt(a,8),a.gzhead)mt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),mt(a,255&a.gzhead.time),mt(a,a.gzhead.time>>8&255),mt(a,a.gzhead.time>>16&255),mt(a,a.gzhead.time>>24&255),mt(a,9===a.level?2:a.strategy>=nt||a.level<2?4:0),mt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(mt(a,255&a.gzhead.extra.length),mt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=j(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(mt(a,0),mt(a,0),mt(a,0),mt(a,0),mt(a,0),mt(a,9===a.level?2:a.strategy>=nt||a.level<2?4:0),mt(a,3),a.status=113,gt(t),0!==a.pending)return a.last_flush=-1,V;if(69===a.status){if(a.gzhead.extra){let e=a.pending,s=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+s>a.pending_buf_size;){let r=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+r),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=j(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=r,gt(t),0!==a.pending)return a.last_flush=-1,V;e=0,s-=r}let r=new Uint8Array(a.gzhead.extra);a.pending_buf.set(r.subarray(a.gzindex,a.gzindex+s),a.pending),a.pending+=s,a.gzhead.hcrc&&a.pending>e&&(t.adler=j(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,s=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>s&&(t.adler=j(t.adler,a.pending_buf,a.pending-s,s)),gt(t),0!==a.pending)return a.last_flush=-1,V;s=0}e=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,mt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>s&&(t.adler=j(t.adler,a.pending_buf,a.pending-s,s)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,s=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>s&&(t.adler=j(t.adler,a.pending_buf,a.pending-s,s)),gt(t),0!==a.pending)return a.last_flush=-1,V;s=0}e=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,mt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>s&&(t.adler=j(t.adler,a.pending_buf,a.pending-s,s))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(gt(t),0!==a.pending))return a.last_flush=-1,V;mt(a,255&t.adler),mt(a,t.adler>>8&255),t.adler=0}if(a.status=113,gt(t),0!==a.pending)return a.last_flush=-1,V}if(0!==t.avail_in||0!==a.lookahead||e!==X&&666!==a.status){let s=0===a.level?kt(a,e):a.strategy===nt?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(zt(t),0===t.lookahead)){if(e===X)return 1;break}if(t.match_length=0,a=P(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(wt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===J?(wt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(wt(t,!1),0===t.strm.avail_out)?1:2})(a,e):a.strategy===it?((t,e)=>{let a,s,r,n;const i=t.window;for(;;){if(t.lookahead<=258){if(zt(t),t.lookahead<=258&&e===X)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(r=t.strstart-1,s=i[r],s===i[++r]&&s===i[++r]&&s===i[++r])){n=t.strstart+258;do{}while(s===i[++r]&&s===i[++r]&&s===i[++r]&&s===i[++r]&&s===i[++r]&&s===i[++r]&&s===i[++r]&&s===i[++r]&&r<n);t.match_length=258-(n-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=P(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=P(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(wt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===J?(wt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(wt(t,!1),0===t.strm.avail_out)?1:2})(a,e):Zt[a.level].func(a,e);if(3!==s&&4!==s||(a.status=666),1===s||3===s)return 0===t.avail_out&&(a.last_flush=-1),V;if(2===s&&(e===W?Y(a):e!==Q&&(B(a,0,0,!1),e===q&&(ft(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),gt(t),0===t.avail_out))return a.last_flush=-1,V}return e!==J?V:a.wrap<=0?$:(2===a.wrap?(mt(a,255&t.adler),mt(a,t.adler>>8&255),mt(a,t.adler>>16&255),mt(a,t.adler>>24&255),mt(a,255&t.total_in),mt(a,t.total_in>>8&255),mt(a,t.total_in>>16&255),mt(a,t.total_in>>24&255)):(bt(a,t.adler>>>16),bt(a,65535&t.adler)),gt(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?V:$)},t.deflateEnd=t=>{if(Ut(t))return tt;const e=t.state.status;return t.state=null,113===e?dt(t,et):V},t.deflateSetDictionary=(t,e)=>{let a=e.length;if(Ut(t))return tt;const s=t.state,r=s.wrap;if(2===r||1===r&&42!==s.status||s.lookahead)return tt;if(1===r&&(t.adler=K(t.adler,e,a,0)),s.wrap=0,a>=s.w_size){0===r&&(ft(s.head),s.strstart=0,s.block_start=0,s.insert=0);let t=new Uint8Array(s.w_size);t.set(e.subarray(a-s.w_size,a),0),e=t,a=s.w_size}const n=t.avail_in,i=t.next_in,_=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,zt(s);s.lookahead>=3;){let t=s.strstart,e=s.lookahead-2;do{s.ins_h=pt(s,s.ins_h,s.window[t+3-1]),s.prev[t&s.w_mask]=s.head[s.ins_h],s.head[s.ins_h]=t,t++}while(--e);s.strstart=t,s.lookahead=2,zt(s)}return s.strstart+=s.lookahead,s.block_start=s.strstart,s.insert=s.lookahead,s.lookahead=0,s.match_length=s.prev_length=2,s.match_available=0,t.next_in=i,t.input=_,t.avail_in=n,s.wrap=r,V},t.deflateInfo="pako deflate (from Nodeca project)";var Ft={};const Ot=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);Ft.assign=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Ot(a,e)&&(t[e]=a[e])}}return t},Ft.flattenChunks=t=>{let e=0;for(let a=0,s=t.length;a<s;a++)e+=t[a].length;const a=new Uint8Array(e);for(let e=0,s=0,r=t.length;e<r;e++){let r=t[e];a.set(r,s),s+=r.length}return a};var Dt={};let Nt=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Nt=!1}const Ct=new Uint8Array(256);for(let t=0;t<256;t++)Ct[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Ct[254]=Ct[254]=1,Dt.string2buf=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,s,r,n,i=t.length,_=0;for(r=0;r<i;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<i&&(s=t.charCodeAt(r+1),56320==(64512&s)&&(a=65536+(a-55296<<10)+(s-56320),r++)),_+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(_),n=0,r=0;n<_;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<i&&(s=t.charCodeAt(r+1),56320==(64512&s)&&(a=65536+(a-55296<<10)+(s-56320),r++)),a<128?e[n++]=a:a<2048?(e[n++]=192|a>>>6,e[n++]=128|63&a):a<65536?(e[n++]=224|a>>>12,e[n++]=128|a>>>6&63,e[n++]=128|63&a):(e[n++]=240|a>>>18,e[n++]=128|a>>>12&63,e[n++]=128|a>>>6&63,e[n++]=128|63&a);return e};Dt.buf2string=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let s,r;const n=new Array(2*a);for(r=0,s=0;s<a;){let e=t[s++];if(e<128){n[r++]=e;continue}let i=Ct[e];if(i>4)n[r++]=65533,s+=i-1;else{for(e&=2===i?31:3===i?15:7;i>1&&s<a;)e=e<<6|63&t[s++],i--;i>1?n[r++]=65533:e<65536?n[r++]=e:(e-=65536,n[r++]=55296|e>>10&1023,n[r++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Nt)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let s=0;s<e;s++)a+=String.fromCharCode(t[s]);return a})(n,r)},Dt.utf8border=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Ct[t[a]]>e?a:e};const It=t,Ht=Ft,Bt=Dt,Mt=C,Pt=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Yt=Object.prototype.toString,{Z_NO_FLUSH:Kt,Z_SYNC_FLUSH:jt,Z_FULL_FLUSH:Gt,Z_FINISH:Xt,Z_OK:Wt,Z_STREAM_END:qt,Z_DEFAULT_COMPRESSION:Jt,Z_DEFAULT_STRATEGY:Qt,Z_DEFLATED:Vt}=I;function $t(t){this.options=Ht.assign({level:Jt,method:Vt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Qt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Pt,this.strm.avail_out=0;let a=It.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==Wt)throw new Error(Mt[a]);if(e.header&&It.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Bt.string2buf(e.dictionary):"[object ArrayBuffer]"===Yt.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=It.deflateSetDictionary(this.strm,t),a!==Wt)throw new Error(Mt[a]);this._dict_set=!0}}$t.prototype.push=function(t,e){const a=this.strm,s=this.options.chunkSize;let r,n;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Xt:Kt,"string"==typeof t?a.input=Bt.string2buf(t):"[object ArrayBuffer]"===Yt.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(s),a.next_out=0,a.avail_out=s),(n===jt||n===Gt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(r=It.deflate(a,n),r===qt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),r=It.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===Wt;if(0!==a.avail_out){if(n>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},$t.prototype.onData=function(t){this.chunks.push(t)},$t.prototype.onEnd=function(t){t===Wt&&(this.result=Ht.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const te=$t,ee=function(t,e){const a=new $t(e);if(a.push(t,!0),a.err)throw a.msg||Mt[a.err];return a.result},ae=I;const se=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const e=this._hasEvents?",":"";this.deflate.push(e+t,ae.Z_SYNC_FLUSH),this._hasEvents=!0}finish(){if(this.deflate.push("]",ae.Z_FINISH),this.deflate.err)throw this.deflate.err;const t=this.deflate.result;return this._init(),t}_init(){this._hasEvents=!1,this.deflate=new te,this.deflate.push("[",ae.Z_NO_FLUSH)}},re={clear:()=>{se.clear()},addEvent:t=>se.addEvent(t),finish:()=>se.finish(),compress:t=>function(t){return ee(t)}(t)};addEventListener("message",(function(t){const e=t.data.method,a=t.data.id,s=t.data.arg;if(e in re&&"function"==typeof re[e])try{const t=re[e](s);postMessage({id:a,method:e,success:!0,response:t})}catch(t){postMessage({id:a,method:e,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}());if(!t)return;const r=new Worker(t);return new fi(r)}catch(e){}}(t);if(e)return e}return new di}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,r=Li({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=r}_checkSession(){if(!this.session)return!1;const e=this.session;return!xi(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}_refreshSession(e){var t=this;return Tt(Ct().mark((function r(){return Ct().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._isEnabled){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,t.stop({reason:"refresh session"});case 4:t.initializeSampling(e.id);case 5:case"end":return r.stop()}}),r)})))()}_addListeners(){try{Mt.document.addEventListener("visibilitychange",this._handleVisibilityChange),Mt.addEventListener("blur",this._handleWindowBlur),Mt.addEventListener("focus",this._handleWindowFocus),Mt.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(e){const t=(0,y.Gd)().getScope(),r=(0,y.Gd)().getClient();t.addScopeListener((e=>t=>{if(!e.isEnabled())return;const r=function(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();return yo!==t&&t?(yo=t,!function(e){return!!e.category}(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:"console"===t.category?function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return ri(e);let r=!1;const n=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>Gt?(r=!0,`${e.slice(0,Gt)}…`):e;if("object"==typeof e)try{const t=(0,$e.Fv)(e,7),n=JSON.stringify(t);if(n.length>Gt){const e=Ki(n.slice(0,Gt)),t=JSON.parse(e);return r=!0,t}return t}catch(e){}return e}));return ri(It(It({},e),{},{data:It(It({},e.data),{},{arguments:n},r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{})}))}(t):ri(t)):null}(t);r&&$n(e,r)})(e)),(0,b.oq)("dom",(e=>t=>{if(!e.isEnabled())return;const r=function(e){const t=function(e){const t="click"===e.name;let r,n=null;try{n=t?qn(e.event):Xn(e.event),r=(0,qe.Rt)(n,{maxStringLength:200})||"<unknown>"}catch(e){r="<unknown>"}return{target:n,message:r}}(e),r=t.target,n=t.message;return ri(It({category:`ui.${e.name}`},ai(r,n)))}(t);if(!r)return;const n="click"===t.name,i=n&&t.event;!(n&&e.clickDetector&&i)||i.altKey||i.metaKey||i.ctrlKey||i.shiftKey||function(e,t,r){e.handleClick(t,r)}(e.clickDetector,r,qn(t.event)),$n(e,r)})(e)),(0,b.oq)("history",function(e){return t=>{if(!e.isEnabled())return;const r=function(e){const t=e.from,r=e.to,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}(t);null!==r&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate((()=>(Di(e,[r]),!1))))}}(e)),function(e){const t=(0,y.Gd)().getClient();try{const r=new TextEncoder,n=e.getOptions(),i=n.networkDetailAllowUrls,o={replay:e,textEncoder:r,networkDetailAllowUrls:i,networkDetailDenyUrls:n.networkDetailDenyUrls,networkCaptureBodies:n.networkCaptureBodies,networkRequestHeaders:n.networkRequestHeaders,networkResponseHeaders:n.networkResponseHeaders};t&&t.on?t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,r){if(t.data)try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(r)&&(function(e,t,r){const n=t.xhr,i=$i(t.input,r.textEncoder),o=n.getResponseHeader("content-length")?qi(n.getResponseHeader("content-length")):$i(n.response,r.textEncoder);void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}(t,r,e),function(e,t,r){go.apply(this,arguments)}(t,r,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(r)&&(function(e,t,r){const n=t.input,i=t.response,o=$i(ho(n),r.textEncoder),a=i?qi(i.headers.get("content-length")):void 0;void 0!==o&&(e.data.request_body_size=o),void 0!==a&&(e.data.response_body_size=a)}(t,r,e),function(e,t,r){io.apply(this,arguments)}(t,r,e))}catch(e){}}(o,e,t))):((0,b.oq)("fetch",function(e){return t=>{if(!e.isEnabled())return;const r=function(e){const t=e.startTimestamp,r=e.endTimestamp,n=e.fetchData,i=e.response;if(!r)return null;const o=n.method;return{type:"resource.fetch",start:t/1e3,end:r/1e3,name:n.url,data:{method:o,statusCode:i?i.status:void 0}}}(t);Ni(e,r)}}(e)),(0,b.oq)("xhr",function(e){return t=>{if(!e.isEnabled())return;const r=function(e){const t=e.startTimestamp,r=e.endTimestamp,n=e.xhr[b.xU];if(!t||!r||!n)return null;const i=n.method,o=n.url,a=n.status_code;return void 0===o?null:{type:"resource.xhr",name:o,start:t/1e3,end:r/1e3,data:{method:i,statusCode:a}}}(t);Ni(e,r)}}(e)))}catch(e){}}(e);const n=function(e,t=!1){const r=t?ki(e):void 0;return Object.assign(((t,n)=>{if(!e.isEnabled())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!Ai(t)&&!Ci(t))return t;if(!e.checkAndHandleExpiredSession())return t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length||!t.originalException||!t.originalException.__rrweb__)}(t,n)&&!e.getOptions()._experiments.captureExceptions)return null;const i=function(e,t){return"buffer"===e.recordingMode&&t.message!==Zt&&!(!t.exception||t.type)&&vi(e.getOptions().errorSampleRate)}(e,t);return(i||"session"===e.recordingMode)&&(t.tags=It(It({},t.tags),{},{replayId:e.getSessionId()})),r&&r(t,{statusCode:200}),t}),{id:"Replay"})}(e,!bo(r));r&&r.addEventProcessor?r.addEventProcessor(n):(0,Ae.cc)(n),bo(r)&&(r.on("afterSendEvent",ki(e)),r.on("createDsc",(t=>{const r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)})),r.on("startTransaction",(t=>{e.lastTransaction=t})),r.on("finishTransaction",(t=>{e.lastTransaction=t})))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function r({entries:e}){e.forEach(t)}const n=[];return["navigation","paint","resource"].forEach((e=>{n.push(yt(e,r))})),n.push(vt((({metric:t})=>{e.replayPerformanceEntries.push(function(e){const t=e.entries,r=t[t.length-1],n=r?r.element:void 0,i=e.value,o=li(i);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:o,end:o,data:{value:i,size:i,nodeId:n?Wn.mirror.getId(n):void 0}}}(t))}))),()=>{n.forEach((e=>e()))}}(this)}_removeListeners(){try{Mt.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Mt.removeEventListener("blur",this._handleWindowBlur),Mt.removeEventListener("focus",this._handleWindowFocus),Mt.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===Mt.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=ri({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=ri({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();const r=function(e){const t=e.metaKey,r=e.shiftKey,n=e.ctrlKey,i=e.altKey,o=e.key,a=e.target;if(!a||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(a)||!o)return null;const s=t||n||i,c=1===o.length;if(!s&&c)return null;const l=(0,qe.Rt)(a,{maxStringLength:200})||"<unknown>";return ri({category:"ui.keyDown",message:l,data:It(It({},ai(a,l).data),{},{metaKey:t,shiftKey:r,ctrlKey:n,altKey:i,key:o})})}(t);r&&$n(e,r)}(this,e)}}_doChangeToBackgroundTasks(e){this.session&&(wi(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){this.session&&this.checkAndHandleExpiredSession()&&e&&this._createCustomBreadcrumb(e)}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:zr.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=(t=this.performanceEntries,t.map(ci).filter(Boolean)).concat(this.replayPerformanceEntries);var t;return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(Di(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const e=this.session,t=this.eventBuffer;if(!e||!t)return;if(e.segmentId)return;const r=t.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}_runFlush(){var e=this;return Tt(Ct().mark((function t(){var r,n,i,o,a,s;return Ct().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.getSessionId(),e.session&&e.eventBuffer&&r){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,e._addPerformanceEntries();case 6:if(e.eventBuffer&&e.eventBuffer.hasEvents){t.next=8;break}return t.abrupt("return");case 8:return t.next=10,_o(e);case 10:if(e.eventBuffer){t.next=12;break}return t.abrupt("return");case 12:if(r===e.getSessionId()){t.next=14;break}return t.abrupt("return");case 14:if(t.prev=14,e._updateInitialTimestampFromEventBuffer(),!((n=Date.now())-e._context.initialTimestamp>e._options.maxReplayDuration+3e4)){t.next=19;break}throw new Error("Session is too long, not sending replay");case 19:return i=e._popEventContext(),o=e.session.segmentId++,e._maybeSaveSession(),t.next=24,e.eventBuffer.finish();case 24:return a=t.sent,t.next=27,Co({replayId:r,recordingData:a,segmentId:o,eventContext:i,session:e.session,options:e.getOptions(),timestamp:n});case 27:t.next=35;break;case 29:t.prev=29,t.t0=t.catch(14),e._handleException(t.t0),e.stop({reason:"sendReplay"}),(s=(0,y.Gd)().getClient())&&s.recordDroppedEvent("send_error","replay");case 35:case"end":return t.stop()}}),t,null,[[14,29]])})))()}__init5(){var e=this;this._flush=Tt(Ct().mark((function t({force:r=!1}={}){var n,i,o,a,s,c;return Ct().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._isEnabled||r){t.next=2;break}return t.abrupt("return");case 2:if(e.checkAndHandleExpiredSession()){t.next=5;break}return t.abrupt("return");case 5:if(e.session){t.next=7;break}return t.abrupt("return");case 7:if(n=e.session.started,i=Date.now(),o=i-n,e._debouncedFlush.cancel(),a=o<e._options.minReplayDuration,s=o>e._options.maxReplayDuration+5e3,!a&&!s){t.next=17;break}return Math.floor(o/1e3),e._options._experiments.traceInternals,a&&e._debouncedFlush(),t.abrupt("return");case 17:if((c=e.eventBuffer)&&0===e.session.segmentId&&!c.hasCheckout&&e._options._experiments.traceInternals,e._flushLock){t.next=25;break}return e._flushLock=e._runFlush(),t.next=23,e._flushLock;case 23:return e._flushLock=void 0,t.abrupt("return");case 25:return t.prev=25,t.next=28,e._flushLock;case 28:t.next=33;break;case 30:t.prev=30,t.t0=t.catch(25);case 33:return t.prev=33,e._debouncedFlush(),t.finish(33);case 36:case"end":return t.stop()}}),t,null,[[25,30,33,36]])})))}_maybeSaveSession(){this.session&&this._options.stickySession&&yi(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,r=this._options.mutationLimit,n=r&&t>r;if(t>this._options.mutationBreadcrumbLimit||n){const e=ri({category:"replay.mutations",data:{count:t,limit:n}});this._createCustomBreadcrumb(e)}return!n||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function Ro(e,t,r,n){const i=[...e,..."string"==typeof n?n.split(","):[],...t];return void 0!==r&&("string"==typeof r&&i.push(`.${r}`),console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")),i.join(",")}const Mo='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',jo=["content-length","content-type","accept"];let Fo=!1;class Zo{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:i=!0,useCompression:o=!0,workerUrl:a,_experiments:s={},sessionSampleRate:c,errorSampleRate:l,maskAllText:u=!0,maskAllInputs:d=!0,blockAllMedia:p=!0,mutationBreadcrumbLimit:h=750,mutationLimit:f=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:v=[],networkDetailDenyUrls:y=[],networkCaptureBodies:b=!0,networkRequestHeaders:_=[],networkResponseHeaders:E=[],mask:w=[],maskAttributes:x=["title","placeholder"],unmask:L=[],block:O=[],unblock:S=[],ignore:T=[],maskFn:P,beforeAddRecordingEvent:I,blockClass:A,blockSelector:C,maskInputOptions:k,maskTextClass:D,maskTextSelector:N,ignoreClass:R}={}){this.name=Zo.id;const M=function({mask:e,unmask:t,block:r,unblock:n,ignore:i,blockClass:o,blockSelector:a,maskTextClass:s,maskTextSelector:c,ignoreClass:l}){const u={maskTextSelector:Ro(e,[".sentry-mask","[data-sentry-mask]"],s,c),unmaskTextSelector:Ro(t,[".sentry-unmask","[data-sentry-unmask]"]),blockSelector:Ro(r,[".sentry-block","[data-sentry-block]",'base[href="/"]'],o,a),unblockSelector:Ro(n,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:Ro(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],l)};return o instanceof RegExp&&(u.blockClass=o),s instanceof RegExp&&(u.maskTextClass=s),u}({mask:w,unmask:L,block:O,unblock:S,ignore:T,blockClass:A,blockSelector:C,maskTextClass:D,maskTextSelector:N,ignoreClass:R});if(this._recordingOptions=It(It({maskAllInputs:d,maskAllText:u,maskInputOptions:It(It({},k||{}),{},{password:!0}),maskTextFn:P,maskInputFn:P,maskAttributeFn:(e,t,r)=>function({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:i,value:o}){return n?i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?o:r.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o:o}({maskAttributes:x,maskAllText:u,privacyOptions:M,key:e,value:t,el:r})},M),{},{slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}}),this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(r,15e3),maxReplayDuration:Math.min(n,36e5),stickySession:i,sessionSampleRate:c,errorSampleRate:l,useCompression:o,workerUrl:a,blockAllMedia:p,maskAllInputs:d,maskAllText:u,mutationBreadcrumbLimit:h,mutationLimit:f,slowClickTimeout:m,slowClickIgnoreSelectors:g,networkDetailAllowUrls:v,networkDetailDenyUrls:y,networkCaptureBodies:b,networkRequestHeaders:Bo(_),networkResponseHeaders:Bo(E),beforeAddRecordingEvent:I,_experiments:s},"number"==typeof c&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ${c} })`),this._initialOptions.sessionSampleRate=c),"number"==typeof l&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ${l} })`),this._initialOptions.errorSampleRate=l),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Mo}`:Mo),this._isInitialized&&et())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Fo}set _isInitialized(e){Fo=e}setupOnce(){et()&&(this._setup(),setTimeout((()=>this._initialize())))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&this._replay.initializeSampling()}_setup(){const e=function(e){const t=(0,y.Gd)().getClient(),r=t&&t.getOptions(),n=It({sessionSampleRate:0,errorSampleRate:0},(0,R.Jr)(e));return r?(null==e.sessionSampleRate&&null==e.errorSampleRate&&null==r.replaysSessionSampleRate&&null==r.replaysOnErrorSampleRate&&console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set."),"number"==typeof r.replaysSessionSampleRate&&(n.sessionSampleRate=r.replaysSessionSampleRate),"number"==typeof r.replaysOnErrorSampleRate&&(n.errorSampleRate=r.replaysOnErrorSampleRate),n):(console.warn("SDK client is not available."),n)}(this._initialOptions);this._replay=new No({options:e,recordingOptions:this._recordingOptions})}}function Bo(e){return[...jo,...e.map((e=>e.toLowerCase()))]}Zo.__initStatic();const Go=["startTimestamp"];function Uo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ho(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zo(e){return"number"==typeof e&&isFinite(e)}function Vo(e,t){let r=t.startTimestamp,n=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,Go);return r&&e.startTimestamp>r&&(e.startTimestamp=r),e.startChild(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Uo(Object(r),!0).forEach((function(t){Ho(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({startTimestamp:r},n))}function Yo(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Wo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wo(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function Wo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ko(e){return e/1e3}function $o(){return rt&&rt.addEventListener&&rt.performance}let qo,Xo,Jo=0,Qo={};function ea(e,t,r,n,i,o){const a=o?t[o]:t[`${r}End`],s=t[`${r}Start`];s&&a&&Vo(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||r,startTimestamp:n+Ko(s),endTimestamp:n+Ko(a)})}function ta(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||ra(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ra(e,t){if(e){if("string"==typeof e)return na(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?na(e,t):void 0}}function na(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ia(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function oa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const aa=["localhost",/^\/(?!\/)/],sa={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:aa,tracePropagationTargets:aa};function ca(e){const t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ia(Object(r),!0).forEach((function(t){oa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ia(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({traceFetch:sa.traceFetch,traceXHR:sa.traceXHR},e),r=t.traceFetch,n=t.traceXHR,i=(t.tracePropagationTargets,t.tracingOrigins,t.shouldCreateSpanForRequest,t.enableHTTPTimings);r&&(0,b.oq)("fetch",(e=>{})),n&&(0,b.oq)("xhr",(e=>{const t=function(e,t,r,n){const i=e.xhr;i&&i[b.xU]}(e);i&&t&&function(e){const t=e.data.url;if(!t)return;const r=yt("resource",(({entries:n})=>{n.forEach((n=>{if(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}(n)&&n.name.endsWith(t)){const t=function(e){const t=function(e){let t="unknown",r="unknown",n="";var i,o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=ra(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(e);try{for(o.s();!(i=o.n()).done;){const o=i.value;if("/"===o){var a=ta(e.split("/"),2);t=a[0],r=a[1];break}if(!isNaN(Number(o))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=o}}catch(e){o.e(e)}finally{o.f()}return n===e&&(t=n),{name:t,version:r}}(e.nextHopProtocol),r=t.name,n=t.version,i=[];return i.push(["network.protocol.version",n],["network.protocol.name",r]),x.Z1?[...i,["http.request.redirect_start",la(e.redirectStart)],["http.request.fetch_start",la(e.fetchStart)],["http.request.domain_lookup_start",la(e.domainLookupStart)],["http.request.domain_lookup_end",la(e.domainLookupEnd)],["http.request.connect_start",la(e.connectStart)],["http.request.secure_connection_start",la(e.secureConnectionStart)],["http.request.connection_end",la(e.connectEnd)],["http.request.request_start",la(e.requestStart)],["http.request.response_start",la(e.responseStart)],["http.request.response_end",la(e.responseEnd)]]:i}(n);t.forEach((t=>e.setData(...t))),setTimeout(r)}}))}))}(t)}))}function la(e=0){return((x.Z1||performance.timeOrigin)+e)/1e3}function ua(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function da(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ua(Object(r),!0).forEach((function(t){pa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ua(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function pa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ha=da(da({},K),{},{markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,r=!0){if(!rt||!rt.location)return;let n,i=rt.location.href;t&&(n=e({name:rt.location.pathname,startTimestamp:x.Z1?x.Z1/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),r&&(0,b.oq)("history",(({to:t,from:r})=>{void 0===r&&i&&-1!==i.indexOf(t)?i=void 0:r!==t&&(i=void 0,n&&n.finish(),n=e({name:rt.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{}},sa);class fa{constructor(e){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,oe(),this.options=da(da({},ha),e),void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=function(){const e=$o();if(e&&x.Z1){e.mark&&rt.performance.mark("sentry-tracing-init");const t=xt("fid",(({metric:e})=>{const t=e.entries.pop();if(!t)return;const r=Ko(x.Z1),n=Ko(t.startTime);Qo.fid={value:e.value,unit:"millisecond"},Qo["mark.fid"]={value:r+n,unit:"second"}}),Et,mt),r=xt("cls",(({metric:e})=>{const t=e.entries.pop();t&&(Qo.cls={value:e.value,unit:""},Xo=t)}),_t,ft),n=vt((({metric:e})=>{const t=e.entries.pop();t&&(Qo.lcp={value:e.value,unit:"millisecond"},qo=t)}));return()=>{t(),r(),n()}}return()=>{}}(),this.options.enableLongTask&&yt("longtask",(({entries:e})=>{var t,r=Yo(e);try{for(r.s();!(t=r.n()).done;){const e=t.value,r=_();if(!r)return;const n=Ko(x.Z1+e.startTime),i=Ko(e.duration);r.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i})}}catch(e){r.e(e)}finally{r.f()}})),this.options._experiments.enableInteractions&&yt("event",(({entries:e})=>{var t,r=Yo(e);try{for(r.s();!(t=r.n()).done;){const e=t.value,r=_();if(!r)return;if("click"===e.name){const t=Ko(x.Z1+e.startTime),n=Ko(e.duration);r.startChild({description:(0,qe.Rt)(e.target),op:`ui.interaction.${e.name}`,origin:"auto.ui.browser.metrics",startTimestamp:t,endTimestamp:t+n})}}}catch(e){r.e(e)}finally{r.f()}}))}setupOnce(e,t){this._getCurrentHub=t;const r=t().getClient(),n=r&&r.getOptions(),i=this.options,o=i.routingInstrumentation,a=i.startTransactionOnLocationChange,s=i.startTransactionOnPageLoad,c=i.markBackgroundTransactions,l=i.traceFetch,u=i.traceXHR,d=i.shouldCreateSpanForRequest,p=i.enableHTTPTimings,h=i._experiments,f=n&&n.tracePropagationTargets||this.options.tracePropagationTargets;o((e=>{const r=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(r,e,t),r}),s,a),c&&rt&&rt.document&&rt.document.addEventListener("visibilitychange",(()=>{const e=_();if(rt.document.hidden&&e){const t="cancelled";e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}})),h.enableInteractions&&this._registerInteractionListener(),ca({traceFetch:l,traceXHR:u,tracePropagationTargets:f,shouldCreateSpanForRequest:d,enableHTTPTimings:p})}_createRouteTransaction(e){if(!this._getCurrentHub)return;const t=this._getCurrentHub(),r=this.options,n=r.beforeNavigate,i=r.idleTimeout,o=r.finalTimeout,a=r.heartbeatInterval,s="pageload"===e.op,c=N(s?ma("sentry-trace"):"",s?ma("baggage"):""),l=c.traceparentData,u=c.dynamicSamplingContext,d=c.propagationContext,p=da(da(da({},e),l),{},{metadata:da(da({},e.metadata),{},{dynamicSamplingContext:l&&!u?{}:u}),trimEnd:!0}),h="function"==typeof n?n(p):p,f=void 0===h?da(da({},p),{},{sampled:!1}):h;f.metadata=f.name!==p.name?da(da({},f.metadata),{},{source:"custom"}):f.metadata,this._latestRouteName=f.name,this._latestRouteSource=f.metadata&&f.metadata.source,f.sampled;const m=ie(t,f,i,o,!0,{location:rt.location},a),g=t.getScope();return s&&l?g.setPropagationContext(d):g.setPropagationContext({traceId:m.traceId,spanId:m.spanId,parentSpanId:m.parentSpanId,sampled:m.sampled}),m.registerBeforeFinishCallback((e=>{this._collectWebVitals(),function(e){const t=$o();if(!t||!rt.performance.getEntries||!x.Z1)return;const r=Ko(x.Z1),n=t.getEntries();let i,o;if(n.slice(Jo).forEach((t=>{const n=Ko(t.startTime),a=Ko(t.duration);if(!("navigation"===e.op&&r+n<e.startTimestamp))switch(t.entryType){case"navigation":!function(e,t,r){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((n=>{ea(e,t,n,r)})),ea(e,t,"secureConnection",r,"TLS/SSL","connectEnd"),ea(e,t,"fetch",r,"cache","domainLookupStart"),ea(e,t,"domainLookup",r,"DNS"),function(e,t,r){Vo(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:r+Ko(t.requestStart),endTimestamp:r+Ko(t.responseEnd)}),Vo(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:r+Ko(t.responseStart),endTimestamp:r+Ko(t.responseEnd)})}(e,t,r)}(e,t,r),i=r+Ko(t.responseStart),o=r+Ko(t.requestStart);break;case"mark":case"paint":case"measure":{!function(e,t,r,n,i){const o=i+r,a=o+n;Vo(e,{description:t.name,endTimestamp:a,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:o})}(e,t,n,a,r);const i=lt(),o=t.startTime<i.firstHiddenTime;"first-paint"===t.name&&o&&(Qo.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&o&&(Qo.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":{const i=t.name.replace(rt.location.origin,"");!function(e,t,r,n,i,o){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const a={};"transferSize"in t&&(a["http.response_transfer_size"]=t.transferSize),"encodedBodySize"in t&&(a["http.response_content_length"]=t.encodedBodySize),"decodedBodySize"in t&&(a["http.decoded_response_content_length"]=t.decodedBodySize),"renderBlockingStatus"in t&&(a["resource.render_blocking_status"]=t.renderBlockingStatus);const s=o+n;Vo(e,{description:r,endTimestamp:s+i,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:s,data:a})}(e,t,i,n,a,r);break}}})),Jo=Math.max(n.length-1,0),function(e){const t=rt.navigator;if(!t)return;const r=t.connection;r&&(r.effectiveType&&e.setTag("effectiveConnectionType",r.effectiveType),r.type&&e.setTag("connectionType",r.type),zo(r.rtt)&&(Qo["connection.rtt"]={value:r.rtt,unit:"millisecond"})),zo(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),zo(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===e.op){"number"==typeof i&&(Qo.ttfb={value:1e3*(i-e.startTimestamp),unit:"millisecond"},"number"==typeof o&&o<=i&&(Qo["ttfb.requestTime"]={value:1e3*(i-o),unit:"millisecond"})),["fcp","fp","lcp"].forEach((t=>{if(!Qo[t]||r>=e.startTimestamp)return;const n=Qo[t].value,i=r+Ko(n),o=Math.abs(1e3*(i-e.startTimestamp));Qo[t].value=o}));const t=Qo["mark.fid"];t&&Qo.fid&&(Vo(e,{description:"first input delay",endTimestamp:t.value+Ko(Qo.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value}),delete Qo["mark.fid"]),"fcp"in Qo||delete Qo.cls,Object.keys(Qo).forEach((t=>{e.setMeasurement(t,Qo[t].value,Qo[t].unit)})),function(e){qo&&(qo.element&&e.setTag("lcp.element",(0,qe.Rt)(qo.element)),qo.id&&e.setTag("lcp.id",qo.id),qo.url&&e.setTag("lcp.url",qo.url.trim().slice(0,200)),e.setTag("lcp.size",qo.size)),Xo&&Xo.sources&&Xo.sources.forEach(((t,r)=>e.setTag(`cls.source.${r+1}`,(0,qe.Rt)(t.node))))}(e)}qo=void 0,Xo=void 0,Qo={}}(e)})),m}_registerInteractionListener(){let e;const t=()=>{const t=this.options,r=t.idleTimeout,n=t.finalTimeout,i=t.heartbeatInterval,o=_();if(o&&o.op&&["navigation","pageload"].includes(o.op))return;if(e&&(e.setFinishReason("interactionInterrupted"),e.finish(),e=void 0),!this._getCurrentHub)return;if(!this._latestRouteName)return;const a=this._getCurrentHub(),s=rt.location,c={name:this._latestRouteName,op:"ui.action.click",trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};e=ie(a,c,r,n,!0,{location:s},i)};["click"].forEach((e=>{addEventListener(e,t,{once:!1,capture:!0})}))}}function ma(e){const t=(0,qe.qT)(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}var ga=r(92858);function va(){va=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ya(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function ba(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ya(o,n,i,a,s,"next",e)}function s(e){ya(o,n,i,a,s,"throw",e)}a(void 0)}))}}const _a=5e3;function Ea(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ea(Object(r),!0).forEach((function(t){xa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ea(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function La(){La=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Oa(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Sa(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Oa(o,n,i,a,s,"next",e)}function s(e){Oa(o,n,i,a,s,"throw",e)}a(void 0)}))}}function Ta(e){return new Promise(((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)}))}function Pa(e){return Ta(e.getAllKeys())}function Ia(e,t,r){return e((e=>Pa(e).then((n=>{if(!(n.length>=r))return e.put(t,Math.max(...n,0)+1),Ta(e.transaction)}))))}function Aa(e){return e((e=>Pa(e).then((t=>{if(0!==t.length)return Ta(e.get(t[0])).then((r=>(e.delete(t[0]),Ta(e.transaction).then((()=>r)))))}))))}function Ca(e){let t;function r(){return null==t&&(t=function(e,t){const r=indexedDB.open(e);r.onupgradeneeded=()=>r.result.createObjectStore(t);const n=Ta(r);return e=>n.then((r=>e(r.transaction(t,"readwrite").objectStore(t))))}(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{insert:(i=Sa(La().mark((function t(n){var i;return La().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,u.V$)(n,e.textEncoder);case 3:return i=t.sent,t.next=6,Ia(r(),i,e.maxQueueSize||30);case 6:t.next=10;break;case 8:t.prev=8,t.t0=t.catch(0);case 10:case"end":return t.stop()}}),t,null,[[0,8]])}))),function(e){return i.apply(this,arguments)}),pop:(n=Sa(La().mark((function t(){var n;return La().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Aa(r());case 3:if(!(n=t.sent)){t.next=6;break}return t.abrupt("return",(0,u.f4)(n,e.textEncoder||new TextEncoder,e.textDecoder||new TextDecoder));case 6:t.next=10;break;case 8:t.prev=8,t.t0=t.catch(0);case 10:return t.abrupt("return",void 0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])}))),function(){return n.apply(this,arguments)})};var n,i}function ka(e){return function(e){return t=>e(wa(wa({},t),{},{createStore:Ca}))}(function(e){return t=>{const r=e(t),n=t.createStore?t.createStore(t):void 0;let i,o=_a;function a(e,r,n){return!(0,u.R)(e,["replay_event","replay_recording","client_report"])&&(!t.shouldStore||t.shouldStore(e,r,n))}function s(e){n&&(i&&clearTimeout(i),i=setTimeout(ba(va().mark((function e(){var t;return va().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=void 0,e.next=3,n.pop();case 3:(t=e.sent)&&l(t).catch((e=>{}));case 5:case"end":return e.stop()}}),e)}))),e),"number"!=typeof i&&i.unref&&i.unref())}function c(){i||(s(o),o=Math.min(2*o,36e5))}function l(e){return d.apply(this,arguments)}function d(){return(d=ba(va().mark((function e(t){var i,l;return va().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.send(t);case 3:if(i=e.sent,l=100,!i){e.next=12;break}if(!i.headers||!i.headers["retry-after"]){e.next=10;break}l=(0,ga.JY)(i.headers["retry-after"]),e.next=12;break;case 10:if(!((i.statusCode||0)>=400)){e.next=12;break}return e.abrupt("return",i);case 12:return s(l),o=_a,e.abrupt("return",i);case 17:if(e.prev=17,e.t0=e.catch(0),e.t1=n,!e.t1){e.next=24;break}return e.next=23,a(t,e.t0,o);case 23:e.t1=e.sent;case 24:if(!e.t1){e.next=32;break}return e.next=27,n.insert(t);case 27:return c(),e.t0,e.abrupt("return",{});case 32:throw e.t0;case 33:case"end":return e.stop()}}),e,null,[[0,17]])})))).apply(this,arguments)}return t.flushAtStartup&&c(),{send:l,flush:e=>r.flush(e)}}}(e))}var Da=r(55116);function Na(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Ra(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ra(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function Ra(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Ma=1e6,ja=String(0);let Fa="",Za="",Ba="",Ga=De.m9.navigator&&De.m9.navigator.userAgent||"",Ua="";const Ha=De.m9.navigator&&De.m9.navigator.language||De.m9.navigator&&De.m9.navigator.languages&&De.m9.navigator.languages[0]||"",za=De.m9.navigator&&De.m9.navigator.userAgentData;var Va;function Ya(e){return"pageload"===e.op}"object"==typeof(Va=za)&&null!==Va&&"getHighEntropyValues"in Va&&za.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then((e=>{if(Fa=e.platform||"",Ba=e.architecture||"",Ua=e.model||"",Za=e.platformVersion||"",e.fullVersionList&&e.fullVersionList.length>0){const t=e.fullVersionList[e.fullVersionList.length-1];Ga=`${t.brand} ${t.version}`}})).catch((e=>{}));const Wa=new WeakMap;function Ka(e){const t=d.n2._sentryDebugIds;if(!t)return[];const r=(0,y.Gd)();if(!r)return[];const n=r.getClient();if(!n)return[];const i=n.getOptions();if(!i)return[];const o=i.stackParser;if(!o)return[];let a;const s=Wa.get(o);s?a=s:(a=new Map,Wa.set(o,a));const c=Object.keys(t).reduce(((e,r)=>{let n;const i=a.get(r);i?n=i:(n=o(r),a.set(r,n));for(let i=n.length-1;i>=0;i--){const o=n[i],a=o&&o.filename;if(o&&a){e[a]=t[r];break}}return e}),{}),l=[];var u,p=Na(e);try{for(p.s();!(u=p.n()).done;){const e=u.value;e&&c[e]&&l.push({type:"sourcemap",code_file:e,debug_id:c[e]})}}catch(e){p.e(e)}finally{p.f()}return l}let $a=!1;function qa(e){if($a)return!1;if(!e.sampled)return!1;const t=(0,y.Gd)().getClient(),r=t&&t.getOptions();if(!r)return!1;const n=r.profilesSampleRate;return!("number"!=typeof(i=n)&&"boolean"!=typeof i||"number"==typeof i&&isNaN(i)||!0!==i&&!1!==i&&(i<0||i>1)||!n||!(!0===n||Math.random()<n));var i}function Xa(e,t,r,n){return function(e){return!(e.samples.length<2||!e.frames.length)}(r)?function(e,t,r,n){if("transaction"!==n.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==r)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${r} instead.`);const i=function(e){const t=e&&e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id;return"string"==typeof t&&t.length,"string"!=typeof t?"":t}(n),o=function(e){return function(e){return!("thread_metadata"in e)}(e)?function(e){let t,r=0;const n={samples:[],stacks:[],frames:[],thread_metadata:{[ja]:{name:"main"}}};if(!e.samples.length)return n;const i=e.samples[0].timestamp,o="number"==typeof performance.timeOrigin?performance.timeOrigin:x.Z1||0,a=o-(x.Z1||o);for(let o=0;o<e.samples.length;o++){const s=e.samples[o];if(void 0===s.stackId){void 0===t&&(t=r,n.stacks[t]=[],r++),n.samples[o]={elapsed_since_start_ns:((s.timestamp+a-i)*Ma).toFixed(0),stack_id:t,thread_id:ja};continue}let c=e.stacks[s.stackId];const l=[];for(;c;){l.push(c.frameId);const t=e.frames[c.frameId];void 0===n.frames[c.frameId]&&(n.frames[c.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),c=void 0===c.parentId?void 0:e.stacks[c.parentId]}const u={elapsed_since_start_ns:((s.timestamp+a-i)*Ma).toFixed(0),stack_id:r,thread_id:ja};n.stacks[r]=l,n.samples[o]=u,r++}return n}(e):e}(r),a=t||("number"==typeof n.start_timestamp?1e3*n.start_timestamp:Date.now()),s="number"==typeof n.timestamp?1e3*n.timestamp:Date.now();return{event_id:e,timestamp:new Date(a).toISOString(),platform:"javascript",version:"1",release:n.release||"",environment:n.environment||Da.J,runtime:{name:"javascript",version:De.m9.navigator.userAgent},os:{name:Fa,version:Za,build_number:Ga},device:{locale:Ha,model:Ua,manufacturer:Ga,architecture:Ba,is_emulator:!1},debug_meta:{images:Ka(r.resources)},profile:o,transactions:[{name:n.transaction||"",id:n.event_id||(0,L.DM)(),trace_id:i,active_thread_id:ja,relative_start_ns:"0",relative_end_ns:(1e6*(s-a)).toFixed(0)}]}}(e,t,r,n):null}const Ja=new Map;function Qa(e){const t=Ja.get(e);return t&&Ja.delete(e),t}function es(e,t){if(Ja.set(e,t),Ja.size>30){const e=Ja.keys().next().value;Ja.delete(e)}}function ts(){ts=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function rs(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function ns(e){return e&&qa(e)?is(e):e}function is(e){let t;Ya(e)&&(t=1e3*(0,x.ph)());const r=function(){const e=De.m9.Profiler;if("function"!=typeof e)return;const t=Math.floor(3e3);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(e){$a=!0}}();if(!r)return e;const n=(0,L.DM)();function i(){return o.apply(this,arguments)}function o(){return(o=function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){rs(o,n,i,a,s,"next",e)}function s(e){rs(o,n,i,a,s,"throw",e)}a(void 0)}))}}(ts().mark((function t(){return ts().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return",null);case 2:if(r){t.next=4;break}return t.abrupt("return",null);case 4:return t.abrupt("return",r.stop().then((e=>(a&&(De.m9.clearTimeout(a),a=void 0),e?(es(n,e),null):null))).catch((e=>null)));case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}let a=De.m9.setTimeout((()=>{i()}),3e4);const s=e.finish.bind(e);return e.finish=function(){return e?(i().then((()=>{e.setContext("profile",{profile_id:n,start_timestamp:t}),s()}),(()=>{s()})),e):s()},e}function os(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}class as{static __initStatic(){this.id="BrowserProfilingIntegration"}constructor(){this.name=as.id}setupOnce(e,t){this.getCurrentHub=t;const r=this.getCurrentHub(),n=r.getClient(),i=r.getScope().getTransaction();i&&Ya(i)&&qa(i)&&is(i),n&&"function"==typeof n.on?(n.on("startTransaction",(e=>{qa(e)&&is(e)})),n.on("beforeEnvelope",(e=>{if(!Ja.size)return;const t=function(e){const t=[];return(0,u.gv)(e,((e,r)=>{if("transaction"===r)for(let r=1;r<e.length;r++){const n=e[r];n&&n.contexts&&n.contexts.profile&&n.contexts.profile.profile_id&&t.push(e[r])}})),t}(e);if(!t.length)return;const r=[];var n,i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return os(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?os(e,t):void 0}}(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(t);try{for(i.s();!(n=i.n()).done;){const e=n.value,t=e&&e.contexts,i=t&&t.profile&&t.profile.profile_id,o=t&&t.profile&&t.profile.start_timestamp;if("string"!=typeof i)continue;if(!i)continue;t&&t.profile&&delete t.profile;const a=Qa(i);if(!a)continue;const s=Xa(i,o,a,e);s&&r.push(s)}}catch(e){i.e(e)}finally{i.f()}!function(e,t){if(!t.length)return e;var r,n=Na(t);try{for(n.s();!(r=n.n()).done;){const t=r.value;e[1].push([{type:"profile"},t])}}catch(e){n.e(e)}finally{n.f()}}(e,r)}))):Xe.kg.warn("[Profiling] Client does not support hooks, profiling will be disabled")}}function ss(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function cs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ss(Object(r),!0).forEach((function(t){ls(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ss(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ls(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}as.__initStatic();let us={};De.m9.Sentry&&De.m9.Sentry.Integrations&&(us=De.m9.Sentry.Integrations);const ds=cs(cs(cs({},us),n),i)},44645:(e,t,r)=>{"use strict";r.d(t,{O:()=>f});var n=r(21955),i=r(81239),o=r(55725),a=r(99110),s=r(17341),c=r(2306),l=r(12449),u=r(57602);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class f{static __initStatic(){this.id="Breadcrumbs"}constructor(e){this.name=f.id,this.options=p({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e)}setupOnce(){if(this.options.console&&(0,i.oq)("console",g),this.options.dom&&(0,i.oq)("dom",function(e){return function(t){let r,i="object"==typeof e?e.serializeAttribute:void 0,o="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;o&&o>1024&&(o=1024),"string"==typeof i&&(i=[i]);try{const e=t.event;r=function(e){return!!e&&!!e.target}(e)?(0,a.Rt)(e.target,{keyAttrs:i,maxStringLength:o}):(0,a.Rt)(e,{keyAttrs:i,maxStringLength:o})}catch(e){r="<unknown>"}0!==r.length&&(0,n.Gd)().addBreadcrumb({category:`ui.${t.name}`,message:r},{event:t.event,name:t.name,global:t.global})}}(this.options.dom)),this.options.xhr&&(0,i.oq)("xhr",v),this.options.fetch&&(0,i.oq)("fetch",y),this.options.history&&(0,i.oq)("history",b),this.options.sentry){const e=(0,n.Gd)().getClient();e&&e.on&&e.on("beforeSendEvent",m)}}}function m(e){(0,n.Gd)().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,o.jH)(e)},{event:e})}function g(e){const t={category:"console",data:{arguments:e.args,logger:"console"},level:(0,s.VT)(e.level),message:(0,c.nK)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message=`Assertion failed: ${(0,c.nK)(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1)}(0,n.Gd)().addBreadcrumb(t,{input:e.args,level:e.level})}function v(e){const t=e.startTimestamp,r=e.endTimestamp,o=e.xhr[i.xU];if(!t||!r||!o)return;const a=o.method,s=o.url,c=o.status_code,l=o.body,u={method:a,url:s,status_code:c},d={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:r};(0,n.Gd)().addBreadcrumb({category:"xhr",data:u,type:"http"},d)}function y(e){const t=e.startTimestamp,r=e.endTimestamp;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){const i=e.fetchData,o={data:e.error,input:e.args,startTimestamp:t,endTimestamp:r};(0,n.Gd)().addBreadcrumb({category:"fetch",data:i,level:"error",type:"http"},o)}else{const i=p(p({},e.fetchData),{},{status_code:e.response&&e.response.status}),o={input:e.args,response:e.response,startTimestamp:t,endTimestamp:r};(0,n.Gd)().addBreadcrumb({category:"fetch",data:i,type:"http"},o)}}function b(e){let t=e.from,r=e.to;const i=(0,l.en)(u.m9.location.href);let o=(0,l.en)(t);const a=(0,l.en)(r);o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(t=o.relative),(0,n.Gd)().addBreadcrumb({category:"navigation",data:{from:t,to:r}})}f.__initStatic()},35428:(e,t,r)=>{"use strict";r.d(t,{I:()=>n});class n{static __initStatic(){this.id="Dedupe"}constructor(){this.name=n.id}setupOnce(e,t){}processEvent(e){if(e.type)return e;try{if(function(e,t){return!(!t||!function(e,t){const r=e.message,n=t.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!o(e,t)||!i(e,t))}(e,t)&&!function(e,t){const r=a(t),n=a(e);return!!(r&&n&&r.type===n.type&&r.value===n.value&&o(e,t)&&i(e,t))}(e,t))}(e,this._previousEvent))return null}catch(e){}return this._previousEvent=e}}function i(e,t){let r=s(e),n=s(t);if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;if(n.length!==r.length)return!1;for(let e=0;e<n.length;e++){const t=n[e],i=r[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function o(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return!(r.join("")!==n.join(""))}catch(e){return!1}}function a(e){return e.exception&&e.exception.values&&e.exception.values[0]}function s(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}n.__initStatic()},92743:(e,t,r)=>{"use strict";r.d(t,{d:()=>f});var n=r(21955),i=r(81239),o=r(20512),a=r(99110),s=r(55725),c=r(7521),l=r(57602);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class f{static __initStatic(){this.id="GlobalHandlers"}constructor(e){this.name=f.id,this._options=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({onerror:!0,onunhandledrejection:!0},e),this._installFunc={onerror:m,onunhandledrejection:g}}setupOnce(){Error.stackTraceLimit=50;const e=this._options;for(const t in e){const r=this._installFunc[t];r&&e[t]&&(r(),this._installFunc[t]=void 0)}}}function m(){(0,i.oq)("error",(e=>{const t=u(b(),3),r=t[0],n=t[1],i=t[2];if(!r.getIntegration(f))return;const a=e.msg,s=e.url,d=e.line,p=e.column,h=e.error;if((0,l.Wz)()||h&&h.__sentry_own_request__)return;const m=void 0===h&&(0,o.HD)(a)?function(e,t,r,n){let i=(0,o.VW)(e)?e.message:e,a="Error";const s=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return s&&(a=s[1],i=s[2]),v({exception:{values:[{type:a,value:i}]}},t,r,n)}(a,s,d,p):v((0,c.ME)(n,h||a,void 0,i,!1),s,d,p);m.level="error",y(r,h,m,"onerror")}))}function g(){(0,i.oq)("unhandledrejection",(e=>{const t=u(b(),3),r=t[0],n=t[1],i=t[2];if(!r.getIntegration(f))return;let a=e;try{"reason"in e?a=e.reason:"detail"in e&&"reason"in e.detail&&(a=e.detail.reason)}catch(e){}if((0,l.Wz)()||a&&a.__sentry_own_request__)return!0;const s=(0,o.pt)(a)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(a)}`}]}}:(0,c.ME)(n,a,void 0,i,!0);s.level="error",y(r,a,s,"onunhandledrejection")}))}function v(e,t,r,n){const i=e.exception=e.exception||{},s=i.values=i.values||[],c=s[0]=s[0]||{},l=c.stacktrace=c.stacktrace||{},u=l.frames=l.frames||[],d=isNaN(parseInt(n,10))?void 0:n,p=isNaN(parseInt(r,10))?void 0:r,h=(0,o.HD)(t)&&t.length>0?t:(0,a.l4)();return 0===u.length&&u.push({colno:d,filename:h,function:"?",in_app:!0,lineno:p}),e}function y(e,t,r,n){(0,s.EG)(r,{handled:!1,type:n}),e.captureEvent(r,{originalException:t})}function b(){const e=(0,n.Gd)(),t=e.getClient(),r=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,r.stackParser,r.attachStacktrace]}f.__initStatic()},32819:(e,t,r)=>{"use strict";r.d(t,{q:()=>s});var n=r(57602);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class s{static __initStatic(){this.id="HttpContext"}constructor(){this.name=s.id}setupOnce(){}preprocessEvent(e){if(!n.m9.navigator&&!n.m9.location&&!n.m9.document)return;const t=e.request&&e.request.url||n.m9.location&&n.m9.location.href,r=(n.m9.document||{}).referrer,i=(n.m9.navigator||{}).userAgent,a=o(o(o({},e.request&&e.request.headers),r&&{Referer:r}),i&&{"User-Agent":i}),s=o(o(o({},e.request),t&&{url:t}),{},{headers:a});e.request=s}}s.__initStatic()},11431:(e,t,r)=>{"use strict";r.d(t,{i:()=>o});var n=r(14893),i=r(7521);class o{static __initStatic(){this.id="LinkedErrors"}constructor(e={}){this.name=o.id,this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){}preprocessEvent(e,t,r){const o=r.getOptions();(0,n.Z)(i.GJ,o.stackParser,o.maxValueLength,this._key,this._limit,e,t)}}o.__initStatic()},74948:(e,t,r)=>{"use strict";r.d(t,{p:()=>l});var n=r(7938),i=r(28231),o=r(57602);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const c=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class l{static __initStatic(){this.id="TryCatch"}constructor(e){this.name=l.id,this._options=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e)}setupOnce(){this._options.setTimeout&&(0,n.hl)(o.m9,"setTimeout",u),this._options.setInterval&&(0,n.hl)(o.m9,"setInterval",u),this._options.requestAnimationFrame&&(0,n.hl)(o.m9,"requestAnimationFrame",d),this._options.XMLHttpRequest&&"XMLHttpRequest"in o.m9&&(0,n.hl)(XMLHttpRequest.prototype,"send",p);const e=this._options.eventTarget;e&&(Array.isArray(e)?e:c).forEach(h)}}function u(e){return function(...t){const r=t[0];return t[0]=(0,o.re)(r,{mechanism:{data:{function:(0,i.$P)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function d(e){return function(t){return e.apply(this,[(0,o.re)(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,i.$P)(e)},handled:!1,type:"instrument"}})])}}function p(e){return function(...t){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in r&&"function"==typeof r[e]&&(0,n.hl)(r,e,(function(t){const r={mechanism:{data:{function:e,handler:(0,i.$P)(t)},handled:!1,type:"instrument"}},a=(0,n.HK)(t);return a&&(r.mechanism.data.handler=(0,i.$P)(a)),(0,o.re)(t,r)}))})),e.apply(this,t)}}function h(e){const t=o.m9,r=t[e]&&t[e].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&((0,n.hl)(r,"addEventListener",(function(t){return function(r,n,a){try{"function"==typeof n.handleEvent&&(n.handleEvent=(0,o.re)(n.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,i.$P)(n),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[r,(0,o.re)(n,{mechanism:{data:{function:"addEventListener",handler:(0,i.$P)(n),target:e},handled:!1,type:"instrument"}}),a])}})),(0,n.hl)(r,"removeEventListener",(function(e){return function(t,r,n){const i=r;try{const r=i&&i.__sentry_wrapped__;r&&e.call(this,t,r,n)}catch(e){}return e.call(this,t,i,n)}})))}l.__initStatic()},13824:(e,t,r)=>{"use strict";r.d(t,{Jd:()=>k,SS:()=>O,Eg:()=>P,S1:()=>S,lA:()=>I,jp:()=>T,re:()=>A});var n=r(21955),i=r(26487),o=r(18476),a=r(93105),s=r(23186),c=r(28231),l=r(90510),u=r(81239),d=r(44054),p=r(57602),h=r(92743),f=r(74948),m=r(44645),g=r(11431),v=r(32819),y=r(35428),b=r(87003),_=r(6413),E=r(57693);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){L(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function L(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const O=[new a.QD,new s.c,new f.p,new m.O,new h.d,new g.i,new y.I,new v.q];function S(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=O),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),p.m9.SENTRY_RELEASE&&p.m9.SENTRY_RELEASE.id&&(e.release=p.m9.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t=x(x({},e),{},{stackParser:(0,c.Sq)(e.stackParser||b.Dt),integrations:(0,i.m8)(e),transport:e.transport||((0,l.Ak)()?_.f:E.K)});!function(e,t){!0===t.debug&&console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");const r=(0,n.Gd)();r.getScope().update(t.initialScope);const i=new e(t);r.bindClient(i)}(d.R,t),e.autoSessionTracking&&function(){if(void 0===p.m9.document)return;const e=(0,n.Gd)();e.captureSession&&(C(e),(0,u.oq)("history",(({from:e,to:t})=>{void 0!==e&&e!==t&&C((0,n.Gd)())})))}()}function T(e={},t=(0,n.Gd)()){if(!p.m9.document)return;const r=t.getStackTop(),i=r.client,a=r.scope,s=e.dsn||i&&i.getDsn();if(!s)return;a&&(e.user=x(x({},a.getUser()),e.user)),e.eventId||(e.eventId=t.lastEventId());const c=p.m9.document.createElement("script");c.async=!0,c.crossOrigin="anonymous",c.src=(0,o.h)(s,e),e.onLoad&&(c.onload=e.onLoad);const l=p.m9.document.head||p.m9.document.body;l&&l.appendChild(c)}function P(){}function I(e){e()}function A(e){return(0,p.re)(e)()}function C(e){e.startSession({ignoreDuration:!0}),e.captureSession()}function k(e){const t=(0,n.Gd)().getClient();t&&t.captureUserFeedback(e)}},87003:(e,t,r)=>{"use strict";r.d(t,{$3:()=>u,$Q:()=>h,Dt:()=>E,HH:()=>b,NP:()=>v,R2:()=>m,d8:()=>_});var n=r(28231);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const a="?";function s(e,t,r,n){const i={filename:e,function:t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==n&&(i.colno=n),i}const c=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,l=/\((\S*)(?::(\d+))(?::(\d+))\)/,u=[30,e=>{const t=c.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=l.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const e=i(w(t[1]||a,t[2]),2),r=e[0];return s(e[1],r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],d=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,p=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,h=[50,e=>{const t=d.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=p.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||a;var r=i(w(n,e),2);return n=r[0],e=r[1],s(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],f=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,m=[40,e=>{const t=f.exec(e);return t?s(t[2],t[1]||a,+t[3],t[4]?+t[4]:void 0):void 0}],g=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,v=[10,e=>{const t=g.exec(e);return t?s(t[2],t[3]||a,+t[1]):void 0}],y=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,b=[20,e=>{const t=y.exec(e);return t?s(t[5],t[3]||t[4]||a,+t[1],+t[2]):void 0}],_=[u,h,m],E=(0,n.pE)(..._),w=(e,t)=>{const r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:a,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]}},6413:(e,t,r)=>{"use strict";r.d(t,{f:()=>u});var n=r(76616),i=r(23155),o=r(90510),a=r(57602);let s;function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t=function(){if(s)return s;if((0,o.Du)(a.m9.fetch))return s=a.m9.fetch.bind(a.m9);const e=a.m9.document;let t=a.m9.fetch;if(e&&"function"==typeof e.createElement)try{const r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r);const n=r.contentWindow;n&&n.fetch&&(t=n.fetch),e.head.removeChild(r)}catch(e){}return s=t.bind(a.m9)}()){let r=0,u=0;return(0,n.q)(e,(function(n){const o=n.body.length;r+=o,u++;const a=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({body:n.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:r<=6e4&&u<15},e.fetchOptions);try{return t(e.url,a).then((e=>(r-=o,u--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return s=void 0,r-=o,u--,(0,i.$2)(e)}}))}},57693:(e,t,r)=>{"use strict";r.d(t,{K:()=>o});var n=r(76616),i=r(23155);function o(e){return(0,n.q)(e,(function(t){return new i.cW(((r,n)=>{const i=new XMLHttpRequest;i.onerror=n,i.onreadystatechange=()=>{4===i.readyState&&r({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)}))}))}},10710:(e,t,r)=>{"use strict";r.d(t,{r:()=>c});var n=r(70678),i=r(94143);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,{metadata:t,tunnel:r,dsn:o}){const s=a(a({event_id:e.event_id,sent_at:(new Date).toISOString()},t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}}),!!r&&!!o&&{dsn:(0,n.RA)(o)}),c=function(e){return[{type:"user_report"},e]}(e);return(0,i.Jd)(s,[c])}},18476:(e,t,r)=>{"use strict";r.d(t,{U:()=>l,h:()=>u});var n=r(7938),i=r(70678);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e){const t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function c(e,t){return(0,n._j)(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({sentry_key:e.publicKey,sentry_version:"7"},t&&{sentry_client:`${t.name}/${t.version}`}))}function l(e,t={}){const r="string"==typeof t?t:t.tunnel,n="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return r||`${function(e){return`${s(e)}${e.projectId}/envelope/`}(e)}?${c(e,n)}`}function u(e,t){const r=(0,i.vK)(e);if(!r)return"";const n=`${s(r)}embed/error-page/`;let o=`dsn=${(0,i.RA)(r)}`;for(const e in t)if("dsn"!==e)if("user"===e){const e=t.user;if(!e)continue;e.name&&(o+=`&name=${encodeURIComponent(e.name)}`),e.email&&(o+=`&email=${encodeURIComponent(e.email)}`)}else o+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${n}?${o}`}},55116:(e,t,r)=>{"use strict";r.d(t,{J:()=>n});const n="production"},49475:(e,t,r)=>{"use strict";r.d(t,{RP:()=>u,cc:()=>l,fH:()=>c});var n=r(19596),i=r(23155),o=r(20512);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(){return(0,n.YO)("globalEventProcessors",(()=>[]))}function l(e){c().push(e)}function u(e,t,r,n=0){return new i.cW(((i,c)=>{const l=e[n];if(null===t||"function"!=typeof l)i(t);else{const d=l(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t),r);(0,o.J8)(d)?d.then((t=>u(e,t,r,n+1).then(i))).then(null,c):u(e,d,r,n+1).then(i).then(null,c)}}))}},10470:(e,t,r)=>{"use strict";r.d(t,{$e:()=>_,Tb:()=>l,YA:()=>y,Yr:()=>E,av:()=>b,e:()=>p,eN:()=>d,eW:()=>S,mG:()=>v,n_:()=>h,rJ:()=>m,sU:()=>g,uT:()=>u,v:()=>f,xv:()=>L,yl:()=>w});var n=r(21955);function i(){i=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function f(){}var m={};c(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(O([])));v&&v!==t&&r.call(v,o)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=f,c(y,"constructor",f),c(f,"constructor",h),h.displayName=c(f,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),c(y,s,"Generator"),c(y,o,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function o(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function s(e){o(a,n,i,s,c,"next",e)}function c(e){o(a,n,i,s,c,"throw",e)}s(void 0)}))}}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){return(0,n.Gd)().captureException(e,{captureContext:t})}function u(e,t){const r="string"==typeof t?t:void 0,i="string"!=typeof t?{captureContext:t}:void 0;return(0,n.Gd)().captureMessage(e,r,i)}function d(e,t){return(0,n.Gd)().captureEvent(e,t)}function p(e){(0,n.Gd)().configureScope(e)}function h(e){(0,n.Gd)().addBreadcrumb(e)}function f(e,t){(0,n.Gd)().setContext(e,t)}function m(e){(0,n.Gd)().setExtras(e)}function g(e,t){(0,n.Gd)().setExtra(e,t)}function v(e){(0,n.Gd)().setTags(e)}function y(e,t){(0,n.Gd)().setTag(e,t)}function b(e){(0,n.Gd)().setUser(e)}function _(e){(0,n.Gd)().withScope(e)}function E(e,t){return(0,n.Gd)().startTransaction(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e),t)}function w(e){return x.apply(this,arguments)}function x(){return(x=a(i().mark((function e(t){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=(0,n.Gd)().getClient())){e.next=3;break}return e.abrupt("return",r.flush(t));case 3:return e.abrupt("return",Promise.resolve(!1));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function L(e){return O.apply(this,arguments)}function O(){return(O=a(i().mark((function e(t){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=(0,n.Gd)().getClient())){e.next=3;break}return e.abrupt("return",r.close(t));case 3:return e.abrupt("return",Promise.resolve(!1));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function S(){return(0,n.Gd)().lastEventId()}},21955:(e,t,r)=>{"use strict";r.d(t,{Gd:()=>g,Xb:()=>h,cu:()=>f,pj:()=>m,vi:()=>v});var n=r(55725),i=r(49230),o=r(3790),a=r(19596),s=r(55116),c=r(6316),l=r(31209);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class h{constructor(e,t=new c.s,r=4){this._version=r,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=c.s.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(e){const t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const r=this._lastEventId=t&&t.event_id?t.event_id:(0,n.DM)(),i=new Error("Sentry syntheticException");return this._withClient(((n,o)=>{n.captureException(e,d(d({originalException:e,syntheticException:i},t),{},{event_id:r}),o)})),r}captureMessage(e,t,r){const i=this._lastEventId=r&&r.event_id?r.event_id:(0,n.DM)(),o=new Error(e);return this._withClient(((n,a)=>{n.captureMessage(e,t,d(d({originalException:e,syntheticException:o},r),{},{event_id:i}),a)})),i}captureEvent(e,t){const r=t&&t.event_id?t.event_id:(0,n.DM)();return e.type||(this._lastEventId=r),this._withClient(((n,i)=>{n.captureEvent(e,d(d({},t),{},{event_id:r}),i)})),r}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const r=this.getStackTop(),n=r.scope,a=r.client;if(!a)return;const s=a.getOptions&&a.getOptions()||{},c=s.beforeBreadcrumb,l=void 0===c?null:c,u=s.maxBreadcrumbs,p=void 0===u?100:u;if(p<=0)return;const h=d({timestamp:(0,i.yW)()},e),f=l?(0,o.Cf)((()=>l(h,t))):h;null!==f&&(a.emit&&a.emit("beforeAddBreadcrumb",f,t),n.addBreadcrumb(f,p))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){const t=this.getStackTop(),r=t.scope;t.client&&e(r)}run(e){const t=m(this);try{e(this)}finally{m(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(e){return null}}startTransaction(e,t){return this._callExtensionMethod("startTransaction",e,t)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&(0,l.RJ)(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const t=this.getStackTop(),r=t.scope,n=t.client,i=n&&n.getOptions()||{},o=i.release,c=i.environment,u=void 0===c?s.J:c,p=(a.n2.navigator||{}).userAgent,h=(0,l.Hv)(d(d({release:o,environment:u,user:r.getUser()},p&&{userAgent:p}),e)),f=r.getSession&&r.getSession();return f&&"ok"===f.status&&(0,l.CT)(f,{status:"exited"}),this.endSession(),r.setSession(h),h}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const e=this.getStackTop(),t=e.scope,r=e.client,n=t.getSession();n&&r&&r.captureSession&&r.captureSession(n)}_withClient(e){const t=this.getStackTop(),r=t.scope,n=t.client;n&&e(n,r)}_callExtensionMethod(e,...t){const r=f().__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[e])return r.extensions[e].apply(this,t)}}function f(){return a.n2.__SENTRY__=a.n2.__SENTRY__||{extensions:{},hub:void 0},a.n2}function m(e){const t=f(),r=v(t);return y(t,e),r}function g(){const e=f();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=f()){return function(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}(e)&&!v(e).isOlderThan(4)||y(e,new h),v(e)}(e)}function v(e){return(0,a.YO)("hub",(()=>new h),e)}function y(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}},26487:(e,t,r)=>{"use strict";r.d(t,{M5:()=>p,m7:()=>d,m8:()=>l,q4:()=>u});var n=r(55725),i=r(49475),o=r(21955);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const c=[];function l(e){const t=e.defaultIntegrations||[],r=e.integrations;let i;t.forEach((e=>{e.isDefaultInstance=!0})),i=Array.isArray(r)?[...t,...r]:"function"==typeof r?(0,n.lE)(r(t)):t;const o=function(e){const t={};return e.forEach((e=>{const r=e.name,n=t[r];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)})),Object.keys(t).map((e=>t[e]))}(i),s=function(e,t){for(let r=0;r<e.length;r++)if(!0===t(e[r]))return r;return-1}(o,(e=>"Debug"===e.name));if(-1!==s){const e=a(o.splice(s,1),1)[0];o.push(e)}return o}function u(e,t){const r={};return t.forEach((t=>{t&&d(e,t,r)})),r}function d(e,t,r){if(r[t.name]=t,-1===c.indexOf(t.name)&&(t.setupOnce(i.cc,o.Gd),c.push(t.name)),e.on&&"function"==typeof t.preprocessEvent){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,n)=>r(t,n,e)))}if(e.addEventProcessor&&"function"==typeof t.processEvent){const r=t.processEvent.bind(t),n=Object.assign(((t,n)=>r(t,n,e)),{id:t.name});e.addEventProcessor(n)}}function p(e){const t=(0,o.Gd)().getClient();t&&t.addIntegration&&t.addIntegration(e)}},23186:(e,t,r)=>{"use strict";r.d(t,{c:()=>o});var n=r(7938);let i;class o{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=o.id}setupOnce(){i=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=(0,n.HK)(this)||this;return i.apply(t,e)}}catch(e){}}}o.__initStatic()},93105:(e,t,r)=>{"use strict";r.d(t,{QD:()=>a});var n=r(2306);const i=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],o=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/];class a{static __initStatic(){this.id="InboundFilters"}constructor(e={}){this.name=a.id,this._options=e}setupOnce(e,t){}processEvent(e,t,r){const a=r.getOptions(),c=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:i],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:o],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(this._options,a);return function(e,t){return!((!t.ignoreInternal||!function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))&&!function(e,t){return!(e.type||!t||!t.length)&&function(e){const t=[];let r;e.message&&t.push(e.message);try{r=e.exception.values[e.exception.values.length-1]}catch(e){}return r&&r.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`)),t}(e).some((e=>(0,n.U0)(e,t)))}(e,t.ignoreErrors)&&!function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const r=e.transaction;return!!r&&(0,n.U0)(r,t)}(e,t.ignoreTransactions)&&!function(e,t){if(!t||!t.length)return!1;const r=s(e);return!!r&&(0,n.U0)(r,t)}(e,t.denyUrls)&&function(e,t){if(!t||!t.length)return!0;const r=s(e);return!r||(0,n.U0)(r,t)}(e,t.allowUrls))}(e,c)?null:e}}function s(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(t):null}catch(e){return null}}a.__initStatic()},6316:(e,t,r)=>{"use strict";r.d(t,{s:()=>d});var n=r(20512),i=r(49230),o=r(55725),a=r(49475),s=r(31209);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class d{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=p()}static clone(e){const t=new d;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags=l({},e._tags),t._extra=l({},e._extra),t._contexts=l({},e._contexts),t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata=l({},e._sdkProcessingMetadata),t._propagationContext=l({},e._propagationContext)),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&(0,s.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags=l(l({},this._tags),e),this._notifyScopeListeners(),this}setTag(e,t){return this._tags=l(l({},this._tags),{},{[e]:t}),this._notifyScopeListeners(),this}setExtras(e){return this._extra=l(l({},this._extra),e),this._notifyScopeListeners(),this}setExtra(e,t){return this._extra=l(l({},this._extra),{},{[e]:t}),this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){const t=e(this);return t instanceof d?t:this}return e instanceof d?(this._tags=l(l({},this._tags),e._tags),this._extra=l(l({},this._extra),e._extra),this._contexts=l(l({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):(0,n.PO)(e)&&(this._tags=l(l({},this._tags),e.tags),this._extra=l(l({},this._extra),e.extra),this._contexts=l(l({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=p(),this}addBreadcrumb(e,t){const r="number"==typeof t?t:100;if(r<=0)return this;const n=l({timestamp:(0,i.yW)()},e),o=this._breadcrumbs;return o.push(n),this._breadcrumbs=o.length>r?o.slice(-r):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={},r){if(this._extra&&Object.keys(this._extra).length&&(e.extra=l(l({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=l(l({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=l(l({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=l(l({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=l({trace:this._span.getTraceContext()},e.contexts);const t=this._span.transaction;if(t){e.sdkProcessingMetadata=l({dynamicSamplingContext:t.getDynamicSamplingContext()},e.sdkProcessingMetadata);const r=t.name;r&&(e.tags=l({transaction:r},e.tags))}}this._applyFingerprint(e);const n=this._getBreadcrumbs(),i=[...e.breadcrumbs||[],...n];return e.breadcrumbs=i.length>0?i:void 0,e.sdkProcessingMetadata=l(l(l({},e.sdkProcessingMetadata),this._sdkProcessingMetadata),{},{propagationContext:this._propagationContext}),(0,a.RP)([...r||[],...(0,a.fH)(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=l(l({},this._sdkProcessingMetadata),e),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?(0,o.lE)(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function p(){return{traceId:(0,o.DM)(),spanId:(0,o.DM)().substring(16)}}},31209:(e,t,r)=>{"use strict";r.d(t,{CT:()=>s,Hv:()=>a,RJ:()=>c});var n=r(49230),i=r(55725),o=r(7938);function a(e){const t=(0,n.ph)(),r={sid:(0,i.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return(0,o.Jr)({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(r)};return e&&s(r,e),r}function s(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,n.ph)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,i.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function c(e,t){let r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),s(e,r)}},52059:(e,t,r)=>{"use strict";r.d(t,{_:()=>o});var n=r(7938),i=r(55116);function o(e,t,r){const o=t.getOptions(),a=(t.getDsn()||{}).publicKey,s=(r&&r.getUser()||{}).segment,c=(0,n.Jr)({environment:o.environment||i.J,release:o.release,user_segment:s,public_key:a,trace_id:e});return t.emit&&t.emit("createDsc",c),c}},76616:(e,t,r)=>{"use strict";r.d(t,{q:()=>s});var n=r(32962),i=r(23155),o=r(94143),a=r(92858);function s(e,t,r=function(e){const t=[];function r(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(o){if(!(void 0===e||t.length<e))return(0,i.$2)(new n.b("Not adding Promise because buffer limit was reached."));const a=o();return-1===t.indexOf(a)&&t.push(a),a.then((()=>r(a))).then(null,(()=>r(a).then(null,(()=>{})))),a},drain:function(e){return new i.cW(((r,n)=>{let o=t.length;if(!o)return r(!0);const a=setTimeout((()=>{e&&e>0&&r(!1)}),e);t.forEach((e=>{(0,i.WD)(e).then((()=>{--o||(clearTimeout(a),r(!0))}),n)}))}))}}}(e.bufferSize||30)){let s={};function l(l){const u=[];if((0,o.gv)(l,((t,r)=>{const n=(0,o.mL)(r);if((0,a.Q)(s,n)){const i=c(t,r);e.recordDroppedEvent("ratelimit_backoff",n,i)}else u.push(t)})),0===u.length)return(0,i.WD)();const d=(0,o.Jd)(l[0],u),p=t=>{(0,o.gv)(d,((r,n)=>{const i=c(r,n);e.recordDroppedEvent(t,(0,o.mL)(n),i)}))};return r.add((()=>t({body:(0,o.V$)(d,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode),s=(0,a.WG)(s,e),e)),(e=>{throw p("network_error"),e})))).then((e=>e),(e=>{if(e instanceof n.b)return p("queue_overflow"),(0,i.WD)();throw e}))}return l.__sentry__baseTransport__=!0,{send:l,flush:e=>r.drain(e)}}function c(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}},40263:(e,t,r)=>{"use strict";function n(e,t){const r=t.getClient(),n=r&&r.getDsn(),o=r&&r.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,n)||function(e,t){return!!t&&i(e)===i(t)}(e,o)}function i(e){return"/"===e[e.length-1]?e.slice(0,-1):e}r.d(t,{W:()=>n})},58950:(e,t,r)=>{"use strict";r.d(t,{R:()=>m});var n=r(55725),i=r(49230),o=r(23155),a=r(2306),s=r(19596),c=r(93937),l=r(55116),u=r(49475),d=r(6316);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e,t,r,p,f){const m=e.normalizeDepth,v=void 0===m?3:m,y=e.normalizeMaxBreadth,b=void 0===y?1e3:y,_=h(h({},t),{},{event_id:t.event_id||r.event_id||(0,n.DM)(),timestamp:t.timestamp||(0,i.yW)()}),E=r.integrations||e.integrations.map((e=>e.name));!function(e,t){const r=t.environment,n=t.release,i=t.dist,o=t.maxValueLength,s=void 0===o?250:o;"environment"in e||(e.environment="environment"in t?r:l.J),void 0===e.release&&void 0!==n&&(e.release=n),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=(0,a.$G)(e.message,s));const c=e.exception&&e.exception.values&&e.exception.values[0];c&&c.value&&(c.value=(0,a.$G)(c.value,s));const u=e.request;u&&u.url&&(u.url=(0,a.$G)(u.url,s))}(_,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(_,E),void 0===t.type&&function(e,t){const r=s.n2._sentryDebugIds;if(!r)return;let n;const i=g.get(t);i?n=i:(n=new Map,g.set(t,n));const o=Object.keys(r).reduce(((e,i)=>{let o;const a=n.get(i);a?o=a:(o=t(i),n.set(i,o));for(let t=o.length-1;t>=0;t--){const n=o[t];if(n.filename){e[n.filename]=r[i];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=o[e.filename])}))}))}catch(e){}}(_,e.stackParser);let w=p;r.captureContext&&(w=d.s.clone(w).update(r.captureContext));let x=(0,o.WD)(_);const L=f&&f.getEventProcessors?f.getEventProcessors():[];if(w){if(w.getAttachments){const e=[...r.attachments||[],...w.getAttachments()];e.length&&(r.attachments=e)}x=w.applyToEvent(_,r,L)}else x=(0,u.RP)([...L,...(0,u.fH)()],_,r);return x.then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const r=e.debug_meta.images;Object.keys(t).forEach((e=>{r.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof v&&v>0?function(e,t,r){if(!e)return null;const n=h(h(h(h(h({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>h(h({},e),e.data&&{data:(0,c.Fv)(e.data,t,r)})))}),e.user&&{user:(0,c.Fv)(e.user,t,r)}),e.contexts&&{contexts:(0,c.Fv)(e.contexts,t,r)}),e.extra&&{extra:(0,c.Fv)(e.extra,t,r)});return e.contexts&&e.contexts.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=(0,c.Fv)(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map((e=>(e.data&&(e.data=(0,c.Fv)(e.data,t,r)),e)))),n}(e,v,b):e)))}const g=new WeakMap},29412:(e,t,r)=>{"use strict";r.d(t,{J:()=>n});const n="7.77.0"},38682:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CaptureConsole:()=>l,ContextLines:()=>ie,Debug:()=>p,Dedupe:()=>h,ExtraErrorData:()=>L,HttpClient:()=>te,Offline:()=>C,ReportingObserver:()=>R,RewriteFrames:()=>U,SessionTiming:()=>Y,Transaction:()=>W});var n=r(3790),i=r(19596),o=r(81239),a=r(17341),s=r(55725),c=r(2306);class l{static __initStatic(){this.id="CaptureConsole"}constructor(e={}){this.name=l.id,this._levels=e.levels||n.RU}setupOnce(e,t){if(!("console"in i.n2))return;const r=this._levels;(0,o.oq)("console",(({args:e,level:n})=>{if(!r.includes(n))return;const i=t();i.getIntegration(l)&&function(e,t,r){e.withScope((n=>{n.setLevel((0,a.VT)(r)),n.setExtra("arguments",t),n.addEventProcessor((e=>(e.logger="console",(0,s.EG)(e,{handled:!1,type:"console"}),e)));let i=(0,c.nK)(t," ");const o=t.find((e=>e instanceof Error));"assert"===r?!1===t[0]&&(i=`Assertion failed: ${(0,c.nK)(t.slice(1)," ")||"console.assert"}`,n.setExtra("arguments",t.slice(1)),e.captureMessage(i)):"error"===r&&o?e.captureException(o):e.captureMessage(i)}))}(i,e,n)}))}}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}l.__initStatic();class p{static __initStatic(){this.id="Debug"}constructor(e){this.name=p.id,this._options=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({debugger:!1,stringify:!1},e)}setupOnce(e,t){const r=t().getClient();r&&r.on&&r.on("beforeSendEvent",((e,t)=>{this._options.debugger,(0,n.Cf)((()=>{this._options.stringify?(console.log(JSON.stringify(e,null,2)),t&&Object.keys(t).length&&console.log(JSON.stringify(t,null,2))):(console.log(e),t&&Object.keys(t).length&&console.log(t))}))}))}}p.__initStatic();class h{static __initStatic(){this.id="Dedupe"}constructor(){this.name=h.id}setupOnce(e,t){}processEvent(e){if(e.type)return e;try{if(function(e,t){return!(!t||!function(e,t){const r=e.message,n=t.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!m(e,t)||!f(e,t))}(e,t)&&!function(e,t){const r=g(t),n=g(e);return!!(r&&n&&r.type===n.type&&r.value===n.value&&m(e,t)&&f(e,t))}(e,t))}(e,this._previousEvent))return null}catch(t){return this._previousEvent=e}return this._previousEvent=e}}function f(e,t){let r=v(e),n=v(t);if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;if(n.length!==r.length)return!1;for(let e=0;e<n.length;e++){const t=n[e],i=r[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function m(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return!(r.join("")!==n.join(""))}catch(e){return!1}}function g(e){return e.exception&&e.exception.values&&e.exception.values[0]}function v(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}h.__initStatic();var y=r(20512),b=r(93937),_=r(7938);function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class L{static __initStatic(){this.id="ExtraErrorData"}constructor(e){this.name=L.id,this._options=w({depth:3},e)}setupOnce(e,t){}processEvent(e,t){return this.enhanceEventWithErrorData(e,t)}enhanceEventWithErrorData(e,t={}){return function(e,t={},r){if(!t.originalException||!(0,y.VZ)(t.originalException))return e;const n=t.originalException.name||t.originalException.constructor.name,i=function(e){try{const o=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],a={};for(var t=0,r=Object.keys(e);t<r.length;t++){const n=r[t];if(-1!==o.indexOf(n))continue;const i=e[n];a[n]=(0,y.VZ)(i)?i.toString():i}if("function"==typeof e.toJSON){const t=e.toJSON();for(var n=0,i=Object.keys(t);n<i.length;n++){const e=i[n],r=t[e];a[e]=(0,y.VZ)(r)?r.toString():r}}return a}catch(e){}return null}(t.originalException);if(i){const t=w({},e.contexts),o=(0,b.Fv)(i,r);return(0,y.PO)(o)&&((0,_.xp)(o,"__sentry_skip_normalization__",!0),t[n]=o),w(w({},e),{},{contexts:t})}return e}(e,t,this._options.depth)}}L.__initStatic();var O=r(11466),S=r.n(O);function T(){T=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function P(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function I(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){P(o,n,i,a,s,"next",e)}function s(e){P(o,n,i,a,s,"throw",e)}a(void 0)}))}}const A=i.n2;class C{static __initStatic(){this.id="Offline"}constructor(e={}){this.name=C.id,this.maxStoredEvents=e.maxStoredEvents||30,this.offlineEventStore=S().createInstance({name:"sentry/offlineEventStore"})}setupOnce(e,t){this.hub=t(),"addEventListener"in A&&A.addEventListener("online",(()=>{this._sendEvents().catch((()=>{}))}));const r=e=>this.hub&&this.hub.getIntegration(C)&&"navigator"in A&&"onLine"in A.navigator&&!A.navigator.onLine?(this._cacheEvent(e).then((e=>this._enforceMaxEvents())).catch((e=>{})),null):e;r.id=this.name,e(r),"navigator"in A&&"onLine"in A.navigator&&A.navigator.onLine&&this._sendEvents().catch((()=>{}))}_cacheEvent(e){var t=this;return I(T().mark((function r(){return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t.offlineEventStore.setItem((0,s.DM)(),(0,b.Fv)(e)));case 1:case"end":return r.stop()}}),r)})))()}_enforceMaxEvents(){var e=this;return I(T().mark((function t(){var r;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=[],t.abrupt("return",e.offlineEventStore.iterate(((e,t,n)=>{r.push({cacheKey:t,event:e})})).then((()=>e._purgeEvents(r.sort(((e,t)=>(t.event.timestamp||0)-(e.event.timestamp||0))).slice(e.maxStoredEvents<r.length?e.maxStoredEvents:r.length).map((e=>e.cacheKey))))).catch((e=>{})));case 2:case"end":return t.stop()}}),t)})))()}_purgeEvent(e){var t=this;return I(T().mark((function r(){return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t.offlineEventStore.removeItem(e));case 1:case"end":return r.stop()}}),r)})))()}_purgeEvents(e){var t=this;return I(T().mark((function r(){return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(e.map((e=>t._purgeEvent(e)))).then());case 1:case"end":return r.stop()}}),r)})))()}_sendEvents(){var e=this;return I(T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.offlineEventStore.iterate(((t,r,n)=>{e.hub&&(e.hub.captureEvent(t),e._purgeEvent(r).catch((e=>{})))})));case 1:case"end":return t.stop()}}),t)})))()}}C.__initStatic();var k=r(90510);function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const N=i.n2;class R{static __initStatic(){this.id="ReportingObserver"}constructor(e={}){this.name=R.id,this._types=e.types||["crash","deprecation","intervention"]}setupOnce(e,t){(0,k.zb)()&&(this._getCurrentHub=t,new N.ReportingObserver(this.handler.bind(this),{buffered:!0,types:this._types}).observe())}handler(e){const t=this._getCurrentHub&&this._getCurrentHub();if(t&&t.getIntegration(R)){var r,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return D(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?D(e,t):void 0}}(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(e);try{for(n.s();!(r=n.n()).done;){const e=r.value;t.withScope((r=>{r.setExtra("url",e.url);const n=`ReportingObserver [${e.type}]`;let i="No details available";if(e.body){const t={};for(const r in e.body)t[r]=e.body[r];if(r.setExtra("body",t),"crash"===e.type){const t=e.body;i=[t.crashId||"",t.reason||""].join(" ").trim()||i}else i=e.body.message||i}t.captureMessage(`${n}: ${i}`)}))}}catch(e){n.e(e)}finally{n.f()}}}}R.__initStatic();const M=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function j(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){const i=n>=0?e[n]:"/";i&&(t=`${i}/${t}`,r="/"===i.charAt(0))}return t=function(e,t){let r=0;for(let t=e.length-1;t>=0;t--){const n=e[t];"."===n?e.splice(t,1):".."===n?(e.splice(t,1),r++):r&&(e.splice(t,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}(t.split("/").filter((e=>!!e)),!r).join("/"),(r?"/":"")+t||"."}function F(e){let t=0;for(;t<e.length&&""===e[t];t++);let r=e.length-1;for(;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}function Z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function B(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(r),!0).forEach((function(t){G(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function G(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class U{static __initStatic(){this.id="RewriteFrames"}constructor(e={}){U.prototype.__init.call(this),this.name=U.id,e.root&&(this._root=e.root),this._prefix=e.prefix||"app:///",e.iteratee&&(this._iteratee=e.iteratee)}setupOnce(e,t){}processEvent(e){return this.process(e)}process(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=this._processExceptionsEvent(t)),t}__init(){this._iteratee=e=>{if(!e.filename)return e;const t=/^[a-zA-Z]:\\/.test(e.filename)||e.filename.includes("\\")&&!e.filename.includes("/"),r=/^\//.test(e.filename);if(t||r){const r=t?e.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):e.filename,n=this._root?function(e,t){e=j(e).slice(1),t=j(t).slice(1);const r=F(e.split("/")),n=F(t.split("/")),i=Math.min(r.length,n.length);let o=i;for(let e=0;e<i;e++)if(r[e]!==n[e]){o=e;break}let a=[];for(let e=o;e<r.length;e++)a.push("..");return a=a.concat(n.slice(o)),a.join("/")}(this._root,r):function(e,t){let r=function(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,r=M.exec(t);return r?r.slice(1):[]}(e)[2];return r}(r);e.filename=`${this._prefix}${n}`}return e}}_processExceptionsEvent(e){try{return B(B({},e),{},{exception:B(B({},e.exception),{},{values:e.exception.values.map((e=>B(B({},e),e.stacktrace&&{stacktrace:this._processStacktrace(e.stacktrace)})))})})}catch(t){return e}}_processStacktrace(e){return B(B({},e),{},{frames:e&&e.frames&&e.frames.map((e=>this._iteratee(e)))})}}function H(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?H(Object(r),!0).forEach((function(t){V(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function V(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}U.__initStatic();class Y{static __initStatic(){this.id="SessionTiming"}constructor(){this.name=Y.id,this._startTime=Date.now()}setupOnce(e,t){}processEvent(e){return this.process(e)}process(e){const t=Date.now();return z(z({},e),{},{extra:z(z({},e.extra),{},{"session:start":this._startTime,"session:duration":t-this._startTime,"session:end":t})})}}Y.__initStatic();class W{static __initStatic(){this.id="Transaction"}constructor(){this.name=W.id}setupOnce(e,t){}processEvent(e){return this.process(e)}process(e){const t=function(e){const t=e.exception&&e.exception.values&&e.exception.values[0];return t&&t.stacktrace&&t.stacktrace.frames||[]}(e);for(let r=t.length-1;r>=0;r--){const n=t[r];if(!0===n.in_app){e.transaction=K(n);break}}return e}}function K(e){return e.module||e.function?`${e.module||"?"}/${e.function||"?"}`:"<unknown>"}W.__initStatic();var $=r(40263),q=r(21955);function X(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return J(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?J(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ee(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class te{static __initStatic(){this.id="HttpClient"}constructor(e){this.name=te.id,this._options=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(r),!0).forEach((function(t){ee(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/]},e)}setupOnce(e,t){this._getCurrentHub=t,this._wrapFetch(),this._wrapXHR()}_fetchResponseHandler(e,t,r){if(this._getCurrentHub&&this._shouldCaptureResponse(t.status,t.url)){const a=function(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}(e,r),s=this._getCurrentHub();let c,l,u,d;if(s.shouldSendDefaultPii()){var n=X([{cookieHeader:"Cookie",obj:a},{cookieHeader:"Set-Cookie",obj:t}].map((({cookieHeader:e,obj:t})=>{const r=this._extractFetchHeaders(t.headers);let n;try{const t=r[e]||r[e.toLowerCase()]||void 0;t&&(n=this._parseCookieString(t))}catch(e){}return{headers:r,cookies:n}})),2),i=n[0];c=i.headers,u=i.cookies;var o=n[1];l=o.headers,d=o.cookies}const p=this._createEvent({url:a.url,method:a.method,status:t.status,requestHeaders:c,responseHeaders:l,requestCookies:u,responseCookies:d});s.captureEvent(p)}}_xhrResponseHandler(e,t,r){if(this._getCurrentHub&&this._shouldCaptureResponse(e.status,e.responseURL)){let n,i,o;const a=this._getCurrentHub();if(a.shouldSendDefaultPii()){try{const t=e.getResponseHeader("Set-Cookie")||e.getResponseHeader("set-cookie")||void 0;t&&(i=this._parseCookieString(t))}catch(e){}try{o=this._getXHRResponseHeaders(e)}catch(e){}n=r}const s=this._createEvent({url:e.responseURL,method:t,status:e.status,requestHeaders:n,responseHeaders:o,responseCookies:i});a.captureEvent(s)}}_getResponseSizeFromHeaders(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}_parseCookieString(e){return e.split("; ").reduce(((e,t)=>{const r=X(t.split("="),2),n=r[0],i=r[1];return e[n]=i,e}),{})}_extractFetchHeaders(e){const t={};return e.forEach(((e,r)=>{t[r]=e})),t}_getXHRResponseHeaders(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce(((e,t)=>{const r=X(t.split(": "),2),n=r[0],i=r[1];return e[n]=i,e}),{}):{}}_isInGivenRequestTargets(e){return!!this._options.failedRequestTargets&&this._options.failedRequestTargets.some((t=>"string"==typeof t?e.includes(t):t.test(e)))}_isInGivenStatusRanges(e){return!!this._options.failedRequestStatusCodes&&this._options.failedRequestStatusCodes.some((t=>"number"==typeof t?t===e:e>=t[0]&&e<=t[1]))}_wrapFetch(){(0,k.t$)()&&(0,o.oq)("fetch",(e=>{const t=e.response,r=X(e.args,2),n=r[0],i=r[1];t&&this._fetchResponseHandler(n,t,i)}))}_wrapXHR(){"XMLHttpRequest"in i.n2&&(0,o.oq)("xhr",(e=>{const t=e.xhr,r=t[o.xU];if(!r)return;const n=r.method,i=r.request_headers;if(n)try{this._xhrResponseHandler(t,n,i)}catch(e){}}))}_shouldCaptureResponse(e,t){return this._isInGivenStatusRanges(e)&&this._isInGivenRequestTargets(t)&&!(0,$.W)(t,(0,q.Gd)())}_createEvent(e){const t=`HTTP Client Error with status code: ${e.status}`,r={message:t,exception:{values:[{type:"Error",value:t}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:this._getResponseSizeFromHeaders(e.responseHeaders)}}};return(0,s.EG)(r,{type:"http.client",handled:!1}),r}}te.__initStatic();var re=r(12449);const ne=i.n2;class ie{static __initStatic(){this.id="ContextLines"}constructor(e={}){this._options=e,this.name=ie.id}setupOnce(e,t){}processEvent(e){return this.addSourceContext(e)}addSourceContext(e){const t=ne.document,r=ne.location&&(0,re.rt)(ne.location.href);if(!t||!r)return e;const n=e.exception&&e.exception.values;if(!n||!n.length)return e;const i=t.documentElement.innerHTML;if(!i)return e;const o=["<!DOCTYPE html>","<html>",...i.split("\n"),"</html>"];return n.forEach((e=>{const t=e.stacktrace;t&&t.frames&&(t.frames=t.frames.map((e=>function(e,t,r,n){return e.filename===r&&e.lineno&&t.length?((0,s.go)(t,e,n),e):e}(e,o,r,null!=this._options.frameContextLines?this._options.frameContextLines:7))))})),e}}ie.__initStatic()},62103:(e,t,r)=>{"use strict";var n=r(338),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(f){var i=h(r);i&&i!==f&&e(t,i,n)}var a=u(r);d&&(a=a.concat(d(r)));for(var s=c(t),m=c(r),g=0;g<a.length;++g){var v=a[g];if(!(o[v]||n&&n[v]||m&&m[v]||s&&s[v])){var y=p(r,v);try{l(t,v,y)}catch(e){}}}}return t}},14893:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(20512),i=r(2306);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t,r=250,o,a,s,c){if(!(s.exception&&s.exception.values&&c&&(0,n.V9)(c.originalException,Error)))return;const u=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;var d,p;u&&(s.exception.values=(d=l(e,t,a,c.originalException,o,s.exception.values,u,0),p=r,d.map((e=>(e.value&&(e.value=(0,i.$G)(e.value,p)),e)))))}function l(e,t,r,i,o,a,s,c){if(a.length>=r+1)return a;let p=[...a];if((0,n.V9)(i[o],Error)){u(s,c);const n=e(t,i[o]),a=p.length;d(n,o,a,c),p=l(e,t,r,i[o],o,[n,...p],n,a)}return Array.isArray(i.errors)&&i.errors.forEach(((i,a)=>{if((0,n.V9)(i,Error)){u(s,c);const n=e(t,i),h=p.length;d(n,`errors[${a}]`,h,c),p=l(e,t,r,i,o,[n,...p],n,h)}})),p}function u(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=a(a({},e.mechanism),{},{is_exception_group:!0,exception_id:t})}function d(e,t,r,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=a(a({},e.mechanism),{},{type:"chained",source:t,exception_id:r,parent_id:n})}},99110:(e,t,r)=>{"use strict";r.d(t,{Rt:()=>o,l4:()=>s,qT:()=>c});var n=r(20512);const i=(0,r(19596).Rf)();function o(e,t={}){if(!e)return"<unknown>";try{let r=e;const n=5,i=[];let o=0,s=0;const c=" > ",l=c.length;let u;const d=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||80;for(;r&&o++<n&&(u=a(r,d),!("html"===u||o>1&&s+i.length*l+u.length>=p));)i.push(u),s+=u.length,r=r.parentNode;return i.reverse().join(c)}catch(e){return"<unknown>"}}function a(e,t){const r=e,i=[];let o,a,s,c,l;if(!r||!r.tagName)return"";i.push(r.tagName.toLowerCase());const u=t&&t.length?t.filter((e=>r.getAttribute(e))).map((e=>[e,r.getAttribute(e)])):null;if(u&&u.length)u.forEach((e=>{i.push(`[${e[0]}="${e[1]}"]`)}));else if(r.id&&i.push(`#${r.id}`),o=r.className,o&&(0,n.HD)(o))for(a=o.split(/\s+/),l=0;l<a.length;l++)i.push(`.${a[l]}`);const d=["aria-label","type","name","title","alt"];for(l=0;l<d.length;l++)s=d[l],c=r.getAttribute(s),c&&i.push(`[${s}="${c}"]`);return i.join("")}function s(){try{return i.document.location.href}catch(e){return""}}function c(e){return i.document&&i.document.querySelector?i.document.querySelector(e):null}},70678:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{RA:()=>a,U4:()=>s,vK:()=>l}),r(3790);const o=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function a(e,t=!1){const r=e.host,n=e.path,i=e.pass,o=e.port,a=e.projectId;return`${e.protocol}://${e.publicKey}${t&&i?`:${i}`:""}@${r}${o?`:${o}`:""}/${n?`${n}/`:n}${a}`}function s(e){const t=o.exec(e);if(!t)return void console.error(`Invalid Sentry Dsn: ${e}`);const r=n(t.slice(1),6),i=r[0],a=r[1],s=r[2],l=void 0===s?"":s,u=r[3],d=r[4],p=void 0===d?"":d;let h="",f=r[5];const m=f.split("/");if(m.length>1&&(h=m.slice(0,-1).join("/"),f=m.pop()),f){const e=f.match(/^\d+/);e&&(f=e[0])}return c({host:u,pass:l,path:h,projectId:f,port:p,protocol:i,publicKey:a})}function c(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function l(e){const t="string"==typeof e?s(e):c(e);if(t)return t}},12856:(e,t,r)=>{"use strict";function n(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}r.d(t,{S:()=>i,n:()=>n})},94143:(e,t,r)=>{"use strict";r.d(t,{BO:()=>f,Cd:()=>L,HY:()=>x,Jd:()=>h,R:()=>g,V$:()=>y,f4:()=>b,gv:()=>m,mL:()=>w,zQ:()=>_});var n=r(70678),i=r(93937),o=r(7938);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=d(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t=[]){return[e,t]}function f(e,t){const r=u(e,2);return[r[0],[...r[1],t]]}function m(e,t){var r,n=l(e[1]);try{for(n.s();!(r=n.n()).done;){const e=r.value;if(t(e,e[0].type))return!0}}catch(e){n.e(e)}finally{n.f()}return!1}function g(e,t){return m(e,((e,r)=>t.includes(r)))}function v(e,t){return(t||new TextEncoder).encode(e)}function y(e,t){const r=u(e,2),n=r[0],o=r[1];let a=JSON.stringify(n);function s(e){"string"==typeof a?a="string"==typeof e?a+e:[v(a,t),e]:a.push("string"==typeof e?v(e,t):e)}var c,d=l(o);try{for(d.s();!(c=d.n()).done;){const e=u(c.value,2),r=e[0],n=e[1];if(s(`\n${JSON.stringify(r)}\n`),"string"==typeof n||n instanceof Uint8Array)s(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify((0,i.Fv)(n))}s(e)}}}catch(e){d.e(e)}finally{d.f()}return"string"==typeof a?a:function(e){const t=e.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(t);let n=0;var i,o=l(e);try{for(o.s();!(i=o.n()).done;){const e=i.value;r.set(e,n),n+=e.length}}catch(e){o.e(e)}finally{o.f()}return r}(a)}function b(e,t,r){let n="string"==typeof e?t.encode(e):e;function i(e){const t=n.subarray(0,e);return n=n.subarray(e+1),t}function o(){let e=n.indexOf(10);return e<0&&(e=n.length),JSON.parse(r.decode(i(e)))}const a=o(),s=[];for(;n.length;){const e=o(),t="number"==typeof e.length?e.length:void 0;s.push([e,t?i(t):o()])}return[a,s]}function _(e,t){const r="string"==typeof e.data?v(e.data,t):e.data;return[(0,o.Jr)({type:"attachment",length:r.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),r]}const E={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",statsd:"unknown"};function w(e){return E[e]}function x(e){if(!e||!e.sdk)return;const t=e.sdk;return{name:t.name,version:t.version}}function L(e,t,r,i){const a=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return s(s(s({event_id:e.event_id,sent_at:(new Date).toISOString()},t&&{sdk:t}),!!r&&i&&{dsn:(0,n.RA)(i)}),a&&{trace:(0,o.Jr)(s({},a))})}},32962:(e,t,r)=>{"use strict";r.d(t,{b:()=>n});class n extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}},81239:(e,t,r)=>{"use strict";r.d(t,{xU:()=>g,oq:()=>b});var n=r(20512),i=r(3790),o=r(55725),a=r(7938),s=r(90510),c=r(19596);const l=(0,c.Rf)();function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const m=(0,c.Rf)(),g="__sentry_xhr_v2__",v={},y={};function b(e,t){v[e]=v[e]||[],v[e].push(t),function(e){if(!y[e])switch(y[e]=!0,e){case"console":"console"in c.n2&&i.RU.forEach((function(e){e in c.n2.console&&(0,a.hl)(c.n2.console,e,(function(t){return i.LD[e]=t,function(...t){_("console",{args:t,level:e});const r=i.LD[e];r&&r.apply(c.n2.console,t)}}))}));break;case"dom":!function(){if(!m.document)return;const e=_.bind(null,"dom"),t=T(e,!0);m.document.addEventListener("click",t,!1),m.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const r=m[t]&&m[t].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&((0,a.hl)(r,"addEventListener",(function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{const n=this,o=n.__sentry_instrumentation_handlers__=n.__sentry_instrumentation_handlers__||{},a=o[r]=o[r]||{refCount:0};if(!a.handler){const n=T(e);a.handler=n,t.call(this,r,n,i)}a.refCount++}catch(e){}return t.call(this,r,n,i)}})),(0,a.hl)(r,"removeEventListener",(function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{const r=this,i=r.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,n),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete r.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,r,n)}})))}))}();break;case"xhr":!function(){if(!m.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;(0,a.hl)(e,"open",(function(e){return function(...t){const r=Date.now(),i=t[1],o=this[g]={method:(0,n.HD)(t[0])?t[0].toUpperCase():t[0],url:t[1],request_headers:{}};(0,n.HD)(i)&&"POST"===o.method&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const e=this[g];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}_("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:r,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,a.hl)(this,"onreadystatechange",(function(e){return function(...t){return s(),e.apply(this,t)}})):this.addEventListener("readystatechange",s),(0,a.hl)(this,"setRequestHeader",(function(e){return function(...t){const r=t[0],n=t[1],i=this[g];return i&&(i.request_headers[r.toLowerCase()]=n),e.apply(this,t)}})),e.apply(this,t)}})),(0,a.hl)(e,"send",(function(e){return function(...t){const r=this[g];return r&&void 0!==t[0]&&(r.body=t[0]),_("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}();break;case"fetch":(0,s.t$)()&&(0,a.hl)(c.n2,"fetch",(function(e){return function(...t){const r=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),2!==o.length);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e)||h(e,2)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e),r=t[0],n=t[1];return{url:w(r),method:E(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:w(t),method:E(t,"method")?String(t.method).toUpperCase():"GET"}}(t),n={args:t,fetchData:{method:r.method,url:r.url},startTimestamp:Date.now()};return _("fetch",d({},n)),e.apply(c.n2,t).then((e=>(_("fetch",d(d({},n),{},{endTimestamp:Date.now(),response:e})),e)),(e=>{throw _("fetch",d(d({},n),{},{endTimestamp:Date.now(),error:e})),e}))}}));break;case"history":!function(){if(!function(){const e=l.chrome,t=e&&e.app&&e.app.runtime,r="history"in l&&!!l.history.pushState&&!!l.history.replaceState;return!t&&r}())return;const e=m.onpopstate;function t(e){return function(...t){const r=t.length>2?t[2]:void 0;if(r){const e=x,t=String(r);x=t,_("history",{from:e,to:t})}return e.apply(this,t)}}m.onpopstate=function(...t){const r=m.location.href,n=x;if(x=r,_("history",{from:n,to:r}),e)try{return e.apply(this,t)}catch(e){}},(0,a.hl)(m.history,"pushState",t),(0,a.hl)(m.history,"replaceState",t)}();break;case"error":P=m.onerror,m.onerror=function(e,t,r,n,i){return _("error",{column:n,error:i,line:r,msg:e,url:t}),!(!P||P.__SENTRY_LOADER__)&&P.apply(this,arguments)},m.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":I=m.onunhandledrejection,m.onunhandledrejection=function(e){return _("unhandledrejection",e),!(I&&!I.__SENTRY_LOADER__)||I.apply(this,arguments)},m.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:;}}(e)}function _(e,t){if(e&&v[e]){var r,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=h(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(v[e]||[]);try{for(n.s();!(r=n.n()).done;){const n=r.value;try{n(t)}catch(e){}}}catch(e){n.e(e)}finally{n.f()}}}function E(e,t){return!!e&&"object"==typeof e&&!!e[t]}function w(e){return"string"==typeof e?e:e?E(e,"url")?e.url:e.toString?e.toString():"":""}let x,L,O,S;function T(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;const n=function(e){try{return e.target}catch(e){return null}}(r);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(r.type,n))return;(0,a.xp)(r,"_sentryCaptured",!0),n&&!n._sentryId&&(0,a.xp)(n,"_sentryId",(0,o.DM)());const i="keypress"===r.type?"input":r.type;(function(e){if(e.type!==O)return!1;try{if(!e.target||e.target._sentryId!==S)return!1}catch(e){}return!0})(r)||(e({event:r,name:i,global:t}),O=r.type,S=n?n._sentryId:void 0),clearTimeout(L),L=m.setTimeout((()=>{S=void 0,O=void 0}),1e3)}}let P=null,I=null},20512:(e,t,r)=>{"use strict";r.d(t,{Cy:()=>g,HD:()=>l,J8:()=>m,Kj:()=>f,PO:()=>d,TX:()=>s,V9:()=>y,VW:()=>a,VZ:()=>i,cO:()=>p,fm:()=>c,i2:()=>v,kK:()=>h,pt:()=>u,y1:()=>b});const n=Object.prototype.toString;function i(e){switch(n.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(e,Error)}}function o(e,t){return n.call(e)===`[object ${t}]`}function a(e){return o(e,"ErrorEvent")}function s(e){return o(e,"DOMError")}function c(e){return o(e,"DOMException")}function l(e){return o(e,"String")}function u(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function d(e){return o(e,"Object")}function p(e){return"undefined"!=typeof Event&&y(e,Event)}function h(e){return"undefined"!=typeof Element&&y(e,Element)}function f(e){return o(e,"RegExp")}function m(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function g(e){return d(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e){return"number"==typeof e&&e!=e}function y(e,t){try{return e instanceof t}catch(e){return!1}}function b(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}},3790:(e,t,r)=>{"use strict";r.d(t,{Cf:()=>a,LD:()=>o,RU:()=>i,kg:()=>s});var n=r(19596);const i=["debug","info","warn","error","log","assert","trace"],o={};function a(e){if(!("console"in n.n2))return e();const t=n.n2.console,r={},i=Object.keys(o);i.forEach((e=>{const n=o[e];r[e]=t[e],t[e]=n}));try{return e()}finally{i.forEach((e=>{t[e]=r[e]}))}}const s=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return i.forEach((e=>{t[e]=()=>{}})),t}()},55725:(e,t,r)=>{"use strict";r.d(t,{DM:()=>l,Db:()=>p,EG:()=>h,YO:()=>m,go:()=>f,jH:()=>d,lE:()=>g});var n=r(7938),i=r(2306),o=r(19596);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(){const e=o.n2,t=e.crypto||e.msCrypto;let r=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(r=()=>t.getRandomValues(new Uint8Array(1))[0])}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&r())>>e/4).toString(16)))}function u(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function d(e){const t=e.message,r=e.event_id;if(t)return t;const n=u(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function p(e,t,r){const n=e.exception=e.exception||{},i=n.values=n.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=r||"Error")}function h(e,t){const r=u(e);if(!r)return;const n=r.mechanism;if(r.mechanism=s(s(s({},{type:"generic",handled:!0}),n),t),t&&"data"in t){const e=s(s({},n&&n.data),t.data);r.mechanism.data=e}}function f(e,t,r=5){if(void 0===t.lineno)return;const n=e.length,o=Math.max(Math.min(n-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,o-r),o).map((e=>(0,i.JM)(e,0))),t.context_line=(0,i.JM)(e[Math.min(n-1,o)],t.colno||0),t.post_context=e.slice(Math.min(o+1,n),o+1+r).map((e=>(0,i.JM)(e,0)))}function m(e){if(e&&e.__sentry_captured__)return!0;try{(0,n.xp)(e,"__sentry_captured__",!0)}catch(e){}return!1}function g(e){return Array.isArray(e)?e:[e]}},68688:(e,t,r)=>{"use strict";r.d(t,{KV:()=>o,l$:()=>a});var n=r(12856);e=r.hmd(e);var i=r(82530);function o(){return!(0,n.n)()&&"[object process]"===Object.prototype.toString.call(void 0!==i?i:0)}function a(e,t){return e.require(t)}},93937:(e,t,r)=>{"use strict";r.d(t,{Fv:()=>c,Qy:()=>l});var n=r(20512),i=r(7938),o=r(28231);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t=100,r=1/0){try{return u("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function l(e,t=3,r=102400){const n=c(e,t);return i=n,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>r?l(e,t-1,r):n;var i}function u(e,t,s=1/0,c=1/0,l=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(r){if(e)return!!t.has(r)||(t.add(r),!1);for(let e=0;e<t.length;e++)if(t[e]===r)return!0;return t.push(r),!1},function(r){if(e)t.delete(r);else for(let e=0;e<t.length;e++)if(t[e]===r){t.splice(e,1);break}}]}()){const d=a(l,2),p=d[0],h=d[1];if(null==t||["number","boolean","string"].includes(typeof t)&&!(0,n.i2)(t))return t;const f=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==r.g&&t===r.g)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,n.y1)(t))return"[VueViewModel]";if((0,n.Cy)(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${(0,o.$P)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const i=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(i)?`[HTMLElement: ${i}]`:`[object ${i}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!f.startsWith("[object "))return f;if(t.__sentry_skip_normalization__)return t;const m="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:s;if(0===m)return f.replace("object ","");if(p(t))return"[Circular ~]";const g=t;if(g&&"function"==typeof g.toJSON)try{return u("",g.toJSON(),m-1,c,l)}catch(e){}const v=Array.isArray(t)?[]:{};let y=0;const b=(0,i.Sh)(t);for(const e in b){if(!Object.prototype.hasOwnProperty.call(b,e))continue;if(y>=c){v[e]="[MaxProperties ~]";break}const t=b[e];v[e]=u(e,t,m-1,c,l),y++}return h(t),v}},7938:(e,t,r)=>{"use strict";r.d(t,{$Q:()=>d,HK:()=>p,Jr:()=>y,Sh:()=>f,_j:()=>h,hl:()=>l,xp:()=>u,zf:()=>v});var n=r(99110),i=r(20512),o=r(2306);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t,r){if(!(t in e))return;const n=e[t],i=r(n);"function"==typeof i&&d(i,n),e[t]=i}function u(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch(e){}}function d(e,t){try{const r=t.prototype||{};e.prototype=t.prototype=r,u(e,"__sentry_original__",t)}catch(e){}}function p(e){return e.__sentry_original__}function h(e){return Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}function f(e){if((0,i.VZ)(e))return s({message:e.message,name:e.name,stack:e.stack},g(e));if((0,i.cO)(e)){const t=s({type:e.type,target:m(e.target),currentTarget:m(e.currentTarget)},g(e));return"undefined"!=typeof CustomEvent&&(0,i.V9)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function m(e){try{return(0,i.kK)(e)?(0,n.Rt)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function g(e){if("object"==typeof e&&null!==e){const t={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}return{}}function v(e,t=40){const r=Object.keys(f(e));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=t)return(0,o.$G)(r[0],t);for(let e=r.length;e>0;e--){const n=r.slice(0,e).join(", ");if(!(n.length>t))return e===r.length?n:(0,o.$G)(n,t)}return""}function y(e){return b(e,new Map)}function b(e,t){if((0,i.PO)(e)){const i=t.get(e);if(void 0!==i)return i;const o={};t.set(e,o);for(var r=0,n=Object.keys(e);r<n.length;r++){const i=n[r];void 0!==e[i]&&(o[i]=b(e[i],t))}return o}if(Array.isArray(e)){const r=t.get(e);if(void 0!==r)return r;const n=[];return t.set(e,n),e.forEach((e=>{n.push(b(e,t))})),n}return e}},92858:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=o(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw a}}}}function o(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t=Date.now()){const r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;const n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}function u(e,t,r=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>r}function d(e,{statusCode:t,headers:r},o=Date.now()){const a=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e),u=r&&r["x-sentry-rate-limits"],d=r&&r["retry-after"];if(u){var p,h=i(u.trim().split(","));try{for(h.s();!(p=h.n()).done;){const t=n(p.value.split(":",2),2),r=t[0],s=t[1],c=parseInt(r,10),l=1e3*(isNaN(c)?60:c);if(s){var f,m=i(s.split(";"));try{for(m.s();!(f=m.n()).done;)a[f.value]=o+l}catch(e){m.e(e)}finally{m.f()}}else a.all=o+l}}catch(e){h.e(e)}finally{h.f()}}else d?a.all=o+l(d,o):429===t&&(a.all=o+6e4);return a}r.d(t,{JY:()=>l,Q:()=>u,WG:()=>d})},17341:(e,t,r)=>{"use strict";r.d(t,{VT:()=>i});const n=["fatal","error","warning","log","info","debug"];function i(e){return"warn"===e?"warning":n.includes(e)?e:"log"}},28231:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw o}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{$P:()=>h,Sq:()=>d,pE:()=>u});const c=/\(error: (.*)\)/,l=/captureMessage|captureException/;function u(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,r=0)=>{const n=[],o=e.split("\n");for(let i=r;i<o.length;i++){const r=o[i];if(r.length>1024)continue;const l=c.test(r)?r.replace(c,"$1"):r;if(!l.match(/\S*Error: /)){var s,u=a(t);try{for(u.s();!(s=u.n()).done;){const e=(0,s.value)(l);if(e){n.push(e);break}}}catch(e){u.e(e)}finally{u.f()}if(n.length>=50)break}}return function(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),l.test(t[t.length-1].function||"")&&(t.pop(),l.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,50).map((e=>i(i({},e),{},{filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(n)}}function d(e){return Array.isArray(e)?u(...e):e}const p="<anonymous>";function h(e){try{return e&&"function"==typeof e&&e.name||p}catch(e){return p}}},2306:(e,t,r)=>{"use strict";r.d(t,{$G:()=>i,JM:()=>o,U0:()=>s,nK:()=>a});var n=r(20512);function i(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function o(e,t){let r=e;const n=r.length;if(n<=150)return r;t>n&&(t=n);let i=Math.max(t-60,0);i<5&&(i=0);let o=Math.min(i+140,n);return o>n-5&&(o=n),o===n&&(i=Math.max(o-140,0)),r=r.slice(i,o),i>0&&(r=`'{snip} ${r}`),o<n&&(r+=" {snip}"),r}function a(e,t){if(!Array.isArray(e))return"";const r=[];for(let t=0;t<e.length;t++){const i=e[t];try{(0,n.y1)(i)?r.push("[VueViewModel]"):r.push(String(i))}catch(e){r.push("[value cannot be serialized]")}}return r.join(t)}function s(e,t=[],r=!1){return t.some((t=>function(e,t,r=!1){return!!(0,n.HD)(e)&&((0,n.Kj)(t)?t.test(e):!!(0,n.HD)(t)&&(r?e===t:e.includes(t)))}(e,t,r)))}},90510:(e,t,r)=>{"use strict";r.d(t,{Ak:()=>i,Du:()=>o,t$:()=>a,zb:()=>s});const n=(0,r(19596).Rf)();function i(){if(!("fetch"in n))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function o(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function a(){if(!i())return!1;if(o(n.fetch))return!0;let e=!1;const t=n.document;if(t&&"function"==typeof t.createElement)try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(e=o(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){}return e}function s(){return"ReportingObserver"in n}},23155:(e,t,r)=>{"use strict";r.d(t,{$2:()=>a,WD:()=>o,cW:()=>s});var n,i=r(20512);function o(e){return new s((t=>{t(e)}))}function a(e){return new s(((t,r)=>{r(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(n||(n={}));class s{constructor(e){s.prototype.__init.call(this),s.prototype.__init2.call(this),s.prototype.__init3.call(this),s.prototype.__init4.call(this),this._state=n.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new s(((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new s(((t,r)=>{let n,i;return this.then((t=>{i=!1,n=t,e&&e()}),(t=>{i=!0,n=t,e&&e()})).then((()=>{i?r(n):t(n)}))}))}__init(){this._resolve=e=>{this._setResult(n.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(n.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===n.PENDING&&((0,i.J8)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===n.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===n.RESOLVED&&e[1](this._value),this._state===n.REJECTED&&e[2](this._value),e[0]=!0)}))}}}},49230:(e,t,r)=>{"use strict";r.d(t,{Z1:()=>p,ph:()=>u,yW:()=>l});var n=r(68688),i=r(19596);e=r.hmd(e);const o=(0,i.Rf)(),a={nowSeconds:()=>Date.now()/1e3},s=(0,n.KV)()?function(){try{return(0,n.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){const e=o.performance;if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),c=void 0===s?a:{nowSeconds:()=>(s.timeOrigin+s.now())/1e3},l=a.nowSeconds.bind(a),u=c.nowSeconds.bind(c);let d;const p=(()=>{const e=o.performance;if(!e||!e.now)return void(d="none");const t=36e5,r=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+r-n):t,a=i<t,s=e.timing&&e.timing.navigationStart,c="number"==typeof s?Math.abs(s+r-n):t;return a||c<t?i<=c?(d="timeOrigin",e.timeOrigin):(d="navigationStart",s):(d="dateNow",n)})()},12449:(e,t,r)=>{"use strict";function n(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function i(e){return e.split(/[\?#]/,1)[0]}r.d(t,{en:()=>n,rt:()=>i})},19596:(e,t,r)=>{"use strict";function n(e){return e&&e.Math==Math?e:void 0}r.d(t,{Rf:()=>o,YO:()=>a,n2:()=>i});const i="object"==typeof globalThis&&n(globalThis)||"object"==typeof window&&n(window)||"object"==typeof self&&n(self)||"object"==typeof r.g&&n(r.g)||function(){return this}()||{};function o(){return i}function a(e,t,r){const n=r||i,o=n.__SENTRY__=n.__SENTRY__||{};return o[e]||(o[e]=t())}},14417:(e,t,r)=>{"use strict";r.r(t)},10419:(e,t,r)=>{"use strict";r.r(t)},69533:(e,t,r)=>{"use strict";r.r(t)},40506:(e,t,r)=>{"use strict";r.r(t)},13851:(e,t,r)=>{"use strict";r.r(t)},77609:(e,t,r)=>{"use strict";r.r(t)},80610:(e,t,r)=>{"use strict";r.r(t)},8036:(e,t,r)=>{"use strict";r.r(t)},54802:(e,t,r)=>{"use strict";r.r(t)},39793:(e,t,r)=>{"use strict";r.r(t)},77304:(e,t,r)=>{"use strict";r.r(t)},15682:(e,t,r)=>{"use strict";r.r(t)},42876:(e,t,r)=>{"use strict";r.r(t)},88576:(e,t,r)=>{"use strict";r.r(t)},18236:(e,t,r)=>{"use strict";r.r(t)},78211:(e,t,r)=>{"use strict";r.r(t)},33639:(e,t,r)=>{"use strict";r.r(t)},86001:(e,t,r)=>{"use strict";r.r(t)},76785:(e,t,r)=>{"use strict";r.r(t)},50388:(e,t,r)=>{"use strict";r.r(t)},48849:(e,t,r)=>{"use strict";r.r(t)},84536:(e,t,r)=>{"use strict";r.r(t)},59849:(e,t,r)=>{"use strict";r.r(t)},83973:(e,t,r)=>{"use strict";r.r(t)},84493:(e,t,r)=>{"use strict";r.r(t)},40612:(e,t,r)=>{"use strict";r.r(t)},82550:(e,t,r)=>{"use strict";r.r(t)},13286:(e,t,r)=>{"use strict";r.r(t)},16088:(e,t,r)=>{"use strict";r.r(t)},49135:(e,t,r)=>{"use strict";r.r(t)},40735:(e,t,r)=>{"use strict";r.r(t)},66557:(e,t,r)=>{"use strict";r.r(t)},54698:(e,t,r)=>{"use strict";r.r(t)},9781:(e,t,r)=>{"use strict";r.r(t)},96014:(e,t,r)=>{"use strict";r.r(t)},849:(e,t,r)=>{"use strict";r.r(t)},10454:(e,t,r)=>{"use strict";r.r(t)},12076:(e,t,r)=>{"use strict";r.r(t)},30954:(e,t,r)=>{"use strict";r.r(t)},43319:(e,t,r)=>{"use strict";r.r(t)},76172:(e,t,r)=>{"use strict";r.r(t)},92708:(e,t,r)=>{"use strict";r.r(t)},46400:(e,t,r)=>{"use strict";r.r(t)},6111:(e,t,r)=>{"use strict";r.r(t)},32035:(e,t,r)=>{"use strict";r.r(t)},26328:(e,t,r)=>{"use strict";r.r(t)},10549:(e,t,r)=>{"use strict";r.r(t)},44101:(e,t,r)=>{"use strict";r.r(t)},54521:(e,t,r)=>{"use strict";r.r(t)},90837:(e,t,r)=>{"use strict";r.r(t)},38051:(e,t,r)=>{"use strict";r.r(t)},54285:(e,t,r)=>{"use strict";r.r(t)},21666:(e,t,r)=>{"use strict";r.r(t)},45947:(e,t,r)=>{"use strict";r.r(t)},99555:(e,t,r)=>{"use strict";r.r(t)},22489:(e,t,r)=>{"use strict";r.r(t)},66759:(e,t,r)=>{"use strict";r.r(t)},10385:(e,t,r)=>{"use strict";r.r(t)},81552:(e,t,r)=>{"use strict";r.r(t)},28432:(e,t,r)=>{"use strict";r.r(t)},30250:(e,t,r)=>{"use strict";r.r(t)},63595:(e,t,r)=>{"use strict";r.r(t)},85485:(e,t,r)=>{"use strict";r.r(t)},73657:(e,t,r)=>{"use strict";r.r(t)},54525:(e,t,r)=>{"use strict";r.r(t)},60448:(e,t,r)=>{"use strict";r.r(t)},99756:(e,t,r)=>{"use strict";r.r(t)},52855:(e,t,r)=>{"use strict";r.r(t)},24130:(e,t,r)=>{"use strict";r.r(t)},78743:(e,t,r)=>{"use strict";r.r(t)},67869:(e,t,r)=>{"use strict";r.r(t)},34673:(e,t,r)=>{"use strict";r.r(t)},16032:(e,t,r)=>{"use strict";r.r(t)},25915:(e,t,r)=>{"use strict";r.r(t)},77682:(e,t,r)=>{"use strict";r.r(t)},108:(e,t,r)=>{"use strict";r.r(t)},31341:(e,t,r)=>{"use strict";r.r(t)},22386:(e,t,r)=>{"use strict";r.r(t)},85149:(e,t,r)=>{"use strict";r.r(t)},66795:(e,t,r)=>{"use strict";r.r(t)},80076:(e,t,r)=>{"use strict";r.r(t)},19517:(e,t,r)=>{"use strict";r.r(t)},39302:(e,t,r)=>{"use strict";r.r(t)},26286:(e,t,r)=>{"use strict";r.r(t)},87571:(e,t,r)=>{"use strict";r.r(t)},77413:(e,t,r)=>{"use strict";r.r(t)},92604:(e,t,r)=>{"use strict";r.r(t)},20760:(e,t,r)=>{"use strict";r.r(t)},79163:(e,t,r)=>{"use strict";r.r(t)},12476:(e,t,r)=>{"use strict";r.r(t)},41254:(e,t,r)=>{"use strict";r.r(t)},25226:(e,t,r)=>{"use strict";r.r(t)},1447:(e,t,r)=>{"use strict";r.r(t)},91540:(e,t,r)=>{"use strict";r.r(t)},28250:(e,t,r)=>{"use strict";r.r(t)},23324:(e,t,r)=>{"use strict";r.r(t)},9174:(e,t,r)=>{"use strict";r.r(t)},19766:(e,t,r)=>{"use strict";r.r(t)},16253:(e,t,r)=>{"use strict";r.r(t)},77861:(e,t,r)=>{"use strict";r.r(t)},63693:(e,t,r)=>{"use strict";r.r(t)},61491:(e,t,r)=>{"use strict";r.r(t)},73258:(e,t,r)=>{"use strict";r.r(t)},6649:(e,t,r)=>{"use strict";r.r(t)},1926:(e,t,r)=>{"use strict";r.r(t)},22361:(e,t,r)=>{"use strict";r.r(t)},84654:(e,t,r)=>{"use strict";r.r(t)},12656:(e,t,r)=>{"use strict";r.r(t)},44460:(e,t,r)=>{"use strict";r.r(t)},707:(e,t,r)=>{"use strict";r.r(t)},37969:(e,t,r)=>{"use strict";r.r(t)},41203:(e,t,r)=>{"use strict";r.r(t)},97395:(e,t,r)=>{"use strict";r.r(t)},32678:(e,t,r)=>{"use strict";r.r(t)},70284:(e,t,r)=>{"use strict";r.r(t)},46701:(e,t,r)=>{"use strict";r.r(t)},39575:(e,t,r)=>{"use strict";r.r(t)},47949:(e,t,r)=>{"use strict";r.r(t)},68287:(e,t,r)=>{"use strict";r.r(t)},36358:(e,t,r)=>{"use strict";r.r(t)},31799:(e,t,r)=>{"use strict";r.r(t)},42069:(e,t,r)=>{"use strict";r.r(t)},88759:(e,t,r)=>{"use strict";r.r(t)},79620:(e,t,r)=>{"use strict";r.r(t)},51548:e=>{e.exports={inferEnvironment:function({version:e,hostname:t,environment:r="production"}){return e&&(e.includes(".pr")||e.includes("main")||e.includes("dev"))||t&&t.includes("aw-ube")||t&&t.includes("prenv")?"preview":t&&t.includes("stage")?"staging":t&&t.includes("localhost")||t&&t.includes("dev.adobe.com")?"development":r}}},21271:e=>{const t=["onAbort","onAnimationCancel","onAnimationEnd","onAnimationIteration","onAuxClick","onBlur","onChange","onClick","onClose","onContextMenu","onDoubleClick","onError","onFocus","onGotPointerCapture","onInput","onKeyDown","onKeyPress","onKeyUp","onLoad","onLoadEnd","onLoadStart","onLostPointerCapture","onMouseDown","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onReset","onResize","onScroll","onSelect","onSelectionChange","onSelectStart","onSubmit","onTouchCancel","onTouchMove","onTouchStart","onTransitionCancel","onTransitionEnd","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onFocusOut"],r={onDoubleClick:"dblclick"},n={onInput:"onChange",onFocusOut:"onBlur",onSelectionChange:"onSelect"},i=["onScroll"];function o(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&-1!==t.indexOf("_reactInternal"))return e[t]}function a(e){if(e)return e.memoizedProps?e.memoizedProps:void 0}function s(e,t,r){r[t]&&(e.isPropagationStopped=()=>!1,r[t](e))}e.exports=function e(c){t.forEach((function(t){const l=function(e){return r[e]?r[e]:e.replace(/^on/,"").toLowerCase()}(t);c.addEventListener(l,(function(r){const i=function(t){if(e.ignoreEventPaths)return;if((t=t.nativeEvent||t).path||t.composedPath)return t.path||t.composedPath&&t.composedPath();const r=[];let n=t.target;for(;n;){if(r.push(n),"HTML"===n.tagName)return r.push(document),r.push(window),r;n=n.parentElement}}(r);for(let e=0;e<i.length;e++){const l=i[e],u=o(l),d=a(u);if(u&&d&&s(r,t,d),u&&d&&n[t]&&s(r,n[t],d),r.cancelBubble)break;if(l===c)break}}),-1!==i.indexOf(t))}))}},74052:(e,t,r)=>{const n="-"+r(72137).replace(/[\^~]/g,"").replace(/\./g,"-");e.exports={fallbackTagName:function(e){return`${e}${n}`},fallbackTagNameSuffix:n}},72137:e=>{e.exports="1.0.228"},75097:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BUILD_VERSION=void 0,t.BUILD_VERSION="@exc/metrics:1.7.4+sha.8829fb0"},85814:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Level=void 0,function(e){e.ERROR="ERROR",e.WARN="WARN",e.INFO="INFO",e.DEBUG="DEBUG",e.TRACE="TRACE"}(t.Level||(t.Level={}))},67174:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(85814),i=r(37254),o=r(75097);class a{constructor(e,...t){let a;switch(this.history={back:(...e)=>this._log(i.RecordType.HISTORY,n.Level.INFO,this.name,void 0,"back",e),forward:(...e)=>this._log(i.RecordType.HISTORY,n.Level.INFO,this.name,void 0,"forward",e),go:(e,...t)=>(t.unshift({n:e}),this._log(i.RecordType.HISTORY,n.Level.INFO,this.name,void 0,"go",t)),push:(e,t,...r)=>(r.unshift({path:e,state:t}),this._log(i.RecordType.HISTORY,n.Level.INFO,this.name,void 0,"push",r)),replace:(e,t,...r)=>(r.unshift({path:e,state:t}),this._log(i.RecordType.HISTORY,n.Level.INFO,this.name,void 0,"replace",r))},this.analytics={track:(e,...t)=>this._log(i.RecordType.ANALYTICS,n.Level.INFO,this.name,void 0,e,t),trackEvent:(e,...t)=>(t.unshift(e),this._log(i.RecordType.ANALYTICS,n.Level.INFO,this.name,void 0,"Event",t)),trackPage:(e,...t)=>(t.unshift(e),this._log(i.RecordType.ANALYTICS,n.Level.INFO,this.name,void 0,"Page",t)),trackUser:(e,...t)=>(t.unshift(e),this._log(i.RecordType.ANALYTICS,n.Level.INFO,this.name,void 0,"User",t))},this.location={assign:(e,...t)=>(t.unshift({url:e}),this._log(i.RecordType.LOCATION,n.Level.INFO,this.name,void 0,"assign",t)),reload:(e,...t)=>(t.unshift({force:e}),this._log(i.RecordType.LOCATION,n.Level.INFO,this.name,void 0,"reload",t)),replace:(e,...t)=>(t.unshift({url:e}),this._log(i.RecordType.LOCATION,n.Level.INFO,this.name,void 0,"replace",t))},this.name=e,t.length&&"object"==typeof t[0]&&"function"==typeof t[0].now?(a=t[0],t.shift()):a=r.g.adobeMetrics,this._log=(e,t,r,n,i,s)=>a.write({data:s.length>0?[...s]:void 0,event:i,level:t,message:n,metricsState:{sdkVersion:o.BUILD_VERSION},name:r,recordType:e}),this.store=e=>{e.metricsState={sdkVersion:o.BUILD_VERSION},e.name=this.name,a.write(e)},t.length){case 0:break;case 1:this.context=t[0];break;default:this.context=t}}error(e,...t){return this._log(i.RecordType.LOG,n.Level.ERROR,this.name,e,void 0,t)}warn(e,...t){return this._log(i.RecordType.LOG,n.Level.WARN,this.name,e,void 0,t)}log(e,...t){return this._log(i.RecordType.LOG,n.Level.INFO,this.name,e,void 0,t)}info(e,...t){return this._log(i.RecordType.LOG,n.Level.INFO,this.name,e,void 0,t)}debug(e,...t){return this._log(i.RecordType.LOG,n.Level.DEBUG,this.name,e,void 0,t)}trace(e,...t){return this._log(i.RecordType.LOG,n.Level.TRACE,this.name,e,void 0,t)}start(e,...t){return r.g.adobeMetrics.create(i.RecordType.TIMER,this.name,this.context,e,...t)}event(e,...t){return this._log(i.RecordType.EVENT,n.Level.INFO,this.name,void 0,e,t)}recent(e,...t){return this._log(i.RecordType.RECENT,n.Level.INFO,this.name,void 0,e,t)}sea(e,...t){return this._log(i.RecordType.SEA,n.Level.INFO,this.name,void 0,e,t)}}t.default=a,a.version=o.BUILD_VERSION,function(){const e=r.g.adobeMetrics=r.g.adobeMetrics||{};e.queue=e.queue||[]}()},44365:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MetricsEvents=void 0,function(e){e.PAGE_LOAD_DONE="exc.metrics.pageState.load.done",e.PAGE_LOAD_START="exc.metrics.pageState.load.start",e.SPINNER_DONE="exc.metrics.pageState.spinner.done",e.SPINNER_START="exc.metrics.pageState.spinner.start"}(t.MetricsEvents||(t.MetricsEvents={}))},37254:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RecordType=void 0,function(e){e.ANALYTICS="Analytics",e.EVENT="Event",e.RECENT="Recent",e.HISTORY="History",e.LOCATION="Location",e.LOG="Log",e.NETWORK_REQUEST="NetworkRequest",e.NETWORK_RESPONSE="NetworkResponse",e.RESOURCE_TIMING="ResourceTiming",e.PAINT_TIMING="PaintTiming",e.NAVIGATION_TIMING="NavigationTiming",e.TIMER="Timer",e.TRACER="Tracer",e.USER="User",e.USER_EVENT="UserEvent",e.SEA="SEA"}(t.RecordType||(t.RecordType={}))},21821:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserOptOutAllowList=void 0,t.UserOptOutAllowList=["attributes","authSystem","dateNow","event","metricsState","recordType","timestamp","userHash"]},58620:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UserOptOutAllowList=t.RecordType=t.MetricsEvents=t.Level=void 0;const i=n(r(67174));t.default=i.default;var o=r(85814);Object.defineProperty(t,"Level",{enumerable:!0,get:function(){return o.Level}});var a=r(44365);Object.defineProperty(t,"MetricsEvents",{enumerable:!0,get:function(){return a.MetricsEvents}});var s=r(37254);Object.defineProperty(t,"RecordType",{enumerable:!0,get:function(){return s.RecordType}});var c=r(21821);Object.defineProperty(t,"UserOptOutAllowList",{enumerable:!0,get:function(){return c.UserOptOutAllowList}})},21599:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUnicodeLanguageSubtag=t.isUnicodeScriptSubtag=t.isUnicodeRegionSubtag=t.isStructurallyValidLanguageTag=t.parseUnicodeLanguageId=t.parseUnicodeLocaleId=t.getCanonicalLocales=void 0;var n=r(97582),i=r(24773),o=r(18213),a=r(51520);t.getCanonicalLocales=function(e){return function(e){if(void 0===e)return[];var t=[];"string"==typeof e&&(e=[e]);for(var r=0,n=e;r<n.length;r++){var s=n[r],c=(0,o.emitUnicodeLocaleId)((0,a.canonicalizeUnicodeLocaleId)((0,i.parseUnicodeLocaleId)(s)));t.indexOf(c)<0&&t.push(c)}return t}(e)};var s=r(24773);Object.defineProperty(t,"parseUnicodeLocaleId",{enumerable:!0,get:function(){return s.parseUnicodeLocaleId}}),Object.defineProperty(t,"parseUnicodeLanguageId",{enumerable:!0,get:function(){return s.parseUnicodeLanguageId}}),Object.defineProperty(t,"isStructurallyValidLanguageTag",{enumerable:!0,get:function(){return s.isStructurallyValidLanguageTag}}),Object.defineProperty(t,"isUnicodeRegionSubtag",{enumerable:!0,get:function(){return s.isUnicodeRegionSubtag}}),Object.defineProperty(t,"isUnicodeScriptSubtag",{enumerable:!0,get:function(){return s.isUnicodeScriptSubtag}}),Object.defineProperty(t,"isUnicodeLanguageSubtag",{enumerable:!0,get:function(){return s.isUnicodeLanguageSubtag}}),(0,n.__exportStar)(r(26624),t),(0,n.__exportStar)(r(18213),t),(0,n.__exportStar)(r(37376),t)},75523:(e,t,r)=>{"use strict";var n=r(21599),i=r(29157);"undefined"==typeof Intl&&("undefined"!=typeof window?Object.defineProperty(window,"Intl",{value:{}}):void 0!==r.g&&Object.defineProperty(r.g,"Intl",{value:{}})),(0,i.shouldPolyfill)()&&Object.defineProperty(Intl,"getCanonicalLocales",{value:n.getCanonicalLocales,writable:!0,enumerable:!1,configurable:!0})},29157:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldPolyfill=void 0,t.shouldPolyfill=function(){return"undefined"==typeof Intl||!("getCanonicalLocales"in Intl)||"x-private"===Intl.getCanonicalLocales("und-x-private")[0]}},86865:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.variantAlias=t.scriptAlias=t.territoryAlias=t.languageAlias=void 0,t.languageAlias={"aa-saaho":"ssy",aam:"aas",aar:"aa",abk:"ab",adp:"dz",afr:"af",agp:"apf",ais:"ami",aju:"jrb",aka:"ak",alb:"sq",als:"sq",amh:"am",ara:"ar",arb:"ar",arg:"an",arm:"hy","art-lojban":"jbo",asd:"snz",asm:"as",aue:"ktz",ava:"av",ave:"ae",aym:"ay",ayr:"ay",ayx:"nun",aze:"az",azj:"az",bak:"ba",bam:"bm",baq:"eu",baz:"nvo",bcc:"bal",bcl:"bik",bel:"be",ben:"bn",bgm:"bcg",bh:"bho",bhk:"fbl",bih:"bho",bis:"bi",bjd:"drl",bjq:"bzc",bkb:"ebk",bod:"bo",bos:"bs",bre:"br",btb:"beb",bul:"bg",bur:"my",bxk:"luy",bxr:"bua",cat:"ca",ccq:"rki","cel-gaulish":"xtg",ces:"cs",cha:"ch",che:"ce",chi:"zh",chu:"cu",chv:"cv",cjr:"mom",cka:"cmr",cld:"syr",cmk:"xch",cmn:"zh",cnr:"sr-ME",cor:"kw",cos:"co",coy:"pij",cqu:"quh",cre:"cr",cwd:"cr",cym:"cy",cze:"cs",daf:"dnj",dan:"da",dap:"njz",deu:"de",dgo:"doi",dhd:"mwr",dik:"din",diq:"zza",dit:"dif",div:"dv",djl:"dze",dkl:"aqd",drh:"mn",drr:"kzk",drw:"fa-AF",dud:"uth",duj:"dwu",dut:"nl",dwl:"dbt",dzo:"dz",ekk:"et",ell:"el",elp:"amq",emk:"man","en-GB-oed":"en-GB-oxendict",eng:"en",epo:"eo",esk:"ik",est:"et",eus:"eu",ewe:"ee",fao:"fo",fas:"fa",fat:"ak",fij:"fj",fin:"fi",fra:"fr",fre:"fr",fry:"fy",fuc:"ff",ful:"ff",gav:"dev",gaz:"om",gbc:"wny",gbo:"grb",geo:"ka",ger:"de",gfx:"vaj",ggn:"gvr",ggo:"esg",ggr:"gtu",gio:"aou",gla:"gd",gle:"ga",glg:"gl",gli:"kzk",glv:"gv",gno:"gon",gre:"el",grn:"gn",gti:"nyc",gug:"gn",guj:"gu",guv:"duz",gya:"gba",hat:"ht",hau:"ha",hbs:"sr-Latn",hdn:"hai",hea:"hmn",heb:"he",her:"hz",him:"srx",hin:"hi",hmo:"ho",hrr:"jal",hrv:"hr",hun:"hu","hy-arevmda":"hyw",hye:"hy","i-ami":"ami","i-bnn":"bnn","i-default":"en-x-i-default","i-enochian":"und-x-i-enochian","i-hak":"hak","i-klingon":"tlh","i-lux":"lb","i-mingo":"see-x-i-mingo","i-navajo":"nv","i-pwn":"pwn","i-tao":"tao","i-tay":"tay","i-tsu":"tsu",ibi:"opa",ibo:"ig",ice:"is",ido:"io",iii:"ii",ike:"iu",iku:"iu",ile:"ie",ill:"ilm",ilw:"gal",in:"id",ina:"ia",ind:"id",ipk:"ik",isl:"is",ita:"it",iw:"he",izi:"eza",jar:"jgk",jav:"jv",jeg:"oyb",ji:"yi",jpn:"ja",jw:"jv",kal:"kl",kan:"kn",kas:"ks",kat:"ka",kau:"kr",kaz:"kk",kdv:"zkd",kgc:"tdf",kgd:"ncq",kgh:"kml",khk:"mn",khm:"km",kik:"ki",kin:"rw",kir:"ky",kmr:"ku",knc:"kr",kng:"kg",knn:"kok",koj:"kwv",kom:"kv",kon:"kg",kor:"ko",kpp:"jkm",kpv:"kv",krm:"bmf",ktr:"dtp",kua:"kj",kur:"ku",kvs:"gdj",kwq:"yam",kxe:"tvd",kxl:"kru",kzh:"dgl",kzj:"dtp",kzt:"dtp",lao:"lo",lat:"la",lav:"lv",lbk:"bnc",leg:"enl",lii:"raq",lim:"li",lin:"ln",lit:"lt",llo:"ngt",lmm:"rmx",ltz:"lb",lub:"lu",lug:"lg",lvs:"lv",mac:"mk",mah:"mh",mal:"ml",mao:"mi",mar:"mr",may:"ms",meg:"cir",mgx:"jbk",mhr:"chm",mkd:"mk",mlg:"mg",mlt:"mt",mnk:"man",mnt:"wnn",mo:"ro",mof:"xnt",mol:"ro",mon:"mn",mri:"mi",msa:"ms",mst:"mry",mup:"raj",mwd:"dmw",mwj:"vaj",mya:"my",myd:"aog",myt:"mry",nad:"xny",nau:"na",nav:"nv",nbf:"nru",nbl:"nr",nbx:"ekc",ncp:"kdz",nde:"nd",ndo:"ng",nep:"ne",nld:"nl",nln:"azd",nlr:"nrk",nno:"nn",nns:"nbr",nnx:"ngv","no-bok":"nb","no-bokmal":"nb","no-nyn":"nn","no-nynorsk":"nn",nob:"nb",noo:"dtd",nor:"no",npi:"ne",nts:"pij",nxu:"bpp",nya:"ny",oci:"oc",ojg:"oj",oji:"oj",ori:"or",orm:"om",ory:"or",oss:"os",oun:"vaj",pan:"pa",pbu:"ps",pcr:"adx",per:"fa",pes:"fa",pli:"pi",plt:"mg",pmc:"huw",pmu:"phr",pnb:"lah",pol:"pl",por:"pt",ppa:"bfy",ppr:"lcq",prs:"fa-AF",pry:"prt",pus:"ps",puz:"pub",que:"qu",quz:"qu",rmr:"emx",rmy:"rom",roh:"rm",ron:"ro",rum:"ro",run:"rn",rus:"ru",sag:"sg",san:"sa",sap:"aqt",sca:"hle",scc:"sr",scr:"hr",sgl:"isk","sgn-BE-FR":"sfb","sgn-BE-NL":"vgt","sgn-BR":"bzs","sgn-CH-DE":"sgg","sgn-CO":"csn","sgn-DE":"gsg","sgn-DK":"dsl","sgn-ES":"ssp","sgn-FR":"fsl","sgn-GB":"bfi","sgn-GR":"gss","sgn-IE":"isg","sgn-IT":"ise","sgn-JP":"jsl","sgn-MX":"mfs","sgn-NI":"ncs","sgn-NL":"dse","sgn-NO":"nsi","sgn-PT":"psr","sgn-SE":"swl","sgn-US":"ase","sgn-ZA":"sfs",sh:"sr-Latn",sin:"si",skk:"oyb",slk:"sk",slo:"sk",slv:"sl",sme:"se",smo:"sm",sna:"sn",snd:"sd",som:"so",sot:"st",spa:"es",spy:"kln",sqi:"sq",src:"sc",srd:"sc",srp:"sr",ssw:"ss",sul:"sgd",sum:"ulw",sun:"su",swa:"sw",swc:"sw-CD",swe:"sv",swh:"sw",tah:"ty",tam:"ta",tat:"tt",tdu:"dtp",tel:"te",tgg:"bjp",tgk:"tg",tgl:"fil",tha:"th",thc:"tpo",thw:"ola",thx:"oyb",tib:"bo",tid:"itd",tie:"ras",tir:"ti",tkk:"twm",tl:"fil",tlw:"weo",tmp:"tyj",tne:"kak",tnf:"fa-AF",ton:"to",tsf:"taj",tsn:"tn",tso:"ts",ttq:"tmh",tuk:"tk",tur:"tr",tw:"ak",twi:"ak",uig:"ug",ukr:"uk",umu:"del","und-aaland":"und-AX","und-arevela":"und","und-arevmda":"und","und-bokmal":"und","und-hakka":"und","und-hepburn-heploc":"und-alalc97","und-lojban":"und","und-nynorsk":"und","und-saaho":"und","und-xiang":"und",unp:"wro",uok:"ema",urd:"ur",uzb:"uz",uzn:"uz",ven:"ve",vie:"vi",vol:"vo",wel:"cy",wgw:"wgb",wit:"nol",wiw:"nwo",wln:"wa",wol:"wo",xba:"cax",xho:"xh",xia:"acn",xkh:"waw",xpe:"kpe",xrq:"dmw",xsj:"suj",xsl:"den",ybd:"rki",ydd:"yi",yen:"ynq",yid:"yi",yiy:"yrm",yma:"lrr",ymt:"mtm",yor:"yo",yos:"zom",yuu:"yug",zai:"zap","zh-cmn":"zh","zh-cmn-Hans":"zh-Hans","zh-cmn-Hant":"zh-Hant","zh-gan":"gan","zh-guoyu":"zh","zh-hakka":"hak","zh-min":"nan-x-zh-min","zh-min-nan":"nan","zh-wuu":"wuu","zh-xiang":"hsn","zh-yue":"yue",zha:"za",zho:"zh",zir:"scv",zsm:"ms",zul:"zu",zyb:"za"},t.territoryAlias={100:"BG",104:"MM",108:"BI",112:"BY",116:"KH",120:"CM",124:"CA",132:"CV",136:"KY",140:"CF",144:"LK",148:"TD",152:"CL",156:"CN",158:"TW",162:"CX",166:"CC",170:"CO",172:"RU AM AZ BY GE KG KZ MD TJ TM UA UZ",174:"KM",175:"YT",178:"CG",180:"CD",184:"CK",188:"CR",191:"HR",192:"CU",196:"CY",200:"CZ SK",203:"CZ",204:"BJ",208:"DK",212:"DM",214:"DO",218:"EC",222:"SV",226:"GQ",230:"ET",231:"ET",232:"ER",233:"EE",234:"FO",238:"FK",239:"GS",242:"FJ",246:"FI",248:"AX",249:"FR",250:"FR",254:"GF",258:"PF",260:"TF",262:"DJ",266:"GA",268:"GE",270:"GM",275:"PS",276:"DE",278:"DE",280:"DE",288:"GH",292:"GI",296:"KI",300:"GR",304:"GL",308:"GD",312:"GP",316:"GU",320:"GT",324:"GN",328:"GY",332:"HT",334:"HM",336:"VA",340:"HN",344:"HK",348:"HU",352:"IS",356:"IN",360:"ID",364:"IR",368:"IQ",372:"IE",376:"IL",380:"IT",384:"CI",388:"JM",392:"JP",398:"KZ",400:"JO",404:"KE",408:"KP",410:"KR",414:"KW",417:"KG",418:"LA",422:"LB",426:"LS",428:"LV",430:"LR",434:"LY",438:"LI",440:"LT",442:"LU",446:"MO",450:"MG",454:"MW",458:"MY",462:"MV",466:"ML",470:"MT",474:"MQ",478:"MR",480:"MU",484:"MX",492:"MC",496:"MN",498:"MD",499:"ME",500:"MS",504:"MA",508:"MZ",512:"OM",516:"NA",520:"NR",524:"NP",528:"NL",530:"CW SX BQ",531:"CW",532:"CW SX BQ",533:"AW",534:"SX",535:"BQ",536:"SA IQ",540:"NC",548:"VU",554:"NZ",558:"NI",562:"NE",566:"NG",570:"NU",574:"NF",578:"NO",580:"MP",581:"UM",582:"FM MH MP PW",583:"FM",584:"MH",585:"PW",586:"PK",591:"PA",598:"PG",600:"PY",604:"PE",608:"PH",612:"PN",616:"PL",620:"PT",624:"GW",626:"TL",630:"PR",634:"QA",638:"RE",642:"RO",643:"RU",646:"RW",652:"BL",654:"SH",659:"KN",660:"AI",662:"LC",663:"MF",666:"PM",670:"VC",674:"SM",678:"ST",682:"SA",686:"SN",688:"RS",690:"SC",694:"SL",702:"SG",703:"SK",704:"VN",705:"SI",706:"SO",710:"ZA",716:"ZW",720:"YE",724:"ES",728:"SS",729:"SD",732:"EH",736:"SD",740:"SR",744:"SJ",748:"SZ",752:"SE",756:"CH",760:"SY",762:"TJ",764:"TH",768:"TG",772:"TK",776:"TO",780:"TT",784:"AE",788:"TN",792:"TR",795:"TM",796:"TC",798:"TV",800:"UG",804:"UA",807:"MK",810:"RU AM AZ BY EE GE KZ KG LV LT MD TJ TM UA UZ",818:"EG",826:"GB",830:"JE GG",831:"GG",832:"JE",833:"IM",834:"TZ",840:"US",850:"VI",854:"BF",858:"UY",860:"UZ",862:"VE",876:"WF",882:"WS",886:"YE",887:"YE",890:"RS ME SI HR MK BA",891:"RS ME",894:"ZM",958:"AA",959:"QM",960:"QN",962:"QP",963:"QQ",964:"QR",965:"QS",966:"QT",967:"EU",968:"QV",969:"QW",970:"QX",971:"QY",972:"QZ",973:"XA",974:"XB",975:"XC",976:"XD",977:"XE",978:"XF",979:"XG",980:"XH",981:"XI",982:"XJ",983:"XK",984:"XL",985:"XM",986:"XN",987:"XO",988:"XP",989:"XQ",990:"XR",991:"XS",992:"XT",993:"XU",994:"XV",995:"XW",996:"XX",997:"XY",998:"XZ",999:"ZZ","004":"AF","008":"AL","010":"AQ","012":"DZ","016":"AS","020":"AD","024":"AO","028":"AG","031":"AZ","032":"AR","036":"AU","040":"AT","044":"BS","048":"BH","050":"BD","051":"AM","052":"BB","056":"BE","060":"BM","062":"034 143","064":"BT","068":"BO","070":"BA","072":"BW","074":"BV","076":"BR","084":"BZ","086":"IO","090":"SB","092":"VG","096":"BN",AAA:"AA",ABW:"AW",AFG:"AF",AGO:"AO",AIA:"AI",ALA:"AX",ALB:"AL",AN:"CW SX BQ",AND:"AD",ANT:"CW SX BQ",ARE:"AE",ARG:"AR",ARM:"AM",ASC:"AC",ASM:"AS",ATA:"AQ",ATF:"TF",ATG:"AG",AUS:"AU",AUT:"AT",AZE:"AZ",BDI:"BI",BEL:"BE",BEN:"BJ",BES:"BQ",BFA:"BF",BGD:"BD",BGR:"BG",BHR:"BH",BHS:"BS",BIH:"BA",BLM:"BL",BLR:"BY",BLZ:"BZ",BMU:"BM",BOL:"BO",BRA:"BR",BRB:"BB",BRN:"BN",BTN:"BT",BU:"MM",BUR:"MM",BVT:"BV",BWA:"BW",CAF:"CF",CAN:"CA",CCK:"CC",CHE:"CH",CHL:"CL",CHN:"CN",CIV:"CI",CMR:"CM",COD:"CD",COG:"CG",COK:"CK",COL:"CO",COM:"KM",CPT:"CP",CPV:"CV",CRI:"CR",CS:"RS ME",CT:"KI",CUB:"CU",CUW:"CW",CXR:"CX",CYM:"KY",CYP:"CY",CZE:"CZ",DD:"DE",DDR:"DE",DEU:"DE",DGA:"DG",DJI:"DJ",DMA:"DM",DNK:"DK",DOM:"DO",DY:"BJ",DZA:"DZ",ECU:"EC",EGY:"EG",ERI:"ER",ESH:"EH",ESP:"ES",EST:"EE",ETH:"ET",FIN:"FI",FJI:"FJ",FLK:"FK",FQ:"AQ TF",FRA:"FR",FRO:"FO",FSM:"FM",FX:"FR",FXX:"FR",GAB:"GA",GBR:"GB",GEO:"GE",GGY:"GG",GHA:"GH",GIB:"GI",GIN:"GN",GLP:"GP",GMB:"GM",GNB:"GW",GNQ:"GQ",GRC:"GR",GRD:"GD",GRL:"GL",GTM:"GT",GUF:"GF",GUM:"GU",GUY:"GY",HKG:"HK",HMD:"HM",HND:"HN",HRV:"HR",HTI:"HT",HUN:"HU",HV:"BF",IDN:"ID",IMN:"IM",IND:"IN",IOT:"IO",IRL:"IE",IRN:"IR",IRQ:"IQ",ISL:"IS",ISR:"IL",ITA:"IT",JAM:"JM",JEY:"JE",JOR:"JO",JPN:"JP",JT:"UM",KAZ:"KZ",KEN:"KE",KGZ:"KG",KHM:"KH",KIR:"KI",KNA:"KN",KOR:"KR",KWT:"KW",LAO:"LA",LBN:"LB",LBR:"LR",LBY:"LY",LCA:"LC",LIE:"LI",LKA:"LK",LSO:"LS",LTU:"LT",LUX:"LU",LVA:"LV",MAC:"MO",MAF:"MF",MAR:"MA",MCO:"MC",MDA:"MD",MDG:"MG",MDV:"MV",MEX:"MX",MHL:"MH",MI:"UM",MKD:"MK",MLI:"ML",MLT:"MT",MMR:"MM",MNE:"ME",MNG:"MN",MNP:"MP",MOZ:"MZ",MRT:"MR",MSR:"MS",MTQ:"MQ",MUS:"MU",MWI:"MW",MYS:"MY",MYT:"YT",NAM:"NA",NCL:"NC",NER:"NE",NFK:"NF",NGA:"NG",NH:"VU",NIC:"NI",NIU:"NU",NLD:"NL",NOR:"NO",NPL:"NP",NQ:"AQ",NRU:"NR",NT:"SA IQ",NTZ:"SA IQ",NZL:"NZ",OMN:"OM",PAK:"PK",PAN:"PA",PC:"FM MH MP PW",PCN:"PN",PER:"PE",PHL:"PH",PLW:"PW",PNG:"PG",POL:"PL",PRI:"PR",PRK:"KP",PRT:"PT",PRY:"PY",PSE:"PS",PU:"UM",PYF:"PF",PZ:"PA",QAT:"QA",QMM:"QM",QNN:"QN",QPP:"QP",QQQ:"QQ",QRR:"QR",QSS:"QS",QTT:"QT",QU:"EU",QUU:"EU",QVV:"QV",QWW:"QW",QXX:"QX",QYY:"QY",QZZ:"QZ",REU:"RE",RH:"ZW",ROU:"RO",RUS:"RU",RWA:"RW",SAU:"SA",SCG:"RS ME",SDN:"SD",SEN:"SN",SGP:"SG",SGS:"GS",SHN:"SH",SJM:"SJ",SLB:"SB",SLE:"SL",SLV:"SV",SMR:"SM",SOM:"SO",SPM:"PM",SRB:"RS",SSD:"SS",STP:"ST",SU:"RU AM AZ BY EE GE KZ KG LV LT MD TJ TM UA UZ",SUN:"RU AM AZ BY EE GE KZ KG LV LT MD TJ TM UA UZ",SUR:"SR",SVK:"SK",SVN:"SI",SWE:"SE",SWZ:"SZ",SXM:"SX",SYC:"SC",SYR:"SY",TAA:"TA",TCA:"TC",TCD:"TD",TGO:"TG",THA:"TH",TJK:"TJ",TKL:"TK",TKM:"TM",TLS:"TL",TMP:"TL",TON:"TO",TP:"TL",TTO:"TT",TUN:"TN",TUR:"TR",TUV:"TV",TWN:"TW",TZA:"TZ",UGA:"UG",UK:"GB",UKR:"UA",UMI:"UM",URY:"UY",USA:"US",UZB:"UZ",VAT:"VA",VCT:"VC",VD:"VN",VEN:"VE",VGB:"VG",VIR:"VI",VNM:"VN",VUT:"VU",WK:"UM",WLF:"WF",WSM:"WS",XAA:"XA",XBB:"XB",XCC:"XC",XDD:"XD",XEE:"XE",XFF:"XF",XGG:"XG",XHH:"XH",XII:"XI",XJJ:"XJ",XKK:"XK",XLL:"XL",XMM:"XM",XNN:"XN",XOO:"XO",XPP:"XP",XQQ:"XQ",XRR:"XR",XSS:"XS",XTT:"XT",XUU:"XU",XVV:"XV",XWW:"XW",XXX:"XX",XYY:"XY",XZZ:"XZ",YD:"YE",YEM:"YE",YMD:"YE",YU:"RS ME",YUG:"RS ME",ZAF:"ZA",ZAR:"CD",ZMB:"ZM",ZR:"CD",ZWE:"ZW",ZZZ:"ZZ"},t.scriptAlias={Qaai:"Zinh"},t.variantAlias={heploc:"alalc97",polytoni:"polyton"}},51520:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canonicalizeUnicodeLocaleId=t.canonicalizeUnicodeLanguageId=void 0;var n=r(97582),i=r(86865),o=r(24773),a=r(37376),s=r(18213);function c(e){for(var t={},r=[],n=0,i=e;n<i.length;n++){var o=i[n];o[0]in t||(t[o[0]]=1,o[1]&&"true"!==o[1]?r.push([o[0].toLowerCase(),o[1].toLowerCase()]):r.push([o[0].toLowerCase()]))}return r.sort(l)}function l(e,t){return e[0]<t[0]?-1:e[0]>t[0]?1:0}function u(e,t){return e.type<t.type?-1:e.type>t.type?1:0}function d(e,t){for(var r=(0,n.__spreadArray)([],e,!0),i=0,o=t;i<o.length;i++){var a=o[i];e.indexOf(a)<0&&r.push(a)}return r}function p(e){var t=e;if(e.variants.length)for(var r="",n=0,c=e.variants;n<c.length;n++){var l=c[n];if(r=i.languageAlias[(0,s.emitUnicodeLanguageId)({lang:e.lang,variants:[l]})]){t={lang:(h=(0,o.parseUnicodeLanguageId)(r.split(o.SEPARATOR))).lang,script:t.script||h.script,region:t.region||h.region,variants:d(t.variants,h.variants)};break}}if(t.script&&t.region){var u=i.languageAlias[(0,s.emitUnicodeLanguageId)({lang:t.lang,script:t.script,region:t.region,variants:[]})];u&&(t={lang:(h=(0,o.parseUnicodeLanguageId)(u.split(o.SEPARATOR))).lang,script:h.script,region:h.region,variants:t.variants})}if(t.region){var p=i.languageAlias[(0,s.emitUnicodeLanguageId)({lang:t.lang,region:t.region,variants:[]})];p&&(t={lang:(h=(0,o.parseUnicodeLanguageId)(p.split(o.SEPARATOR))).lang,script:t.script||h.script,region:h.region,variants:t.variants})}var h,f=i.languageAlias[(0,s.emitUnicodeLanguageId)({lang:t.lang,variants:[]})];if(f&&(t={lang:(h=(0,o.parseUnicodeLanguageId)(f.split(o.SEPARATOR))).lang,script:t.script||h.script,region:t.region||h.region,variants:t.variants}),t.region){var m=t.region.toUpperCase(),g=i.territoryAlias[m],v=void 0;if(g){var y=g.split(" ");v=y[0];var b=a.likelySubtags[(0,s.emitUnicodeLanguageId)({lang:t.lang,script:t.script,variants:[]})];if(b){var _=(0,o.parseUnicodeLanguageId)(b.split(o.SEPARATOR)).region;_&&y.indexOf(_)>-1&&(v=_)}}v&&(t.region=v),t.region=t.region.toUpperCase()}if(t.script&&(t.script=t.script[0].toUpperCase()+t.script.slice(1).toLowerCase(),i.scriptAlias[t.script]&&(t.script=i.scriptAlias[t.script])),t.variants.length){for(var E=0;E<t.variants.length;E++)if(l=t.variants[E].toLowerCase(),i.variantAlias[l]){var w=i.variantAlias[l];(0,o.isUnicodeVariantSubtag)(w)?t.variants[E]=w:(0,o.isUnicodeLanguageSubtag)(w)&&(t.lang=w)}t.variants.sort()}return t}t.canonicalizeUnicodeLanguageId=p,t.canonicalizeUnicodeLocaleId=function(e){if(e.lang=p(e.lang),e.extensions){for(var t=0,r=e.extensions;t<r.length;t++){var n=r[t];switch(n.type){case"u":n.keywords=c(n.keywords),n.attributes&&(n.attributes=(i=n.attributes,Object.keys(i.reduce((function(e,t){return e[t.toLowerCase()]=1,e}),{})).sort()));break;case"t":n.lang&&(n.lang=p(n.lang)),n.fields=c(n.fields);break;default:n.value=n.value.toLowerCase()}}e.extensions.sort(u)}var i;return e}},18213:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.emitUnicodeLocaleId=t.emitUnicodeLanguageId=void 0;var n=r(97582);function i(e){return e?(0,n.__spreadArray)([e.lang,e.script,e.region],e.variants||[],!0).filter(Boolean).join("-"):""}t.emitUnicodeLanguageId=i,t.emitUnicodeLocaleId=function(e){for(var t=e.lang,r=e.extensions,o=[i(t)],a=0,s=r;a<s.length;a++){var c=s[a];switch(o.push(c.type),c.type){case"u":o.push.apply(o,(0,n.__spreadArray)((0,n.__spreadArray)([],c.attributes,!1),c.keywords.reduce((function(e,t){return e.concat(t)}),[]),!1));break;case"t":o.push.apply(o,(0,n.__spreadArray)([i(c.lang)],c.fields.reduce((function(e,t){return e.concat(t)}),[]),!1));break;default:o.push(c.value)}}return o.filter(Boolean).join("-")}},37376:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.likelySubtags=void 0,t.likelySubtags={aa:"aa-Latn-ET",aai:"aai-Latn-ZZ",aak:"aak-Latn-ZZ",aau:"aau-Latn-ZZ",ab:"ab-Cyrl-GE",abi:"abi-Latn-ZZ",abq:"abq-Cyrl-ZZ",abr:"abr-Latn-GH",abt:"abt-Latn-ZZ",aby:"aby-Latn-ZZ",acd:"acd-Latn-ZZ",ace:"ace-Latn-ID",ach:"ach-Latn-UG",ada:"ada-Latn-GH",ade:"ade-Latn-ZZ",adj:"adj-Latn-ZZ",adp:"adp-Tibt-BT",ady:"ady-Cyrl-RU",adz:"adz-Latn-ZZ",ae:"ae-Avst-IR",aeb:"aeb-Arab-TN",aey:"aey-Latn-ZZ",af:"af-Latn-ZA",agc:"agc-Latn-ZZ",agd:"agd-Latn-ZZ",agg:"agg-Latn-ZZ",agm:"agm-Latn-ZZ",ago:"ago-Latn-ZZ",agq:"agq-Latn-CM",aha:"aha-Latn-ZZ",ahl:"ahl-Latn-ZZ",aho:"aho-Ahom-IN",ajg:"ajg-Latn-ZZ",ak:"ak-Latn-GH",akk:"akk-Xsux-IQ",ala:"ala-Latn-ZZ",ali:"ali-Latn-ZZ",aln:"aln-Latn-XK",alt:"alt-Cyrl-RU",am:"am-Ethi-ET",amm:"amm-Latn-ZZ",amn:"amn-Latn-ZZ",amo:"amo-Latn-NG",amp:"amp-Latn-ZZ",an:"an-Latn-ES",anc:"anc-Latn-ZZ",ank:"ank-Latn-ZZ",ann:"ann-Latn-ZZ",any:"any-Latn-ZZ",aoj:"aoj-Latn-ZZ",aom:"aom-Latn-ZZ",aoz:"aoz-Latn-ID",apc:"apc-Arab-ZZ",apd:"apd-Arab-TG",ape:"ape-Latn-ZZ",apr:"apr-Latn-ZZ",aps:"aps-Latn-ZZ",apz:"apz-Latn-ZZ",ar:"ar-Arab-EG",arc:"arc-Armi-IR","arc-Nbat":"arc-Nbat-JO","arc-Palm":"arc-Palm-SY",arh:"arh-Latn-ZZ",arn:"arn-Latn-CL",aro:"aro-Latn-BO",arq:"arq-Arab-DZ",ars:"ars-Arab-SA",ary:"ary-Arab-MA",arz:"arz-Arab-EG",as:"as-Beng-IN",asa:"asa-Latn-TZ",ase:"ase-Sgnw-US",asg:"asg-Latn-ZZ",aso:"aso-Latn-ZZ",ast:"ast-Latn-ES",ata:"ata-Latn-ZZ",atg:"atg-Latn-ZZ",atj:"atj-Latn-CA",auy:"auy-Latn-ZZ",av:"av-Cyrl-RU",avl:"avl-Arab-ZZ",avn:"avn-Latn-ZZ",avt:"avt-Latn-ZZ",avu:"avu-Latn-ZZ",awa:"awa-Deva-IN",awb:"awb-Latn-ZZ",awo:"awo-Latn-ZZ",awx:"awx-Latn-ZZ",ay:"ay-Latn-BO",ayb:"ayb-Latn-ZZ",az:"az-Latn-AZ","az-Arab":"az-Arab-IR","az-IQ":"az-Arab-IQ","az-IR":"az-Arab-IR","az-RU":"az-Cyrl-RU",ba:"ba-Cyrl-RU",bal:"bal-Arab-PK",ban:"ban-Latn-ID",bap:"bap-Deva-NP",bar:"bar-Latn-AT",bas:"bas-Latn-CM",bav:"bav-Latn-ZZ",bax:"bax-Bamu-CM",bba:"bba-Latn-ZZ",bbb:"bbb-Latn-ZZ",bbc:"bbc-Latn-ID",bbd:"bbd-Latn-ZZ",bbj:"bbj-Latn-CM",bbp:"bbp-Latn-ZZ",bbr:"bbr-Latn-ZZ",bcf:"bcf-Latn-ZZ",bch:"bch-Latn-ZZ",bci:"bci-Latn-CI",bcm:"bcm-Latn-ZZ",bcn:"bcn-Latn-ZZ",bco:"bco-Latn-ZZ",bcq:"bcq-Ethi-ZZ",bcu:"bcu-Latn-ZZ",bdd:"bdd-Latn-ZZ",be:"be-Cyrl-BY",bef:"bef-Latn-ZZ",beh:"beh-Latn-ZZ",bej:"bej-Arab-SD",bem:"bem-Latn-ZM",bet:"bet-Latn-ZZ",bew:"bew-Latn-ID",bex:"bex-Latn-ZZ",bez:"bez-Latn-TZ",bfd:"bfd-Latn-CM",bfq:"bfq-Taml-IN",bft:"bft-Arab-PK",bfy:"bfy-Deva-IN",bg:"bg-Cyrl-BG",bgc:"bgc-Deva-IN",bgn:"bgn-Arab-PK",bgx:"bgx-Grek-TR",bhb:"bhb-Deva-IN",bhg:"bhg-Latn-ZZ",bhi:"bhi-Deva-IN",bhl:"bhl-Latn-ZZ",bho:"bho-Deva-IN",bhy:"bhy-Latn-ZZ",bi:"bi-Latn-VU",bib:"bib-Latn-ZZ",big:"big-Latn-ZZ",bik:"bik-Latn-PH",bim:"bim-Latn-ZZ",bin:"bin-Latn-NG",bio:"bio-Latn-ZZ",biq:"biq-Latn-ZZ",bjh:"bjh-Latn-ZZ",bji:"bji-Ethi-ZZ",bjj:"bjj-Deva-IN",bjn:"bjn-Latn-ID",bjo:"bjo-Latn-ZZ",bjr:"bjr-Latn-ZZ",bjt:"bjt-Latn-SN",bjz:"bjz-Latn-ZZ",bkc:"bkc-Latn-ZZ",bkm:"bkm-Latn-CM",bkq:"bkq-Latn-ZZ",bku:"bku-Latn-PH",bkv:"bkv-Latn-ZZ",blt:"blt-Tavt-VN",bm:"bm-Latn-ML",bmh:"bmh-Latn-ZZ",bmk:"bmk-Latn-ZZ",bmq:"bmq-Latn-ML",bmu:"bmu-Latn-ZZ",bn:"bn-Beng-BD",bng:"bng-Latn-ZZ",bnm:"bnm-Latn-ZZ",bnp:"bnp-Latn-ZZ",bo:"bo-Tibt-CN",boj:"boj-Latn-ZZ",bom:"bom-Latn-ZZ",bon:"bon-Latn-ZZ",bpy:"bpy-Beng-IN",bqc:"bqc-Latn-ZZ",bqi:"bqi-Arab-IR",bqp:"bqp-Latn-ZZ",bqv:"bqv-Latn-CI",br:"br-Latn-FR",bra:"bra-Deva-IN",brh:"brh-Arab-PK",brx:"brx-Deva-IN",brz:"brz-Latn-ZZ",bs:"bs-Latn-BA",bsj:"bsj-Latn-ZZ",bsq:"bsq-Bass-LR",bss:"bss-Latn-CM",bst:"bst-Ethi-ZZ",bto:"bto-Latn-PH",btt:"btt-Latn-ZZ",btv:"btv-Deva-PK",bua:"bua-Cyrl-RU",buc:"buc-Latn-YT",bud:"bud-Latn-ZZ",bug:"bug-Latn-ID",buk:"buk-Latn-ZZ",bum:"bum-Latn-CM",buo:"buo-Latn-ZZ",bus:"bus-Latn-ZZ",buu:"buu-Latn-ZZ",bvb:"bvb-Latn-GQ",bwd:"bwd-Latn-ZZ",bwr:"bwr-Latn-ZZ",bxh:"bxh-Latn-ZZ",bye:"bye-Latn-ZZ",byn:"byn-Ethi-ER",byr:"byr-Latn-ZZ",bys:"bys-Latn-ZZ",byv:"byv-Latn-CM",byx:"byx-Latn-ZZ",bza:"bza-Latn-ZZ",bze:"bze-Latn-ML",bzf:"bzf-Latn-ZZ",bzh:"bzh-Latn-ZZ",bzw:"bzw-Latn-ZZ",ca:"ca-Latn-ES",cad:"cad-Latn-US",can:"can-Latn-ZZ",cbj:"cbj-Latn-ZZ",cch:"cch-Latn-NG",ccp:"ccp-Cakm-BD",ce:"ce-Cyrl-RU",ceb:"ceb-Latn-PH",cfa:"cfa-Latn-ZZ",cgg:"cgg-Latn-UG",ch:"ch-Latn-GU",chk:"chk-Latn-FM",chm:"chm-Cyrl-RU",cho:"cho-Latn-US",chp:"chp-Latn-CA",chr:"chr-Cher-US",cic:"cic-Latn-US",cja:"cja-Arab-KH",cjm:"cjm-Cham-VN",cjv:"cjv-Latn-ZZ",ckb:"ckb-Arab-IQ",ckl:"ckl-Latn-ZZ",cko:"cko-Latn-ZZ",cky:"cky-Latn-ZZ",cla:"cla-Latn-ZZ",cme:"cme-Latn-ZZ",cmg:"cmg-Soyo-MN",co:"co-Latn-FR",cop:"cop-Copt-EG",cps:"cps-Latn-PH",cr:"cr-Cans-CA",crh:"crh-Cyrl-UA",crj:"crj-Cans-CA",crk:"crk-Cans-CA",crl:"crl-Cans-CA",crm:"crm-Cans-CA",crs:"crs-Latn-SC",cs:"cs-Latn-CZ",csb:"csb-Latn-PL",csw:"csw-Cans-CA",ctd:"ctd-Pauc-MM",cu:"cu-Cyrl-RU","cu-Glag":"cu-Glag-BG",cv:"cv-Cyrl-RU",cy:"cy-Latn-GB",da:"da-Latn-DK",dad:"dad-Latn-ZZ",daf:"daf-Latn-CI",dag:"dag-Latn-ZZ",dah:"dah-Latn-ZZ",dak:"dak-Latn-US",dar:"dar-Cyrl-RU",dav:"dav-Latn-KE",dbd:"dbd-Latn-ZZ",dbq:"dbq-Latn-ZZ",dcc:"dcc-Arab-IN",ddn:"ddn-Latn-ZZ",de:"de-Latn-DE",ded:"ded-Latn-ZZ",den:"den-Latn-CA",dga:"dga-Latn-ZZ",dgh:"dgh-Latn-ZZ",dgi:"dgi-Latn-ZZ",dgl:"dgl-Arab-ZZ",dgr:"dgr-Latn-CA",dgz:"dgz-Latn-ZZ",dia:"dia-Latn-ZZ",dje:"dje-Latn-NE",dmf:"dmf-Medf-NG",dnj:"dnj-Latn-CI",dob:"dob-Latn-ZZ",doi:"doi-Deva-IN",dop:"dop-Latn-ZZ",dow:"dow-Latn-ZZ",drh:"drh-Mong-CN",dri:"dri-Latn-ZZ",drs:"drs-Ethi-ZZ",dsb:"dsb-Latn-DE",dtm:"dtm-Latn-ML",dtp:"dtp-Latn-MY",dts:"dts-Latn-ZZ",dty:"dty-Deva-NP",dua:"dua-Latn-CM",duc:"duc-Latn-ZZ",dud:"dud-Latn-ZZ",dug:"dug-Latn-ZZ",dv:"dv-Thaa-MV",dva:"dva-Latn-ZZ",dww:"dww-Latn-ZZ",dyo:"dyo-Latn-SN",dyu:"dyu-Latn-BF",dz:"dz-Tibt-BT",dzg:"dzg-Latn-ZZ",ebu:"ebu-Latn-KE",ee:"ee-Latn-GH",efi:"efi-Latn-NG",egl:"egl-Latn-IT",egy:"egy-Egyp-EG",eka:"eka-Latn-ZZ",eky:"eky-Kali-MM",el:"el-Grek-GR",ema:"ema-Latn-ZZ",emi:"emi-Latn-ZZ",en:"en-Latn-US","en-Shaw":"en-Shaw-GB",enn:"enn-Latn-ZZ",enq:"enq-Latn-ZZ",eo:"eo-Latn-001",eri:"eri-Latn-ZZ",es:"es-Latn-ES",esg:"esg-Gonm-IN",esu:"esu-Latn-US",et:"et-Latn-EE",etr:"etr-Latn-ZZ",ett:"ett-Ital-IT",etu:"etu-Latn-ZZ",etx:"etx-Latn-ZZ",eu:"eu-Latn-ES",ewo:"ewo-Latn-CM",ext:"ext-Latn-ES",eza:"eza-Latn-ZZ",fa:"fa-Arab-IR",faa:"faa-Latn-ZZ",fab:"fab-Latn-ZZ",fag:"fag-Latn-ZZ",fai:"fai-Latn-ZZ",fan:"fan-Latn-GQ",ff:"ff-Latn-SN","ff-Adlm":"ff-Adlm-GN",ffi:"ffi-Latn-ZZ",ffm:"ffm-Latn-ML",fi:"fi-Latn-FI",fia:"fia-Arab-SD",fil:"fil-Latn-PH",fit:"fit-Latn-SE",fj:"fj-Latn-FJ",flr:"flr-Latn-ZZ",fmp:"fmp-Latn-ZZ",fo:"fo-Latn-FO",fod:"fod-Latn-ZZ",fon:"fon-Latn-BJ",for:"for-Latn-ZZ",fpe:"fpe-Latn-ZZ",fqs:"fqs-Latn-ZZ",fr:"fr-Latn-FR",frc:"frc-Latn-US",frp:"frp-Latn-FR",frr:"frr-Latn-DE",frs:"frs-Latn-DE",fub:"fub-Arab-CM",fud:"fud-Latn-WF",fue:"fue-Latn-ZZ",fuf:"fuf-Latn-GN",fuh:"fuh-Latn-ZZ",fuq:"fuq-Latn-NE",fur:"fur-Latn-IT",fuv:"fuv-Latn-NG",fuy:"fuy-Latn-ZZ",fvr:"fvr-Latn-SD",fy:"fy-Latn-NL",ga:"ga-Latn-IE",gaa:"gaa-Latn-GH",gaf:"gaf-Latn-ZZ",gag:"gag-Latn-MD",gah:"gah-Latn-ZZ",gaj:"gaj-Latn-ZZ",gam:"gam-Latn-ZZ",gan:"gan-Hans-CN",gaw:"gaw-Latn-ZZ",gay:"gay-Latn-ID",gba:"gba-Latn-ZZ",gbf:"gbf-Latn-ZZ",gbm:"gbm-Deva-IN",gby:"gby-Latn-ZZ",gbz:"gbz-Arab-IR",gcr:"gcr-Latn-GF",gd:"gd-Latn-GB",gde:"gde-Latn-ZZ",gdn:"gdn-Latn-ZZ",gdr:"gdr-Latn-ZZ",geb:"geb-Latn-ZZ",gej:"gej-Latn-ZZ",gel:"gel-Latn-ZZ",gez:"gez-Ethi-ET",gfk:"gfk-Latn-ZZ",ggn:"ggn-Deva-NP",ghs:"ghs-Latn-ZZ",gil:"gil-Latn-KI",gim:"gim-Latn-ZZ",gjk:"gjk-Arab-PK",gjn:"gjn-Latn-ZZ",gju:"gju-Arab-PK",gkn:"gkn-Latn-ZZ",gkp:"gkp-Latn-ZZ",gl:"gl-Latn-ES",glk:"glk-Arab-IR",gmm:"gmm-Latn-ZZ",gmv:"gmv-Ethi-ZZ",gn:"gn-Latn-PY",gnd:"gnd-Latn-ZZ",gng:"gng-Latn-ZZ",god:"god-Latn-ZZ",gof:"gof-Ethi-ZZ",goi:"goi-Latn-ZZ",gom:"gom-Deva-IN",gon:"gon-Telu-IN",gor:"gor-Latn-ID",gos:"gos-Latn-NL",got:"got-Goth-UA",grb:"grb-Latn-ZZ",grc:"grc-Cprt-CY","grc-Linb":"grc-Linb-GR",grt:"grt-Beng-IN",grw:"grw-Latn-ZZ",gsw:"gsw-Latn-CH",gu:"gu-Gujr-IN",gub:"gub-Latn-BR",guc:"guc-Latn-CO",gud:"gud-Latn-ZZ",gur:"gur-Latn-GH",guw:"guw-Latn-ZZ",gux:"gux-Latn-ZZ",guz:"guz-Latn-KE",gv:"gv-Latn-IM",gvf:"gvf-Latn-ZZ",gvr:"gvr-Deva-NP",gvs:"gvs-Latn-ZZ",gwc:"gwc-Arab-ZZ",gwi:"gwi-Latn-CA",gwt:"gwt-Arab-ZZ",gyi:"gyi-Latn-ZZ",ha:"ha-Latn-NG","ha-CM":"ha-Arab-CM","ha-SD":"ha-Arab-SD",hag:"hag-Latn-ZZ",hak:"hak-Hans-CN",ham:"ham-Latn-ZZ",haw:"haw-Latn-US",haz:"haz-Arab-AF",hbb:"hbb-Latn-ZZ",hdy:"hdy-Ethi-ZZ",he:"he-Hebr-IL",hhy:"hhy-Latn-ZZ",hi:"hi-Deva-IN",hia:"hia-Latn-ZZ",hif:"hif-Latn-FJ",hig:"hig-Latn-ZZ",hih:"hih-Latn-ZZ",hil:"hil-Latn-PH",hla:"hla-Latn-ZZ",hlu:"hlu-Hluw-TR",hmd:"hmd-Plrd-CN",hmt:"hmt-Latn-ZZ",hnd:"hnd-Arab-PK",hne:"hne-Deva-IN",hnj:"hnj-Hmng-LA",hnn:"hnn-Latn-PH",hno:"hno-Arab-PK",ho:"ho-Latn-PG",hoc:"hoc-Deva-IN",hoj:"hoj-Deva-IN",hot:"hot-Latn-ZZ",hr:"hr-Latn-HR",hsb:"hsb-Latn-DE",hsn:"hsn-Hans-CN",ht:"ht-Latn-HT",hu:"hu-Latn-HU",hui:"hui-Latn-ZZ",hy:"hy-Armn-AM",hz:"hz-Latn-NA",ia:"ia-Latn-001",ian:"ian-Latn-ZZ",iar:"iar-Latn-ZZ",iba:"iba-Latn-MY",ibb:"ibb-Latn-NG",iby:"iby-Latn-ZZ",ica:"ica-Latn-ZZ",ich:"ich-Latn-ZZ",id:"id-Latn-ID",idd:"idd-Latn-ZZ",idi:"idi-Latn-ZZ",idu:"idu-Latn-ZZ",ife:"ife-Latn-TG",ig:"ig-Latn-NG",igb:"igb-Latn-ZZ",ige:"ige-Latn-ZZ",ii:"ii-Yiii-CN",ijj:"ijj-Latn-ZZ",ik:"ik-Latn-US",ikk:"ikk-Latn-ZZ",ikt:"ikt-Latn-CA",ikw:"ikw-Latn-ZZ",ikx:"ikx-Latn-ZZ",ilo:"ilo-Latn-PH",imo:"imo-Latn-ZZ",in:"in-Latn-ID",inh:"inh-Cyrl-RU",io:"io-Latn-001",iou:"iou-Latn-ZZ",iri:"iri-Latn-ZZ",is:"is-Latn-IS",it:"it-Latn-IT",iu:"iu-Cans-CA",iw:"iw-Hebr-IL",iwm:"iwm-Latn-ZZ",iws:"iws-Latn-ZZ",izh:"izh-Latn-RU",izi:"izi-Latn-ZZ",ja:"ja-Jpan-JP",jab:"jab-Latn-ZZ",jam:"jam-Latn-JM",jar:"jar-Latn-ZZ",jbo:"jbo-Latn-001",jbu:"jbu-Latn-ZZ",jen:"jen-Latn-ZZ",jgk:"jgk-Latn-ZZ",jgo:"jgo-Latn-CM",ji:"ji-Hebr-UA",jib:"jib-Latn-ZZ",jmc:"jmc-Latn-TZ",jml:"jml-Deva-NP",jra:"jra-Latn-ZZ",jut:"jut-Latn-DK",jv:"jv-Latn-ID",jw:"jw-Latn-ID",ka:"ka-Geor-GE",kaa:"kaa-Cyrl-UZ",kab:"kab-Latn-DZ",kac:"kac-Latn-MM",kad:"kad-Latn-ZZ",kai:"kai-Latn-ZZ",kaj:"kaj-Latn-NG",kam:"kam-Latn-KE",kao:"kao-Latn-ML",kbd:"kbd-Cyrl-RU",kbm:"kbm-Latn-ZZ",kbp:"kbp-Latn-ZZ",kbq:"kbq-Latn-ZZ",kbx:"kbx-Latn-ZZ",kby:"kby-Arab-NE",kcg:"kcg-Latn-NG",kck:"kck-Latn-ZW",kcl:"kcl-Latn-ZZ",kct:"kct-Latn-ZZ",kde:"kde-Latn-TZ",kdh:"kdh-Arab-TG",kdl:"kdl-Latn-ZZ",kdt:"kdt-Thai-TH",kea:"kea-Latn-CV",ken:"ken-Latn-CM",kez:"kez-Latn-ZZ",kfo:"kfo-Latn-CI",kfr:"kfr-Deva-IN",kfy:"kfy-Deva-IN",kg:"kg-Latn-CD",kge:"kge-Latn-ID",kgf:"kgf-Latn-ZZ",kgp:"kgp-Latn-BR",kha:"kha-Latn-IN",khb:"khb-Talu-CN",khn:"khn-Deva-IN",khq:"khq-Latn-ML",khs:"khs-Latn-ZZ",kht:"kht-Mymr-IN",khw:"khw-Arab-PK",khz:"khz-Latn-ZZ",ki:"ki-Latn-KE",kij:"kij-Latn-ZZ",kiu:"kiu-Latn-TR",kiw:"kiw-Latn-ZZ",kj:"kj-Latn-NA",kjd:"kjd-Latn-ZZ",kjg:"kjg-Laoo-LA",kjs:"kjs-Latn-ZZ",kjy:"kjy-Latn-ZZ",kk:"kk-Cyrl-KZ","kk-AF":"kk-Arab-AF","kk-Arab":"kk-Arab-CN","kk-CN":"kk-Arab-CN","kk-IR":"kk-Arab-IR","kk-MN":"kk-Arab-MN",kkc:"kkc-Latn-ZZ",kkj:"kkj-Latn-CM",kl:"kl-Latn-GL",kln:"kln-Latn-KE",klq:"klq-Latn-ZZ",klt:"klt-Latn-ZZ",klx:"klx-Latn-ZZ",km:"km-Khmr-KH",kmb:"kmb-Latn-AO",kmh:"kmh-Latn-ZZ",kmo:"kmo-Latn-ZZ",kms:"kms-Latn-ZZ",kmu:"kmu-Latn-ZZ",kmw:"kmw-Latn-ZZ",kn:"kn-Knda-IN",knf:"knf-Latn-GW",knp:"knp-Latn-ZZ",ko:"ko-Kore-KR",koi:"koi-Cyrl-RU",kok:"kok-Deva-IN",kol:"kol-Latn-ZZ",kos:"kos-Latn-FM",koz:"koz-Latn-ZZ",kpe:"kpe-Latn-LR",kpf:"kpf-Latn-ZZ",kpo:"kpo-Latn-ZZ",kpr:"kpr-Latn-ZZ",kpx:"kpx-Latn-ZZ",kqb:"kqb-Latn-ZZ",kqf:"kqf-Latn-ZZ",kqs:"kqs-Latn-ZZ",kqy:"kqy-Ethi-ZZ",kr:"kr-Latn-ZZ",krc:"krc-Cyrl-RU",kri:"kri-Latn-SL",krj:"krj-Latn-PH",krl:"krl-Latn-RU",krs:"krs-Latn-ZZ",kru:"kru-Deva-IN",ks:"ks-Arab-IN",ksb:"ksb-Latn-TZ",ksd:"ksd-Latn-ZZ",ksf:"ksf-Latn-CM",ksh:"ksh-Latn-DE",ksj:"ksj-Latn-ZZ",ksr:"ksr-Latn-ZZ",ktb:"ktb-Ethi-ZZ",ktm:"ktm-Latn-ZZ",kto:"kto-Latn-ZZ",ktr:"ktr-Latn-MY",ku:"ku-Latn-TR","ku-Arab":"ku-Arab-IQ","ku-LB":"ku-Arab-LB","ku-Yezi":"ku-Yezi-GE",kub:"kub-Latn-ZZ",kud:"kud-Latn-ZZ",kue:"kue-Latn-ZZ",kuj:"kuj-Latn-ZZ",kum:"kum-Cyrl-RU",kun:"kun-Latn-ZZ",kup:"kup-Latn-ZZ",kus:"kus-Latn-ZZ",kv:"kv-Cyrl-RU",kvg:"kvg-Latn-ZZ",kvr:"kvr-Latn-ID",kvx:"kvx-Arab-PK",kw:"kw-Latn-GB",kwj:"kwj-Latn-ZZ",kwo:"kwo-Latn-ZZ",kwq:"kwq-Latn-ZZ",kxa:"kxa-Latn-ZZ",kxc:"kxc-Ethi-ZZ",kxe:"kxe-Latn-ZZ",kxl:"kxl-Deva-IN",kxm:"kxm-Thai-TH",kxp:"kxp-Arab-PK",kxw:"kxw-Latn-ZZ",kxz:"kxz-Latn-ZZ",ky:"ky-Cyrl-KG","ky-Arab":"ky-Arab-CN","ky-CN":"ky-Arab-CN","ky-Latn":"ky-Latn-TR","ky-TR":"ky-Latn-TR",kye:"kye-Latn-ZZ",kyx:"kyx-Latn-ZZ",kzh:"kzh-Arab-ZZ",kzj:"kzj-Latn-MY",kzr:"kzr-Latn-ZZ",kzt:"kzt-Latn-MY",la:"la-Latn-VA",lab:"lab-Lina-GR",lad:"lad-Hebr-IL",lag:"lag-Latn-TZ",lah:"lah-Arab-PK",laj:"laj-Latn-UG",las:"las-Latn-ZZ",lb:"lb-Latn-LU",lbe:"lbe-Cyrl-RU",lbu:"lbu-Latn-ZZ",lbw:"lbw-Latn-ID",lcm:"lcm-Latn-ZZ",lcp:"lcp-Thai-CN",ldb:"ldb-Latn-ZZ",led:"led-Latn-ZZ",lee:"lee-Latn-ZZ",lem:"lem-Latn-ZZ",lep:"lep-Lepc-IN",leq:"leq-Latn-ZZ",leu:"leu-Latn-ZZ",lez:"lez-Cyrl-RU",lg:"lg-Latn-UG",lgg:"lgg-Latn-ZZ",li:"li-Latn-NL",lia:"lia-Latn-ZZ",lid:"lid-Latn-ZZ",lif:"lif-Deva-NP","lif-Limb":"lif-Limb-IN",lig:"lig-Latn-ZZ",lih:"lih-Latn-ZZ",lij:"lij-Latn-IT",lis:"lis-Lisu-CN",ljp:"ljp-Latn-ID",lki:"lki-Arab-IR",lkt:"lkt-Latn-US",lle:"lle-Latn-ZZ",lln:"lln-Latn-ZZ",lmn:"lmn-Telu-IN",lmo:"lmo-Latn-IT",lmp:"lmp-Latn-ZZ",ln:"ln-Latn-CD",lns:"lns-Latn-ZZ",lnu:"lnu-Latn-ZZ",lo:"lo-Laoo-LA",loj:"loj-Latn-ZZ",lok:"lok-Latn-ZZ",lol:"lol-Latn-CD",lor:"lor-Latn-ZZ",los:"los-Latn-ZZ",loz:"loz-Latn-ZM",lrc:"lrc-Arab-IR",lt:"lt-Latn-LT",ltg:"ltg-Latn-LV",lu:"lu-Latn-CD",lua:"lua-Latn-CD",luo:"luo-Latn-KE",luy:"luy-Latn-KE",luz:"luz-Arab-IR",lv:"lv-Latn-LV",lwl:"lwl-Thai-TH",lzh:"lzh-Hans-CN",lzz:"lzz-Latn-TR",mad:"mad-Latn-ID",maf:"maf-Latn-CM",mag:"mag-Deva-IN",mai:"mai-Deva-IN",mak:"mak-Latn-ID",man:"man-Latn-GM","man-GN":"man-Nkoo-GN","man-Nkoo":"man-Nkoo-GN",mas:"mas-Latn-KE",maw:"maw-Latn-ZZ",maz:"maz-Latn-MX",mbh:"mbh-Latn-ZZ",mbo:"mbo-Latn-ZZ",mbq:"mbq-Latn-ZZ",mbu:"mbu-Latn-ZZ",mbw:"mbw-Latn-ZZ",mci:"mci-Latn-ZZ",mcp:"mcp-Latn-ZZ",mcq:"mcq-Latn-ZZ",mcr:"mcr-Latn-ZZ",mcu:"mcu-Latn-ZZ",mda:"mda-Latn-ZZ",mde:"mde-Arab-ZZ",mdf:"mdf-Cyrl-RU",mdh:"mdh-Latn-PH",mdj:"mdj-Latn-ZZ",mdr:"mdr-Latn-ID",mdx:"mdx-Ethi-ZZ",med:"med-Latn-ZZ",mee:"mee-Latn-ZZ",mek:"mek-Latn-ZZ",men:"men-Latn-SL",mer:"mer-Latn-KE",met:"met-Latn-ZZ",meu:"meu-Latn-ZZ",mfa:"mfa-Arab-TH",mfe:"mfe-Latn-MU",mfn:"mfn-Latn-ZZ",mfo:"mfo-Latn-ZZ",mfq:"mfq-Latn-ZZ",mg:"mg-Latn-MG",mgh:"mgh-Latn-MZ",mgl:"mgl-Latn-ZZ",mgo:"mgo-Latn-CM",mgp:"mgp-Deva-NP",mgy:"mgy-Latn-TZ",mh:"mh-Latn-MH",mhi:"mhi-Latn-ZZ",mhl:"mhl-Latn-ZZ",mi:"mi-Latn-NZ",mif:"mif-Latn-ZZ",min:"min-Latn-ID",miw:"miw-Latn-ZZ",mk:"mk-Cyrl-MK",mki:"mki-Arab-ZZ",mkl:"mkl-Latn-ZZ",mkp:"mkp-Latn-ZZ",mkw:"mkw-Latn-ZZ",ml:"ml-Mlym-IN",mle:"mle-Latn-ZZ",mlp:"mlp-Latn-ZZ",mls:"mls-Latn-SD",mmo:"mmo-Latn-ZZ",mmu:"mmu-Latn-ZZ",mmx:"mmx-Latn-ZZ",mn:"mn-Cyrl-MN","mn-CN":"mn-Mong-CN","mn-Mong":"mn-Mong-CN",mna:"mna-Latn-ZZ",mnf:"mnf-Latn-ZZ",mni:"mni-Beng-IN",mnw:"mnw-Mymr-MM",mo:"mo-Latn-RO",moa:"moa-Latn-ZZ",moe:"moe-Latn-CA",moh:"moh-Latn-CA",mos:"mos-Latn-BF",mox:"mox-Latn-ZZ",mpp:"mpp-Latn-ZZ",mps:"mps-Latn-ZZ",mpt:"mpt-Latn-ZZ",mpx:"mpx-Latn-ZZ",mql:"mql-Latn-ZZ",mr:"mr-Deva-IN",mrd:"mrd-Deva-NP",mrj:"mrj-Cyrl-RU",mro:"mro-Mroo-BD",ms:"ms-Latn-MY","ms-CC":"ms-Arab-CC",mt:"mt-Latn-MT",mtc:"mtc-Latn-ZZ",mtf:"mtf-Latn-ZZ",mti:"mti-Latn-ZZ",mtr:"mtr-Deva-IN",mua:"mua-Latn-CM",mur:"mur-Latn-ZZ",mus:"mus-Latn-US",mva:"mva-Latn-ZZ",mvn:"mvn-Latn-ZZ",mvy:"mvy-Arab-PK",mwk:"mwk-Latn-ML",mwr:"mwr-Deva-IN",mwv:"mwv-Latn-ID",mww:"mww-Hmnp-US",mxc:"mxc-Latn-ZW",mxm:"mxm-Latn-ZZ",my:"my-Mymr-MM",myk:"myk-Latn-ZZ",mym:"mym-Ethi-ZZ",myv:"myv-Cyrl-RU",myw:"myw-Latn-ZZ",myx:"myx-Latn-UG",myz:"myz-Mand-IR",mzk:"mzk-Latn-ZZ",mzm:"mzm-Latn-ZZ",mzn:"mzn-Arab-IR",mzp:"mzp-Latn-ZZ",mzw:"mzw-Latn-ZZ",mzz:"mzz-Latn-ZZ",na:"na-Latn-NR",nac:"nac-Latn-ZZ",naf:"naf-Latn-ZZ",nak:"nak-Latn-ZZ",nan:"nan-Hans-CN",nap:"nap-Latn-IT",naq:"naq-Latn-NA",nas:"nas-Latn-ZZ",nb:"nb-Latn-NO",nca:"nca-Latn-ZZ",nce:"nce-Latn-ZZ",ncf:"ncf-Latn-ZZ",nch:"nch-Latn-MX",nco:"nco-Latn-ZZ",ncu:"ncu-Latn-ZZ",nd:"nd-Latn-ZW",ndc:"ndc-Latn-MZ",nds:"nds-Latn-DE",ne:"ne-Deva-NP",neb:"neb-Latn-ZZ",new:"new-Deva-NP",nex:"nex-Latn-ZZ",nfr:"nfr-Latn-ZZ",ng:"ng-Latn-NA",nga:"nga-Latn-ZZ",ngb:"ngb-Latn-ZZ",ngl:"ngl-Latn-MZ",nhb:"nhb-Latn-ZZ",nhe:"nhe-Latn-MX",nhw:"nhw-Latn-MX",nif:"nif-Latn-ZZ",nii:"nii-Latn-ZZ",nij:"nij-Latn-ID",nin:"nin-Latn-ZZ",niu:"niu-Latn-NU",niy:"niy-Latn-ZZ",niz:"niz-Latn-ZZ",njo:"njo-Latn-IN",nkg:"nkg-Latn-ZZ",nko:"nko-Latn-ZZ",nl:"nl-Latn-NL",nmg:"nmg-Latn-CM",nmz:"nmz-Latn-ZZ",nn:"nn-Latn-NO",nnf:"nnf-Latn-ZZ",nnh:"nnh-Latn-CM",nnk:"nnk-Latn-ZZ",nnm:"nnm-Latn-ZZ",nnp:"nnp-Wcho-IN",no:"no-Latn-NO",nod:"nod-Lana-TH",noe:"noe-Deva-IN",non:"non-Runr-SE",nop:"nop-Latn-ZZ",nou:"nou-Latn-ZZ",nqo:"nqo-Nkoo-GN",nr:"nr-Latn-ZA",nrb:"nrb-Latn-ZZ",nsk:"nsk-Cans-CA",nsn:"nsn-Latn-ZZ",nso:"nso-Latn-ZA",nss:"nss-Latn-ZZ",ntm:"ntm-Latn-ZZ",ntr:"ntr-Latn-ZZ",nui:"nui-Latn-ZZ",nup:"nup-Latn-ZZ",nus:"nus-Latn-SS",nuv:"nuv-Latn-ZZ",nux:"nux-Latn-ZZ",nv:"nv-Latn-US",nwb:"nwb-Latn-ZZ",nxq:"nxq-Latn-CN",nxr:"nxr-Latn-ZZ",ny:"ny-Latn-MW",nym:"nym-Latn-TZ",nyn:"nyn-Latn-UG",nzi:"nzi-Latn-GH",oc:"oc-Latn-FR",ogc:"ogc-Latn-ZZ",okr:"okr-Latn-ZZ",okv:"okv-Latn-ZZ",om:"om-Latn-ET",ong:"ong-Latn-ZZ",onn:"onn-Latn-ZZ",ons:"ons-Latn-ZZ",opm:"opm-Latn-ZZ",or:"or-Orya-IN",oro:"oro-Latn-ZZ",oru:"oru-Arab-ZZ",os:"os-Cyrl-GE",osa:"osa-Osge-US",ota:"ota-Arab-ZZ",otk:"otk-Orkh-MN",ozm:"ozm-Latn-ZZ",pa:"pa-Guru-IN","pa-Arab":"pa-Arab-PK","pa-PK":"pa-Arab-PK",pag:"pag-Latn-PH",pal:"pal-Phli-IR","pal-Phlp":"pal-Phlp-CN",pam:"pam-Latn-PH",pap:"pap-Latn-AW",pau:"pau-Latn-PW",pbi:"pbi-Latn-ZZ",pcd:"pcd-Latn-FR",pcm:"pcm-Latn-NG",pdc:"pdc-Latn-US",pdt:"pdt-Latn-CA",ped:"ped-Latn-ZZ",peo:"peo-Xpeo-IR",pex:"pex-Latn-ZZ",pfl:"pfl-Latn-DE",phl:"phl-Arab-ZZ",phn:"phn-Phnx-LB",pil:"pil-Latn-ZZ",pip:"pip-Latn-ZZ",pka:"pka-Brah-IN",pko:"pko-Latn-KE",pl:"pl-Latn-PL",pla:"pla-Latn-ZZ",pms:"pms-Latn-IT",png:"png-Latn-ZZ",pnn:"pnn-Latn-ZZ",pnt:"pnt-Grek-GR",pon:"pon-Latn-FM",ppa:"ppa-Deva-IN",ppo:"ppo-Latn-ZZ",pra:"pra-Khar-PK",prd:"prd-Arab-IR",prg:"prg-Latn-001",ps:"ps-Arab-AF",pss:"pss-Latn-ZZ",pt:"pt-Latn-BR",ptp:"ptp-Latn-ZZ",puu:"puu-Latn-GA",pwa:"pwa-Latn-ZZ",qu:"qu-Latn-PE",quc:"quc-Latn-GT",qug:"qug-Latn-EC",rai:"rai-Latn-ZZ",raj:"raj-Deva-IN",rao:"rao-Latn-ZZ",rcf:"rcf-Latn-RE",rej:"rej-Latn-ID",rel:"rel-Latn-ZZ",res:"res-Latn-ZZ",rgn:"rgn-Latn-IT",rhg:"rhg-Arab-MM",ria:"ria-Latn-IN",rif:"rif-Tfng-MA","rif-NL":"rif-Latn-NL",rjs:"rjs-Deva-NP",rkt:"rkt-Beng-BD",rm:"rm-Latn-CH",rmf:"rmf-Latn-FI",rmo:"rmo-Latn-CH",rmt:"rmt-Arab-IR",rmu:"rmu-Latn-SE",rn:"rn-Latn-BI",rna:"rna-Latn-ZZ",rng:"rng-Latn-MZ",ro:"ro-Latn-RO",rob:"rob-Latn-ID",rof:"rof-Latn-TZ",roo:"roo-Latn-ZZ",rro:"rro-Latn-ZZ",rtm:"rtm-Latn-FJ",ru:"ru-Cyrl-RU",rue:"rue-Cyrl-UA",rug:"rug-Latn-SB",rw:"rw-Latn-RW",rwk:"rwk-Latn-TZ",rwo:"rwo-Latn-ZZ",ryu:"ryu-Kana-JP",sa:"sa-Deva-IN",saf:"saf-Latn-GH",sah:"sah-Cyrl-RU",saq:"saq-Latn-KE",sas:"sas-Latn-ID",sat:"sat-Olck-IN",sav:"sav-Latn-SN",saz:"saz-Saur-IN",sba:"sba-Latn-ZZ",sbe:"sbe-Latn-ZZ",sbp:"sbp-Latn-TZ",sc:"sc-Latn-IT",sck:"sck-Deva-IN",scl:"scl-Arab-ZZ",scn:"scn-Latn-IT",sco:"sco-Latn-GB",scs:"scs-Latn-CA",sd:"sd-Arab-PK","sd-Deva":"sd-Deva-IN","sd-Khoj":"sd-Khoj-IN","sd-Sind":"sd-Sind-IN",sdc:"sdc-Latn-IT",sdh:"sdh-Arab-IR",se:"se-Latn-NO",sef:"sef-Latn-CI",seh:"seh-Latn-MZ",sei:"sei-Latn-MX",ses:"ses-Latn-ML",sg:"sg-Latn-CF",sga:"sga-Ogam-IE",sgs:"sgs-Latn-LT",sgw:"sgw-Ethi-ZZ",sgz:"sgz-Latn-ZZ",shi:"shi-Tfng-MA",shk:"shk-Latn-ZZ",shn:"shn-Mymr-MM",shu:"shu-Arab-ZZ",si:"si-Sinh-LK",sid:"sid-Latn-ET",sig:"sig-Latn-ZZ",sil:"sil-Latn-ZZ",sim:"sim-Latn-ZZ",sjr:"sjr-Latn-ZZ",sk:"sk-Latn-SK",skc:"skc-Latn-ZZ",skr:"skr-Arab-PK",sks:"sks-Latn-ZZ",sl:"sl-Latn-SI",sld:"sld-Latn-ZZ",sli:"sli-Latn-PL",sll:"sll-Latn-ZZ",sly:"sly-Latn-ID",sm:"sm-Latn-WS",sma:"sma-Latn-SE",smj:"smj-Latn-SE",smn:"smn-Latn-FI",smp:"smp-Samr-IL",smq:"smq-Latn-ZZ",sms:"sms-Latn-FI",sn:"sn-Latn-ZW",snc:"snc-Latn-ZZ",snk:"snk-Latn-ML",snp:"snp-Latn-ZZ",snx:"snx-Latn-ZZ",sny:"sny-Latn-ZZ",so:"so-Latn-SO",sog:"sog-Sogd-UZ",sok:"sok-Latn-ZZ",soq:"soq-Latn-ZZ",sou:"sou-Thai-TH",soy:"soy-Latn-ZZ",spd:"spd-Latn-ZZ",spl:"spl-Latn-ZZ",sps:"sps-Latn-ZZ",sq:"sq-Latn-AL",sr:"sr-Cyrl-RS","sr-ME":"sr-Latn-ME","sr-RO":"sr-Latn-RO","sr-RU":"sr-Latn-RU","sr-TR":"sr-Latn-TR",srb:"srb-Sora-IN",srn:"srn-Latn-SR",srr:"srr-Latn-SN",srx:"srx-Deva-IN",ss:"ss-Latn-ZA",ssd:"ssd-Latn-ZZ",ssg:"ssg-Latn-ZZ",ssy:"ssy-Latn-ER",st:"st-Latn-ZA",stk:"stk-Latn-ZZ",stq:"stq-Latn-DE",su:"su-Latn-ID",sua:"sua-Latn-ZZ",sue:"sue-Latn-ZZ",suk:"suk-Latn-TZ",sur:"sur-Latn-ZZ",sus:"sus-Latn-GN",sv:"sv-Latn-SE",sw:"sw-Latn-TZ",swb:"swb-Arab-YT",swc:"swc-Latn-CD",swg:"swg-Latn-DE",swp:"swp-Latn-ZZ",swv:"swv-Deva-IN",sxn:"sxn-Latn-ID",sxw:"sxw-Latn-ZZ",syl:"syl-Beng-BD",syr:"syr-Syrc-IQ",szl:"szl-Latn-PL",ta:"ta-Taml-IN",taj:"taj-Deva-NP",tal:"tal-Latn-ZZ",tan:"tan-Latn-ZZ",taq:"taq-Latn-ZZ",tbc:"tbc-Latn-ZZ",tbd:"tbd-Latn-ZZ",tbf:"tbf-Latn-ZZ",tbg:"tbg-Latn-ZZ",tbo:"tbo-Latn-ZZ",tbw:"tbw-Latn-PH",tbz:"tbz-Latn-ZZ",tci:"tci-Latn-ZZ",tcy:"tcy-Knda-IN",tdd:"tdd-Tale-CN",tdg:"tdg-Deva-NP",tdh:"tdh-Deva-NP",tdu:"tdu-Latn-MY",te:"te-Telu-IN",ted:"ted-Latn-ZZ",tem:"tem-Latn-SL",teo:"teo-Latn-UG",tet:"tet-Latn-TL",tfi:"tfi-Latn-ZZ",tg:"tg-Cyrl-TJ","tg-Arab":"tg-Arab-PK","tg-PK":"tg-Arab-PK",tgc:"tgc-Latn-ZZ",tgo:"tgo-Latn-ZZ",tgu:"tgu-Latn-ZZ",th:"th-Thai-TH",thl:"thl-Deva-NP",thq:"thq-Deva-NP",thr:"thr-Deva-NP",ti:"ti-Ethi-ET",tif:"tif-Latn-ZZ",tig:"tig-Ethi-ER",tik:"tik-Latn-ZZ",tim:"tim-Latn-ZZ",tio:"tio-Latn-ZZ",tiv:"tiv-Latn-NG",tk:"tk-Latn-TM",tkl:"tkl-Latn-TK",tkr:"tkr-Latn-AZ",tkt:"tkt-Deva-NP",tl:"tl-Latn-PH",tlf:"tlf-Latn-ZZ",tlx:"tlx-Latn-ZZ",tly:"tly-Latn-AZ",tmh:"tmh-Latn-NE",tmy:"tmy-Latn-ZZ",tn:"tn-Latn-ZA",tnh:"tnh-Latn-ZZ",to:"to-Latn-TO",tof:"tof-Latn-ZZ",tog:"tog-Latn-MW",toq:"toq-Latn-ZZ",tpi:"tpi-Latn-PG",tpm:"tpm-Latn-ZZ",tpz:"tpz-Latn-ZZ",tqo:"tqo-Latn-ZZ",tr:"tr-Latn-TR",tru:"tru-Latn-TR",trv:"trv-Latn-TW",trw:"trw-Arab-PK",ts:"ts-Latn-ZA",tsd:"tsd-Grek-GR",tsf:"tsf-Deva-NP",tsg:"tsg-Latn-PH",tsj:"tsj-Tibt-BT",tsw:"tsw-Latn-ZZ",tt:"tt-Cyrl-RU",ttd:"ttd-Latn-ZZ",tte:"tte-Latn-ZZ",ttj:"ttj-Latn-UG",ttr:"ttr-Latn-ZZ",tts:"tts-Thai-TH",ttt:"ttt-Latn-AZ",tuh:"tuh-Latn-ZZ",tul:"tul-Latn-ZZ",tum:"tum-Latn-MW",tuq:"tuq-Latn-ZZ",tvd:"tvd-Latn-ZZ",tvl:"tvl-Latn-TV",tvu:"tvu-Latn-ZZ",twh:"twh-Latn-ZZ",twq:"twq-Latn-NE",txg:"txg-Tang-CN",ty:"ty-Latn-PF",tya:"tya-Latn-ZZ",tyv:"tyv-Cyrl-RU",tzm:"tzm-Latn-MA",ubu:"ubu-Latn-ZZ",udi:"udi-Aghb-RU",udm:"udm-Cyrl-RU",ug:"ug-Arab-CN","ug-Cyrl":"ug-Cyrl-KZ","ug-KZ":"ug-Cyrl-KZ","ug-MN":"ug-Cyrl-MN",uga:"uga-Ugar-SY",uk:"uk-Cyrl-UA",uli:"uli-Latn-FM",umb:"umb-Latn-AO",und:"en-Latn-US","und-002":"en-Latn-NG","und-003":"en-Latn-US","und-005":"pt-Latn-BR","und-009":"en-Latn-AU","und-011":"en-Latn-NG","und-013":"es-Latn-MX","und-014":"sw-Latn-TZ","und-015":"ar-Arab-EG","und-017":"sw-Latn-CD","und-018":"en-Latn-ZA","und-019":"en-Latn-US","und-021":"en-Latn-US","und-029":"es-Latn-CU","und-030":"zh-Hans-CN","und-034":"hi-Deva-IN","und-035":"id-Latn-ID","und-039":"it-Latn-IT","und-053":"en-Latn-AU","und-054":"en-Latn-PG","und-057":"en-Latn-GU","und-061":"sm-Latn-WS","und-142":"zh-Hans-CN","und-143":"uz-Latn-UZ","und-145":"ar-Arab-SA","und-150":"ru-Cyrl-RU","und-151":"ru-Cyrl-RU","und-154":"en-Latn-GB","und-155":"de-Latn-DE","und-202":"en-Latn-NG","und-419":"es-Latn-419","und-AD":"ca-Latn-AD","und-Adlm":"ff-Adlm-GN","und-AE":"ar-Arab-AE","und-AF":"fa-Arab-AF","und-Aghb":"udi-Aghb-RU","und-Ahom":"aho-Ahom-IN","und-AL":"sq-Latn-AL","und-AM":"hy-Armn-AM","und-AO":"pt-Latn-AO","und-AQ":"und-Latn-AQ","und-AR":"es-Latn-AR","und-Arab":"ar-Arab-EG","und-Arab-CC":"ms-Arab-CC","und-Arab-CN":"ug-Arab-CN","und-Arab-GB":"ks-Arab-GB","und-Arab-ID":"ms-Arab-ID","und-Arab-IN":"ur-Arab-IN","und-Arab-KH":"cja-Arab-KH","und-Arab-MM":"rhg-Arab-MM","und-Arab-MN":"kk-Arab-MN","und-Arab-MU":"ur-Arab-MU","und-Arab-NG":"ha-Arab-NG","und-Arab-PK":"ur-Arab-PK","und-Arab-TG":"apd-Arab-TG","und-Arab-TH":"mfa-Arab-TH","und-Arab-TJ":"fa-Arab-TJ","und-Arab-TR":"az-Arab-TR","und-Arab-YT":"swb-Arab-YT","und-Armi":"arc-Armi-IR","und-Armn":"hy-Armn-AM","und-AS":"sm-Latn-AS","und-AT":"de-Latn-AT","und-Avst":"ae-Avst-IR","und-AW":"nl-Latn-AW","und-AX":"sv-Latn-AX","und-AZ":"az-Latn-AZ","und-BA":"bs-Latn-BA","und-Bali":"ban-Bali-ID","und-Bamu":"bax-Bamu-CM","und-Bass":"bsq-Bass-LR","und-Batk":"bbc-Batk-ID","und-BD":"bn-Beng-BD","und-BE":"nl-Latn-BE","und-Beng":"bn-Beng-BD","und-BF":"fr-Latn-BF","und-BG":"bg-Cyrl-BG","und-BH":"ar-Arab-BH","und-Bhks":"sa-Bhks-IN","und-BI":"rn-Latn-BI","und-BJ":"fr-Latn-BJ","und-BL":"fr-Latn-BL","und-BN":"ms-Latn-BN","und-BO":"es-Latn-BO","und-Bopo":"zh-Bopo-TW","und-BQ":"pap-Latn-BQ","und-BR":"pt-Latn-BR","und-Brah":"pka-Brah-IN","und-Brai":"fr-Brai-FR","und-BT":"dz-Tibt-BT","und-Bugi":"bug-Bugi-ID","und-Buhd":"bku-Buhd-PH","und-BV":"und-Latn-BV","und-BY":"be-Cyrl-BY","und-Cakm":"ccp-Cakm-BD","und-Cans":"cr-Cans-CA","und-Cari":"xcr-Cari-TR","und-CD":"sw-Latn-CD","und-CF":"fr-Latn-CF","und-CG":"fr-Latn-CG","und-CH":"de-Latn-CH","und-Cham":"cjm-Cham-VN","und-Cher":"chr-Cher-US","und-Chrs":"xco-Chrs-UZ","und-CI":"fr-Latn-CI","und-CL":"es-Latn-CL","und-CM":"fr-Latn-CM","und-CN":"zh-Hans-CN","und-CO":"es-Latn-CO","und-Copt":"cop-Copt-EG","und-CP":"und-Latn-CP","und-Cprt":"grc-Cprt-CY","und-CR":"es-Latn-CR","und-CU":"es-Latn-CU","und-CV":"pt-Latn-CV","und-CW":"pap-Latn-CW","und-CY":"el-Grek-CY","und-Cyrl":"ru-Cyrl-RU","und-Cyrl-AL":"mk-Cyrl-AL","und-Cyrl-BA":"sr-Cyrl-BA","und-Cyrl-GE":"os-Cyrl-GE","und-Cyrl-GR":"mk-Cyrl-GR","und-Cyrl-MD":"uk-Cyrl-MD","und-Cyrl-RO":"bg-Cyrl-RO","und-Cyrl-SK":"uk-Cyrl-SK","und-Cyrl-TR":"kbd-Cyrl-TR","und-Cyrl-XK":"sr-Cyrl-XK","und-CZ":"cs-Latn-CZ","und-DE":"de-Latn-DE","und-Deva":"hi-Deva-IN","und-Deva-BT":"ne-Deva-BT","und-Deva-FJ":"hif-Deva-FJ","und-Deva-MU":"bho-Deva-MU","und-Deva-PK":"btv-Deva-PK","und-Diak":"dv-Diak-MV","und-DJ":"aa-Latn-DJ","und-DK":"da-Latn-DK","und-DO":"es-Latn-DO","und-Dogr":"doi-Dogr-IN","und-Dupl":"fr-Dupl-FR","und-DZ":"ar-Arab-DZ","und-EA":"es-Latn-EA","und-EC":"es-Latn-EC","und-EE":"et-Latn-EE","und-EG":"ar-Arab-EG","und-Egyp":"egy-Egyp-EG","und-EH":"ar-Arab-EH","und-Elba":"sq-Elba-AL","und-Elym":"arc-Elym-IR","und-ER":"ti-Ethi-ER","und-ES":"es-Latn-ES","und-ET":"am-Ethi-ET","und-Ethi":"am-Ethi-ET","und-EU":"en-Latn-IE","und-EZ":"de-Latn-EZ","und-FI":"fi-Latn-FI","und-FO":"fo-Latn-FO","und-FR":"fr-Latn-FR","und-GA":"fr-Latn-GA","und-GE":"ka-Geor-GE","und-Geor":"ka-Geor-GE","und-GF":"fr-Latn-GF","und-GH":"ak-Latn-GH","und-GL":"kl-Latn-GL","und-Glag":"cu-Glag-BG","und-GN":"fr-Latn-GN","und-Gong":"wsg-Gong-IN","und-Gonm":"esg-Gonm-IN","und-Goth":"got-Goth-UA","und-GP":"fr-Latn-GP","und-GQ":"es-Latn-GQ","und-GR":"el-Grek-GR","und-Gran":"sa-Gran-IN","und-Grek":"el-Grek-GR","und-Grek-TR":"bgx-Grek-TR","und-GS":"und-Latn-GS","und-GT":"es-Latn-GT","und-Gujr":"gu-Gujr-IN","und-Guru":"pa-Guru-IN","und-GW":"pt-Latn-GW","und-Hanb":"zh-Hanb-TW","und-Hang":"ko-Hang-KR","und-Hani":"zh-Hani-CN","und-Hano":"hnn-Hano-PH","und-Hans":"zh-Hans-CN","und-Hant":"zh-Hant-TW","und-Hebr":"he-Hebr-IL","und-Hebr-CA":"yi-Hebr-CA","und-Hebr-GB":"yi-Hebr-GB","und-Hebr-SE":"yi-Hebr-SE","und-Hebr-UA":"yi-Hebr-UA","und-Hebr-US":"yi-Hebr-US","und-Hira":"ja-Hira-JP","und-HK":"zh-Hant-HK","und-Hluw":"hlu-Hluw-TR","und-HM":"und-Latn-HM","und-Hmng":"hnj-Hmng-LA","und-Hmnp":"mww-Hmnp-US","und-HN":"es-Latn-HN","und-HR":"hr-Latn-HR","und-HT":"ht-Latn-HT","und-HU":"hu-Latn-HU","und-Hung":"hu-Hung-HU","und-IC":"es-Latn-IC","und-ID":"id-Latn-ID","und-IL":"he-Hebr-IL","und-IN":"hi-Deva-IN","und-IQ":"ar-Arab-IQ","und-IR":"fa-Arab-IR","und-IS":"is-Latn-IS","und-IT":"it-Latn-IT","und-Ital":"ett-Ital-IT","und-Jamo":"ko-Jamo-KR","und-Java":"jv-Java-ID","und-JO":"ar-Arab-JO","und-JP":"ja-Jpan-JP","und-Jpan":"ja-Jpan-JP","und-Kali":"eky-Kali-MM","und-Kana":"ja-Kana-JP","und-KE":"sw-Latn-KE","und-KG":"ky-Cyrl-KG","und-KH":"km-Khmr-KH","und-Khar":"pra-Khar-PK","und-Khmr":"km-Khmr-KH","und-Khoj":"sd-Khoj-IN","und-Kits":"zkt-Kits-CN","und-KM":"ar-Arab-KM","und-Knda":"kn-Knda-IN","und-Kore":"ko-Kore-KR","und-KP":"ko-Kore-KP","und-KR":"ko-Kore-KR","und-Kthi":"bho-Kthi-IN","und-KW":"ar-Arab-KW","und-KZ":"ru-Cyrl-KZ","und-LA":"lo-Laoo-LA","und-Lana":"nod-Lana-TH","und-Laoo":"lo-Laoo-LA","und-Latn-AF":"tk-Latn-AF","und-Latn-AM":"ku-Latn-AM","und-Latn-CN":"za-Latn-CN","und-Latn-CY":"tr-Latn-CY","und-Latn-DZ":"fr-Latn-DZ","und-Latn-ET":"en-Latn-ET","und-Latn-GE":"ku-Latn-GE","und-Latn-IR":"tk-Latn-IR","und-Latn-KM":"fr-Latn-KM","und-Latn-MA":"fr-Latn-MA","und-Latn-MK":"sq-Latn-MK","und-Latn-MM":"kac-Latn-MM","und-Latn-MO":"pt-Latn-MO","und-Latn-MR":"fr-Latn-MR","und-Latn-RU":"krl-Latn-RU","und-Latn-SY":"fr-Latn-SY","und-Latn-TN":"fr-Latn-TN","und-Latn-TW":"trv-Latn-TW","und-Latn-UA":"pl-Latn-UA","und-LB":"ar-Arab-LB","und-Lepc":"lep-Lepc-IN","und-LI":"de-Latn-LI","und-Limb":"lif-Limb-IN","und-Lina":"lab-Lina-GR","und-Linb":"grc-Linb-GR","und-Lisu":"lis-Lisu-CN","und-LK":"si-Sinh-LK","und-LS":"st-Latn-LS","und-LT":"lt-Latn-LT","und-LU":"fr-Latn-LU","und-LV":"lv-Latn-LV","und-LY":"ar-Arab-LY","und-Lyci":"xlc-Lyci-TR","und-Lydi":"xld-Lydi-TR","und-MA":"ar-Arab-MA","und-Mahj":"hi-Mahj-IN","und-Maka":"mak-Maka-ID","und-Mand":"myz-Mand-IR","und-Mani":"xmn-Mani-CN","und-Marc":"bo-Marc-CN","und-MC":"fr-Latn-MC","und-MD":"ro-Latn-MD","und-ME":"sr-Latn-ME","und-Medf":"dmf-Medf-NG","und-Mend":"men-Mend-SL","und-Merc":"xmr-Merc-SD","und-Mero":"xmr-Mero-SD","und-MF":"fr-Latn-MF","und-MG":"mg-Latn-MG","und-MK":"mk-Cyrl-MK","und-ML":"bm-Latn-ML","und-Mlym":"ml-Mlym-IN","und-MM":"my-Mymr-MM","und-MN":"mn-Cyrl-MN","und-MO":"zh-Hant-MO","und-Modi":"mr-Modi-IN","und-Mong":"mn-Mong-CN","und-MQ":"fr-Latn-MQ","und-MR":"ar-Arab-MR","und-Mroo":"mro-Mroo-BD","und-MT":"mt-Latn-MT","und-Mtei":"mni-Mtei-IN","und-MU":"mfe-Latn-MU","und-Mult":"skr-Mult-PK","und-MV":"dv-Thaa-MV","und-MX":"es-Latn-MX","und-MY":"ms-Latn-MY","und-Mymr":"my-Mymr-MM","und-Mymr-IN":"kht-Mymr-IN","und-Mymr-TH":"mnw-Mymr-TH","und-MZ":"pt-Latn-MZ","und-NA":"af-Latn-NA","und-Nand":"sa-Nand-IN","und-Narb":"xna-Narb-SA","und-Nbat":"arc-Nbat-JO","und-NC":"fr-Latn-NC","und-NE":"ha-Latn-NE","und-Newa":"new-Newa-NP","und-NI":"es-Latn-NI","und-Nkoo":"man-Nkoo-GN","und-NL":"nl-Latn-NL","und-NO":"nb-Latn-NO","und-NP":"ne-Deva-NP","und-Nshu":"zhx-Nshu-CN","und-Ogam":"sga-Ogam-IE","und-Olck":"sat-Olck-IN","und-OM":"ar-Arab-OM","und-Orkh":"otk-Orkh-MN","und-Orya":"or-Orya-IN","und-Osge":"osa-Osge-US","und-Osma":"so-Osma-SO","und-PA":"es-Latn-PA","und-Palm":"arc-Palm-SY","und-Pauc":"ctd-Pauc-MM","und-PE":"es-Latn-PE","und-Perm":"kv-Perm-RU","und-PF":"fr-Latn-PF","und-PG":"tpi-Latn-PG","und-PH":"fil-Latn-PH","und-Phag":"lzh-Phag-CN","und-Phli":"pal-Phli-IR","und-Phlp":"pal-Phlp-CN","und-Phnx":"phn-Phnx-LB","und-PK":"ur-Arab-PK","und-PL":"pl-Latn-PL","und-Plrd":"hmd-Plrd-CN","und-PM":"fr-Latn-PM","und-PR":"es-Latn-PR","und-Prti":"xpr-Prti-IR","und-PS":"ar-Arab-PS","und-PT":"pt-Latn-PT","und-PW":"pau-Latn-PW","und-PY":"gn-Latn-PY","und-QA":"ar-Arab-QA","und-QO":"en-Latn-DG","und-RE":"fr-Latn-RE","und-Rjng":"rej-Rjng-ID","und-RO":"ro-Latn-RO","und-Rohg":"rhg-Rohg-MM","und-RS":"sr-Cyrl-RS","und-RU":"ru-Cyrl-RU","und-Runr":"non-Runr-SE","und-RW":"rw-Latn-RW","und-SA":"ar-Arab-SA","und-Samr":"smp-Samr-IL","und-Sarb":"xsa-Sarb-YE","und-Saur":"saz-Saur-IN","und-SC":"fr-Latn-SC","und-SD":"ar-Arab-SD","und-SE":"sv-Latn-SE","und-Sgnw":"ase-Sgnw-US","und-Shaw":"en-Shaw-GB","und-Shrd":"sa-Shrd-IN","und-SI":"sl-Latn-SI","und-Sidd":"sa-Sidd-IN","und-Sind":"sd-Sind-IN","und-Sinh":"si-Sinh-LK","und-SJ":"nb-Latn-SJ","und-SK":"sk-Latn-SK","und-SM":"it-Latn-SM","und-SN":"fr-Latn-SN","und-SO":"so-Latn-SO","und-Sogd":"sog-Sogd-UZ","und-Sogo":"sog-Sogo-UZ","und-Sora":"srb-Sora-IN","und-Soyo":"cmg-Soyo-MN","und-SR":"nl-Latn-SR","und-ST":"pt-Latn-ST","und-Sund":"su-Sund-ID","und-SV":"es-Latn-SV","und-SY":"ar-Arab-SY","und-Sylo":"syl-Sylo-BD","und-Syrc":"syr-Syrc-IQ","und-Tagb":"tbw-Tagb-PH","und-Takr":"doi-Takr-IN","und-Tale":"tdd-Tale-CN","und-Talu":"khb-Talu-CN","und-Taml":"ta-Taml-IN","und-Tang":"txg-Tang-CN","und-Tavt":"blt-Tavt-VN","und-TD":"fr-Latn-TD","und-Telu":"te-Telu-IN","und-TF":"fr-Latn-TF","und-Tfng":"zgh-Tfng-MA","und-TG":"fr-Latn-TG","und-Tglg":"fil-Tglg-PH","und-TH":"th-Thai-TH","und-Thaa":"dv-Thaa-MV","und-Thai":"th-Thai-TH","und-Thai-CN":"lcp-Thai-CN","und-Thai-KH":"kdt-Thai-KH","und-Thai-LA":"kdt-Thai-LA","und-Tibt":"bo-Tibt-CN","und-Tirh":"mai-Tirh-IN","und-TJ":"tg-Cyrl-TJ","und-TK":"tkl-Latn-TK","und-TL":"pt-Latn-TL","und-TM":"tk-Latn-TM","und-TN":"ar-Arab-TN","und-TO":"to-Latn-TO","und-TR":"tr-Latn-TR","und-TV":"tvl-Latn-TV","und-TW":"zh-Hant-TW","und-TZ":"sw-Latn-TZ","und-UA":"uk-Cyrl-UA","und-UG":"sw-Latn-UG","und-Ugar":"uga-Ugar-SY","und-UY":"es-Latn-UY","und-UZ":"uz-Latn-UZ","und-VA":"it-Latn-VA","und-Vaii":"vai-Vaii-LR","und-VE":"es-Latn-VE","und-VN":"vi-Latn-VN","und-VU":"bi-Latn-VU","und-Wara":"hoc-Wara-IN","und-Wcho":"nnp-Wcho-IN","und-WF":"fr-Latn-WF","und-WS":"sm-Latn-WS","und-XK":"sq-Latn-XK","und-Xpeo":"peo-Xpeo-IR","und-Xsux":"akk-Xsux-IQ","und-YE":"ar-Arab-YE","und-Yezi":"ku-Yezi-GE","und-Yiii":"ii-Yiii-CN","und-YT":"fr-Latn-YT","und-Zanb":"cmg-Zanb-MN","und-ZW":"sn-Latn-ZW",unr:"unr-Beng-IN","unr-Deva":"unr-Deva-NP","unr-NP":"unr-Deva-NP",unx:"unx-Beng-IN",uok:"uok-Latn-ZZ",ur:"ur-Arab-PK",uri:"uri-Latn-ZZ",urt:"urt-Latn-ZZ",urw:"urw-Latn-ZZ",usa:"usa-Latn-ZZ",uth:"uth-Latn-ZZ",utr:"utr-Latn-ZZ",uvh:"uvh-Latn-ZZ",uvl:"uvl-Latn-ZZ",uz:"uz-Latn-UZ","uz-AF":"uz-Arab-AF","uz-Arab":"uz-Arab-AF","uz-CN":"uz-Cyrl-CN",vag:"vag-Latn-ZZ",vai:"vai-Vaii-LR",van:"van-Latn-ZZ",ve:"ve-Latn-ZA",vec:"vec-Latn-IT",vep:"vep-Latn-RU",vi:"vi-Latn-VN",vic:"vic-Latn-SX",viv:"viv-Latn-ZZ",vls:"vls-Latn-BE",vmf:"vmf-Latn-DE",vmw:"vmw-Latn-MZ",vo:"vo-Latn-001",vot:"vot-Latn-RU",vro:"vro-Latn-EE",vun:"vun-Latn-TZ",vut:"vut-Latn-ZZ",wa:"wa-Latn-BE",wae:"wae-Latn-CH",waj:"waj-Latn-ZZ",wal:"wal-Ethi-ET",wan:"wan-Latn-ZZ",war:"war-Latn-PH",wbp:"wbp-Latn-AU",wbq:"wbq-Telu-IN",wbr:"wbr-Deva-IN",wci:"wci-Latn-ZZ",wer:"wer-Latn-ZZ",wgi:"wgi-Latn-ZZ",whg:"whg-Latn-ZZ",wib:"wib-Latn-ZZ",wiu:"wiu-Latn-ZZ",wiv:"wiv-Latn-ZZ",wja:"wja-Latn-ZZ",wji:"wji-Latn-ZZ",wls:"wls-Latn-WF",wmo:"wmo-Latn-ZZ",wnc:"wnc-Latn-ZZ",wni:"wni-Arab-KM",wnu:"wnu-Latn-ZZ",wo:"wo-Latn-SN",wob:"wob-Latn-ZZ",wos:"wos-Latn-ZZ",wrs:"wrs-Latn-ZZ",wsg:"wsg-Gong-IN",wsk:"wsk-Latn-ZZ",wtm:"wtm-Deva-IN",wuu:"wuu-Hans-CN",wuv:"wuv-Latn-ZZ",wwa:"wwa-Latn-ZZ",xav:"xav-Latn-BR",xbi:"xbi-Latn-ZZ",xco:"xco-Chrs-UZ",xcr:"xcr-Cari-TR",xes:"xes-Latn-ZZ",xh:"xh-Latn-ZA",xla:"xla-Latn-ZZ",xlc:"xlc-Lyci-TR",xld:"xld-Lydi-TR",xmf:"xmf-Geor-GE",xmn:"xmn-Mani-CN",xmr:"xmr-Merc-SD",xna:"xna-Narb-SA",xnr:"xnr-Deva-IN",xog:"xog-Latn-UG",xon:"xon-Latn-ZZ",xpr:"xpr-Prti-IR",xrb:"xrb-Latn-ZZ",xsa:"xsa-Sarb-YE",xsi:"xsi-Latn-ZZ",xsm:"xsm-Latn-ZZ",xsr:"xsr-Deva-NP",xwe:"xwe-Latn-ZZ",yam:"yam-Latn-ZZ",yao:"yao-Latn-MZ",yap:"yap-Latn-FM",yas:"yas-Latn-ZZ",yat:"yat-Latn-ZZ",yav:"yav-Latn-CM",yay:"yay-Latn-ZZ",yaz:"yaz-Latn-ZZ",yba:"yba-Latn-ZZ",ybb:"ybb-Latn-CM",yby:"yby-Latn-ZZ",yer:"yer-Latn-ZZ",ygr:"ygr-Latn-ZZ",ygw:"ygw-Latn-ZZ",yi:"yi-Hebr-001",yko:"yko-Latn-ZZ",yle:"yle-Latn-ZZ",ylg:"ylg-Latn-ZZ",yll:"yll-Latn-ZZ",yml:"yml-Latn-ZZ",yo:"yo-Latn-NG",yon:"yon-Latn-ZZ",yrb:"yrb-Latn-ZZ",yre:"yre-Latn-ZZ",yrl:"yrl-Latn-BR",yss:"yss-Latn-ZZ",yua:"yua-Latn-MX",yue:"yue-Hant-HK","yue-CN":"yue-Hans-CN","yue-Hans":"yue-Hans-CN",yuj:"yuj-Latn-ZZ",yut:"yut-Latn-ZZ",yuw:"yuw-Latn-ZZ",za:"za-Latn-CN",zag:"zag-Latn-SD",zdj:"zdj-Arab-KM",zea:"zea-Latn-NL",zgh:"zgh-Tfng-MA",zh:"zh-Hans-CN","zh-AU":"zh-Hant-AU","zh-BN":"zh-Hant-BN","zh-Bopo":"zh-Bopo-TW","zh-GB":"zh-Hant-GB","zh-GF":"zh-Hant-GF","zh-Hanb":"zh-Hanb-TW","zh-Hant":"zh-Hant-TW","zh-HK":"zh-Hant-HK","zh-ID":"zh-Hant-ID","zh-MO":"zh-Hant-MO","zh-PA":"zh-Hant-PA","zh-PF":"zh-Hant-PF","zh-PH":"zh-Hant-PH","zh-SR":"zh-Hant-SR","zh-TH":"zh-Hant-TH","zh-TW":"zh-Hant-TW","zh-US":"zh-Hant-US","zh-VN":"zh-Hant-VN",zhx:"zhx-Nshu-CN",zia:"zia-Latn-ZZ",zkt:"zkt-Kits-CN",zlm:"zlm-Latn-TG",zmi:"zmi-Latn-MY",zne:"zne-Latn-ZZ",zu:"zu-Latn-ZA",zza:"zza-Latn-TR"}},24773:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseUnicodeLocaleId=t.parseUnicodeLanguageId=t.isUnicodeVariantSubtag=t.isUnicodeScriptSubtag=t.isUnicodeRegionSubtag=t.isStructurallyValidLanguageTag=t.isUnicodeLanguageSubtag=t.SEPARATOR=void 0;var n=r(97582),i=/^[a-z0-9]{1,8}$/i,o=/^[a-z0-9]{2,8}$/i,a=/^[a-z0-9]{3,8}$/i,s=/^[a-z0-9][a-z]$/i,c=/^[a-z0-9]{3,8}$/i,l=/^[a-z]{4}$/i,u=/^[0-9a-svwyz]$/i,d=/^([a-z]{2}|[0-9]{3})$/i,p=/^([a-z0-9]{5,8}|[0-9][a-z0-9]{3})$/i,h=/^([a-z]{2,3}|[a-z]{5,8})$/i,f=/^[a-z][0-9]$/i;function m(e){return h.test(e)}function g(e){return d.test(e)}function v(e){return l.test(e)}function y(e){return p.test(e)}function b(e){"string"==typeof e&&(e=e.split(t.SEPARATOR));var r,n,i=e.shift();if(!i)throw new RangeError("Missing unicode_language_subtag");if("root"===i)return{lang:"root",variants:[]};if(!m(i))throw new RangeError("Malformed unicode_language_subtag");e.length&&v(e[0])&&(r=e.shift()),e.length&&g(e[0])&&(n=e.shift());for(var o={};e.length&&y(e[0]);){var a=e.shift();if(a in o)throw new RangeError('Duplicate variant "'+a+'"');o[a]=1}return{lang:i,script:r,region:n,variants:Object.keys(o)}}function _(e){for(var t,r=[];e.length&&(t=E(e));)r.push(t);if(r.length)return{type:"u",keywords:r,attributes:[]};for(var n=[];e.length&&a.test(e[0]);)n.push(e.shift());for(;e.length&&(t=E(e));)r.push(t);if(r.length||n.length)return{type:"u",attributes:n,keywords:r};throw new RangeError("Malformed unicode_extension")}function E(e){var r;if(s.test(e[0])){r=e.shift();for(var n=[];e.length&&c.test(e[0]);)n.push(e.shift());var i="";return n.length&&(i=n.join(t.SEPARATOR)),[r,i]}}function w(e){var r;try{r=b(e)}catch(e){}for(var n=[];e.length&&f.test(e[0]);){for(var i=e.shift(),o=[];e.length&&a.test(e[0]);)o.push(e.shift());if(!o.length)throw new RangeError('Missing tvalue for tkey "'+i+'"');n.push([i,o.join(t.SEPARATOR)])}if(n.length)return{type:"t",fields:n,lang:r};throw new RangeError("Malformed transformed_extension")}function x(e){for(var r=[];e.length&&i.test(e[0]);)r.push(e.shift());if(r.length)return{type:"x",value:r.join(t.SEPARATOR)};throw new RangeError("Malformed private_use_extension")}function L(e){for(var r=[];e.length&&o.test(e[0]);)r.push(e.shift());return r.length?r.join(t.SEPARATOR):""}t.SEPARATOR="-",t.isUnicodeLanguageSubtag=m,t.isStructurallyValidLanguageTag=function(e){try{b(e.split(t.SEPARATOR))}catch(e){return!1}return!0},t.isUnicodeRegionSubtag=g,t.isUnicodeScriptSubtag=v,t.isUnicodeVariantSubtag=y,t.parseUnicodeLanguageId=b,t.parseUnicodeLocaleId=function(e){var r=e.split(t.SEPARATOR),i=b(r);return(0,n.__assign)({lang:i},function(e){if(!e.length)return{extensions:[]};var t,r,n,i=[],o={};do{var a=e.shift();switch(a){case"u":case"U":if(t)throw new RangeError("There can only be 1 -u- extension");t=_(e),i.push(t);break;case"t":case"T":if(r)throw new RangeError("There can only be 1 -t- extension");r=w(e),i.push(r);break;case"x":case"X":if(n)throw new RangeError("There can only be 1 -x- extension");n=x(e),i.push(n);break;default:if(!u.test(a))throw new RangeError("Malformed extension type");if(a in o)throw new RangeError("There can only be 1 -"+a+"- extension");var s={type:a,value:L(e)};o[s.type]=s,i.push(s)}}while(e.length);return{extensions:i}}(r))}},26624:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5231:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(374);class i extends n.EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){const e=o.get(this);if("boolean"!=typeof e)throw new TypeError("Expected 'this' to be an 'AbortSignal' object, but got "+(null===this?"null":typeof this));return e}}n.defineEventAttribute(i.prototype,"abort");const o=new WeakMap;Object.defineProperties(i.prototype,{aborted:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(i.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});class a{constructor(){s.set(this,function(){const e=Object.create(i.prototype);return n.EventTarget.call(e),o.set(e,!1),e}())}get signal(){return c(this)}abort(){var e;e=c(this),!1===o.get(e)&&(o.set(e,!0),e.dispatchEvent({type:"abort"}))}}const s=new WeakMap;function c(e){const t=s.get(e);if(null==t)throw new TypeError("Expected 'this' to be an 'AbortController' object, but got "+(null===e?"null":typeof e));return t}Object.defineProperties(a.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(a.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"}),t.AbortController=a,t.AbortSignal=i,t.default=a,e.exports=a,e.exports.AbortController=e.exports.default=a,e.exports.AbortSignal=i},40627:(e,t,r)=>{"use strict";const n=r(5231),i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:void 0;i&&(void 0===i.AbortController&&(i.AbortController=n.AbortController),void 0===i.AbortSignal&&(i.AbortSignal=n.AbortSignal))},68378:(e,t)=>{"use strict";function r(e){var t=void 0;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?t=Reflect.ownKeys(e.prototype):(t=Object.getOwnPropertyNames(e.prototype),"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e.prototype)))),t.forEach((function(t){if("constructor"!==t){var r=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof r.value&&Object.defineProperty(e.prototype,t,n(e,t,r))}})),e}function n(e,t,r){var n=r.value;if("function"!=typeof n)throw new Error("@autobind decorator can only be applied to methods not: "+typeof n);var i=!1;return{configurable:!0,get:function(){if(i||this===e.prototype||this.hasOwnProperty(t))return n;var r=n.bind(this);return i=!0,Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0}),i=!1,r}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return 1===t.length?r.apply(void 0,t):n.apply(void 0,t)},e.exports=t.default},63627:(e,t,r)=>{e.exports={default:r(90244),__esModule:!0}},93697:(e,t,r)=>{e.exports={default:r(65579),__esModule:!0}},16234:(e,t,r)=>{e.exports={default:r(18449),__esModule:!0}},61194:(e,t,r)=>{e.exports={default:r(32174),__esModule:!0}},14858:(e,t,r)=>{e.exports={default:r(38940),__esModule:!0}},64474:(e,t,r)=>{e.exports={default:r(19214),__esModule:!0}},51629:(e,t,r)=>{e.exports={default:r(10879),__esModule:!0}},71499:(e,t,r)=>{e.exports={default:r(10272),__esModule:!0}},14864:(e,t)=>{"use strict";t.Z=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},77810:(e,t,r)=>{"use strict";var n,i=(n=r(16234))&&n.__esModule?n:{default:n};t.Z=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),(0,i.default)(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()},68513:(e,t,r)=>{"use strict";var n,i=(n=r(63627))&&n.__esModule?n:{default:n};t.Z=i.default||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}},97965:(e,t,r)=>{"use strict";var n=a(r(64474)),i=a(r(93697)),o=a(r(94605));function a(e){return e&&e.__esModule?e:{default:e}}t.Z=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,o.default)(t)));e.prototype=(0,i.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(n.default?(0,n.default)(e,t):e.__proto__=t)}},88771:(e,t)=>{"use strict";t.Z=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}},55e3:(e,t,r)=>{"use strict";var n,i=(n=r(94605))&&n.__esModule?n:{default:n};t.Z=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,i.default)(t))&&"function"!=typeof t?e:t}},94605:(e,t,r)=>{"use strict";t.__esModule=!0;var n=a(r(71499)),i=a(r(51629)),o="function"==typeof i.default&&"symbol"==typeof n.default?function(e){return typeof e}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof i.default&&"symbol"===o(n.default)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":void 0===e?"undefined":o(e)}},90244:(e,t,r)=>{r(33335),e.exports=r(94626).Object.assign},65579:(e,t,r)=>{r(87839);var n=r(94626).Object;e.exports=function(e,t){return n.create(e,t)}},18449:(e,t,r)=>{r(47275);var n=r(94626).Object;e.exports=function(e,t,r){return n.defineProperty(e,t,r)}},32174:(e,t,r)=>{r(29946),e.exports=r(94626).Object.getPrototypeOf},38940:(e,t,r)=>{r(6259),e.exports=r(94626).Object.keys},19214:(e,t,r)=>{r(48326),e.exports=r(94626).Object.setPrototypeOf},10879:(e,t,r)=>{r(61505),r(93236),r(33929),r(75702),e.exports=r(94626).Symbol},10272:(e,t,r)=>{r(16773),r(20704),e.exports=r(49442).f("iterator")},27979:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},31392:e=>{e.exports=function(){}},12527:(e,t,r)=>{var n=r(28512);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},54617:(e,t,r)=>{var n=r(34312),i=r(50280),o=r(78235);e.exports=function(e){return function(t,r,a){var s,c=n(t),l=i(c.length),u=o(a,l);if(e&&r!=r){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}}},28235:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},94626:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},26160:(e,t,r)=>{var n=r(27979);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},24003:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},46764:(e,t,r)=>{e.exports=!r(24126)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},29762:(e,t,r)=>{var n=r(28512),i=r(6654).document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},70614:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},82007:(e,t,r)=>{var n=r(59048),i=r(70350),o=r(66747);e.exports=function(e){var t=n(e),r=i.f;if(r)for(var a,s=r(e),c=o.f,l=0;s.length>l;)c.call(e,a=s[l++])&&t.push(a);return t}},21027:(e,t,r)=>{var n=r(6654),i=r(94626),o=r(26160),a=r(76494),s=r(82375),c=function(e,t,r){var l,u,d,p=e&c.F,h=e&c.G,f=e&c.S,m=e&c.P,g=e&c.B,v=e&c.W,y=h?i:i[t]||(i[t]={}),b=y.prototype,_=h?n:f?n[t]:(n[t]||{}).prototype;for(l in h&&(r=t),r)(u=!p&&_&&void 0!==_[l])&&s(y,l)||(d=u?_[l]:r[l],y[l]=h&&"function"!=typeof _[l]?r[l]:g&&u?o(d,n):v&&_[l]==d?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):m&&"function"==typeof d?o(Function.call,d):d,m&&((y.virtual||(y.virtual={}))[l]=d,e&c.R&&b&&!b[l]&&a(b,l,d)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},24126:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},6654:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},82375:e=>{var t={}.hasOwnProperty;e.exports=function(e,r){return t.call(e,r)}},76494:(e,t,r)=>{var n=r(85358),i=r(67819);e.exports=r(46764)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},28127:(e,t,r)=>{var n=r(6654).document;e.exports=n&&n.documentElement},21465:(e,t,r)=>{e.exports=!r(46764)&&!r(24126)((function(){return 7!=Object.defineProperty(r(29762)("div"),"a",{get:function(){return 7}}).a}))},6419:(e,t,r)=>{var n=r(28235);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},39449:(e,t,r)=>{var n=r(28235);e.exports=Array.isArray||function(e){return"Array"==n(e)}},28512:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},1215:(e,t,r)=>{"use strict";var n=r(66271),i=r(67819),o=r(19426),a={};r(76494)(a,r(40053)("iterator"),(function(){return this})),e.exports=function(e,t,r){e.prototype=n(a,{next:i(1,r)}),o(e,t+" Iterator")}},57384:(e,t,r)=>{"use strict";var n=r(31897),i=r(21027),o=r(44329),a=r(76494),s=r(15180),c=r(1215),l=r(19426),u=r(28092),d=r(40053)("iterator"),p=!([].keys&&"next"in[].keys()),h="keys",f="values",m=function(){return this};e.exports=function(e,t,r,g,v,y,b){c(r,t,g);var _,E,w,x=function(e){if(!p&&e in T)return T[e];switch(e){case h:case f:return function(){return new r(this,e)}}return function(){return new r(this,e)}},L=t+" Iterator",O=v==f,S=!1,T=e.prototype,P=T[d]||T["@@iterator"]||v&&T[v],I=P||x(v),A=v?O?x("entries"):I:void 0,C="Array"==t&&T.entries||P;if(C&&(w=u(C.call(new e)))!==Object.prototype&&w.next&&(l(w,L,!0),n||"function"==typeof w[d]||a(w,d,m)),O&&P&&P.name!==f&&(S=!0,I=function(){return P.call(this)}),n&&!b||!p&&!S&&T[d]||a(T,d,I),s[t]=I,s[L]=m,v)if(_={values:O?I:x(f),keys:y?I:x(h),entries:A},b)for(E in _)E in T||o(T,E,_[E]);else i(i.P+i.F*(p||S),t,_);return _}},32598:e=>{e.exports=function(e,t){return{value:t,done:!!e}}},15180:e=>{e.exports={}},31897:e=>{e.exports=!0},52220:(e,t,r)=>{var n=r(79703)("meta"),i=r(28512),o=r(82375),a=r(85358).f,s=0,c=Object.isExtensible||function(){return!0},l=!r(24126)((function(){return c(Object.preventExtensions({}))})),u=function(e){a(e,n,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,n)){if(!c(e))return"F";if(!t)return"E";u(e)}return e[n].i},getWeak:function(e,t){if(!o(e,n)){if(!c(e))return!0;if(!t)return!1;u(e)}return e[n].w},onFreeze:function(e){return l&&d.NEED&&c(e)&&!o(e,n)&&u(e),e}}},15837:(e,t,r)=>{"use strict";var n=r(46764),i=r(59048),o=r(70350),a=r(66747),s=r(44232),c=r(6419),l=Object.assign;e.exports=!l||r(24126)((function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=l({},e)[r]||Object.keys(l({},t)).join("")!=n}))?function(e,t){for(var r=s(e),l=arguments.length,u=1,d=o.f,p=a.f;l>u;)for(var h,f=c(arguments[u++]),m=d?i(f).concat(d(f)):i(f),g=m.length,v=0;g>v;)h=m[v++],n&&!p.call(f,h)||(r[h]=f[h]);return r}:l},66271:(e,t,r)=>{var n=r(12527),i=r(48959),o=r(70614),a=r(61789)("IE_PROTO"),s=function(){},c=function(){var e,t=r(29762)("iframe"),n=o.length;for(t.style.display="none",r(28127).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c.prototype[o[n]];return c()};e.exports=Object.create||function(e,t){var r;return null!==e?(s.prototype=n(e),r=new s,s.prototype=null,r[a]=e):r=c(),void 0===t?r:i(r,t)}},85358:(e,t,r)=>{var n=r(12527),i=r(21465),o=r(93273),a=Object.defineProperty;t.f=r(46764)?Object.defineProperty:function(e,t,r){if(n(e),t=o(t,!0),n(r),i)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},48959:(e,t,r)=>{var n=r(85358),i=r(12527),o=r(59048);e.exports=r(46764)?Object.defineProperties:function(e,t){i(e);for(var r,a=o(t),s=a.length,c=0;s>c;)n.f(e,r=a[c++],t[r]);return e}},92095:(e,t,r)=>{var n=r(66747),i=r(67819),o=r(34312),a=r(93273),s=r(82375),c=r(21465),l=Object.getOwnPropertyDescriptor;t.f=r(46764)?l:function(e,t){if(e=o(e),t=a(t,!0),c)try{return l(e,t)}catch(e){}if(s(e,t))return i(!n.f.call(e,t),e[t])}},84225:(e,t,r)=>{var n=r(34312),i=r(10215).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(n(e))}},10215:(e,t,r)=>{var n=r(13972),i=r(70614).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},70350:(e,t)=>{t.f=Object.getOwnPropertySymbols},28092:(e,t,r)=>{var n=r(82375),i=r(44232),o=r(61789)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},13972:(e,t,r)=>{var n=r(82375),i=r(34312),o=r(54617)(!1),a=r(61789)("IE_PROTO");e.exports=function(e,t){var r,s=i(e),c=0,l=[];for(r in s)r!=a&&n(s,r)&&l.push(r);for(;t.length>c;)n(s,r=t[c++])&&(~o(l,r)||l.push(r));return l}},59048:(e,t,r)=>{var n=r(13972),i=r(70614);e.exports=Object.keys||function(e){return n(e,i)}},66747:(e,t)=>{t.f={}.propertyIsEnumerable},26958:(e,t,r)=>{var n=r(21027),i=r(94626),o=r(24126);e.exports=function(e,t){var r=(i.Object||{})[e]||Object[e],a={};a[e]=t(r),n(n.S+n.F*o((function(){r(1)})),"Object",a)}},67819:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},44329:(e,t,r)=>{e.exports=r(76494)},63893:(e,t,r)=>{var n=r(28512),i=r(12527),o=function(e,t){if(i(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{(n=r(26160)(Function.call,r(92095).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,r){return o(e,r),t?e.__proto__=r:n(e,r),e}}({},!1):void 0),check:o}},19426:(e,t,r)=>{var n=r(85358).f,i=r(82375),o=r(40053)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},61789:(e,t,r)=>{var n=r(96221)("keys"),i=r(79703);e.exports=function(e){return n[e]||(n[e]=i(e))}},96221:(e,t,r)=>{var n=r(94626),i=r(6654),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(31897)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},49671:(e,t,r)=>{var n=r(35392),i=r(24003);e.exports=function(e){return function(t,r){var o,a,s=String(i(t)),c=n(r),l=s.length;return c<0||c>=l?e?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}}},78235:(e,t,r)=>{var n=r(35392),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=n(e))<0?i(e+t,0):o(e,t)}},35392:e=>{var t=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}},34312:(e,t,r)=>{var n=r(6419),i=r(24003);e.exports=function(e){return n(i(e))}},50280:(e,t,r)=>{var n=r(35392),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},44232:(e,t,r)=>{var n=r(24003);e.exports=function(e){return Object(n(e))}},93273:(e,t,r)=>{var n=r(28512);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},79703:e=>{var t=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+r).toString(36))}},26234:(e,t,r)=>{var n=r(6654),i=r(94626),o=r(31897),a=r(49442),s=r(85358).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},49442:(e,t,r)=>{t.f=r(40053)},40053:(e,t,r)=>{var n=r(96221)("wks"),i=r(79703),o=r(6654).Symbol,a="function"==typeof o;(e.exports=function(e){return n[e]||(n[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=n},4063:(e,t,r)=>{"use strict";var n=r(31392),i=r(32598),o=r(15180),a=r(34312);e.exports=r(57384)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])}),"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},33335:(e,t,r)=>{var n=r(21027);n(n.S+n.F,"Object",{assign:r(15837)})},87839:(e,t,r)=>{var n=r(21027);n(n.S,"Object",{create:r(66271)})},47275:(e,t,r)=>{var n=r(21027);n(n.S+n.F*!r(46764),"Object",{defineProperty:r(85358).f})},29946:(e,t,r)=>{var n=r(44232),i=r(28092);r(26958)("getPrototypeOf",(function(){return function(e){return i(n(e))}}))},6259:(e,t,r)=>{var n=r(44232),i=r(59048);r(26958)("keys",(function(){return function(e){return i(n(e))}}))},48326:(e,t,r)=>{var n=r(21027);n(n.S,"Object",{setPrototypeOf:r(63893).set})},93236:()=>{},16773:(e,t,r)=>{"use strict";var n=r(49671)(!0);r(57384)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})}))},61505:(e,t,r)=>{"use strict";var n=r(6654),i=r(82375),o=r(46764),a=r(21027),s=r(44329),c=r(52220).KEY,l=r(24126),u=r(96221),d=r(19426),p=r(79703),h=r(40053),f=r(49442),m=r(26234),g=r(82007),v=r(39449),y=r(12527),b=r(28512),_=r(44232),E=r(34312),w=r(93273),x=r(67819),L=r(66271),O=r(84225),S=r(92095),T=r(70350),P=r(85358),I=r(59048),A=S.f,C=P.f,k=O.f,D=n.Symbol,N=n.JSON,R=N&&N.stringify,M=h("_hidden"),j=h("toPrimitive"),F={}.propertyIsEnumerable,Z=u("symbol-registry"),B=u("symbols"),G=u("op-symbols"),U=Object.prototype,H="function"==typeof D&&!!T.f,z=n.QObject,V=!z||!z.prototype||!z.prototype.findChild,Y=o&&l((function(){return 7!=L(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=A(U,t);n&&delete U[t],C(e,t,r),n&&e!==U&&C(U,t,n)}:C,W=function(e){var t=B[e]=L(D.prototype);return t._k=e,t},K=H&&"symbol"==typeof D.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof D},$=function(e,t,r){return e===U&&$(G,t,r),y(e),t=w(t,!0),y(r),i(B,t)?(r.enumerable?(i(e,M)&&e[M][t]&&(e[M][t]=!1),r=L(r,{enumerable:x(0,!1)})):(i(e,M)||C(e,M,x(1,{})),e[M][t]=!0),Y(e,t,r)):C(e,t,r)},q=function(e,t){y(e);for(var r,n=g(t=E(t)),i=0,o=n.length;o>i;)$(e,r=n[i++],t[r]);return e},X=function(e){var t=F.call(this,e=w(e,!0));return!(this===U&&i(B,e)&&!i(G,e))&&(!(t||!i(this,e)||!i(B,e)||i(this,M)&&this[M][e])||t)},J=function(e,t){if(e=E(e),t=w(t,!0),e!==U||!i(B,t)||i(G,t)){var r=A(e,t);return!r||!i(B,t)||i(e,M)&&e[M][t]||(r.enumerable=!0),r}},Q=function(e){for(var t,r=k(E(e)),n=[],o=0;r.length>o;)i(B,t=r[o++])||t==M||t==c||n.push(t);return n},ee=function(e){for(var t,r=e===U,n=k(r?G:E(e)),o=[],a=0;n.length>a;)!i(B,t=n[a++])||r&&!i(U,t)||o.push(B[t]);return o};H||(s((D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(r){this===U&&t.call(G,r),i(this,M)&&i(this[M],e)&&(this[M][e]=!1),Y(this,e,x(1,r))};return o&&V&&Y(U,e,{configurable:!0,set:t}),W(e)}).prototype,"toString",(function(){return this._k})),S.f=J,P.f=$,r(10215).f=O.f=Q,r(66747).f=X,T.f=ee,o&&!r(31897)&&s(U,"propertyIsEnumerable",X,!0),f.f=function(e){return W(h(e))}),a(a.G+a.W+a.F*!H,{Symbol:D});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;te.length>re;)h(te[re++]);for(var ne=I(h.store),ie=0;ne.length>ie;)m(ne[ie++]);a(a.S+a.F*!H,"Symbol",{for:function(e){return i(Z,e+="")?Z[e]:Z[e]=D(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in Z)if(Z[t]===e)return t},useSetter:function(){V=!0},useSimple:function(){V=!1}}),a(a.S+a.F*!H,"Object",{create:function(e,t){return void 0===t?L(e):q(L(e),t)},defineProperty:$,defineProperties:q,getOwnPropertyDescriptor:J,getOwnPropertyNames:Q,getOwnPropertySymbols:ee});var oe=l((function(){T.f(1)}));a(a.S+a.F*oe,"Object",{getOwnPropertySymbols:function(e){return T.f(_(e))}}),N&&a(a.S+a.F*(!H||l((function(){var e=D();return"[null]"!=R([e])||"{}"!=R({a:e})||"{}"!=R(Object(e))}))),"JSON",{stringify:function(e){for(var t,r,n=[e],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=t=n[1],(b(t)||void 0!==e)&&!K(e))return v(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!K(t))return t}),n[1]=t,R.apply(N,n)}}),D.prototype[j]||r(76494)(D.prototype,j,D.prototype.valueOf),d(D,"Symbol"),d(Math,"Math",!0),d(n.JSON,"JSON",!0)},33929:(e,t,r)=>{r(26234)("asyncIterator")},75702:(e,t,r)=>{r(26234)("observable")},20704:(e,t,r)=>{r(4063);for(var n=r(6654),i=r(76494),o=r(15180),a=r(40053)("toStringTag"),s="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".split(","),c=0;c<s.length;c++){var l=s[c],u=n[l],d=u&&u.prototype;d&&!d[a]&&i(d,a,l),o[l]=o.Array}},31615:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r<e.length;r++)t.push(255&e.charCodeAt(r));return t},bytesToString:function(e){for(var t=[],r=0;r<e.length;r++)t.push(String.fromCharCode(e[r]));return t.join("")}}};e.exports=t},64403:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var a=i.apply(null,r);a&&e.push(a)}else if("object"===o)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},67367:(e,t,r)=>{r(19457);var n=r(67290);e.exports=n.Object.values},95831:(e,t,r)=>{r(21682);var n=r(13145);e.exports=n("String","padStart")},89694:(e,t,r)=>{r(66816);var n=r(13145);e.exports=n("String","trimLeft")},66396:(e,t,r)=>{r(52729);var n=r(20127);e.exports=n.f("asyncIterator")},56143:(e,t,r)=>{var n=r(94648);e.exports=n},37460:(e,t,r)=>{var n=r(98518);e.exports=n},25587:(e,t,r)=>{var n=r(50537);e.exports=n},71674:(e,t,r)=>{var n=r(82518);e.exports=n},97676:(e,t,r)=>{var n=r(75277),i=r(28768);e.exports=function(e){if(n(e))return e;throw TypeError(i(e)+" is not a function")}},83875:(e,t,r)=>{var n=r(52786);e.exports=function(e){if(n(e))return e;throw TypeError(String(e)+" is not an object")}},37190:(e,t,r)=>{var n=r(29580),i=r(32565),o=r(47046),a=function(e){return function(t,r,a){var s,c=n(t),l=o(c),u=i(a,l);if(e&&r!=r){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},79159:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},36994:(e,t,r)=>{var n=r(57301),i=r(75277),o=r(79159),a=r(52280)("toStringTag"),s="Arguments"==o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),a))?r:s?o(t):"Object"==(n=o(t))&&i(t.callee)?"Arguments":n}},73870:(e,t,r)=>{var n=r(24792),i=r(31561),o=r(66012),a=r(86385);e.exports=function(e,t){for(var r=i(t),s=a.f,c=o.f,l=0;l<r.length;l++){var u=r[l];n(e,u)||s(e,u,c(t,u))}}},45899:(e,t,r)=>{var n=r(7493),i=r(86385),o=r(69199);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},69199:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},68308:(e,t,r)=>{var n=r(67290),i=r(24792),o=r(20127),a=r(86385).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},7493:(e,t,r)=>{var n=r(79044);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},92750:(e,t,r)=>{var n=r(98363),i=r(52786),o=n.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},82647:(e,t,r)=>{var n=r(22773);e.exports=n("navigator","userAgent")||""},11197:(e,t,r)=>{var n,i,o=r(98363),a=r(82647),s=o.process,c=o.Deno,l=s&&s.versions||c&&c.version,u=l&&l.v8;u?i=(n=u.split("."))[0]<4?1:n[0]+n[1]:a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=n[1]),e.exports=i&&+i},13145:(e,t,r)=>{var n=r(98363),i=r(98166),o=Function.call;e.exports=function(e,t,r){return i(o,n[e].prototype[t],r)}},48869:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},19882:(e,t,r)=>{var n=r(98363),i=r(66012).f,o=r(45899),a=r(35974),s=r(51621),c=r(73870),l=r(86291);e.exports=function(e,t){var r,u,d,p,h,f=e.target,m=e.global,g=e.stat;if(r=m?n:g?n[f]||s(f,{}):(n[f]||{}).prototype)for(u in t){if(p=t[u],d=e.noTargetGet?(h=i(r,u))&&h.value:r[u],!l(m?u:f+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;c(p,d)}(e.sham||d&&d.sham)&&o(p,"sham",!0),a(r,u,p,e)}}},79044:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},98166:(e,t,r)=>{var n=r(97676);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},55316:(e,t,r)=>{var n=r(7493),i=r(24792),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=i(o,"name"),c=s&&"something"===function(){}.name,l=s&&(!n||n&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:l}},22773:(e,t,r)=>{var n=r(98363),i=r(75277);e.exports=function(e,t){return arguments.length<2?function(e){return i(e)?e:void 0}(n[e]):n[e]&&n[e][t]}},97219:(e,t,r)=>{var n=r(97676);e.exports=function(e,t){var r=e[t];return null==r?void 0:n(r)}},98363:(e,t,r)=>{var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},24792:(e,t,r)=>{var n=r(30744),i={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return i.call(n(e),t)}},47505:e=>{e.exports={}},67548:(e,t,r)=>{var n=r(7493),i=r(79044),o=r(92750);e.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},78609:(e,t,r)=>{var n=r(79044),i=r(79159),o="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},56429:(e,t,r)=>{var n=r(75277),i=r(49415),o=Function.toString;n(i.inspectSource)||(i.inspectSource=function(e){return o.call(e)}),e.exports=i.inspectSource},20821:(e,t,r)=>{var n,i,o,a=r(36830),s=r(98363),c=r(52786),l=r(45899),u=r(24792),d=r(49415),p=r(50466),h=r(47505),f="Object already initialized",m=s.WeakMap;if(a||d.state){var g=d.state||(d.state=new m),v=g.get,y=g.has,b=g.set;n=function(e,t){if(y.call(g,e))throw new TypeError(f);return t.facade=e,b.call(g,e,t),t},i=function(e){return v.call(g,e)||{}},o=function(e){return y.call(g,e)}}else{var _=p("state");h[_]=!0,n=function(e,t){if(u(e,_))throw new TypeError(f);return t.facade=e,l(e,_,t),t},i=function(e){return u(e,_)?e[_]:{}},o=function(e){return u(e,_)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},75277:e=>{e.exports=function(e){return"function"==typeof e}},86291:(e,t,r)=>{var n=r(79044),i=r(75277),o=/#|\.prototype\./,a=function(e,t){var r=c[s(e)];return r==u||r!=l&&(i(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=a.data={},l=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},52786:(e,t,r)=>{var n=r(75277);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},21178:e=>{e.exports=!1},66681:(e,t,r)=>{var n=r(75277),i=r(22773),o=r(189);e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return n(t)&&Object(e)instanceof t}},47046:(e,t,r)=>{var n=r(35108);e.exports=function(e){return n(e.length)}},3850:(e,t,r)=>{var n=r(11197),i=r(79044);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},36830:(e,t,r)=>{var n=r(98363),i=r(75277),o=r(56429),a=n.WeakMap;e.exports=i(a)&&/native code/.test(o(a))},86385:(e,t,r)=>{var n=r(7493),i=r(67548),o=r(83875),a=r(383),s=Object.defineProperty;t.f=n?s:function(e,t,r){if(o(e),t=a(t),o(r),i)try{return s(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},66012:(e,t,r)=>{var n=r(7493),i=r(81513),o=r(69199),a=r(29580),s=r(383),c=r(24792),l=r(67548),u=Object.getOwnPropertyDescriptor;t.f=n?u:function(e,t){if(e=a(e),t=s(t),l)try{return u(e,t)}catch(e){}if(c(e,t))return o(!i.f.call(e,t),e[t])}},87994:(e,t,r)=>{var n=r(18794),i=r(48869).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},89612:(e,t)=>{t.f=Object.getOwnPropertySymbols},18794:(e,t,r)=>{var n=r(24792),i=r(29580),o=r(37190).indexOf,a=r(47505);e.exports=function(e,t){var r,s=i(e),c=0,l=[];for(r in s)!n(a,r)&&n(s,r)&&l.push(r);for(;t.length>c;)n(s,r=t[c++])&&(~o(l,r)||l.push(r));return l}},60667:(e,t,r)=>{var n=r(18794),i=r(48869);e.exports=Object.keys||function(e){return n(e,i)}},81513:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);t.f=i?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},8765:(e,t,r)=>{var n=r(7493),i=r(60667),o=r(29580),a=r(81513).f,s=function(e){return function(t){for(var r,s=o(t),c=i(s),l=c.length,u=0,d=[];l>u;)r=c[u++],n&&!a.call(s,r)||d.push(e?[r,s[r]]:s[r]);return d}};e.exports={entries:s(!0),values:s(!1)}},17141:(e,t,r)=>{var n=r(75277),i=r(52786);e.exports=function(e,t){var r,o;if("string"===t&&n(r=e.toString)&&!i(o=r.call(e)))return o;if(n(r=e.valueOf)&&!i(o=r.call(e)))return o;if("string"!==t&&n(r=e.toString)&&!i(o=r.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},31561:(e,t,r)=>{var n=r(22773),i=r(87994),o=r(89612),a=r(83875);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?t.concat(r(e)):t}},67290:(e,t,r)=>{var n=r(98363);e.exports=n},35974:(e,t,r)=>{var n=r(98363),i=r(75277),o=r(24792),a=r(45899),s=r(51621),c=r(56429),l=r(20821),u=r(55316).CONFIGURABLE,d=l.get,p=l.enforce,h=String(String).split("String");(e.exports=function(e,t,r,c){var l,d=!!c&&!!c.unsafe,f=!!c&&!!c.enumerable,m=!!c&&!!c.noTargetGet,g=c&&void 0!==c.name?c.name:t;i(r)&&("Symbol("===String(g).slice(0,7)&&(g="["+String(g).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(r,"name")||u&&r.name!==g)&&a(r,"name",g),(l=p(r)).source||(l.source=h.join("string"==typeof g?g:""))),e!==n?(d?!m&&e[t]&&(f=!0):delete e[t],f?e[t]=r:a(e,t,r)):f?e[t]=r:s(t,r)})(Function.prototype,"toString",(function(){return i(this)&&d(this).source||c(this)}))},96411:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},51621:(e,t,r)=>{var n=r(98363);e.exports=function(e,t){try{Object.defineProperty(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},50466:(e,t,r)=>{var n=r(53580),i=r(34524),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},49415:(e,t,r)=>{var n=r(98363),i=r(51621),o="__core-js_shared__",a=n[o]||i(o,{});e.exports=a},53580:(e,t,r)=>{var n=r(21178),i=r(49415);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.18.3",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},5167:(e,t,r)=>{var n=r(82647);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(n)},98385:(e,t,r)=>{var n=r(35108),i=r(28967),o=r(26031),a=r(96411),s=Math.ceil,c=function(e){return function(t,r,c){var l,u,d=i(a(t)),p=n(r),h=d.length,f=void 0===c?" ":i(c);return p<=h||""==f?d:(l=p-h,(u=o.call(f,s(l/f.length))).length>l&&(u=u.slice(0,l)),e?d+u:u+d)}};e.exports={start:c(!1),end:c(!0)}},26031:(e,t,r)=>{"use strict";var n=r(14229),i=r(28967),o=r(96411);e.exports=function(e){var t=i(o(this)),r="",a=n(e);if(a<0||a==1/0)throw RangeError("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(r+=t);return r}},68487:(e,t,r)=>{var n=r(55316).PROPER,i=r(79044),o=r(2569);e.exports=function(e){return i((function(){return!!o[e]()||"​…᠎"!=="​…᠎"[e]()||n&&o[e].name!==e}))}},10287:(e,t,r)=>{var n=r(96411),i=r(28967),o="["+r(2569)+"]",a=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),c=function(e){return function(t){var r=i(n(t));return 1&e&&(r=r.replace(a,"")),2&e&&(r=r.replace(s,"")),r}};e.exports={start:c(1),end:c(2),trim:c(3)}},32565:(e,t,r)=>{var n=r(14229),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},29580:(e,t,r)=>{var n=r(78609),i=r(96411);e.exports=function(e){return n(i(e))}},14229:e=>{var t=Math.ceil,r=Math.floor;e.exports=function(e){var n=+e;return n!=n||0===n?0:(n>0?r:t)(n)}},35108:(e,t,r)=>{var n=r(14229),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},30744:(e,t,r)=>{var n=r(96411);e.exports=function(e){return Object(n(e))}},21893:(e,t,r)=>{var n=r(52786),i=r(66681),o=r(97219),a=r(17141),s=r(52280)("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var r,c=o(e,s);if(c){if(void 0===t&&(t="default"),r=c.call(e,t),!n(r)||i(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},383:(e,t,r)=>{var n=r(21893),i=r(66681);e.exports=function(e){var t=n(e,"string");return i(t)?t:String(t)}},57301:(e,t,r)=>{var n={};n[r(52280)("toStringTag")]="z",e.exports="[object z]"===String(n)},28967:(e,t,r)=>{var n=r(36994);e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}},28768:e=>{e.exports=function(e){try{return String(e)}catch(e){return"Object"}}},34524:e=>{var t=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+r).toString(36)}},189:(e,t,r)=>{var n=r(3850);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},20127:(e,t,r)=>{var n=r(52280);t.f=n},52280:(e,t,r)=>{var n=r(98363),i=r(53580),o=r(24792),a=r(34524),s=r(3850),c=r(189),l=i("wks"),u=n.Symbol,d=c?u:u&&u.withoutSetter||a;e.exports=function(e){return o(l,e)&&(s||"string"==typeof l[e])||(s&&o(u,e)?l[e]=u[e]:l[e]=d("Symbol."+e)),l[e]}},2569:e=>{e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},19457:(e,t,r)=>{var n=r(19882),i=r(8765).values;n({target:"Object",stat:!0},{values:function(e){return i(e)}})},21682:(e,t,r)=>{"use strict";var n=r(19882),i=r(98385).start;n({target:"String",proto:!0,forced:r(5167)},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},66816:(e,t,r)=>{"use strict";var n=r(19882),i=r(10287).start,o=r(68487)("trimStart"),a=o?function(){return i(this)}:"".trimStart;n({target:"String",proto:!0,name:"trimStart",forced:o},{trimStart:a,trimLeft:a})},52729:(e,t,r)=>{r(68308)("asyncIterator")},94648:(e,t,r)=>{var n=r(67367);e.exports=n},98518:(e,t,r)=>{var n=r(95831);e.exports=n},50537:(e,t,r)=>{var n=r(89694);e.exports=n},82518:(e,t,r)=>{var n=r(66396);e.exports=n},51041:e=>{var t,r;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=r.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],r=0,n=0;r<e.length;r++,n+=8)t[n>>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r<32*e.length;r+=8)t.push(e[r>>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r<e.length;r++)t.push((e[r]>>>4).toString(16)),t.push((15&e[r]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substr(r,2),16));return t},bytesToBase64:function(e){for(var r=[],n=0;n<e.length;n+=3)for(var i=e[n]<<16|e[n+1]<<8|e[n+2],o=0;o<4;o++)8*n+6*o<=8*e.length?r.push(t.charAt(i>>>6*(3-o)&63)):r.push("=");return r.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],n=0,i=0;n<e.length;i=++n%4)0!=i&&r.push((t.indexOf(e.charAt(n-1))&Math.pow(2,-2*i+8)-1)<<2*i|t.indexOf(e.charAt(n))>>>6-2*i);return r}},e.exports=r},33947:e=>{"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),n=new RegExp("("+t+")+","gi");function i(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],i(r),i(n))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(r)||[],n=1;n<t.length;n++)t=(e=i(t,n).join("")).match(r)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=n.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var i=o(r[0]);i!==r[0]&&(t[r[0]]=i)}r=n.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var c=a[s];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}},9637:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e){void 0===e&&(e=(0,i.default)());try{return e.activeElement}catch(e){}};var i=n(r(62310));e.exports=t.default},88655:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,i.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var i=n(r(73008));e.exports=t.default},73008:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},34973:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=void 0;var i=n(r(88655));t.addClass=i.default;var o=n(r(2734));t.removeClass=o.default;var a=n(r(73008));t.hasClass=a.default;var s={addClass:i.default,removeClass:o.default,hasClass:a.default};t.default=s},2734:e=>{"use strict";function t(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,r){e.classList?e.classList.remove(r):"string"==typeof e.className?e.className=t(e.className,r):e.setAttribute("class",t(e.className&&e.className.baseVal||"",r))}},9105:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=void 0;var i=function(){};n(r(75769)).default&&(i=document.addEventListener?function(e,t,r,n){return e.removeEventListener(t,r,n||!1)}:document.attachEvent?function(e,t,r){return e.detachEvent("on"+t,r)}:void 0);var o=i;t.default=o,e.exports=t.default},85822:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=void 0;var i=function(){};n(r(75769)).default&&(i=document.addEventListener?function(e,t,r,n){return e.addEventListener(t,r,n||!1)}:document.attachEvent?function(e,t,r){return e.attachEvent("on"+t,(function(t){(t=t||window.event).target=t.target||t.srcElement,t.currentTarget=e,r.call(e,t)}))}:void 0);var o=i;t.default=o,e.exports=t.default},62310:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return e&&e.getRootNode?e.getRootNode():e&&e.ownerDocument||document},e.exports=t.default},99607:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e,t,r){for(;e&&(o(e)||!(0,i.default)(e,t));)e=e===r||o(e)?void 0:e.parentNode;return e};var i=n(r(11637)),o=function(e){return null!=e&&e.nodeType===e.DOCUMENT_NODE};e.exports=t.default},35558:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=void 0;var i=n(r(75769)).default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):o(e,t)}:o;function o(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=i,e.exports=t.default},72038:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)},e.exports=t.default},11637:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e,t){if(!i&&o.default){var r=document.body,n=r.matches||r.matchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector;i=n?function(e,t){return n.call(e,t)}:s}return i?i(e,t):null};var i,o=n(r(75769)),a=n(r(28082));function s(e,t){for(var r=(0,a.default)(e.document||e.ownerDocument,t),n=0;r[n]&&r[n]!==e;)n++;return!!r[n]}e.exports=t.default},7115:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e){var t=(0,a.default)(e),r=(0,o.default)(t),n=t&&t.documentElement,s={top:0,left:0,height:0,width:0};if(t)return(0,i.default)(n,e)?(void 0!==e.getBoundingClientRect&&(s=e.getBoundingClientRect()),{top:s.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:s.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0),width:(null==s.width?e.offsetWidth:s.width)||0,height:(null==s.height?e.offsetHeight:s.height)||0}):s};var i=n(r(35558)),o=n(r(72038)),a=n(r(62310));e.exports=t.default},63889:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e){for(var t=(0,i.default)(e),r=e&&e.offsetParent;r&&"html"!==a(e)&&"static"===(0,o.default)(r,"position");)r=r.offsetParent;return r||t.documentElement};var i=n(r(62310)),o=n(r(95463));function a(e){return e.nodeName&&e.nodeName.toLowerCase()}e.exports=t.default},1954:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e,t){var r,n={top:0,left:0};return"fixed"===(0,l.default)(e,"position")?r=e.getBoundingClientRect():(t=t||(0,a.default)(e),r=(0,o.default)(e),"html"!==function(e){return e.nodeName&&e.nodeName.toLowerCase()}(t)&&(n=(0,o.default)(t)),n.top+=parseInt((0,l.default)(t,"borderTopWidth"),10)-(0,s.default)(t)||0,n.left+=parseInt((0,l.default)(t,"borderLeftWidth"),10)-(0,c.default)(t)||0),(0,i.default)({},r,{top:r.top-n.top-(parseInt((0,l.default)(e,"marginTop"),10)||0),left:r.left-n.left-(parseInt((0,l.default)(e,"marginLeft"),10)||0)})};var i=n(r(33786)),o=n(r(7115)),a=n(r(63889)),s=n(r(51587)),c=n(r(82653)),l=n(r(95463));e.exports=t.default},28082:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){var i,o="#"===t[0],a="."===t[0],s=o||a?t.slice(1):t;return r.test(s)?o?(i=(e=e.getElementById?e:document).getElementById(s))?[i]:[]:e.getElementsByClassName&&a?n(e.getElementsByClassName(s)):n(e.getElementsByTagName(t)):n(e.querySelectorAll(t))};var r=/^[\w-]*$/,n=Function.prototype.bind.call(Function.prototype.call,[].slice);e.exports=t.default},82653:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e,t){var r=(0,i.default)(e);if(void 0===t)return r?"pageXOffset"in r?r.pageXOffset:r.document.documentElement.scrollLeft:e.scrollLeft;r?r.scrollTo(t,"pageYOffset"in r?r.pageYOffset:r.document.documentElement.scrollTop):e.scrollLeft=t};var i=n(r(72038));e.exports=t.default},51587:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e,t){var r=(0,i.default)(e);if(void 0===t)return r?"pageYOffset"in r?r.pageYOffset:r.document.documentElement.scrollTop:e.scrollTop;r?r.scrollTo("pageXOffset"in r?r.pageXOffset:r.document.documentElement.scrollLeft,t):e.scrollTop=t};var i=n(r(72038));e.exports=t.default},45746:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var r=e.style;"float"==(t=(0,i.default)(t))&&(t="styleFloat");var n=e.currentStyle[t]||null;if(null==n&&r&&r[t]&&(n=r[t]),a.test(n)&&!o.test(t)){var s=r.left,c=e.runtimeStyle,l=c&&c.left;l&&(c.left=e.currentStyle.left),r.left="fontSize"===t?"1em":n,n=r.pixelLeft+"px",r.left=s,l&&(c.left=l)}return n}}};var i=n(r(76294)),o=/^(top|right|bottom|left)$/,a=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},95463:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e,t,r){var n="",u="",d=t;if("string"==typeof t){if(void 0===r)return e.style[(0,i.default)(t)]||(0,a.default)(e).getPropertyValue((0,o.default)(t));(d={})[t]=r}Object.keys(d).forEach((function(t){var r=d[t];r||0===r?(0,l.default)(t)?u+=t+"("+r+") ":n+=(0,o.default)(t)+": "+r+";":(0,s.default)(e,(0,o.default)(t))})),u&&(n+=c.transform+": "+u+";"),e.style.cssText+=";"+n};var i=n(r(76294)),o=n(r(74086)),a=n(r(45746)),s=n(r(59298)),c=r(16860),l=n(r(20330));e.exports=t.default},59298:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default},20330:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return!(!e||!r.test(e))};var r=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},16860:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var i,o,a,s,c,l,u,d,p,h,f,m=n(r(75769)),g="transform";if(t.transform=g,t.animationEnd=a,t.transitionEnd=o,t.transitionDelay=u,t.transitionTiming=l,t.transitionDuration=c,t.transitionProperty=s,t.animationDelay=f,t.animationTiming=h,t.animationDuration=p,t.animationName=d,m.default){var v=function(){for(var e,t,r=document.createElement("div").style,n={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},i=Object.keys(n),o="",a=0;a<i.length;a++){var s=i[a];if(s+"TransitionProperty"in r){o="-"+s.toLowerCase(),e=n[s]("TransitionEnd"),t=n[s]("AnimationEnd");break}}return!e&&"transitionProperty"in r&&(e="transitionend"),!t&&"animationName"in r&&(t="animationend"),r=null,{animationEnd:t,transitionEnd:e,prefix:o}}();i=v.prefix,t.transitionEnd=o=v.transitionEnd,t.animationEnd=a=v.animationEnd,t.transform=g=i+"-"+g,t.transitionProperty=s=i+"-transition-property",t.transitionDuration=c=i+"-transition-duration",t.transitionDelay=u=i+"-transition-delay",t.transitionTiming=l=i+"-transition-timing-function",t.animationName=d=i+"-animation-name",t.animationDuration=p=i+"-animation-duration",t.animationTiming=h=i+"-animation-delay",t.animationDelay=f=i+"-animation-timing-function"}var y={transform:g,end:o,property:s,timing:l,delay:u,duration:c};t.default=y},62577:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return e.replace(r,(function(e,t){return t.toUpperCase()}))};var r=/-(.)/g;e.exports=t.default},76294:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e){return(0,i.default)(e.replace(o,"ms-"))};var i=n(r(62577)),o=/^-ms-/;e.exports=t.default},99349:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return e.replace(r,"-$1").toLowerCase()};var r=/([A-Z])/g;e.exports=t.default},74086:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e){return(0,i.default)(e).replace(o,"-ms-")};var i=n(r(99349)),o=/^ms-/;e.exports=t.default},75769:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0;var r=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=r,e.exports=t.default},14347:(e,t,r)=>{"use strict";var n=r(95656);t.__esModule=!0,t.default=function(e){if((!i&&0!==i||e)&&o.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),i=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return i};var i,o=n(r(75769));e.exports=t.default},374:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=new WeakMap,n=new WeakMap;function i(e){const t=r.get(e);return console.assert(null!=t,"'this' is expected an Event object, but got",e),t}function o(e){null==e.passiveListener?e.event.cancelable&&(e.canceled=!0,"function"==typeof e.event.preventDefault&&e.event.preventDefault()):"undefined"!=typeof console&&"function"==typeof console.error&&console.error("Unable to preventDefault inside passive event listener invocation.",e.passiveListener)}function a(e,t){r.set(this,{eventTarget:e,event:t,eventPhase:2,currentTarget:e,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:t.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});const n=Object.keys(t);for(let e=0;e<n.length;++e){const t=n[e];t in this||Object.defineProperty(this,t,s(t))}}function s(e){return{get(){return i(this).event[e]},set(t){i(this).event[e]=t},configurable:!0,enumerable:!0}}function c(e){return{value(){const t=i(this).event;return t[e].apply(t,arguments)},configurable:!0,enumerable:!0}}function l(e){if(null==e||e===Object.prototype)return a;let t=n.get(e);return null==t&&(t=function(e,t){const r=Object.keys(t);if(0===r.length)return e;function n(t,r){e.call(this,t,r)}n.prototype=Object.create(e.prototype,{constructor:{value:n,configurable:!0,writable:!0}});for(let i=0;i<r.length;++i){const o=r[i];if(!(o in e.prototype)){const e="function"==typeof Object.getOwnPropertyDescriptor(t,o).value;Object.defineProperty(n.prototype,o,e?c(o):s(o))}}return n}(l(Object.getPrototypeOf(e)),e),n.set(e,t)),t}function u(e){return i(e).immediateStopped}function d(e,t){i(e).passiveListener=t}a.prototype={get type(){return i(this).event.type},get target(){return i(this).eventTarget},get currentTarget(){return i(this).currentTarget},composedPath(){const e=i(this).currentTarget;return null==e?[]:[e]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return i(this).eventPhase},stopPropagation(){const e=i(this);e.stopped=!0,"function"==typeof e.event.stopPropagation&&e.event.stopPropagation()},stopImmediatePropagation(){const e=i(this);e.stopped=!0,e.immediateStopped=!0,"function"==typeof e.event.stopImmediatePropagation&&e.event.stopImmediatePropagation()},get bubbles(){return Boolean(i(this).event.bubbles)},get cancelable(){return Boolean(i(this).event.cancelable)},preventDefault(){o(i(this))},get defaultPrevented(){return i(this).canceled},get composed(){return Boolean(i(this).event.composed)},get timeStamp(){return i(this).timeStamp},get srcElement(){return i(this).eventTarget},get cancelBubble(){return i(this).stopped},set cancelBubble(e){if(!e)return;const t=i(this);t.stopped=!0,"boolean"==typeof t.event.cancelBubble&&(t.event.cancelBubble=!0)},get returnValue(){return!i(this).canceled},set returnValue(e){e||o(i(this))},initEvent(){}},Object.defineProperty(a.prototype,"constructor",{value:a,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.Event&&(Object.setPrototypeOf(a.prototype,window.Event.prototype),n.set(window.Event.prototype,a));const p=new WeakMap;function h(e){return null!==e&&"object"==typeof e}function f(e){const t=p.get(e);if(null==t)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return t}function m(e,t){Object.defineProperty(e,`on${t}`,function(e){return{get(){let t=f(this).get(e);for(;null!=t;){if(3===t.listenerType)return t.listener;t=t.next}return null},set(t){"function"==typeof t||h(t)||(t=null);const r=f(this);let n=null,i=r.get(e);for(;null!=i;)3===i.listenerType?null!==n?n.next=i.next:null!==i.next?r.set(e,i.next):r.delete(e):n=i,i=i.next;if(null!==t){const i={listener:t,listenerType:3,passive:!1,once:!1,next:null};null===n?r.set(e,i):n.next=i}},configurable:!0,enumerable:!0}}(t))}function g(e){function t(){v.call(this)}t.prototype=Object.create(v.prototype,{constructor:{value:t,configurable:!0,writable:!0}});for(let r=0;r<e.length;++r)m(t.prototype,e[r]);return t}function v(){if(!(this instanceof v)){if(1===arguments.length&&Array.isArray(arguments[0]))return g(arguments[0]);if(arguments.length>0){const e=new Array(arguments.length);for(let t=0;t<arguments.length;++t)e[t]=arguments[t];return g(e)}throw new TypeError("Cannot call a class as a function")}p.set(this,new Map)}v.prototype={addEventListener(e,t,r){if(null==t)return;if("function"!=typeof t&&!h(t))throw new TypeError("'listener' should be a function or an object.");const n=f(this),i=h(r),o=(i?Boolean(r.capture):Boolean(r))?1:2,a={listener:t,listenerType:o,passive:i&&Boolean(r.passive),once:i&&Boolean(r.once),next:null};let s=n.get(e);if(void 0===s)return void n.set(e,a);let c=null;for(;null!=s;){if(s.listener===t&&s.listenerType===o)return;c=s,s=s.next}c.next=a},removeEventListener(e,t,r){if(null==t)return;const n=f(this),i=(h(r)?Boolean(r.capture):Boolean(r))?1:2;let o=null,a=n.get(e);for(;null!=a;){if(a.listener===t&&a.listenerType===i)return void(null!==o?o.next=a.next:null!==a.next?n.set(e,a.next):n.delete(e));o=a,a=a.next}},dispatchEvent(e){if(null==e||"string"!=typeof e.type)throw new TypeError('"event.type" should be a string.');const t=f(this),r=e.type;let n=t.get(r);if(null==n)return!0;const o=function(e,t){return new(l(Object.getPrototypeOf(t)))(e,t)}(this,e);let a=null;for(;null!=n;){if(n.once?null!==a?a.next=n.next:null!==n.next?t.set(r,n.next):t.delete(r):a=n,d(o,n.passive?n.listener:null),"function"==typeof n.listener)try{n.listener.call(this,o)}catch(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e)}else 3!==n.listenerType&&"function"==typeof n.listener.handleEvent&&n.listener.handleEvent(o);if(u(o))break;n=n.next}return d(o,null),function(e,t){i(e).eventPhase=0}(o),function(e,t){i(e).currentTarget=null}(o),!o.defaultPrevented}},Object.defineProperty(v.prototype,"constructor",{value:v,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.EventTarget&&Object.setPrototypeOf(v.prototype,window.EventTarget.prototype),t.defineEventAttribute=m,t.EventTarget=v,t.default=v,e.exports=v,e.exports.EventTarget=e.exports.default=v,e.exports.defineEventAttribute=m},5939:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&m(e,"error",t,{once:!0})}(e,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){var i,o,a,l;if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=c(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,l=u,console&&console.warn&&console.warn(l)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=u.bind(n);return i.listener=r,n.wrapFn=i,i}function p(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):f(i,i.length)}function h(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function f(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function m(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){n.once&&e.removeEventListener(t,i),r(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else{var l=c.length,u=f(c,l);for(r=0;r<l;++r)n(u[r],this,t)}return!0},o.prototype.addListener=function(e,t){return l(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return l(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,i,o,a;if(s(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},48195:e=>{"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),o=0;o<n.length;o++){var a=n[o],s=e[a];(i?-1!==t.indexOf(a):t(a,s,e))&&(r[a]=s)}return r}},60922:(e,t,r)=>{"use strict";(t=e.exports=r(26423).default).default=t},26423:(e,t)=>{"use strict";t.default=function(){function e(t,r,n,i){this.message=t,this.expected=r,this.found=n,this.location=i,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),{SyntaxError:e,parse:function(t){var r,n=arguments.length>1?arguments[1]:{},i={},o={start:Ie},a=Ie,s=function(e){return{type:"messageFormatPattern",elements:e,location:Oe()}},c=function(e){var t,r,n,i,o,a="";for(t=0,n=e.length;t<n;t+=1)for(r=0,o=(i=e[t]).length;r<o;r+=1)a+=i[r];return a},l=function(e){return{type:"messageTextElement",value:e,location:Oe()}},u=/^[^ \t\n\r,.+={}#]/,d={type:"class",value:"[^ \\t\\n\\r,.+={}#]",description:"[^ \\t\\n\\r,.+={}#]"},p="{",h={type:"literal",value:"{",description:'"{"'},f=",",m={type:"literal",value:",",description:'","'},g="}",v={type:"literal",value:"}",description:'"}"'},y=function(e,t){return{type:"argumentElement",id:e,format:t&&t[2],location:Oe()}},b="number",_={type:"literal",value:"number",description:'"number"'},E="date",w={type:"literal",value:"date",description:'"date"'},x="time",L={type:"literal",value:"time",description:'"time"'},O=function(e,t){return{type:e+"Format",style:t&&t[2],location:Oe()}},S="plural",T={type:"literal",value:"plural",description:'"plural"'},P=function(e){return{type:e.type,ordinal:!1,offset:e.offset||0,options:e.options,location:Oe()}},I="selectordinal",A={type:"literal",value:"selectordinal",description:'"selectordinal"'},C=function(e){return{type:e.type,ordinal:!0,offset:e.offset||0,options:e.options,location:Oe()}},k="select",D={type:"literal",value:"select",description:'"select"'},N=function(e){return{type:"selectFormat",options:e,location:Oe()}},R="=",M={type:"literal",value:"=",description:'"="'},j=function(e,t){return{type:"optionalFormatPattern",selector:e,value:t,location:Oe()}},F="offset:",Z={type:"literal",value:"offset:",description:'"offset:"'},B=function(e){return e},G=function(e,t){return{type:"pluralFormat",offset:e,options:t,location:Oe()}},U={type:"other",description:"whitespace"},H=/^[ \t\n\r]/,z={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},V={type:"other",description:"optionalWhitespace"},Y=/^[0-9]/,W={type:"class",value:"[0-9]",description:"[0-9]"},K=/^[0-9a-f]/i,$={type:"class",value:"[0-9a-f]i",description:"[0-9a-f]i"},q="0",X={type:"literal",value:"0",description:'"0"'},J=/^[1-9]/,Q={type:"class",value:"[1-9]",description:"[1-9]"},ee=function(e){return parseInt(e,10)},te=/^[^{}\\\0-\x1F \t\n\r]/,re={type:"class",value:"[^{}\\\\\\0-\\x1F\\x7f \\t\\n\\r]",description:"[^{}\\\\\\0-\\x1F\\x7f \\t\\n\\r]"},ne="\\\\",ie={type:"literal",value:"\\\\",description:'"\\\\\\\\"'},oe=function(){return"\\"},ae="\\#",se={type:"literal",value:"\\#",description:'"\\\\#"'},ce=function(){return"\\#"},le="\\{",ue={type:"literal",value:"\\{",description:'"\\\\{"'},de=function(){return"{"},pe="\\}",he={type:"literal",value:"\\}",description:'"\\\\}"'},fe=function(){return"}"},me="\\u",ge={type:"literal",value:"\\u",description:'"\\\\u"'},ve=function(e){return String.fromCharCode(parseInt(e,16))},ye=function(e){return e.join("")},be=0,_e=0,Ee=[{line:1,column:1,seenCR:!1}],we=0,xe=[],Le=0;if("startRule"in n){if(!(n.startRule in o))throw new Error("Can't start parsing from rule \""+n.startRule+'".');a=o[n.startRule]}function Oe(){return Te(_e,be)}function Se(e){var r,n,i=Ee[e];if(i)return i;for(r=e-1;!Ee[r];)r--;for(i={line:(i=Ee[r]).line,column:i.column,seenCR:i.seenCR};r<e;)"\n"===(n=t.charAt(r))?(i.seenCR||i.line++,i.column=1,i.seenCR=!1):"\r"===n||"\u2028"===n||"\u2029"===n?(i.line++,i.column=1,i.seenCR=!0):(i.column++,i.seenCR=!1),r++;return Ee[e]=i,i}function Te(e,t){var r=Se(e),n=Se(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function Pe(e){be<we||(be>we&&(we=be,xe=[]),xe.push(e))}function Ie(){return Ae()}function Ae(){var e,t,r;for(e=be,t=[],r=Ce();r!==i;)t.push(r),r=Ce();return t!==i&&(_e=e,t=s(t)),t}function Ce(){var e;return(e=function(){var e,t;return e=be,(t=ke())!==i&&(_e=e,t=l(t)),t}())===i&&(e=function(){var e,r,n,o,a,s,c;return e=be,123===t.charCodeAt(be)?(r=p,be++):(r=i,0===Le&&Pe(h)),r!==i&&je()!==i&&(n=function(){var e,r,n;if((e=Be())===i){if(e=be,r=[],u.test(t.charAt(be))?(n=t.charAt(be),be++):(n=i,0===Le&&Pe(d)),n!==i)for(;n!==i;)r.push(n),u.test(t.charAt(be))?(n=t.charAt(be),be++):(n=i,0===Le&&Pe(d));else r=i;e=r!==i?t.substring(e,be):r}return e}())!==i&&je()!==i?(o=be,44===t.charCodeAt(be)?(a=f,be++):(a=i,0===Le&&Pe(m)),a!==i&&(s=je())!==i&&(c=function(){var e;return(e=function(){var e,r,n,o,a,s;return e=be,t.substr(be,6)===b?(r=b,be+=6):(r=i,0===Le&&Pe(_)),r===i&&(t.substr(be,4)===E?(r=E,be+=4):(r=i,0===Le&&Pe(w)),r===i&&(t.substr(be,4)===x?(r=x,be+=4):(r=i,0===Le&&Pe(L)))),r!==i&&je()!==i?(n=be,44===t.charCodeAt(be)?(o=f,be++):(o=i,0===Le&&Pe(m)),o!==i&&(a=je())!==i&&(s=Ue())!==i?n=o=[o,a,s]:(be=n,n=i),n===i&&(n=null),n!==i?(_e=e,e=r=O(r,n)):(be=e,e=i)):(be=e,e=i),e}())===i&&(e=function(){var e,r,n,o;return e=be,t.substr(be,6)===S?(r=S,be+=6):(r=i,0===Le&&Pe(T)),r!==i&&je()!==i?(44===t.charCodeAt(be)?(n=f,be++):(n=i,0===Le&&Pe(m)),n!==i&&je()!==i&&(o=Re())!==i?(_e=e,e=r=P(o)):(be=e,e=i)):(be=e,e=i),e}())===i&&(e=function(){var e,r,n,o;return e=be,t.substr(be,13)===I?(r=I,be+=13):(r=i,0===Le&&Pe(A)),r!==i&&je()!==i?(44===t.charCodeAt(be)?(n=f,be++):(n=i,0===Le&&Pe(m)),n!==i&&je()!==i&&(o=Re())!==i?(_e=e,e=r=C(o)):(be=e,e=i)):(be=e,e=i),e}())===i&&(e=function(){var e,r,n,o,a;if(e=be,t.substr(be,6)===k?(r=k,be+=6):(r=i,0===Le&&Pe(D)),r!==i)if(je()!==i)if(44===t.charCodeAt(be)?(n=f,be++):(n=i,0===Le&&Pe(m)),n!==i)if(je()!==i){if(o=[],(a=De())!==i)for(;a!==i;)o.push(a),a=De();else o=i;o!==i?(_e=e,e=r=N(o)):(be=e,e=i)}else be=e,e=i;else be=e,e=i;else be=e,e=i;else be=e,e=i;return e}()),e}())!==i?o=a=[a,s,c]:(be=o,o=i),o===i&&(o=null),o!==i&&(a=je())!==i?(125===t.charCodeAt(be)?(s=g,be++):(s=i,0===Le&&Pe(v)),s!==i?(_e=e,e=r=y(n,o)):(be=e,e=i)):(be=e,e=i)):(be=e,e=i),e}()),e}function ke(){var e,r,n,o,a,s;if(e=be,r=[],n=be,(o=je())!==i&&(a=Ue())!==i&&(s=je())!==i?n=o=[o,a,s]:(be=n,n=i),n!==i)for(;n!==i;)r.push(n),n=be,(o=je())!==i&&(a=Ue())!==i&&(s=je())!==i?n=o=[o,a,s]:(be=n,n=i);else r=i;return r!==i&&(_e=e,r=c(r)),(e=r)===i&&(e=be,e=(r=Me())!==i?t.substring(e,be):r),e}function De(){var e,r,n,o,a;return e=be,je()!==i&&(r=function(){var e,r,n,o;return e=be,r=be,61===t.charCodeAt(be)?(n=R,be++):(n=i,0===Le&&Pe(M)),n!==i&&(o=Be())!==i?r=n=[n,o]:(be=r,r=i),(e=r!==i?t.substring(e,be):r)===i&&(e=Ue()),e}())!==i&&je()!==i?(123===t.charCodeAt(be)?(n=p,be++):(n=i,0===Le&&Pe(h)),n!==i&&je()!==i&&(o=Ae())!==i&&je()!==i?(125===t.charCodeAt(be)?(a=g,be++):(a=i,0===Le&&Pe(v)),a!==i?(_e=e,e=j(r,o)):(be=e,e=i)):(be=e,e=i)):(be=e,e=i),e}function Ne(){var e,r,n;return e=be,t.substr(be,7)===F?(r=F,be+=7):(r=i,0===Le&&Pe(Z)),r!==i&&je()!==i&&(n=Be())!==i?(_e=e,e=r=B(n)):(be=e,e=i),e}function Re(){var e,t,r,n;if(e=be,(t=Ne())===i&&(t=null),t!==i)if(je()!==i){if(r=[],(n=De())!==i)for(;n!==i;)r.push(n),n=De();else r=i;r!==i?(_e=e,e=t=G(t,r)):(be=e,e=i)}else be=e,e=i;else be=e,e=i;return e}function Me(){var e,r;if(Le++,e=[],H.test(t.charAt(be))?(r=t.charAt(be),be++):(r=i,0===Le&&Pe(z)),r!==i)for(;r!==i;)e.push(r),H.test(t.charAt(be))?(r=t.charAt(be),be++):(r=i,0===Le&&Pe(z));else e=i;return Le--,e===i&&(r=i,0===Le&&Pe(U)),e}function je(){var e,r,n;for(Le++,e=be,r=[],n=Me();n!==i;)r.push(n),n=Me();return e=r!==i?t.substring(e,be):r,Le--,e===i&&(r=i,0===Le&&Pe(V)),e}function Fe(){var e;return Y.test(t.charAt(be))?(e=t.charAt(be),be++):(e=i,0===Le&&Pe(W)),e}function Ze(){var e;return K.test(t.charAt(be))?(e=t.charAt(be),be++):(e=i,0===Le&&Pe($)),e}function Be(){var e,r,n,o,a,s;if(e=be,48===t.charCodeAt(be)?(r=q,be++):(r=i,0===Le&&Pe(X)),r===i){if(r=be,n=be,J.test(t.charAt(be))?(o=t.charAt(be),be++):(o=i,0===Le&&Pe(Q)),o!==i){for(a=[],s=Fe();s!==i;)a.push(s),s=Fe();a!==i?n=o=[o,a]:(be=n,n=i)}else be=n,n=i;r=n!==i?t.substring(r,be):n}return r!==i&&(_e=e,r=ee(r)),r}function Ge(){var e,r,n,o,a,s,c,l;return te.test(t.charAt(be))?(e=t.charAt(be),be++):(e=i,0===Le&&Pe(re)),e===i&&(e=be,t.substr(be,2)===ne?(r=ne,be+=2):(r=i,0===Le&&Pe(ie)),r!==i&&(_e=e,r=oe()),(e=r)===i&&(e=be,t.substr(be,2)===ae?(r=ae,be+=2):(r=i,0===Le&&Pe(se)),r!==i&&(_e=e,r=ce()),(e=r)===i&&(e=be,t.substr(be,2)===le?(r=le,be+=2):(r=i,0===Le&&Pe(ue)),r!==i&&(_e=e,r=de()),(e=r)===i&&(e=be,t.substr(be,2)===pe?(r=pe,be+=2):(r=i,0===Le&&Pe(he)),r!==i&&(_e=e,r=fe()),(e=r)===i&&(e=be,t.substr(be,2)===me?(r=me,be+=2):(r=i,0===Le&&Pe(ge)),r!==i?(n=be,o=be,(a=Ze())!==i&&(s=Ze())!==i&&(c=Ze())!==i&&(l=Ze())!==i?o=a=[a,s,c,l]:(be=o,o=i),(n=o!==i?t.substring(n,be):o)!==i?(_e=e,e=r=ve(n)):(be=e,e=i)):(be=e,e=i)))))),e}function Ue(){var e,t,r;if(e=be,t=[],(r=Ge())!==i)for(;r!==i;)t.push(r),r=Ge();else t=i;return t!==i&&(_e=e,t=ye(t)),t}if((r=a())!==i&&be===t.length)return r;throw r!==i&&be<t.length&&Pe({type:"end",description:"end of input"}),function(t,r,n,i){return null!==r&&function(e){var t=1;for(e.sort((function(e,t){return e.description<t.description?-1:e.description>t.description?1:0}));t<e.length;)e[t-1]===e[t]?e.splice(t,1):t++}(r),new e(function(e,t){var r,n=new Array(e.length);for(r=0;r<e.length;r++)n[r]=e[r].description;return"Expected "+(e.length>1?n.slice(0,-1).join(", ")+" or "+n[e.length-1]:n[0])+" but "+(t?'"'+function(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,(function(e){return"\\x0"+t(e)})).replace(/[\x10-\x1F\x80-\xFF]/g,(function(e){return"\\x"+t(e)})).replace(/[\u0100-\u0FFF]/g,(function(e){return"\\u0"+t(e)})).replace(/[\u1000-\uFFFF]/g,(function(e){return"\\u"+t(e)}))}(t)+'"':"end of input")+" found."}(r,n),r,n,i)}(0,xe,we<t.length?t.charAt(we):null,we<t.length?Te(we,we+1):Te(we,we))}}}()},81246:e=>{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},11466:(e,t,r)=>{e.exports=function e(t,r,n){function i(a,s){if(!r[a]){if(!t[a]){if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[a]={exports:{}};t[a][0].call(l.exports,(function(e){return i(t[a][1][e]||e)}),l,l.exports,e,t,r,n)}return r[a].exports}for(var o=void 0,a=0;a<n.length;a++)i(n[a]);return i}({1:[function(e,t,n){(function(e){"use strict";var r,n,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,a=new i(u),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),r=function(){s.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)r="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var c=new e.MessageChannel;c.port1.onmessage=u,r=function(){c.port2.postMessage(0)}}var l=[];function u(){var e,t;n=!0;for(var r=l.length;r;){for(t=l,l=[],e=-1;++e<r;)t[e]();r=l.length}n=!1}t.exports=function(e){1!==l.push(e)||n||r()}}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,r){"use strict";var n=e(1);function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],c=["PENDING"];function l(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==i&&h(this,e)}function u(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function d(e,t,r){n((function(){var n;try{n=t(r)}catch(t){return o.reject(e,t)}n===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,n)}))}function p(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function h(e,t){var r=!1;function n(t){r||(r=!0,o.reject(e,t))}function i(t){r||(r=!0,o.resolve(e,t))}var a=f((function(){t(i,n)}));"error"===a.status&&n(a.value)}function f(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}t.exports=l,l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var r=new this.constructor(i);return this.state!==c?d(r,this.state===s?e:t,this.outcome):this.queue.push(new u(r,e,t)),r},u.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){o.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var r=f(p,t);if("error"===r.status)return o.reject(e,r.value);var n=r.value;if(n)h(e,n);else{e.state=s,e.outcome=t;for(var i=-1,a=e.queue.length;++i<a;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=a,e.outcome=t;for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},l.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},l.reject=function(e){var t=new this(i);return o.reject(t,e)},l.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var a=new Array(r),s=0,c=-1,l=new this(i);++c<r;)u(e[c],c);return l;function u(e,i){t.resolve(e).then((function(e){a[i]=e,++s!==r||n||(n=!0,o.resolve(l,a))}),(function(e){n||(n=!0,o.reject(l,e))}))}},l.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var a=-1,s=new this(i);++a<r;)c(e[a]);return s;function c(e){t.resolve(e).then((function(e){n||(n=!0,o.resolve(s,e))}),(function(e){n||(n=!0,o.reject(s,e))}))}}},{1:1}],3:[function(e,t,n){(function(t){"use strict";"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,r){"use strict";var n="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},i=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}();function o(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(i){if("TypeError"!==i.name)throw i;for(var r=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),n=0;n<e.length;n+=1)r.append(e[n]);return r.getBlob(t.type)}}"undefined"==typeof Promise&&e(3);var a=Promise;function s(e,t){t&&e.then((function(e){t(null,e)}),(function(e){t(e)}))}function c(e,t,r){"function"==typeof t&&e.then(t),"function"==typeof r&&e.catch(r)}function l(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function u(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var d="local-forage-detect-blob-support",p=void 0,h={},f=Object.prototype.toString,m="readonly",g="readwrite";function v(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),i=0;i<t;i++)n[i]=e.charCodeAt(i);return r}function y(e){var t=h[e.name],r={};r.promise=new a((function(e,t){r.resolve=e,r.reject=t})),t.deferredOperations.push(r),t.dbReady?t.dbReady=t.dbReady.then((function(){return r.promise})):t.dbReady=r.promise}function b(e){var t=h[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function _(e,t){var r=h[e.name].deferredOperations.pop();if(r)return r.reject(t),r.promise}function E(e,t){return new a((function(r,n){if(h[e.name]=h[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return r(e.db);y(e),e.db.close()}var o=[e.name];t&&o.push(e.version);var a=i.open.apply(i,o);t&&(a.onupgradeneeded=function(t){var r=a.result;try{r.createObjectStore(e.storeName),t.oldVersion<=1&&r.createObjectStore(d)}catch(r){if("ConstraintError"!==r.name)throw r;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),a.onerror=function(e){e.preventDefault(),n(a.error)},a.onsuccess=function(){var t=a.result;t.onversionchange=function(e){e.target.close()},r(t),b(e)}}))}function w(e){return E(e,!1)}function x(e){return E(e,!0)}function L(e,t){if(!e.db)return!0;var r=!e.db.objectStoreNames.contains(e.storeName),n=e.version<e.db.version,i=e.version>e.db.version;if(n&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),i||r){if(r){var o=e.db.version+1;o>e.version&&(e.version=o)}return!0}return!1}function O(e){return o([v(atob(e.data))],{type:e.type})}function S(e){return e&&e.__local_forage_encoded_blob}function T(e){var t=this,r=t._initReady().then((function(){var e=h[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return c(r,e,e),r}function P(e,t,r,n){void 0===n&&(n=1);try{var i=e.db.transaction(e.storeName,t);r(null,i)}catch(i){if(n>0&&(!e.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return a.resolve().then((function(){if(!e.db||"NotFoundError"===i.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),x(e)})).then((function(){return function(e){y(e);for(var t=h[e.name],r=t.forages,n=0;n<r.length;n++){var i=r[n];i._dbInfo.db&&(i._dbInfo.db.close(),i._dbInfo.db=null)}return e.db=null,w(e).then((function(t){return e.db=t,L(e)?x(e):t})).then((function(n){e.db=t.db=n;for(var i=0;i<r.length;i++)r[i]._dbInfo.db=n})).catch((function(t){throw _(e,t),t}))}(e).then((function(){P(e,t,r,n-1)}))})).catch(r);r(i)}}var I={_driver:"asyncStorage",_initStorage:function(e){var t=this,r={db:null};if(e)for(var n in e)r[n]=e[n];var i=h[r.name];i||(i={forages:[],db:null,dbReady:null,deferredOperations:[]},h[r.name]=i),i.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=T);var o=[];function s(){return a.resolve()}for(var c=0;c<i.forages.length;c++){var l=i.forages[c];l!==t&&o.push(l._initReady().catch(s))}var u=i.forages.slice(0);return a.all(o).then((function(){return r.db=i.db,w(r)})).then((function(e){return r.db=e,L(r,t._defaultConfig.version)?x(r):e})).then((function(e){r.db=i.db=e,t._dbInfo=r;for(var n=0;n<u.length;n++){var o=u[n];o!==t&&(o._dbInfo.db=r.db,o._dbInfo.version=r.version)}}))},_support:function(){try{if(!i||!i.open)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(e){return!1}}(),iterate:function(e,t){var r=this,n=new a((function(t,n){r.ready().then((function(){P(r._dbInfo,m,(function(i,o){if(i)return n(i);try{var a=o.objectStore(r._dbInfo.storeName).openCursor(),s=1;a.onsuccess=function(){var r=a.result;if(r){var n=r.value;S(n)&&(n=O(n));var i=e(n,r.key,s++);void 0!==i?t(i):r.continue()}else t()},a.onerror=function(){n(a.error)}}catch(e){n(e)}}))})).catch(n)}));return s(n,t),n},getItem:function(e,t){var r=this;e=l(e);var n=new a((function(t,n){r.ready().then((function(){P(r._dbInfo,m,(function(i,o){if(i)return n(i);try{var a=o.objectStore(r._dbInfo.storeName).get(e);a.onsuccess=function(){var e=a.result;void 0===e&&(e=null),S(e)&&(e=O(e)),t(e)},a.onerror=function(){n(a.error)}}catch(e){n(e)}}))})).catch(n)}));return s(n,t),n},setItem:function(e,t,r){var n=this;e=l(e);var i=new a((function(r,i){var s;n.ready().then((function(){return s=n._dbInfo,"[object Blob]"===f.call(t)?function(e){return"boolean"==typeof p?a.resolve(p):function(e){return new a((function(t){var r=e.transaction(d,g),n=o([""]);r.objectStore(d).put(n,"key"),r.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},r.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),r=navigator.userAgent.match(/Edge\//);t(r||!e||parseInt(e[1],10)>=43)}})).catch((function(){return!1}))}(e).then((function(e){return p=e}))}(s.db).then((function(e){return e?t:function(e){return new a((function(t,r){var n=new FileReader;n.onerror=r,n.onloadend=function(r){var n=btoa(r.target.result||"");t({__local_forage_encoded_blob:!0,data:n,type:e.type})},n.readAsBinaryString(e)}))}(t)})):t})).then((function(t){P(n._dbInfo,g,(function(o,a){if(o)return i(o);try{var s=a.objectStore(n._dbInfo.storeName);null===t&&(t=void 0);var c=s.put(t,e);a.oncomplete=function(){void 0===t&&(t=null),r(t)},a.onabort=a.onerror=function(){var e=c.error?c.error:c.transaction.error;i(e)}}catch(e){i(e)}}))})).catch(i)}));return s(i,r),i},removeItem:function(e,t){var r=this;e=l(e);var n=new a((function(t,n){r.ready().then((function(){P(r._dbInfo,g,(function(i,o){if(i)return n(i);try{var a=o.objectStore(r._dbInfo.storeName).delete(e);o.oncomplete=function(){t()},o.onerror=function(){n(a.error)},o.onabort=function(){var e=a.error?a.error:a.transaction.error;n(e)}}catch(e){n(e)}}))})).catch(n)}));return s(n,t),n},clear:function(e){var t=this,r=new a((function(e,r){t.ready().then((function(){P(t._dbInfo,g,(function(n,i){if(n)return r(n);try{var o=i.objectStore(t._dbInfo.storeName).clear();i.oncomplete=function(){e()},i.onabort=i.onerror=function(){var e=o.error?o.error:o.transaction.error;r(e)}}catch(e){r(e)}}))})).catch(r)}));return s(r,e),r},length:function(e){var t=this,r=new a((function(e,r){t.ready().then((function(){P(t._dbInfo,m,(function(n,i){if(n)return r(n);try{var o=i.objectStore(t._dbInfo.storeName).count();o.onsuccess=function(){e(o.result)},o.onerror=function(){r(o.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,e),r},key:function(e,t){var r=this,n=new a((function(t,n){e<0?t(null):r.ready().then((function(){P(r._dbInfo,m,(function(i,o){if(i)return n(i);try{var a=o.objectStore(r._dbInfo.storeName),s=!1,c=a.openKeyCursor();c.onsuccess=function(){var r=c.result;r?0===e||s?t(r.key):(s=!0,r.advance(e)):t(null)},c.onerror=function(){n(c.error)}}catch(e){n(e)}}))})).catch(n)}));return s(n,t),n},keys:function(e){var t=this,r=new a((function(e,r){t.ready().then((function(){P(t._dbInfo,m,(function(n,i){if(n)return r(n);try{var o=i.objectStore(t._dbInfo.storeName).openKeyCursor(),a=[];o.onsuccess=function(){var t=o.result;t?(a.push(t.key),t.continue()):e(a)},o.onerror=function(){r(o.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,e),r},dropInstance:function(e,t){t=u.apply(this,arguments);var r,n=this.config();if((e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName),e.name){var o=e.name===n.name&&this._dbInfo.db?a.resolve(this._dbInfo.db):w(e).then((function(t){var r=h[e.name],n=r.forages;r.db=t;for(var i=0;i<n.length;i++)n[i]._dbInfo.db=t;return t}));r=e.storeName?o.then((function(t){if(t.objectStoreNames.contains(e.storeName)){var r=t.version+1;y(e);var n=h[e.name],o=n.forages;t.close();for(var s=0;s<o.length;s++){var c=o[s];c._dbInfo.db=null,c._dbInfo.version=r}var l=new a((function(t,n){var o=i.open(e.name,r);o.onerror=function(e){o.result.close(),n(e)},o.onupgradeneeded=function(){o.result.deleteObjectStore(e.storeName)},o.onsuccess=function(){var e=o.result;e.close(),t(e)}}));return l.then((function(e){n.db=e;for(var t=0;t<o.length;t++){var r=o[t];r._dbInfo.db=e,b(r._dbInfo)}})).catch((function(t){throw(_(e,t)||a.resolve()).catch((function(){})),t}))}})):o.then((function(t){y(e);var r=h[e.name],n=r.forages;t.close();for(var o=0;o<n.length;o++)n[o]._dbInfo.db=null;var s=new a((function(t,r){var n=i.deleteDatabase(e.name);n.onerror=function(){var e=n.result;e&&e.close(),r(n.error)},n.onblocked=function(){console.warn('dropInstance blocked for database "'+e.name+'" until all open connections are closed')},n.onsuccess=function(){var e=n.result;e&&e.close(),t(e)}}));return s.then((function(e){r.db=e;for(var t=0;t<n.length;t++)b(n[t]._dbInfo)})).catch((function(t){throw(_(e,t)||a.resolve()).catch((function(){})),t}))}))}else r=a.reject("Invalid arguments");return s(r,t),r}},A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",C=/^~~local_forage_type~([^~]+)~/,k="__lfsc__:",D="arbf",N="blob",R="si08",M="ui08",j="uic8",F="si16",Z="si32",B="ur16",G="ui32",U="fl32",H="fl64",z=Object.prototype.toString;function V(e){var t,r,n,i,o,a=.75*e.length,s=e.length,c=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var l=new ArrayBuffer(a),u=new Uint8Array(l);for(t=0;t<s;t+=4)r=A.indexOf(e[t]),n=A.indexOf(e[t+1]),i=A.indexOf(e[t+2]),o=A.indexOf(e[t+3]),u[c++]=r<<2|n>>4,u[c++]=(15&n)<<4|i>>2,u[c++]=(3&i)<<6|63&o;return l}function Y(e){var t,r=new Uint8Array(e),n="";for(t=0;t<r.length;t+=3)n+=A[r[t]>>2],n+=A[(3&r[t])<<4|r[t+1]>>4],n+=A[(15&r[t+1])<<2|r[t+2]>>6],n+=A[63&r[t+2]];return r.length%3==2?n=n.substring(0,n.length-1)+"=":r.length%3==1&&(n=n.substring(0,n.length-2)+"=="),n}var W={serialize:function(e,t){var r="";if(e&&(r=z.call(e)),e&&("[object ArrayBuffer]"===r||e.buffer&&"[object ArrayBuffer]"===z.call(e.buffer))){var n,i=k;e instanceof ArrayBuffer?(n=e,i+=D):(n=e.buffer,"[object Int8Array]"===r?i+=R:"[object Uint8Array]"===r?i+=M:"[object Uint8ClampedArray]"===r?i+=j:"[object Int16Array]"===r?i+=F:"[object Uint16Array]"===r?i+=B:"[object Int32Array]"===r?i+=Z:"[object Uint32Array]"===r?i+=G:"[object Float32Array]"===r?i+=U:"[object Float64Array]"===r?i+=H:t(new Error("Failed to get type for BinaryArray"))),t(i+Y(n))}else if("[object Blob]"===r){var o=new FileReader;o.onload=function(){var r="~~local_forage_type~"+e.type+"~"+Y(this.result);t(k+N+r)},o.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(r){console.error("Couldn't convert value into a JSON string: ",e),t(null,r)}},deserialize:function(e){if(e.substring(0,9)!==k)return JSON.parse(e);var t,r=e.substring(13),n=e.substring(9,13);if(n===N&&C.test(r)){var i=r.match(C);t=i[1],r=r.substring(i[0].length)}var a=V(r);switch(n){case D:return a;case N:return o([a],{type:t});case R:return new Int8Array(a);case M:return new Uint8Array(a);case j:return new Uint8ClampedArray(a);case F:return new Int16Array(a);case B:return new Uint16Array(a);case Z:return new Int32Array(a);case G:return new Uint32Array(a);case U:return new Float32Array(a);case H:return new Float64Array(a);default:throw new Error("Unkown type: "+n)}},stringToBuffer:V,bufferToString:Y};function K(e,t,r,n){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],r,n)}function $(e,t,r,n,i,o){e.executeSql(r,n,i,(function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],(function(e,s){s.rows.length?o(e,a):K(e,t,(function(){e.executeSql(r,n,i,o)}),o)}),o):o(e,a)}),o)}function q(e,t,r,n){var i=this;e=l(e);var o=new a((function(o,a){i.ready().then((function(){void 0===t&&(t=null);var s=t,c=i._dbInfo;c.serializer.serialize(t,(function(t,l){l?a(l):c.db.transaction((function(r){$(r,c,"INSERT OR REPLACE INTO "+c.storeName+" (key, value) VALUES (?, ?)",[e,t],(function(){o(s)}),(function(e,t){a(t)}))}),(function(t){if(t.code===t.QUOTA_ERR){if(n>0)return void o(q.apply(i,[e,s,r,n-1]));a(t)}}))}))})).catch(a)}));return s(o,r),o}var X={_driver:"webSQLStorage",_initStorage:function(e){var t=this,r={db:null};if(e)for(var n in e)r[n]="string"!=typeof e[n]?e[n].toString():e[n];var i=new a((function(e,n){try{r.db=openDatabase(r.name,String(r.version),r.description,r.size)}catch(e){return n(e)}r.db.transaction((function(i){K(i,r,(function(){t._dbInfo=r,e()}),(function(e,t){n(t)}))}),n)}));return r.serializer=W,i},_support:"function"==typeof openDatabase,iterate:function(e,t){var r=this,n=new a((function(t,n){r.ready().then((function(){var i=r._dbInfo;i.db.transaction((function(r){$(r,i,"SELECT * FROM "+i.storeName,[],(function(r,n){for(var o=n.rows,a=o.length,s=0;s<a;s++){var c=o.item(s),l=c.value;if(l&&(l=i.serializer.deserialize(l)),void 0!==(l=e(l,c.key,s+1)))return void t(l)}t()}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,t),n},getItem:function(e,t){var r=this;e=l(e);var n=new a((function(t,n){r.ready().then((function(){var i=r._dbInfo;i.db.transaction((function(r){$(r,i,"SELECT * FROM "+i.storeName+" WHERE key = ? LIMIT 1",[e],(function(e,r){var n=r.rows.length?r.rows.item(0).value:null;n&&(n=i.serializer.deserialize(n)),t(n)}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,t),n},setItem:function(e,t,r){return q.apply(this,[e,t,r,1])},removeItem:function(e,t){var r=this;e=l(e);var n=new a((function(t,n){r.ready().then((function(){var i=r._dbInfo;i.db.transaction((function(r){$(r,i,"DELETE FROM "+i.storeName+" WHERE key = ?",[e],(function(){t()}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,t),n},clear:function(e){var t=this,r=new a((function(e,r){t.ready().then((function(){var n=t._dbInfo;n.db.transaction((function(t){$(t,n,"DELETE FROM "+n.storeName,[],(function(){e()}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,e),r},length:function(e){var t=this,r=new a((function(e,r){t.ready().then((function(){var n=t._dbInfo;n.db.transaction((function(t){$(t,n,"SELECT COUNT(key) as c FROM "+n.storeName,[],(function(t,r){var n=r.rows.item(0).c;e(n)}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,e),r},key:function(e,t){var r=this,n=new a((function(t,n){r.ready().then((function(){var i=r._dbInfo;i.db.transaction((function(r){$(r,i,"SELECT key FROM "+i.storeName+" WHERE id = ? LIMIT 1",[e+1],(function(e,r){var n=r.rows.length?r.rows.item(0).key:null;t(n)}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,t),n},keys:function(e){var t=this,r=new a((function(e,r){t.ready().then((function(){var n=t._dbInfo;n.db.transaction((function(t){$(t,n,"SELECT key FROM "+n.storeName,[],(function(t,r){for(var n=[],i=0;i<r.rows.length;i++)n.push(r.rows.item(i).key);e(n)}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,e),r},dropInstance:function(e,t){t=u.apply(this,arguments);var r=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||r.name,e.storeName=e.storeName||r.storeName);var n,i=this;return s(n=e.name?new a((function(t){var n;n=e.name===r.name?i._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?t({db:n,storeNames:[e.storeName]}):t(function(e){return new a((function(t,r){e.transaction((function(n){n.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(r,n){for(var i=[],o=0;o<n.rows.length;o++)i.push(n.rows.item(o).name);t({db:e,storeNames:i})}),(function(e,t){r(t)}))}),(function(e){r(e)}))}))}(n))})).then((function(e){return new a((function(t,r){e.db.transaction((function(n){function i(e){return new a((function(t,r){n.executeSql("DROP TABLE IF EXISTS "+e,[],(function(){t()}),(function(e,t){r(t)}))}))}for(var o=[],s=0,c=e.storeNames.length;s<c;s++)o.push(i(e.storeNames[s]));a.all(o).then((function(){t()})).catch((function(e){r(e)}))}),(function(e){r(e)}))}))})):a.reject("Invalid arguments"),t),n}};function J(e,t){var r=e.name+"/";return e.storeName!==t.storeName&&(r+=e.storeName+"/"),r}var Q={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var r in e)t[r]=e[r];return t.keyPrefix=J(e,this._defaultConfig),!function(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch(e){return!0}}()||localStorage.length>0?(this._dbInfo=t,t.serializer=W,a.resolve()):a.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var r=this,n=r.ready().then((function(){for(var t=r._dbInfo,n=t.keyPrefix,i=n.length,o=localStorage.length,a=1,s=0;s<o;s++){var c=localStorage.key(s);if(0===c.indexOf(n)){var l=localStorage.getItem(c);if(l&&(l=t.serializer.deserialize(l)),void 0!==(l=e(l,c.substring(i),a++)))return l}}}));return s(n,t),n},getItem:function(e,t){var r=this;e=l(e);var n=r.ready().then((function(){var t=r._dbInfo,n=localStorage.getItem(t.keyPrefix+e);return n&&(n=t.serializer.deserialize(n)),n}));return s(n,t),n},setItem:function(e,t,r){var n=this;e=l(e);var i=n.ready().then((function(){void 0===t&&(t=null);var r=t;return new a((function(i,o){var a=n._dbInfo;a.serializer.serialize(t,(function(t,n){if(n)o(n);else try{localStorage.setItem(a.keyPrefix+e,t),i(r)}catch(e){"QuotaExceededError"!==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||o(e),o(e)}}))}))}));return s(i,r),i},removeItem:function(e,t){var r=this;e=l(e);var n=r.ready().then((function(){var t=r._dbInfo;localStorage.removeItem(t.keyPrefix+e)}));return s(n,t),n},clear:function(e){var t=this,r=t.ready().then((function(){for(var e=t._dbInfo.keyPrefix,r=localStorage.length-1;r>=0;r--){var n=localStorage.key(r);0===n.indexOf(e)&&localStorage.removeItem(n)}}));return s(r,e),r},length:function(e){var t=this.keys().then((function(e){return e.length}));return s(t,e),t},key:function(e,t){var r=this,n=r.ready().then((function(){var t,n=r._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(n.keyPrefix.length)),t}));return s(n,t),n},keys:function(e){var t=this,r=t.ready().then((function(){for(var e=t._dbInfo,r=localStorage.length,n=[],i=0;i<r;i++){var o=localStorage.key(i);0===o.indexOf(e.keyPrefix)&&n.push(o.substring(e.keyPrefix.length))}return n}));return s(r,e),r},dropInstance:function(e,t){if(t=u.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var r=this.config();e.name=e.name||r.name,e.storeName=e.storeName||r.storeName}var n,i=this;return n=e.name?new a((function(t){e.storeName?t(J(e,i._defaultConfig)):t(e.name+"/")})).then((function(e){for(var t=localStorage.length-1;t>=0;t--){var r=localStorage.key(t);0===r.indexOf(e)&&localStorage.removeItem(r)}})):a.reject("Invalid arguments"),s(n,t),n}},ee=function(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)},te=function(e,t){for(var r=e.length,n=0;n<r;){if(ee(e[n],t))return!0;n++}return!1},re=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},ne={},ie={},oe={INDEXEDDB:I,WEBSQL:X,LOCALSTORAGE:Q},ae=[oe.INDEXEDDB._driver,oe.WEBSQL._driver,oe.LOCALSTORAGE._driver],se=["dropInstance"],ce=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(se),le={description:"",driver:ae.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function ue(e,t){e[t]=function(){var r=arguments;return e.ready().then((function(){return e[t].apply(e,r)}))}}function de(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var r in t)t.hasOwnProperty(r)&&(re(t[r])?arguments[0][r]=t[r].slice():arguments[0][r]=t[r])}return arguments[0]}var pe=function(){function e(t){for(var r in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),oe)if(oe.hasOwnProperty(r)){var n=oe[r],i=n._driver;this[r]=i,ne[i]||this.defineDriver(n)}this._defaultConfig=de({},le),this._config=de({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch((function(){}))}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":n(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,r){var n=new a((function(t,r){try{var n=e._driver,i=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void r(i);for(var o=ce.concat("_initStorage"),c=0,l=o.length;c<l;c++){var u=o[c];if((!te(se,u)||e[u])&&"function"!=typeof e[u])return void r(i)}!function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),r=a.reject(t);return s(r,arguments[arguments.length-1]),r}},r=0,n=se.length;r<n;r++){var i=se[r];e[i]||(e[i]=t(i))}}();var d=function(r){ne[n]&&console.info("Redefining LocalForage driver: "+n),ne[n]=e,ie[n]=r,t()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(d,r):d(!!e._support):d(!0)}catch(e){r(e)}}));return c(n,t,r),n},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,r){var n=ne[e]?a.resolve(ne[e]):a.reject(new Error("Driver not found."));return c(n,t,r),n},e.prototype.getSerializer=function(e){var t=a.resolve(W);return c(t,e),t},e.prototype.ready=function(e){var t=this,r=t._driverSet.then((function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready}));return c(r,e,e),r},e.prototype.setDriver=function(e,t,r){var n=this;re(e)||(e=[e]);var i=this._getSupportedDrivers(e);function o(){n._config.driver=n.driver()}function s(e){return n._extend(e),o(),n._ready=n._initStorage(n._config),n._ready}var l=null!==this._driverSet?this._driverSet.catch((function(){return a.resolve()})):a.resolve();return this._driverSet=l.then((function(){var e=i[0];return n._dbInfo=null,n._ready=null,n.getDriver(e).then((function(e){n._driver=e._driver,o(),n._wrapLibraryMethodsWithReady(),n._initDriver=function(e){return function(){var t=0;return function r(){for(;t<e.length;){var i=e[t];return t++,n._dbInfo=null,n._ready=null,n.getDriver(i).then(s).catch(r)}o();var c=new Error("No available storage method found.");return n._driverSet=a.reject(c),n._driverSet}()}}(i)}))})).catch((function(){o();var e=new Error("No available storage method found.");return n._driverSet=a.reject(e),n._driverSet})),c(this._driverSet,t,r),this._driverSet},e.prototype.supports=function(e){return!!ie[e]},e.prototype._extend=function(e){de(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],r=0,n=e.length;r<n;r++){var i=e[r];this.supports(i)&&t.push(i)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=ce.length;e<t;e++)ue(this,ce[e])},e.prototype.createInstance=function(t){return new e(t)},e}(),he=new pe;t.exports=he},{3:3}]},{},[4])(4)},34954:function(module,exports,__webpack_require__){var factory;"undefined"!=typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var r,n,i=e.length;for(r=0;r<i;r+=1)for(var o in n=e[r].prototype)Object.prototype.hasOwnProperty.call(n,o)&&(t.prototype[o]=n[o])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,r=this.audios.length;for(t=0;t<r;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var r,n=0,i=[];switch(e){case"int16":case"uint8c":r=1;break;default:r=1.1}for(n=0;n<t;n+=1)i.push(r);return i}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,r){return"float32"===t?new Float32Array(r):"int16"===t?new Int16Array(r):"uint8c"===t?new Uint8ClampedArray(r):e(t,r)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return _typeof$6="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},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r=t.length;for(e=0;e<r;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,r=createSizedArray(e.length),n=e.length;for(t=0;t<n;t+=1)r[t]=Math.abs(e[t]);return r}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(e){_shouldRoundValues=!!e}function bmRnd(e){return _shouldRoundValues?Math.round(e):e}function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,r,n){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=n<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,n){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=n<0?-1:1}function BMSegmentStartEvent(e,t,r){this.type=e,this.firstFrame=t,this.totalFrames=r}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}function BMAnimationConfigErrorEvent(e,t){this.type=e,this.nativeError=t}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,r){var n,i,o,a,s,c,l,u;switch(c=r*(1-t),l=r*(1-(s=6*e-(a=Math.floor(6*e)))*t),u=r*(1-(1-s)*t),a%6){case 0:n=r,i=u,o=c;break;case 1:n=l,i=r,o=c;break;case 2:n=c,i=r,o=u;break;case 3:n=c,i=l,o=r;break;case 4:n=u,i=c,o=r;break;case 5:n=r,i=c,o=l}return[n,i,o]}function RGBtoHSV(e,t,r){var n,i=Math.max(e,t,r),o=Math.min(e,t,r),a=i-o,s=0===i?0:a/i,c=i/255;switch(i){case o:n=0;break;case e:n=t-r+a*(t<r?6:0),n/=6*a;break;case t:n=r-e+2*a,n/=6*a;break;case r:n=e-t+4*a,n/=6*a}return[n,s,c]}function addSaturationToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[1]+=t,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[2]+=t,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[0]+=t/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var e,t,r=[];for(e=0;e<256;e+=1)t=e.toString(16),r[e]=1===t.length?"0"+t:t;return function(e,t,n){return e<0&&(e=0),t<0&&(t=0),n<0&&(n=0),"#"+r[e]+r[t]+r[n]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e},getIdPrefix=function(){return idPrefix$1};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return _typeof$5="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},_typeof$5(e)}var dataManager=function(){var e,t,r=1,n=[],i={onmessage:function(){},postMessage:function(t){e({data:t})}},o={postMessage:function(e){i.onmessage({data:e})}};function a(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var r=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),n=URL.createObjectURL(r);return new Worker(n)}return e=t,i}((function(e){if(o.dataManager||(o.dataManager=function(){function e(i,o){var a,s,c,l,u,p,h=i.length;for(s=0;s<h;s+=1)if("ks"in(a=i[s])&&!a.completed){if(a.completed=!0,a.hasMask){var f=a.masksProperties;for(l=f.length,c=0;c<l;c+=1)if(f[c].pt.k.i)n(f[c].pt.k);else for(p=f[c].pt.k.length,u=0;u<p;u+=1)f[c].pt.k[u].s&&n(f[c].pt.k[u].s[0]),f[c].pt.k[u].e&&n(f[c].pt.k[u].e[0])}0===a.ty?(a.layers=t(a.refId,o),e(a.layers,o)):4===a.ty?r(a.shapes):5===a.ty&&d(a)}}function t(e,t){var r=function(e,t){for(var r=0,n=t.length;r<n;){if(t[r].id===e)return t[r];r+=1}return null}(e,t);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function r(e){var t,i,o;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)n(e[t].ks.k);else for(o=e[t].ks.k.length,i=0;i<o;i+=1)e[t].ks.k[i].s&&n(e[t].ks.k[i].s[0]),e[t].ks.k[i].e&&n(e[t].ks.k[i].e[0]);else"gr"===e[t].ty&&r(e[t].it)}function n(e){var t,r=e.i.length;for(t=0;t<r;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function i(e,t){var r=t?t.split("."):[100,100,100];return e[0]>r[0]||!(r[0]>e[0])&&(e[1]>r[1]||!(r[1]>e[1])&&(e[2]>r[2]||!(r[2]>e[2])&&null))}var o,a=function(){var e=[4,4,14];function t(e){var t,r,n,i=e.length;for(t=0;t<i;t+=1)5===e[t].ty&&(n=(r=e[t]).t.d,r.t.d={k:[{s:n,t:0}]})}return function(r){if(i(e,r.v)&&(t(r.layers),r.assets)){var n,o=r.assets.length;for(n=0;n<o;n+=1)r.assets[n].layers&&t(r.assets[n].layers)}}}(),s=(o=[4,7,99],function(e){if(e.chars&&!i(o,e.v)){var t,n=e.chars.length;for(t=0;t<n;t+=1){var a=e.chars[t];a.data&&a.data.shapes&&(r(a.data.shapes),a.data.ip=0,a.data.op=99999,a.data.st=0,a.data.sr=1,a.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[t].t||(a.data.shapes.push({ty:"no"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),c=function(){var e=[5,7,15];function t(e){var t,r,n=e.length;for(t=0;t<n;t+=1)5===e[t].ty&&(r=void 0,"number"==typeof(r=e[t].t.p).a&&(r.a={a:0,k:r.a}),"number"==typeof r.p&&(r.p={a:0,k:r.p}),"number"==typeof r.r&&(r.r={a:0,k:r.r}))}return function(r){if(i(e,r.v)&&(t(r.layers),r.assets)){var n,o=r.assets.length;for(n=0;n<o;n+=1)r.assets[n].layers&&t(r.assets[n].layers)}}}(),l=function(){var e=[4,1,9];function t(e){var r,n,i,o=e.length;for(r=0;r<o;r+=1)if("gr"===e[r].ty)t(e[r].it);else if("fl"===e[r].ty||"st"===e[r].ty)if(e[r].c.k&&e[r].c.k[0].i)for(i=e[r].c.k.length,n=0;n<i;n+=1)e[r].c.k[n].s&&(e[r].c.k[n].s[0]/=255,e[r].c.k[n].s[1]/=255,e[r].c.k[n].s[2]/=255,e[r].c.k[n].s[3]/=255),e[r].c.k[n].e&&(e[r].c.k[n].e[0]/=255,e[r].c.k[n].e[1]/=255,e[r].c.k[n].e[2]/=255,e[r].c.k[n].e[3]/=255);else e[r].c.k[0]/=255,e[r].c.k[1]/=255,e[r].c.k[2]/=255,e[r].c.k[3]/=255}function r(e){var r,n=e.length;for(r=0;r<n;r+=1)4===e[r].ty&&t(e[r].shapes)}return function(t){if(i(e,t.v)&&(r(t.layers),t.assets)){var n,o=t.assets.length;for(n=0;n<o;n+=1)t.assets[n].layers&&r(t.assets[n].layers)}}}(),u=function(){var e=[4,4,18];function t(e){var r,n,i;for(r=e.length-1;r>=0;r-=1)if("sh"===e[r].ty)if(e[r].ks.k.i)e[r].ks.k.c=e[r].closed;else for(i=e[r].ks.k.length,n=0;n<i;n+=1)e[r].ks.k[n].s&&(e[r].ks.k[n].s[0].c=e[r].closed),e[r].ks.k[n].e&&(e[r].ks.k[n].e[0].c=e[r].closed);else"gr"===e[r].ty&&t(e[r].it)}function r(e){var r,n,i,o,a,s,c=e.length;for(n=0;n<c;n+=1){if((r=e[n]).hasMask){var l=r.masksProperties;for(o=l.length,i=0;i<o;i+=1)if(l[i].pt.k.i)l[i].pt.k.c=l[i].cl;else for(s=l[i].pt.k.length,a=0;a<s;a+=1)l[i].pt.k[a].s&&(l[i].pt.k[a].s[0].c=l[i].cl),l[i].pt.k[a].e&&(l[i].pt.k[a].e[0].c=l[i].cl)}4===r.ty&&t(r.shapes)}}return function(t){if(i(e,t.v)&&(r(t.layers),t.assets)){var n,o=t.assets.length;for(n=0;n<o;n+=1)t.assets[n].layers&&r(t.assets[n].layers)}}}();function d(e){0===e.t.a.length&&e.t.p}var p={completeData:function(r){r.__complete||(l(r),a(r),s(r),c(r),u(r),e(r.layers,r.assets),function(r,n){if(r){var i=0,o=r.length;for(i=0;i<o;i+=1)1===r[i].t&&(r[i].data.layers=t(r[i].data.refId,n),e(r[i].data.layers,n))}}(r.chars,r.assets),r.__complete=!0)}};return p.checkColors=l,p.checkChars=s,p.checkPathProperties=c,p.checkShapes=u,p.completeLayers=e,p}()),o.assetLoader||(o.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,r,n,i){var o,a=new XMLHttpRequest;try{a.responseType="json"}catch(e){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)o=e(a),n(o);else try{o=e(a),n(o)}catch(e){i&&i(e)}};try{a.open(["G","E","T"].join(""),t,!0)}catch(e){a.open(["G","E","T"].join(""),r+"/"+t,!0)}a.send()}}}()),"loadAnimation"===e.data.type)o.assetLoader.load(e.data.path,e.data.fullPath,(function(t){o.dataManager.completeData(t),o.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){o.postMessage({id:e.data.id,status:"error"})}));else if("complete"===e.data.type){var t=e.data.animation;o.dataManager.completeData(t),o.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&o.assetLoader.load(e.data.path,e.data.fullPath,(function(t){o.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){o.postMessage({id:e.data.id,status:"error"})}))})),t.onmessage=function(e){var t=e.data,r=t.id,i=n[r];n[r]=null,"success"===t.status?i.onComplete(t.payload):i.onError&&i.onError()})}function s(e,t){var i="processId_"+(r+=1);return n[i]={onComplete:e,onError:t},i}return{loadAnimation:function(e,r,n){a();var i=s(r,n);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},loadData:function(e,r,n){a();var i=s(r,n);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},completeAnimation:function(e,r,n){a();var i=s(r,n);t.postMessage({type:"complete",animation:e,id:i})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(e,t,r){var n="";if(e.e)n=e.p;else if(t){var i=e.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),n=t+i}else n=r,n+=e.u?e.u:"",n+=e.p;return n}function i(e){var t=0,r=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(r)),t+=1}.bind(this),50)}function o(e){var t={assetData:e},r=n(e,this.assetsPath,this.path);return dataManager.loadData(r,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function a(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=o.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return a.prototype={loadAssets:function(e,t){var r;this.imagesLoadedCb=t;var n=e.length;for(r=0;r<n;r+=1)e[r].layers||(e[r].t&&"seq"!==e[r].t?3===e[r].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[r]))):(this.totalImages+=1,this.images.push(this._createImageData(e[r]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,r=this.images.length;t<r;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var r=n(t,this.assetsPath,this.path),i=createTag("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.img=e,this._imageLoaded()}.bind(this),!1),i.src=r;var o={img:i,assetData:t};return o},createImageData:function(t){var r=n(t,this.assetsPath,this.path),i=createNS("image");isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.img=e,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var o={img:i,assetData:t};return o},imageLoaded:t,footageLoaded:r,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},a}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var r=this._cbs[e],n=0;n<r.length;n+=1)r[n](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var r=0,n=this._cbs[e].length;r<n;)this._cbs[e][r]===t&&(this._cbs[e].splice(r,1),r-=1,n-=1),r+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,r=e.split("\r\n"),n={},i=0,o=0;o<r.length;o+=1)2===(t=r[o].split(":")).length&&(n[t[0]]=t[1].trim(),i+=1);if(0===i)throw new Error;return n}return function(t){for(var r=[],n=0;n<t.length;n+=1){var i=t[n],o={time:i.tm,duration:i.dr};try{o.payload=JSON.parse(t[n].cm)}catch(r){try{o.payload=e(t[n].cm)}catch(e){o.payload={name:t[n].cm}}}r.push(o)}return r}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,r=this.compositions.length;t<r;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){return _typeof$4="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},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var r=getRenderer(t);this.renderer=new r(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var r={wrapper:e,animationData:t},n=e.attributes;r.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",r.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var i=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";"false"===i?r.loop=!1:"true"===i?r.loop=!0:""!==i&&(r.loop=parseInt(i,10));var o=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:!n.getNamedItem("bm-autoplay")||n.getNamedItem("bm-autoplay").value;r.autoplay="false"!==o,r.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"","false"===(n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,r,n=this.animationData.layers,i=n.length,o=e.layers,a=o.length;for(r=0;r<a;r+=1)for(t=0;t<i;){if(n[t].id===o[r].id){n[t]=o[r];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,t=0;t<i;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var r="number"==typeof e?e:void 0,n="number"==typeof t?t:void 0;this.renderer.updateContainerSize(r,n)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,r=0;r<this.markers.length;r+=1)if((t=this.markers[r]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,r){if(!r||this.name===r){var n=Number(e);if(isNaN(n)){var i=this.getMarkerData(e);i&&this.goToAndStop(i.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,r){if(!r||this.name===r){var n=Number(e);if(isNaN(n)){var i=this.getMarkerData(e);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(n,t,r);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,r=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(r=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),r&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?r=e:this.currentRawFrame+this.firstFrame>t&&(r=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var r,n=e.length;for(r=0;r<n;r+=1)this.segments.push(e[r])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var r=e.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),t=this.assetsPath+r}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,r=this.assets.length;t<r;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,r){try{this.renderer.getElementByPath(e).updateDocumentData(t,r)}catch(e){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],r=0,n=0,i=0,o=!0,a=!1;function s(e){for(var r=0,i=e.target;r<n;)t[r].animation===i&&(t.splice(r,1),r-=1,n-=1,i.isPaused||u()),r+=1}function c(e,r){if(!e)return null;for(var i=0;i<n;){if(t[i].elem===e&&null!==t[i].elem)return t[i].animation;i+=1}var o=new AnimationItem;return d(o,e),o.setData(e,r),o}function l(){i+=1,f()}function u(){i-=1}function d(e,r){e.addEventListener("destroy",s),e.addEventListener("_active",l),e.addEventListener("_idle",u),t.push({elem:r,animation:e}),n+=1}function p(e){var s,c=e-r;for(s=0;s<n;s+=1)t[s].animation.advanceTime(c);r=e,i&&!a?window.requestAnimationFrame(p):o=!0}function h(e){r=e,window.requestAnimationFrame(p)}function f(){!a&&i&&o&&(window.requestAnimationFrame(h),o=!1)}return e.registerAnimation=c,e.loadAnimation=function(e){var t=new AnimationItem;return d(t,null),t.setParams(e),t},e.setSpeed=function(e,r){var i;for(i=0;i<n;i+=1)t[i].animation.setSpeed(e,r)},e.setDirection=function(e,r){var i;for(i=0;i<n;i+=1)t[i].animation.setDirection(e,r)},e.play=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.play(e)},e.pause=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.pause(e)},e.stop=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.stop(e)},e.togglePause=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.togglePause(e)},e.searchAnimations=function(e,t,r){var n,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),o=i.length;for(n=0;n<o;n+=1)r&&i[n].setAttribute("data-bm-type",r),c(i[n],e);if(t&&0===o){r||(r="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",r),a.appendChild(s),c(s,e)}},e.resize=function(){var e;for(e=0;e<n;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,r,i){var o;for(o=0;o<n;o+=1)t[o].animation.goToAndStop(e,r,i)},e.destroy=function(e){var r;for(r=n-1;r>=0;r-=1)t[r].animation.destroy(e)},e.freeze=function(){a=!0},e.unfreeze=function(){a=!1,f()},e.setVolume=function(e,r){var i;for(i=0;i<n;i+=1)t[i].animation.setVolume(e,r)},e.mute=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.mute(e)},e.unmute=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,r=t.length,n=[];for(e=0;e<r;e+=1)n.push(t[e].animation);return n},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,r,n,i,o){var a=o||("bez_"+e+"_"+r+"_"+n+"_"+i).replace(/\./g,"p");if(t[a])return t[a];var s=new l([e,r,n,i]);return t[a]=s,s}},t={},r=.1,n="function"==typeof Float32Array;function i(e,t){return 1-3*t+3*e}function o(e,t){return 3*t-6*e}function a(e){return 3*e}function s(e,t,r){return((i(t,r)*e+o(t,r))*e+a(t))*e}function c(e,t,r){return 3*i(t,r)*e*e+2*o(t,r)*e+a(t)}function l(e){this._p=e,this._mSampleValues=n?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return l.prototype={get:function(e){var t=this._p[0],r=this._p[1],n=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),t===r&&n===i?e:0===e?0:1===e?1:s(this._getTForX(e),r,i)},_precompute:function(){var e=this._p[0],t=this._p[1],r=this._p[2],n=this._p[3];this._precomputed=!0,e===t&&r===n||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],n=0;n<11;++n)this._mSampleValues[n]=s(n*r,e,t)},_getTForX:function(e){for(var t=this._p[0],n=this._p[2],i=this._mSampleValues,o=0,a=1;10!==a&&i[a]<=e;++a)o+=r;var l=o+(e-i[--a])/(i[a+1]-i[a])*r,u=c(l,t,n);return u>=.001?function(e,t,r,n){for(var i=0;i<4;++i){var o=c(t,r,n);if(0===o)return t;t-=(s(t,r,n)-e)/o}return t}(e,l,t,n):0===u?l:function(e,t,r,n,i){var o,a,c=0;do{(o=s(a=t+(r-t)/2,n,i)-e)>0?r=a:t=a}while(Math.abs(o)>1e-7&&++c<10);return a}(e,o,o+r,t,n)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,r){var n=0,i=e,o=createSizedArray(i);return{newElement:function(){return n?o[n-=1]:t()},release:function(e){n===i&&(o=pooling.double(o),i*=2),r&&r(e),o[n]=e,n+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(e){var t,r=e.lengths.length;for(t=0;t<r;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0}));function bezFunction(){var e=Math;function t(e,t,r,n,i,o){var a=e*n+t*i+r*o-i*n-o*e-r*t;return a>-.001&&a<.001}var r=function(e,t,r,n){var i,o,a,s,c,l,u=getDefaultCurveSegments(),d=0,p=[],h=[],f=bezierLengthPool.newElement();for(a=r.length,i=0;i<u;i+=1){for(c=i/(u-1),l=0,o=0;o<a;o+=1)s=bmPow(1-c,3)*e[o]+3*bmPow(1-c,2)*c*r[o]+3*(1-c)*bmPow(c,2)*n[o]+bmPow(c,3)*t[o],p[o]=s,null!==h[o]&&(l+=bmPow(p[o]-h[o],2)),h[o]=p[o];l&&(d+=l=bmSqrt(l)),f.percents[i]=c,f.lengths[i]=d}return f.addedLength=d,f};function n(e){this.segmentLength=0,this.points=new Array(e)}function i(e,t){this.partialLength=e,this.point=t}var o,a=(o={},function(e,r,a,s){var c=(e[0]+"_"+e[1]+"_"+r[0]+"_"+r[1]+"_"+a[0]+"_"+a[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!o[c]){var l,u,d,p,h,f,m,g=getDefaultCurveSegments(),v=0,y=null;2===e.length&&(e[0]!==r[0]||e[1]!==r[1])&&t(e[0],e[1],r[0],r[1],e[0]+a[0],e[1]+a[1])&&t(e[0],e[1],r[0],r[1],r[0]+s[0],r[1]+s[1])&&(g=2);var b=new n(g);for(d=a.length,l=0;l<g;l+=1){for(m=createSizedArray(d),h=l/(g-1),f=0,u=0;u<d;u+=1)p=bmPow(1-h,3)*e[u]+3*bmPow(1-h,2)*h*(e[u]+a[u])+3*(1-h)*bmPow(h,2)*(r[u]+s[u])+bmPow(h,3)*r[u],m[u]=p,null!==y&&(f+=bmPow(m[u]-y[u],2));v+=f=bmSqrt(f),b.points[l]=new i(f,m),y=m}b.segmentLength=v,o[c]=b}return o[c]});function s(e,t){var r=t.percents,n=t.lengths,i=r.length,o=bmFloor((i-1)*e),a=e*t.addedLength,s=0;if(o===i-1||0===o||a===n[o])return r[o];for(var c=n[o]>a?-1:1,l=!0;l;)if(n[o]<=a&&n[o+1]>a?(s=(a-n[o])/(n[o+1]-n[o]),l=!1):o+=c,o<0||o>=i-1){if(o===i-1)return r[o];l=!1}return r[o]+(r[o+1]-r[o])*s}var c=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,n=segmentsLengthPool.newElement(),i=e.c,o=e.v,a=e.o,s=e.i,c=e._length,l=n.lengths,u=0;for(t=0;t<c-1;t+=1)l[t]=r(o[t],o[t+1],a[t],s[t+1]),u+=l[t].addedLength;return i&&c&&(l[t]=r(o[t],o[0],a[t],s[0]),u+=l[t].addedLength),n.totalLength=u,n},getNewSegment:function(t,r,n,i,o,a,l){o<0?o=0:o>1&&(o=1);var u,d=s(o,l),p=s(a=a>1?1:a,l),h=t.length,f=1-d,m=1-p,g=f*f*f,v=d*f*f*3,y=d*d*f*3,b=d*d*d,_=f*f*m,E=d*f*m+f*d*m+f*f*p,w=d*d*m+f*d*p+d*f*p,x=d*d*p,L=f*m*m,O=d*m*m+f*p*m+f*m*p,S=d*p*m+f*p*p+d*m*p,T=d*p*p,P=m*m*m,I=p*m*m+m*p*m+m*m*p,A=p*p*m+m*p*p+p*m*p,C=p*p*p;for(u=0;u<h;u+=1)c[4*u]=e.round(1e3*(g*t[u]+v*n[u]+y*i[u]+b*r[u]))/1e3,c[4*u+1]=e.round(1e3*(_*t[u]+E*n[u]+w*i[u]+x*r[u]))/1e3,c[4*u+2]=e.round(1e3*(L*t[u]+O*n[u]+S*i[u]+T*r[u]))/1e3,c[4*u+3]=e.round(1e3*(P*t[u]+I*n[u]+A*i[u]+C*r[u]))/1e3;return c},getPointInSegment:function(t,r,n,i,o,a){var c=s(o,a),l=1-c;return[e.round(1e3*(l*l*l*t[0]+(c*l*l+l*c*l+l*l*c)*n[0]+(c*c*l+l*c*c+c*l*c)*i[0]+c*c*c*r[0]))/1e3,e.round(1e3*(l*l*l*t[1]+(c*l*l+l*c*l+l*l*c)*n[1]+(c*c*l+l*c*c+c*l*c)*i[1]+c*c*c*r[1]))/1e3]},buildBezierData:a,pointOnLine2D:t,pointOnLine3D:function(r,n,i,o,a,s,c,l,u){if(0===i&&0===s&&0===u)return t(r,n,o,a,c,l);var d,p=e.sqrt(e.pow(o-r,2)+e.pow(a-n,2)+e.pow(s-i,2)),h=e.sqrt(e.pow(c-r,2)+e.pow(l-n,2)+e.pow(u-i,2)),f=e.sqrt(e.pow(c-o,2)+e.pow(l-a,2)+e.pow(u-s,2));return(d=p>h?p>f?p-h-f:f-h-p:f>h?f-h-p:h-p-f)>-1e-4&&d<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var r,n=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var i,o,a,s,c,l,u,d,p,h=t.lastIndex,f=h,m=this.keyframes.length-1,g=!0;g;){if(i=this.keyframes[f],o=this.keyframes[f+1],f===m-1&&e>=o.t-n){i.h&&(i=o),h=0;break}if(o.t-n>e){h=f;break}f<m-1?f+=1:(h=0,g=!1)}a=this.keyframesMetadata[f]||{};var v,y=o.t-n,b=i.t-n;if(i.to){a.bezierData||(a.bezierData=bez.buildBezierData(i.s,o.s||i.e,i.to,i.ti));var _=a.bezierData;if(e>=y||e<b){var E=e>=y?_.points.length-1:0;for(c=_.points[E].point.length,s=0;s<c;s+=1)r[s]=_.points[E].point[s]}else{a.__fnct?p=a.__fnct:(p=BezierFactory.getBezierEasing(i.o.x,i.o.y,i.i.x,i.i.y,i.n).get,a.__fnct=p),l=p((e-b)/(y-b));var w,x=_.segmentLength*l,L=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastAddedLength:0;for(d=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastPoint:0,g=!0,u=_.points.length;g;){if(L+=_.points[d].partialLength,0===x||0===l||d===_.points.length-1){for(c=_.points[d].point.length,s=0;s<c;s+=1)r[s]=_.points[d].point[s];break}if(x>=L&&x<L+_.points[d+1].partialLength){for(w=(x-L)/_.points[d+1].partialLength,c=_.points[d].point.length,s=0;s<c;s+=1)r[s]=_.points[d].point[s]+(_.points[d+1].point[s]-_.points[d].point[s])*w;break}d<u-1?d+=1:g=!1}t._lastPoint=d,t._lastAddedLength=L-_.points[d].partialLength,t._lastKeyframeIndex=f}}else{var O,S,T,P,I;if(m=i.s.length,v=o.s||i.e,this.sh&&1!==i.h)e>=y?(r[0]=v[0],r[1]=v[1],r[2]=v[2]):e<=b?(r[0]=i.s[0],r[1]=i.s[1],r[2]=i.s[2]):quaternionToEuler(r,slerp(createQuaternion(i.s),createQuaternion(v),(e-b)/(y-b)));else for(f=0;f<m;f+=1)1!==i.h&&(e>=y?l=1:e<b?l=0:(i.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[f]?p=a.__fnct[f]:(O=void 0===i.o.x[f]?i.o.x[0]:i.o.x[f],S=void 0===i.o.y[f]?i.o.y[0]:i.o.y[f],T=void 0===i.i.x[f]?i.i.x[0]:i.i.x[f],P=void 0===i.i.y[f]?i.i.y[0]:i.i.y[f],p=BezierFactory.getBezierEasing(O,S,T,P).get,a.__fnct[f]=p)):a.__fnct?p=a.__fnct:(O=i.o.x,S=i.o.y,T=i.i.x,P=i.i.y,p=BezierFactory.getBezierEasing(O,S,T,P).get,i.keyframeMetadata=p),l=p((e-b)/(y-b)))),v=o.s||i.e,I=1===i.h?i.s[f]:i.s[f]+(v[f]-i.s[f])*l,"multidimensional"===this.propType?r[f]=I:r=I}return t.lastIndex=h,r}function slerp(e,t,r){var n,i,o,a,s,c=[],l=e[0],u=e[1],d=e[2],p=e[3],h=t[0],f=t[1],m=t[2],g=t[3];return(i=l*h+u*f+d*m+p*g)<0&&(i=-i,h=-h,f=-f,m=-m,g=-g),1-i>1e-6?(n=Math.acos(i),o=Math.sin(n),a=Math.sin((1-r)*n)/o,s=Math.sin(r*n)/o):(a=1-r,s=r),c[0]=a*l+s*h,c[1]=a*u+s*f,c[2]=a*d+s*m,c[3]=a*p+s*g,c}function quaternionToEuler(e,t){var r=t[0],n=t[1],i=t[2],o=t[3],a=Math.atan2(2*n*o-2*r*i,1-2*n*n-2*i*i),s=Math.asin(2*r*n+2*i*o),c=Math.atan2(2*r*o-2*n*i,1-2*r*r-2*i*i);e[0]=a/degToRads,e[1]=s/degToRads,e[2]=c/degToRads}function createQuaternion(e){var t=e[0]*degToRads,r=e[1]*degToRads,n=e[2]*degToRads,i=Math.cos(t/2),o=Math.cos(r/2),a=Math.cos(n/2),s=Math.sin(t/2),c=Math.sin(r/2),l=Math.sin(n/2);return[s*c*a+i*o*l,s*o*a+i*c*l,i*c*a-s*o*l,i*o*a-s*c*l]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var n=this.interpolateValue(e,this._caching);this.pv=n}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if("unidimensional"===this.propType)t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var r=0,n=this.v.length;r<n;)t=e[r]*this.mult,mathAbs(this.v[r]-t)>1e-5&&(this.v[r]=t,this._mdf=!0),r+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)r=this.effectsSequence[e](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,r,n){this.propType="unidimensional",this.mult=r||1,this.data=t,this.v=r?t.k*r:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,r,n){var i;this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var o=t.k.length;for(this.v=createTypedArray("float32",o),this.pv=createTypedArray("float32",o),this.vel=createTypedArray("float32",o),i=0;i<o;i+=1)this.v[i]=t.k[i]*this.mult,this.pv[i]=t.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,r,n){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=r||1,this.elem=e,this.container=n,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,r,n){var i;this.propType="multidimensional";var o,a,s,c,l=t.k.length;for(i=0;i<l-1;i+=1)t.k[i].to&&t.k[i].s&&t.k[i+1]&&t.k[i+1].s&&(o=t.k[i].s,a=t.k[i+1].s,s=t.k[i].to,c=t.k[i].ti,(2===o.length&&(o[0]!==a[0]||o[1]!==a[1])&&bez.pointOnLine2D(o[0],o[1],a[0],a[1],o[0]+s[0],o[1]+s[1])&&bez.pointOnLine2D(o[0],o[1],a[0],a[1],a[0]+c[0],a[1]+c[1])||3===o.length&&(o[0]!==a[0]||o[1]!==a[1]||o[2]!==a[2])&&bez.pointOnLine3D(o[0],o[1],o[2],a[0],a[1],a[2],o[0]+s[0],o[1]+s[1],o[2]+s[2])&&bez.pointOnLine3D(o[0],o[1],o[2],a[0],a[1],a[2],a[0]+c[0],a[1]+c[1],a[2]+c[2]))&&(t.k[i].to=null,t.k[i].ti=null),o[0]===a[0]&&o[1]===a[1]&&0===s[0]&&0===s[1]&&0===c[0]&&0===c[1]&&(2===o.length||o[2]===a[2]&&0===s[2]&&0===c[2])&&(t.k[i].to=null,t.k[i].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=n,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var u=t.k[0].s.length;for(this.v=createTypedArray("float32",u),this.pv=createTypedArray("float32",u),i=0;i<u;i+=1)this.v[i]=initFrame,this.pv[i]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",u)},this.addEffect=addEffect}var PropertyFactory={getProp:function(e,t,r,n,i){var o;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length)if("number"==typeof t.k[0])o=new MultiDimensionalProperty(e,t,n,i);else switch(r){case 0:o=new KeyframedValueProperty(e,t,n,i);break;case 1:o=new KeyframedMultidimensionalProperty(e,t,n,i)}else o=new ValueProperty(e,t,n,i);return o.effectsSequence.length&&i.addDynamicProperty(o),o}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var r=0;r<t;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,r,n,i){var o;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[]}(!o[n]||o[n]&&!i)&&(o[n]=pointPool.newElement()),o[n][0]=e,o[n][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,n,i,o,a,s){this.setXYAt(e,t,"v",a,s),this.setXYAt(r,n,"o",a,s),this.setXYAt(i,o,"i",a,s)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,n=this.i,i=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],n[0][0],n[0][1],r[0][0],r[0][1],0,!1),i=1);var o,a=this._length-1,s=this._length;for(o=i;o<s;o+=1)e.setTripleAt(t[a][0],t[a][1],n[a][0],n[a][1],r[a][0],r[a][1],o,!1),a-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(e){var t,r=e._length;for(t=0;t<r;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1})),factory.clone=function(e){var t,r=factory.newElement(),n=void 0===e._length?e.v.length:e._length;for(r.setLength(n),r.c=e.c,t=0;t<n;t+=1)r.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return r},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(e){var t,r=e._length;for(t=0;t<r;t+=1)shapePool.release(e.shapes[t]);e._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=e,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var e=-999999;function t(e,t,r){var n,i,o,a,s,c,l,u,d,p=r.lastIndex,h=this.keyframes;if(e<h[0].t-this.offsetTime)n=h[0].s[0],o=!0,p=0;else if(e>=h[h.length-1].t-this.offsetTime)n=h[h.length-1].s?h[h.length-1].s[0]:h[h.length-2].e[0],o=!0;else{for(var f,m,g,v=p,y=h.length-1,b=!0;b&&(f=h[v],!((m=h[v+1]).t-this.offsetTime>e));)v<y-1?v+=1:b=!1;if(g=this.keyframesMetadata[v]||{},p=v,!(o=1===f.h)){if(e>=m.t-this.offsetTime)u=1;else if(e<f.t-this.offsetTime)u=0;else{var _;g.__fnct?_=g.__fnct:(_=BezierFactory.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,g.__fnct=_),u=_((e-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}i=m.s?m.s[0]:f.e[0]}n=f.s[0]}for(c=t._length,l=n.i[0].length,r.lastIndex=p,a=0;a<c;a+=1)for(s=0;s<l;s+=1)d=o?n.i[a][s]:n.i[a][s]+(i.i[a][s]-n.i[a][s])*u,t.i[a][s]=d,d=o?n.o[a][s]:n.o[a][s]+(i.o[a][s]-n.o[a][s])*u,t.o[a][s]=d,d=o?n.v[a][s]:n.v[a][s]+(i.v[a][s]-n.v[a][s])*u,t.v[a][s]=d}function r(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==e&&(i<r&&t<r||i>n&&t>n)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function n(){this.paths=this.localShapeCollection}function i(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var r,n=e._length;for(r=0;r<n;r+=1)if(e.v[r][0]!==t.v[r][0]||e.v[r][1]!==t.v[r][1]||e.o[r][0]!==t.o[r][0]||e.o[r][1]!==t.o[r][1]||e.i[r][0]!==t.i[r][0]||e.i[r][1]!==t.i[r][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function o(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var r=this.effectsSequence.length;for(t=0;t<r;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(e,t,r){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===r?t.pt.k:t.ks.k;this.v=shapePool.clone(i),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function s(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function c(t,i,o){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===o?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=n,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}a.prototype.interpolateShape=t,a.prototype.getValue=o,a.prototype.setVValue=i,a.prototype.addEffect=s,c.prototype.getValue=o,c.prototype.interpolateShape=t,c.prototype.setVValue=i,c.prototype.addEffect=s;var l=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],r=this.p.v[1],n=this.s.v[0]/2,i=this.s.v[1]/2,o=3!==this.d,a=this.v;a.v[0][0]=t,a.v[0][1]=r-i,a.v[1][0]=o?t+n:t-n,a.v[1][1]=r,a.v[2][0]=t,a.v[2][1]=r+i,a.v[3][0]=o?t-n:t+n,a.v[3][1]=r,a.i[0][0]=o?t-n*e:t+n*e,a.i[0][1]=r-i,a.i[1][0]=o?t+n:t-n,a.i[1][1]=r-i*e,a.i[2][0]=o?t+n*e:t-n*e,a.i[2][1]=r+i,a.i[3][0]=o?t-n:t+n,a.i[3][1]=r+i*e,a.o[0][0]=o?t+n*e:t-n*e,a.o[0][1]=r-i,a.o[1][0]=o?t+n:t-n,a.o[1][1]=r+i*e,a.o[2][0]=o?t-n*e:t+n*e,a.o[2][1]=r+i,a.o[3][0]=o?t-n:t+n,a.o[3][1]=r-i*e}},extendPrototype([DynamicPropertyContainer],t),t}(),u=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,r,n,i=2*Math.floor(this.pt.v),o=2*Math.PI/i,a=!0,s=this.or.v,c=this.ir.v,l=this.os.v,u=this.is.v,d=2*Math.PI*s/(2*i),p=2*Math.PI*c/(2*i),h=-Math.PI/2;h+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<i;e+=1){r=a?l:u,n=a?d:p;var m=(t=a?s:c)*Math.cos(h),g=t*Math.sin(h),v=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),y=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-v*n*r*f,g-y*n*r*f,m+v*n*r*f,g+y*n*r*f,e,!0),a=!a,h+=o*f}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),r=2*Math.PI/t,n=this.or.v,i=this.os.v,o=2*Math.PI*n/(4*t),a=.5*-Math.PI,s=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var c=n*Math.cos(a),l=n*Math.sin(a),u=0===c&&0===l?0:l/Math.sqrt(c*c+l*l),d=0===c&&0===l?0:-c/Math.sqrt(c*c+l*l);c+=+this.p.v[0],l+=+this.p.v[1],this.v.setTripleAt(c,l,c-u*o*i*s,l-d*o*i*s,c+u*o*i*s,l+d*o*i*s,e,!0),a+=r*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),d=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],r=this.s.v[0]/2,n=this.s.v[1]/2,i=bmMin(r,n,this.r.v),o=i*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+r,t-n+i,e+r,t-n+i,e+r,t-n+o,0,!0),this.v.setTripleAt(e+r,t+n-i,e+r,t+n-o,e+r,t+n-i,1,!0),0!==i?(this.v.setTripleAt(e+r-i,t+n,e+r-i,t+n,e+r-o,t+n,2,!0),this.v.setTripleAt(e-r+i,t+n,e-r+o,t+n,e-r+i,t+n,3,!0),this.v.setTripleAt(e-r,t+n-i,e-r,t+n-i,e-r,t+n-o,4,!0),this.v.setTripleAt(e-r,t-n+i,e-r,t-n+o,e-r,t-n+i,5,!0),this.v.setTripleAt(e-r+i,t-n,e-r+i,t-n,e-r+o,t-n,6,!0),this.v.setTripleAt(e+r-i,t-n,e+r-o,t-n,e+r-i,t-n,7,!0)):(this.v.setTripleAt(e-r,t+n,e-r+o,t+n,e-r,t+n,2),this.v.setTripleAt(e-r,t-n,e-r,t-n+o,e-r,t-n,3))):(this.v.setTripleAt(e+r,t-n+i,e+r,t-n+o,e+r,t-n+i,0,!0),0!==i?(this.v.setTripleAt(e+r-i,t-n,e+r-i,t-n,e+r-o,t-n,1,!0),this.v.setTripleAt(e-r+i,t-n,e-r+o,t-n,e-r+i,t-n,2,!0),this.v.setTripleAt(e-r,t-n+i,e-r,t-n+i,e-r,t-n+o,3,!0),this.v.setTripleAt(e-r,t+n-i,e-r,t+n-o,e-r,t+n-i,4,!0),this.v.setTripleAt(e-r+i,t+n,e-r+i,t+n,e-r+o,t+n,5,!0),this.v.setTripleAt(e+r-i,t+n,e+r-o,t+n,e+r-i,t+n,6,!0),this.v.setTripleAt(e+r,t+n-i,e+r,t+n-i,e+r,t+n-o,7,!0)):(this.v.setTripleAt(e-r,t-n,e-r+o,t-n,e-r,t-n,1,!0),this.v.setTripleAt(e-r,t+n,e-r,t+n-o,e-r,t+n,2,!0),this.v.setTripleAt(e+r,t+n,e+r-o,t+n,e+r,t+n,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},extendPrototype([DynamicPropertyContainer],e),e}(),p={getShapeProp:function(e,t,r){var n;return 3===r||4===r?n=(3===r?t.pt:t.ks).k.length?new c(e,t,r):new a(e,t,r):5===r?n=new d(e,t):6===r?n=new l(e,t):7===r&&(n=new u(e,t)),n.k&&e.addDynamicProperty(n),n},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return c}};return p}(),Matrix=function(){var e=Math.cos,t=Math.sin,r=Math.tan,n=Math.round;function i(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function o(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function a(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(1,0,0,0,0,n,-i,0,0,i,n,0,0,0,0,1)}function s(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,0,i,0,0,1,0,0,-i,0,n,0,0,0,0,1)}function c(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function l(e,t){return this._t(1,t,e,1,0,0)}function u(e,t){return this.shear(r(e),r(t))}function d(n,i){var o=e(i),a=t(i);return this._t(o,a,0,0,-a,o,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(n),1,0,0,0,0,1,0,0,0,0,1)._t(o,-a,0,0,a,o,0,0,0,0,1,0,0,0,0,1)}function p(e,t,r){return r||0===r||(r=1),1===e&&1===t&&1===r?this:this._t(e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1)}function h(e,t,r,n,i,o,a,s,c,l,u,d,p,h,f,m){return this.props[0]=e,this.props[1]=t,this.props[2]=r,this.props[3]=n,this.props[4]=i,this.props[5]=o,this.props[6]=a,this.props[7]=s,this.props[8]=c,this.props[9]=l,this.props[10]=u,this.props[11]=d,this.props[12]=p,this.props[13]=h,this.props[14]=f,this.props[15]=m,this}function f(e,t,r){return r=r||0,0!==e||0!==t||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,r,1):this}function m(e,t,r,n,i,o,a,s,c,l,u,d,p,h,f,m){var g=this.props;if(1===e&&0===t&&0===r&&0===n&&0===i&&1===o&&0===a&&0===s&&0===c&&0===l&&1===u&&0===d)return g[12]=g[12]*e+g[15]*p,g[13]=g[13]*o+g[15]*h,g[14]=g[14]*u+g[15]*f,g[15]*=m,this._identityCalculated=!1,this;var v=g[0],y=g[1],b=g[2],_=g[3],E=g[4],w=g[5],x=g[6],L=g[7],O=g[8],S=g[9],T=g[10],P=g[11],I=g[12],A=g[13],C=g[14],k=g[15];return g[0]=v*e+y*i+b*c+_*p,g[1]=v*t+y*o+b*l+_*h,g[2]=v*r+y*a+b*u+_*f,g[3]=v*n+y*s+b*d+_*m,g[4]=E*e+w*i+x*c+L*p,g[5]=E*t+w*o+x*l+L*h,g[6]=E*r+w*a+x*u+L*f,g[7]=E*n+w*s+x*d+L*m,g[8]=O*e+S*i+T*c+P*p,g[9]=O*t+S*o+T*l+P*h,g[10]=O*r+S*a+T*u+P*f,g[11]=O*n+S*s+T*d+P*m,g[12]=I*e+A*i+C*c+k*p,g[13]=I*t+A*o+C*l+k*h,g[14]=I*r+A*a+C*u+k*f,g[15]=I*n+A*s+C*d+k*m,this._identityCalculated=!1,this}function g(e){var t=e.props;return this.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function v(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function y(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function b(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function _(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function E(e,t,r){return{x:e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}}function w(e,t,r){return e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12]}function x(e,t,r){return e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13]}function L(e,t,r){return e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}function O(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,r=-this.props[1]/e,n=-this.props[4]/e,i=this.props[0]/e,o=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,s=new Matrix;return s.props[0]=t,s.props[1]=r,s.props[4]=n,s.props[5]=i,s.props[12]=o,s.props[13]=a,s}function S(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function T(e){var t,r=e.length,n=[];for(t=0;t<r;t+=1)n[t]=S(e[t]);return n}function P(e,t,r){var n=createTypedArray("float32",6);if(this.isIdentity())n[0]=e[0],n[1]=e[1],n[2]=t[0],n[3]=t[1],n[4]=r[0],n[5]=r[1];else{var i=this.props[0],o=this.props[1],a=this.props[4],s=this.props[5],c=this.props[12],l=this.props[13];n[0]=e[0]*i+e[1]*a+c,n[1]=e[0]*o+e[1]*s+l,n[2]=t[0]*i+t[1]*a+c,n[3]=t[0]*o+t[1]*s+l,n[4]=r[0]*i+r[1]*a+c,n[5]=r[0]*o+r[1]*s+l}return n}function I(e,t,r){return this.isIdentity()?[e,t,r]:[e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]]}function A(e,t){if(this.isIdentity())return e+","+t;var r=this.props;return Math.round(100*(e*r[0]+t*r[4]+r[12]))/100+","+Math.round(100*(e*r[1]+t*r[5]+r[13]))/100}function C(){for(var e=0,t=this.props,r="matrix3d(";e<16;)r+=n(1e4*t[e])/1e4,r+=15===e?")":",",e+=1;return r}function k(e){return e<1e-6&&e>0||e>-1e-6&&e<0?n(1e4*e)/1e4:e}function D(){var e=this.props;return"matrix("+k(e[0])+","+k(e[1])+","+k(e[4])+","+k(e[5])+","+k(e[12])+","+k(e[13])+")"}return function(){this.reset=i,this.rotate=o,this.rotateX=a,this.rotateY=s,this.rotateZ=c,this.skew=u,this.skewFromAxis=d,this.shear=l,this.scale=p,this.setTransform=h,this.translate=f,this.transform=m,this.multiply=g,this.applyToPoint=E,this.applyToX=w,this.applyToY=x,this.applyToZ=L,this.applyToPointArray=I,this.applyToTriplePoints=P,this.applyToPointStringified=A,this.toCSS=C,this.to2dCSS=D,this.clone=b,this.cloneFromProps=_,this.equals=y,this.inversePoints=T,this.inversePoint=S,this.getInverseMatrix=O,this._t=this.transform,this.isIdentity=v,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="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},_typeof$3(e)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(e){setLocationHref(e)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return!0===standalone&&(e.animationData=JSON.parse(animationData)),animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),r=0;r<t.length;r+=1){var n=t[r].split("=");if(decodeURIComponent(n[0])==e)return decodeURIComponent(n[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&__webpack_require__.amdO}catch(e){}var ShapeModifiers=(e={},t={},e.registerModifier=function(e,r){t[e]||(t[e]=r)},e.getModifier=function(e,r,n){return new t[e](r,n)},e),e,t;function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,r,n,i){var o=[];t<=1?o.push({s:e,e:t}):e>=1?o.push({s:e-1,e:t-1}):(o.push({s:e,e:1}),o.push({s:0,e:t-1}));var a,s,c=[],l=o.length;for(a=0;a<l;a+=1){var u,d;(s=o[a]).e*i<n||s.s*i>n+r||(u=s.s*i<=n?0:(s.s*i-n)/r,d=s.e*i>=n+r?1:(s.e*i-n)/r,c.push([u,d]))}return c.length||c.push([0,0]),c},TrimModifier.prototype.releasePathsData=function(e){var t,r=e.length;for(t=0;t<r;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,r,n,i;if(this._mdf||e){var o=this.o.v%360/360;if(o<0&&(o+=1),(t=this.s.v>1?1+o:this.s.v<0?0+o:this.s.v+o)>(r=this.e.v>1?1+o:this.e.v<0?0+o:this.e.v+o)){var a=t;t=r,r=a}t=1e-4*Math.round(1e4*t),r=1e-4*Math.round(1e4*r),this.sValue=t,this.eValue=r}else t=this.sValue,r=this.eValue;var s,c,l,u,d,p=this.shapes.length,h=0;if(r===t)for(i=0;i<p;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===r&&0===t||0===r&&1===t){if(this._mdf)for(i=0;i<p;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var f,m,g=[];for(i=0;i<p;i+=1)if((f=this.shapes[i]).shape._mdf||this._mdf||e||2===this.m){if(c=(n=f.shape.paths)._length,d=0,!f.shape._mdf&&f.pathsData.length)d=f.totalShapeLength;else{for(l=this.releasePathsData(f.pathsData),s=0;s<c;s+=1)u=bez.getSegmentsLength(n.shapes[s]),l.push(u),d+=u.totalLength;f.totalShapeLength=d,f.pathsData=l}h+=d,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var v,y=t,b=r,_=0;for(i=p-1;i>=0;i-=1)if((f=this.shapes[i]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&p>1?(v=this.calculateShapeEdges(t,r,f.totalShapeLength,_,h),_+=f.totalShapeLength):v=[[y,b]],c=v.length,s=0;s<c;s+=1){y=v[s][0],b=v[s][1],g.length=0,b<=1?g.push({s:f.totalShapeLength*y,e:f.totalShapeLength*b}):y>=1?g.push({s:f.totalShapeLength*(y-1),e:f.totalShapeLength*(b-1)}):(g.push({s:f.totalShapeLength*y,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(b-1)}));var E=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var w=E.pop();this.addPaths(E,m),E=this.addShapes(f,g[1],w)}else this.addPaths(E,m),E=this.addShapes(f,g[1]);this.addPaths(E,m)}}f.shape.paths=m}}},TrimModifier.prototype.addPaths=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,n,i,o,a){i.setXYAt(t[0],t[1],"o",o),i.setXYAt(r[0],r[1],"i",o+1),a&&i.setXYAt(e[0],e[1],"v",o),i.setXYAt(n[0],n[1],"v",o+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,n){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),n&&t.setXYAt(e[0],e[4],"v",r),t.setXYAt(e[3],e[7],"v",r+1)},TrimModifier.prototype.addShapes=function(e,t,r){var n,i,o,a,s,c,l,u,d=e.pathsData,p=e.shape.paths.shapes,h=e.shape.paths._length,f=0,m=[],g=!0;for(r?(s=r._length,u=r._length):(r=shapePool.newElement(),s=0,u=0),m.push(r),n=0;n<h;n+=1){for(c=d[n].lengths,r.c=p[n].c,o=p[n].c?c.length:c.length+1,i=1;i<o;i+=1)if(f+(a=c[i-1]).addedLength<t.s)f+=a.addedLength,r.c=!1;else{if(f>t.e){r.c=!1;break}t.s<=f&&t.e>=f+a.addedLength?(this.addSegment(p[n].v[i-1],p[n].o[i-1],p[n].i[i],p[n].v[i],r,s,g),g=!1):(l=bez.getNewSegment(p[n].v[i-1],p[n].v[i],p[n].o[i-1],p[n].i[i],(t.s-f)/a.addedLength,(t.e-f)/a.addedLength,c[i-1]),this.addSegmentFromArray(l,r,s,g),g=!1,r.c=!1),f+=a.addedLength,s+=1}if(p[n].c&&c.length){if(a=c[i-1],f<=t.e){var v=c[i-1].addedLength;t.s<=f&&t.e>=f+v?(this.addSegment(p[n].v[i-1],p[n].o[i-1],p[n].i[0],p[n].v[0],r,s,g),g=!1):(l=bez.getNewSegment(p[n].v[i-1],p[n].v[0],p[n].o[i-1],p[n].i[0],(t.s-f)/v,(t.e-f)/v,c[i-1]),this.addSegmentFromArray(l,r,s,g),g=!1,r.c=!1)}else r.c=!1;f+=a.addedLength,s+=1}if(r._length&&(r.setXYAt(r.v[u][0],r.v[u][1],"i",u),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),f>t.e)break;n<h-1&&(r=shapePool.newElement(),g=!0,m.push(r),s=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var r=t/100,n=[0,0],i=e._length,o=0;for(o=0;o<i;o+=1)n[0]+=e.v[o][0],n[1]+=e.v[o][1];n[0]/=i,n[1]/=i;var a,s,c,l,u,d,p=shapePool.newElement();for(p.c=e.c,o=0;o<i;o+=1)a=e.v[o][0]+(n[0]-e.v[o][0])*r,s=e.v[o][1]+(n[1]-e.v[o][1])*r,c=e.o[o][0]+(n[0]-e.o[o][0])*-r,l=e.o[o][1]+(n[1]-e.o[o][1])*-r,u=e.i[o][0]+(n[0]-e.i[o][0])*-r,d=e.i[o][1]+(n[1]-e.i[o][1])*-r,p.setTripleAt(a,s,c,l,u,d,o);return p},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,n,i,o,a,s=this.shapes.length,c=this.amount.v;if(0!==c)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(t[n],c));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,r){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var n,i=t.or.k.length;for(n=0;n<i;n+=1)t.or.k[n].to=null,t.or.k[n].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var r;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var n,i;if(r=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(n=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(n=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(n=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){n=[],i=[];var o=this.px,a=this.py;o._caching.lastFrame+o.offsetTime<=o.keyframes[0].t?(n[0]=o.getValueAtTime((o.keyframes[0].t+.01)/r,0),n[1]=a.getValueAtTime((a.keyframes[0].t+.01)/r,0),i[0]=o.getValueAtTime(o.keyframes[0].t/r,0),i[1]=a.getValueAtTime(a.keyframes[0].t/r,0)):o._caching.lastFrame+o.offsetTime>=o.keyframes[o.keyframes.length-1].t?(n[0]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/r,0),n[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/r,0),i[0]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/r,0),i[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/r,0)):(n=[o.pv,a.pv],i[0]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/r,o.offsetTime),i[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/r,a.offsetTime))}else n=i=e;this.v.rotate(-Math.atan2(n[1]-i[1],n[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,r,n){return new t(e,r,n)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,r){return e*(1-r)+t*r}function lerpPoint(e,t,r){return[lerp(e[0],t[0],r),lerp(e[1],t[1],r)]}function quadRoots(e,t,r){if(0===e)return[];var n=t*t-4*e*r;if(n<0)return[];var i=-t/(2*e);if(0===n)return[i];var o=Math.sqrt(n)/(2*e);return[i-o,i+o]}function polynomialCoefficients(e,t,r,n){return[3*t-e-3*r+n,3*e-6*t+3*r,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,r,n,i){i&&pointEqual(e,t)&&(t=lerpPoint(e,n,1/3)),i&&pointEqual(r,n)&&(r=lerpPoint(e,n,2/3));var o=polynomialCoefficients(e[0],t[0],r[0],n[0]),a=polynomialCoefficients(e[1],t[1],r[1],n[1]);this.a=[o[0],a[0]],this.b=[o[1],a[1]],this.c=[o[2],a[2]],this.d=[o[3],a[3]],this.points=[e,t,r,n]}function extrema(e,t){var r=e.points[0][t],n=e.points[e.points.length-1][t];if(r>n){var i=n;n=r,r=i}for(var o=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),a=0;a<o.length;a+=1)if(o[a]>0&&o[a]<1){var s=e.point(o[a])[t];s<r?r=s:s>n&&(n=s)}return{min:r,max:n}}function intersectData(e,t,r){var n=e.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:e,t:(t+r)/2,t1:t,t2:r}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function intersectsImpl(e,t,r,n,i,o){if(boxIntersect(e,t))if(r>=o||e.width<=n&&e.height<=n&&t.width<=n&&t.height<=n)i.push([e.t,t.t]);else{var a=splitData(e),s=splitData(t);intersectsImpl(a[0],s[0],r+1,n,i,o),intersectsImpl(a[0],s[1],r+1,n,i,o),intersectsImpl(a[1],s[0],r+1,n,i,o),intersectsImpl(a[1],s[1],r+1,n,i,o)}}function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,r,n){var i=[e[0],e[1],1],o=[t[0],t[1],1],a=[r[0],r[1],1],s=[n[0],n[1],1],c=crossProduct(crossProduct(i,o),crossProduct(a,s));return floatZero(c[2])?null:[c[0]/c[2],c[1]/c[2]]}function polarOffset(e,t,r){return[e[0]+Math.cos(t)*r,e[1]-Math.sin(t)*r]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}function setPoint(e,t,r,n,i,o,a){var s=r-Math.PI/2,c=r+Math.PI/2,l=t[0]+Math.cos(r)*n*i,u=t[1]-Math.sin(r)*n*i;e.setTripleAt(l,u,l+Math.cos(s)*o,u-Math.sin(s)*o,l+Math.cos(c)*a,u-Math.sin(c)*a,e.length())}function getPerpendicularVector(e,t){var r=[t[0]-e[0],t[1]-e[1]],n=.5*-Math.PI;return[Math.cos(n)*r[0]-Math.sin(n)*r[1],Math.sin(n)*r[0]+Math.cos(n)*r[1]]}function getProjectingAngle(e,t){var r=0===t?e.length()-1:t-1,n=(t+1)%e.length(),i=getPerpendicularVector(e.v[r],e.v[n]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function zigZagCorner(e,t,r,n,i,o,a){var s=getProjectingAngle(t,r),c=t.v[r%t._length],l=t.v[0===r?t._length-1:r-1],u=t.v[(r+1)%t._length],d=2===o?Math.sqrt(Math.pow(c[0]-l[0],2)+Math.pow(c[1]-l[1],2)):0,p=2===o?Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)):0;setPoint(e,t.v[r%t._length],s,a,n,p/(2*(i+1)),d/(2*(i+1)),o)}function zigZagSegment(e,t,r,n,i,o){for(var a=0;a<n;a+=1){var s=(a+1)/(n+1),c=2===i?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,l=t.normalAngle(s);setPoint(e,t.point(s),l,o,r,c/(2*(n+1)),c/(2*(n+1)),i),o=-o}return o}function linearOffset(e,t,r){var n=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,n,r),polarOffset(t,n,r)]}function offsetSegment(e,t){var r,n,i,o,a,s,c;r=(c=linearOffset(e.points[0],e.points[1],t))[0],n=c[1],i=(c=linearOffset(e.points[1],e.points[2],t))[0],o=c[1],a=(c=linearOffset(e.points[2],e.points[3],t))[0],s=c[1];var l=lineIntersection(r,n,i,o);null===l&&(l=n);var u=lineIntersection(a,s,i,o);return null===u&&(u=a),new PolynomialBezier(r,l,u,s)}function joinLines(e,t,r,n,i){var o=t.points[3],a=r.points[0];if(3===n)return o;if(pointEqual(o,a))return o;if(2===n){var s=-t.tangentAngle(1),c=-r.tangentAngle(0)+Math.PI,l=lineIntersection(o,polarOffset(o,s+Math.PI/2,100),a,polarOffset(a,s+Math.PI/2,100)),u=l?pointDistance(l,o):pointDistance(o,a)/2,d=polarOffset(o,s,2*u*roundCorner);return e.setXYAt(d[0],d[1],"o",e.length()-1),d=polarOffset(a,c,2*u*roundCorner),e.setTripleAt(a[0],a[1],a[0],a[1],d[0],d[1],e.length()),a}var p=lineIntersection(pointEqual(o,t.points[2])?t.points[0]:t.points[2],o,a,pointEqual(a,r.points[1])?r.points[3]:r.points[1]);return p&&pointDistance(p,o)<i?(e.setTripleAt(p[0],p[1],p[0],p[1],p[0],p[1],e.length()),p):o}function getIntersection(e,t){var r=e.intersections(t);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(e,t){var r=e.slice(),n=t.slice(),i=getIntersection(e[e.length-1],t[0]);return i&&(r[e.length-1]=e[e.length-1].split(i[0])[0],n[0]=t[0].split(i[1])[1]),e.length>1&&t.length>1&&(i=getIntersection(e[0],t[t.length-1]))?[[e[0].split(i[0])[0]],[t[t.length-1].split(i[1])[1]]]:[r,n]}function pruneIntersections(e){for(var t,r=1;r<e.length;r+=1)t=pruneSegmentIntersection(e[r-1],e[r]),e[r-1]=t[0],e[r]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var r,n,i,o,a=e.inflectionPoints();if(0===a.length)return[offsetSegment(e,t)];if(1===a.length||floatEqual(a[1],1))return r=(i=e.split(a[0]))[0],n=i[1],[offsetSegment(r,t),offsetSegment(n,t)];r=(i=e.split(a[0]))[0];var s=(a[1]-a[0])/(1-a[0]);return o=(i=i[1].split(s))[0],n=i[1],[offsetSegment(r,t),offsetSegment(o,t),offsetSegment(n,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",n="normal",i=t.length,o=0;o<i;o+=1)switch(t[o].toLowerCase()){case"italic":n="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200"}return{style:n,weight:e.fWeight||r}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,r,n,i,o){var a=o?-1:1,s=n.s.v[0]+(1-n.s.v[0])*(1-i),c=n.s.v[1]+(1-n.s.v[1])*(1-i);e.translate(n.p.v[0]*a*i,n.p.v[1]*a*i,n.p.v[2]),t.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),t.rotate(-n.r.v*a*i),t.translate(n.a.v[0],n.a.v[1],n.a.v[2]),r.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),r.scale(o?1/s:s,o?1/c:c),r.translate(n.a.v[0],n.a.v[1],n.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,n){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[r]);r>0;)r-=1,this._elements.unshift(t[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)e[r]._render=t,"gr"===e[r].ty&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,n,i,o,a=!1;if(this._mdf||e){var s,c=Math.ceil(this.c.v);if(this._groups.length<c){for(;this._groups.length<c;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(o=0,n=0;n<=this._groups.length-1;n+=1){if(s=o<c,this._groups[n]._render=s,this.changeGroupRender(this._groups[n].it,s),!s){var u=this.elemsData[n].it,d=u[u.length-1];0!==d.transform.op.v?(d.transform.op._mdf=!0,d.transform.op.v=0):d.transform.op._mdf=!1}o+=1}this._currentCopies=c;var p=this.o.v,h=p%1,f=p>0?Math.floor(p):Math.ceil(p),m=this.pMatrix.props,g=this.rMatrix.props,v=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y,b,_=0;if(p>0){for(;_<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,h,!1),_+=h)}else if(p<0){for(;_>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-h,!0),_-=h)}for(n=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,o=this._currentCopies;o;){if(b=(r=(t=this.elemsData[n].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),0!==_){for((0!==n&&1===i||n!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),y=0;y<b;y+=1)r[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<b;y+=1)r[y]=this.matrix.props[y];_+=1,o-=1,n+=i}}else for(o=this._currentCopies,n=0,i=1;o;)r=(t=this.elemsData[n].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,o-=1,n+=i;return a},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var r,n=shapePool.newElement();n.c=e.c;var i,o,a,s,c,l,u,d,p,h,f,m,g=e._length,v=0;for(r=0;r<g;r+=1)i=e.v[r],a=e.o[r],o=e.i[r],i[0]===a[0]&&i[1]===a[1]&&i[0]===o[0]&&i[1]===o[1]?0!==r&&r!==g-1||e.c?(s=0===r?e.v[g-1]:e.v[r-1],l=(c=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(c/2,t)/c:0,u=f=i[0]+(s[0]-i[0])*l,d=m=i[1]-(i[1]-s[1])*l,p=u-(u-i[0])*roundCorner,h=d-(d-i[1])*roundCorner,n.setTripleAt(u,d,p,h,f,m,v),v+=1,s=r===g-1?e.v[0]:e.v[r+1],l=(c=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(c/2,t)/c:0,u=p=i[0]+(s[0]-i[0])*l,d=h=i[1]+(s[1]-i[1])*l,f=u-(u-i[0])*roundCorner,m=d-(d-i[1])*roundCorner,n.setTripleAt(u,d,p,h,f,m,v),v+=1):(n.setTripleAt(i[0],i[1],a[0],a[1],o[0],o[1],v),v+=1):(n.setTripleAt(e.v[r][0],e.v[r][1],e.o[r][0],e.o[r][1],e.i[r][0],e.i[r][1],v),v+=1);return n},RoundCornersModifier.prototype.processShapes=function(e){var t,r,n,i,o,a,s=this.shapes.length,c=this.rd.v;if(0!==c)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(t[n],c));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,r=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(r<0)return[];var n=Math.sqrt(r);return floatZero(n)?n>0&&n<1?[t]:[]:[t-n,t+n].filter((function(e){return e>0&&e<1}))},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),r=lerpPoint(this.points[1],this.points[2],e),n=lerpPoint(this.points[2],this.points[3],e),i=lerpPoint(t,r,e),o=lerpPoint(r,n,e),a=lerpPoint(i,o,e);return[new PolynomialBezier(this.points[0],t,i,a,!0),new PolynomialBezier(a,o,n,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,t,r){void 0===t&&(t=2),void 0===r&&(r=7);var n=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,n,r),n},PolynomialBezier.shapeSegment=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[r],e.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[r],e.i[r],e.o[t],e.v[t],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(e,t,r,n){var i=e._length,o=shapePool.newElement();if(o.c=e.c,e.c||(i-=1),0===i)return o;var a=-1,s=PolynomialBezier.shapeSegment(e,0);zigZagCorner(o,e,0,t,r,n,a);for(var c=0;c<i;c+=1)a=zigZagSegment(o,s,t,r,n,-a),s=c!==i-1||e.c?PolynomialBezier.shapeSegment(e,(c+1)%i):null,zigZagCorner(o,e,c+1,t,r,n,a);return o},ZigZagModifier.prototype.processShapes=function(e){var t,r,n,i,o,a,s=this.shapes.length,c=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),u=this.pointsType.v;if(0!==c)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(t[n],c,l,u));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(e,t,r,n){var i=shapePool.newElement();i.c=e.c;var o,a,s,c=e.length();e.c||(c-=1);var l=[];for(o=0;o<c;o+=1)s=PolynomialBezier.shapeSegment(e,o),l.push(offsetSegmentSplit(s,t));if(!e.c)for(o=c-1;o>=0;o-=1)s=PolynomialBezier.shapeSegmentInverted(e,o),l.push(offsetSegmentSplit(s,t));l=pruneIntersections(l);var u=null,d=null;for(o=0;o<l.length;o+=1){var p=l[o];for(d&&(u=joinLines(i,d,p[0],r,n)),d=p[p.length-1],a=0;a<p.length;a+=1)s=p[a],u&&pointEqual(s.points[0],u)?i.setXYAt(s.points[1][0],s.points[1][1],"o",i.length()-1):i.setTripleAt(s.points[0][0],s.points[0][1],s.points[1][0],s.points[1][1],s.points[0][0],s.points[0][1],i.length()),i.setTripleAt(s.points[3][0],s.points[3][1],s.points[3][0],s.points[3][1],s.points[2][0],s.points[2][1],i.length()),u=s.points[3]}return l.length&&joinLines(i,d,l[0][0],r,n),i},OffsetPathModifier.prototype.processShapes=function(e){var t,r,n,i,o,a,s=this.shapes.length,c=this.amount.v,l=this.miterLimit.v,u=this.lineJoin;if(0!==c)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(t[n],c,u,l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=127988,n=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function i(e,t){var r=createTag("span");r.setAttribute("aria-hidden",!0),r.style.fontFamily=t;var n=createTag("span");n.innerText="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(n),document.body.appendChild(r);var i=n.offsetWidth;return n.style.fontFamily=function(e){var t,r=e.split(","),n=r.length,i=[];for(t=0;t<n;t+=1)"sans-serif"!==r[t]&&"monospace"!==r[t]&&i.push(r[t]);return i.join(",")}(e)+", "+t,{node:n,w:i,parent:r}}function o(e,t){var r,n=document.body&&t?"svg":"canvas",i=getFontProperties(e);if("svg"===n){var o=createNS("text");o.style.fontSize="100px",o.setAttribute("font-family",e.fFamily),o.setAttribute("font-style",i.style),o.setAttribute("font-weight",i.weight),o.textContent="1",e.fClass?(o.style.fontFamily="inherit",o.setAttribute("class",e.fClass)):o.style.fontFamily=e.fFamily,t.appendChild(o),r=o}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=i.style+" "+i.weight+" 100px "+e.fFamily,r=a}return{measureText:function(e){return"svg"===n?(r.textContent=e,r.getComputedTextLength()):r.measureText(e).width}}}function a(e){var t=0,r=e.charCodeAt(0);if(r>=55296&&r<=56319){var n=e.charCodeAt(1);n>=56320&&n<=57343&&(t=1024*(r-55296)+n-56320+65536)}return t}function s(e){var t=a(e);return t>=127462&&t<=127487}var c=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};c.isModifier=function(e,t){var r=e.toString(16)+t.toString(16);return-1!==n.indexOf(r)},c.isZeroWidthJoiner=function(e){return 8205===e},c.isFlagEmoji=function(e){return s(e.substr(0,2))&&s(e.substr(2,2))},c.isRegionalCode=s,c.isCombinedCharacter=function(e){return-1!==t.indexOf(e)},c.isRegionalFlag=function(e,t){var n=a(e.substr(t,2));if(n!==r)return!1;var i=0;for(t+=2;i<5;){if((n=a(e.substr(t,2)))<917601||n>917626)return!1;i+=1,t+=2}return 917631===a(e.substr(t,2))},c.isVariationSelector=function(e){return 65039===e},c.BLACK_FLAG_CODE_POINT=r;var l={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var r,n,i=e.length,o=this.chars.length;for(t=0;t<i;t+=1){for(r=0,n=!1;r<o;)this.chars[r].style===e[t].style&&this.chars[r].fFamily===e[t].fFamily&&this.chars[r].ch===e[t].ch&&(n=!0),r+=1;n||(this.chars.push(e[t]),o+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach((function(e){e.helper=o(e),e.cache={}})),void(this.fonts=e.list);var r,n=e.list,a=n.length,s=a;for(r=0;r<a;r+=1){var c,l,u=!0;if(n[r].loaded=!1,n[r].monoCase=i(n[r].fFamily,"monospace"),n[r].sansCase=i(n[r].fFamily,"sans-serif"),n[r].fPath){if("p"===n[r].fOrigin||3===n[r].origin){if((c=document.querySelectorAll('style[f-forigin="p"][f-family="'+n[r].fFamily+'"], style[f-origin="3"][f-family="'+n[r].fFamily+'"]')).length>0&&(u=!1),u){var d=createTag("style");d.setAttribute("f-forigin",n[r].fOrigin),d.setAttribute("f-origin",n[r].origin),d.setAttribute("f-family",n[r].fFamily),d.type="text/css",d.innerText="@font-face {font-family: "+n[r].fFamily+"; font-style: normal; src: url('"+n[r].fPath+"');}",t.appendChild(d)}}else if("g"===n[r].fOrigin||1===n[r].origin){for(c=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),l=0;l<c.length;l+=1)-1!==c[l].href.indexOf(n[r].fPath)&&(u=!1);if(u){var p=createTag("link");p.setAttribute("f-forigin",n[r].fOrigin),p.setAttribute("f-origin",n[r].origin),p.type="text/css",p.rel="stylesheet",p.href=n[r].fPath,document.body.appendChild(p)}}else if("t"===n[r].fOrigin||2===n[r].origin){for(c=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),l=0;l<c.length;l+=1)n[r].fPath===c[l].src&&(u=!1);if(u){var h=createTag("link");h.setAttribute("f-forigin",n[r].fOrigin),h.setAttribute("f-origin",n[r].origin),h.setAttribute("rel","stylesheet"),h.setAttribute("href",n[r].fPath),t.appendChild(h)}}}else n[r].loaded=!0,s-=1;n[r].helper=o(n[r],t),n[r].cache={},this.fonts.push(n[r])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,r,n){for(var i=0,o=this.chars.length;i<o;){if(this.chars[i].ch===t&&this.chars[i].style===r&&this.chars[i].fFamily===n)return this.chars[i];i+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,r,n)),e},getFontByName:function(e){for(var t=0,r=this.fonts.length;t<r;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,r){var n=this.getFontByName(t),i=e;if(!n.cache[i]){var o=n.helper;if(" "===e){var a=o.measureText("|"+e+"|"),s=o.measureText("||");n.cache[i]=(a-s)/100}else n.cache[i]=o.measureText(e)/100}return n.cache[i]*r},checkLoadedFonts:function(){var e,t,r,n=this.fonts.length,i=n;for(e=0;e<n;e+=1)this.fonts[e].loaded?i-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,r=this.fonts[e].monoCase.w,t.offsetWidth!==r?(i-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,r=this.fonts[e].sansCase.w,t.offsetWidth!==r&&(i-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==i&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return c.prototype=l,c}();function SlotManager(e){this.animationData=e}function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(e){return blendModeEnums[e]||""}),blendModeEnums;function SliderEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function AngleEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function ColorEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function PointEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function LayerIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function MaskIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function CheckboxEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var r,n=e.ef||[];this.effectElements=[];var i,o=n.length;for(r=0;r<o;r+=1)i=new GroupEffect(n[r],t),this.effectElements.push(i)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function FootageElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,r)}function AudioElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,r),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var r;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var n,i=this.data.ef.length,o=this.data.ef;for(r=0;r<i;r+=1){switch(n=null,o[r].ty){case 0:n=new SliderEffect(o[r],t,this);break;case 1:n=new AngleEffect(o[r],t,this);break;case 2:n=new ColorEffect(o[r],t,this);break;case 3:n=new PointEffect(o[r],t,this);break;case 4:case 7:n=new CheckboxEffect(o[r],t,this);break;case 10:n=new LayerIndexEffect(o[r],t,this);break;case 11:n=new MaskIndexEffect(o[r],t,this);break;case 5:n=new EffectsManager(o[r],t,this);break;default:n=new NoValueEffect(o[r],t,this)}n&&this.effectElements.push(n)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var t=e("layer"),r=e("effects"),n=e("shape"),i=e("text"),o=e("comp");this.layerInterface=t(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=o(this):4===this.data.ty?(this.layerInterface.shapeInterface=n(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=i(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,r){this.globalData=t,this.comp=r,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var r,n=this.dynamicProperties.length;for(r=0;r<n;r+=1)(t||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,r,n=this.layers.length;for(this.completeLayers=!0,t=n-1;t>=0;t-=1)this.elements[t]||(r=this.layers[t]).ip-r.st<=e-this.layers[t].st&&r.op-r.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var r,n=e.length,i=this.layers.length;for(t=0;t<n;t+=1)for(r=0;r<i;){if(this.layers[r].id===e[t].id){this.layers[r]=e[t];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,r){for(var n=this.elements,i=this.layers,o=0,a=i.length;o<a;)i[o].ind==t&&(n[o]&&!0!==n[o]?(r.push(n[o]),n[o].setAsParent(),void 0!==i[o].parent?this.buildElementParenting(e,i[o].parent,r):e.setHierarchy(r)):(this.buildItem(o),this.addPendingElement(e))),o+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,r=e.length;for(t=0;t<r;t+=1)if(e[t].xt){var n=this.createComp(e[t]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},BaseRenderer.prototype.getElementById=function(e){var t,r=this.elements.length;for(t=0;t<r;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t,r=e.shift();if("number"==typeof r)t=this.elements[r];else{var n,i=this.elements.length;for(n=0;n<i;n+=1)if(this.elements[n].data.nm===r){t=this.elements[n];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(e,t,r){this.data=e,this.element=t,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n,i,o=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var s,c,l,u,d,p,h=this.masksProperties,f=0,m=[],g=createElementID(),v="clipPath",y="clip-path";for(n=0;n<a;n+=1)if(("a"!==h[n].mode&&"n"!==h[n].mode||h[n].inv||100!==h[n].o.k||h[n].o.x)&&(v="mask",y="mask"),"s"!==h[n].mode&&"i"!==h[n].mode||0!==f?l=null:((l=createNS("rect")).setAttribute("fill","#ffffff"),l.setAttribute("width",this.element.comp.data.w||0),l.setAttribute("height",this.element.comp.data.h||0),m.push(l)),i=createNS("path"),"n"===h[n].mode)this.viewData[n]={op:PropertyFactory.getProp(this.element,h[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[n],3),elem:i,lastPath:""},o.appendChild(i);else{var b;if(f+=1,i.setAttribute("fill","s"===h[n].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==h[n].x.k?(v="mask",y="mask",p=PropertyFactory.getProp(this.element,h[n].x,0,null,this.element),b=createElementID(),(u=createNS("filter")).setAttribute("id",b),(d=createNS("feMorphology")).setAttribute("operator","erode"),d.setAttribute("in","SourceGraphic"),d.setAttribute("radius","0"),u.appendChild(d),o.appendChild(u),i.setAttribute("stroke","s"===h[n].mode?"#000000":"#ffffff")):(d=null,p=null),this.storedData[n]={elem:i,x:p,expan:d,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===h[n].mode){c=m.length;var _=createNS("g");for(s=0;s<c;s+=1)_.appendChild(m[s]);var E=createNS("mask");E.setAttribute("mask-type","alpha"),E.setAttribute("id",g+"_"+f),E.appendChild(i),o.appendChild(E),_.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+f+")"),m.length=0,m.push(_)}else m.push(i);h[n].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[n]={elem:i,lastPath:"",op:PropertyFactory.getProp(this.element,h[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[n],3),invRect:l},this.viewData[n].prop.k||this.drawPath(h[n],this.viewData[n].prop.v,this.viewData[n])}for(this.maskElement=createNS(v),a=m.length,n=0;n<a;n+=1)this.maskElement.appendChild(m[n]);f>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(y,"url("+getLocationHref()+"#"+g+")"),o.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,r=0,n=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<n;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),r=0;r<n;r+=1)t.multiply(this.hierarchy[r].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var e=0,t=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<t;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var r=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(r),e=1;e<t;e+=1){var n=this.localTransforms[e].matrix;r.multiply(n)}r.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var i=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)i*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=i}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var t=0,r=e.length;for(t=0;t<r;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var r,n=!0,i=this.comp;n;)i.finalTransform?(i.data.hasMask&&t.splice(0,0,i.finalTransform),i=i.comp):n=!1;var o,a=t.length;for(r=0;r<a;r+=1)o=t[r].mat.applyToPointArray(0,0,0),e=[e[0]-o[0],e[1]-o[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,r=this.element.finalTransform.mat,n=this.masksProperties.length;for(t=0;t<n;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var i=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),i.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,(e+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,r){var n,i,o=" M"+t.v[0][0]+","+t.v[0][1];for(i=t._length,n=1;n<i;n+=1)o+=" C"+t.o[n-1][0]+","+t.o[n-1][1]+" "+t.i[n][0]+","+t.i[n][1]+" "+t.v[n][0]+","+t.v[n][1];if(t.c&&i>1&&(o+=" C"+t.o[n-1][0]+","+t.o[n-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==o){var a="";r.elem&&(t.c&&(a=e.inv?this.solidPath+o:o),r.elem.setAttribute("d",a)),r.lastPath=o}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={createFilter:function(e,t){var r=createNS("filter");return r.setAttribute("id",e),!0!==t&&(r.setAttribute("filterUnits","objectBoundingBox"),r.setAttribute("x","0%"),r.setAttribute("y","0%"),r.setAttribute("width","100%"),r.setAttribute("height","100%")),r},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),e}};return e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,r,n="SourceGraphic",i=e.data.ef?e.data.ef.length:0,o=createElementID(),a=filtersFactory.createFilter(o,!0),s=0;for(this.filters=[],t=0;t<i;t+=1){r=null;var c=e.data.ef[t].ty;registeredEffects$1[c]&&(r=new(0,registeredEffects$1[c].effect)(a,e.effectsManager.effectElements[t],e,idPrefix+s,n),n=idPrefix+s,registeredEffects$1[c].countsAsEffect&&(s+=1)),r&&this.filters.push(r)}s&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+o+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect$1(e,t,r){registeredEffects$1[e]={effect:t,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,r=this.filters.length,n=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var t=createNS("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var r=createNS("clipPath"),n=createNS("path");n.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var i=createElementID();if(r.setAttribute("id",i),r.appendChild(n),this.globalData.defs.appendChild(r),this.checkMasks()){var o=createNS("g");o.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),o.appendChild(this.layerElement),this.transformedElement=o,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,r,n,i,o=this.layerId+"_"+e;if(1===e||3===e){var a=createNS("mask");a.setAttribute("id",o),a.setAttribute("mask-type",3===e?"luminance":"alpha"),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(n),this.globalData.defs.appendChild(a),featureSupport.maskType||1!==e||(a.setAttribute("mask-type","luminance"),t=createElementID(),r=filtersFactory.createFilter(t),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(i=createNS("g")).appendChild(n),a.appendChild(i),i.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2===e){var s=createNS("mask");s.setAttribute("id",o),s.setAttribute("mask-type","alpha");var c=createNS("g");s.appendChild(c),t=createElementID(),r=filtersFactory.createFilter(t);var l=createNS("feComponentTransfer");l.setAttribute("in","SourceGraphic"),r.appendChild(l);var u=createNS("feFuncA");u.setAttribute("type","table"),u.setAttribute("tableValues","1.0 0.0"),l.appendChild(u),this.globalData.defs.appendChild(r);var d=createNS("rect");d.setAttribute("width",this.comp.data.w),d.setAttribute("height",this.comp.data.h),d.setAttribute("x","0"),d.setAttribute("y","0"),d.setAttribute("fill","#ffffff"),d.setAttribute("opacity","0"),c.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),c.appendChild(d),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),c.appendChild(n),featureSupport.maskType||(s.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),i=createNS("g"),c.appendChild(d),i.appendChild(this.layerElement),c.appendChild(i)),this.globalData.defs.appendChild(s)}this.matteMasks[e]=o}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,r=this.shapeModifiers.length;for(t=0;t<r;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,r=0,n=t.length;r<n;){if(t[r].elem===e)return t[r].pos;r+=1}return 0},addProcessedElement:function(e,t){for(var r=this.processedElements,n=r.length;n;)if(r[n-=1].elem===e)return void(r[n].pos=t);r.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,r){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=r,this.lvl=t,this._isAnimated=!!r.k;for(var n=0,i=e.length;n<i;){if(e[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,r,n){var i;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(n);var o,a=t.length||0;for(i=0;i<a;i+=1)o=PropertyFactory.getProp(e,t[i].v,0,0,this),this.k=o.k||this.k,this.dataProps[i]={n:t[i].n,p:o};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r}function SVGNoStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(e,t,r){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var n=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,r)}function SVGGradientStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,r){this.transform={mProps:e,op:t,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,r=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<r;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var r=0,n=this.o.length/2;r<n;){if(Math.abs(e[4*r]-e[4*t+2*r])>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,r,n,i=4*this.data.p;for(t=0;t<i;t+=1)r=t%4==0?100:255,n=Math.round(this.prop.v[t]*r),this.c[t]!==n&&(this.c[t]=n,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,t=4*this.data.p;t<i;t+=1)r=t%2==0?100:1,n=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==n&&(this.o[t-4*this.data.p]=n,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,r){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,t),this.setGradientOpacity(t,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var r=createElementID(),n=createNS(1===t.t?"linearGradient":"radialGradient");n.setAttribute("id",r),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var i,o,a,s=[];for(a=4*t.g.p,o=0;o<a;o+=4)i=createNS("stop"),n.appendChild(i),s.push(i);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=n,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,n,i,o=createNS("mask"),a=createNS("path");o.appendChild(a);var s=createElementID(),c=createElementID();o.setAttribute("id",c);var l=createNS(1===e.t?"linearGradient":"radialGradient");l.setAttribute("id",s),l.setAttribute("spreadMethod","pad"),l.setAttribute("gradientUnits","userSpaceOnUse"),i=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var u=this.stops;for(n=4*e.g.p;n<i;n+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),l.appendChild(r),u.push(r);a.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),"gs"===e.ty&&(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&a.setAttribute("stroke-miterlimit",e.ml)),this.of=l,this.ms=o,this.ost=u,this.maskId=c,t.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,r,n){if(0===t)return"";var i,o=e.o,a=e.i,s=e.v,c=" M"+n.applyToPointStringified(s[0][0],s[0][1]);for(i=1;i<t;i+=1)c+=" C"+n.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+n.applyToPointStringified(a[i][0],a[i][1])+" "+n.applyToPointStringified(s[i][0],s[i][1]);return r&&t&&(c+=" C"+n.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+n.applyToPointStringified(a[0][0],a[0][1])+" "+n.applyToPointStringified(s[0][0],s[0][1]),c+="z"),c},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function r(e,t,r){(r||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(r||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function n(){}function i(r,n,i){var o,a,s,c,l,u,d,p,h,f,m=n.styles.length,g=n.lvl;for(u=0;u<m;u+=1){if(c=n.sh._mdf||i,n.styles[u].lvl<g){for(p=t.reset(),h=g-n.styles[u].lvl,f=n.transformers.length-1;!c&&h>0;)c=n.transformers[f].mProps._mdf||c,h-=1,f-=1;if(c)for(h=g-n.styles[u].lvl,f=n.transformers.length-1;h>0;)p.multiply(n.transformers[f].mProps.v),h-=1,f-=1}else p=e;if(a=(d=n.sh.paths)._length,c){for(s="",o=0;o<a;o+=1)(l=d.shapes[o])&&l._length&&(s+=buildShapeString(l,l._length,l.c,p));n.caches[u]=s}else s=n.caches[u];n.styles[u].d+=!0===r.hd?"":s,n.styles[u]._mdf=c||n.styles[u]._mdf}}function o(e,t,r){var n=t.style;(t.c._mdf||r)&&n.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&n.pElem.setAttribute("fill-opacity",t.o.v)}function a(e,t,r){s(e,t,r),c(0,t,r)}function s(e,t,r){var n,i,o,a,s,c=t.gf,l=t.g._hasOpacity,u=t.s.v,d=t.e.v;if(t.o._mdf||r){var p="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(p,t.o.v)}if(t.s._mdf||r){var h=1===e.t?"x1":"cx",f="x1"===h?"y1":"cy";c.setAttribute(h,u[0]),c.setAttribute(f,u[1]),l&&!t.g._collapsable&&(t.of.setAttribute(h,u[0]),t.of.setAttribute(f,u[1]))}if(t.g._cmdf||r){n=t.cst;var m=t.g.c;for(o=n.length,i=0;i<o;i+=1)(a=n[i]).setAttribute("offset",m[4*i]+"%"),a.setAttribute("stop-color","rgb("+m[4*i+1]+","+m[4*i+2]+","+m[4*i+3]+")")}if(l&&(t.g._omdf||r)){var g=t.g.o;for(o=(n=t.g._collapsable?t.cst:t.ost).length,i=0;i<o;i+=1)a=n[i],t.g._collapsable||a.setAttribute("offset",g[2*i]+"%"),a.setAttribute("stop-opacity",g[2*i+1])}if(1===e.t)(t.e._mdf||r)&&(c.setAttribute("x2",d[0]),c.setAttribute("y2",d[1]),l&&!t.g._collapsable&&(t.of.setAttribute("x2",d[0]),t.of.setAttribute("y2",d[1])));else if((t.s._mdf||t.e._mdf||r)&&(s=Math.sqrt(Math.pow(u[0]-d[0],2)+Math.pow(u[1]-d[1],2)),c.setAttribute("r",s),l&&!t.g._collapsable&&t.of.setAttribute("r",s)),t.e._mdf||t.h._mdf||t.a._mdf||r){s||(s=Math.sqrt(Math.pow(u[0]-d[0],2)+Math.pow(u[1]-d[1],2)));var v=Math.atan2(d[1]-u[1],d[0]-u[0]),y=t.h.v;y>=1?y=.99:y<=-1&&(y=-.99);var b=s*y,_=Math.cos(v+t.a.v)*b+u[0],E=Math.sin(v+t.a.v)*b+u[1];c.setAttribute("fx",_),c.setAttribute("fy",E),l&&!t.g._collapsable&&(t.of.setAttribute("fx",_),t.of.setAttribute("fy",E))}}function c(e,t,r){var n=t.style,i=t.d;i&&(i._mdf||r)&&i.dashStr&&(n.pElem.setAttribute("stroke-dasharray",i.dashStr),n.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),t.c&&(t.c._mdf||r)&&n.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&n.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||r)&&(n.pElem.setAttribute("stroke-width",t.w.v),n.msElem&&n.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return o;case"gf":return s;case"gs":return a;case"st":return c;case"sh":case"el":case"rc":case"sr":return i;case"tr":return r;case"no":return n;default:return null}}}}();function SVGShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,r),this.prevViewData=[]}function LetterProps(e,t,r,n,i,o){this.o=e,this.sw=t,this.sc=r,this.fc=n,this.m=i,this.p=o,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!n,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,r,n,i=this.shapes.length,o=this.stylesList.length,a=[],s=!1;for(r=0;r<o;r+=1){for(n=this.stylesList[r],s=!1,a.length=0,e=0;e<i;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(n)&&(a.push(t),s=t._isAnimated||s);a.length>1&&s&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var r,n=new SVGStyleData(e,t),i=n.pElem;return"st"===e.ty?r=new SVGStrokeStyleData(this,e,n):"fl"===e.ty?r=new SVGFillStyleData(this,e,n):"gf"===e.ty||"gs"===e.ty?(r=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,n),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),i.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):"no"===e.ty&&(r=new SVGNoStyleData(this,e,n)),"st"!==e.ty&&"gs"!==e.ty||(i.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),i.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),i.setAttribute("fill-opacity","0"),1===e.lj&&i.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&i.setAttribute("fill-rule","evenodd"),e.ln&&i.setAttribute("id",e.ln),e.cl&&i.setAttribute("class",e.cl),e.bm&&(i.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(n),this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var r=TransformPropertyFactory.getTransformProperty(this,e,this),n=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var n=4;"rc"===e.ty?n=5:"el"===e.ty?n=6:"sr"===e.ty&&(n=7);var i=new SVGShapeData(t,r,ShapePropertyFactory.getShapeProp(this,e,n,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,n=this.animatedContents.length;r<n;){if(this.animatedContents[r].element===t)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,r=e.styles,n=this.stylesList.length;for(t=0;t<n;t+=1)this.stylesList[t].closed||r.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,r,n,i,o,a){var s,c,l,u,d,p,h=[].concat(o),f=e.length-1,m=[],g=[];for(s=f;s>=0;s-=1){if((p=this.searchProcessedElement(e[s]))?t[s]=r[p-1]:e[s]._render=a,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty||"no"===e[s].ty)p?t[s].style.closed=!1:t[s]=this.createStyleElement(e[s],i),e[s]._render&&t[s].style.pElem.parentNode!==n&&n.appendChild(t[s].style.pElem),m.push(t[s].style);else if("gr"===e[s].ty){if(p)for(l=t[s].it.length,c=0;c<l;c+=1)t[s].prevViewData[c]=t[s].it[c];else t[s]=this.createGroupElement(e[s]);this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,t[s].gr,i+1,h,a),e[s]._render&&t[s].gr.parentNode!==n&&n.appendChild(t[s].gr)}else"tr"===e[s].ty?(p||(t[s]=this.createTransformElement(e[s],n)),u=t[s].transform,h.push(u)):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?(p||(t[s]=this.createShapeElement(e[s],h,i)),this.setElementStyles(t[s])):"tm"===e[s].ty||"rd"===e[s].ty||"ms"===e[s].ty||"pb"===e[s].ty||"zz"===e[s].ty||"op"===e[s].ty?(p?(d=t[s]).closed=!1:((d=ShapeModifiers.getModifier(e[s].ty)).init(this,e[s]),t[s]=d,this.shapeModifiers.push(d)),g.push(d)):"rp"===e[s].ty&&(p?(d=t[s]).closed=!0:(d=ShapeModifiers.getModifier(e[s].ty),t[s]=d,d.init(this,e,s,t),this.shapeModifiers.push(d),a=!1),g.push(d));this.addProcessedElement(e[s],s+1)}for(f=m.length,s=0;s<f;s+=1)m[s].closed=!0;for(f=g.length,s=0;s<f;s+=1)g[s].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,r=this.animatedContents.length;for(e=0;e<r;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,r,n,i,o){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,a=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,a=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,a=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,a=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,a=!0),!o.length||this.p[0]===o[0]&&this.p[1]===o[1]&&this.p[4]===o[4]&&this.p[5]===o[5]&&this.p[12]===o[12]&&this.p[13]===o[13]||(this.p=o,this._mdf.p=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var n;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,o=e||this.data.d.k[this.keysIndex].s;for(n=0;n<i;n+=1)o=r!==this.keysIndex?this.effectsSequence[n](o,o.t):this.effectsSequence[n](this.currentData,o.t);t!==o&&this.setCurrentData(o),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,r=0,n=e.length;r<=n-1&&!(r===n-1||e[r+1].t>t);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,r,n=[],i=0,o=e.length,a=!1,s=!1,c="";i<o;)a=s,s=!1,t=e.charCodeAt(i),c=e.charAt(i),FontManager.isCombinedCharacter(t)?a=!0:t>=55296&&t<=56319?FontManager.isRegionalFlag(e,i)?c=e.substr(i,14):(r=e.charCodeAt(i+1))>=56320&&r<=57343&&(FontManager.isModifier(t,r)?(c=e.substr(i,2),a=!0):c=FontManager.isFlagEmoji(e.substr(i,4))?e.substr(i,4):e.substr(i,2)):t>56319?(r=e.charCodeAt(i+1),FontManager.isVariationSelector(t)&&(a=!0)):FontManager.isZeroWidthJoiner(t)&&(a=!0,s=!0),a?(n[n.length-1]+=c,a=!1):n.push(c),i+=c.length;return n},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,r,n,i,o,a,s,c=this.elem.globalData.fontManager,l=this.data,u=[],d=0,p=l.m.g,h=0,f=0,m=0,g=[],v=0,y=0,b=c.getFontByName(e.f),_=0,E=getFontProperties(b);e.fWeight=E.weight,e.fStyle=E.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),r=e.finalText.length,e.finalLineHeight=e.lh;var w,x=e.tr/1e3*e.finalSize;if(e.sz)for(var L,O,S=!0,T=e.sz[0],P=e.sz[1];S;){L=0,v=0,r=(O=this.buildFinalText(e.t)).length,x=e.tr/1e3*e.finalSize;var I=-1;for(t=0;t<r;t+=1)w=O[t].charCodeAt(0),n=!1," "===O[t]?I=t:13!==w&&3!==w||(v=0,n=!0,L+=e.finalLineHeight||1.2*e.finalSize),c.chars?(s=c.getCharData(O[t],b.fStyle,b.fFamily),_=n?0:s.w*e.finalSize/100):_=c.measureText(O[t],e.f,e.finalSize),v+_>T&&" "!==O[t]?(-1===I?r+=1:t=I,L+=e.finalLineHeight||1.2*e.finalSize,O.splice(t,I===t?1:0,"\r"),I=-1,v=0):(v+=_,v+=x);L+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&P<L?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=O,r=e.finalText.length,S=!1)}v=-x,_=0;var A,C=0;for(t=0;t<r;t+=1)if(n=!1,13===(w=(A=e.finalText[t]).charCodeAt(0))||3===w?(C=0,g.push(v),y=v>y?v:y,v=-2*x,i="",n=!0,m+=1):i=A,c.chars?(s=c.getCharData(A,b.fStyle,c.getFontByName(e.f).fFamily),_=n?0:s.w*e.finalSize/100):_=c.measureText(i,e.f,e.finalSize)," "===A?C+=_+x:(v+=_+x+C,C=0),u.push({l:_,an:_,add:h,n,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==p){if(h+=_,""===i||" "===i||t===r-1){for(""!==i&&" "!==i||(h-=_);f<=t;)u[f].an=h,u[f].ind=d,u[f].extra=_,f+=1;d+=1,h=0}}else if(3==p){if(h+=_,""===i||t===r-1){for(""===i&&(h-=_);f<=t;)u[f].an=h,u[f].ind=d,u[f].extra=_,f+=1;h=0,d+=1}}else u[d].ind=d,u[d].extra=0,d+=1;if(e.l=u,y=v>y?v:y,g.push(v),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=y,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=g;var k,D,N,R,M=l.a;a=M.length;var j=[];for(o=0;o<a;o+=1){for((k=M[o]).a.sc&&(e.strokeColorAnim=!0),k.a.sw&&(e.strokeWidthAnim=!0),(k.a.fc||k.a.fh||k.a.fs||k.a.fb)&&(e.fillColorAnim=!0),R=0,N=k.s.b,t=0;t<r;t+=1)(D=u[t]).anIndexes[o]=R,(1==N&&""!==D.val||2==N&&""!==D.val&&" "!==D.val||3==N&&(D.n||" "==D.val||t==r-1)||4==N&&(D.n||t==r-1))&&(1===k.s.rn&&j.push(R),R+=1);l.a[o].s.totalChars=R;var F,Z=-1;if(1===k.s.rn)for(t=0;t<r;t+=1)Z!=(D=u[t]).anIndexes[o]&&(Z=D.anIndexes[o],F=j.splice(Math.floor(Math.random()*j.length),1)[0]),D.anIndexes[o]=F}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=b.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var r=this.copyData({},this.data.d.k[t].s);r=this.copyData(r,e),this.data.d.k[t].s=r,this.recalculate(t),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,r=Math.floor;function n(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return n.prototype={getMult:function(n){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,o=0,a=1,s=1;this.ne.v>0?i=this.ne.v/100:o=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:s=1+this.xe.v/100;var c=BezierFactory.getBezierEasing(i,o,a,s).get,l=0,u=this.finalS,d=this.finalE,p=this.data.sh;if(2===p)l=c(l=d===u?n>=d?1:0:e(0,t(.5/(d-u)+(n-u)/(d-u),1)));else if(3===p)l=c(l=d===u?n>=d?0:1:1-e(0,t(.5/(d-u)+(n-u)/(d-u),1)));else if(4===p)d===u?l=0:(l=e(0,t(.5/(d-u)+(n-u)/(d-u),1)))<.5?l*=2:l=1-2*(l-.5),l=c(l);else if(5===p){if(d===u)l=0;else{var h=d-u,f=-h/2+(n=t(e(0,n+.5-u),d-u)),m=h/2;l=Math.sqrt(1-f*f/(m*m))}l=c(l)}else 6===p?(d===u?l=0:(n=t(e(0,n+.5-u),d-u),l=(1+Math.cos(Math.PI+2*Math.PI*n/(d-u)))/2),l=c(l)):(n>=r(u)&&(l=e(0,t(n-u<0?t(d,1)-(u-n):d-n,1))),l=c(l));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var v=.5-.5*g;l<v?l=0:(l=(l-v)/g)>1&&(l=1)}return l*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/t,n=this.s.v/t+r,i=this.e.v/t+r;if(n>i){var o=n;n=i,i=o}this.finalS=n,this.finalE=i}},extendPrototype([DynamicPropertyContainer],n),{getTextSelectorProp:function(e,t,r){return new n(e,t,r)}}}();function TextAnimatorDataProperty(e,t,r){var n={propType:!1},i=PropertyFactory.getProp,o=t.a;this.a={r:o.r?i(e,o.r,0,degToRads,r):n,rx:o.rx?i(e,o.rx,0,degToRads,r):n,ry:o.ry?i(e,o.ry,0,degToRads,r):n,sk:o.sk?i(e,o.sk,0,degToRads,r):n,sa:o.sa?i(e,o.sa,0,degToRads,r):n,s:o.s?i(e,o.s,1,.01,r):n,a:o.a?i(e,o.a,1,0,r):n,o:o.o?i(e,o.o,0,.01,r):n,p:o.p?i(e,o.p,1,0,r):n,sw:o.sw?i(e,o.sw,0,0,r):n,sc:o.sc?i(e,o.sc,1,0,r):n,fc:o.fc?i(e,o.fc,1,0,r):n,fh:o.fh?i(e,o.fh,0,0,r):n,fs:o.fs?i(e,o.fs,0,.01,r):n,fb:o.fb?i(e,o.fb,0,.01,r):n,t:o.t?i(e,o.t,0,0,r):n},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,r),this.s.t=t.s.t}function TextAnimatorProperty(e,t,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,r=this._textData.a.length,n=PropertyFactory.getProp;for(e=0;e<r;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=n(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,n,i,o,a,s,c,l,u,d,p,h,f,m,g,v,y,b,_,E=this._moreOptions.alignment.v,w=this._animatorsData,x=this._textData,L=this.mHelper,O=this._renderType,S=this.renderedLetters.length,T=e.l;if(this._hasMaskedPath){if(_=this._pathData.m,!this._pathData.n||this._pathData._mdf){var P,I=_.v;for(this._pathData.r.v&&(I=I.reverse()),a={tLength:0,segments:[]},o=I._length-1,v=0,i=0;i<o;i+=1)P=bez.buildBezierData(I.v[i],I.v[i+1],[I.o[i][0]-I.v[i][0],I.o[i][1]-I.v[i][1]],[I.i[i+1][0]-I.v[i+1][0],I.i[i+1][1]-I.v[i+1][1]]),a.tLength+=P.segmentLength,a.segments.push(P),v+=P.segmentLength;i=o,_.v.c&&(P=bez.buildBezierData(I.v[i],I.v[0],[I.o[i][0]-I.v[i][0],I.o[i][1]-I.v[i][1]],[I.i[0][0]-I.v[0][0],I.i[0][1]-I.v[0][1]]),a.tLength+=P.segmentLength,a.segments.push(P),v+=P.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,s=this._pathData.f.v,p=0,d=1,l=0,u=!0,m=a.segments,s<0&&_.v.c)for(a.tLength<Math.abs(s)&&(s=-Math.abs(s)%a.tLength),d=(f=m[p=m.length-1].points).length-1;s<0;)s+=f[d].partialLength,(d-=1)<0&&(d=(f=m[p-=1].points).length-1);h=(f=m[p].points)[d-1],g=(c=f[d]).partialLength}o=T.length,r=0,n=0;var A,C,k,D,N,R=1.2*e.finalSize*.714,M=!0;k=w.length;var j,F,Z,B,G,U,H,z,V,Y,W,K,$=-1,q=s,X=p,J=d,Q=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var re=0,ne=0,ie=2===e.j?-.5:-1,oe=0,ae=!0;for(i=0;i<o;i+=1)if(T[i].n){for(re&&(re+=ne);oe<i;)T[oe].animatorJustifyOffset=re,oe+=1;re=0,ae=!0}else{for(C=0;C<k;C+=1)(A=w[C].a).t.propType&&(ae&&2===e.j&&(ne+=A.t.v*ie),(N=w[C].s.getMult(T[i].anIndexes[C],x.a[C].s.totalChars)).length?re+=A.t.v*N[0]*ie:re+=A.t.v*N*ie);ae=!1}for(re&&(re+=ne);oe<i;)T[oe].animatorJustifyOffset=re,oe+=1}for(i=0;i<o;i+=1){if(L.reset(),B=1,T[i].n)r=0,n+=e.yOffset,n+=M?1:0,s=q,M=!1,this._hasMaskedPath&&(d=J,h=(f=m[p=X].points)[d-1],g=(c=f[d]).partialLength,l=0),ee="",W="",V="",K="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==T[i].line){switch(e.j){case 1:s+=v-e.lineWidths[T[i].line];break;case 2:s+=(v-e.lineWidths[T[i].line])/2}Q=T[i].line}$!==T[i].ind&&(T[$]&&(s+=T[$].extra),s+=T[i].an/2,$=T[i].ind),s+=E[0]*T[i].an*.005;var se=0;for(C=0;C<k;C+=1)(A=w[C].a).p.propType&&((N=w[C].s.getMult(T[i].anIndexes[C],x.a[C].s.totalChars)).length?se+=A.p.v[0]*N[0]:se+=A.p.v[0]*N),A.a.propType&&((N=w[C].s.getMult(T[i].anIndexes[C],x.a[C].s.totalChars)).length?se+=A.a.v[0]*N[0]:se+=A.a.v[0]*N);for(u=!0,this._pathData.a.v&&(s=.5*T[0].an+(v-this._pathData.f.v-.5*T[0].an-.5*T[T.length-1].an)*$/(o-1),s+=this._pathData.f.v);u;)l+g>=s+se||!f?(y=(s+se-l)/c.partialLength,F=h.point[0]+(c.point[0]-h.point[0])*y,Z=h.point[1]+(c.point[1]-h.point[1])*y,L.translate(-E[0]*T[i].an*.005,-E[1]*R*.01),u=!1):f&&(l+=c.partialLength,(d+=1)>=f.length&&(d=0,m[p+=1]?f=m[p].points:_.v.c?(d=0,f=m[p=0].points):(l-=c.partialLength,f=null)),f&&(h=c,g=(c=f[d]).partialLength));j=T[i].an/2-T[i].add,L.translate(-j,0,0)}else j=T[i].an/2-T[i].add,L.translate(-j,0,0),L.translate(-E[0]*T[i].an*.005,-E[1]*R*.01,0);for(C=0;C<k;C+=1)(A=w[C].a).t.propType&&(N=w[C].s.getMult(T[i].anIndexes[C],x.a[C].s.totalChars),0===r&&0===e.j||(this._hasMaskedPath?N.length?s+=A.t.v*N[0]:s+=A.t.v*N:N.length?r+=A.t.v*N[0]:r+=A.t.v*N));for(e.strokeWidthAnim&&(U=e.sw||0),e.strokeColorAnim&&(G=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(H=[e.fc[0],e.fc[1],e.fc[2]]),C=0;C<k;C+=1)(A=w[C].a).a.propType&&((N=w[C].s.getMult(T[i].anIndexes[C],x.a[C].s.totalChars)).length?L.translate(-A.a.v[0]*N[0],-A.a.v[1]*N[1],A.a.v[2]*N[2]):L.translate(-A.a.v[0]*N,-A.a.v[1]*N,A.a.v[2]*N));for(C=0;C<k;C+=1)(A=w[C].a).s.propType&&((N=w[C].s.getMult(T[i].anIndexes[C],x.a[C].s.totalChars)).length?L.scale(1+(A.s.v[0]-1)*N[0],1+(A.s.v[1]-1)*N[1],1):L.scale(1+(A.s.v[0]-1)*N,1+(A.s.v[1]-1)*N,1));for(C=0;C<k;C+=1){if(A=w[C].a,N=w[C].s.getMult(T[i].anIndexes[C],x.a[C].s.totalChars),A.sk.propType&&(N.length?L.skewFromAxis(-A.sk.v*N[0],A.sa.v*N[1]):L.skewFromAxis(-A.sk.v*N,A.sa.v*N)),A.r.propType&&(N.length?L.rotateZ(-A.r.v*N[2]):L.rotateZ(-A.r.v*N)),A.ry.propType&&(N.length?L.rotateY(A.ry.v*N[1]):L.rotateY(A.ry.v*N)),A.rx.propType&&(N.length?L.rotateX(A.rx.v*N[0]):L.rotateX(A.rx.v*N)),A.o.propType&&(N.length?B+=(A.o.v*N[0]-B)*N[0]:B+=(A.o.v*N-B)*N),e.strokeWidthAnim&&A.sw.propType&&(N.length?U+=A.sw.v*N[0]:U+=A.sw.v*N),e.strokeColorAnim&&A.sc.propType)for(z=0;z<3;z+=1)N.length?G[z]+=(A.sc.v[z]-G[z])*N[0]:G[z]+=(A.sc.v[z]-G[z])*N;if(e.fillColorAnim&&e.fc){if(A.fc.propType)for(z=0;z<3;z+=1)N.length?H[z]+=(A.fc.v[z]-H[z])*N[0]:H[z]+=(A.fc.v[z]-H[z])*N;A.fh.propType&&(H=N.length?addHueToRGB(H,A.fh.v*N[0]):addHueToRGB(H,A.fh.v*N)),A.fs.propType&&(H=N.length?addSaturationToRGB(H,A.fs.v*N[0]):addSaturationToRGB(H,A.fs.v*N)),A.fb.propType&&(H=N.length?addBrightnessToRGB(H,A.fb.v*N[0]):addBrightnessToRGB(H,A.fb.v*N))}}for(C=0;C<k;C+=1)(A=w[C].a).p.propType&&(N=w[C].s.getMult(T[i].anIndexes[C],x.a[C].s.totalChars),this._hasMaskedPath?N.length?L.translate(0,A.p.v[1]*N[0],-A.p.v[2]*N[1]):L.translate(0,A.p.v[1]*N,-A.p.v[2]*N):N.length?L.translate(A.p.v[0]*N[0],A.p.v[1]*N[1],-A.p.v[2]*N[2]):L.translate(A.p.v[0]*N,A.p.v[1]*N,-A.p.v[2]*N));if(e.strokeWidthAnim&&(V=U<0?0:U),e.strokeColorAnim&&(Y="rgb("+Math.round(255*G[0])+","+Math.round(255*G[1])+","+Math.round(255*G[2])+")"),e.fillColorAnim&&e.fc&&(W="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),this._hasMaskedPath){if(L.translate(0,-e.ls),L.translate(0,E[1]*R*.01+n,0),this._pathData.p.v){b=(c.point[1]-h.point[1])/(c.point[0]-h.point[0]);var ce=180*Math.atan(b)/Math.PI;c.point[0]<h.point[0]&&(ce+=180),L.rotate(-ce*Math.PI/180)}L.translate(F,Z,0),s-=E[0]*T[i].an*.005,T[i+1]&&$!==T[i+1].ind&&(s+=T[i].an/2,s+=.001*e.tr*e.finalSize)}else{switch(L.translate(r,n,0),e.ps&&L.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:L.translate(T[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[T[i].line]),0,0);break;case 2:L.translate(T[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[T[i].line])/2,0,0)}L.translate(0,-e.ls),L.translate(j,0,0),L.translate(E[0]*T[i].an*.005,E[1]*R*.01,0),r+=T[i].l+.001*e.tr*e.finalSize}"html"===O?ee=L.toCSS():"svg"===O?ee=L.to2dCSS():te=[L.props[0],L.props[1],L.props[2],L.props[3],L.props[4],L.props[5],L.props[6],L.props[7],L.props[8],L.props[9],L.props[10],L.props[11],L.props[12],L.props[13],L.props[14],L.props[15]],K=B}S<=i?(D=new LetterProps(K,V,Y,W,ee,te),this.renderedLetters.push(D),S+=1,this.lettersChangedFlag=!0):(D=this.renderedLetters[i],this.lettersChangedFlag=D.update(K,V,Y,W,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,r),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var r,n,i=t.length,o="";for(r=0;r<i;r+=1)"sh"===t[r].ty&&(n=t[r].ks.k,o+=buildShapeString(n,n.i.length,!0,e));return o},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,r,n,i){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r])/2,0,0)}t.translate(n,i,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,r){this.textSpans=[],this.renderType="svg",this.initElement(e,t,r)}function ISolidElement(e,t,r){this.initElement(e,t,r)}function NullElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initFrame(),this.initTransform(e,t,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,r){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(t&&t.title){var n=createNS("title"),i=createElementID();n.setAttribute("id",i),n.textContent=t.title,this.svgElement.appendChild(n),r+=i}if(t&&t.description){var o=createNS("desc"),a=createElementID();o.setAttribute("id",a),o.textContent=t.description,this.svgElement.appendChild(o),r+=" "+a}r&&this.svgElement.setAttribute("aria-labelledby",r);var s=createNS("defs");this.svgElement.appendChild(s);var c=createNS("g");this.svgElement.appendChild(c),this.layerElement=c,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,r=e.length,n=[],i="";t<r;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(n.push(i),i=""):i+=e[t],t+=1;return n.push(i),n},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var n=r.it[r.it.length-1];n.s&&(n.s.k[0]=t,n.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var n=this.globalData.fontManager.getFontByName(r.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var i=r.fWeight,o=r.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",r.t);var a,s=r.l||[],c=!!this.globalData.fontManager.chars;t=s.length;var l=this.mHelper,u=this.data.singleShape,d=0,p=0,h=!0,f=.001*r.tr*r.finalSize;if(!u||c||r.sz){var m,g=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!c||!u||0===e){if(a=g>e?this.textSpans[e].span:createNS(c?"g":"text"),g<=e){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=a,c){var v=createNS("g");a.appendChild(v),this.textSpans[e].childSpan=v}this.textSpans[e].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(l.reset(),u&&(s[e].n&&(d=-f,p+=r.yOffset,p+=h?1:0,h=!1),this.applyTextPropertiesToMatrix(r,l,s[e].line,d,p),d+=s[e].l||0,d+=f),c){var y;if(1===(m=this.globalData.fontManager.getCharData(r.finalText[e],n.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t)y=new SVGCompElement(m.data,this.globalData,this);else{var b=emptyShapeData;m.data&&m.data.shapes&&(b=this.buildShapeData(m.data,r.finalSize)),y=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[e].glyph){var _=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[e].glyph=y,y._debug=!0,y.prepareFrame(0),y.renderFrame(),this.textSpans[e].childSpan.appendChild(y.layerElement),1===m.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else u&&a.setAttribute("transform","translate("+l.props[12]+","+l.props[13]+")"),a.textContent=s[e].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}u&&a&&a.setAttribute("d","")}else{var E=this.textContainer,w="start";switch(r.j){case 1:w="end";break;case 2:w="middle";break;default:w="start"}E.setAttribute("text-anchor",w),E.setAttribute("letter-spacing",f);var x=this.buildTextContents(r.finalText);for(t=x.length,p=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)(a=this.textSpans[e].span||createNS("tspan")).textContent=x[e],a.setAttribute("x",0),a.setAttribute("y",p),a.style.display="inherit",E.appendChild(a),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=a,p+=r.finalLineHeight;this.layerElement.appendChild(E)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var r,n,i,o=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(t=a.length,e=0;e<t;e+=1)a[e].n||(r=o[e],n=this.textSpans[e].span,(i=this.textSpans[e].glyph)&&i.renderFrame(),r._mdf.m&&n.setAttribute("transform",r.m),r._mdf.o&&n.setAttribute("opacity",r.o),r._mdf.sw&&n.setAttribute("stroke-width",r.sw),r._mdf.sc&&n.setAttribute("stroke",r.sc),r._mdf.fc&&n.setAttribute("fill",r.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var r=createNS("clipPath"),n=createNS("rect");n.setAttribute("width",e.w),n.setAttribute("height",e.h),n.setAttribute("x",0),n.setAttribute("y",0);var i=createElementID();r.setAttribute("id",i),r.appendChild(n),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),t.appendChild(r),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,r=this.layers.length;for(t=0;t<r;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var r=this.createItem(this.layers[e]);if(t[e]=r,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt){var n="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===n)return;if(this.elements[n]&&!0!==this.elements[n]){var i=t[n].getMatte(this.layers[e].tt);r.setMatte(i)}else this.buildItem(n),this.addPendingElement(r)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,r=this.elements.length;t<r;){if(this.elements[t]===e){var n="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,i=this.elements[n].getMatte(this.layers[t].tt);e.setMatte(i);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var r=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){for(var n,i=0;i<t;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(n=this.elements[i].getBaseElement()),i+=1;n?this.layerElement.insertBefore(r,n):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var r,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,r=e.length,n="_";for(t=0;t<r;t+=1)n+=e[t].transform.key+"_";var i=this.sequences[n];return i||(i={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[n]=i,this.sequenceList.push(i)),i},processSequence:function(e,t){for(var r=0,n=e.transforms.length,i=t;r<n&&!t;){if(e.transforms[r].transform.mProps._mdf){i=!0;break}r+=1}if(i)for(e.finalTransform.reset(),r=n-1;r>=0;r-=1)e.finalTransform.multiply(e.transforms[r].transform.mProps.v);e._mdf=i},processSequences:function(e){var t,r=this.sequenceList.length;for(t=0;t<r;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",t=null,r=null,n=null;function i(){var i,o,a;t||(i=createNS("svg"),o=createNS("filter"),a=createNS("feColorMatrix"),o.setAttribute("id",e),a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),o.appendChild(a),i.appendChild(o),i.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(i.style.display="none"),n=i,document.body.appendChild(n),t=createTag("canvas"),(r=t.getContext("2d")).filter="url(#"+e+")",r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1))}return{load:i,get:function(n){return t||i(),t.width=n.width,t.height=n.height,r.filter="url(#"+e+")",t}}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var r=createTag("canvas");return r.width=e,r.height=t,r}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas},registeredEffects={};function CVEffects(e){var t,r,n=e.data.ef?e.data.ef.length:0;for(this.filters=[],t=0;t<n;t+=1){r=null;var i=e.data.ef[t].ty;registeredEffects[i]&&(r=new(0,registeredEffects[i].effect)(e.effectsManager.effectElements[t],e)),r&&this.filters.push(r)}this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){var r;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n=this.masksProperties.length,i=!1;for(r=0;r<n;r+=1)"n"!==this.masksProperties[r].mode&&(i=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=i,i&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,r=this.filters.length,n=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,r,n,i=this.element.finalTransform.mat,o=this.element.canvasContext,a=this.masksProperties.length;for(o.beginPath(),e=0;e<a;e+=1)if("n"!==this.masksProperties[e].mode){var s;this.masksProperties[e].inv&&(o.moveTo(0,0),o.lineTo(this.element.globalData.compSize.w,0),o.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),o.lineTo(0,this.element.globalData.compSize.h),o.lineTo(0,0)),n=this.viewData[e].v,t=i.applyToPointArray(n.v[0][0],n.v[0][1],0),o.moveTo(t[0],t[1]);var c=n._length;for(s=1;s<c;s+=1)r=i.applyToTriplePoints(n.o[s-1],n.i[s],n.v[s]),o.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=i.applyToTriplePoints(n.o[s-1],n.i[0],n.v[0]),o.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),o.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(e,t,r,n){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i,o=4;"rc"===t.ty?o=5:"el"===t.ty?o=6:"sr"===t.ty&&(o=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,o,e);var a,s=r.length;for(i=0;i<s;i+=1)r[i].closed||(a={transforms:n.addTransformSequence(r[i].transforms),trNodes:[]},this.styledShapes.push(a),r[i].elements.push(a))}function CVShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,r)}function CVTextElement(e,t,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,r)}function CVImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,r)}function CVSolidElement(e,t,r){this.initElement(e,t,r)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var e;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,e=0;e<15;e+=1){var t=new CanvasContext;this.stack[e]=t}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(e,t,r){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(e,t,r){this.initElement(e,t,r)}function HShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,r)}function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initHierarchy();var n=PropertyFactory.getProp;if(this.pe=n(this,e.pe,0,0,this),e.ks.p.s?(this.px=n(this,e.ks.p.x,1,0,this),this.py=n(this,e.ks.p.y,1,0,this),this.pz=n(this,e.ks.p.z,1,0,this)):this.p=n(this,e.ks.p,1,0,this),e.ks.a&&(this.a=n(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var i,o=e.ks.or.k.length;for(i=0;i<o;i+=1)e.ks.or.k[i].to=null,e.ks.or.k[i].ti=null}this.or=n(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=n(this,e.ks.rx,0,degToRads,this),this.ry=n(this,e.ks.ry,0,degToRads,this),this.rz=n(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,r){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var e=this.globalData.canvasContext,t=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(t);var r=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(r),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0].getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],t=e.getContext("2d");if(this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas);r.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var t=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},n={};if("fl"===e.ty||"st"===e.ty?(n.c=PropertyFactory.getProp(this,e.c,1,255,this),n.c.k||(r.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(n.s=PropertyFactory.getProp(this,e.s,1,null,this),n.e=PropertyFactory.getProp(this,e.e,1,null,this),n.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),n.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),n.g=new GradientProperty(this,e.g,this)),n.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],1==e.lj&&(r.ml=e.ml),n.w=PropertyFactory.getProp(this,e.w,0,null,this),n.w.k||(r.wi=n.w.v),e.d){var i=new DashProperty(this,e.d,"canvas",this);n.d=i,n.d.k||(r.da=n.d.dashArray,r.do=n.d.dashoffset[0])}}else r.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(r),n.style=r,n},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,r,n,i){var o,a,s,c,l,u,d=e.length-1,p=[],h=[],f=[].concat(i);for(o=d;o>=0;o-=1){if((c=this.searchProcessedElement(e[o]))?t[o]=r[c-1]:e[o]._shouldRender=n,"fl"===e[o].ty||"st"===e[o].ty||"gf"===e[o].ty||"gs"===e[o].ty)c?t[o].style.closed=!1:t[o]=this.createStyleElement(e[o],f),p.push(t[o].style);else if("gr"===e[o].ty){if(c)for(s=t[o].it.length,a=0;a<s;a+=1)t[o].prevViewData[a]=t[o].it[a];else t[o]=this.createGroupElement(e[o]);this.searchShapes(e[o].it,t[o].it,t[o].prevViewData,n,f)}else"tr"===e[o].ty?(c||(u=this.createTransformElement(e[o]),t[o]=u),f.push(t[o]),this.addTransformToStyleList(t[o])):"sh"===e[o].ty||"rc"===e[o].ty||"el"===e[o].ty||"sr"===e[o].ty?c||(t[o]=this.createShapeElement(e[o])):"tm"===e[o].ty||"rd"===e[o].ty||"pb"===e[o].ty||"zz"===e[o].ty||"op"===e[o].ty?(c?(l=t[o]).closed=!1:((l=ShapeModifiers.getModifier(e[o].ty)).init(this,e[o]),t[o]=l,this.shapeModifiers.push(l)),h.push(l)):"rp"===e[o].ty&&(c?(l=t[o]).closed=!0:(l=ShapeModifiers.getModifier(e[o].ty),t[o]=l,l.init(this,e,o,t),this.shapeModifiers.push(l),n=!1),h.push(l));this.addProcessedElement(e[o],o+1)}for(this.removeTransformFromStyleList(),this.closeStyles(p),d=h.length,o=0;o<d;o+=1)h[o].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,r,n,i,o,a,s,c,l=this.stylesList.length,u=this.globalData.renderer,d=this.globalData.canvasContext;for(e=0;e<l;e+=1)if(("st"!==(s=(c=this.stylesList[e]).type)&&"gs"!==s||0!==c.wi)&&c.data._shouldRender&&0!==c.coOp&&0!==this.globalData.currentGlobalAlpha){for(u.save(),o=c.elements,"st"===s||"gs"===s?(u.ctxStrokeStyle("st"===s?c.co:c.grd),u.ctxLineWidth(c.wi),u.ctxLineCap(c.lc),u.ctxLineJoin(c.lj),u.ctxMiterLimit(c.ml||0)):u.ctxFillStyle("fl"===s?c.co:c.grd),u.ctxOpacity(c.coOp),"st"!==s&&"gs"!==s&&d.beginPath(),u.ctxTransform(c.preTransforms.finalTransform.props),r=o.length,t=0;t<r;t+=1){for("st"!==s&&"gs"!==s||(d.beginPath(),c.da&&(d.setLineDash(c.da),d.lineDashOffset=c.do)),i=(a=o[t].trNodes).length,n=0;n<i;n+=1)"m"===a[n].t?d.moveTo(a[n].p[0],a[n].p[1]):"c"===a[n].t?d.bezierCurveTo(a[n].pts[0],a[n].pts[1],a[n].pts[2],a[n].pts[3],a[n].pts[4],a[n].pts[5]):d.closePath();"st"!==s&&"gs"!==s||(u.ctxStroke(),c.da&&d.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&this.globalData.renderer.ctxFill(c.r),u.restore()}},CVShapeElement.prototype.renderShape=function(e,t,r,n){var i,o;for(o=e,i=t.length-1;i>=0;i-=1)"tr"===t[i].ty?(o=r[i].transform,this.renderShapeTransform(e,o)):"sh"===t[i].ty||"el"===t[i].ty||"rc"===t[i].ty||"sr"===t[i].ty?this.renderPath(t[i],r[i]):"fl"===t[i].ty?this.renderFill(t[i],r[i],o):"st"===t[i].ty?this.renderStroke(t[i],r[i],o):"gf"===t[i].ty||"gs"===t[i].ty?this.renderGradientFill(t[i],r[i],o):"gr"===t[i].ty?this.renderShape(o,t[i].it,r[i].it):t[i].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r,n,i,o=e.trNodes,a=t.paths,s=a._length;o.length=0;var c=e.transforms.finalTransform;for(i=0;i<s;i+=1){var l=a.shapes[i];if(l&&l.v){for(n=l._length,r=1;r<n;r+=1)1===r&&o.push({t:"m",p:c.applyToPointArray(l.v[0][0],l.v[0][1],0)}),o.push({t:"c",pts:c.applyToTriplePoints(l.o[r-1],l.i[r],l.v[r])});1===n&&o.push({t:"m",p:c.applyToPointArray(l.v[0][0],l.v[0][1],0)}),l.c&&n&&(o.push({t:"c",pts:c.applyToTriplePoints(l.o[r-1],l.i[0],l.v[0])}),o.push({t:"z"}))}}e.trNodes=o}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var r,n=t.styledShapes.length;for(r=0;r<n;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var n=t.style;(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var n,i=t.style;if(!i.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var o,a=this.globalData.canvasContext,s=t.s.v,c=t.e.v;if(1===e.t)n=a.createLinearGradient(s[0],s[1],c[0],c[1]);else{var l=Math.sqrt(Math.pow(s[0]-c[0],2)+Math.pow(s[1]-c[1],2)),u=Math.atan2(c[1]-s[1],c[0]-s[0]),d=t.h.v;d>=1?d=.99:d<=-1&&(d=-.99);var p=l*d,h=Math.cos(u+t.a.v)*p+s[0],f=Math.sin(u+t.a.v)*p+s[1];n=a.createRadialGradient(h,f,0,s[0],s[1],l)}var m=e.g.p,g=t.g.c,v=1;for(o=0;o<m;o+=1)t.g._hasOpacity&&t.g._collapsable&&(v=t.g.o[2*o+1]),n.addColorStop(g[4*o]/100,"rgba("+g[4*o+1]+","+g[4*o+2]+","+g[4*o+3]+","+v+")");i.grd=n}i.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var n=t.style,i=t.d;i&&(i._mdf||this._isFirstFrame)&&(n.da=i.dashArray,n.do=i.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(n.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var r=!1;e.sc&&(r=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var n,i,o,a,s,c,l,u,d,p,h,f,m=this.globalData.fontManager.getFontByName(e.f),g=e.l,v=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,i=e.finalText.length;var y=this.data.singleShape,b=.001*e.tr*e.finalSize,_=0,E=0,w=!0,x=0;for(n=0;n<i;n+=1){a=(o=this.globalData.fontManager.getCharData(e.finalText[n],m.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&o.data||{},v.reset(),y&&g[n].n&&(_=-b,E+=e.yOffset,E+=w?1:0,w=!1),d=(l=a.shapes?a.shapes[0].it:[]).length,v.scale(e.finalSize/100,e.finalSize/100),y&&this.applyTextPropertiesToMatrix(e,v,g[n].line,_,E),h=createSizedArray(d-1);var L=0;for(u=0;u<d;u+=1)if("sh"===l[u].ty){for(c=l[u].ks.k.i.length,p=l[u].ks.k,f=[],s=1;s<c;s+=1)1===s&&f.push(v.applyToX(p.v[0][0],p.v[0][1],0),v.applyToY(p.v[0][0],p.v[0][1],0)),f.push(v.applyToX(p.o[s-1][0],p.o[s-1][1],0),v.applyToY(p.o[s-1][0],p.o[s-1][1],0),v.applyToX(p.i[s][0],p.i[s][1],0),v.applyToY(p.i[s][0],p.i[s][1],0),v.applyToX(p.v[s][0],p.v[s][1],0),v.applyToY(p.v[s][0],p.v[s][1],0));f.push(v.applyToX(p.o[s-1][0],p.o[s-1][1],0),v.applyToY(p.o[s-1][0],p.o[s-1][1],0),v.applyToX(p.i[0][0],p.i[0][1],0),v.applyToY(p.i[0][0],p.i[0][1],0),v.applyToX(p.v[0][0],p.v[0][1],0),v.applyToY(p.v[0][0],p.v[0][1],0)),h[L]=f,L+=1}y&&(_+=g[n].l,_+=b),this.textSpans[x]?this.textSpans[x].elem=h:this.textSpans[x]={elem:h},x+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,r,n,i,o;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var a,s=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;t=c.length;var l,u,d=null,p=null,h=null,f=this.globalData.renderer;for(e=0;e<t;e+=1)if(!c[e].n){if((a=s[e])&&(f.save(),f.ctxTransform(a.p),f.ctxOpacity(a.o)),this.fill){for(a&&a.fc?d!==a.fc&&(f.ctxFillStyle(a.fc),d=a.fc):d!==this.values.fill&&(d=this.values.fill,f.ctxFillStyle(this.values.fill)),n=(l=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(o=(u=l[r]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(u[i],u[i+1],u[i+2],u[i+3],u[i+4],u[i+5]);this.globalData.canvasContext.closePath(),f.ctxFill()}if(this.stroke){for(a&&a.sw?h!==a.sw&&(h=a.sw,f.ctxLineWidth(a.sw)):h!==this.values.sWidth&&(h=this.values.sWidth,f.ctxLineWidth(this.values.sWidth)),a&&a.sc?p!==a.sc&&(p=a.sc,f.ctxStrokeStyle(a.sc)):p!==this.values.stroke&&(p=this.values.stroke,f.ctxStrokeStyle(this.values.stroke)),n=(l=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(o=(u=l[r]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(u[i],u[i+1],u[i+2],u[i+3],u[i+4],u[i+5]);this.globalData.canvasContext.closePath(),f.ctxStroke()}a&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,r,n=e.getContext("2d"),i=this.img.width,o=this.img.height,a=i/o,s=this.assetData.w/this.assetData.h,c=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>s&&"xMidYMid slice"===c||a<s&&"xMidYMid slice"!==c?t=(r=o)*s:r=(t=i)/s,n.drawImage(this.img,(i-t)/2,(o-r)/2,t,r,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){1===e[0]&&0===e[1]&&0===e[4]&&1===e[5]&&0===e[12]&&0===e[13]||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,r,n){this.canvasContext.fillRect(e,t,r,n)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){this.renderConfig.clearCanvas?(e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var r="0px 0px 0px";t.transformOrigin=r,t.mozTransformOrigin=r,t.webkitTransformOrigin=r,t["-webkit-transform"]=r,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){var r,n,i,o;if(this.reset(),e?(r=e,n=t,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=n):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,n=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=n*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var a=this.renderConfig.preserveAspectRatio.split(" "),s=a[1]||"meet",c=a[0]||"xMidYMid",l=c.substr(0,4),u=c.substr(4);i=r/n,(o=this.transformCanvas.w/this.transformCanvas.h)>i&&"meet"===s||o<i&&"slice"===s?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===l&&(o<i&&"meet"===s||o>i&&"slice"===s)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===l&&(o<i&&"meet"===s||o>i&&"slice"===s)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===u&&(o>i&&"meet"===s||o<i&&"slice"===s)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===u&&(o>i&&"meet"===s||o<i&&"slice"===s)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var r;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var n=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var r=this.createItem(this.layers[e],this,this.globalData);t[e]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t,r=this.stack[this.cArrPos],n=r.transform,i=this.cTr.props;for(t=0;t<16;t+=1)i[t]=n[t];if(e){this.nativeContext.restore();var o=this.stack[this.cArrPos+1];this.appliedFillStyle=o.fillStyle,this.appliedStrokeStyle=o.strokeStyle,this.appliedLineWidth=o.lineWidth,this.appliedLineCap=o.lineCap,this.appliedLineJoin=o.lineJoin,this.appliedMiterLimit=o.miterLimit}this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),(e||-1!==r.opacity&&this.currentOpacity!==r.opacity)&&(this.nativeContext.globalAlpha=r.opacity,this.currentOpacity=r.opacity),this.currentFillStyle=r.fillStyle,this.currentStrokeStyle=r.strokeStyle,this.currentLineWidth=r.lineWidth,this.currentLineCap=r.lineCap,this.currentLineJoin=r.lineJoin,this.currentMiterLimit=r.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r,n=this.stack[this.cArrPos];for(r=0;r<16;r+=1)n.transform[r]=t[r];this.cArrPos+=1;var i=this.stack[this.cArrPos];i.opacity=n.opacity,i.fillStyle=n.fillStyle,i.strokeStyle=n.strokeStyle,i.lineWidth=n.lineWidth,i.lineCap=n.lineCap,i.lineJoin=n.lineJoin,i.miterLimit=n.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var r=t.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,r,n){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,r,n)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)t=e[r].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var r,n,i,o,a,s=e.sh.v,c=e.transformers,l=s._length;if(!(l<=1)){for(r=0;r<l-1;r+=1)n=this.getTransformedPoint(c,s.v[r]),i=this.getTransformedPoint(c,s.o[r]),o=this.getTransformedPoint(c,s.i[r+1]),a=this.getTransformedPoint(c,s.v[r+1]),this.checkBounds(n,i,o,a,t);s.c&&(n=this.getTransformedPoint(c,s.v[r]),i=this.getTransformedPoint(c,s.o[r]),o=this.getTransformedPoint(c,s.i[0]),a=this.getTransformedPoint(c,s.v[0]),this.checkBounds(n,i,o,a,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,n,i){this.getBoundsOfCurve(e,t,r,n);var o=this.shapeBoundingBox;i.x=bmMin(o.left,i.x),i.xMax=bmMax(o.right,i.xMax),i.y=bmMin(o.top,i.y),i.yMax=bmMax(o.bottom,i.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,r,n){for(var i,o,a,s,c,l,u,d=[[e[0],n[0]],[e[1],n[1]]],p=0;p<2;++p)o=6*e[p]-12*t[p]+6*r[p],i=-3*e[p]+9*t[p]-9*r[p]+3*n[p],a=3*t[p]-3*e[p],o|=0,a|=0,0==(i|=0)&&0===o||(0===i?(s=-a/o)>0&&s<1&&d[p].push(this.calculateF(s,e,t,r,n,p)):(c=o*o-4*a*i)>=0&&((l=(-o+bmSqrt(c))/(2*i))>0&&l<1&&d[p].push(this.calculateF(l,e,t,r,n,p)),(u=(-o-bmSqrt(c))/(2*i))>0&&u<1&&d[p].push(this.calculateF(u,e,t,r,n,p))));this.shapeBoundingBox.left=bmMin.apply(null,d[0]),this.shapeBoundingBox.top=bmMin.apply(null,d[1]),this.shapeBoundingBox.right=bmMax.apply(null,d[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,d[1])},HShapeElement.prototype.calculateF=function(e,t,r,n,i,o){return bmPow(1-e,3)*t[o]+3*bmPow(1-e,2)*e*r[o]+3*(1-e)*bmPow(e,2)*n[o]+bmPow(e,3)*i[o]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)e[r]&&e[r].sh?this.calculateShapeBoundingBox(e[r],t):e[r]&&e[r].it?this.calculateBoundingBox(e[r].it,t):e[r]&&e[r].style&&e[r].w&&this.expandStrokeBoundingBox(e[r].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var r=0;if(e.keyframes){for(var n=0;n<e.keyframes.length;n+=1){var i=e.keyframes[n].s;i>r&&(r=i)}r*=e.mult}else r=e.v*e.mult;t.x-=r,t.xMax+=r,t.y-=r,t.yMax+=r},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var r=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),r=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),r=!0),r||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var n=this.shapeCont.style,i="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";n.transform=i,n.webkitTransform=i}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,r=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=r,t.color=r,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var n,i,o=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",o.fClass)this.innerElem.className=o.fClass;else{t.fontFamily=o.fFamily;var a=e.fWeight,s=e.fStyle;t.fontStyle=s,t.fontWeight=a}var c,l,u,d=e.l;i=d.length;var p,h=this.mHelper,f="",m=0;for(n=0;n<i;n+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?c=this.textPaths[m]:((c=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),c.setAttribute("stroke-linejoin",lineJoinEnum[2]),c.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?u=(l=this.textSpans[m]).children[0]:((l=createTag("div")).style.lineHeight=0,(u=createNS("svg")).appendChild(c),styleDiv(l)))):this.isMasked?c=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(l=this.textSpans[m],c=this.textPaths[m]):(styleDiv(l=createTag("span")),styleDiv(c=createTag("span")),l.appendChild(c)),this.globalData.fontManager.chars){var g,v=this.globalData.fontManager.getCharData(e.finalText[n],o.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(g=v?v.data:null,h.reset(),g&&g.shapes&&g.shapes.length&&(p=g.shapes[0].it,h.scale(e.finalSize/100,e.finalSize/100),f=this.createPathShape(h,p),c.setAttribute("d",f)),this.isMasked)this.innerElem.appendChild(c);else{if(this.innerElem.appendChild(l),g&&g.shapes){document.body.appendChild(u);var y=u.getBBox();u.setAttribute("width",y.width+2),u.setAttribute("height",y.height+2),u.setAttribute("viewBox",y.x-1+" "+(y.y-1)+" "+(y.width+2)+" "+(y.height+2));var b=u.style,_="translate("+(y.x-1)+"px,"+(y.y-1)+"px)";b.transform=_,b.webkitTransform=_,d[n].yOffset=y.y-1}else u.setAttribute("width",1),u.setAttribute("height",1);l.appendChild(u)}}else if(c.textContent=d[n].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(c);else{this.innerElem.appendChild(l);var E=c.style,w="translate3d(0,"+-e.finalSize/1.2+"px,0)";E.transform=w,E.webkitTransform=w}this.isMasked?this.textSpans[m]=c:this.textSpans[m]=l,this.textSpans[m].style.display="block",this.textPaths[m]=c,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var r,n,i,o,a,s=0,c=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;for(n=l.length,r=0;r<n;r+=1)l[r].n?s+=1:(o=this.textSpans[r],a=this.textPaths[r],i=c[s],s+=1,i._mdf.m&&(this.isMasked?o.setAttribute("transform",i.m):(o.style.webkitTransform=i.m,o.style.transform=i.m)),o.style.opacity=i.o,i.sw&&i._mdf.sw&&a.setAttribute("stroke-width",i.sw),i.sc&&i._mdf.sc&&a.setAttribute("stroke",i.sc),i.fc&&i._mdf.fc&&(a.setAttribute("fill",i.fc),a.style.color=i.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var u=this.innerElem.getBBox();if(this.currentBBox.w!==u.width&&(this.currentBBox.w=u.width,this.svgElement.setAttribute("width",u.width)),this.currentBBox.h!==u.height&&(this.currentBBox.h=u.height,this.svgElement.setAttribute("height",u.height)),this.currentBBox.w!==u.width+2||this.currentBBox.h!==u.height+2||this.currentBBox.x!==u.x-1||this.currentBBox.y!==u.y-1){this.currentBBox.w=u.width+2,this.currentBBox.h=u.height+2,this.currentBBox.x=u.x-1,this.currentBBox.y=u.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var d="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=d,e.webkitTransform=d}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,r,n,i=this.comp.threeDElements.length;for(e=0;e<i;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){r=t.perspectiveElem.style,n=t.container.style;var o=this.pe.v+"px",a="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=o,r.webkitPerspective=o,n.transformOrigin=a,n.mozTransformOrigin=a,n.webkitTransformOrigin=a,r.transform=s,r.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,r=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)r=this.hierarchy[e].finalTransform.mProp._mdf||r;if(r||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=t=this.hierarchy.length-1;e>=0;e-=1){var n=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var i;i=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var o=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),a=[i[0]/o,i[1]/o,i[2]/o],s=Math.sqrt(a[2]*a[2]+a[0]*a[0]),c=Math.atan2(a[1],s),l=Math.atan2(a[0],-a[2]);this.mat.rotateY(l).rotateX(-c)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){var d,p,h;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(d=this.comp.threeDElements[e]).type){if(u){var f=this.mat.toCSS();(h=d.container.style).transform=f,h.webkitTransform=f}this.pe._mdf&&((p=d.perspectiveElem.style).perspective=this.pe.v+"px",p.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){var n=this.layers[t];if(n.ddd&&this.supports3d)this.addTo3dContainer(r,t);else if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var i,o,a=0;a<t;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(o=this.elements[a],i=(this.layers[a].ddd?this.getThreeDContainerByPos(a):o.getBaseElement())||i),a+=1;i?n.ddd&&this.supports3d||this.layerElement.insertBefore(r,i):n.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,r=this.threeDElements.length;t<r;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var r,n,i=createTag("div");styleDiv(i);var o=createTag("div");if(styleDiv(o),"3d"===t){(r=i.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var a="50% 50%";r.webkitTransformOrigin=a,r.mozTransformOrigin=a,r.transformOrigin=a;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(n=o.style).transform=s,n.webkitTransform=s}i.appendChild(o);var c={container:o,perspectiveElem:i,startPos:e,endPos:e,type:t};return this.threeDElements.push(c),c},HybridRendererBase.prototype.build3dContainers=function(){var e,t,r=this.layers.length,n="";for(e=0;e<r;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==n&&(n="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==n&&(n="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(r=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var r=0,n=this.threeDElements.length;r<n;){if(t<=this.threeDElements[r].endPos){for(var i,o=this.threeDElements[r].startPos;o<t;)this.elements[o]&&this.elements[o].getBaseElement&&(i=this.elements[o].getBaseElement()),o+=1;i?this.threeDElements[r].container.insertBefore(e,i):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),r=this.animationItem.wrapper,n=t.style;n.width=e.w+"px",n.height=e.h+"px",this.resizerElem=t,styleDiv(t),n.transformStyle="flat",n.mozTransformStyle="flat",n.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),n.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var o=createNS("defs");i.appendChild(o),this.data=e,this.setupGlobalData(e,i),this.globalData.defs=o,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,r,n,i=this.animationItem.wrapper.offsetWidth,o=this.animationItem.wrapper.offsetHeight,a=i/o;this.globalData.compSize.w/this.globalData.compSize.h>a?(e=i/this.globalData.compSize.w,t=i/this.globalData.compSize.w,r=0,n=(o-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(e=o/this.globalData.compSize.h,t=o/this.globalData.compSize.h,r=(i-this.globalData.compSize.w*(o/this.globalData.compSize.h))/2,n=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+r+","+n+",0,1)",s.transform=s.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,r=this.globalData.compSize.h,n=this.threeDElements.length;for(e=0;e<n;e+=1){var i=this.threeDElements[e].perspectiveElem.style;i.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(r,2))+"px",i.perspective=i.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,r=e.length,n=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var i=this.createComp(e[t],n,this.globalData.comp,null);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var r,n=0;n<t;)this.elements[n]&&this.elements[n].getBaseElement&&(r=this.elements[n].getBaseElement()),n+=1;r?this.layerElement.insertBefore(e,r):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(e){function t(t){for(var r=0,n=e.layers.length;r<n;){if(e.layers[r].nm===t||e.layers[r].ind===t)return e.elements[r].layerInterface;r+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t};function _typeof$2(e){return _typeof$2="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},_typeof$2(e)}function seedRandom(e,t){var r=this,n=256,i=t.pow(n,6),o=t.pow(2,52),a=2*o,s=255;function c(e){var t,r=e.length,i=this,o=0,a=i.i=i.j=0,c=i.S=[];for(r||(e=[r++]);o<n;)c[o]=o++;for(o=0;o<n;o++)c[o]=c[a=s&a+e[o%r]+(t=c[o])],c[a]=t;i.g=function(e){for(var t,r=0,o=i.i,a=i.j,c=i.S;e--;)t=c[o=s&o+1],r=r*n+c[s&(c[o]=c[a=s&a+t])+(c[a]=t)];return i.i=o,i.j=a,r}}function l(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function u(e,t){var r,n=[],i=_typeof$2(e);if(t&&"object"==i)for(r in e)try{n.push(u(e[r],t-1))}catch(e){}return n.length?n:"string"==i?e:e+"\0"}function d(e,t){for(var r,n=e+"",i=0;i<n.length;)t[s&i]=s&(r^=19*t[s&i])+n.charCodeAt(i++);return p(t)}function p(e){return String.fromCharCode.apply(0,e)}t.seedrandom=function(s,h,f){var m=[],g=d(u((h=!0===h?{entropy:!0}:h||{}).entropy?[s,p(e)]:null===s?function(){try{var t=new Uint8Array(n);return(r.crypto||r.msCrypto).getRandomValues(t),p(t)}catch(t){var i=r.navigator,o=i&&i.plugins;return[+new Date,r,o,r.screen,p(e)]}}():s,3),m),v=new c(m),y=function(){for(var e=v.g(6),t=i,r=0;e<o;)e=(e+r)*n,t*=n,r=v.g(1);for(;e>=a;)e/=2,t/=2,r>>>=1;return(e+r)/t};return y.int32=function(){return 0|v.g(4)},y.quick=function(){return v.g(4)/4294967296},y.double=y,d(p(v.S),e),(h.pass||f||function(e,r,n,i){return i&&(i.S&&l(i,v),e.state=function(){return l(v,{})}),n?(t.random=e,r):e})(y,g,"global"in h?h.global:this==t,h.state)},d(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){return _typeof$1="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},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||t instanceof Number||"boolean"===e||"string"===e}function $bm_neg(e){var t=_typeof$1(e);if("number"===t||e instanceof Number||"boolean"===t)return-e;if($bm_isInstanceOfArray(e)){var r,n=e.length,i=[];for(r=0;r<n;r+=1)i[r]=-e[r];return i}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var r=_typeof$1(e),n=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(n,t)||"string"===r||"string"===n)return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(n,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,o=e.length,a=t.length,s=[];i<o||i<a;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?s[i]=e[i]+t[i]:s[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return s}return 0}var add=sum;function sub(e,t){var r=_typeof$1(e),n=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(n,t))return"string"===r&&(e=parseInt(e,10)),"string"===n&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(n,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,o=e.length,a=t.length,s=[];i<o||i<a;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?s[i]=e[i]-t[i]:s[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return s}return 0}function mul(e,t){var r,n,i,o=_typeof$1(e),a=_typeof$1(t);if(isNumerable(o,e)&&isNumerable(a,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(i=e.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e[n]*t;return r}if(isNumerable(o,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e*t[n];return r}return 0}function div(e,t){var r,n,i,o=_typeof$1(e),a=_typeof$1(t);if(isNumerable(o,e)&&isNumerable(a,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(i=e.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e[n]/t;return r}if(isNumerable(o,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e/t[n];return r}return 0}function mod(e,t){return"string"==typeof e&&(e=parseInt(e,10)),"string"==typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,r){if(t>r){var n=r;r=t,t=n}return Math.min(Math.max(e,t),r)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var r;t||(t=helperLengthArray);var n=Math.min(e.length,t.length),i=0;for(r=0;r<n;r+=1)i+=Math.pow(t[r]-e[r],2);return Math.sqrt(i)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,r,n=e[0],i=e[1],o=e[2],a=Math.max(n,i,o),s=Math.min(n,i,o),c=(a+s)/2;if(a===s)t=0,r=0;else{var l=a-s;switch(r=c>.5?l/(2-a-s):l/(a+s),a){case n:t=(i-o)/l+(i<o?6:0);break;case i:t=(o-n)/l+2;break;case o:t=(n-i)/l+4}t/=6}return[t,r,c,e[3]]}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e){var t,r,n,i=e[0],o=e[1],a=e[2];if(0===o)t=a,n=a,r=a;else{var s=a<.5?a*(1+o):a+o-a*o,c=2*a-s;t=hue2rgb(c,s,i+1/3),r=hue2rgb(c,s,i),n=hue2rgb(c,s,i-1/3)}return[t,r,n,e[3]]}function linear(e,t,r,n,i){if(void 0!==n&&void 0!==i||(n=t,i=r,t=0,r=1),r<t){var o=r;r=t,t=o}if(e<=t)return n;if(e>=r)return i;var a,s=r===t?0:(e-t)/(r-t);if(!n.length)return n+(i-n)*s;var c=n.length,l=createTypedArray("float32",c);for(a=0;a<c;a+=1)l[a]=n[a]+(i[a]-n[a])*s;return l}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var r,n=t.length;e||(e=createTypedArray("float32",n));var i=createTypedArray("float32",n),o=BMMath.random();for(r=0;r<n;r+=1)i[r]=e[r]+o*(t[r]-e[r]);return i}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,r,n){var i,o=e.length,a=shapePool.newElement();a.setPathData(!!n,o);var s,c,l=[0,0];for(i=0;i<o;i+=1)s=t&&t[i]?t[i]:l,c=r&&r[i]?r[i]:l,a.setTripleAt(e[i][0],e[i][1],c[0]+e[i][0],c[1]+e[i][1],s[0]+e[i][0],s[1]+e[i][1],i,!0);return a}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(e,t){var r,n,i=this.pv.length?this.pv.length:1,o=createTypedArray("float32",i),a=Math.floor(5*time);for(r=0,n=0;r<a;){for(n=0;n<i;n+=1)o[n]+=-t+2*t*BMMath.random();r+=1}var s=5*time,c=s-Math.floor(s),l=createTypedArray("float32",i);if(i>1){for(n=0;n<i;n+=1)l[n]=this.pv[n]+o[n]+(-t+2*t*BMMath.random())*c;return l}return this.pv+o[0]+(-t+2*t*BMMath.random())*c}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var r=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],n=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,n,0]}function easeOut(e,t,r,n,i){return applyEase(easeOutBez,e,t,r,n,i)}function easeIn(e,t,r,n,i){return applyEase(easeInBez,e,t,r,n,i)}function ease(e,t,r,n,i){return applyEase(easeInOutBez,e,t,r,n,i)}function applyEase(e,t,r,n,i,o){void 0===i?(i=r,o=n):t=(t-r)/(n-r),t>1?t=1:t<0&&(t=0);var a=e(t);if($bm_isInstanceOfArray(i)){var s,c=i.length,l=createTypedArray("float32",c);for(s=0;s<c;s+=1)l[s]=(o[s]-i[s])*a+i[s];return l}return(o-i)*a+i}function nearestKey(e){var t,r,n,i=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(r=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,n=data.k[0].t;else{for(t=0;t<i-1;t+=1){if(e===data.k[t].t){r=t+1,n=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(r=t+2,n=data.k[t+1].t):(r=t+1,n=data.k[t].t);break}}-1===r&&(r=t+1,n=data.k[t].t)}else r=0,n=0;var o={};return o.index=r,o.time=n/elem.comp.globalData.frameRate,o}function key(e){var t,r,n;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var i=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(n=i.length,r=0;r<n;r+=1)t[r]=i[r],t.value[r]=i[r];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"==typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"==typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={initExpressions:function(e){var t=0,r=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0==(t-=1)&&function(){var e,t=r.length;for(e=0;e<t;e+=1)r[e].release();r.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===r.indexOf(e)&&r.push(e)}}};return e.resetFrame=ExpressionManager.resetFrame,e}(),MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var r,n=createSizedArray(t.viewData.length),i=t.viewData.length;for(r=0;r<i;r+=1)n[r]=new e(t.viewData[r],t.masksProperties[r]);return function(e){for(r=0;r<i;){if(t.masksProperties[r].nm===e)return n[r];r+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function r(e,t,r){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(n){if(!e.numKeys)return 0;var i;i="s"in t.keyframes[n-1]?t.keyframes[n-1].s:"e"in t.keyframes[n-2]?t.keyframes[n-2].e:t.keyframes[n-2].s;var o="unidimensional"===r?new Number(i):Object.assign({},i);return o.time=t.keyframes[n-1].t/t.elem.comp.globalData.frameRate,o.value="unidimensional"===r?i[0]:i,o},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function n(){return e}return function(i){return i?"unidimensional"===i.propType?function(t){t&&"pv"in t||(t=e);var n=1/t.mult,i=t.pv*n,o=new Number(i);return o.value=i,r(o,t,"unidimensional"),function(){return t.k&&t.getValue(),i=t.v*n,o.value!==i&&((o=new Number(i)).value=i,r(o,t,"unidimensional")),o}}(i):function(e){e&&"pv"in e||(e=t);var n=1/e.mult,i=e.data&&e.data.l||e.pv.length,o=createTypedArray("float32",i),a=createTypedArray("float32",i);return o.value=a,r(o,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<i;t+=1)a[t]=e.v[t]*n,o[t]=a[t];return o}}(i):n}}(),TransformExpressionInterface=function(e){function t(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var r,n,i,o;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?o=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),n=ExpressionPropertyInterface(e.py),e.pz&&(i=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?o():[r(),n(),i?i():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.applyPoint(r,e)}function r(e,t){var r=this.getMatrix(t);return this.applyPoint(r,e)}function n(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.invertPoint(r,e)}function i(e,t){var r=this.getMatrix(t);return this.invertPoint(r,e)}function o(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function a(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function s(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function c(){return[1,1,1,1]}return function(l){var u;function d(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return d.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return u;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return d.effect;case"ADBE Text Properties":return d.textInterface;default:return null}}d.getMatrix=e,d.invertPoint=a,d.applyPoint=o,d.toWorld=r,d.toWorldVec=t,d.fromWorld=i,d.fromWorldVec=n,d.toComp=r,d.fromComp=s,d.sampleImage=c,d.sourceRectAtTime=l.sourceRectAtTime.bind(l),d._elem=l;var p=getDescriptor(u=TransformExpressionInterface(l.finalTransform.mProp),"anchorPoint");return Object.defineProperties(d,{hasParent:{get:function(){return l.hierarchy.length}},parent:{get:function(){return l.hierarchy[0].layerInterface}},rotation:getDescriptor(u,"rotation"),scale:getDescriptor(u,"scale"),position:getDescriptor(u,"position"),opacity:getDescriptor(u,"opacity"),anchorPoint:p,anchor_point:p,transform:{get:function(){return u}},active:{get:function(){return l.isInRange}}}),d.startTime=l.data.st,d.index=l.data.ind,d.source=l.data.refId,d.height=0===l.data.ty?l.data.h:100,d.width=0===l.data.ty?l.data.w:100,d.inPoint=l.data.ip/l.comp.globalData.frameRate,d.outPoint=l.data.op/l.comp.globalData.frameRate,d._name=l.data.nm,d.registerMaskInterface=function(e){d.mask=new MaskManagerInterface(e,l)},d.registerEffectsInterface=function(e){d.effect=e},d}}(),propertyGroupFactory=function(e,t){return function(r){return(r=void 0===r?1:r)<=0?e:t(r-1)}},PropertyInterface=function(e,t){var r={_name:e};return function(e){return(e=void 0===e?1:e)<=0?r:t(e-1)}},EffectsExpressionInterface=function(){function e(r,n,i,o){function a(e){for(var t=r.ef,n=0,i=t.length;n<i;){if(e===t[n].nm||e===t[n].mn||e===t[n].ix)return 5===t[n].ty?l[n]:l[n]();n+=1}throw new Error}var s,c=propertyGroupFactory(a,i),l=[],u=r.ef.length;for(s=0;s<u;s+=1)5===r.ef[s].ty?l.push(e(r.ef[s],n.effectElements[s],n.effectElements[s].propertyGroup,o)):l.push(t(n.effectElements[s],r.ef[s].ty,o,c));return"ADBE Color Control"===r.mn&&Object.defineProperty(a,"color",{get:function(){return l[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return r.np}},_name:{value:r.nm},propertyGroup:{value:c}}),a.enabled=0!==r.en,a.active=a.enabled,a}function t(e,t,r,n){var i=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",n)),function(){return 10===t?r.comp.compInterface(e.p.v):i()}}return{createEffectsInterface:function(t,r){if(t.effectsManager){var n,i=[],o=t.data.ef,a=t.effectsManager.effectElements.length;for(n=0;n<a;n+=1)i.push(e(o[n],t.effectsManager.effectElements[n],r,t));var s=t.data.ef||[],c=function(e){for(n=0,a=s.length;n<a;){if(e===s[n].nm||e===s[n].mn||e===s[n].ix)return i[n];n+=1}return null};return Object.defineProperty(c,"numProperties",{get:function(){return s.length}}),c}return null}}}(),ShapePathInterface=function(e,t,r){var n=t.sh;function i(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?i.path:null}var o=propertyGroupFactory(i,r);return n.setGroupProperty(PropertyInterface("Path",o)),Object.defineProperties(i,{path:{get:function(){return n.k&&n.getValue(),n}},shape:{get:function(){return n.k&&n.getValue(),n}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:r}}),i},ShapeExpressionInterface=function(){function e(e,a,p){var h,f=[],m=e?e.length:0;for(h=0;h<m;h+=1)"gr"===e[h].ty?f.push(t(e[h],a[h],p)):"fl"===e[h].ty?f.push(r(e[h],a[h],p)):"st"===e[h].ty?f.push(i(e[h],a[h],p)):"tm"===e[h].ty?f.push(o(e[h],a[h],p)):"tr"===e[h].ty||("el"===e[h].ty?f.push(s(e[h],a[h],p)):"sr"===e[h].ty?f.push(c(e[h],a[h],p)):"sh"===e[h].ty?f.push(ShapePathInterface(e[h],a[h],p)):"rc"===e[h].ty?f.push(l(e[h],a[h],p)):"rd"===e[h].ty?f.push(u(e[h],a[h],p)):"rp"===e[h].ty?f.push(d(e[h],a[h],p)):"gf"===e[h].ty?f.push(n(e[h],a[h],p)):f.push((e[h],a[h],function(){return null})));return f}function t(t,r,n){var i=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return i.content;default:return i.transform}};i.propertyGroup=propertyGroupFactory(i,n);var o=function(t,r,n){var i,o=function(e){for(var t=0,r=i.length;t<r;){if(i[t]._name===e||i[t].mn===e||i[t].propertyIndex===e||i[t].ix===e||i[t].ind===e)return i[t];t+=1}return"number"==typeof e?i[e-1]:null};o.propertyGroup=propertyGroupFactory(o,n),i=e(t.it,r.it,o.propertyGroup),o.numProperties=i.length;var s=a(t.it[t.it.length-1],r.it[r.it.length-1],o.propertyGroup);return o.transform=s,o.propertyIndex=t.cix,o._name=t.nm,o}(t,r,i.propertyGroup),s=a(t.it[t.it.length-1],r.it[r.it.length-1],i.propertyGroup);return i.content=o,i.transform=s,Object.defineProperty(i,"_name",{get:function(){return t.nm}}),i.numProperties=t.np,i.propertyIndex=t.ix,i.nm=t.nm,i.mn=t.mn,i}function r(e,t,r){function n(e){return"Color"===e||"color"===e?n.color:"Opacity"===e||"opacity"===e?n.opacity:null}return Object.defineProperties(n,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),n}function n(e,t,r){function n(e){return"Start Point"===e||"start point"===e?n.startPoint:"End Point"===e||"end point"===e?n.endPoint:"Opacity"===e||"opacity"===e?n.opacity:null}return Object.defineProperties(n,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",r)),t.e.setGroupProperty(PropertyInterface("End Point",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),n}function i(e,t,r){var n,i=propertyGroupFactory(l,r),o=propertyGroupFactory(c,i);function a(r){Object.defineProperty(c,e.d[r].nm,{get:ExpressionPropertyInterface(t.d.dataProps[r].p)})}var s=e.d?e.d.length:0,c={};for(n=0;n<s;n+=1)a(n),t.d.dataProps[n].p.setGroupProperty(o);function l(e){return"Color"===e||"color"===e?l.color:"Opacity"===e||"opacity"===e?l.opacity:"Stroke Width"===e||"stroke width"===e?l.strokeWidth:null}return Object.defineProperties(l,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return c}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",i)),t.o.setGroupProperty(PropertyInterface("Opacity",i)),t.w.setGroupProperty(PropertyInterface("Stroke Width",i)),l}function o(e,t,r){function n(t){return t===e.e.ix||"End"===t||"end"===t?n.end:t===e.s.ix?n.start:t===e.o.ix?n.offset:null}var i=propertyGroupFactory(n,r);return n.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",i)),t.e.setGroupProperty(PropertyInterface("End",i)),t.o.setGroupProperty(PropertyInterface("Offset",i)),n.propertyIndex=e.ix,n.propertyGroup=r,Object.defineProperties(n,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),n.mn=e.mn,n}function a(e,t,r){function n(t){return e.a.ix===t||"Anchor Point"===t?n.anchorPoint:e.o.ix===t||"Opacity"===t?n.opacity:e.p.ix===t||"Position"===t?n.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?n.rotation:e.s.ix===t||"Scale"===t?n.scale:e.sk&&e.sk.ix===t||"Skew"===t?n.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?n.skewAxis:null}var i=propertyGroupFactory(n,r);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",i)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",i)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",i)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",i)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",i)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",i)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",i))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",i)),Object.defineProperties(n,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),n.ty="tr",n.mn=e.mn,n.propertyGroup=r,n}function s(e,t,r){function n(t){return e.p.ix===t?n.position:e.s.ix===t?n.size:null}var i=propertyGroupFactory(n,r);n.propertyIndex=e.ix;var o="tm"===t.sh.ty?t.sh.prop:t.sh;return o.s.setGroupProperty(PropertyInterface("Size",i)),o.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(n,{size:{get:ExpressionPropertyInterface(o.s)},position:{get:ExpressionPropertyInterface(o.p)},_name:{value:e.nm}}),n.mn=e.mn,n}function c(e,t,r){function n(t){return e.p.ix===t?n.position:e.r.ix===t?n.rotation:e.pt.ix===t?n.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?n.outerRadius:e.os.ix===t?n.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?n.innerRoundness:null:n.innerRadius}var i=propertyGroupFactory(n,r),o="tm"===t.sh.ty?t.sh.prop:t.sh;return n.propertyIndex=e.ix,o.or.setGroupProperty(PropertyInterface("Outer Radius",i)),o.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),o.pt.setGroupProperty(PropertyInterface("Points",i)),o.p.setGroupProperty(PropertyInterface("Position",i)),o.r.setGroupProperty(PropertyInterface("Rotation",i)),e.ir&&(o.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),o.is.setGroupProperty(PropertyInterface("Inner Roundness",i))),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(o.p)},rotation:{get:ExpressionPropertyInterface(o.r)},points:{get:ExpressionPropertyInterface(o.pt)},outerRadius:{get:ExpressionPropertyInterface(o.or)},outerRoundness:{get:ExpressionPropertyInterface(o.os)},innerRadius:{get:ExpressionPropertyInterface(o.ir)},innerRoundness:{get:ExpressionPropertyInterface(o.is)},_name:{value:e.nm}}),n.mn=e.mn,n}function l(e,t,r){function n(t){return e.p.ix===t?n.position:e.r.ix===t?n.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?n.size:null}var i=propertyGroupFactory(n,r),o="tm"===t.sh.ty?t.sh.prop:t.sh;return n.propertyIndex=e.ix,o.p.setGroupProperty(PropertyInterface("Position",i)),o.s.setGroupProperty(PropertyInterface("Size",i)),o.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(o.p)},roundness:{get:ExpressionPropertyInterface(o.r)},size:{get:ExpressionPropertyInterface(o.s)},_name:{value:e.nm}}),n.mn=e.mn,n}function u(e,t,r){function n(t){return e.r.ix===t||"Round Corners 1"===t?n.radius:null}var i=propertyGroupFactory(n,r),o=t;return n.propertyIndex=e.ix,o.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(n,{radius:{get:ExpressionPropertyInterface(o.rd)},_name:{value:e.nm}}),n.mn=e.mn,n}function d(e,t,r){function n(t){return e.c.ix===t||"Copies"===t?n.copies:e.o.ix===t||"Offset"===t?n.offset:null}var i=propertyGroupFactory(n,r),o=t;return n.propertyIndex=e.ix,o.c.setGroupProperty(PropertyInterface("Copies",i)),o.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(n,{copies:{get:ExpressionPropertyInterface(o.c)},offset:{get:ExpressionPropertyInterface(o.o)},_name:{value:e.nm}}),n.mn=e.mn,n}return function(t,r,n){var i;function o(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?n:i[e-1];for(var t=0,r=i.length;t<r;){if(i[t]._name===e)return i[t];t+=1}return null}return o.propertyGroup=propertyGroupFactory(o,(function(){return n})),i=e(t,r,o.propertyGroup),o.numProperties=i.length,o._name="Contents",o}}(),TextExpressionInterface=function(e){var t;function r(e){return"ADBE Text Document"===e?r.sourceText:null}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var r=e.textProperty.currentData.t;return t&&r===t.value||((t=new String(r)).value=r||new String(r),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),r};function _typeof(e){return _typeof="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},_typeof(e)}var FootageInterface=(dataInterfaceFactory=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",r=e.getFootageData();function n(e){if(r[e])return t=e,"object"===_typeof(r=r[e])?n:r;var i=e.indexOf(t);if(-1!==i){var o=parseInt(e.substr(i+t.length),10);return"object"===_typeof(r=r[o])?n:r}return""}return function(){return t="",r=e.getFootageData(),n}}(e),t},function(e){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers={searchExpressions:function(e,t,r){t.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(e,t,r).bind(r)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),r=this.getValueAtTime(e+-.01),n=0;if(t.length){var i;for(i=0;i<t.length;i+=1)n+=Math.pow(r[i]-t[i],2);n=100*Math.sqrt(n)}else n=0;return n},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,r,n=-.001,i=this.getValueAtTime(e),o=this.getValueAtTime(e+n);if(i.length)for(t=createTypedArray("float32",i.length),r=0;r<i.length;r+=1)t[r]=(o[r]-i[r])/n;else t=(o-i)/n;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,r){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var n,i,o,a,s,c=this.comp.renderedFrame,l=this.keyframes,u=l[l.length-1].t;if(c<=u)return this.pv;if(r?i=u-(n=t?Math.abs(u-this.elem.comp.globalData.frameRate*t):Math.max(0,u-this.elem.data.ip)):((!t||t>l.length-1)&&(t=l.length-1),n=u-(i=l[l.length-1-t].t)),"pingpong"===e){if(Math.floor((c-i)/n)%2!=0)return this.getValueAtTime((n-(c-i)%n+i)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var d=this.getValueAtTime(i/this.comp.globalData.frameRate,0),p=this.getValueAtTime(u/this.comp.globalData.frameRate,0),h=this.getValueAtTime(((c-i)%n+i)/this.comp.globalData.frameRate,0),f=Math.floor((c-i)/n);if(this.pv.length){for(a=(s=new Array(d.length)).length,o=0;o<a;o+=1)s[o]=(p[o]-d[o])*f+h[o];return s}return(p-d)*f+h}if("continue"===e){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),g=this.getValueAtTime((u-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(m.length)).length,o=0;o<a;o+=1)s[o]=m[o]+(m[o]-g[o])*((c-u)/this.comp.globalData.frameRate)/5e-4;return s}return m+(c-u)/.001*(m-g)}}return this.getValueAtTime(((c-i)%n+i)/this.comp.globalData.frameRate,0)}function t(e,t,r){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var n,i,o,a,s,c=this.comp.renderedFrame,l=this.keyframes,u=l[0].t;if(c>=u)return this.pv;if(r?i=u+(n=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-u)):((!t||t>l.length-1)&&(t=l.length-1),n=(i=l[t].t)-u),"pingpong"===e){if(Math.floor((u-c)/n)%2==0)return this.getValueAtTime(((u-c)%n+u)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var d=this.getValueAtTime(u/this.comp.globalData.frameRate,0),p=this.getValueAtTime(i/this.comp.globalData.frameRate,0),h=this.getValueAtTime((n-(u-c)%n+u)/this.comp.globalData.frameRate,0),f=Math.floor((u-c)/n)+1;if(this.pv.length){for(a=(s=new Array(d.length)).length,o=0;o<a;o+=1)s[o]=h[o]-(p[o]-d[o])*f;return s}return h-(p-d)*f}if("continue"===e){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),g=this.getValueAtTime((u+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(m.length)).length,o=0;o<a;o+=1)s[o]=m[o]+(m[o]-g[o])*(u-c)/.001;return s}return m+(m-g)*(u-c)/.001}}return this.getValueAtTime((n-((u-c)%n+u))/this.comp.globalData.frameRate,0)}function r(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var r,n,i=this.comp.renderedFrame/this.comp.globalData.frameRate,o=i-e,a=t>1?(i+e-o)/(t-1):1,s=0,c=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;s<t;){if(n=this.getValueAtTime(o+s*a),this.pv.length)for(c=0;c<this.pv.length;c+=1)r[c]+=n[c];else r+=n;s+=1}if(this.pv.length)for(c=0;c<this.pv.length;c+=1)r[c]/=t;else r/=t;return r}function n(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var r=this.a.getValueAtTime(e);t.translate(-r[0]*this.a.mult,-r[1]*this.a.mult,r[2]*this.a.mult)}if(this.appliedTransformations<2){var n=this.s.getValueAtTime(e);t.scale(n[0]*this.s.mult,n[1]*this.s.mult,n[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var i=this.sk.getValueAtTime(e),o=this.sa.getValueAtTime(e);t.skewFromAxis(-i*this.sk.mult,o*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var a=this.r.getValueAtTime(e);t.rotate(-a*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var s=this.rz.getValueAtTime(e),c=this.ry.getValueAtTime(e),l=this.rx.getValueAtTime(e),u=this.or.getValueAtTime(e);t.rotateZ(-s*this.rz.mult).rotateY(c*this.ry.mult).rotateX(l*this.rx.mult).rotateZ(-u[2]*this.or.mult).rotateY(u[1]*this.or.mult).rotateX(u[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var d=this.px.getValueAtTime(e),p=this.py.getValueAtTime(e);if(this.data.p.z){var h=this.pz.getValueAtTime(e);t.translate(d*this.px.mult,p*this.py.mult,-h*this.pz.mult)}else t.translate(d*this.px.mult,p*this.py.mult,0)}else{var f=this.p.getValueAtTime(e);t.translate(f[0]*this.p.mult,f[1]*this.p.mult,-f[2]*this.p.mult)}return t}function i(){return this.v.clone(new Matrix)}var o=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,r){var a=o(e,t,r);return a.dynamicProperties.length?a.getValueAtTime=n.bind(a):a.getValueAtTime=i.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(n,i,o,s,c){var l=a(n,i,o,s,c);l.kf?l.getValueAtTime=expressionHelpers.getValueAtTime.bind(l):l.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(l),l.setGroupProperty=expressionHelpers.setGroupProperty,l.loopOut=e,l.loopIn=t,l.smooth=r,l.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(l),l.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(l),l.numKeys=1===i.a?i.k.length:0,l.propertyIndex=i.ix;var u=0;return 0!==o&&(u=createTypedArray("float32",1===i.a?i.k[0].s.length:i.k.length)),l._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:u},expressionHelpers.searchExpressions(n,i,l),l.k&&c.addDynamicProperty(l),l};var s=ShapePropertyFactory.getConstructorFunction(),c=ShapePropertyFactory.getKeyframedConstructorFunction();function l(){}l.prototype={vertices:function(e,t){this.k&&this.getValue();var r,n=this.v;void 0!==t&&(n=this.getValueAtTime(t,0));var i=n._length,o=n[e],a=n.v,s=createSizedArray(i);for(r=0;r<i;r+=1)s[r]="i"===e||"o"===e?[o[r][0]-a[r][0],o[r][1]-a[r][1]]:[o[r][0],o[r][1]];return s},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var n,i=this._segmentsLength,o=i.lengths,a=i.totalLength*e,s=0,c=o.length,l=0;s<c;){if(l+o[s].addedLength>a){var u=s,d=r.c&&s===c-1?0:s+1,p=(a-l)/o[s].addedLength;n=bez.getPointInSegment(r.v[u],r.v[d],r.o[u],r.i[d],p,o[s]);break}l+=o[s].addedLength,s+=1}return n||(n=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),n},vectorOnPath:function(e,t,r){1==e?e=this.v.c:0==e&&(e=.999);var n=this.pointOnPath(e,t),i=this.pointOnPath(e+.001,t),o=i[0]-n[0],a=i[1]-n[1],s=Math.sqrt(Math.pow(o,2)+Math.pow(a,2));return 0===s?[0,0]:"tangent"===r?[o/s,a/s]:[-a/s,o/s]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([l],s),extendPrototype([l],c),c.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},c.prototype.initiateExpression=ExpressionManager.initiateExpression;var u=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,r,n,i){var o=u(e,t,r,n,i);return o.propertyIndex=t.ix,o.lock=!1,3===r?expressionHelpers.searchExpressions(e,t.pt,o):4===r&&expressionHelpers.searchExpressions(e,t.ks,o),o.k&&e.addDynamicProperty(o),o}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var r=this.calculateExpression(t);if(e.t!==r){var n={};return this.copyData(n,e),n.t=r.toString(),n.__complete=!1,n}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(e,t){var r,n,i=createNS("feMerge");for(i.setAttribute("result",e),n=0;n<t.length;n+=1)(r=createNS("feMergeNode")).setAttribute("in",t[n]),i.appendChild(r),i.appendChild(r);return i}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,r,n,i){this.filterManager=t;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=o,o.setAttribute("result",n+"_tint_1"),e.appendChild(o),(o=createNS("feColorMatrix")).setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",n+"_tint_2"),e.appendChild(o),this.matrixFilter=o;var a=this.createMergeNode(n,[i,n+"_tint_1",n+"_tint_2"]);e.appendChild(a)}function SVGFillFilter(e,t,r,n){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",n),e.appendChild(i),this.matrixFilter=i}function SVGStrokeEffect(e,t,r){this.initialized=!1,this.filterManager=t,this.elem=r,this.paths=[]}function SVGTritoneFilter(e,t,r,n){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(i);var o=createNS("feComponentTransfer");o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",n),this.matrixFilter=o;var a=createNS("feFuncR");a.setAttribute("type","table"),o.appendChild(a),this.feFuncR=a;var s=createNS("feFuncG");s.setAttribute("type","table"),o.appendChild(s),this.feFuncG=s;var c=createNS("feFuncB");c.setAttribute("type","table"),o.appendChild(c),this.feFuncB=c,e.appendChild(o)}function SVGProLevelsFilter(e,t,r,n){this.filterManager=t;var i=this.filterManager.effectElements,o=createNS("feComponentTransfer");(i[10].p.k||0!==i[10].p.v||i[11].p.k||1!==i[11].p.v||i[12].p.k||1!==i[12].p.v||i[13].p.k||0!==i[13].p.v||i[14].p.k||1!==i[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",o)),(i[17].p.k||0!==i[17].p.v||i[18].p.k||1!==i[18].p.v||i[19].p.k||1!==i[19].p.v||i[20].p.k||0!==i[20].p.v||i[21].p.k||1!==i[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",o)),(i[24].p.k||0!==i[24].p.v||i[25].p.k||1!==i[25].p.v||i[26].p.k||1!==i[26].p.v||i[27].p.k||0!==i[27].p.v||i[28].p.k||1!==i[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",o)),(i[31].p.k||0!==i[31].p.v||i[32].p.k||1!==i[32].p.v||i[33].p.k||1!==i[33].p.v||i[34].p.k||0!==i[34].p.v||i[35].p.k||1!==i[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",o)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(o.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(o)),(i[3].p.k||0!==i[3].p.v||i[4].p.k||1!==i[4].p.v||i[5].p.k||1!==i[5].p.v||i[6].p.k||0!==i[6].p.v||i[7].p.k||1!==i[7].p.v)&&((o=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",n),e.appendChild(o),this.feFuncRComposed=this.createFeFunc("feFuncR",o),this.feFuncGComposed=this.createFeFunc("feFuncG",o),this.feFuncBComposed=this.createFeFunc("feFuncB",o))}function SVGDropShadowEffect(e,t,r,n,i){var o=t.container.globalData.renderConfig.filterSize,a=t.data.fs||o;e.setAttribute("x",a.x||o.x),e.setAttribute("y",a.y||o.y),e.setAttribute("width",a.width||o.width),e.setAttribute("height",a.height||o.height),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",n+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,e.appendChild(s);var c=createNS("feOffset");c.setAttribute("dx","25"),c.setAttribute("dy","0"),c.setAttribute("in",n+"_drop_shadow_1"),c.setAttribute("result",n+"_drop_shadow_2"),this.feOffset=c,e.appendChild(c);var l=createNS("feFlood");l.setAttribute("flood-color","#00ff00"),l.setAttribute("flood-opacity","1"),l.setAttribute("result",n+"_drop_shadow_3"),this.feFlood=l,e.appendChild(l);var u=createNS("feComposite");u.setAttribute("in",n+"_drop_shadow_3"),u.setAttribute("in2",n+"_drop_shadow_2"),u.setAttribute("operator","in"),u.setAttribute("result",n+"_drop_shadow_4"),e.appendChild(u);var d=this.createMergeNode(n,[n+"_drop_shadow_4",i]);e.appendChild(d)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+n+" 0"),this.matrixFilter.setAttribute("values",r[0]-t[0]+" 0 0 0 "+t[0]+" "+(r[1]-t[1])+" 0 0 0 "+t[1]+" "+(r[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,r,n,i=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(n=this.elem.maskManager.masksProperties.length,r=0):n=1+(r=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);r<n;r+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:r});if(3===this.filterManager.effectElements[10].p.v){var o=createNS("mask"),a=createElementID();o.setAttribute("id",a),o.setAttribute("mask-type","alpha"),o.appendChild(t),this.elem.globalData.defs.appendChild(o);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+a+")");i[0];)s.appendChild(i[0]);this.elem.layerElement.appendChild(s),this.masker=o,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(i=this.elem.layerElement.children||this.elem.layerElement.childNodes;i.length;)this.elem.layerElement.removeChild(i[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var r,n,i=this.paths.length;for(t=0;t<i;t+=1)if(-1!==this.paths[t].m&&(r=this.elem.maskManager.viewData[this.paths[t].m],n=this.paths[t].p,(e||this.filterManager._mdf||r.prop._mdf)&&n.setAttribute("d",r.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var o;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var a=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),s=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),c=n.getTotalLength();o="0 0 0 "+c*a+" ";var l,u=c*(s-a),d=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,p=Math.floor(u/d);for(l=0;l<p;l+=1)o+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";o+="0 "+10*c+" 0 0"}else o="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;n.setAttribute("stroke-dasharray",o)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var h=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*h[0])+","+bmFloor(255*h[1])+","+bmFloor(255*h[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v,i=n[0]+" "+r[0]+" "+t[0],o=n[1]+" "+r[1]+" "+t[1],a=n[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",o),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var r=createNS(e);return r.setAttribute("type","table"),t.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(e,t,r,n,i){for(var o,a,s=0,c=Math.min(e,t),l=Math.max(e,t),u=Array.call(null,{length:256}),d=0,p=i-n,h=t-e;s<=256;)a=(o=s/256)<=c?h<0?i:n:o>=l?h<0?n:i:n+p*Math.pow((o-e)/h,1/r),u[d]=a,d+=1,s+=256/255;return u.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,r=this.filterManager.effectElements;this.feFuncRComposed&&(e||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(t=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(t=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(t=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(t=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(t=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,n=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=r*Math.cos(n),o=r*Math.sin(n);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,r){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(e,t,r,n){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var i=createNS("feGaussianBlur");i.setAttribute("result",n),e.appendChild(i),this.feGaussianBlur=i}function TransformEffect(){}function SVGTransformEffect(e,t){this.init(t)}function CVTransformEffect(e){this.init(e)}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,r=_svgMatteSymbols.length;t<r;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var r=e.layerElement.parentNode;if(r){for(var n,i=r.children,o=0,a=i.length;o<a&&i[o]!==e.layerElement;)o+=1;o<=a-2&&(n=i[o+1]);var s=createNS("use");s.setAttribute("href","#"+t),n?r.insertBefore(s,n):r.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),n=createNS("mask");n.setAttribute("id",t.layerId),n.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var i=e.globalData.defs;i.appendChild(n);var o=createNS("symbol");o.setAttribute("id",r),this.replaceInParent(t,r),o.appendChild(t.layerElement),i.appendChild(o);var a=createNS("use");a.setAttribute("href","#"+r),n.appendChild(a),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,r=0,n=t.length;r<n;)t[r]&&t[r].data.ind===e&&this.setElementAsMask(this.elem,t[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=3==r?0:t,i=2==r?0:t;this.feGaussianBlur.setAttribute("stdDeviation",n+" "+i);var o=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",o)}},TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,r=t[0].p.v,n=t[1].p.v,i=1===t[2].p.v,o=t[3].p.v,a=i?o:t[4].p.v,s=t[5].p.v,c=t[6].p.v,l=t[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(.01*a,.01*o,1),this.matrix.rotate(-l*degToRads),this.matrix.skewFromAxis(-s*degToRads,(c+90)*degToRads),this.matrix.translate(n[0],n[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=factory())},59614:(e,t,r)=>{var n,i,o,a,s;n=r(51041),i=r(31615).utf8,o=r(81246),a=r(31615).bin,(s=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?a.stringToBytes(e):i.stringToBytes(e):o(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var r=n.bytesToWords(e),c=8*e.length,l=1732584193,u=-271733879,d=-1732584194,p=271733878,h=0;h<r.length;h++)r[h]=16711935&(r[h]<<8|r[h]>>>24)|4278255360&(r[h]<<24|r[h]>>>8);r[c>>>5]|=128<<c%32,r[14+(c+64>>>9<<4)]=c;var f=s._ff,m=s._gg,g=s._hh,v=s._ii;for(h=0;h<r.length;h+=16){var y=l,b=u,_=d,E=p;l=f(l,u,d,p,r[h+0],7,-680876936),p=f(p,l,u,d,r[h+1],12,-389564586),d=f(d,p,l,u,r[h+2],17,606105819),u=f(u,d,p,l,r[h+3],22,-1044525330),l=f(l,u,d,p,r[h+4],7,-176418897),p=f(p,l,u,d,r[h+5],12,1200080426),d=f(d,p,l,u,r[h+6],17,-1473231341),u=f(u,d,p,l,r[h+7],22,-45705983),l=f(l,u,d,p,r[h+8],7,1770035416),p=f(p,l,u,d,r[h+9],12,-1958414417),d=f(d,p,l,u,r[h+10],17,-42063),u=f(u,d,p,l,r[h+11],22,-1990404162),l=f(l,u,d,p,r[h+12],7,1804603682),p=f(p,l,u,d,r[h+13],12,-40341101),d=f(d,p,l,u,r[h+14],17,-1502002290),l=m(l,u=f(u,d,p,l,r[h+15],22,1236535329),d,p,r[h+1],5,-165796510),p=m(p,l,u,d,r[h+6],9,-1069501632),d=m(d,p,l,u,r[h+11],14,643717713),u=m(u,d,p,l,r[h+0],20,-373897302),l=m(l,u,d,p,r[h+5],5,-701558691),p=m(p,l,u,d,r[h+10],9,38016083),d=m(d,p,l,u,r[h+15],14,-660478335),u=m(u,d,p,l,r[h+4],20,-405537848),l=m(l,u,d,p,r[h+9],5,568446438),p=m(p,l,u,d,r[h+14],9,-1019803690),d=m(d,p,l,u,r[h+3],14,-187363961),u=m(u,d,p,l,r[h+8],20,1163531501),l=m(l,u,d,p,r[h+13],5,-1444681467),p=m(p,l,u,d,r[h+2],9,-51403784),d=m(d,p,l,u,r[h+7],14,1735328473),l=g(l,u=m(u,d,p,l,r[h+12],20,-1926607734),d,p,r[h+5],4,-378558),p=g(p,l,u,d,r[h+8],11,-2022574463),d=g(d,p,l,u,r[h+11],16,1839030562),u=g(u,d,p,l,r[h+14],23,-35309556),l=g(l,u,d,p,r[h+1],4,-1530992060),p=g(p,l,u,d,r[h+4],11,1272893353),d=g(d,p,l,u,r[h+7],16,-155497632),u=g(u,d,p,l,r[h+10],23,-1094730640),l=g(l,u,d,p,r[h+13],4,681279174),p=g(p,l,u,d,r[h+0],11,-358537222),d=g(d,p,l,u,r[h+3],16,-722521979),u=g(u,d,p,l,r[h+6],23,76029189),l=g(l,u,d,p,r[h+9],4,-640364487),p=g(p,l,u,d,r[h+12],11,-421815835),d=g(d,p,l,u,r[h+15],16,530742520),l=v(l,u=g(u,d,p,l,r[h+2],23,-995338651),d,p,r[h+0],6,-198630844),p=v(p,l,u,d,r[h+7],10,1126891415),d=v(d,p,l,u,r[h+14],15,-1416354905),u=v(u,d,p,l,r[h+5],21,-57434055),l=v(l,u,d,p,r[h+12],6,1700485571),p=v(p,l,u,d,r[h+3],10,-1894986606),d=v(d,p,l,u,r[h+10],15,-1051523),u=v(u,d,p,l,r[h+1],21,-2054922799),l=v(l,u,d,p,r[h+8],6,1873313359),p=v(p,l,u,d,r[h+15],10,-30611744),d=v(d,p,l,u,r[h+6],15,-1560198380),u=v(u,d,p,l,r[h+13],21,1309151649),l=v(l,u,d,p,r[h+4],6,-145523070),p=v(p,l,u,d,r[h+11],10,-1120210379),d=v(d,p,l,u,r[h+2],15,718787259),u=v(u,d,p,l,r[h+9],21,-343485551),l=l+y>>>0,u=u+b>>>0,d=d+_>>>0,p=p+E>>>0}return n.endian([l,u,d,p])})._ff=function(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},s._gg=function(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},s._hh=function(e,t,r,n,i,o,a){var s=e+(t^r^n)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},s._ii=function(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+(i>>>0)+a;return(s<<o|s>>>32-o)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var r=n.wordsToBytes(s(e,t));return t&&t.asBytes?r:t&&t.asString?a.bytesToString(r):n.bytesToHex(r)}},92652:function(e,t,r){!function(e,t,r,n){"use strict";var i="default"in r?r.default:r,o="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},a=(function(){function e(e){this.value=e}function t(t){var r,n;function i(r,n){try{var a=t[r](n),s=a.value;s instanceof e?Promise.resolve(s.value).then((function(e){i("next",e)}),(function(e){i("throw",e)})):o(a.done?"return":"normal",a.value)}catch(e){o("throw",e)}}function o(e,t){switch(e){case"return":r.resolve({value:t,done:!0});break;case"throw":r.reject(t);break;default:r.resolve({value:t,done:!1})}(r=r.next)?i(r.key,r.arg):n=null}this._invoke=function(e,t){return new Promise((function(o,a){var s={key:e,arg:t,resolve:o,reject:a,next:null};n?n=n.next=s:(r=n=s,i(e,t))}))},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),s=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),c=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},l=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},u=function(){function e(){a(this,e),this.listeners=[]}return s(e,[{key:"on",value:function(e){var t=this;return this.listeners.push(e),function(){var r=t.listeners.indexOf(e);-1!==r&&t.listeners.splice(r,1)}}},{key:"emit",value:function(e){this.listeners.forEach((function(t){return t(e)}))}}]),e}(),d={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},p={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},h=Object.defineProperty,f=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,g=Object.getOwnPropertyDescriptor,v=Object.getPrototypeOf,y=v&&v(Object),b=function e(t,r,n){if("string"!=typeof r){if(y){var i=v(r);i&&i!==y&&e(t,i,n)}var o=f(r);m&&(o=o.concat(m(r)));for(var a=0;a<o.length;++a){var s=o[a];if(!(d[s]||p[s]||n&&n[s])){var c=g(r,s);try{h(t,s,c)}catch(e){}}}return t}return t};function _(e){function r(r,n,i,o,a,s){for(var c=arguments.length,l=Array(c>6?c-6:0),u=6;u<c;u++)l[u-6]=arguments[u];return t.untracked((function(){if(o=o||"<<anonymous>>",s=s||i,null==n[i]){if(r){var t=null===n[i]?"null":"undefined";return new Error("The "+a+" `"+s+"` is marked as required in `"+o+"`, but its value is `"+t+"`.")}return null}return e.apply(void 0,[n,i,o,a,s].concat(l))}))}var n=r.bind(null,!1);return n.isRequired=r.bind(null,!0),n}function E(e){var t=void 0===e?"undefined":o(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function w(e,r){return _((function(n,i,o,a,s){return t.untracked((function(){if(e&&E(n[i])===r.toLowerCase())return null;var a=void 0;switch(r){case"Array":a=t.isObservableArray;break;case"Object":a=t.isObservableObject;break;case"Map":a=t.isObservableMap;break;default:throw new Error("Unexpected mobxType: "+r)}var c=n[i];if(!a(c)){var l=function(e){var t=E(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}(c),u=e?" or javascript `"+r.toLowerCase()+"`":"";return new Error("Invalid prop `"+s+"` of type `"+l+"` supplied to `"+o+"`, expected `mobx.Observable"+r+"`"+u+".")}return null}))}))}function x(e,r){return _((function(n,i,o,a,s){for(var c=arguments.length,l=Array(c>5?c-5:0),u=5;u<c;u++)l[u-5]=arguments[u];return t.untracked((function(){if("function"!=typeof r)return new Error("Property `"+s+"` of component `"+o+"` has invalid PropType notation.");var t=w(e,"Array")(n,i,o);if(t instanceof Error)return t;for(var c=n[i],u=0;u<c.length;u++)if((t=r.apply(void 0,[c,u,o,a,s+"["+u+"]"].concat(l)))instanceof Error)return t;return null}))}))}var L=w(!1,"Array"),O=x.bind(null,!1),S=w(!1,"Map"),T=w(!1,"Object"),P=w(!0,"Array"),I=x.bind(null,!0),A=w(!0,"Object"),C=Object.freeze({observableArray:L,observableArrayOf:O,observableMap:S,observableObject:T,arrayOrObservableArray:P,arrayOrObservableArrayOf:I,objectOrObservableObject:A}),k={mobxStores:A};Object.seal(k);var D={contextTypes:{get:function(){return k},set:function(e){console.warn("Mobx Injector: you are trying to attach `contextTypes` on an component decorated with `inject` (or `observer`) HOC. Please specify the contextTypes on the wrapped component instead. It is accessible through the `wrappedComponent`")},configurable:!0,enumerable:!1},isMobxInjector:{value:!0,writable:!0,configurable:!0,enumerable:!0}};function N(e,t,n){var i,o,u="inject-"+(t.displayName||t.name||t.constructor&&t.constructor.name||"Unknown");n&&(u+="-with-"+n);var d=(o=i=function(n){function i(){var e,t,r;a(this,i);for(var n=arguments.length,o=Array(n),s=0;s<n;s++)o[s]=arguments[s];return t=r=l(this,(e=i.__proto__||Object.getPrototypeOf(i)).call.apply(e,[this].concat(o))),r.storeRef=function(e){r.wrappedInstance=e},l(r,t)}return c(i,n),s(i,[{key:"render",value:function(){var n={};for(var i in this.props)this.props.hasOwnProperty(i)&&(n[i]=this.props[i]);var o=e(this.context.mobxStores||{},n,this.context)||{};for(var a in o)n[a]=o[a];return function(e){return!(e.prototype&&e.prototype.render)}(t)||(n.ref=this.storeRef),r.createElement(t,n)}}]),i}(r.Component),i.displayName=u,o);return b(d,t),d.wrappedComponent=t,Object.defineProperties(d,D),d}function R(){var e=void 0;if("function"==typeof arguments[0])return e=arguments[0],function(t){var r=N(e,t);return r.isMobxInjector=!1,(r=$(r)).isMobxInjector=!0,r};for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e=function(e){return function(t,r){return e.forEach((function(e){if(!(e in r)){if(!(e in t))throw new Error("MobX injector: Store '"+e+"' is not available! Make sure it is provided by some Provider");r[e]=t[e]}})),r}}(t),function(r){return N(e,r,t.join("-"))}}var M=!1,j=!1,F=!1,Z="undefined"!=typeof WeakMap?new WeakMap:void 0,B=new u;function G(e){if(n.findDOMNode)try{return n.findDOMNode(e)}catch(e){return null}return null}function U(e){var t=G(e);t&&Z&&Z.set(t,e),B.emit({event:"render",renderTime:e.__$mobRenderEnd-e.__$mobRenderStart,totalTime:Date.now()-e.__$mobRenderStart,component:e,node:t})}function H(){if("undefined"==typeof WeakMap)throw new Error("[mobx-react] tracking components is not supported in this browser.");M||(M=!0)}var z=new u;function V(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e[t],i=K[t],o=n?!0===r?function(){i.apply(this,arguments),n.apply(this,arguments)}:function(){n.apply(this,arguments),i.apply(this,arguments)}:i;e[t]=o}function Y(e,t){if(W(e,t))return!0;if("object"!==(void 0===e?"undefined":o(e))||null===e||"object"!==(void 0===t?"undefined":o(t))||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0;i<r.length;i++)if(!hasOwnProperty.call(t,r[i])||!W(e[r[i]],t[r[i]]))return!1;return!0}function W(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}var K={componentWillMount:function(){var e=this;if(!0!==j){var n=this.displayName||this.name||this.constructor&&(this.constructor.displayName||this.constructor.name)||"<component>",i=this._reactInternalInstance&&this._reactInternalInstance._rootNodeID||this._reactInternalFiber&&this._reactInternalFiber._debugID,o=!1,a=!1;d.call(this,"props"),d.call(this,"state");var s=this.render.bind(this),c=null,l=!1,u=function(){l=!1;var r=void 0,n=void 0;if(c.track((function(){M&&(e.__$mobRenderStart=Date.now());try{n=t.extras.allowStateChanges(!1,s)}catch(e){r=e}M&&(e.__$mobRenderEnd=Date.now())})),r)throw z.emit(r),r;return n};this.render=function(){return(c=new t.Reaction(n+"#"+i+".render()",(function(){if(!l&&(l=!0,"function"==typeof e.componentWillReact&&e.componentWillReact(),!0!==e.__$mobxIsUnmounted)){var t=!0;try{a=!0,o||r.Component.prototype.forceUpdate.call(e),t=!1}finally{a=!1,t&&c.dispose()}}}))).reactComponent=e,u.$mobx=c,e.render=u,u()}}function d(e){var r=this[e],n=new t.Atom("reactive "+e);Object.defineProperty(this,e,{configurable:!0,enumerable:!0,get:function(){return n.reportObserved(),r},set:function(e){a||Y(r,e)?r=e:(r=e,o=!0,n.reportChanged(),o=!1)}})}},componentWillUnmount:function(){if(!0!==j&&(this.render.$mobx&&this.render.$mobx.dispose(),this.__$mobxIsUnmounted=!0,M)){var e=G(this);e&&Z&&Z.delete(e),B.emit({event:"destroy",component:this,node:e})}},componentDidMount:function(){M&&U(this)},componentDidUpdate:function(){M&&U(this)},shouldComponentUpdate:function(e,t){return j&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t||!Y(this.props,e)}};function $(e,t){if("string"==typeof e)throw new Error("Store names should be provided as array");if(Array.isArray(e))return F||(F=!0,console.warn('Mobx observer: Using observer to inject stores is deprecated since 4.0. Use `@inject("store1", "store2") @observer ComponentClass` or `inject("store1", "store2")(observer(componentClass))` instead of `@observer(["store1", "store2"]) ComponentClass`')),t?R.apply(null,e)($(t)):function(t){return $(e,t)};var n,i,o=e;if(!0===o.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),!("function"!=typeof o||o.prototype&&o.prototype.render||o.isReactClass||r.Component.isPrototypeOf(o)))return $((i=n=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),s(t,[{key:"render",value:function(){return o.call(this,this.props,this.context)}}]),t}(r.Component),n.displayName=o.displayName||o.name,n.contextTypes=o.contextTypes,n.propTypes=o.propTypes,n.defaultProps=o.defaultProps,i));if(!o)throw new Error("Please pass a valid component to 'observer'");return function(e){V(e,"componentWillMount",!0),["componentDidMount","componentWillUnmount","componentDidUpdate"].forEach((function(t){V(e,t)})),e.shouldComponentUpdate||(e.shouldComponentUpdate=K.shouldComponentUpdate)}(o.prototype||o),o.isMobXReactObserver=!0,o}var q=$((function(e){var t=e.children,r=e.inject,n=e.render,o=t||n;if(void 0===o)return null;if(!r)return o();var a=R(r)(o);return i.createElement(a,null)}));q.displayName="Observer";var X,J,Q=function(e,t,r,n,i){var a="children"===t?"render":"children";return"function"==typeof e[t]&&"function"==typeof e[a]?new Error("Invalid prop,do not use children and render in the same time in`"+r):"function"!=typeof e[t]&&"function"!=typeof e[a]?new Error("Invalid prop `"+i+"` of type `"+o(e[t])+"` supplied to `"+r+"`, expected `function`."):void 0};q.propTypes={render:Q,children:Q};var ee={children:!0,key:!0,ref:!0},te=(J=X=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),s(t,[{key:"render",value:function(){return r.Children.only(this.props.children)}},{key:"getChildContext",value:function(){var e={},t=this.context.mobxStores;if(t)for(var r in t)e[r]=t[r];for(var n in this.props)ee[n]||"suppressChangedStoreWarning"===n||(e[n]=this.props[n]);return{mobxStores:e}}},{key:"componentWillReceiveProps",value:function(e){if(Object.keys(e).length!==Object.keys(this.props).length&&console.warn("MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children"),!e.suppressChangedStoreWarning)for(var t in e)ee[t]||this.props[t]===e[t]||console.warn("MobX Provider: Provided store '"+t+"' has changed. Please avoid replacing stores as the change might not propagate to all children")}}]),t}(r.Component),X.contextTypes={mobxStores:A},X.childContextTypes={mobxStores:A.isRequired},J);if(!r.Component)throw new Error("mobx-react requires React to be available");if(!t.extras)throw new Error("mobx-react requires mobx to be available");if("function"==typeof n.unstable_batchedUpdates&&t.extras.setReactionScheduler(n.unstable_batchedUpdates),"object"===("undefined"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__?"undefined":o(__MOBX_DEVTOOLS_GLOBAL_HOOK__))){var re={spy:t.spy,extras:t.extras},ne={renderReporter:B,componentByNodeRegistery:Z,trackComponents:H};__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobxReact(ne,re)}e.propTypes=C,e.PropTypes=C,e.onError=function(e){return z.on(e)},e.observer=$,e.Observer=q,e.renderReporter=B,e.componentByNodeRegistery=Z,e.trackComponents=H,e.useStaticRendering=function(e){j=e},e.Provider=te,e.inject=R,Object.defineProperty(e,"__esModule",{value:!0})}(t,r(50265),r(89526),r(73961))},62631:(e,t,r)=>{"use strict";r.d(t,{Pi:()=>K,ng:()=>k});var n=r(50265),i=r(89526),o=r(73961),a="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},s=(function(){function e(e){this.value=e}function t(t){var r,n;function i(r,n){try{var a=t[r](n),s=a.value;s instanceof e?Promise.resolve(s.value).then((function(e){i("next",e)}),(function(e){i("throw",e)})):o(a.done?"return":"normal",a.value)}catch(e){o("throw",e)}}function o(e,t){switch(e){case"return":r.resolve({value:t,done:!0});break;case"throw":r.reject(t);break;default:r.resolve({value:t,done:!1})}(r=r.next)?i(r.key,r.arg):n=null}this._invoke=function(e,t){return new Promise((function(o,a){var s={key:e,arg:t,resolve:o,reject:a,next:null};n?n=n.next=s:(r=n=s,i(e,t))}))},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),c=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),l=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},u=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},d=function(){function e(){s(this,e),this.listeners=[]}return c(e,[{key:"on",value:function(e){var t=this;return this.listeners.push(e),function(){var r=t.listeners.indexOf(e);-1!==r&&t.listeners.splice(r,1)}}},{key:"emit",value:function(e){this.listeners.forEach((function(t){return t(e)}))}}]),e}(),p={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},h={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},f=Object.defineProperty,m=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,v=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,b=y&&y(Object),_=function e(t,r,n){if("string"!=typeof r){if(b){var i=y(r);i&&i!==b&&e(t,i,n)}var o=m(r);g&&(o=o.concat(g(r)));for(var a=0;a<o.length;++a){var s=o[a];if(!(p[s]||h[s]||n&&n[s])){var c=v(r,s);try{f(t,s,c)}catch(e){}}}return t}return t};function E(e){function t(t,r,i,o,a,s){for(var c=arguments.length,l=Array(c>6?c-6:0),u=6;u<c;u++)l[u-6]=arguments[u];return(0,n.untracked)((function(){if(o=o||"<<anonymous>>",s=s||i,null==r[i]){if(t){var n=null===r[i]?"null":"undefined";return new Error("The "+a+" `"+s+"` is marked as required in `"+o+"`, but its value is `"+n+"`.")}return null}return e.apply(void 0,[r,i,o,a,s].concat(l))}))}var r=t.bind(null,!1);return r.isRequired=t.bind(null,!0),r}function w(e){var t=void 0===e?"undefined":a(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function x(e,t){return E((function(r,i,o,a,s){return(0,n.untracked)((function(){if(e&&w(r[i])===t.toLowerCase())return null;var a=void 0;switch(t){case"Array":a=n.isObservableArray;break;case"Object":a=n.isObservableObject;break;case"Map":a=n.isObservableMap;break;default:throw new Error("Unexpected mobxType: "+t)}var c=r[i];if(!a(c)){var l=function(e){var t=w(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}(c),u=e?" or javascript `"+t.toLowerCase()+"`":"";return new Error("Invalid prop `"+s+"` of type `"+l+"` supplied to `"+o+"`, expected `mobx.Observable"+t+"`"+u+".")}return null}))}))}function L(e,t){return E((function(r,i,o,a,s){for(var c=arguments.length,l=Array(c>5?c-5:0),u=5;u<c;u++)l[u-5]=arguments[u];return(0,n.untracked)((function(){if("function"!=typeof t)return new Error("Property `"+s+"` of component `"+o+"` has invalid PropType notation.");var n=x(e,"Array")(r,i,o);if(n instanceof Error)return n;for(var c=r[i],u=0;u<c.length;u++)if((n=t.apply(void 0,[c,u,o,a,s+"["+u+"]"].concat(l)))instanceof Error)return n;return null}))}))}var O=x(!1,"Array"),S=L.bind(null,!1),T=x(!1,"Map"),P=x(!1,"Object"),I=x(!0,"Array"),A=L.bind(null,!0),C=x(!0,"Object"),k=Object.freeze({observableArray:O,observableArrayOf:S,observableMap:T,observableObject:P,arrayOrObservableArray:I,arrayOrObservableArrayOf:A,objectOrObservableObject:C}),D={mobxStores:C};Object.seal(D);var N={contextTypes:{get:function(){return D},set:function(e){console.warn("Mobx Injector: you are trying to attach `contextTypes` on an component decorated with `inject` (or `observer`) HOC. Please specify the contextTypes on the wrapped component instead. It is accessible through the `wrappedComponent`")},configurable:!0,enumerable:!1},isMobxInjector:{value:!0,writable:!0,configurable:!0,enumerable:!0}};function R(e,t,r){var n,o,a="inject-"+(t.displayName||t.name||t.constructor&&t.constructor.name||"Unknown");r&&(a+="-with-"+r);var d=(o=n=function(r){function n(){var e,t,r;s(this,n);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=r=u(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(o))),r.storeRef=function(e){r.wrappedInstance=e},u(r,t)}return l(n,r),c(n,[{key:"render",value:function(){var r={};for(var n in this.props)this.props.hasOwnProperty(n)&&(r[n]=this.props[n]);var o=e(this.context.mobxStores||{},r,this.context)||{};for(var a in o)r[a]=o[a];return function(e){return!(e.prototype&&e.prototype.render)}(t)||(r.ref=this.storeRef),(0,i.createElement)(t,r)}}]),n}(i.Component),n.displayName=a,o);return _(d,t),d.wrappedComponent=t,Object.defineProperties(d,N),d}function M(){var e=void 0;if("function"==typeof arguments[0])return e=arguments[0],function(t){var r=R(e,t);return r.isMobxInjector=!1,(r=K(r)).isMobxInjector=!0,r};for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e=function(e){return function(t,r){return e.forEach((function(e){if(!(e in r)){if(!(e in t))throw new Error("MobX injector: Store '"+e+"' is not available! Make sure it is provided by some Provider");r[e]=t[e]}})),r}}(t),function(r){return R(e,r,t.join("-"))}}var j=!1,F=!1,Z="undefined"!=typeof WeakMap?new WeakMap:void 0,B=new d;function G(e){if(o.findDOMNode)try{return(0,o.findDOMNode)(e)}catch(e){return null}return null}function U(e){var t=G(e);t&&Z&&Z.set(t,e),B.emit({event:"render",renderTime:e.__$mobRenderEnd-e.__$mobRenderStart,totalTime:Date.now()-e.__$mobRenderStart,component:e,node:t})}var H=new d;function z(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e[t],i=W[t],o=n?!0===r?function(){i.apply(this,arguments),n.apply(this,arguments)}:function(){n.apply(this,arguments),i.apply(this,arguments)}:i;e[t]=o}function V(e,t){if(Y(e,t))return!0;if("object"!==(void 0===e?"undefined":a(e))||null===e||"object"!==(void 0===t?"undefined":a(t))||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0;i<r.length;i++)if(!hasOwnProperty.call(t,r[i])||!Y(e[r[i]],t[r[i]]))return!1;return!0}function Y(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}var W={componentWillMount:function(){var e=this,t=this.displayName||this.name||this.constructor&&(this.constructor.displayName||this.constructor.name)||"<component>",r=this._reactInternalInstance&&this._reactInternalInstance._rootNodeID||this._reactInternalFiber&&this._reactInternalFiber._debugID,o=!1,a=!1;d.call(this,"props"),d.call(this,"state");var s=this.render.bind(this),c=null,l=!1,u=function(){l=!1;var t=void 0,r=void 0;if(c.track((function(){j&&(e.__$mobRenderStart=Date.now());try{r=n.extras.allowStateChanges(!1,s)}catch(e){t=e}j&&(e.__$mobRenderEnd=Date.now())})),t)throw H.emit(t),t;return r};function d(e){var t=this[e],r=new n.Atom("reactive "+e);Object.defineProperty(this,e,{configurable:!0,enumerable:!0,get:function(){return r.reportObserved(),t},set:function(e){a||V(t,e)?t=e:(t=e,o=!0,r.reportChanged(),o=!1)}})}this.render=function(){return(c=new n.Reaction(t+"#"+r+".render()",(function(){if(!l&&(l=!0,"function"==typeof e.componentWillReact&&e.componentWillReact(),!0!==e.__$mobxIsUnmounted)){var t=!0;try{a=!0,o||i.Component.prototype.forceUpdate.call(e),t=!1}finally{a=!1,t&&c.dispose()}}}))).reactComponent=e,u.$mobx=c,e.render=u,u()}},componentWillUnmount:function(){if(this.render.$mobx&&this.render.$mobx.dispose(),this.__$mobxIsUnmounted=!0,j){var e=G(this);e&&Z&&Z.delete(e),B.emit({event:"destroy",component:this,node:e})}},componentDidMount:function(){j&&U(this)},componentDidUpdate:function(){j&&U(this)},shouldComponentUpdate:function(e,t){return this.state!==t||!V(this.props,e)}};function K(e,t){if("string"==typeof e)throw new Error("Store names should be provided as array");if(Array.isArray(e))return F||(F=!0,console.warn('Mobx observer: Using observer to inject stores is deprecated since 4.0. Use `@inject("store1", "store2") @observer ComponentClass` or `inject("store1", "store2")(observer(componentClass))` instead of `@observer(["store1", "store2"]) ComponentClass`')),t?M.apply(null,e)(K(t)):function(t){return K(e,t)};var r,n,o=e;if(!0===o.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),!("function"!=typeof o||o.prototype&&o.prototype.render||o.isReactClass||i.Component.isPrototypeOf(o)))return K((n=r=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),c(t,[{key:"render",value:function(){return o.call(this,this.props,this.context)}}]),t}(i.Component),r.displayName=o.displayName||o.name,r.contextTypes=o.contextTypes,r.propTypes=o.propTypes,r.defaultProps=o.defaultProps,n));if(!o)throw new Error("Please pass a valid component to 'observer'");return function(e){z(e,"componentWillMount",!0),["componentDidMount","componentWillUnmount","componentDidUpdate"].forEach((function(t){z(e,t)})),e.shouldComponentUpdate||(e.shouldComponentUpdate=W.shouldComponentUpdate)}(o.prototype||o),o.isMobXReactObserver=!0,o}var $=K((function(e){var t=e.children,r=e.inject,n=e.render,o=t||n;if(void 0===o)return null;if(!r)return o();var a=M(r)(o);return i.createElement(a,null)}));$.displayName="Observer";var q,X=function(e,t,r,n,i){var o="children"===t?"render":"children";return"function"==typeof e[t]&&"function"==typeof e[o]?new Error("Invalid prop,do not use children and render in the same time in`"+r):"function"!=typeof e[t]&&"function"!=typeof e[o]?new Error("Invalid prop `"+i+"` of type `"+a(e[t])+"` supplied to `"+r+"`, expected `function`."):void 0};$.propTypes={render:X,children:X};var J={children:!0,key:!0,ref:!0};if(q=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),c(t,[{key:"render",value:function(){return i.Children.only(this.props.children)}},{key:"getChildContext",value:function(){var e={},t=this.context.mobxStores;if(t)for(var r in t)e[r]=t[r];for(var n in this.props)J[n]||"suppressChangedStoreWarning"===n||(e[n]=this.props[n]);return{mobxStores:e}}},{key:"componentWillReceiveProps",value:function(e){if(Object.keys(e).length!==Object.keys(this.props).length&&console.warn("MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children"),!e.suppressChangedStoreWarning)for(var t in e)J[t]||this.props[t]===e[t]||console.warn("MobX Provider: Provided store '"+t+"' has changed. Please avoid replacing stores as the change might not propagate to all children")}}]),t}(i.Component),q.contextTypes={mobxStores:C},q.childContextTypes={mobxStores:C.isRequired},!i.Component)throw new Error("mobx-react requires React to be available");if(!n.extras)throw new Error("mobx-react requires mobx to be available");if("function"==typeof o.unstable_batchedUpdates&&n.extras.setReactionScheduler(o.unstable_batchedUpdates),"object"===("undefined"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__?"undefined":a(__MOBX_DEVTOOLS_GLOBAL_HOOK__))){var Q={spy:n.spy,extras:n.extras},ee={renderReporter:B,componentByNodeRegistery:Z,trackComponents:function(){if("undefined"==typeof WeakMap)throw new Error("[mobx-react] tracking components is not supported in this browser.");j||(j=!0)}};__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobxReact(ee,Q)}},50265:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Atom:()=>a,BaseAtom:()=>o,IDerivationState:()=>xt,ObservableMap:()=>$e,Reaction:()=>cr,action:()=>J,asFlat:()=>gr,asMap:()=>vr,asReference:()=>fr,asStructure:()=>mr,autorun:()=>ue,autorunAsync:()=>pe,comparer:()=>le,computed:()=>Er,createTransformer:()=>Tr,default:()=>Dr,expr:()=>Or,extendObservable:()=>Ie,extendShallowObservable:()=>Ae,extras:()=>Pr,intercept:()=>Lr,isAction:()=>te,isArrayLike:()=>bt,isBoxedObservable:()=>j,isComputed:()=>wr,isModifierDescriptor:()=>Be,isObservable:()=>Te,isObservableArray:()=>N,isObservableMap:()=>Xe,isObservableObject:()=>Se,isStrictModeEnabled:()=>H,map:()=>qe,observable:()=>Fe,observe:()=>xr,reaction:()=>he,runInAction:()=>ee,spy:()=>b,toJS:()=>Sr,trace:()=>ar,transaction:()=>We,untracked:()=>er,useStrict:()=>U,when:()=>de,whyRun:()=>or});var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){function e(e){void 0===e&&(e="Atom@"+et()),this.name=e,this.isPendingUnobservation=!0,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=xt.NOT_TRACKING}return e.prototype.onBecomeUnobserved=function(){},e.prototype.reportObserved=function(){zt(this)},e.prototype.reportChanged=function(){Ut(),function(e){if(e.lowestObserverState!==xt.STALE){e.lowestObserverState=xt.STALE;for(var t=e.observers,r=t.length;r--;){var n=t[r];n.dependenciesState===xt.UP_TO_DATE&&(n.isTracing!==Lt.NONE&&Vt(n,e),n.onBecomeStale()),n.dependenciesState=xt.STALE}}}(this),Ht()},e.prototype.toString=function(){return this.name},e}(),a=function(e){function t(t,r,n){void 0===t&&(t="Atom@"+et()),void 0===r&&(r=at),void 0===n&&(n=at);var i=e.call(this,t)||this;return i.name=t,i.onBecomeObservedHandler=r,i.onBecomeUnobservedHandler=n,i.isPendingUnobservation=!1,i.isBeingTracked=!1,i}return i(t,e),t.prototype.reportObserved=function(){return Ut(),e.prototype.reportObserved.call(this),this.isBeingTracked||(this.isBeingTracked=!0,this.onBecomeObservedHandler()),Ht(),!!Tt.trackingDerivation},t.prototype.onBecomeUnobserved=function(){this.isBeingTracked=!1,this.onBecomeUnobservedHandler()},t}(o),s=yt("Atom",o);function c(e){return e.interceptors&&e.interceptors.length>0}function l(e,t){var r=e.interceptors||(e.interceptors=[]);return r.push(t),ot((function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}))}function u(e,t){var r=tr();try{var n=e.interceptors;if(n)for(var i=0,o=n.length;i<o&&(rt(!(t=n[i](t))||t.type,"Intercept handlers should return nothing or a change object"),t);i++);return t}finally{rr(r)}}function d(e){return e.changeListeners&&e.changeListeners.length>0}function p(e,t){var r=e.changeListeners||(e.changeListeners=[]);return r.push(t),ot((function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}))}function h(e,t){var r=tr(),n=e.changeListeners;if(n){for(var i=0,o=(n=n.slice()).length;i<o;i++)n[i](t);rr(r)}}function f(){return!!Tt.spyListeners.length}function m(e){if(Tt.spyListeners.length)for(var t=Tt.spyListeners,r=0,n=t.length;r<n;r++)t[r](e)}function g(e){m(dt({},e,{spyReportStart:!0}))}var v={spyReportEnd:!0};function y(e){m(e?dt({},e,v):v)}function b(e){return Tt.spyListeners.push(e),ot((function(){var t=Tt.spyListeners.indexOf(e);-1!==t&&Tt.spyListeners.splice(t,1)}))}function _(e){rt(!0!==e.__$$iterating,"Illegal state: cannot recycle array as iterator"),mt(e,"__$$iterating",!0);var t=-1;return mt(e,"next",(function(){return{done:++t>=this.length,value:t<this.length?this[t]:void 0}})),e}function E(e,t){mt(e,"function"==typeof Symbol&&Symbol.iterator||"@@iterator",t)}var w,x,L=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),O=0,S=function(){};w=S,x=Array.prototype,void 0!==Object.setPrototypeOf?Object.setPrototypeOf(w.prototype,x):void 0!==w.prototype.__proto__?w.prototype.__proto__=x:w.prototype=x,Object.isFrozen(Array)&&["constructor","push","shift","concat","pop","unshift","replace","find","findIndex","splice","reverse","sort"].forEach((function(e){Object.defineProperty(S.prototype,e,{configurable:!0,writable:!0,value:Array.prototype[e]})}));var T=function(){function e(e,t,r,n){this.array=r,this.owned=n,this.values=[],this.lastKnownLength=0,this.interceptors=null,this.changeListeners=null,this.atom=new o(e||"ObservableArray@"+et()),this.enhancer=function(r,n){return t(r,n,e+"[..]")}}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.dehanceValues=function(e){return void 0!==this.dehancer?e.map(this.dehancer):e},e.prototype.intercept=function(e){return l(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),p(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e!==t)if(e>t){for(var r=new Array(e-t),n=0;n<e-t;n++)r[n]=void 0;this.spliceWithArray(t,0,r)}else this.spliceWithArray(e,t-e)},e.prototype.updateArrayLength=function(e,t){if(e!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed. Did you use peek() to change it?");this.lastKnownLength+=t,t>0&&e+t+1>O&&k(e+t+1)},e.prototype.spliceWithArray=function(e,t,r){var n=this;Xt(this.atom);var i=this.values.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:null==t?0:Math.max(0,Math.min(t,i-e)),void 0===r&&(r=[]),c(this)){var o=u(this,{object:this.array,type:"splice",index:e,removedCount:t,added:r});if(!o)return Je;t=o.removedCount,r=o.added}var a=(r=r.map((function(e){return n.enhancer(e,void 0)}))).length-t;this.updateArrayLength(i,a);var s=this.spliceItemsIntoValues(e,t,r);return 0===t&&0===r.length||this.notifyArraySplice(e,r,s),this.dehanceValues(s)},e.prototype.spliceItemsIntoValues=function(e,t,r){if(r.length<1e4)return(n=this.values).splice.apply(n,[e,t].concat(r));var n,i=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(r,this.values.slice(e+t)),i},e.prototype.notifyArrayChildUpdate=function(e,t,r){var n=!this.owned&&f(),i=d(this),o=i||n?{object:this.array,type:"update",index:e,newValue:t,oldValue:r}:null;n&&g(o),this.atom.reportChanged(),i&&h(this,o),n&&y()},e.prototype.notifyArraySplice=function(e,t,r){var n=!this.owned&&f(),i=d(this),o=i||n?{object:this.array,type:"splice",index:e,removed:r,added:t,removedCount:r.length,addedCount:t.length}:null;n&&g(o),this.atom.reportChanged(),i&&h(this,o),n&&y()},e}(),P=function(e){function t(t,r,n,i){void 0===n&&(n="ObservableArray@"+et()),void 0===i&&(i=!1);var o=e.call(this)||this,a=new T(n,r,o,i);return mt(o,"$mobx",a),t&&t.length&&o.spliceWithArray(0,0,t),L&&Object.defineProperty(a.array,"0",I),o}return i(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.$mobx.atom.reportObserved(),Array.prototype.concat.apply(this.peek(),e.map((function(e){return N(e)?e.peek():e})))},t.prototype.replace=function(e){return this.$mobx.spliceWithArray(0,this.$mobx.values.length,e)},t.prototype.toJS=function(){return this.slice()},t.prototype.toJSON=function(){return this.toJS()},t.prototype.peek=function(){return this.$mobx.atom.reportObserved(),this.$mobx.dehanceValues(this.$mobx.values)},t.prototype.find=function(e,t,r){void 0===r&&(r=0);var n=this.findIndex.apply(this,arguments);return-1===n?void 0:this.get(n)},t.prototype.findIndex=function(e,t,r){void 0===r&&(r=0);for(var n=this.peek(),i=n.length,o=r;o<i;o++)if(e.call(t,n[o],o,this))return o;return-1},t.prototype.splice=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];switch(arguments.length){case 0:return[];case 1:return this.$mobx.spliceWithArray(e);case 2:return this.$mobx.spliceWithArray(e,t)}return this.$mobx.spliceWithArray(e,t,r)},t.prototype.spliceWithArray=function(e,t,r){return this.$mobx.spliceWithArray(e,t,r)},t.prototype.push=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.$mobx;return r.spliceWithArray(r.values.length,0,e),r.values.length},t.prototype.pop=function(){return this.splice(Math.max(this.$mobx.values.length-1,0),1)[0]},t.prototype.shift=function(){return this.splice(0,1)[0]},t.prototype.unshift=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.$mobx;return r.spliceWithArray(0,0,e),r.values.length},t.prototype.reverse=function(){var e=this.slice();return e.reverse.apply(e,arguments)},t.prototype.sort=function(e){var t=this.slice();return t.sort.apply(t,arguments)},t.prototype.remove=function(e){var t=this.$mobx.dehanceValues(this.$mobx.values).indexOf(e);return t>-1&&(this.splice(t,1),!0)},t.prototype.move=function(e,t){function r(e){if(e<0)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(r.call(this,e),r.call(this,t),e!==t){var n,i=this.$mobx.values;n=e<t?i.slice(0,e).concat(i.slice(e+1,t+1),[i[e]],i.slice(t+1)):i.slice(0,t).concat([i[e]],i.slice(t,e),i.slice(e+1)),this.replace(n)}},t.prototype.get=function(e){var t=this.$mobx;if(t){if(e<t.values.length)return t.atom.reportObserved(),t.dehanceValue(t.values[e]);console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+t.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}},t.prototype.set=function(e,t){var r=this.$mobx,n=r.values;if(e<n.length){Xt(r.atom);var i=n[e];if(c(r)){var o=u(r,{type:"update",object:this,index:e,newValue:t});if(!o)return;t=o.newValue}(t=r.enhancer(t,i))!==i&&(n[e]=t,r.notifyArrayChildUpdate(e,t,i))}else{if(e!==n.length)throw new Error("[mobx.array] Index out of bounds, "+e+" is larger than "+n.length);r.spliceWithArray(e,0,[t])}},t}(S);E(P.prototype,(function(){return _(this.slice())})),Object.defineProperty(P.prototype,"length",{enumerable:!1,configurable:!0,get:function(){return this.$mobx.getArrayLength()},set:function(e){this.$mobx.setArrayLength(e)}}),["every","filter","forEach","indexOf","join","lastIndexOf","map","reduce","reduceRight","slice","some","toString","toLocaleString"].forEach((function(e){var t=Array.prototype[e];rt("function"==typeof t,"Base function not defined on Array prototype: '"+e+"'"),ft(P.prototype,e,(function(){return t.apply(this.peek(),arguments)}))})),function(e,t){for(var r=0;r<t.length;r++)ft(e,t[r],e[t[r]])}(P.prototype,["constructor","intercept","observe","clear","concat","get","replace","toJS","toJSON","peek","find","findIndex","splice","spliceWithArray","push","pop","set","shift","unshift","reverse","sort","remove","move","toString","toLocaleString"]);var I=A(0);function A(e){return{enumerable:!1,configurable:!1,get:function(){return this.get(e)},set:function(t){this.set(e,t)}}}function C(e){Object.defineProperty(P.prototype,""+e,A(e))}function k(e){for(var t=O;t<e;t++)C(t);O=e}k(1e3);var D=yt("ObservableArrayAdministration",T);function N(e){return lt(e)&&D(e.$mobx)}var R={},M=function(e){function t(t,r,n,i){void 0===n&&(n="ObservableValue@"+et()),void 0===i&&(i=!0);var o=e.call(this,n)||this;return o.enhancer=r,o.hasUnreportedChange=!1,o.dehancer=void 0,o.value=r(t,void 0,n),i&&f()&&m({type:"create",object:o,newValue:o.value}),o}return i(t,e),t.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.prototype.set=function(e){var t=this.value;if((e=this.prepareNewValue(e))!==R){var r=f();r&&g({type:"update",object:this,newValue:e,oldValue:t}),this.setNewValue(e),r&&y()}},t.prototype.prepareNewValue=function(e){if(Xt(this),c(this)){var t=u(this,{object:this,type:"update",newValue:e});if(!t)return R;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.value!==e?e:R},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),d(this)&&h(this,{type:"update",object:this,newValue:e,oldValue:t})},t.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},t.prototype.intercept=function(e){return l(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),p(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return wt(this.get())},t}(o);M.prototype[Et()]=M.prototype.valueOf;var j=yt("ObservableValue",M),F={m001:"It is not allowed to assign new values to @action fields",m002:"`runInAction` expects a function",m003:"`runInAction` expects a function without arguments",m004:"autorun expects a function",m005:"Warning: attempted to pass an action to autorun. Actions are untracked and will not trigger on state changes. Use `reaction` or wrap only your state modification code in an action.",m006:"Warning: attempted to pass an action to autorunAsync. Actions are untracked and will not trigger on state changes. Use `reaction` or wrap only your state modification code in an action.",m007:"reaction only accepts 2 or 3 arguments. If migrating from MobX 2, please provide an options object",m008:"wrapping reaction expression in `asReference` is no longer supported, use options object instead",m009:"@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'. It looks like it was used on a property.",m010:"@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'",m011:"First argument to `computed` should be an expression. If using computed as decorator, don't pass it arguments",m012:"computed takes one or two arguments if used as function",m013:"[mobx.expr] 'expr' should only be used inside other reactive functions.",m014:"extendObservable expected 2 or more arguments",m015:"extendObservable expects an object as first argument",m016:"extendObservable should not be used on maps, use map.merge instead",m017:"all arguments of extendObservable should be objects",m018:"extending an object with another observable (object) is not supported. Please construct an explicit propertymap, using `toJS` if need. See issue #540",m019:"[mobx.isObservable] isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead.",m020:"modifiers can only be used for individual object properties",m021:"observable expects zero or one arguments",m022:"@observable can not be used on getters, use @computed instead",m024:"whyRun() can only be used if a derivation is active, or by passing an computed value / reaction explicitly. If you invoked whyRun from inside a computation; the computation is currently suspended but re-evaluating because somebody requested its value.",m025:"whyRun can only be used on reactions and computed values",m026:"`action` can only be invoked on functions",m028:"It is not allowed to set `useStrict` when a derivation is running",m029:"INTERNAL ERROR only onBecomeUnobserved shouldn't be called twice in a row",m030a:"Since strict-mode is enabled, changing observed observable values outside actions is not allowed. Please wrap the code in an `action` if this change is intended. Tried to modify: ",m030b:"Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, the render function of a React component? Tried to modify: ",m031:"Computed values are not allowed to cause side effects by changing observables that are already being observed. Tried to modify: ",m032:"* This computation is suspended (not in use by any reaction) and won't run automatically.\n\tDidn't expect this computation to be suspended at this point?\n\t  1. Make sure this computation is used by a reaction (reaction, autorun, observer).\n\t  2. Check whether you are using this computation synchronously (in the same stack as they reaction that needs it).",m033:"`observe` doesn't support the fire immediately property for observable maps.",m034:"`mobx.map` is deprecated, use `new ObservableMap` or `mobx.observable.map` instead",m035:"Cannot make the designated object observable; it is not extensible",m036:"It is not possible to get index atoms from arrays",m037:'Hi there! I\'m sorry you have just run into an exception.\nIf your debugger ends up here, know that some reaction (like the render() of an observer component, autorun or reaction)\nthrew an exception and that mobx caught it, to avoid that it brings the rest of your application down.\nThe original cause of the exception (the code that caused this reaction to run (again)), is still in the stack.\n\nHowever, more interesting is the actual stack trace of the error itself.\nHopefully the error is an instanceof Error, because in that case you can inspect the original stack of the error from where it was thrown.\nSee `error.stack` property, or press the very subtle "(...)" link you see near the console.error message that probably brought you here.\nThat stack is more interesting than the stack of this console.error itself.\n\nIf the exception you see is an exception you created yourself, make sure to use `throw new Error("Oops")` instead of `throw "Oops"`,\nbecause the javascript environment will only preserve the original stack trace in the first form.\n\nYou can also make sure the debugger pauses the next time this very same exception is thrown by enabling "Pause on caught exception".\n(Note that it might pause on many other, unrelated exception as well).\n\nIf that all doesn\'t help you out, feel free to open an issue https://github.com/mobxjs/mobx/issues!\n',m038:"Missing items in this list?\n    1. Check whether all used values are properly marked as observable (use isObservable to verify)\n    2. Make sure you didn't dereference values too early. MobX observes props, not primitives. E.g: use 'person.name' instead of 'name' in your computation.\n"};function Z(e){return F[e]}function B(e,t){rt("function"==typeof t,Z("m026")),rt("string"==typeof e&&e.length>0,"actions should have valid names, got: '"+e+"'");var r=function(){return G(e,t,this,arguments)};return r.originalFn=t,r.isMobxAction=!0,r}function G(e,t,r,n){var i=function(e,t,r,n){var i=f()&&!!e,o=0;if(i){o=Date.now();var a=n&&n.length||0,s=new Array(a);if(a>0)for(var c=0;c<a;c++)s[c]=n[c];g({type:"action",name:e,fn:t,object:r,arguments:s})}var l=tr();return Ut(),{prevDerivation:l,prevAllowStateChanges:z(!0),notifySpy:i,startTime:o}}(e,t,r,n);try{return t.apply(r,n)}finally{!function(e){V(e.prevAllowStateChanges),Ht(),rr(e.prevDerivation),e.notifySpy&&y({time:Date.now()-e.startTime})}(i)}}function U(e){rt(null===Tt.trackingDerivation,Z("m028")),Tt.strictMode=e,Tt.allowStateChanges=!e}function H(){return Tt.strictMode}function z(e){var t=Tt.allowStateChanges;return Tt.allowStateChanges=e,t}function V(e){Tt.allowStateChanges=e}function Y(e,t,r,n,i){function o(o,a,s,c,l){if(void 0===l&&(l=0),rt(i||$(arguments),"This function is a decorator, but it wasn't invoked like a decorator"),s){ht(o,"__mobxLazyInitializers")||ft(o,"__mobxLazyInitializers",o.__mobxLazyInitializers&&o.__mobxLazyInitializers.slice()||[]);var u=s.value,d=s.initializer;return o.__mobxLazyInitializers.push((function(t){e(t,a,d?d.call(t):u,c,s)})),{enumerable:n,configurable:!0,get:function(){return!0!==this.__mobxDidRunLazyInitializers&&K(this),t.call(this,a)},set:function(e){!0!==this.__mobxDidRunLazyInitializers&&K(this),r.call(this,a,e)}}}var p={enumerable:n,configurable:!0,get:function(){return this.__mobxInitializedProps&&!0===this.__mobxInitializedProps[a]||W(this,a,void 0,e,c,s),t.call(this,a)},set:function(t){this.__mobxInitializedProps&&!0===this.__mobxInitializedProps[a]?r.call(this,a,t):W(this,a,t,e,c,s)}};return(arguments.length<3||5===arguments.length&&l<3)&&Object.defineProperty(o,a,p),p}return i?function(){if($(arguments))return o.apply(null,arguments);var e=arguments,t=arguments.length;return function(r,n,i){return o(r,n,i,e,t)}}:o}function W(e,t,r,n,i,o){ht(e,"__mobxInitializedProps")||ft(e,"__mobxInitializedProps",{}),e.__mobxInitializedProps[t]=!0,n(e,t,r,i,o)}function K(e){!0!==e.__mobxDidRunLazyInitializers&&e.__mobxLazyInitializers&&(ft(e,"__mobxDidRunLazyInitializers",!0),e.__mobxDidRunLazyInitializers&&e.__mobxLazyInitializers.forEach((function(t){return t(e)})))}function $(e){return(2===e.length||3===e.length)&&"string"==typeof e[1]}var q=Y((function(e,t,r,n,i){var o=n&&1===n.length?n[0]:r.name||t||"<unnamed action>";ft(e,t,J(o,r))}),(function(e){return this[e]}),(function(){rt(!1,Z("m001"))}),!1,!0),X=Y((function(e,t,r){re(e,t,r)}),(function(e){return this[e]}),(function(){rt(!1,Z("m001"))}),!1,!1),J=function(e,t,r,n){return 1===arguments.length&&"function"==typeof e?B(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof t?B(e,t):1===arguments.length&&"string"==typeof e?Q(e):Q(t).apply(null,arguments)};function Q(e){return function(t,r,n){if(n&&"function"==typeof n.value)return n.value=B(e,n.value),n.enumerable=!1,n.configurable=!0,n;if(void 0!==n&&void 0!==n.get)throw new Error("[mobx] action is not expected to be used with getters");return q(e).apply(this,arguments)}}function ee(e,t,r){var n="string"==typeof e?e:e.name||"<unnamed action>",i="function"==typeof e?e:t,o="function"==typeof e?t:r;return rt("function"==typeof i,Z("m002")),rt(0===i.length,Z("m003")),rt("string"==typeof n&&n.length>0,"actions should have valid names, got: '"+n+"'"),G(n,i,o,void 0)}function te(e){return"function"==typeof e&&!0===e.isMobxAction}function re(e,t,r){var n=function(){return G(t,r,e,arguments)};n.isMobxAction=!0,ft(e,t,n)}function ne(e,t){return ie(e,t)}function ie(e,t,r,n){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&function(e,t,r,n){e=ae(e),t=ae(t);var i=oe.call(e);if(i!==oe.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t)}var o="[object Array]"===i;if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!("function"==typeof a&&a instanceof a&&"function"==typeof s&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];for(var c=(r=r||[]).length;c--;)if(r[c]===e)return n[c]===t;if(r.push(e),n.push(t),o){if((c=e.length)!==t.length)return!1;for(;c--;)if(!ie(e[c],t[c],r,n))return!1}else{var l,u=Object.keys(e);if(c=u.length,Object.keys(t).length!==c)return!1;for(;c--;)if(!se(t,l=u[c])||!ie(e[l],t[l],r,n))return!1}return r.pop(),n.pop(),!0}(e,t,r,n)}J.bound=function(e,t,r){if("function"==typeof e){var n=B("<not yet bound action>",e);return n.autoBind=!0,n}return X.apply(null,arguments)};var oe=Object.prototype.toString;function ae(e){return N(e)?e.peek():Xe(e)?e.entries():_t(e)?function(e){for(var t=[];;){var r=e.next();if(r.done)break;t.push(r.value)}return t}(e.entries()):e}function se(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ce(e,t){return e===t}var le={identity:ce,structural:function(e,t){return ne(e,t)},default:function(e,t){return function(e,t){return"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}(e,t)||ce(e,t)}};function ue(e,t,r){var n,i,o;"string"==typeof e?(n=e,i=t,o=r):(n=e.name||"Autorun@"+et(),i=e,o=t),rt("function"==typeof i,Z("m004")),rt(!1===te(i),Z("m005")),o&&(i=i.bind(o));var a=new cr(n,(function(){this.track(s)}));function s(){i(a)}return a.schedule(),a.getDisposer()}function de(e,t,r,n){var i,o,a,s;return"string"==typeof e?(i=e,o=t,a=r,s=n):(i="When@"+et(),o=e,a=t,s=r),ue(i,(function(e){if(o.call(s)){e.dispose();var t=tr();a.call(s),rr(t)}}))}function pe(e,t,r,n){var i,o,a,s;"string"==typeof e?(i=e,o=t,a=r,s=n):(i=e.name||"AutorunAsync@"+et(),o=e,a=t,s=r),rt(!1===te(o),Z("m006")),void 0===a&&(a=1),s&&(o=o.bind(s));var c=!1,l=new cr(i,(function(){c||(c=!0,setTimeout((function(){c=!1,l.isDisposed||l.track(u)}),a))}));function u(){o(l)}return l.schedule(),l.getDisposer()}function he(e,t,r){var n;arguments.length>3&&tt(Z("m007")),Be(e)&&tt(Z("m008")),(n="object"==typeof r?r:{}).name=n.name||e.name||t.name||"Reaction@"+et(),n.fireImmediately=!0===r||!0===n.fireImmediately,n.delay=n.delay||0,n.compareStructural=n.compareStructural||n.struct||!1,t=J(n.name,n.context?t.bind(n.context):t),n.context&&(e=e.bind(n.context));var i,o=!0,a=!1,s=n.equals?n.equals:n.compareStructural||n.struct?le.structural:le.default,c=new cr(n.name,(function(){o||n.delay<1?l():a||(a=!0,setTimeout((function(){a=!1,l()}),n.delay))}));function l(){if(!c.isDisposed){var r=!1;c.track((function(){var t=e(c);r=o||!s(i,t),i=t})),o&&n.fireImmediately&&t(i,c),o||!0!==r||t(i,c),o&&(o=!1)}}return c.schedule(),c.getDisposer()}var fe=function(){function e(e,t,r,n,i){this.derivation=e,this.scope=t,this.equals=r,this.dependenciesState=xt.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=xt.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+et(),this.value=new Wt(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Lt.NONE,this.name=n||"ComputedValue@"+et(),i&&(this.setter=B(n+"-setter",i))}return e.prototype.onBecomeStale=function(){!function(e){if(e.lowestObserverState===xt.UP_TO_DATE){e.lowestObserverState=xt.POSSIBLY_STALE;for(var t=e.observers,r=t.length;r--;){var n=t[r];n.dependenciesState===xt.UP_TO_DATE&&(n.dependenciesState=xt.POSSIBLY_STALE,n.isTracing!==Lt.NONE&&Vt(n,e),n.onBecomeStale())}}}(this)},e.prototype.onBecomeUnobserved=function(){Qt(this),this.value=void 0},e.prototype.get=function(){rt(!this.isComputing,"Cycle detected in computation "+this.name,this.derivation),0===Tt.inBatch?(Ut(),$t(this)&&(this.isTracing!==Lt.NONE&&console.log("[mobx.trace] '"+this.name+"' is being read outside a reactive context and doing a full recompute"),this.value=this.computeValue(!1)),Ht()):(zt(this),$t(this)&&this.trackAndCompute()&&function(e){if(e.lowestObserverState!==xt.STALE){e.lowestObserverState=xt.STALE;for(var t=e.observers,r=t.length;r--;){var n=t[r];n.dependenciesState===xt.POSSIBLY_STALE?n.dependenciesState=xt.STALE:n.dependenciesState===xt.UP_TO_DATE&&(e.lowestObserverState=xt.UP_TO_DATE)}}}(this));var e=this.value;if(Kt(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(Kt(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){rt(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else rt(!1,"[ComputedValue '"+this.name+"'] It is not possible to assign a new value to a computed value.")},e.prototype.trackAndCompute=function(){f()&&m({object:this.scope,type:"compute",fn:this.derivation});var e=this.value,t=this.dependenciesState===xt.NOT_TRACKING,r=this.value=this.computeValue(!0);return t||Kt(e)||Kt(r)||!this.equals(e,r)},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,Tt.computationDepth++,e)t=Jt(this,this.derivation,this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new Wt(e)}return Tt.computationDepth--,this.isComputing=!1,t},e.prototype.observe=function(e,t){var r=this,n=!0,i=void 0;return ue((function(){var o=r.get();if(!n||t){var a=tr();e({type:"update",object:r,newValue:o,oldValue:i}),rr(a)}n=!1,i=o}))},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return wt(this.get())},e.prototype.whyRun=function(){var e=Boolean(Tt.trackingDerivation),t=st(this.isComputing?this.newObserving:this.observing).map((function(e){return e.name})),r=st(Ft(this).map((function(e){return e.name})));return"\nWhyRun? computation '"+this.name+"':\n * Running because: "+(e?"[active] the value of this computation is needed by a reaction":this.isComputing?"[get] The value of this computed was requested outside a reaction":"[idle] not running at the moment")+"\n"+(this.dependenciesState===xt.NOT_TRACKING?Z("m032"):" * This computation will re-run if any of the following observables changes:\n    "+ct(t)+"\n    "+(this.isComputing&&e?" (... or any observable accessed during the remainder of the current run)":"")+"\n    "+Z("m038")+"\n\n  * If the outcome of this computation changes, the following observers will be re-run:\n    "+ct(r)+"\n")},e}();fe.prototype[Et()]=fe.prototype.valueOf;var me=yt("ComputedValue",fe),ge=function(){function e(e,t){this.target=e,this.name=t,this.values={},this.changeListeners=null,this.interceptors=null}return e.prototype.observe=function(e,t){return rt(!0!==t,"`observe` doesn't support the fire immediately property for observable objects."),p(this,e)},e.prototype.intercept=function(e){return l(this,e)},e}();function ve(e,t){if(Se(e)&&e.hasOwnProperty("$mobx"))return e.$mobx;rt(Object.isExtensible(e),Z("m035")),ut(e)||(t=(e.constructor.name||"ObservableObject")+"@"+et()),t||(t="ObservableObject@"+et());var r=new ge(e,t);return mt(e,"$mobx",r),r}function ye(e,t,r,n){if(e.values[t]&&!me(e.values[t]))return rt("value"in r,"The property "+t+" in "+e.name+" is already observable, cannot redefine it as computed property"),void(e.target[t]=r.value);if("value"in r)if(Be(r.value)){var i=r.value;be(e,t,i.initialValue,i.enhancer)}else te(r.value)&&!0===r.value.autoBind?re(e.target,t,r.value.originalFn):me(r.value)?function(e,t,r){var n=e.name+"."+t;r.name=n,r.scope||(r.scope=e.target),e.values[t]=r,Object.defineProperty(e.target,t,xe(t))}(e,t,r.value):be(e,t,r.value,n);else _e(e,t,r.get,r.set,le.default,!0)}function be(e,t,r,n){if(vt(e.target,t),c(e)){var i=u(e,{object:e.target,name:t,type:"add",newValue:r});if(!i)return;r=i.newValue}r=(e.values[t]=new M(r,n,e.name+"."+t,!1)).value,Object.defineProperty(e.target,t,function(e){return Ee[e]||(Ee[e]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.values[e].get()},set:function(t){Le(this,e,t)}})}(t)),function(e,t,r,n){var i=d(e),o=f(),a=i||o?{type:"add",object:t,name:r,newValue:n}:null;o&&g(a),i&&h(e,a),o&&y()}(e,e.target,t,r)}function _e(e,t,r,n,i,o){o&&vt(e.target,t),e.values[t]=new fe(r,e.target,i,e.name+"."+t,n),o&&Object.defineProperty(e.target,t,xe(t))}var Ee={},we={};function xe(e){return we[e]||(we[e]={configurable:!0,enumerable:!1,get:function(){return this.$mobx.values[e].get()},set:function(t){return this.$mobx.values[e].set(t)}})}function Le(e,t,r){var n=e.$mobx,i=n.values[t];if(c(n)){if(!(s=u(n,{type:"update",object:e,name:t,newValue:r})))return;r=s.newValue}if((r=i.prepareNewValue(r))!==R){var o=d(n),a=f(),s=o||a?{type:"update",object:e,oldValue:i.value,name:t,newValue:r}:null;a&&g(s),i.setNewValue(r),o&&h(n,s),a&&y()}}var Oe=yt("ObservableObjectAdministration",ge);function Se(e){return!!lt(e)&&(K(e),Oe(e.$mobx))}function Te(e,t){if(null==e)return!1;if(void 0!==t){if(N(e)||Xe(e))throw new Error(Z("m019"));if(Se(e)){var r=e.$mobx;return r.values&&!!r.values[t]}return!1}return Se(e)||!!e.$mobx||s(e)||hr(e)||me(e)}function Pe(e){return rt(!!e,":("),Y((function(t,r,n,i,o){vt(t,r),rt(!o||!o.get,Z("m022")),be(ve(t,void 0),r,n,e)}),(function(e){var t=this.$mobx.values[e];if(void 0!==t)return t.get()}),(function(e,t){Le(this,e,t)}),!0,!1)}function Ie(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Ce(e,Ue,t)}function Ae(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Ce(e,ze,t)}function Ce(e,t,r){rt(arguments.length>=2,Z("m014")),rt("object"==typeof e,Z("m015")),rt(!Xe(e),Z("m016")),r.forEach((function(e){rt("object"==typeof e,Z("m017")),rt(!Te(e),Z("m018"))}));for(var n=ve(e),i={},o=r.length-1;o>=0;o--){var a=r[o];for(var s in a)if(!0!==i[s]&&ht(a,s)){if(i[s]=!0,e===a&&!gt(e,s))continue;ye(n,s,Object.getOwnPropertyDescriptor(a,s),t)}}return e}var ke=Pe(Ue),De=Pe(He),Ne=Pe(ze),Re=Pe(Ve),Me=Pe(Ye),je={box:function(e,t){return arguments.length>2&&Ze("box"),new M(e,Ue,t)},shallowBox:function(e,t){return arguments.length>2&&Ze("shallowBox"),new M(e,ze,t)},array:function(e,t){return arguments.length>2&&Ze("array"),new P(e,Ue,t)},shallowArray:function(e,t){return arguments.length>2&&Ze("shallowArray"),new P(e,ze,t)},map:function(e,t){return arguments.length>2&&Ze("map"),new $e(e,Ue,t)},shallowMap:function(e,t){return arguments.length>2&&Ze("shallowMap"),new $e(e,ze,t)},object:function(e,t){arguments.length>2&&Ze("object");var r={};return ve(r,t),Ie(r,e),r},shallowObject:function(e,t){arguments.length>2&&Ze("shallowObject");var r={};return ve(r,t),Ae(r,e),r},ref:function(){return arguments.length<2?Ge(ze,arguments[0]):Ne.apply(null,arguments)},shallow:function(){return arguments.length<2?Ge(He,arguments[0]):De.apply(null,arguments)},deep:function(){return arguments.length<2?Ge(Ue,arguments[0]):ke.apply(null,arguments)},struct:function(){return arguments.length<2?Ge(Ve,arguments[0]):Re.apply(null,arguments)}},Fe=function(e){if(void 0===e&&(e=void 0),"string"==typeof arguments[1])return ke.apply(null,arguments);if(rt(arguments.length<=1,Z("m021")),rt(!Be(e),Z("m020")),Te(e))return e;var t=Ue(e,0,void 0);return t!==e?t:Fe.box(e)};function Ze(e){tt("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}function Be(e){return"object"==typeof e&&null!==e&&!0===e.isMobxModifierDescriptor}function Ge(e,t){return rt(!Be(t),"Modifiers cannot be nested"),{isMobxModifierDescriptor:!0,initialValue:t,enhancer:e}}function Ue(e,t,r){return Be(e)&&tt("You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it"),Te(e)?e:Array.isArray(e)?Fe.array(e,r):ut(e)?Fe.object(e,r):_t(e)?Fe.map(e,r):e}function He(e,t,r){return Be(e)&&tt("You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it"),null==e||Se(e)||N(e)||Xe(e)?e:Array.isArray(e)?Fe.shallowArray(e,r):ut(e)?Fe.shallowObject(e,r):_t(e)?Fe.shallowMap(e,r):tt("The shallow modifier / decorator can only used in combination with arrays, objects and maps")}function ze(e){return e}function Ve(e,t,r){if(ne(e,t))return t;if(Te(e))return e;if(Array.isArray(e))return new P(e,Ve,r);if(_t(e))return new $e(e,Ve,r);if(ut(e)){var n={};return ve(n,r),Ce(n,Ve,[e]),n}return e}function Ye(e,t,r){return ne(e,t)?t:e}function We(e,t){void 0===t&&(t=void 0),Ut();try{return e.apply(t)}finally{Ht()}}Object.keys(je).forEach((function(e){return Fe[e]=je[e]})),Fe.deep.struct=Fe.struct,Fe.ref.struct=function(){return arguments.length<2?Ge(Ye,arguments[0]):Me.apply(null,arguments)};var Ke={},$e=function(){function e(e,t,r){void 0===t&&(t=Ue),void 0===r&&(r="ObservableMap@"+et()),this.enhancer=t,this.name=r,this.$mobx=Ke,this._data=Object.create(null),this._hasMap=Object.create(null),this._keys=new P(void 0,ze,this.name+".keys()",!0),this.interceptors=null,this.changeListeners=null,this.dehancer=void 0,this.merge(e)}return e.prototype._has=function(e){return void 0!==this._data[e]},e.prototype.has=function(e){return!!this.isValidKey(e)&&(e=""+e,this._hasMap[e]?this._hasMap[e].get():this._updateHasMapEntry(e,!1).get())},e.prototype.set=function(e,t){this.assertValidKey(e),e=""+e;var r=this._has(e);if(c(this)){var n=u(this,{type:r?"update":"add",object:this,newValue:t,name:e});if(!n)return this;t=n.newValue}return r?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if(this.assertValidKey(e),e=""+e,c(this)&&!(i=u(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var r=f(),n=d(this),i=n||r?{type:"delete",object:this,oldValue:this._data[e].value,name:e}:null;return r&&g(i),We((function(){t._keys.remove(e),t._updateHasMapEntry(e,!1),t._data[e].setNewValue(void 0),t._data[e]=void 0})),n&&h(this,i),r&&y(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var r=this._hasMap[e];return r?r.setNewValue(t):r=this._hasMap[e]=new M(t,ze,this.name+"."+e+"?",!1),r},e.prototype._updateValue=function(e,t){var r=this._data[e];if((t=r.prepareNewValue(t))!==R){var n=f(),i=d(this),o=i||n?{type:"update",object:this,oldValue:r.value,name:e,newValue:t}:null;n&&g(o),r.setNewValue(t),i&&h(this,o),n&&y()}},e.prototype._addValue=function(e,t){var r=this;We((function(){var n=r._data[e]=new M(t,r.enhancer,r.name+"."+e,!1);t=n.value,r._updateHasMapEntry(e,!0),r._keys.push(e)}));var n=f(),i=d(this),o=i||n?{type:"add",object:this,name:e,newValue:t}:null;n&&g(o),i&&h(this,o),n&&y()},e.prototype.get=function(e){return e=""+e,this.has(e)?this.dehanceValue(this._data[e].get()):this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.keys=function(){return _(this._keys.slice())},e.prototype.values=function(){return _(this._keys.map(this.get,this))},e.prototype.entries=function(){var e=this;return _(this._keys.map((function(t){return[t,e.get(t)]})))},e.prototype.forEach=function(e,t){var r=this;this.keys().forEach((function(n){return e.call(t,r.get(n),n,r)}))},e.prototype.merge=function(e){var t=this;return Xe(e)&&(e=e.toJS()),We((function(){ut(e)?Object.keys(e).forEach((function(r){return t.set(r,e[r])})):Array.isArray(e)?e.forEach((function(e){var r=e[0],n=e[1];return t.set(r,n)})):_t(e)?e.forEach((function(e,r){return t.set(r,e)})):null!=e&&tt("Cannot initialize map from "+e)})),this},e.prototype.clear=function(){var e=this;We((function(){er((function(){e.keys().forEach(e.delete,e)}))}))},e.prototype.replace=function(e){var t=this;return We((function(){var r,n=ut(r=e)?Object.keys(r):Array.isArray(r)?r.map((function(e){return e[0]})):_t(r)?Array.from(r.keys()):Xe(r)?r.keys():tt("Cannot get keys from "+r);t.keys().filter((function(e){return-1===n.indexOf(e)})).forEach((function(e){return t.delete(e)})),t.merge(e)})),this},Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.toJS=function(){var e=this,t={};return this.keys().forEach((function(r){return t[r]=e.get(r)})),t},e.prototype.toJSON=function(){return this.toJS()},e.prototype.isValidKey=function(e){return null!=e&&("string"==typeof e||"number"==typeof e||"boolean"==typeof e)},e.prototype.assertValidKey=function(e){if(!this.isValidKey(e))throw new Error("[mobx.map] Invalid key: '"+e+"', only strings, numbers and booleans are accepted as key in observable maps.")},e.prototype.toString=function(){var e=this;return this.name+"[{ "+this.keys().map((function(t){return t+": "+e.get(t)})).join(", ")+" }]"},e.prototype.observe=function(e,t){return rt(!0!==t,Z("m033")),p(this,e)},e.prototype.intercept=function(e){return l(this,e)},e}();function qe(e){return it("`mobx.map` is deprecated, use `new ObservableMap` or `mobx.observable.map` instead"),Fe.map(e)}E($e.prototype,(function(){return this.entries()}));var Xe=yt("ObservableMap",$e),Je=[];function Qe(){return"undefined"!=typeof window?window:r.g}function et(){return++Tt.mobxGuid}function tt(e,t){throw rt(!1,e,t),"X"}function rt(e,t,r){if(!e)throw new Error("[mobx] Invariant failed: "+t+(r?" in '"+r+"'":""))}Object.freeze(Je);var nt=[];function it(e){return-1===nt.indexOf(e)&&(nt.push(e),console.error("[mobx] Deprecated: "+e),!0)}function ot(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var at=function(){};function st(e){var t=[];return e.forEach((function(e){-1===t.indexOf(e)&&t.push(e)})),t}function ct(e,t,r){return void 0===t&&(t=100),void 0===r&&(r=" - "),e?e.slice(0,t).join(r)+(e.length>t?" (... and "+(e.length-t)+"more)":""):""}function lt(e){return null!==e&&"object"==typeof e}function ut(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function dt(){for(var e=arguments[0],t=1,r=arguments.length;t<r;t++){var n=arguments[t];for(var i in n)ht(n,i)&&(e[i]=n[i])}return e}var pt=Object.prototype.hasOwnProperty;function ht(e,t){return pt.call(e,t)}function ft(e,t,r){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:r})}function mt(e,t,r){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:r})}function gt(e,t){var r=Object.getOwnPropertyDescriptor(e,t);return!r||!1!==r.configurable&&!1!==r.writable}function vt(e,t){rt(gt(e,t),"Cannot make property '"+t+"' observable, it is not configurable and writable in the target object")}function yt(e,t){var r="isMobX"+e;return t.prototype[r]=!0,function(e){return lt(e)&&!0===e[r]}}function bt(e){return Array.isArray(e)||N(e)}function _t(e){return void 0!==Qe().Map&&e instanceof Qe().Map}function Et(){return"function"==typeof Symbol&&Symbol.toPrimitive||"@@toPrimitive"}function wt(e){return null===e?null:"object"==typeof e?""+e:e}var xt,Lt,Ot=["mobxGuid","resetId","spyListeners","strictMode","runId"],St=function(){this.version=5,this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.strictMode=!1,this.resetId=0,this.spyListeners=[],this.globalReactionErrorHandlers=[]},Tt=new St,Pt=!1,It=!1,At=!1,Ct=Qe();function kt(e,t){if("object"==typeof e&&null!==e){if(N(e))return rt(void 0===t,Z("m036")),e.$mobx.atom;if(Xe(e)){var r=e;return void 0===t?kt(r._keys):(rt(!!(n=r._data[t]||r._hasMap[t]),"the entry '"+t+"' does not exist in the observable map '"+Nt(e)+"'"),n)}var n;if(K(e),t&&!e.$mobx&&e[t],Se(e))return t?(rt(!!(n=e.$mobx.values[t]),"no observable property '"+t+"' found on the observable object '"+Nt(e)+"'"),n):tt("please specify a property");if(s(e)||me(e)||hr(e))return e}else if("function"==typeof e&&hr(e.$mobx))return e.$mobx;return tt("Cannot obtain atom from "+e)}function Dt(e,t){return rt(e,"Expecting some object"),void 0!==t?Dt(kt(e,t)):s(e)||me(e)||hr(e)||Xe(e)?e:(K(e),e.$mobx?e.$mobx:void rt(!1,"Cannot obtain administration from "+e))}function Nt(e,t){return(void 0!==t?kt(e,t):Se(e)||Xe(e)?Dt(e):kt(e)).name}function Rt(e,t){return Mt(kt(e,t))}function Mt(e){var t={name:e.name};return e.observing&&e.observing.length>0&&(t.dependencies=st(e.observing).map(Mt)),t}function jt(e){var t={name:e.name};return function(e){return e.observers&&e.observers.length>0}(e)&&(t.observers=Ft(e).map(jt)),t}function Ft(e){return e.observers}function Zt(e,t){var r=e.observers.length;r&&(e.observersIndexes[t.__mapid]=r),e.observers[r]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Bt(e,t){if(1===e.observers.length)e.observers.length=0,Gt(e);else{var r=e.observers,n=e.observersIndexes,i=r.pop();if(i!==t){var o=n[t.__mapid]||0;o?n[i.__mapid]=o:delete n[i.__mapid],r[o]=i}delete n[t.__mapid]}}function Gt(e){e.isPendingUnobservation||(e.isPendingUnobservation=!0,Tt.pendingUnobservations.push(e))}function Ut(){Tt.inBatch++}function Ht(){if(0==--Tt.inBatch){dr();for(var e=Tt.pendingUnobservations,t=0;t<e.length;t++){var r=e[t];r.isPendingUnobservation=!1,0===r.observers.length&&r.onBecomeUnobserved()}Tt.pendingUnobservations=[]}}function zt(e){var t=Tt.trackingDerivation;null!==t?t.runId!==e.lastAccessedBy&&(e.lastAccessedBy=t.runId,t.newObserving[t.unboundDepsCount++]=e):0===e.observers.length&&Gt(e)}function Vt(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===Lt.BREAK){var r=[];Yt(Rt(e),r,1),new Function("debugger;\n/*\nTracing '"+e.name+"'\n\nYou are entering this break point because derivation '"+e.name+"' is being traced and '"+t.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof fe?e.derivation.toString():"")+"\n\nThe dependencies for this derivation are:\n\n"+r.join("\n")+"\n*/\n    ")()}}function Yt(e,t,r){t.length>=1e3?t.push("(and many more)"):(t.push(""+new Array(r).join("\t")+e.name),e.dependencies&&e.dependencies.forEach((function(e){return Yt(e,t,r+1)})))}Ct.__mobxInstanceCount?(Ct.__mobxInstanceCount++,setTimeout((function(){Pt||It||At||(At=!0,console.warn("[mobx] Warning: there are multiple mobx instances active. This might lead to unexpected results. See https://github.com/mobxjs/mobx/issues/1082 for details."))}))):Ct.__mobxInstanceCount=1,function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"}(xt||(xt={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Lt||(Lt={}));var Wt=function(e){this.cause=e};function Kt(e){return e instanceof Wt}function $t(e){switch(e.dependenciesState){case xt.UP_TO_DATE:return!1;case xt.NOT_TRACKING:case xt.STALE:return!0;case xt.POSSIBLY_STALE:for(var t=tr(),r=e.observing,n=r.length,i=0;i<n;i++){var o=r[i];if(me(o)){try{o.get()}catch(e){return rr(t),!0}if(e.dependenciesState===xt.STALE)return rr(t),!0}}return nr(e),rr(t),!1}}function qt(){return null!==Tt.trackingDerivation}function Xt(e){var t=e.observers.length>0;Tt.computationDepth>0&&t&&tt(Z("m031")+e.name),!Tt.allowStateChanges&&t&&tt(Z(Tt.strictMode?"m030a":"m030b")+e.name)}function Jt(e,t,r){nr(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++Tt.runId;var n,i=Tt.trackingDerivation;Tt.trackingDerivation=e;try{n=t.call(r)}catch(e){n=new Wt(e)}return Tt.trackingDerivation=i,function(e){for(var t=e.observing,r=e.observing=e.newObserving,n=xt.UP_TO_DATE,i=0,o=e.unboundDepsCount,a=0;a<o;a++)0===(s=r[a]).diffValue&&(s.diffValue=1,i!==a&&(r[i]=s),i++),s.dependenciesState>n&&(n=s.dependenciesState);for(r.length=i,e.newObserving=null,o=t.length;o--;)0===(s=t[o]).diffValue&&Bt(s,e),s.diffValue=0;for(;i--;){var s;1===(s=r[i]).diffValue&&(s.diffValue=0,Zt(s,e))}n!==xt.UP_TO_DATE&&(e.dependenciesState=n,e.onBecomeStale())}(e),n}function Qt(e){var t=e.observing;e.observing=[];for(var r=t.length;r--;)Bt(t[r],e);e.dependenciesState=xt.NOT_TRACKING}function er(e){var t=tr(),r=e();return rr(t),r}function tr(){var e=Tt.trackingDerivation;return Tt.trackingDerivation=null,e}function rr(e){Tt.trackingDerivation=e}function nr(e){if(e.dependenciesState!==xt.UP_TO_DATE){e.dependenciesState=xt.UP_TO_DATE;for(var t=e.observing,r=t.length;r--;)t[r].lowestObserverState=xt.UP_TO_DATE}}function ir(e){return console.log(e),e}function or(e,t){return it("`whyRun` is deprecated in favor of `trace`"),(e=sr(arguments))?me(e)||hr(e)?ir(e.whyRun()):tt(Z("m025")):ir(Z("m024"))}function ar(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=!1;"boolean"==typeof e[e.length-1]&&(r=e.pop());var n=sr(e);if(!n)return tt("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");n.isTracing===Lt.NONE&&console.log("[mobx.trace] '"+n.name+"' tracing enabled"),n.isTracing=r?Lt.BREAK:Lt.LOG}function sr(e){switch(e.length){case 0:return Tt.trackingDerivation;case 1:return kt(e[0]);case 2:return kt(e[0],e[1])}}var cr=function(){function e(e,t){void 0===e&&(e="Reaction@"+et()),this.name=e,this.onInvalidate=t,this.observing=[],this.newObserving=[],this.dependenciesState=xt.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+et(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Lt.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Tt.pendingReactions.push(this),dr())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){this.isDisposed||(Ut(),this._isScheduled=!1,$t(this)&&(this._isTrackPending=!0,this.onInvalidate(),this._isTrackPending&&f()&&m({object:this,type:"scheduled-reaction"})),Ht())},e.prototype.track=function(e){Ut();var t,r=f();r&&(t=Date.now(),g({object:this,type:"reaction",fn:e})),this._isRunning=!0;var n=Jt(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&Qt(this),Kt(n)&&this.reportExceptionInDerivation(n.cause),r&&y({time:Date.now()-t}),Ht()},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{var r="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this,n=Z("m037");console.error(r||n,e),f()&&m({type:"error",message:r,error:e,object:this}),Tt.globalReactionErrorHandlers.forEach((function(r){return r(e,t)}))}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Ut(),Qt(this),Ht()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e.onError=lr,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.whyRun=function(){var e=st(this._isRunning?this.newObserving:this.observing).map((function(e){return e.name}));return"\nWhyRun? reaction '"+this.name+"':\n * Status: ["+(this.isDisposed?"stopped":this._isRunning?"running":this.isScheduled()?"scheduled":"idle")+"]\n * This reaction will re-run if any of the following observables changes:\n    "+ct(e)+"\n    "+(this._isRunning?" (... or any observable accessed during the remainder of the current run)":"")+"\n\t"+Z("m038")+"\n"},e.prototype.trace=function(e){void 0===e&&(e=!1),ar(this,e)},e}();function lr(e){rt(this&&this.$mobx&&hr(this.$mobx),"Invalid `this`"),rt(!this.$mobx.errorHandler,"Only one onErrorHandler can be registered"),this.$mobx.errorHandler=e}var ur=function(e){return e()};function dr(){Tt.inBatch>0||Tt.isRunningReactions||ur(pr)}function pr(){Tt.isRunningReactions=!0;for(var e=Tt.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var r=e.splice(0),n=0,i=r.length;n<i;n++)r[n].runReaction()}Tt.isRunningReactions=!1}var hr=yt("Reaction",cr);function fr(e){return it("asReference is deprecated, use observable.ref instead"),Fe.ref(e)}function mr(e){return it("asStructure is deprecated. Use observable.struct, computed.struct or reaction options instead."),Fe.struct(e)}function gr(e){return it("asFlat is deprecated, use observable.shallow instead"),Fe.shallow(e)}function vr(e){return it("asMap is deprecated, use observable.map or observable.shallowMap instead"),Fe.map(e||{})}function yr(e){return Y((function(t,r,n,i,o){rt(void 0!==o,Z("m009")),rt("function"==typeof o.get,Z("m010")),_e(ve(t,""),r,o.get,o.set,e,!1)}),(function(e){var t=this.$mobx.values[e];if(void 0!==t)return t.get()}),(function(e,t){this.$mobx.values[e].set(t)}),!1,!1)}var br=yr(le.default),_r=yr(le.structural),Er=function(e,t,r){if("string"==typeof t)return br.apply(null,arguments);rt("function"==typeof e,Z("m011")),rt(arguments.length<3,Z("m012"));var n="object"==typeof t?t:{};n.setter="function"==typeof t?t:n.setter;var i=n.equals?n.equals:n.compareStructural||n.struct?le.structural:le.default;return new fe(e,n.context,i,n.name||e.name||"",n.setter)};function wr(e,t){if(null==e)return!1;if(void 0!==t){if(!1===Se(e))return!1;if(!e.$mobx.values[t])return!1;var r=kt(e,t);return me(r)}return me(e)}function xr(e,t,r,n){return"function"==typeof r?function(e,t,r,n){return Dt(e,t).observe(r,n)}(e,t,r,n):function(e,t,r){return Dt(e).observe(t,r)}(e,t,r)}function Lr(e,t,r){return"function"==typeof r?function(e,t,r){return Dt(e,t).intercept(r)}(e,t,r):function(e,t){return Dt(e).intercept(t)}(e,t)}function Or(e,t){return qt()||console.warn(Z("m013")),Er(e,{context:t}).get()}function Sr(e,t,r){function n(n){return t&&r.push([e,n]),n}if(void 0===t&&(t=!0),void 0===r&&(r=[]),Te(e)){if(t&&null===r&&(r=[]),t&&null!==e&&"object"==typeof e)for(var i=0,o=r.length;i<o;i++)if(r[i][0]===e)return r[i][1];if(N(e)){var a=n([]),s=e.map((function(e){return Sr(e,t,r)}));for(a.length=s.length,i=0,o=s.length;i<o;i++)a[i]=s[i];return a}if(Se(e)){for(var c in a=n({}),e)a[c]=Sr(e[c],t,r);return a}if(Xe(e)){var l=n({});return e.forEach((function(e,n){return l[n]=Sr(e,t,r)})),l}if(j(e))return Sr(e.get(),t,r)}return e}function Tr(e,t){rt("function"==typeof e&&e.length<2,"createTransformer expects a function that accepts one argument");var r={},n=Tt.resetId,o=function(n){function o(t,r){var i=n.call(this,(function(){return e(r)}),void 0,le.default,"Transformer-"+e.name+"-"+t,void 0)||this;return i.sourceIdentifier=t,i.sourceObject=r,i}return i(o,n),o.prototype.onBecomeUnobserved=function(){var e=this.value;n.prototype.onBecomeUnobserved.call(this),delete r[this.sourceIdentifier],t&&t(e,this.sourceObject)},o}(fe);return function(e){n!==Tt.resetId&&(r={},n=Tt.resetId);var t=function(e){if("string"==typeof e||"number"==typeof e)return e;if(null===e||"object"!=typeof e)throw new Error("[mobx] transform expected some kind of object or primitive value, got: "+e);var t=e.$transformId;return void 0===t&&ft(e,"$transformId",t=et()),t}(e),i=r[t];return i?i.get():(i=r[t]=new o(t,e)).get()}}Er.struct=_r,Er.equals=yr;var Pr={allowStateChanges:function(e,t){var r,n=z(e);try{r=t()}finally{V(n)}return r},deepEqual:ne,getAtom:kt,getDebugName:Nt,getDependencyTree:Rt,getAdministration:Dt,getGlobalState:function(){return Tt},getObserverTree:function(e,t){return jt(kt(e,t))},interceptReads:function(e,t,r){var n;if(Xe(e)||N(e)||j(e))n=Dt(e);else{if(!Se(e))return tt("Expected observable map, object or array as first array");if("string"!=typeof t)return tt("InterceptReads can only be used with a specific property, not with an object in general");n=Dt(e,t)}return void 0!==n.dehancer?tt("An intercept reader was already established"):(n.dehancer="function"==typeof t?t:r,function(){n.dehancer=void 0})},isComputingDerivation:qt,isSpyEnabled:f,onReactionError:function(e){return Tt.globalReactionErrorHandlers.push(e),function(){var t=Tt.globalReactionErrorHandlers.indexOf(e);t>=0&&Tt.globalReactionErrorHandlers.splice(t,1)}},reserveArrayBuffer:k,resetGlobalState:function(){Tt.resetId++;var e=new St;for(var t in e)-1===Ot.indexOf(t)&&(Tt[t]=e[t]);Tt.allowStateChanges=!Tt.strictMode},isolateGlobalState:function(){It=!0,Qe().__mobxInstanceCount--},shareGlobalState:function(){it("Using `shareGlobalState` is not recommended, use peer dependencies instead. See https://github.com/mobxjs/mobx/issues/1082 for details."),Pt=!0;var e=Qe(),t=Tt;if(e.__mobservableTrackingStack||e.__mobservableViewStack)throw new Error("[mobx] An incompatible version of mobservable is already loaded.");if(e.__mobxGlobal&&e.__mobxGlobal.version!==t.version)throw new Error("[mobx] An incompatible version of mobx is already loaded.");e.__mobxGlobal?Tt=e.__mobxGlobal:e.__mobxGlobal=t},spyReport:m,spyReportEnd:y,spyReportStart:g,setReactionScheduler:function(e){var t=ur;ur=function(r){return e((function(){return t(r)}))}}},Ir={Reaction:cr,untracked:er,Atom:a,BaseAtom:o,useStrict:U,isStrictModeEnabled:H,spy:b,comparer:le,asReference:fr,asFlat:gr,asStructure:mr,asMap:vr,isModifierDescriptor:Be,isObservableObject:Se,isBoxedObservable:j,isObservableArray:N,ObservableMap:$e,isObservableMap:Xe,map:qe,transaction:We,observable:Fe,computed:Er,isObservable:Te,isComputed:wr,extendObservable:Ie,extendShallowObservable:Ae,observe:xr,intercept:Lr,autorun:ue,autorunAsync:pe,when:de,reaction:he,action:J,isAction:te,runInAction:ee,expr:Or,toJS:Sr,createTransformer:Tr,whyRun:or,isArrayLike:bt,extras:Pr},Ar=!1,Cr=function(e){var t=Ir[e];Object.defineProperty(Ir,e,{get:function(){return Ar||(Ar=!0,console.warn("Using default export (`import mobx from 'mobx'`) is deprecated and won’t work in mobx@4.0.0\nUse `import * as mobx from 'mobx'` instead")),t}})};for(var kr in Ir)Cr(kr);"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:b,extras:Pr});const Dr=Ir},99813:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=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={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var l in o=Object(arguments[c]))r.call(o,l)&&(s[l]=o[l]);if(t){a=t(o);for(var u=0;u<a.length;u++)n.call(o,a[u])&&(s[a[u]]=o[a[u]])}}return s}},89368:(e,t,r)=>{"use strict";var n=r(82530);function i(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function o(e,t){for(var r,n="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)r=e.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){-1===c?(n="",i=0):i=(n=n.slice(0,c)).length-1-n.lastIndexOf("/"),o=s,a=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=s,a=0;continue}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(o+1,s):n=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var a={resolve:function(){for(var e,t="",r=!1,a=arguments.length-1;a>=-1&&!r;a--){var s;a>=0?s=arguments[a]:(void 0===e&&(e=n.cwd()),s=e),i(s),0!==s.length&&(t=s+"/"+t,r=47===s.charCodeAt(0))}return t=o(t,!r),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(i(e),0===e.length)return".";var t=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=o(e,!t)).length||t||(e="."),e.length>0&&r&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return i(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var r=arguments[t];i(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":a.normalize(e)},relative:function(e,t){if(i(e),i(t),e===t)return"";if((e=a.resolve(e))===(t=a.resolve(t)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var n=e.length,o=n-r,s=1;s<t.length&&47===t.charCodeAt(s);++s);for(var c=t.length-s,l=o<c?o:c,u=-1,d=0;d<=l;++d){if(d===l){if(c>l){if(47===t.charCodeAt(s+d))return t.slice(s+d+1);if(0===d)return t.slice(s+d)}else o>l&&(47===e.charCodeAt(r+d)?u=d:0===d&&(u=0));break}var p=e.charCodeAt(r+d);if(p!==t.charCodeAt(s+d))break;47===p&&(u=d)}var h="";for(d=r+u+1;d<=n;++d)d!==n&&47!==e.charCodeAt(d)||(0===h.length?h+="..":h+="/..");return h.length>0?h+t.slice(s+u):(s+=u,47===t.charCodeAt(s)&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(i(e),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!o){n=a;break}}else o=!1;return-1===n?r?"/":".":r&&1===n?"//":e.slice(0,n)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');i(e);var r,n=0,o=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,c=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(47===l){if(!a){n=r+1;break}}else-1===c&&(a=!1,c=r+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=c))}return n===o?o=c:-1===o&&(o=e.length),e.slice(n,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){n=r+1;break}}else-1===o&&(a=!1,o=r+1);return-1===o?"":e.slice(n,o)},extname:function(e){i(e);for(var t=-1,r=0,n=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(47!==c)-1===n&&(o=!1,n=s+1),46===c?-1===t?t=s:1!==a&&(a=1):-1!==t&&(a=-1);else if(!o){r=s+1;break}}return-1===t||-1===n||0===a||1===a&&t===n-1&&t===r+1?"":e.slice(t,n)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+"/"+n:n}(0,e)},parse:function(e){i(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var r,n=e.charCodeAt(0),o=47===n;o?(t.root="/",r=1):r=0;for(var a=-1,s=0,c=-1,l=!0,u=e.length-1,d=0;u>=r;--u)if(47!==(n=e.charCodeAt(u)))-1===c&&(l=!1,c=u+1),46===n?-1===a?a=u:1!==d&&(d=1):-1!==a&&(d=-1);else if(!l){s=u+1;break}return-1===a||-1===c||0===d||1===d&&a===c-1&&a===s+1?-1!==c&&(t.base=t.name=0===s&&o?e.slice(1,c):e.slice(s,c)):(0===s&&o?(t.name=e.slice(1,a),t.base=e.slice(1,c)):(t.name=e.slice(s,a),t.base=e.slice(s,c)),t.ext=e.slice(a,c)),s>0?t.dir=e.slice(0,s-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,e.exports=a},82530:e=>{var t,r,n=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var s,c=[],l=!1,u=-1;function d(){l&&s&&(l=!1,s.length?c=s.concat(c):u=-1,c.length&&p())}function p(){if(!l){var e=a(d);l=!0;for(var t=c.length;t;){for(s=c,c=[];++u<t;)s&&s[u].run();u=-1,t=c.length}s=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function f(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new h(e,t)),1!==c.length||l||a(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=f,n.addListener=f,n.once=f,n.off=f,n.removeListener=f,n.removeAllListeners=f,n.emit=f,n.prependListener=f,n.prependOnceListener=f,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},61926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="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},i=a(r(89526)),o=a(r(6734));function a(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)((function(e,t,r,o,a){var s=e[t],c=void 0===s?"undefined":n(s);return i.default.isValidElement(s)?new Error("Invalid "+o+" `"+a+"` of type ReactElement supplied to `"+r+"`, expected a ReactComponent or a DOMElement. You can usually obtain a ReactComponent or DOMElement from a ReactElement by attaching a ref to it."):"object"===c&&"function"==typeof s.render||1===s.nodeType?null:new Error("Invalid "+o+" `"+a+"` of value `"+s+"` supplied to `"+r+"`, expected a ReactComponent or a DOMElement.")})),e.exports=t.default},73925:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n,i=(n=r(92327))&&n.__esModule?n:{default:n},o={};function a(e,t){return function(r,n,a,s,c){var l=a||"<<anonymous>>",u=c||n;if(null!=r[n]){var d=a+"."+n;(0,i.default)(o[d],"The "+s+" `"+u+"` of `"+l+"` is deprecated. "+t+"."),o[d]=!0}for(var p=arguments.length,h=Array(p>5?p-5:0),f=5;f<p;f++)h[f-5]=arguments[f];return e.apply(void 0,[r,n,a,s,c].concat(h))}}a._resetWarned=function(){o={}},e.exports=t.default},50855:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(89526)),i=r(338),o=a(r(6734));function a(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)((function(e,t,r,o,a){var s=e[t];return n.default.isValidElement(s)?new Error("Invalid "+o+" `"+a+"` of type ReactElement supplied to `"+r+"`,expected an element type (a string , component class, or function component)."):(0,i.isValidElementType)(s)?null:new Error("Invalid "+o+" `"+a+"` of value `"+s+"` supplied to `"+r+"`, expected an element type (a string , component class, or function component).")})),e.exports=t.default},6734:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,r,n,i,o,a){var s=i||"<<anonymous>>",c=a||n;if(null==r[n])return t?new Error("Required "+o+" `"+c+"` was not specified in `"+s+"`."):null;for(var l=arguments.length,u=Array(l>6?l-6:0),d=6;d<l;d++)u[d-6]=arguments[d];return e.apply(void 0,[r,n,s,o,c].concat(u))}var r=t.bind(null,!1);return r.isRequired=t.bind(null,!0),r},e.exports=t.default},92327:e=>{"use strict";e.exports=function(){}},5372:(e,t,r)=>{"use strict";var n=r(49567);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={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:o,resetWarningCache:i};return r.PropTypes=r,r}},2652:(e,t,r)=>{e.exports=r(5372)()},49567:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},21947:function(e,t,r){var n;e=r.nmd(e),function(i){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r.g&&r.g;o.global!==o&&o.window!==o&&o.self;var a,s=2147483647,c=36,l=/^xn--/,u=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,f=String.fromCharCode;function m(e){throw new RangeError(p[e])}function g(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function v(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+g((e=e.replace(d,".")).split("."),t).join(".")}function y(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function b(e){return g(e,(function(e){var t="";return e>65535&&(t+=f((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+f(e)})).join("")}function _(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function E(e,t,r){var n=0;for(e=r?h(e/700):e>>1,e+=h(e/t);e>455;n+=c)e=h(e/35);return h(n+36*e/(e+38))}function w(e){var t,r,n,i,o,a,l,u,d,p,f,g=[],v=e.length,y=0,_=128,w=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&m("not-basic"),g.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<v;){for(o=y,a=1,l=c;i>=v&&m("invalid-input"),((u=(f=e.charCodeAt(i++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:c)>=c||u>h((s-y)/a))&&m("overflow"),y+=u*a,!(u<(d=l<=w?1:l>=w+26?26:l-w));l+=c)a>h(s/(p=c-d))&&m("overflow"),a*=p;w=E(y-o,t=g.length+1,0==o),h(y/t)>s-_&&m("overflow"),_+=h(y/t),y%=t,g.splice(y++,0,_)}return b(g)}function x(e){var t,r,n,i,o,a,l,u,d,p,g,v,b,w,x,L=[];for(v=(e=y(e)).length,t=128,r=0,o=72,a=0;a<v;++a)(g=e[a])<128&&L.push(f(g));for(n=i=L.length,i&&L.push("-");n<v;){for(l=s,a=0;a<v;++a)(g=e[a])>=t&&g<l&&(l=g);for(l-t>h((s-r)/(b=n+1))&&m("overflow"),r+=(l-t)*b,t=l,a=0;a<v;++a)if((g=e[a])<t&&++r>s&&m("overflow"),g==t){for(u=r,d=c;!(u<(p=d<=o?1:d>=o+26?26:d-o));d+=c)x=u-p,w=c-p,L.push(f(_(p+x%w,0))),u=h(x/w);L.push(f(_(u,0))),o=E(r,b,n==i),r=0,++n}++r,++t}return L.join("")}a={version:"1.4.1",ucs2:{decode:y,encode:b},decode:w,encode:x,toASCII:function(e){return v(e,(function(e){return u.test(e)?"xn--"+x(e):e}))},toUnicode:function(e){return v(e,(function(e){return l.test(e)?w(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return a}.call(t,r,t,e))||(e.exports=n)}()},57799:(e,t,r)=>{"use strict";var n=r(89526),i=r(99813),o=r(72851);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!n)throw Error(a(227));function s(e,t,r,n,i,o,a,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(r,l)}catch(e){this.onError(e)}}var c=!1,l=null,u=!1,d=null,p={onError:function(e){c=!0,l=e}};function h(e,t,r,n,i,o,a,u,d){c=!1,l=null,s.apply(p,arguments)}var f=null,m=null,g=null;function v(e,t,r){var n=e.type||"unknown-event";e.currentTarget=g(r),function(e,t,r,n,i,o,s,p,f){if(h.apply(this,arguments),c){if(!c)throw Error(a(198));var m=l;c=!1,l=null,u||(u=!0,d=m)}}(n,t,void 0,e),e.currentTarget=null}var y=null,b={};function _(){if(y)for(var e in b){var t=b[e],r=y.indexOf(e);if(!(-1<r))throw Error(a(96,e));if(!w[r]){if(!t.extractEvents)throw Error(a(97,e));for(var n in w[r]=t,r=t.eventTypes){var i=void 0,o=r[n],s=t,c=n;if(x.hasOwnProperty(c))throw Error(a(99,c));x[c]=o;var l=o.phasedRegistrationNames;if(l){for(i in l)l.hasOwnProperty(i)&&E(l[i],s,c);i=!0}else o.registrationName?(E(o.registrationName,s,c),i=!0):i=!1;if(!i)throw Error(a(98,n,e))}}}}function E(e,t,r){if(L[e])throw Error(a(100,e));L[e]=t,O[e]=t.eventTypes[r].dependencies}var w=[],x={},L={},O={};function S(e){var t,r=!1;for(t in e)if(e.hasOwnProperty(t)){var n=e[t];if(!b.hasOwnProperty(t)||b[t]!==n){if(b[t])throw Error(a(102,t));b[t]=n,r=!0}}r&&_()}var T=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),P=null,I=null,A=null;function C(e){if(e=m(e)){if("function"!=typeof P)throw Error(a(280));var t=e.stateNode;t&&(t=f(t),P(e.stateNode,e.type,t))}}function k(e){I?A?A.push(e):A=[e]:I=e}function D(){if(I){var e=I,t=A;if(A=I=null,C(e),t)for(e=0;e<t.length;e++)C(t[e])}}function N(e,t){return e(t)}function R(e,t,r,n,i){return e(t,r,n,i)}function M(){}var j=N,F=!1,Z=!1;function B(){null===I&&null===A||(M(),D())}function G(e,t,r){if(Z)return e(t,r);Z=!0;try{return j(e,t,r)}finally{Z=!1,B()}}var U=/^[: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]*$/,H=Object.prototype.hasOwnProperty,z={},V={};function Y(e,t,r,n,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o}var W={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){W[e]=new Y(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];W[t]=new Y(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){W[e]=new Y(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){W[e]=new Y(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){W[e]=new Y(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){W[e]=new Y(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){W[e]=new Y(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){W[e]=new Y(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){W[e]=new Y(e,5,!1,e.toLowerCase(),null,!1)}));var K=/[\-:]([a-z])/g;function $(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(K,$);W[t]=new Y(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(K,$);W[t]=new Y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(K,$);W[t]=new Y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){W[e]=new Y(e,1,!1,e.toLowerCase(),null,!1)})),W.xlinkHref=new Y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){W[e]=new Y(e,1,!1,e.toLowerCase(),null,!0)}));var q=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function X(e,t,r,n){var i=W.hasOwnProperty(t)?W[t]:null;(null!==i?0===i.type:!n&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,i,n)&&(r=null),n||null===i?function(e){return!!H.call(V,e)||!H.call(z,e)&&(U.test(e)?V[e]=!0:(z[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=null===r?3!==i.type&&"":r:(t=i.attributeName,n=i.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(i=i.type)||4===i&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}q.hasOwnProperty("ReactCurrentDispatcher")||(q.ReactCurrentDispatcher={current:null}),q.hasOwnProperty("ReactCurrentBatchConfig")||(q.ReactCurrentBatchConfig={suspense:null});var J=/^(.*)[\\\/]/,Q="function"==typeof Symbol&&Symbol.for,ee=Q?Symbol.for("react.element"):60103,te=Q?Symbol.for("react.portal"):60106,re=Q?Symbol.for("react.fragment"):60107,ne=Q?Symbol.for("react.strict_mode"):60108,ie=Q?Symbol.for("react.profiler"):60114,oe=Q?Symbol.for("react.provider"):60109,ae=Q?Symbol.for("react.context"):60110,se=Q?Symbol.for("react.concurrent_mode"):60111,ce=Q?Symbol.for("react.forward_ref"):60112,le=Q?Symbol.for("react.suspense"):60113,ue=Q?Symbol.for("react.suspense_list"):60120,de=Q?Symbol.for("react.memo"):60115,pe=Q?Symbol.for("react.lazy"):60116,he=Q?Symbol.for("react.block"):60121,fe="function"==typeof Symbol&&Symbol.iterator;function me(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=fe&&e[fe]||e["@@iterator"])?e:null}function ge(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case re:return"Fragment";case te:return"Portal";case ie:return"Profiler";case ne:return"StrictMode";case le:return"Suspense";case ue:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case oe:return"Context.Provider";case ce:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case de:return ge(e.type);case he:return ge(e.render);case pe:if(e=1===e._status?e._result:null)return ge(e)}return null}function ve(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var r="";break e;default:var n=e._debugOwner,i=e._debugSource,o=ge(e.type);r=null,n&&(r=ge(n.type)),n=o,o="",i?o=" (at "+i.fileName.replace(J,"")+":"+i.lineNumber+")":r&&(o=" (created by "+r+")"),r="\n    in "+(n||"Unknown")+o}t+=r,e=e.return}while(e);return t}function ye(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function _e(e){e._valueTracker||(e._valueTracker=function(e){var t=be(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Ee(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=be(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function we(e,t){var r=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function xe(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=ye(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Le(e,t){null!=(t=t.checked)&&X(e,"checked",t,!1)}function Oe(e,t){Le(e,t);var r=ye(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?Te(e,t.type,r):t.hasOwnProperty("defaultValue")&&Te(e,t.type,ye(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Se(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function Te(e,t,r){"number"===t&&e.ownerDocument.activeElement===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function Pe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return n.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Ie(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+ye(r),t=null,i=0;i<e.length;i++){if(e[i].value===r)return e[i].selected=!0,void(n&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function Ae(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ce(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(a(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(a(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:ye(r)}}function ke(e,t){var r=ye(t.value),n=ye(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function De(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Ne(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Re(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ne(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Me,je,Fe=(je=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Me=Me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return je(e,t)}))}:je);function Ze(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}function Be(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ge={animationend:Be("Animation","AnimationEnd"),animationiteration:Be("Animation","AnimationIteration"),animationstart:Be("Animation","AnimationStart"),transitionend:Be("Transition","TransitionEnd")},Ue={},He={};function ze(e){if(Ue[e])return Ue[e];if(!Ge[e])return e;var t,r=Ge[e];for(t in r)if(r.hasOwnProperty(t)&&t in He)return Ue[e]=r[t];return e}T&&(He=document.createElement("div").style,"AnimationEvent"in window||(delete Ge.animationend.animation,delete Ge.animationiteration.animation,delete Ge.animationstart.animation),"TransitionEvent"in window||delete Ge.transitionend.transition);var Ve=ze("animationend"),Ye=ze("animationiteration"),We=ze("animationstart"),Ke=ze("transitionend"),$e="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),qe=new("function"==typeof WeakMap?WeakMap:Map);function Xe(e){var t=qe.get(e);return void 0===t&&(t=new Map,qe.set(e,t)),t}function Je(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function Qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function et(e){if(Je(e)!==e)throw Error(a(188))}function tt(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Je(e)))throw Error(a(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(n=i.return)){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return et(i),e;if(o===n)return et(i),t;o=o.sibling}throw Error(a(188))}if(r.return!==n.return)r=i,n=o;else{for(var s=!1,c=i.child;c;){if(c===r){s=!0,r=i,n=o;break}if(c===n){s=!0,n=i,r=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===r){s=!0,r=o,n=i;break}if(c===n){s=!0,n=o,r=i;break}c=c.sibling}if(!s)throw Error(a(189))}}if(r.alternate!==n)throw Error(a(190))}if(3!==r.tag)throw Error(a(188));return r.stateNode.current===r?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rt(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function nt(e,t,r){Array.isArray(e)?e.forEach(t,r):e&&t.call(r,e)}var it=null;function ot(e){if(e){var t=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(t))for(var n=0;n<t.length&&!e.isPropagationStopped();n++)v(e,t[n],r[n]);else t&&v(e,t,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function at(e){if(null!==e&&(it=rt(it,e)),e=it,it=null,e){if(nt(e,ot),it)throw Error(a(95));if(u)throw e=d,u=!1,d=null,e}}function st(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ct(e){if(!T)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var lt=[];function ut(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>lt.length&&lt.push(e)}function dt(e,t,r,n){if(lt.length){var i=lt.pop();return i.topLevelType=e,i.eventSystemFlags=n,i.nativeEvent=t,i.targetInst=r,i}return{topLevelType:e,eventSystemFlags:n,nativeEvent:t,targetInst:r,ancestors:[]}}function pt(e){var t=e.targetInst,r=t;do{if(!r){e.ancestors.push(r);break}var n=r;if(3===n.tag)n=n.stateNode.containerInfo;else{for(;n.return;)n=n.return;n=3!==n.tag?null:n.stateNode.containerInfo}if(!n)break;5!==(t=r.tag)&&6!==t||e.ancestors.push(r),r=Pr(n)}while(r);for(r=0;r<e.ancestors.length;r++){t=e.ancestors[r];var i=st(e.nativeEvent);n=e.topLevelType;var o=e.nativeEvent,a=e.eventSystemFlags;0===r&&(a|=64);for(var s=null,c=0;c<w.length;c++){var l=w[c];l&&(l=l.extractEvents(n,t,o,i,a))&&(s=rt(s,l))}at(s)}}function ht(e,t,r){if(!r.has(e)){switch(e){case"scroll":Wt(t,"scroll",!0);break;case"focus":case"blur":Wt(t,"focus",!0),Wt(t,"blur",!0),r.set("blur",null),r.set("focus",null);break;case"cancel":case"close":ct(e)&&Wt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===$e.indexOf(e)&&Yt(e,t)}r.set(e,null)}}var ft,mt,gt,vt=!1,yt=[],bt=null,_t=null,Et=null,wt=new Map,xt=new Map,Lt=[],Ot="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),St="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Tt(e,t,r,n,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|r,nativeEvent:i,container:n}}function Pt(e,t){switch(e){case"focus":case"blur":bt=null;break;case"dragenter":case"dragleave":_t=null;break;case"mouseover":case"mouseout":Et=null;break;case"pointerover":case"pointerout":wt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xt.delete(t.pointerId)}}function It(e,t,r,n,i,o){return null===e||e.nativeEvent!==o?(e=Tt(t,r,n,i,o),null!==t&&null!==(t=Ir(t))&&mt(t),e):(e.eventSystemFlags|=n,e)}function At(e){var t=Pr(e.target);if(null!==t){var r=Je(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=Qe(r)))return e.blockedOn=t,void o.unstable_runWithPriority(e.priority,(function(){gt(r)}))}else if(3===t&&r.stateNode.hydrate)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Ct(e){if(null!==e.blockedOn)return!1;var t=Xt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var r=Ir(t);return null!==r&&mt(r),e.blockedOn=t,!1}return!0}function kt(e,t,r){Ct(e)&&r.delete(t)}function Dt(){for(vt=!1;0<yt.length;){var e=yt[0];if(null!==e.blockedOn){null!==(e=Ir(e.blockedOn))&&ft(e);break}var t=Xt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:yt.shift()}null!==bt&&Ct(bt)&&(bt=null),null!==_t&&Ct(_t)&&(_t=null),null!==Et&&Ct(Et)&&(Et=null),wt.forEach(kt),xt.forEach(kt)}function Nt(e,t){e.blockedOn===t&&(e.blockedOn=null,vt||(vt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Dt)))}function Rt(e){function t(t){return Nt(t,e)}if(0<yt.length){Nt(yt[0],e);for(var r=1;r<yt.length;r++){var n=yt[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==bt&&Nt(bt,e),null!==_t&&Nt(_t,e),null!==Et&&Nt(Et,e),wt.forEach(t),xt.forEach(t),r=0;r<Lt.length;r++)(n=Lt[r]).blockedOn===e&&(n.blockedOn=null);for(;0<Lt.length&&null===(r=Lt[0]).blockedOn;)At(r),null===r.blockedOn&&Lt.shift()}var Mt={},jt=new Map,Ft=new Map,Zt=["abort","abort",Ve,"animationEnd",Ye,"animationIteration",We,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ke,"transitionEnd","waiting","waiting"];function Bt(e,t){for(var r=0;r<e.length;r+=2){var n=e[r],i=e[r+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[n],eventPriority:t},Ft.set(n,t),jt.set(n,o),Mt[i]=o}}Bt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Bt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Bt(Zt,2);for(var Gt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ut=0;Ut<Gt.length;Ut++)Ft.set(Gt[Ut],0);var Ht=o.unstable_UserBlockingPriority,zt=o.unstable_runWithPriority,Vt=!0;function Yt(e,t){Wt(t,e,!1)}function Wt(e,t,r){var n=Ft.get(t);switch(void 0===n?2:n){case 0:n=Kt.bind(null,t,1,e);break;case 1:n=$t.bind(null,t,1,e);break;default:n=qt.bind(null,t,1,e)}r?e.addEventListener(t,n,!0):e.addEventListener(t,n,!1)}function Kt(e,t,r,n){F||M();var i=qt,o=F;F=!0;try{R(i,e,t,r,n)}finally{(F=o)||B()}}function $t(e,t,r,n){zt(Ht,qt.bind(null,e,t,r,n))}function qt(e,t,r,n){if(Vt)if(0<yt.length&&-1<Ot.indexOf(e))e=Tt(null,e,t,r,n),yt.push(e);else{var i=Xt(e,t,r,n);if(null===i)Pt(e,n);else if(-1<Ot.indexOf(e))e=Tt(i,e,t,r,n),yt.push(e);else if(!function(e,t,r,n,i){switch(t){case"focus":return bt=It(bt,e,t,r,n,i),!0;case"dragenter":return _t=It(_t,e,t,r,n,i),!0;case"mouseover":return Et=It(Et,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return wt.set(o,It(wt.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,xt.set(o,It(xt.get(o)||null,e,t,r,n,i)),!0}return!1}(i,e,t,r,n)){Pt(e,n),e=dt(e,n,null,t);try{G(pt,e)}finally{ut(e)}}}}function Xt(e,t,r,n){if(null!==(r=Pr(r=st(n)))){var i=Je(r);if(null===i)r=null;else{var o=i.tag;if(13===o){if(null!==(r=Qe(i)))return r;r=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null)}}e=dt(e,n,r,t);try{G(pt,e)}finally{ut(e)}return null}var Jt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Qt=["Webkit","ms","Moz","O"];function er(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||Jt.hasOwnProperty(e)&&Jt[e]?(""+t).trim():t+"px"}function tr(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),i=er(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}Object.keys(Jt).forEach((function(e){Qt.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Jt[t]=Jt[e]}))}));var rr=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function nr(e,t){if(t){if(rr[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function ir(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var or="http://www.w3.org/1999/xhtml";function ar(e,t){var r=Xe(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=O[t];for(var n=0;n<t.length;n++)ht(t[n],e,r)}function sr(){}function cr(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var r,n=lr(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=lr(n)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=cr();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=cr((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var fr="$?",mr="$!",gr=null,vr=null;function yr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function br(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var _r="function"==typeof setTimeout?setTimeout:void 0,Er="function"==typeof clearTimeout?clearTimeout:void 0;function wr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function xr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||r===mr||r===fr){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var Lr=Math.random().toString(36).slice(2),Or="__reactInternalInstance$"+Lr,Sr="__reactEventHandlers$"+Lr,Tr="__reactContainere$"+Lr;function Pr(e){var t=e[Or];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Tr]||r[Or]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=xr(e);null!==e;){if(r=e[Or])return r;e=xr(e)}return t}r=(e=r).parentNode}return null}function Ir(e){return!(e=e[Or]||e[Tr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Ar(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Cr(e){return e[Sr]||null}function kr(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Dr(e,t){var r=e.stateNode;if(!r)return null;var n=f(r);if(!n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(a(231,t,typeof r));return r}function Nr(e,t,r){(t=Dr(e,r.dispatchConfig.phasedRegistrationNames[t]))&&(r._dispatchListeners=rt(r._dispatchListeners,t),r._dispatchInstances=rt(r._dispatchInstances,e))}function Rr(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,r=[];t;)r.push(t),t=kr(t);for(t=r.length;0<t--;)Nr(r[t],"captured",e);for(t=0;t<r.length;t++)Nr(r[t],"bubbled",e)}}function Mr(e,t,r){e&&r&&r.dispatchConfig.registrationName&&(t=Dr(e,r.dispatchConfig.registrationName))&&(r._dispatchListeners=rt(r._dispatchListeners,t),r._dispatchInstances=rt(r._dispatchInstances,e))}function jr(e){e&&e.dispatchConfig.registrationName&&Mr(e._targetInst,null,e)}function Fr(e){nt(e,Rr)}var Zr=null,Br=null,Gr=null;function Ur(){if(Gr)return Gr;var e,t,r=Br,n=r.length,i="value"in Zr?Zr.value:Zr.textContent,o=i.length;for(e=0;e<n&&r[e]===i[e];e++);var a=n-e;for(t=1;t<=a&&r[n-t]===i[o-t];t++);return Gr=i.slice(e,1<t?1-t:void 0)}function Hr(){return!0}function zr(){return!1}function Vr(e,t,r,n){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=r,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(r):"target"===i?this.target=n:this[i]=r[i]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?Hr:zr,this.isPropagationStopped=zr,this}function Yr(e,t,r,n){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,r,n),i}return new this(e,t,r,n)}function Wr(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Kr(e){e.eventPool=[],e.getPooled=Yr,e.release=Wr}i(Vr.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Hr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Hr)},persist:function(){this.isPersistent=Hr},isPersistent:zr,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=zr,this._dispatchInstances=this._dispatchListeners=null}}),Vr.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Vr.extend=function(e){function t(){}function r(){return n.apply(this,arguments)}var n=this;t.prototype=n.prototype;var o=new t;return i(o,r.prototype),r.prototype=o,r.prototype.constructor=r,r.Interface=i({},n.Interface,e),r.extend=n.extend,Kr(r),r},Kr(Vr);var $r=Vr.extend({data:null}),qr=Vr.extend({data:null}),Xr=[9,13,27,32],Jr=T&&"CompositionEvent"in window,Qr=null;T&&"documentMode"in document&&(Qr=document.documentMode);var en=T&&"TextEvent"in window&&!Qr,tn=T&&(!Jr||Qr&&8<Qr&&11>=Qr),rn=String.fromCharCode(32),nn={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},on=!1;function an(e,t){switch(e){case"keyup":return-1!==Xr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function sn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var cn=!1,ln={eventTypes:nn,extractEvents:function(e,t,r,n){var i;if(Jr)e:{switch(e){case"compositionstart":var o=nn.compositionStart;break e;case"compositionend":o=nn.compositionEnd;break e;case"compositionupdate":o=nn.compositionUpdate;break e}o=void 0}else cn?an(e,r)&&(o=nn.compositionEnd):"keydown"===e&&229===r.keyCode&&(o=nn.compositionStart);return o?(tn&&"ko"!==r.locale&&(cn||o!==nn.compositionStart?o===nn.compositionEnd&&cn&&(i=Ur()):(Br="value"in(Zr=n)?Zr.value:Zr.textContent,cn=!0)),o=$r.getPooled(o,t,r,n),(i||null!==(i=sn(r)))&&(o.data=i),Fr(o),i=o):i=null,(e=en?function(e,t){switch(e){case"compositionend":return sn(t);case"keypress":return 32!==t.which?null:(on=!0,rn);case"textInput":return(e=t.data)===rn&&on?null:e;default:return null}}(e,r):function(e,t){if(cn)return"compositionend"===e||!Jr&&an(e,t)?(e=Ur(),Gr=Br=Zr=null,cn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return tn&&"ko"!==t.locale?null:t.data}}(e,r))?((t=qr.getPooled(nn.beforeInput,t,r,n)).data=e,Fr(t)):t=null,null===i?t:null===t?i:[i,t]}},un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function dn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!un[e.type]:"textarea"===t}var pn={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function hn(e,t,r){return(e=Vr.getPooled(pn.change,e,t,r)).type="change",k(r),Fr(e),e}var fn=null,mn=null;function gn(e){at(e)}function vn(e){if(Ee(Ar(e)))return e}function yn(e,t){if("change"===e)return t}var bn=!1;function _n(){fn&&(fn.detachEvent("onpropertychange",En),mn=fn=null)}function En(e){if("value"===e.propertyName&&vn(mn))if(e=hn(mn,e,st(e)),F)at(e);else{F=!0;try{N(gn,e)}finally{F=!1,B()}}}function wn(e,t,r){"focus"===e?(_n(),mn=r,(fn=t).attachEvent("onpropertychange",En)):"blur"===e&&_n()}function xn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return vn(mn)}function Ln(e,t){if("click"===e)return vn(t)}function On(e,t){if("input"===e||"change"===e)return vn(t)}T&&(bn=ct("input")&&(!document.documentMode||9<document.documentMode));var Sn={eventTypes:pn,_isInputEventSupported:bn,extractEvents:function(e,t,r,n){var i=t?Ar(t):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=yn;else if(dn(i))if(bn)a=On;else{a=xn;var s=wn}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=Ln);if(a&&(a=a(e,t)))return hn(a,r,n);s&&s(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Te(i,"number",i.value)}},Tn=Vr.extend({view:null,detail:null}),Pn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function In(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Pn[e])&&!!t[e]}function An(){return In}var Cn=0,kn=0,Dn=!1,Nn=!1,Rn=Tn.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:An,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Cn;return Cn=e.screenX,Dn?"mousemove"===e.type?e.screenX-t:0:(Dn=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=kn;return kn=e.screenY,Nn?"mousemove"===e.type?e.screenY-t:0:(Nn=!0,0)}}),Mn=Rn.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),jn={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Fn={eventTypes:jn,extractEvents:function(e,t,r,n,i){var o="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(o&&0==(32&i)&&(r.relatedTarget||r.fromElement)||!a&&!o)return null;if(o=n.window===n?n:(o=n.ownerDocument)?o.defaultView||o.parentWindow:window,a?(a=t,null!==(t=(t=r.relatedTarget||r.toElement)?Pr(t):null)&&(t!==Je(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null,a===t)return null;if("mouseout"===e||"mouseover"===e)var s=Rn,c=jn.mouseLeave,l=jn.mouseEnter,u="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=Mn,c=jn.pointerLeave,l=jn.pointerEnter,u="pointer");if(e=null==a?o:Ar(a),o=null==t?o:Ar(t),(c=s.getPooled(c,a,r,n)).type=u+"leave",c.target=e,c.relatedTarget=o,(r=s.getPooled(l,t,r,n)).type=u+"enter",r.target=o,r.relatedTarget=e,u=t,(n=a)&&u)e:{for(l=u,a=0,e=s=n;e;e=kr(e))a++;for(e=0,t=l;t;t=kr(t))e++;for(;0<a-e;)s=kr(s),a--;for(;0<e-a;)l=kr(l),e--;for(;a--;){if(s===l||s===l.alternate)break e;s=kr(s),l=kr(l)}s=null}else s=null;for(l=s,s=[];n&&n!==l&&(null===(a=n.alternate)||a!==l);)s.push(n),n=kr(n);for(n=[];u&&u!==l&&(null===(a=u.alternate)||a!==l);)n.push(u),u=kr(u);for(u=0;u<s.length;u++)Mr(s[u],"bubbled",c);for(u=n.length;0<u--;)Mr(n[u],"captured",r);return 0==(64&i)?[c]:[c,r]}},Zn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Bn=Object.prototype.hasOwnProperty;function Gn(e,t){if(Zn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!Bn.call(t,r[n])||!Zn(e[r[n]],t[r[n]]))return!1;return!0}var Un=T&&"documentMode"in document&&11>=document.documentMode,Hn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},zn=null,Vn=null,Yn=null,Wn=!1;function Kn(e,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Wn||null==zn||zn!==cr(r)?null:(r="selectionStart"in(r=zn)&&hr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Yn&&Gn(Yn,r)?null:(Yn=r,(e=Vr.getPooled(Hn.select,Vn,e,t)).type="select",e.target=zn,Fr(e),e))}var $n={eventTypes:Hn,extractEvents:function(e,t,r,n,i,o){if(!(o=!(i=o||(n.window===n?n.document:9===n.nodeType?n:n.ownerDocument)))){e:{i=Xe(i),o=O.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?Ar(t):window,e){case"focus":(dn(i)||"true"===i.contentEditable)&&(zn=i,Vn=t,Yn=null);break;case"blur":Yn=Vn=zn=null;break;case"mousedown":Wn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Wn=!1,Kn(r,n);case"selectionchange":if(Un)break;case"keydown":case"keyup":return Kn(r,n)}return null}},qn=Vr.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Xn=Vr.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jn=Tn.extend({relatedTarget:null});function Qn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var ei={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ti={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ri=Tn.extend({key:function(e){if(e.key){var t=ei[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Qn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ti[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:An,charCode:function(e){return"keypress"===e.type?Qn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Qn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ni=Rn.extend({dataTransfer:null}),ii=Tn.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:An}),oi=Vr.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ai=Rn.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),si={eventTypes:Mt,extractEvents:function(e,t,r,n){var i=jt.get(e);if(!i)return null;switch(e){case"keypress":if(0===Qn(r))return null;case"keydown":case"keyup":e=ri;break;case"blur":case"focus":e=Jn;break;case"click":if(2===r.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Rn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ni;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ii;break;case Ve:case Ye:case We:e=qn;break;case Ke:e=oi;break;case"scroll":e=Tn;break;case"wheel":e=ai;break;case"copy":case"cut":case"paste":e=Xn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Mn;break;default:e=Vr}return Fr(t=e.getPooled(i,t,r,n)),t}};if(y)throw Error(a(101));y=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),_(),f=Cr,m=Ir,g=Ar,S({SimpleEventPlugin:si,EnterLeaveEventPlugin:Fn,ChangeEventPlugin:Sn,SelectEventPlugin:$n,BeforeInputEventPlugin:ln});var ci=[],li=-1;function ui(e){0>li||(e.current=ci[li],ci[li]=null,li--)}function di(e,t){li++,ci[li]=e.current,e.current=t}var pi={},hi={current:pi},fi={current:!1},mi=pi;function gi(e,t){var r=e.type.contextTypes;if(!r)return pi;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in r)o[i]=t[i];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function vi(e){return null!=e.childContextTypes}function yi(){ui(fi),ui(hi)}function bi(e,t,r){if(hi.current!==pi)throw Error(a(168));di(hi,t),di(fi,r)}function _i(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in e))throw Error(a(108,ge(t)||"Unknown",o));return i({},r,{},n)}function Ei(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pi,mi=hi.current,di(hi,e),di(fi,fi.current),!0}function wi(e,t,r){var n=e.stateNode;if(!n)throw Error(a(169));r?(e=_i(e,t,mi),n.__reactInternalMemoizedMergedChildContext=e,ui(fi),ui(hi),di(hi,e)):ui(fi),di(fi,r)}var xi=o.unstable_runWithPriority,Li=o.unstable_scheduleCallback,Oi=o.unstable_cancelCallback,Si=o.unstable_requestPaint,Ti=o.unstable_now,Pi=o.unstable_getCurrentPriorityLevel,Ii=o.unstable_ImmediatePriority,Ai=o.unstable_UserBlockingPriority,Ci=o.unstable_NormalPriority,ki=o.unstable_LowPriority,Di=o.unstable_IdlePriority,Ni={},Ri=o.unstable_shouldYield,Mi=void 0!==Si?Si:function(){},ji=null,Fi=null,Zi=!1,Bi=Ti(),Gi=1e4>Bi?Ti:function(){return Ti()-Bi};function Ui(){switch(Pi()){case Ii:return 99;case Ai:return 98;case Ci:return 97;case ki:return 96;case Di:return 95;default:throw Error(a(332))}}function Hi(e){switch(e){case 99:return Ii;case 98:return Ai;case 97:return Ci;case 96:return ki;case 95:return Di;default:throw Error(a(332))}}function zi(e,t){return e=Hi(e),xi(e,t)}function Vi(e,t,r){return e=Hi(e),Li(e,t,r)}function Yi(e){return null===ji?(ji=[e],Fi=Li(Ii,Ki)):ji.push(e),Ni}function Wi(){if(null!==Fi){var e=Fi;Fi=null,Oi(e)}Ki()}function Ki(){if(!Zi&&null!==ji){Zi=!0;var e=0;try{var t=ji;zi(99,(function(){for(;e<t.length;e++){var r=t[e];do{r=r(!0)}while(null!==r)}})),ji=null}catch(t){throw null!==ji&&(ji=ji.slice(e+1)),Li(Ii,Wi),t}finally{Zi=!1}}}function $i(e,t,r){return 1073741821-(1+((1073741821-e+t/10)/(r/=10)|0))*r}function qi(e,t){if(e&&e.defaultProps)for(var r in t=i({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}var Xi={current:null},Ji=null,Qi=null,eo=null;function to(){eo=Qi=Ji=null}function ro(e){var t=Xi.current;ui(Xi),e.type._context._currentValue=t}function no(e,t){for(;null!==e;){var r=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==r&&r.childExpirationTime<t&&(r.childExpirationTime=t);else{if(!(null!==r&&r.childExpirationTime<t))break;r.childExpirationTime=t}e=e.return}}function io(e,t){Ji=e,eo=Qi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(ka=!0),e.firstContext=null)}function oo(e,t){if(eo!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(eo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Qi){if(null===Ji)throw Error(a(308));Qi=t,Ji.dependencies={expirationTime:0,firstContext:t,responders:null}}else Qi=Qi.next=t;return e._currentValue}var ao=!1;function so(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function co(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function lo(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function uo(e,t){if(null!==(e=e.updateQueue)){var r=(e=e.shared).pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function po(e,t){var r=e.alternate;null!==r&&co(r,e),null===(r=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=r.next,r.next=t)}function ho(e,t,r,n){var o=e.updateQueue;ao=!1;var a=o.baseQueue,s=o.shared.pending;if(null!==s){if(null!==a){var c=a.next;a.next=s.next,s.next=c}a=s,o.shared.pending=null,null!==(c=e.alternate)&&null!==(c=c.updateQueue)&&(c.baseQueue=s)}if(null!==a){c=a.next;var l=o.baseState,u=0,d=null,p=null,h=null;if(null!==c)for(var f=c;;){if((s=f.expirationTime)<n){var m={expirationTime:f.expirationTime,suspenseConfig:f.suspenseConfig,tag:f.tag,payload:f.payload,callback:f.callback,next:null};null===h?(p=h=m,d=l):h=h.next=m,s>u&&(u=s)}else{null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:f.suspenseConfig,tag:f.tag,payload:f.payload,callback:f.callback,next:null}),dc(s,f.suspenseConfig);e:{var g=e,v=f;switch(s=t,m=r,v.tag){case 1:if("function"==typeof(g=v.payload)){l=g.call(m,l,s);break e}l=g;break e;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null==(s="function"==typeof(g=v.payload)?g.call(m,l,s):g))break e;l=i({},l,s);break e;case 2:ao=!0}}null!==f.callback&&(e.effectTag|=32,null===(s=o.effects)?o.effects=[f]:s.push(f))}if(null===(f=f.next)||f===c){if(null===(s=o.shared.pending))break;f=a.next=s.next,s.next=c,o.baseQueue=a=s,o.shared.pending=null}}null===h?d=l:h.next=p,o.baseState=d,o.baseQueue=h,pc(u),e.expirationTime=u,e.memoizedState=l}}function fo(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(null!==i){if(n.callback=null,n=i,i=r,"function"!=typeof n)throw Error(a(191,n));n.call(i)}}}var mo=q.ReactCurrentBatchConfig,go=(new n.Component).refs;function vo(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:i({},t,r),e.memoizedState=r,0===e.expirationTime&&(e.updateQueue.baseState=r)}var yo={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Je(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternalFiber;var n=Js(),i=mo.suspense;(i=lo(n=Qs(n,e,i),i)).payload=t,null!=r&&(i.callback=r),uo(e,i),ec(e,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternalFiber;var n=Js(),i=mo.suspense;(i=lo(n=Qs(n,e,i),i)).tag=1,i.payload=t,null!=r&&(i.callback=r),uo(e,i),ec(e,n)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var r=Js(),n=mo.suspense;(n=lo(r=Qs(r,e,n),n)).tag=2,null!=t&&(n.callback=t),uo(e,n),ec(e,r)}};function bo(e,t,r,n,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&Gn(r,n)&&Gn(i,o))}function _o(e,t,r){var n=!1,i=pi,o=t.contextType;return"object"==typeof o&&null!==o?o=oo(o):(i=vi(t)?mi:hi.current,o=(n=null!=(n=t.contextTypes))?gi(e,i):pi),t=new t(r,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yo,e.stateNode=t,t._reactInternalFiber=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Eo(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&yo.enqueueReplaceState(t,t.state,null)}function wo(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=go,so(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=oo(o):(o=vi(t)?mi:hi.current,i.context=gi(e,o)),ho(e,r,i,n),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(vo(e,t,o,r),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&yo.enqueueReplaceState(i,i.state,null),ho(e,r,i,n),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var xo=Array.isArray;function Lo(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(a(309));var n=r.stateNode}if(!n)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=n.refs;t===go&&(t=n.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!r._owner)throw Error(a(290,e))}return e}function Oo(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function So(e){function t(t,r){if(e){var n=t.lastEffect;null!==n?(n.nextEffect=r,t.lastEffect=r):t.firstEffect=t.lastEffect=r,r.nextEffect=null,r.effectTag=8}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=kc(e,t)).index=0,e.sibling=null,e}function o(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.effectTag=2,r):n:(t.effectTag=2,r):r}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function c(e,t,r,n){return null===t||6!==t.tag?((t=Rc(r,e.mode,n)).return=e,t):((t=i(t,r)).return=e,t)}function l(e,t,r,n){return null!==t&&t.elementType===r.type?((n=i(t,r.props)).ref=Lo(e,t,r),n.return=e,n):((n=Dc(r.type,r.key,r.props,null,e.mode,n)).ref=Lo(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Mc(r,e.mode,n)).return=e,t):((t=i(t,r.children||[])).return=e,t)}function d(e,t,r,n,o){return null===t||7!==t.tag?((t=Nc(r,e.mode,n,o)).return=e,t):((t=i(t,r)).return=e,t)}function p(e,t,r){if("string"==typeof t||"number"==typeof t)return(t=Rc(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(r=Dc(t.type,t.key,t.props,null,e.mode,r)).ref=Lo(e,null,t),r.return=e,r;case te:return(t=Mc(t,e.mode,r)).return=e,t}if(xo(t)||me(t))return(t=Nc(t,e.mode,r,null)).return=e,t;Oo(e,t)}return null}function h(e,t,r,n){var i=null!==t?t.key:null;if("string"==typeof r||"number"==typeof r)return null!==i?null:c(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return r.key===i?r.type===re?d(e,t,r.props.children,n,i):l(e,t,r,n):null;case te:return r.key===i?u(e,t,r,n):null}if(xo(r)||me(r))return null!==i?null:d(e,t,r,n,null);Oo(e,r)}return null}function f(e,t,r,n,i){if("string"==typeof n||"number"==typeof n)return c(t,e=e.get(r)||null,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return e=e.get(null===n.key?r:n.key)||null,n.type===re?d(t,e,n.props.children,i,n.key):l(t,e,n,i);case te:return u(t,e=e.get(null===n.key?r:n.key)||null,n,i)}if(xo(n)||me(n))return d(t,e=e.get(r)||null,n,i,null);Oo(t,n)}return null}function m(i,a,s,c){for(var l=null,u=null,d=a,m=a=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=h(i,d,s[m],c);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(i,d),a=o(v,a,m),null===u?l=v:u.sibling=v,u=v,d=g}if(m===s.length)return r(i,d),l;if(null===d){for(;m<s.length;m++)null!==(d=p(i,s[m],c))&&(a=o(d,a,m),null===u?l=d:u.sibling=d,u=d);return l}for(d=n(i,d);m<s.length;m++)null!==(g=f(d,i,m,s[m],c))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=o(g,a,m),null===u?l=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(i,e)})),l}function g(i,s,c,l){var u=me(c);if("function"!=typeof u)throw Error(a(150));if(null==(c=u.call(c)))throw Error(a(151));for(var d=u=null,m=s,g=s=0,v=null,y=c.next();null!==m&&!y.done;g++,y=c.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=h(i,m,y.value,l);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=o(b,s,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return r(i,m),u;if(null===m){for(;!y.done;g++,y=c.next())null!==(y=p(i,y.value,l))&&(s=o(y,s,g),null===d?u=y:d.sibling=y,d=y);return u}for(m=n(i,m);!y.done;g++,y=c.next())null!==(y=f(m,i,g,y.value,l))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=o(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),u}return function(e,n,o,c){var l="object"==typeof o&&null!==o&&o.type===re&&null===o.key;l&&(o=o.props.children);var u="object"==typeof o&&null!==o;if(u)switch(o.$$typeof){case ee:e:{for(u=o.key,l=n;null!==l;){if(l.key===u){if(7===l.tag){if(o.type===re){r(e,l.sibling),(n=i(l,o.props.children)).return=e,e=n;break e}}else if(l.elementType===o.type){r(e,l.sibling),(n=i(l,o.props)).ref=Lo(e,l,o),n.return=e,e=n;break e}r(e,l);break}t(e,l),l=l.sibling}o.type===re?((n=Nc(o.props.children,e.mode,c,o.key)).return=e,e=n):((c=Dc(o.type,o.key,o.props,null,e.mode,c)).ref=Lo(e,n,o),c.return=e,e=c)}return s(e);case te:e:{for(l=o.key;null!==n;){if(n.key===l){if(4===n.tag&&n.stateNode.containerInfo===o.containerInfo&&n.stateNode.implementation===o.implementation){r(e,n.sibling),(n=i(n,o.children||[])).return=e,e=n;break e}r(e,n);break}t(e,n),n=n.sibling}(n=Mc(o,e.mode,c)).return=e,e=n}return s(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==n&&6===n.tag?(r(e,n.sibling),(n=i(n,o)).return=e,e=n):(r(e,n),(n=Rc(o,e.mode,c)).return=e,e=n),s(e);if(xo(o))return m(e,n,o,c);if(me(o))return g(e,n,o,c);if(u&&Oo(e,o),void 0===o&&!l)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return r(e,n)}}var To=So(!0),Po=So(!1),Io={},Ao={current:Io},Co={current:Io},ko={current:Io};function Do(e){if(e===Io)throw Error(a(174));return e}function No(e,t){switch(di(ko,t),di(Co,e),di(Ao,Io),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Re(null,"");break;default:t=Re(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ui(Ao),di(Ao,t)}function Ro(){ui(Ao),ui(Co),ui(ko)}function Mo(e){Do(ko.current);var t=Do(Ao.current),r=Re(t,e.type);t!==r&&(di(Co,e),di(Ao,r))}function jo(e){Co.current===e&&(ui(Ao),ui(Co))}var Fo={current:0};function Zo(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||r.data===fr||r.data===mr))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Bo(e,t){return{responder:e,props:t}}var Go=q.ReactCurrentDispatcher,Uo=q.ReactCurrentBatchConfig,Ho=0,zo=null,Vo=null,Yo=null,Wo=!1;function Ko(){throw Error(a(321))}function $o(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Zn(e[r],t[r]))return!1;return!0}function qo(e,t,r,n,i,o){if(Ho=o,zo=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Go.current=null===e||null===e.memoizedState?ba:_a,e=r(n,i),t.expirationTime===Ho){o=0;do{if(t.expirationTime=0,!(25>o))throw Error(a(301));o+=1,Yo=Vo=null,t.updateQueue=null,Go.current=Ea,e=r(n,i)}while(t.expirationTime===Ho)}if(Go.current=ya,t=null!==Vo&&null!==Vo.next,Ho=0,Yo=Vo=zo=null,Wo=!1,t)throw Error(a(300));return e}function Xo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Yo?zo.memoizedState=Yo=e:Yo=Yo.next=e,Yo}function Jo(){if(null===Vo){var e=zo.alternate;e=null!==e?e.memoizedState:null}else e=Vo.next;var t=null===Yo?zo.memoizedState:Yo.next;if(null!==t)Yo=t,Vo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Vo=e).memoizedState,baseState:Vo.baseState,baseQueue:Vo.baseQueue,queue:Vo.queue,next:null},null===Yo?zo.memoizedState=Yo=e:Yo=Yo.next=e}return Yo}function Qo(e,t){return"function"==typeof t?t(e):t}function ea(e){var t=Jo(),r=t.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=e;var n=Vo,i=n.baseQueue,o=r.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}n.baseQueue=i=o,r.pending=null}if(null!==i){i=i.next,n=n.baseState;var c=s=o=null,l=i;do{var u=l.expirationTime;if(u<Ho){var d={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===c?(s=c=d,o=n):c=c.next=d,u>zo.expirationTime&&(zo.expirationTime=u,pc(u))}else null!==c&&(c=c.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),dc(u,l.suspenseConfig),n=l.eagerReducer===e?l.eagerState:e(n,l.action);l=l.next}while(null!==l&&l!==i);null===c?o=n:c.next=s,Zn(n,t.memoizedState)||(ka=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=c,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function ta(e){var t=Jo(),r=t.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(null!==i){r.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);Zn(o,t.memoizedState)||(ka=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function ra(e){var t=Xo();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Qo,lastRenderedState:e}).dispatch=va.bind(null,zo,e),[t.memoizedState,e]}function na(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=zo.updateQueue)?(t={lastEffect:null},zo.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function ia(){return Jo().memoizedState}function oa(e,t,r,n){var i=Xo();zo.effectTag|=e,i.memoizedState=na(1|t,r,void 0,void 0===n?null:n)}function aa(e,t,r,n){var i=Jo();n=void 0===n?null:n;var o=void 0;if(null!==Vo){var a=Vo.memoizedState;if(o=a.destroy,null!==n&&$o(n,a.deps))return void na(t,r,o,n)}zo.effectTag|=e,i.memoizedState=na(1|t,r,o,n)}function sa(e,t){return oa(516,4,e,t)}function ca(e,t){return aa(516,4,e,t)}function la(e,t){return aa(4,2,e,t)}function ua(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function da(e,t,r){return r=null!=r?r.concat([e]):null,aa(4,2,ua.bind(null,t,e),r)}function pa(){}function ha(e,t){return Xo().memoizedState=[e,void 0===t?null:t],e}function fa(e,t){var r=Jo();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&$o(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function ma(e,t){var r=Jo();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&$o(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function ga(e,t,r){var n=Ui();zi(98>n?98:n,(function(){e(!0)})),zi(97<n?97:n,(function(){var n=Uo.suspense;Uo.suspense=void 0===t?null:t;try{e(!1),r()}finally{Uo.suspense=n}}))}function va(e,t,r){var n=Js(),i=mo.suspense;i={expirationTime:n=Qs(n,e,i),suspenseConfig:i,action:r,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===zo||null!==o&&o===zo)Wo=!0,i.expirationTime=Ho,zo.expirationTime=Ho;else{if(0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,r);if(i.eagerReducer=o,i.eagerState=s,Zn(s,a))return}catch(e){}ec(e,n)}}var ya={readContext:oo,useCallback:Ko,useContext:Ko,useEffect:Ko,useImperativeHandle:Ko,useLayoutEffect:Ko,useMemo:Ko,useReducer:Ko,useRef:Ko,useState:Ko,useDebugValue:Ko,useResponder:Ko,useDeferredValue:Ko,useTransition:Ko},ba={readContext:oo,useCallback:ha,useContext:oo,useEffect:sa,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,oa(4,2,ua.bind(null,t,e),r)},useLayoutEffect:function(e,t){return oa(4,2,e,t)},useMemo:function(e,t){var r=Xo();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Xo();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e=(e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=va.bind(null,zo,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},Xo().memoizedState=e},useState:ra,useDebugValue:pa,useResponder:Bo,useDeferredValue:function(e,t){var r=ra(e),n=r[0],i=r[1];return sa((function(){var r=Uo.suspense;Uo.suspense=void 0===t?null:t;try{i(e)}finally{Uo.suspense=r}}),[e,t]),n},useTransition:function(e){var t=ra(!1),r=t[0];return t=t[1],[ha(ga.bind(null,t,e),[t,e]),r]}},_a={readContext:oo,useCallback:fa,useContext:oo,useEffect:ca,useImperativeHandle:da,useLayoutEffect:la,useMemo:ma,useReducer:ea,useRef:ia,useState:function(){return ea(Qo)},useDebugValue:pa,useResponder:Bo,useDeferredValue:function(e,t){var r=ea(Qo),n=r[0],i=r[1];return ca((function(){var r=Uo.suspense;Uo.suspense=void 0===t?null:t;try{i(e)}finally{Uo.suspense=r}}),[e,t]),n},useTransition:function(e){var t=ea(Qo),r=t[0];return t=t[1],[fa(ga.bind(null,t,e),[t,e]),r]}},Ea={readContext:oo,useCallback:fa,useContext:oo,useEffect:ca,useImperativeHandle:da,useLayoutEffect:la,useMemo:ma,useReducer:ta,useRef:ia,useState:function(){return ta(Qo)},useDebugValue:pa,useResponder:Bo,useDeferredValue:function(e,t){var r=ta(Qo),n=r[0],i=r[1];return ca((function(){var r=Uo.suspense;Uo.suspense=void 0===t?null:t;try{i(e)}finally{Uo.suspense=r}}),[e,t]),n},useTransition:function(e){var t=ta(Qo),r=t[0];return t=t[1],[fa(ga.bind(null,t,e),[t,e]),r]}},wa=null,xa=null,La=!1;function Oa(e,t){var r=Ac(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function Sa(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Ta(e){if(La){var t=xa;if(t){var r=t;if(!Sa(e,t)){if(!(t=wr(r.nextSibling))||!Sa(e,t))return e.effectTag=-1025&e.effectTag|2,La=!1,void(wa=e);Oa(wa,r)}wa=e,xa=wr(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,La=!1,wa=e}}function Pa(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;wa=e}function Ia(e){if(e!==wa)return!1;if(!La)return Pa(e),La=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!br(t,e.memoizedProps))for(t=xa;t;)Oa(e,t),t=wr(t.nextSibling);if(Pa(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){xa=wr(e.nextSibling);break e}t--}else"$"!==r&&r!==mr&&r!==fr||t++}e=e.nextSibling}xa=null}}else xa=wa?wr(e.stateNode.nextSibling):null;return!0}function Aa(){xa=wa=null,La=!1}var Ca=q.ReactCurrentOwner,ka=!1;function Da(e,t,r,n){t.child=null===e?Po(t,null,r,n):To(t,e.child,r,n)}function Na(e,t,r,n,i){r=r.render;var o=t.ref;return io(t,i),n=qo(e,t,r,n,o,i),null===e||ka?(t.effectTag|=1,Da(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),qa(e,t,i))}function Ra(e,t,r,n,i,o){if(null===e){var a=r.type;return"function"!=typeof a||Cc(a)||void 0!==a.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Dc(r.type,null,n,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ma(e,t,a,n,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(r=null!==(r=r.compare)?r:Gn)(i,n)&&e.ref===t.ref)?qa(e,t,o):(t.effectTag|=1,(e=kc(a,n)).ref=t.ref,e.return=t,t.child=e)}function Ma(e,t,r,n,i,o){return null!==e&&Gn(e.memoizedProps,n)&&e.ref===t.ref&&(ka=!1,i<o)?(t.expirationTime=e.expirationTime,qa(e,t,o)):Fa(e,t,r,n,o)}function ja(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.effectTag|=128)}function Fa(e,t,r,n,i){var o=vi(r)?mi:hi.current;return o=gi(t,o),io(t,i),r=qo(e,t,r,n,o,i),null===e||ka?(t.effectTag|=1,Da(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),qa(e,t,i))}function Za(e,t,r,n,i){if(vi(r)){var o=!0;Ei(t)}else o=!1;if(io(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),_o(t,r,n),wo(t,r,n,i),n=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var c=a.context,l=r.contextType;l="object"==typeof l&&null!==l?oo(l):gi(t,l=vi(r)?mi:hi.current);var u=r.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==n||c!==l)&&Eo(t,a,n,l),ao=!1;var p=t.memoizedState;a.state=p,ho(t,n,a,i),c=t.memoizedState,s!==n||p!==c||fi.current||ao?("function"==typeof u&&(vo(t,r,u,n),c=t.memoizedState),(s=ao||bo(t,r,s,n,p,c,l))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=n,t.memoizedState=c),a.props=n,a.state=c,a.context=l,n=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),n=!1)}else a=t.stateNode,co(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:qi(t.type,s),c=a.context,l="object"==typeof(l=r.contextType)&&null!==l?oo(l):gi(t,l=vi(r)?mi:hi.current),(d="function"==typeof(u=r.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==n||c!==l)&&Eo(t,a,n,l),ao=!1,c=t.memoizedState,a.state=c,ho(t,n,a,i),p=t.memoizedState,s!==n||c!==p||fi.current||ao?("function"==typeof u&&(vo(t,r,u,n),p=t.memoizedState),(u=ao||bo(t,r,s,n,c,p,l))?(d||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(n,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,p,l)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=n,t.memoizedState=p),a.props=n,a.state=p,a.context=l,n=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),n=!1);return Ba(e,t,r,n,o,i)}function Ba(e,t,r,n,i,o){ja(e,t);var a=0!=(64&t.effectTag);if(!n&&!a)return i&&wi(t,r,!1),qa(e,t,o);n=t.stateNode,Ca.current=t;var s=a&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.effectTag|=1,null!==e&&a?(t.child=To(t,e.child,null,o),t.child=To(t,null,s,o)):Da(e,t,s,o),t.memoizedState=n.state,i&&wi(t,r,!0),t.child}function Ga(e){var t=e.stateNode;t.pendingContext?bi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&bi(0,t.context,!1),No(e,t.containerInfo)}var Ua,Ha,za,Va={dehydrated:null,retryTime:0};function Ya(e,t,r){var n,i=t.mode,o=t.pendingProps,a=Fo.current,s=!1;if((n=0!=(64&t.effectTag))||(n=0!=(2&a)&&(null===e||null!==e.memoizedState)),n?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),di(Fo,1&a),null===e){if(void 0!==o.fallback&&Ta(t),s){if(s=o.fallback,(o=Nc(null,i,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(r=Nc(s,i,r,null)).return=t,o.sibling=r,t.memoizedState=Va,t.child=o,r}return i=o.children,t.memoizedState=null,t.child=Po(t,null,i,r)}if(null!==e.memoizedState){if(i=(e=e.child).sibling,s){if(o=o.fallback,(r=kc(e,e.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(r.child=s;null!==s;)s.return=r,s=s.sibling;return(i=kc(i,o)).return=t,r.sibling=i,r.childExpirationTime=0,t.memoizedState=Va,t.child=r,i}return r=To(t,e.child,o.children,r),t.memoizedState=null,t.child=r}if(e=e.child,s){if(s=o.fallback,(o=Nc(null,i,0,null)).return=t,o.child=e,null!==e&&(e.return=o),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(r=Nc(s,i,r,null)).return=t,o.sibling=r,r.effectTag|=2,o.childExpirationTime=0,t.memoizedState=Va,t.child=o,r}return t.memoizedState=null,t.child=To(t,e,o.children,r)}function Wa(e,t){e.expirationTime<t&&(e.expirationTime=t);var r=e.alternate;null!==r&&r.expirationTime<t&&(r.expirationTime=t),no(e.return,t)}function Ka(e,t,r,n,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function $a(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(Da(e,t,n.children,r),0!=(2&(n=Fo.current)))n=1&n|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Wa(e,r);else if(19===e.tag)Wa(e,r);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(di(Fo,n),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;null!==r;)null!==(e=r.alternate)&&null===Zo(e)&&(i=r),r=r.sibling;null===(r=i)?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Ka(t,!1,i,r,o,t.lastEffect);break;case"backwards":for(r=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Zo(e)){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Ka(t,!0,r,null,o,t.lastEffect);break;case"together":Ka(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function qa(e,t,r){null!==e&&(t.dependencies=e.dependencies);var n=t.expirationTime;if(0!==n&&pc(n),t.childExpirationTime<r)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(r=kc(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=kc(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Xa(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ja(e,t,r){var n=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return vi(t.type)&&yi(),null;case 3:return Ro(),ui(fi),ui(hi),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||!Ia(t)||(t.effectTag|=4),null;case 5:jo(t),r=Do(ko.current);var o=t.type;if(null!==e&&null!=t.stateNode)Ha(e,t,o,n,r),e.ref!==t.ref&&(t.effectTag|=128);else{if(!n){if(null===t.stateNode)throw Error(a(166));return null}if(e=Do(Ao.current),Ia(t)){n=t.stateNode,o=t.type;var s=t.memoizedProps;switch(n[Or]=t,n[Sr]=s,o){case"iframe":case"object":case"embed":Yt("load",n);break;case"video":case"audio":for(e=0;e<$e.length;e++)Yt($e[e],n);break;case"source":Yt("error",n);break;case"img":case"image":case"link":Yt("error",n),Yt("load",n);break;case"form":Yt("reset",n),Yt("submit",n);break;case"details":Yt("toggle",n);break;case"input":xe(n,s),Yt("invalid",n),ar(r,"onChange");break;case"select":n._wrapperState={wasMultiple:!!s.multiple},Yt("invalid",n),ar(r,"onChange");break;case"textarea":Ce(n,s),Yt("invalid",n),ar(r,"onChange")}for(var c in nr(o,s),e=null,s)if(s.hasOwnProperty(c)){var l=s[c];"children"===c?"string"==typeof l?n.textContent!==l&&(e=["children",l]):"number"==typeof l&&n.textContent!==""+l&&(e=["children",""+l]):L.hasOwnProperty(c)&&null!=l&&ar(r,c)}switch(o){case"input":_e(n),Se(n,s,!0);break;case"textarea":_e(n),De(n);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(n.onclick=sr)}r=e,t.updateQueue=r,null!==r&&(t.effectTag|=4)}else{switch(c=9===r.nodeType?r:r.ownerDocument,e===or&&(e=Ne(o)),e===or?"script"===o?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=c.createElement(o,{is:n.is}):(e=c.createElement(o),"select"===o&&(c=e,n.multiple?c.multiple=!0:n.size&&(c.size=n.size))):e=c.createElementNS(e,o),e[Or]=t,e[Sr]=n,Ua(e,t),t.stateNode=e,c=ir(o,n),o){case"iframe":case"object":case"embed":Yt("load",e),l=n;break;case"video":case"audio":for(l=0;l<$e.length;l++)Yt($e[l],e);l=n;break;case"source":Yt("error",e),l=n;break;case"img":case"image":case"link":Yt("error",e),Yt("load",e),l=n;break;case"form":Yt("reset",e),Yt("submit",e),l=n;break;case"details":Yt("toggle",e),l=n;break;case"input":xe(e,n),l=we(e,n),Yt("invalid",e),ar(r,"onChange");break;case"option":l=Pe(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},l=i({},n,{value:void 0}),Yt("invalid",e),ar(r,"onChange");break;case"textarea":Ce(e,n),l=Ae(e,n),Yt("invalid",e),ar(r,"onChange");break;default:l=n}nr(o,l);var u=l;for(s in u)if(u.hasOwnProperty(s)){var d=u[s];"style"===s?tr(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&Fe(e,d):"children"===s?"string"==typeof d?("textarea"!==o||""!==d)&&Ze(e,d):"number"==typeof d&&Ze(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(L.hasOwnProperty(s)?null!=d&&ar(r,s):null!=d&&X(e,s,d,c))}switch(o){case"input":_e(e),Se(e,n,!1);break;case"textarea":_e(e),De(e);break;case"option":null!=n.value&&e.setAttribute("value",""+ye(n.value));break;case"select":e.multiple=!!n.multiple,null!=(r=n.value)?Ie(e,!!n.multiple,r,!1):null!=n.defaultValue&&Ie(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof l.onClick&&(e.onclick=sr)}yr(o,n)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)za(0,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(a(166));r=Do(ko.current),Do(Ao.current),Ia(t)?(r=t.stateNode,n=t.memoizedProps,r[Or]=t,r.nodeValue!==n&&(t.effectTag|=4)):((r=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[Or]=t,t.stateNode=r)}return null;case 13:return ui(Fo),n=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=r,t):(r=null!==n,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Ia(t):(n=null!==(o=e.memoizedState),r||null===o||null!==(o=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=o,o.nextEffect=s):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Fo.current)?Ds===Ss&&(Ds=Ts):(Ds!==Ss&&Ds!==Ts||(Ds=Ps),0!==Fs&&null!==As&&(Zc(As,ks),Bc(As,Fs)))),(r||n)&&(t.effectTag|=4),null);case 4:return Ro(),null;case 10:return ro(t),null;case 19:if(ui(Fo),null===(n=t.memoizedState))return null;if(o=0!=(64&t.effectTag),null===(s=n.rendering)){if(o)Xa(n,!1);else if(Ds!==Ss||null!==e&&0!=(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=Zo(s))){for(t.effectTag|=64,Xa(n,!1),null!==(o=e.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===n.lastEffect&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=t.child;null!==n;)s=r,(o=n).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(e=o.alternate)?(o.childExpirationTime=0,o.expirationTime=s,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,s=e.dependencies,o.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),n=n.sibling;return di(Fo,1&Fo.current|2),t.child}s=s.sibling}}else{if(!o)if(null!==(e=Zo(s))){if(t.effectTag|=64,o=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.effectTag|=4),Xa(n,!0),null===n.tail&&"hidden"===n.tailMode&&!s.alternate)return null!==(t=t.lastEffect=n.lastEffect)&&(t.nextEffect=null),null}else 2*Gi()-n.renderingStartTime>n.tailExpiration&&1<r&&(t.effectTag|=64,o=!0,Xa(n,!1),t.expirationTime=t.childExpirationTime=r-1);n.isBackwards?(s.sibling=t.child,t.child=s):(null!==(r=n.last)?r.sibling=s:t.child=s,n.last=s)}return null!==n.tail?(0===n.tailExpiration&&(n.tailExpiration=Gi()+500),r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Gi(),r.sibling=null,t=Fo.current,di(Fo,o?1&t|2:1&t),r):null}throw Error(a(156,t.tag))}function Qa(e){switch(e.tag){case 1:vi(e.type)&&yi();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Ro(),ui(fi),ui(hi),0!=(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return jo(e),null;case 13:return ui(Fo),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return ui(Fo),null;case 4:return Ro(),null;case 10:return ro(e),null;default:return null}}function es(e,t){return{value:e,source:t,stack:ve(t)}}Ua=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Ha=function(e,t,r,n,o){var a=e.memoizedProps;if(a!==n){var s,c,l=t.stateNode;switch(Do(Ao.current),e=null,r){case"input":a=we(l,a),n=we(l,n),e=[];break;case"option":a=Pe(l,a),n=Pe(l,n),e=[];break;case"select":a=i({},a,{value:void 0}),n=i({},n,{value:void 0}),e=[];break;case"textarea":a=Ae(l,a),n=Ae(l,n),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof n.onClick&&(l.onclick=sr)}for(s in nr(r,n),r=null,a)if(!n.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(c in l=a[s])l.hasOwnProperty(c)&&(r||(r={}),r[c]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(L.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in n){var u=n[s];if(l=null!=a?a[s]:void 0,n.hasOwnProperty(s)&&u!==l&&(null!=u||null!=l))if("style"===s)if(l){for(c in l)!l.hasOwnProperty(c)||u&&u.hasOwnProperty(c)||(r||(r={}),r[c]="");for(c in u)u.hasOwnProperty(c)&&l[c]!==u[c]&&(r||(r={}),r[c]=u[c])}else r||(e||(e=[]),e.push(s,r)),r=u;else"dangerouslySetInnerHTML"===s?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(e=e||[]).push(s,u)):"children"===s?l===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(s,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(L.hasOwnProperty(s)?(null!=u&&ar(o,s),e||l===u||(e=[])):(e=e||[]).push(s,u))}r&&(e=e||[]).push("style",r),o=e,(t.updateQueue=o)&&(t.effectTag|=4)}},za=function(e,t,r,n){r!==n&&(t.effectTag|=4)};var ts="function"==typeof WeakSet?WeakSet:Set;function rs(e,t){var r=t.source,n=t.stack;null===n&&null!==r&&(n=ve(r)),null!==r&&ge(r.type),t=t.value,null!==e&&1===e.tag&&ge(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ns(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Lc(e,t)}else t.current=null}function is(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&t.effectTag&&null!==e){var r=e.memoizedProps,n=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?r:qi(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(a(163))}function os(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.destroy;r.destroy=void 0,void 0!==n&&n()}r=r.next}while(r!==t)}}function as(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function ss(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:return void as(3,r);case 1:if(e=r.stateNode,4&r.effectTag)if(null===t)e.componentDidMount();else{var n=r.elementType===r.type?t.memoizedProps:qi(r.type,t.memoizedProps);e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=r.updateQueue)&&fo(r,t,e));case 3:if(null!==(t=r.updateQueue)){if(e=null,null!==r.child)switch(r.child.tag){case 5:case 1:e=r.child.stateNode}fo(r,t,e)}return;case 5:return e=r.stateNode,void(null===t&&4&r.effectTag&&yr(r.type,r.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===r.memoizedState&&(r=r.alternate,null!==r&&(r=r.memoizedState,null!==r&&(r=r.dehydrated,null!==r&&Rt(r)))))}throw Error(a(163))}function cs(e,t,r){switch("function"==typeof Pc&&Pc(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e.next;zi(97<r?97:r,(function(){var e=n;do{var r=e.destroy;if(void 0!==r){var i=t;try{r()}catch(e){Lc(i,e)}}e=e.next}while(e!==n)}))}break;case 1:ns(t),"function"==typeof(r=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Lc(e,t)}}(t,r);break;case 5:ns(t);break;case 4:fs(e,t,r)}}function ls(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&ls(t)}function us(e){return 5===e.tag||3===e.tag||4===e.tag}function ds(e){e:{for(var t=e.return;null!==t;){if(us(t)){var r=t;break e}t=t.return}throw Error(a(160))}switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:case 4:t=t.containerInfo,n=!0;break;default:throw Error(a(161))}16&r.effectTag&&(Ze(t,""),r.effectTag&=-17);e:t:for(r=e;;){for(;null===r.sibling;){if(null===r.return||us(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;5!==r.tag&&6!==r.tag&&18!==r.tag;){if(2&r.effectTag)continue t;if(null===r.child||4===r.tag)continue t;r.child.return=r,r=r.child}if(!(2&r.effectTag)){r=r.stateNode;break e}}n?ps(e,r,t):hs(e,r,t)}function ps(e,t,r){var n=e.tag,i=5===n||6===n;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=sr));else if(4!==n&&null!==(e=e.child))for(ps(e,t,r),e=e.sibling;null!==e;)ps(e,t,r),e=e.sibling}function hs(e,t,r){var n=e.tag,i=5===n||6===n;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(hs(e,t,r),e=e.sibling;null!==e;)hs(e,t,r),e=e.sibling}function fs(e,t,r){for(var n,i,o=t,s=!1;;){if(!s){s=o.return;e:for(;;){if(null===s)throw Error(a(160));switch(n=s.stateNode,s.tag){case 5:i=!1;break e;case 3:case 4:n=n.containerInfo,i=!0;break e}s=s.return}s=!0}if(5===o.tag||6===o.tag){e:for(var c=e,l=o,u=r,d=l;;)if(cs(c,d,u),null!==d.child&&4!==d.tag)d.child.return=d,d=d.child;else{if(d===l)break e;for(;null===d.sibling;){if(null===d.return||d.return===l)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}i?(c=n,l=o.stateNode,8===c.nodeType?c.parentNode.removeChild(l):c.removeChild(l)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(cs(e,o,r),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(s=!1)}o.sibling.return=o.return,o=o.sibling}}function ms(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void os(3,t);case 1:case 12:case 17:return;case 5:var r=t.stateNode;if(null!=r){var n=t.memoizedProps,i=null!==e?e.memoizedProps:n;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(r[Sr]=n,"input"===e&&"radio"===n.type&&null!=n.name&&Le(r,n),ir(e,i),t=ir(e,n),i=0;i<o.length;i+=2){var s=o[i],c=o[i+1];"style"===s?tr(r,c):"dangerouslySetInnerHTML"===s?Fe(r,c):"children"===s?Ze(r,c):X(r,s,c,t)}switch(e){case"input":Oe(r,n);break;case"textarea":ke(r,n);break;case"select":t=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,null!=(e=n.value)?Ie(r,!!n.multiple,e,!1):t!==!!n.multiple&&(null!=n.defaultValue?Ie(r,!!n.multiple,n.defaultValue,!0):Ie(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Rt(t.containerInfo)));case 13:if(r=t,null===t.memoizedState?n=!1:(n=!0,r=t.child,Bs=Gi()),null!==r)e:for(e=r;;){if(5===e.tag)o=e.stateNode,n?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=e.stateNode,i=null!=(i=e.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,o.style.display=er("display",i));else if(6===e.tag)e.stateNode.nodeValue=n?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(o=e.child.sibling).return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===r)break;for(;null===e.sibling;){if(null===e.return||e.return===r)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void gs(t);case 19:return void gs(t)}throw Error(a(163))}function gs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new ts),t.forEach((function(t){var n=Sc.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}var vs="function"==typeof WeakMap?WeakMap:Map;function ys(e,t,r){(r=lo(r,null)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Us||(Us=!0,Hs=n),rs(e,t)},r}function bs(e,t,r){(r=lo(r,null)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var i=t.value;r.payload=function(){return rs(e,t),n(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(r.callback=function(){"function"!=typeof n&&(null===zs?zs=new Set([this]):zs.add(this),rs(e,t));var r=t.stack;this.componentDidCatch(t.value,{componentStack:null!==r?r:""})}),r}var _s,Es=Math.ceil,ws=q.ReactCurrentDispatcher,xs=q.ReactCurrentOwner,Ls=16,Os=32,Ss=0,Ts=3,Ps=4,Is=0,As=null,Cs=null,ks=0,Ds=Ss,Ns=null,Rs=1073741823,Ms=1073741823,js=null,Fs=0,Zs=!1,Bs=0,Gs=null,Us=!1,Hs=null,zs=null,Vs=!1,Ys=null,Ws=90,Ks=null,$s=0,qs=null,Xs=0;function Js(){return 0!=(48&Is)?1073741821-(Gi()/10|0):0!==Xs?Xs:Xs=1073741821-(Gi()/10|0)}function Qs(e,t,r){if(0==(2&(t=t.mode)))return 1073741823;var n=Ui();if(0==(4&t))return 99===n?1073741823:1073741822;if(0!=(Is&Ls))return ks;if(null!==r)e=$i(e,0|r.timeoutMs||5e3,250);else switch(n){case 99:e=1073741823;break;case 98:e=$i(e,150,100);break;case 97:case 96:e=$i(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==As&&e===ks&&--e,e}function ec(e,t){if(50<$s)throw $s=0,qs=null,Error(a(185));if(null!==(e=tc(e,t))){var r=Ui();1073741823===t?0!=(8&Is)&&0==(48&Is)?oc(e):(nc(e),0===Is&&Wi()):nc(e),0==(4&Is)||98!==r&&99!==r||(null===Ks?Ks=new Map([[e,t]]):(void 0===(r=Ks.get(e))||r>t)&&Ks.set(e,t))}}function tc(e,t){e.expirationTime<t&&(e.expirationTime=t);var r=e.alternate;null!==r&&r.expirationTime<t&&(r.expirationTime=t);var n=e.return,i=null;if(null===n&&3===e.tag)i=e.stateNode;else for(;null!==n;){if(r=n.alternate,n.childExpirationTime<t&&(n.childExpirationTime=t),null!==r&&r.childExpirationTime<t&&(r.childExpirationTime=t),null===n.return&&3===n.tag){i=n.stateNode;break}n=n.return}return null!==i&&(As===i&&(pc(t),Ds===Ps&&Zc(i,ks)),Bc(i,t)),i}function rc(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Fc(e,t=e.firstPendingTime))return t;var r=e.lastPingedTime;return 2>=(e=r>(e=e.nextKnownPendingLevel)?r:e)&&t!==e?0:e}function nc(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Yi(oc.bind(null,e));else{var t=rc(e),r=e.callbackNode;if(0===t)null!==r&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var n=Js();if(n=1073741823===t?99:1===t||2===t?95:0>=(n=10*(1073741821-t)-10*(1073741821-n))?99:250>=n?98:5250>=n?97:95,null!==r){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=n)return;r!==Ni&&Oi(r)}e.callbackExpirationTime=t,e.callbackPriority=n,t=1073741823===t?Yi(oc.bind(null,e)):Vi(n,ic.bind(null,e),{timeout:10*(1073741821-t)-Gi()}),e.callbackNode=t}}}function ic(e,t){if(Xs=0,t)return Gc(e,t=Js()),nc(e),null;var r=rc(e);if(0!==r){if(t=e.callbackNode,0!=(48&Is))throw Error(a(327));if(Ec(),e===As&&r===ks||cc(e,r),null!==Cs){var n=Is;Is|=Ls;for(var i=uc();;)try{fc();break}catch(t){lc(e,t)}if(to(),Is=n,ws.current=i,1===Ds)throw t=Ns,cc(e,r),Zc(e,r),nc(e),t;if(null===Cs)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=r,n=Ds,As=null,n){case Ss:case 1:throw Error(a(345));case 2:Gc(e,2<r?2:r);break;case Ts:if(Zc(e,r),r===(n=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=vc(i)),1073741823===Rs&&10<(i=Bs+500-Gi())){if(Zs){var o=e.lastPingedTime;if(0===o||o>=r){e.lastPingedTime=r,cc(e,r);break}}if(0!==(o=rc(e))&&o!==r)break;if(0!==n&&n!==r){e.lastPingedTime=n;break}e.timeoutHandle=_r(yc.bind(null,e),i);break}yc(e);break;case Ps:if(Zc(e,r),r===(n=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=vc(i)),Zs&&(0===(i=e.lastPingedTime)||i>=r)){e.lastPingedTime=r,cc(e,r);break}if(0!==(i=rc(e))&&i!==r)break;if(0!==n&&n!==r){e.lastPingedTime=n;break}if(1073741823!==Ms?n=10*(1073741821-Ms)-Gi():1073741823===Rs?n=0:(n=10*(1073741821-Rs)-5e3,0>(n=(i=Gi())-n)&&(n=0),(r=10*(1073741821-r)-i)<(n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Es(n/1960))-n)&&(n=r)),10<n){e.timeoutHandle=_r(yc.bind(null,e),n);break}yc(e);break;case 5:if(1073741823!==Rs&&null!==js){o=Rs;var s=js;if(0>=(n=0|s.busyMinDurationMs)?n=0:(i=0|s.busyDelayMs,n=(o=Gi()-(10*(1073741821-o)-(0|s.timeoutMs||5e3)))<=i?0:i+n-o),10<n){Zc(e,r),e.timeoutHandle=_r(yc.bind(null,e),n);break}}yc(e);break;default:throw Error(a(329))}if(nc(e),e.callbackNode===t)return ic.bind(null,e)}}return null}function oc(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&Is))throw Error(a(327));if(Ec(),e===As&&t===ks||cc(e,t),null!==Cs){var r=Is;Is|=Ls;for(var n=uc();;)try{hc();break}catch(t){lc(e,t)}if(to(),Is=r,ws.current=n,1===Ds)throw r=Ns,cc(e,t),Zc(e,t),nc(e),r;if(null!==Cs)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,As=null,yc(e),nc(e)}return null}function ac(e,t){var r=Is;Is|=1;try{return e(t)}finally{0===(Is=r)&&Wi()}}function sc(e,t){var r=Is;Is&=-2,Is|=8;try{return e(t)}finally{0===(Is=r)&&Wi()}}function cc(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,Er(r)),null!==Cs)for(r=Cs.return;null!==r;){var n=r;switch(n.tag){case 1:null!=(n=n.type.childContextTypes)&&yi();break;case 3:Ro(),ui(fi),ui(hi);break;case 5:jo(n);break;case 4:Ro();break;case 13:case 19:ui(Fo);break;case 10:ro(n)}r=r.return}As=e,Cs=kc(e.current,null),ks=t,Ds=Ss,Ns=null,Ms=Rs=1073741823,js=null,Fs=0,Zs=!1}function lc(e,t){for(;;){try{if(to(),Go.current=ya,Wo)for(var r=zo.memoizedState;null!==r;){var n=r.queue;null!==n&&(n.pending=null),r=r.next}if(Ho=0,Yo=Vo=zo=null,Wo=!1,null===Cs||null===Cs.return)return Ds=1,Ns=t,Cs=null;e:{var i=e,o=Cs.return,a=Cs,s=t;if(t=ks,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s;if(0==(2&a.mode)){var l=a.alternate;l?(a.updateQueue=l.updateQueue,a.memoizedState=l.memoizedState,a.expirationTime=l.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var u=0!=(1&Fo.current),d=o;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var f=d.memoizedProps;p=void 0!==f.fallback&&(!0!==f.unstable_avoidThisFallback||!u)}}if(p){var m=d.updateQueue;if(null===m){var g=new Set;g.add(c),d.updateQueue=g}else m.add(c);if(0==(2&d.mode)){if(d.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var v=lo(1073741823,null);v.tag=2,uo(a,v)}a.expirationTime=1073741823;break e}s=void 0,a=t;var y=i.pingCache;if(null===y?(y=i.pingCache=new vs,s=new Set,y.set(c,s)):void 0===(s=y.get(c))&&(s=new Set,y.set(c,s)),!s.has(a)){s.add(a);var b=Oc.bind(null,i,c,a);c.then(b,b)}d.effectTag|=4096,d.expirationTime=t;break e}d=d.return}while(null!==d);s=Error((ge(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ve(a))}5!==Ds&&(Ds=2),s=es(s,a),d=o;do{switch(d.tag){case 3:c=s,d.effectTag|=4096,d.expirationTime=t,po(d,ys(d,c,t));break e;case 1:c=s;var _=d.type,E=d.stateNode;if(0==(64&d.effectTag)&&("function"==typeof _.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===zs||!zs.has(E)))){d.effectTag|=4096,d.expirationTime=t,po(d,bs(d,c,t));break e}}d=d.return}while(null!==d)}Cs=gc(Cs)}catch(e){t=e;continue}break}}function uc(){var e=ws.current;return ws.current=ya,null===e?ya:e}function dc(e,t){e<Rs&&2<e&&(Rs=e),null!==t&&e<Ms&&2<e&&(Ms=e,js=t)}function pc(e){e>Fs&&(Fs=e)}function hc(){for(;null!==Cs;)Cs=mc(Cs)}function fc(){for(;null!==Cs&&!Ri();)Cs=mc(Cs)}function mc(e){var t=_s(e.alternate,e,ks);return e.memoizedProps=e.pendingProps,null===t&&(t=gc(e)),xs.current=null,t}function gc(e){Cs=e;do{var t=Cs.alternate;if(e=Cs.return,0==(2048&Cs.effectTag)){if(t=Ja(t,Cs,ks),1===ks||1!==Cs.childExpirationTime){for(var r=0,n=Cs.child;null!==n;){var i=n.expirationTime,o=n.childExpirationTime;i>r&&(r=i),o>r&&(r=o),n=n.sibling}Cs.childExpirationTime=r}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Cs.firstEffect),null!==Cs.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Cs.firstEffect),e.lastEffect=Cs.lastEffect),1<Cs.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Cs:e.firstEffect=Cs,e.lastEffect=Cs))}else{if(null!==(t=Qa(Cs)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Cs.sibling))return t;Cs=e}while(null!==Cs);return Ds===Ss&&(Ds=5),null}function vc(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function yc(e){var t=Ui();return zi(99,bc.bind(null,e,t)),null}function bc(e,t){do{Ec()}while(null!==Ys);if(0!=(48&Is))throw Error(a(327));var r=e.finishedWork,n=e.finishedExpirationTime;if(null===r)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,r===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=vc(r);if(e.firstPendingTime=i,n<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:n<=e.firstSuspendedTime&&(e.firstSuspendedTime=n-1),n<=e.lastPingedTime&&(e.lastPingedTime=0),n<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===As&&(Cs=As=null,ks=0),1<r.effectTag?null!==r.lastEffect?(r.lastEffect.nextEffect=r,i=r.firstEffect):i=r:i=r.firstEffect,null!==i){var o=Is;Is|=Os,xs.current=null,gr=Vt;var s=pr();if(hr(s)){if("selectionStart"in s)var c={start:s.selectionStart,end:s.selectionEnd};else e:{var l=(c=(c=s.ownerDocument)&&c.defaultView||window).getSelection&&c.getSelection();if(l&&0!==l.rangeCount){c=l.anchorNode;var u=l.anchorOffset,d=l.focusNode;l=l.focusOffset;try{c.nodeType,d.nodeType}catch(e){c=null;break e}var p=0,h=-1,f=-1,m=0,g=0,v=s,y=null;t:for(;;){for(var b;v!==c||0!==u&&3!==v.nodeType||(h=p+u),v!==d||0!==l&&3!==v.nodeType||(f=p+l),3===v.nodeType&&(p+=v.nodeValue.length),null!==(b=v.firstChild);)y=v,v=b;for(;;){if(v===s)break t;if(y===c&&++m===u&&(h=p),y===d&&++g===l&&(f=p),null!==(b=v.nextSibling))break;y=(v=y).parentNode}v=b}c=-1===h||-1===f?null:{start:h,end:f}}else c=null}c=c||{start:0,end:0}}else c=null;vr={activeElementDetached:null,focusedElem:s,selectionRange:c},Vt=!1,Gs=i;do{try{_c()}catch(e){if(null===Gs)throw Error(a(330));Lc(Gs,e),Gs=Gs.nextEffect}}while(null!==Gs);Gs=i;do{try{for(s=e,c=t;null!==Gs;){var _=Gs.effectTag;if(16&_&&Ze(Gs.stateNode,""),128&_){var E=Gs.alternate;if(null!==E){var w=E.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&_){case 2:ds(Gs),Gs.effectTag&=-3;break;case 6:ds(Gs),Gs.effectTag&=-3,ms(Gs.alternate,Gs);break;case 1024:Gs.effectTag&=-1025;break;case 1028:Gs.effectTag&=-1025,ms(Gs.alternate,Gs);break;case 4:ms(Gs.alternate,Gs);break;case 8:fs(s,u=Gs,c),ls(u)}Gs=Gs.nextEffect}}catch(e){if(null===Gs)throw Error(a(330));Lc(Gs,e),Gs=Gs.nextEffect}}while(null!==Gs);if(w=vr,E=pr(),_=w.focusedElem,c=w.selectionRange,E!==_&&_&&_.ownerDocument&&dr(_.ownerDocument.documentElement,_)){null!==c&&hr(_)&&(E=c.start,void 0===(w=c.end)&&(w=E),"selectionStart"in _?(_.selectionStart=E,_.selectionEnd=Math.min(w,_.value.length)):(w=(E=_.ownerDocument||document)&&E.defaultView||window).getSelection&&(w=w.getSelection(),u=_.textContent.length,s=Math.min(c.start,u),c=void 0===c.end?s:Math.min(c.end,u),!w.extend&&s>c&&(u=c,c=s,s=u),u=ur(_,s),d=ur(_,c),u&&d&&(1!==w.rangeCount||w.anchorNode!==u.node||w.anchorOffset!==u.offset||w.focusNode!==d.node||w.focusOffset!==d.offset)&&((E=E.createRange()).setStart(u.node,u.offset),w.removeAllRanges(),s>c?(w.addRange(E),w.extend(d.node,d.offset)):(E.setEnd(d.node,d.offset),w.addRange(E))))),E=[];for(w=_;w=w.parentNode;)1===w.nodeType&&E.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof _.focus&&_.focus(),_=0;_<E.length;_++)(w=E[_]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Vt=!!gr,vr=gr=null,e.current=r,Gs=i;do{try{for(_=e;null!==Gs;){var x=Gs.effectTag;if(36&x&&ss(_,Gs.alternate,Gs),128&x){E=void 0;var L=Gs.ref;if(null!==L){var O=Gs.stateNode;Gs.tag,E=O,"function"==typeof L?L(E):L.current=E}}Gs=Gs.nextEffect}}catch(e){if(null===Gs)throw Error(a(330));Lc(Gs,e),Gs=Gs.nextEffect}}while(null!==Gs);Gs=null,Mi(),Is=o}else e.current=r;if(Vs)Vs=!1,Ys=e,Ws=t;else for(Gs=i;null!==Gs;)t=Gs.nextEffect,Gs.nextEffect=null,Gs=t;if(0===(t=e.firstPendingTime)&&(zs=null),1073741823===t?e===qs?$s++:($s=0,qs=e):$s=0,"function"==typeof Tc&&Tc(r.stateNode,n),nc(e),Us)throw Us=!1,e=Hs,Hs=null,e;return 0!=(8&Is)||Wi(),null}function _c(){for(;null!==Gs;){var e=Gs.effectTag;0!=(256&e)&&is(Gs.alternate,Gs),0==(512&e)||Vs||(Vs=!0,Vi(97,(function(){return Ec(),null}))),Gs=Gs.nextEffect}}function Ec(){if(90!==Ws){var e=97<Ws?97:Ws;return Ws=90,zi(e,wc)}}function wc(){if(null===Ys)return!1;var e=Ys;if(Ys=null,0!=(48&Is))throw Error(a(331));var t=Is;for(Is|=Os,e=e.current.firstEffect;null!==e;){try{var r=e;if(0!=(512&r.effectTag))switch(r.tag){case 0:case 11:case 15:case 22:os(5,r),as(5,r)}}catch(t){if(null===e)throw Error(a(330));Lc(e,t)}r=e.nextEffect,e.nextEffect=null,e=r}return Is=t,Wi(),!0}function xc(e,t,r){uo(e,t=ys(e,t=es(r,t),1073741823)),null!==(e=tc(e,1073741823))&&nc(e)}function Lc(e,t){if(3===e.tag)xc(e,e,t);else for(var r=e.return;null!==r;){if(3===r.tag){xc(r,e,t);break}if(1===r.tag){var n=r.stateNode;if("function"==typeof r.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===zs||!zs.has(n))){uo(r,e=bs(r,e=es(t,e),1073741823)),null!==(r=tc(r,1073741823))&&nc(r);break}}r=r.return}}function Oc(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),As===e&&ks===r?Ds===Ps||Ds===Ts&&1073741823===Rs&&Gi()-Bs<500?cc(e,ks):Zs=!0:Fc(e,r)&&(0!==(t=e.lastPingedTime)&&t<r||(e.lastPingedTime=r,nc(e)))}function Sc(e,t){var r=e.stateNode;null!==r&&r.delete(t),0==(t=0)&&(t=Qs(t=Js(),e,null)),null!==(e=tc(e,t))&&nc(e)}_s=function(e,t,r){var n=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||fi.current)ka=!0;else{if(n<r){switch(ka=!1,t.tag){case 3:Ga(t),Aa();break;case 5:if(Mo(t),4&t.mode&&1!==r&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:vi(t.type)&&Ei(t);break;case 4:No(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value,i=t.type._context,di(Xi,i._currentValue),i._currentValue=n;break;case 13:if(null!==t.memoizedState)return 0!==(n=t.child.childExpirationTime)&&n>=r?Ya(e,t,r):(di(Fo,1&Fo.current),null!==(t=qa(e,t,r))?t.sibling:null);di(Fo,1&Fo.current);break;case 19:if(n=t.childExpirationTime>=r,0!=(64&e.effectTag)){if(n)return $a(e,t,r);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),di(Fo,Fo.current),!n)return null}return qa(e,t,r)}ka=!1}}else ka=!1;switch(t.expirationTime=0,t.tag){case 2:if(n=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=gi(t,hi.current),io(t,r),i=qo(null,t,n,e,i,r),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,vi(n)){var o=!0;Ei(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,so(t);var s=n.getDerivedStateFromProps;"function"==typeof s&&vo(t,n,s,e),i.updater=yo,t.stateNode=i,i._reactInternalFiber=t,wo(t,n,e,r),t=Ba(null,t,n,!0,o,r)}else t.tag=0,Da(null,t,i,r),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,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)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,o=t.tag=function(e){if("function"==typeof e)return Cc(e)?1:0;if(null!=e){if((e=e.$$typeof)===ce)return 11;if(e===de)return 14}return 2}(i),e=qi(i,e),o){case 0:t=Fa(null,t,i,e,r);break e;case 1:t=Za(null,t,i,e,r);break e;case 11:t=Na(null,t,i,e,r);break e;case 14:t=Ra(null,t,i,qi(i.type,e),n,r);break e}throw Error(a(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,Fa(e,t,n,i=t.elementType===n?i:qi(n,i),r);case 1:return n=t.type,i=t.pendingProps,Za(e,t,n,i=t.elementType===n?i:qi(n,i),r);case 3:if(Ga(t),n=t.updateQueue,null===e||null===n)throw Error(a(282));if(n=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,co(e,t),ho(t,n,null,r),(n=t.memoizedState.element)===i)Aa(),t=qa(e,t,r);else{if((i=t.stateNode.hydrate)&&(xa=wr(t.stateNode.containerInfo.firstChild),wa=t,i=La=!0),i)for(r=Po(t,null,n,r),t.child=r;r;)r.effectTag=-3&r.effectTag|1024,r=r.sibling;else Da(e,t,n,r),Aa();t=t.child}return t;case 5:return Mo(t),null===e&&Ta(t),n=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,br(n,i)?s=null:null!==o&&br(n,o)&&(t.effectTag|=16),ja(e,t),4&t.mode&&1!==r&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Da(e,t,s,r),t=t.child),t;case 6:return null===e&&Ta(t),null;case 13:return Ya(e,t,r);case 4:return No(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=To(t,null,n,r):Da(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,Na(e,t,n,i=t.elementType===n?i:qi(n,i),r);case 7:return Da(e,t,t.pendingProps,r),t.child;case 8:case 12:return Da(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var c=t.type._context;if(di(Xi,c._currentValue),c._currentValue=o,null!==s)if(c=s.value,0==(o=Zn(c,o)?0:0|("function"==typeof n._calculateChangedBits?n._calculateChangedBits(c,o):1073741823))){if(s.children===i.children&&!fi.current){t=qa(e,t,r);break e}}else for(null!==(c=t.child)&&(c.return=t);null!==c;){var l=c.dependencies;if(null!==l){s=c.child;for(var u=l.firstContext;null!==u;){if(u.context===n&&0!=(u.observedBits&o)){1===c.tag&&((u=lo(r,null)).tag=2,uo(c,u)),c.expirationTime<r&&(c.expirationTime=r),null!==(u=c.alternate)&&u.expirationTime<r&&(u.expirationTime=r),no(c.return,r),l.expirationTime<r&&(l.expirationTime=r);break}u=u.next}}else s=10===c.tag&&c.type===t.type?null:c.child;if(null!==s)s.return=c;else for(s=c;null!==s;){if(s===t){s=null;break}if(null!==(c=s.sibling)){c.return=s.return,s=c;break}s=s.return}c=s}Da(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=(o=t.pendingProps).children,io(t,r),n=n(i=oo(i,o.unstable_observedBits)),t.effectTag|=1,Da(e,t,n,r),t.child;case 14:return o=qi(i=t.type,t.pendingProps),Ra(e,t,i,o=qi(i.type,o),n,r);case 15:return Ma(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:qi(n,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,vi(n)?(e=!0,Ei(t)):e=!1,io(t,r),_o(t,n,i),wo(t,n,i,r),Ba(null,t,n,!0,e,r);case 19:return $a(e,t,r)}throw Error(a(156,t.tag))};var Tc=null,Pc=null;function Ic(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Ac(e,t,r,n){return new Ic(e,t,r,n)}function Cc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function kc(e,t){var r=e.alternate;return null===r?((r=Ac(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childExpirationTime=e.childExpirationTime,r.expirationTime=e.expirationTime,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Dc(e,t,r,n,i,o){var s=2;if(n=e,"function"==typeof e)Cc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case re:return Nc(r.children,i,o,t);case se:s=8,i|=7;break;case ne:s=8,i|=1;break;case ie:return(e=Ac(12,r,t,8|i)).elementType=ie,e.type=ie,e.expirationTime=o,e;case le:return(e=Ac(13,r,t,i)).type=le,e.elementType=le,e.expirationTime=o,e;case ue:return(e=Ac(19,r,t,i)).elementType=ue,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case oe:s=10;break e;case ae:s=9;break e;case ce:s=11;break e;case de:s=14;break e;case pe:s=16,n=null;break e;case he:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ac(s,r,t,i)).elementType=e,t.type=n,t.expirationTime=o,t}function Nc(e,t,r,n){return(e=Ac(7,e,n,t)).expirationTime=r,e}function Rc(e,t,r){return(e=Ac(6,e,null,t)).expirationTime=r,e}function Mc(e,t,r){return(t=Ac(4,null!==e.children?e.children:[],e.key,t)).expirationTime=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jc(e,t,r){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Fc(e,t){var r=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==r&&r>=t&&e<=t}function Zc(e,t){var r=e.firstSuspendedTime,n=e.lastSuspendedTime;r<t&&(e.firstSuspendedTime=t),(n>t||0===r)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Bc(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var r=e.firstSuspendedTime;0!==r&&(t>=r?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Gc(e,t){var r=e.lastExpiredTime;(0===r||r>t)&&(e.lastExpiredTime=t)}function Uc(e,t,r,n){var i=t.current,o=Js(),s=mo.suspense;o=Qs(o,i,s);e:if(r){t:{if(Je(r=r._reactInternalFiber)!==r||1!==r.tag)throw Error(a(170));var c=r;do{switch(c.tag){case 3:c=c.stateNode.context;break t;case 1:if(vi(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}}c=c.return}while(null!==c);throw Error(a(171))}if(1===r.tag){var l=r.type;if(vi(l)){r=_i(r,l,c);break e}}r=c}else r=pi;return null===t.context?t.context=r:t.pendingContext=r,(t=lo(o,s)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),uo(i,t),ec(i,o),o}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function zc(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Vc(e,t){zc(e,t),(e=e.alternate)&&zc(e,t)}function Yc(e,t,r){var n=new jc(e,t,r=null!=r&&!0===r.hydrate),i=Ac(3,null,null,2===t?7:1===t?3:0);n.current=i,i.stateNode=n,so(i),e[Tr]=n.current,r&&0!==t&&function(e,t){var r=Xe(t);Ot.forEach((function(e){ht(e,t,r)})),St.forEach((function(e){ht(e,t,r)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=n}function Wc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Kc(e,t,r,n,i){var o=r._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Hc(a);s.call(e)}}Uc(t,a,e,i)}else{if(o=r._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var r;r=e.lastChild;)e.removeChild(r);return new Yc(e,0,t?{hydrate:!0}:void 0)}(r,n),a=o._internalRoot,"function"==typeof i){var c=i;i=function(){var e=Hc(a);c.call(e)}}sc((function(){Uc(t,a,e,i)}))}return Hc(a)}function $c(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Wc(t))throw Error(a(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)}Yc.prototype.render=function(e){Uc(e,this._internalRoot,null,null)},Yc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Uc(null,e,null,(function(){t[Tr]=null}))},ft=function(e){if(13===e.tag){var t=$i(Js(),150,100);ec(e,t),Vc(e,t)}},mt=function(e){13===e.tag&&(ec(e,3),Vc(e,3))},gt=function(e){if(13===e.tag){var t=Js();ec(e,t=Qs(t,e,null)),Vc(e,t)}},P=function(e,t,r){switch(t){case"input":if(Oe(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=Cr(n);if(!i)throw Error(a(90));Ee(n),Oe(n,i)}}}break;case"textarea":ke(e,r);break;case"select":null!=(t=r.value)&&Ie(e,!!r.multiple,t,!1)}},N=ac,R=function(e,t,r,n,i){var o=Is;Is|=4;try{return zi(98,e.bind(null,t,r,n,i))}finally{0===(Is=o)&&Wi()}},M=function(){0==(49&Is)&&(function(){if(null!==Ks){var e=Ks;Ks=null,e.forEach((function(e,t){Gc(t,e),nc(t)})),Wi()}}(),Ec())},j=function(e,t){var r=Is;Is|=2;try{return e(t)}finally{0===(Is=r)&&Wi()}};var qc={Events:[Ir,Ar,Cr,S,x,Fr,function(e){nt(e,jr)},k,D,qt,at,Ec,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;!function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var r=t.inject(e);Tc=function(e){try{t.onCommitFiberRoot(r,e,void 0,64==(64&e.current.effectTag))}catch(e){}},Pc=function(e){try{t.onCommitFiberUnmount(r,e)}catch(e){}}}catch(e){}}(i({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:q.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=tt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Pr,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qc,t.createPortal=$c,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return null===(e=tt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&Is))throw Error(a(187));var r=Is;Is|=1;try{return zi(99,e.bind(null,t))}finally{Is=r,Wi()}},t.hydrate=function(e,t,r){if(!Wc(t))throw Error(a(200));return Kc(null,e,t,!0,r)},t.render=function(e,t,r){if(!Wc(t))throw Error(a(200));return Kc(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!Wc(e))throw Error(a(40));return!!e._reactRootContainer&&(sc((function(){Kc(null,null,e,!1,(function(){e._reactRootContainer=null,e[Tr]=null}))})),!0)},t.unstable_batchedUpdates=ac,t.unstable_createPortal=function(e,t){return $c(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Wc(r))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return Kc(e,t,r,!1,n)},t.version="16.14.0"},73961:(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(57799)},15439:e=>{var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,c,l,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(c=s;0!=c--;)if(!o(e[c],a[c]))return!1;return!0}if(r&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!a.has(c.value[0]))return!1;for(u=e.entries();!(c=u.next()).done;)if(!o(c.value[1],a.get(c.value[0])))return!1;return!0}if(n&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(c=s;0!=c--;)if(e[c]!==a[c])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===a.toString();if((s=(l=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(c=s;0!=c--;)if(!Object.prototype.hasOwnProperty.call(a,l[c]))return!1;if(t&&e instanceof Element)return!1;for(c=s;0!=c--;)if(("_owner"!==l[c]&&"__v"!==l[c]&&"__o"!==l[c]||!e.$$typeof)&&!o(e[l[c]],a[l[c]]))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return o(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},24821:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case l:case p:case g:case m:case c:return e;default:return t}}case i:return t}}}function w(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=n,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return w(e)||E(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return E(e)===l},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===h||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===l||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===_||e.$$typeof===v)},t.typeOf=E},338:(e,t,r)=>{"use strict";e.exports=r(24821)},19018:(e,t,r)=>{"use strict";function n(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function i(e){this.setState(function(t){var r=this.constructor.getDerivedStateFromProps(e,t);return null!=r?r:null}.bind(this))}function o(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var r=null,a=null,s=null;if("function"==typeof t.componentWillMount?r="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(r="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==r||null!==a||null!==s){var c=e.displayName||e.name,l="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+c+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==r?"\n  "+r:"")+(null!==a?"\n  "+a:"")+(null!==s?"\n  "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=n,t.componentWillReceiveProps=i),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,r){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:r;u.call(this,e,t,n)}}return e}r.r(t),r.d(t,{polyfill:()=>a}),n.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},40777:(e,t,r)=>{"use strict";t.__esModule=!0;var n=l(r(2652)),i=l(r(61926)),o=l(r(89526)),a=l(r(73961)),s=l(r(59509)),c=l(r(81081));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){var r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,l=Array(i),d=0;d<i;d++)l[d]=arguments[d];return r=n=u(this,e.call.apply(e,[this].concat(l))),n._mountOverlayTarget=function(){n._overlayTarget||(n._overlayTarget=document.createElement("div"),n._portalContainerNode=(0,s.default)(n.props.container,(0,c.default)(n).body),n._portalContainerNode.appendChild(n._overlayTarget))},n._unmountOverlayTarget=function(){n._overlayTarget&&(n._portalContainerNode.removeChild(n._overlayTarget),n._overlayTarget=null),n._portalContainerNode=null},n._renderOverlay=function(){var e=n.props.children?o.default.Children.only(n.props.children):null;if(null!==e){n._mountOverlayTarget();var t=!n._overlayInstance;n._overlayInstance=a.default.unstable_renderSubtreeIntoContainer(n,e,n._overlayTarget,(function(){t&&n.props.onRendered&&n.props.onRendered()}))}else n._unrenderOverlay(),n._unmountOverlayTarget()},n._unrenderOverlay=function(){n._overlayTarget&&(a.default.unmountComponentAtNode(n._overlayTarget),n._overlayInstance=null)},n.getMountNode=function(){return n._overlayTarget},u(n,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this._isMounted=!0,this._renderOverlay()},t.prototype.componentDidUpdate=function(){this._renderOverlay()},t.prototype.componentWillReceiveProps=function(e){this._overlayTarget&&e.container!==this.props.container&&(this._portalContainerNode.removeChild(this._overlayTarget),this._portalContainerNode=(0,s.default)(e.container,(0,c.default)(this).body),this._portalContainerNode.appendChild(this._overlayTarget))},t.prototype.componentWillUnmount=function(){this._isMounted=!1,this._unrenderOverlay(),this._unmountOverlayTarget()},t.prototype.render=function(){return null},t}(o.default.Component);d.displayName="Portal",d.propTypes={container:n.default.oneOfType([i.default,n.default.func]),onRendered:n.default.func},t.default=d,e.exports=t.default},22919:(e,t,r)=>{"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=w(r(9637)),o=w(r(35558)),a=w(r(75769)),s=w(r(2652)),c=w(r(61926)),l=w(r(73925)),u=w(r(50855)),d=r(89526),p=w(d),h=w(r(73961)),f=w(r(89198)),m=w(r(90395)),g=w(r(83698)),v=w(r(81182)),y=w(r(88243)),b=w(r(83735)),_=w(r(59509)),E=w(r(81081));function w(e){return e&&e.__esModule?e:{default:e}}function x(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var L=new m.default,O=function(e){function t(){var r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=n=x(this,e.call.apply(e,[this].concat(o))),S.call(n),x(n,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.omitProps=function(e,t){var r=Object.keys(e),n={};return r.map((function(r){Object.prototype.hasOwnProperty.call(t,r)||(n[r]=e[r])})),n},t.prototype.render=function(){var e=this.props,r=e.show,i=e.container,o=e.children,a=e.transition,s=e.backdrop,c=e.className,l=e.style,u=e.onExit,h=e.onExiting,f=e.onEnter,m=e.onEntering,y=e.onEntered,b=p.default.Children.only(o),_=this.omitProps(this.props,t.propTypes);if(!(r||a&&!this.state.exited))return null;var E=b.props,w=E.role,x=E.tabIndex;return void 0!==w&&void 0!==x||(b=(0,d.cloneElement)(b,{role:void 0===w?"document":w,tabIndex:null==x?"-1":x})),a&&(b=p.default.createElement(a,{appear:!0,unmountOnExit:!0,in:r,onExit:u,onExiting:h,onExited:this.handleHidden,onEnter:f,onEntering:m,onEntered:y},b)),p.default.createElement(g.default,{ref:this.setMountNode,container:i,onRendered:this.onPortalRendered},p.default.createElement("div",n({ref:this.setModalNodeRef,role:w||"dialog"},_,{style:l,className:c}),s&&this.renderBackdrop(),p.default.createElement(v.default,{ref:this.setDialogRef},b)))},t.prototype.componentWillReceiveProps=function(e){e.show?this.setState({exited:!1}):e.transition||this.setState({exited:!0})},t.prototype.componentWillUpdate=function(e){!this.props.show&&e.show&&this.checkForFocus()},t.prototype.componentDidMount=function(){this._isMounted=!0,this.props.show&&this.onShow()},t.prototype.componentDidUpdate=function(e){var t=this.props.transition;!e.show||this.props.show||t?!e.show&&this.props.show&&this.onShow():this.onHide()},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.show,r=e.transition;this._isMounted=!1,(t||r&&!this.state.exited)&&this.onHide()},t.prototype.autoFocus=function(){if(this.props.autoFocus){var e=this.getDialogElement(),t=(0,i.default)((0,E.default)(this));e&&!(0,o.default)(e,t)&&(this.lastFocus=t,e.hasAttribute("tabIndex")||((0,f.default)(!1,'The modal content node does not accept focus. For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'),e.setAttribute("tabIndex",-1)),e.focus())}},t.prototype.restoreLastFocus=function(){this.lastFocus&&this.lastFocus.focus&&(this.lastFocus.focus(),this.lastFocus=null)},t.prototype.getDialogElement=function(){return h.default.findDOMNode(this.dialog)},t.prototype.isTopModal=function(){return this.props.manager.isTopModal(this)},t}(p.default.Component);O.propTypes=n({},g.default.propTypes,{show:s.default.bool,container:s.default.oneOfType([c.default,s.default.func]),onShow:s.default.func,onHide:s.default.func,backdrop:s.default.oneOfType([s.default.bool,s.default.oneOf(["static"])]),renderBackdrop:s.default.func,onEscapeKeyDown:s.default.func,onEscapeKeyUp:(0,l.default)(s.default.func,"Please use onEscapeKeyDown instead for consistency"),onBackdropClick:s.default.func,backdropStyle:s.default.object,backdropClassName:s.default.string,containerClassName:s.default.string,keyboard:s.default.bool,transition:u.default,backdropTransition:u.default,autoFocus:s.default.bool,enforceFocus:s.default.bool,restoreFocus:s.default.bool,onEnter:s.default.func,onEntering:s.default.func,onEntered:s.default.func,onExit:s.default.func,onExiting:s.default.func,onExited:s.default.func,manager:s.default.object.isRequired}),O.defaultProps={show:!1,backdrop:!0,keyboard:!0,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,onHide:function(){},manager:L,renderBackdrop:function(e){return p.default.createElement("div",e)}};var S=function(){var e=this;this.state={exited:!this.props.show},this.renderBackdrop=function(){var t=e.props,r=t.backdropStyle,n=t.backdropClassName,i=t.renderBackdrop,o=t.backdropTransition,a=i({ref:function(t){return e.backdrop=t},style:r,className:n,onClick:e.handleBackdropClick});return o&&(a=p.default.createElement(o,{appear:!0,in:e.props.show},a)),a},this.onPortalRendered=function(){e.autoFocus(),e.props.onShow&&e.props.onShow()},this.onShow=function(){var t=(0,E.default)(e),r=(0,_.default)(e.props.container,t.body);e.props.manager.add(e,r,e.props.containerClassName),e._onDocumentKeydownListener=(0,y.default)(t,"keydown",e.handleDocumentKeyDown),e._onDocumentKeyupListener=(0,y.default)(t,"keyup",e.handleDocumentKeyUp),e._onFocusinListener=(0,b.default)(e.enforceFocus)},this.onHide=function(){e.props.manager.remove(e),e._onDocumentKeydownListener.remove(),e._onDocumentKeyupListener.remove(),e._onFocusinListener.remove(),e.props.restoreFocus&&e.restoreLastFocus()},this.setMountNode=function(t){e.mountNode=t?t.getMountNode():t},this.setModalNodeRef=function(t){e.modalNode=t},this.setDialogRef=function(t){e.dialog=t},this.handleHidden=function(){var t;e.setState({exited:!0}),e.onHide(),e.props.onExited&&(t=e.props).onExited.apply(t,arguments)},this.handleBackdropClick=function(t){t.target===t.currentTarget&&(e.props.onBackdropClick&&e.props.onBackdropClick(t),!0===e.props.backdrop&&e.props.onHide())},this.handleDocumentKeyDown=function(t){e.props.keyboard&&27===t.keyCode&&e.isTopModal()&&(e.props.onEscapeKeyDown&&e.props.onEscapeKeyDown(t),e.props.onHide())},this.handleDocumentKeyUp=function(t){e.props.keyboard&&27===t.keyCode&&e.isTopModal()&&e.props.onEscapeKeyUp&&e.props.onEscapeKeyUp(t)},this.checkForFocus=function(){a.default&&(e.lastFocus=(0,i.default)())},this.enforceFocus=function(){if(e.props.enforceFocus&&e._isMounted&&e.isTopModal()){var t=e.getDialogElement(),r=(0,i.default)((0,E.default)(e));t&&!(0,o.default)(t,r)&&t.focus()}}};O.Manager=m.default,t.default=O,e.exports=t.default},90395:(e,t,r)=>{"use strict";t.__esModule=!0;var n=c(r(34973)),i=c(r(95463)),o=c(r(14347)),a=c(r(50669)),s=r(97771);function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var r={overflow:"hidden"};e.style={overflow:t.style.overflow,paddingRight:t.style.paddingRight},e.overflowing&&(r.paddingRight=parseInt((0,i.default)(t,"paddingRight")||0,10)+(0,o.default)()+"px"),(0,i.default)(t,r)}t.default=function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=r.hideSiblingNodes,o=void 0===i||i,c=r.handleContainerOverflow,u=void 0===c||c;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.add=function(e,r,i){var o=t.modals.indexOf(e),c=t.containers.indexOf(r);if(-1!==o)return o;if(o=t.modals.length,t.modals.push(e),t.hideSiblingNodes&&(0,s.hideSiblings)(r,e.mountNode),-1!==c)return t.data[c].modals.push(e),o;var u={modals:[e],classes:i?i.split(/\s+/):[],overflowing:(0,a.default)(r)};return t.handleContainerOverflow&&l(u,r),u.classes.forEach(n.default.addClass.bind(null,r)),t.containers.push(r),t.data.push(u),o},this.remove=function(e){var r=t.modals.indexOf(e);if(-1!==r){var i=function(e,t){return r=function(e){return-1!==e.modals.indexOf(t)},n=-1,e.some((function(e,t){if(r(e))return n=t,!0})),n;var r,n}(t.data,e),o=t.data[i],a=t.containers[i];o.modals.splice(o.modals.indexOf(e),1),t.modals.splice(r,1),0===o.modals.length?(o.classes.forEach(n.default.removeClass.bind(null,a)),t.handleContainerOverflow&&function(e,t){var r=e.style;Object.keys(r).forEach((function(e){return t.style[e]=r[e]}))}(o,a),t.hideSiblingNodes&&(0,s.showSiblings)(a,e.mountNode),t.containers.splice(i,1),t.data.splice(i,1)):t.hideSiblingNodes&&(0,s.ariaHidden)(!1,o.modals[o.modals.length-1].mountNode)}},this.isTopModal=function(e){return!!t.modals.length&&t.modals[t.modals.length-1]===e},this.hideSiblingNodes=o,this.handleContainerOverflow=u,this.modals=[],this.containers=[],this.data=[]},e.exports=t.default},83698:(e,t,r)=>{"use strict";t.__esModule=!0;var n=u(r(2652)),i=u(r(61926)),o=u(r(89526)),a=u(r(73961)),s=u(r(59509)),c=u(r(81081)),l=u(r(40777));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=function(e){function t(){var r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=n=d(this,e.call.apply(e,[this].concat(o))),n.setContainer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props;n._portalContainerNode=(0,s.default)(e.container,(0,c.default)(n).body)},n.getMountNode=function(){return n._portalContainerNode},d(n,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.setContainer(),this.forceUpdate(this.props.onRendered)},t.prototype.componentWillReceiveProps=function(e){e.container!==this.props.container&&this.setContainer(e)},t.prototype.componentWillUnmount=function(){this._portalContainerNode=null},t.prototype.render=function(){return this.props.children&&this._portalContainerNode?a.default.createPortal(this.props.children,this._portalContainerNode):null},t}(o.default.Component);p.displayName="Portal",p.propTypes={container:n.default.oneOfType([i.default,n.default.func]),onRendered:n.default.func},t.default=a.default.createPortal?p:l.default,e.exports=t.default},81182:(e,t,r)=>{"use strict";t.__esModule=!0;var n=o(r(2652)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}var a={children:n.default.node},s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){return this.props.children},t}(i.default.Component);s.propTypes=a,t.default=s,e.exports=t.default},28630:(e,t,r)=>{"use strict";t.__esModule=!0;var n=l(r(35558)),i=l(r(2652)),o=l(r(89526)),a=l(r(73961)),s=l(r(88243)),c=l(r(81081));function l(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r,i));return o.addEventListeners=function(){var e=o.props.event,t=(0,c.default)(o);o.documentMouseCaptureListener=(0,s.default)(t,e,o.handleMouseCapture,!0),o.documentMouseListener=(0,s.default)(t,e,o.handleMouse),o.documentKeyupListener=(0,s.default)(t,"keyup",o.handleKeyUp)},o.removeEventListeners=function(){o.documentMouseCaptureListener&&o.documentMouseCaptureListener.remove(),o.documentMouseListener&&o.documentMouseListener.remove(),o.documentKeyupListener&&o.documentKeyupListener.remove()},o.handleMouseCapture=function(e){o.preventMouseRootClose=function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||!function(e){return 0===e.button}(e)||(0,n.default)(a.default.findDOMNode(o),e.target)},o.handleMouse=function(e){!o.preventMouseRootClose&&o.props.onRootClose&&o.props.onRootClose(e)},o.handleKeyUp=function(e){27===e.keyCode&&o.props.onRootClose&&o.props.onRootClose(e)},o.preventMouseRootClose=!1,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.props.disabled||this.addEventListeners()},t.prototype.componentDidUpdate=function(e){!this.props.disabled&&e.disabled?this.addEventListeners():this.props.disabled&&!e.disabled&&this.removeEventListeners()},t.prototype.componentWillUnmount=function(){this.props.disabled||this.removeEventListeners()},t.prototype.render=function(){return this.props.children},t}(o.default.Component);u.displayName="RootCloseWrapper",u.propTypes={onRootClose:i.default.func,children:i.default.element,disabled:i.default.bool,event:i.default.oneOf(["click","mousedown"])},u.defaultProps={event:"click"},t.default=u,e.exports=t.default},88243:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e,t,r,o){return(0,n.default)(e,t,r,o),{remove:function(){(0,i.default)(e,t,r,o)}}};var n=o(r(85822)),i=o(r(9105));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},83735:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){var t=void 0;return document.addEventListener?(document.addEventListener("focus",e,!0),t=function(){return document.removeEventListener("focus",e,!0)}):(document.attachEvent("onfocusin",e),t=function(){return document.detachEvent("onfocusin",e)}),{remove:t}},e.exports=t.default},59509:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return e="function"==typeof e?e():e,i.default.findDOMNode(e)||t};var n,i=(n=r(73961))&&n.__esModule?n:{default:n};e.exports=t.default},50669:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return(0,n.default)(e)||function(e){return e&&"body"===e.tagName.toLowerCase()}(e)?function(e){var t=(0,i.default)(e),r=(0,n.default)(t).innerWidth;if(!r){var o=t.documentElement.getBoundingClientRect();r=o.right-Math.abs(o.left)}return t.body.clientWidth<r}(e):e.scrollHeight>e.clientHeight};var n=o(r(72038)),i=o(r(62310));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},97771:(e,t)=>{"use strict";t.__esModule=!0,t.ariaHidden=i,t.hideSiblings=function(e,t){n(e,t,(function(e){return i(!0,e)}))},t.showSiblings=function(e,t){n(e,t,(function(e){return i(!1,e)}))};var r=["template","script","style"],n=function(e,t,n){t=[].concat(t),[].forEach.call(e.children,(function(e){var i,o,a;-1===t.indexOf(e)&&(o=(i=e).nodeType,a=i.tagName,1===o&&-1===r.indexOf(a.toLowerCase()))&&n(e)}))};function i(e,t){t&&(e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden"))}},81081:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return(0,i.default)(n.default.findDOMNode(e))};var n=o(r(73961)),i=o(r(62310));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},80919:e=>{"use strict";e.exports=function(){}},86520:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(2652)),i=s(r(89526)),o=s(r(73961)),a=r(19018);function s(e){return e&&e.__esModule?e:{default:e}}r(97169);var c="unmounted";t.UNMOUNTED=c;var l="exited";t.EXITED=l;var u="entering";t.ENTERING=u;var d="entered";t.ENTERED=d;var p="exiting";t.EXITING=p;var h=function(e){var t,r;function n(t,r){var n;n=e.call(this,t,r)||this;var i,o=r.transitionGroup,a=o&&!o.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(i=l,n.appearStatus=u):i=d:i=t.unmountOnExit||t.mountOnEnter?c:l,n.state={status:i},n.nextCallback=null,n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var a=n.prototype;return a.getChildContext=function(){return{transitionGroup:null}},n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:l}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==u&&r!==d&&(t=u):r!==u&&r!==d||(t=p)}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},a.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var r=o.default.findDOMNode(this);t===u?this.performEnter(r,e):this.performExit(r)}else this.props.unmountOnExit&&this.state.status===l&&this.setState({status:c})},a.performEnter=function(e,t){var r=this,n=this.props.enter,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,o=this.getTimeouts(),a=i?o.appear:o.enter;t||n?(this.props.onEnter(e,i),this.safeSetState({status:u},(function(){r.props.onEntering(e,i),r.onTransitionEnd(e,a,(function(){r.safeSetState({status:d},(function(){r.props.onEntered(e,i)}))}))}))):this.safeSetState({status:d},(function(){r.props.onEntered(e)}))},a.performExit=function(e){var t=this,r=this.props.exit,n=this.getTimeouts();r?(this.props.onExit(e),this.safeSetState({status:p},(function(){t.props.onExiting(e),t.onTransitionEnd(e,n.exit,(function(){t.safeSetState({status:l},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:l},(function(){t.props.onExited(e)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},a.onTransitionEnd=function(e,t,r){this.setNextCallback(r);var n=null==t&&!this.props.addEndListener;e&&!n?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},a.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,r=t.children,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(t,["children"]);if(delete n.in,delete n.mountOnEnter,delete n.unmountOnExit,delete n.appear,delete n.enter,delete n.exit,delete n.timeout,delete n.addEndListener,delete n.onEnter,delete n.onEntering,delete n.onEntered,delete n.onExit,delete n.onExiting,delete n.onExited,"function"==typeof r)return r(e,n);var o=i.default.Children.only(r);return i.default.cloneElement(o,n)},n}(i.default.Component);function f(){}h.contextTypes={transitionGroup:n.object},h.childContextTypes={transitionGroup:function(){}},h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:f,onEntering:f,onEntered:f,onExit:f,onExiting:f,onExited:f},h.UNMOUNTED=0,h.EXITED=1,h.ENTERING=2,h.ENTERED=3,h.EXITING=4;var m=(0,a.polyfill)(h);t.default=m},97169:(e,t,r)=>{"use strict";var n;t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0,(n=r(2652))&&n.__esModule,t.timeoutsShape=null,t.classNamesShape=null},13169:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p});var n=r(68513),i=r(61194),o=r.n(i),a=r(14864),s=r(77810),c=r(55e3),l=r(97965),u=r(89526),d=function(e){function t(){var e,r,n,i;(0,a.Z)(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return r=n=(0,c.Z)(this,(e=t.__proto__||o()(t)).call.apply(e,[this].concat(l))),n.state={height:n.props.defaultHeight||0,width:n.props.defaultWidth||0},n._onResize=function(){var e=n.props,t=e.disableHeight,r=e.disableWidth,i=e.onResize;if(n._parentNode){var o=n._parentNode.offsetHeight||0,a=n._parentNode.offsetWidth||0,s=window.getComputedStyle(n._parentNode)||{},c=parseInt(s.paddingLeft,10)||0,l=parseInt(s.paddingRight,10)||0,u=parseInt(s.paddingTop,10)||0,d=parseInt(s.paddingBottom,10)||0,p=o-u-d,h=a-c-l;(!t&&n.state.height!==p||!r&&n.state.width!==h)&&(n.setState({height:o-u-d,width:a-c-l}),i({height:o,width:a}))}},n._setRef=function(e){n._autoSizer=e},i=r,(0,c.Z)(n,i)}return(0,l.Z)(t,e),(0,s.Z)(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=function(e){var t;t="undefined"!=typeof window?window:"undefined"!=typeof self?self:r.g;var n,i,o="undefined"!=typeof document&&document.attachEvent;if(!o){var a=(i=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||function(e){return t.setTimeout(e,20)},function(e){return i(e)}),s=(n=t.cancelAnimationFrame||t.mozCancelAnimationFrame||t.webkitCancelAnimationFrame||t.clearTimeout,function(e){return n(e)}),c=function(e){var t=e.__resizeTriggers__,r=t.firstElementChild,n=t.lastElementChild,i=r.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,i.style.width=r.offsetWidth+1+"px",i.style.height=r.offsetHeight+1+"px",r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight},l=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;c(this),this.__resizeRAF__&&s(this.__resizeRAF__),this.__resizeRAF__=a((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(r){r.call(t,e)})))}))}},u=!1,d="",p="animationstart",h="Webkit Moz O ms".split(" "),f="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),m=document.createElement("fakeelement");if(void 0!==m.style.animationName&&(u=!0),!1===u)for(var g=0;g<h.length;g++)if(void 0!==m.style[h[g]+"AnimationName"]){d="-"+h[g].toLowerCase()+"-",p=f[g],u=!0;break}var v="resizeanim",y="@"+d+"keyframes "+v+" { from { opacity: 0; } to { opacity: 0; } } ",b=d+"animation: 1ms "+v+"; "}return{addResizeListener:function(r,n){if(o)r.attachEvent("onresize",n);else{if(!r.__resizeTriggers__){var i=r.ownerDocument,a=t.getComputedStyle(r);a&&"static"==a.position&&(r.style.position="relative"),function(t){if(!t.getElementById("detectElementResize")){var r=(y||"")+".resize-triggers { "+(b||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',n=t.head||t.getElementsByTagName("head")[0],i=t.createElement("style");i.id="detectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=r:i.appendChild(t.createTextNode(r)),n.appendChild(i)}}(i),r.__resizeLast__={},r.__resizeListeners__=[],(r.__resizeTriggers__=i.createElement("div")).className="resize-triggers",r.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',r.appendChild(r.__resizeTriggers__),c(r),r.addEventListener("scroll",l,!0),p&&(r.__resizeTriggers__.__animationListener__=function(e){e.animationName==v&&c(r)},r.__resizeTriggers__.addEventListener(p,r.__resizeTriggers__.__animationListener__))}r.__resizeListeners__.push(n)}},removeResizeListener:function(e,t){if(o)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(p,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,r=e.className,i=e.disableHeight,o=e.disableWidth,a=e.style,s=this.state,c=s.height,l=s.width,d={overflow:"visible"},p={};return i||(d.height=0,p.height=c),o||(d.width=0,p.width=l),u.createElement("div",{className:r,ref:this._setRef,style:(0,n.Z)({},d,a)},t(p))}}]),t}(u.PureComponent);d.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}},d.propTypes=null;const p=d},41199:(e,t,r)=>{"use strict";r.d(t,{Z:()=>T});var n=r(68513),i=r(88771),o=r(61194),a=r.n(o),s=r(14864),c=r(77810),l=r(55e3),u=r(97965),d=r(89526),p=r(64403),h=r.n(p),f=r(19018),m=r(14858),g=r.n(m);function v(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(r){var n=r.callback,i=r.indices,o=g()(i),a=!e||o.every((function(e){var t=i[e];return Array.isArray(t)?t.length>0:t>=0})),s=o.length!==g()(t).length||o.some((function(e){var r=t[e],n=i[e];return Array.isArray(n)?r.join(",")!==n.join(","):r!==n}));t=i,a&&s&&n(i)}}var y=r(14347),b=r.n(y),_="requested",E=function(e){function t(){var e;(0,s.Z)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];var o=(0,l.Z)(this,(e=t.__proto__||a()(t)).call.apply(e,[this].concat(n)));return o.state={isScrolling:!1,scrollLeft:0,scrollTop:0},o._calculateSizeAndPositionDataOnNextUpdate=!1,o._onSectionRenderedMemoizer=v(),o._onScrollMemoizer=v(!1),o._invokeOnSectionRenderedHelper=function(){var e=o.props,t=e.cellLayoutManager,r=e.onSectionRendered;o._onSectionRenderedMemoizer({callback:r,indices:{indices:t.getLastRenderedIndices()}})},o._setScrollingContainerRef=function(e){o._scrollingContainer=e},o._updateScrollPositionForScrollToCell=function(){var e=o.props,t=e.cellLayoutManager,r=e.height,n=e.scrollToAlignment,i=e.scrollToCell,a=e.width,s=o.state,c=s.scrollLeft,l=s.scrollTop;if(i>=0){var u=t.getScrollPositionForCell({align:n,cellIndex:i,height:r,scrollLeft:c,scrollTop:l,width:a});u.scrollLeft===c&&u.scrollTop===l||o._setScrollPosition(u)}},o._onScroll=function(e){if(e.target===o._scrollingContainer){o._enablePointerEventsAfterDelay();var t=o.props,r=t.cellLayoutManager,n=t.height,i=t.isScrollingChange,a=t.width,s=o._scrollbarSize,c=r.getTotalSize(),l=c.height,u=c.width,d=Math.max(0,Math.min(u-a+s,e.target.scrollLeft)),p=Math.max(0,Math.min(l-n+s,e.target.scrollTop));if(o.state.scrollLeft!==d||o.state.scrollTop!==p){var h=e.cancelable?"observed":_;o.state.isScrolling||i(!0),o.setState({isScrolling:!0,scrollLeft:d,scrollPositionChangeReason:h,scrollTop:p})}o._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:p,totalWidth:u,totalHeight:l})}},o._scrollbarSize=b()(),void 0===o._scrollbarSize?(o._scrollbarSizeMeasured=!1,o._scrollbarSize=0):o._scrollbarSizeMeasured=!0,o}return(0,u.Z)(t,e),(0,c.Z)(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,r=e.scrollLeft,n=e.scrollToCell,i=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=b()(),this._scrollbarSizeMeasured=!0,this.setState({})),n>=0?this._updateScrollPositionForScrollToCell():(r>=0||i>=0)&&this._setScrollPosition({scrollLeft:r,scrollTop:i}),this._invokeOnSectionRenderedHelper();var o=t.getTotalSize(),a=o.height,s=o.width;this._invokeOnScrollMemoizer({scrollLeft:r||0,scrollTop:i||0,totalHeight:a,totalWidth:s})}},{key:"componentDidUpdate",value:function(e,t){var r=this.props,n=r.height,i=r.scrollToAlignment,o=r.scrollToCell,a=r.width,s=this.state,c=s.scrollLeft,l=s.scrollPositionChangeReason,u=s.scrollTop;l===_&&(c>=0&&c!==t.scrollLeft&&c!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=c),u>=0&&u!==t.scrollTop&&u!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=u)),n===e.height&&i===e.scrollToAlignment&&o===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,r=e.cellCount,i=e.cellLayoutManager,o=e.className,a=e.height,s=e.horizontalOverscanSize,c=e.id,l=e.noContentRenderer,u=e.style,p=e.verticalOverscanSize,f=e.width,m=this.state,g=m.isScrolling,v=m.scrollLeft,y=m.scrollTop;(this._lastRenderedCellCount!==r||this._lastRenderedCellLayoutManager!==i||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=r,this._lastRenderedCellLayoutManager=i,this._calculateSizeAndPositionDataOnNextUpdate=!1,i.calculateSizeAndPositionData());var b=i.getTotalSize(),_=b.height,E=b.width,w=Math.max(0,v-s),x=Math.max(0,y-p),L=Math.min(E,v+f+s),O=Math.min(_,y+a+p),S=a>0&&f>0?i.cellRenderers({height:O-x,isScrolling:g,width:L-w,x:w,y:x}):[],T={boxSizing:"border-box",direction:"ltr",height:t?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:f,willChange:"transform"},P=_>a?this._scrollbarSize:0,I=E>f?this._scrollbarSize:0;return T.overflowX=E+P<=f?"hidden":"auto",T.overflowY=_+I<=a?"hidden":"auto",d.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:h()("ReactVirtualized__Collection",o),id:c,onScroll:this._onScroll,role:"grid",style:(0,n.Z)({},T,u),tabIndex:0},r>0&&d.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:_,maxHeight:_,maxWidth:E,overflow:"hidden",pointerEvents:g?"none":"",width:E}},S),0===r&&l())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout((function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})}),150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,r=e.scrollLeft,n=e.scrollTop,i=e.totalHeight,o=e.totalWidth;this._onScrollMemoizer({callback:function(e){var r=e.scrollLeft,n=e.scrollTop,a=t.props,s=a.height;(0,a.onScroll)({clientHeight:s,clientWidth:a.width,scrollHeight:i,scrollLeft:r,scrollTop:n,scrollWidth:o})},indices:{scrollLeft:r,scrollTop:n}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,r=e.scrollTop,n={scrollPositionChangeReason:_};t>=0&&(n.scrollLeft=t),r>=0&&(n.scrollTop=r),(t>=0&&t!==this.state.scrollLeft||r>=0&&r!==this.state.scrollTop)&&this.setState(n)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop}:null:{scrollLeft:0,scrollTop:0}}}]),t}(d.PureComponent);E.defaultProps={"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0},E.propTypes={},(0,f.polyfill)(E);const w=E,x=function(){function e(t){var r=t.height,n=t.width,i=t.x,o=t.y;(0,s.Z)(this,e),this.height=r,this.width=n,this.x=i,this.y=o,this._indexMap={},this._indices=[]}return(0,c.Z)(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return this.x+","+this.y+" "+this.width+"x"+this.height}}]),e}(),L=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;(0,s.Z)(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return(0,c.Z)(e,[{key:"getCellIndices",value:function(e){var t=e.height,r=e.width,n=e.x,i=e.y,o={};return this.getSections({height:t,width:r,x:n,y:i}).forEach((function(e){return e.getCellIndices().forEach((function(e){o[e]=e}))})),g()(o).map((function(e){return o[e]}))}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,r=e.width,n=e.x,i=e.y,o=Math.floor(n/this._sectionSize),a=Math.floor((n+r-1)/this._sectionSize),s=Math.floor(i/this._sectionSize),c=Math.floor((i+t-1)/this._sectionSize),l=[],u=o;u<=a;u++)for(var d=s;d<=c;d++){var p=u+"."+d;this._sections[p]||(this._sections[p]=new x({height:this._sectionSize,width:this._sectionSize,x:u*this._sectionSize,y:d*this._sectionSize})),l.push(this._sections[p])}return l}},{key:"getTotalSectionCount",value:function(){return g()(this._sections).length}},{key:"toString",value:function(){var e=this;return g()(this._sections).map((function(t){return e._sections[t].toString()}))}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,r=e.index;this._cellMetadata[r]=t,this.getSections(t).forEach((function(e){return e.addCellIndex({index:r})}))}}]),e}();function O(e){var t=e.align,r=void 0===t?"auto":t,n=e.cellOffset,i=e.cellSize,o=e.containerSize,a=e.currentOffset,s=n,c=s-o+i;switch(r){case"start":return s;case"end":return c;case"center":return s-(o-i)/2;default:return Math.max(c,Math.min(s,a))}}var S=function(e){function t(e,r){(0,s.Z)(this,t);var n=(0,l.Z)(this,(t.__proto__||a()(t)).call(this,e,r));return n._cellMetadata=[],n._lastRenderedCellIndices=[],n._cellCache=[],n._isScrollingChange=n._isScrollingChange.bind(n),n._setCollectionViewRef=n._setCollectionViewRef.bind(n),n}return(0,u.Z)(t,e),(0,c.Z)(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=(0,i.Z)(this.props,[]);return d.createElement(w,(0,n.Z)({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,r=e.cellSizeAndPositionGetter,n=[],i=new L(e.sectionSize),o=0,a=0,s=0;s<t;s++){var c=r({index:s});if(null==c.height||isNaN(c.height)||null==c.width||isNaN(c.width)||null==c.x||isNaN(c.x)||null==c.y||isNaN(c.y))throw Error("Invalid metadata returned for cell "+s+":\n        x:"+c.x+", y:"+c.y+", width:"+c.width+", height:"+c.height);o=Math.max(o,c.y+c.height),a=Math.max(a,c.x+c.width),n[s]=c,i.registerCell({cellMetadatum:c,index:s})}return{cellMetadata:n,height:o,sectionManager:i,width:a}}({cellCount:e.cellCount,cellSizeAndPositionGetter:e.cellSizeAndPositionGetter,sectionSize:e.sectionSize});this._cellMetadata=t.cellMetadata,this._sectionManager=t.sectionManager,this._height=t.height,this._width=t.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(e){var t=e.align,r=e.cellIndex,n=e.height,i=e.scrollLeft,o=e.scrollTop,a=e.width,s=this.props.cellCount;if(r>=0&&r<s){var c=this._cellMetadata[r];i=O({align:t,cellOffset:c.x,cellSize:c.width,containerSize:a,currentOffset:i,targetIndex:r}),o=O({align:t,cellOffset:c.y,cellSize:c.height,containerSize:n,currentOffset:o,targetIndex:r})}return{scrollLeft:i,scrollTop:o}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,r=e.height,n=e.isScrolling,i=e.width,o=e.x,a=e.y,s=this.props,c=s.cellGroupRenderer,l=s.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:r,width:i,x:o,y:a}),c({cellCache:this._cellCache,cellRenderer:l,cellSizeAndPositionGetter:function(e){var r=e.index;return t._sectionManager.getCellMetadata({index:r})},indices:this._lastRenderedCellIndices,isScrolling:n})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}]),t}(d.PureComponent);S.defaultProps={"aria-label":"grid",cellGroupRenderer:function(e){var t=e.cellCache,r=e.cellRenderer,n=e.cellSizeAndPositionGetter,i=e.indices,o=e.isScrolling;return i.map((function(e){var i=n({index:e}),a={index:e,isScrolling:o,key:e,style:{height:i.height,left:i.x,position:"absolute",top:i.y,width:i.width}};return o?(e in t||(t[e]=r(a)),t[e]):r(a)})).filter((function(e){return!!e}))}};const T=S;S.propTypes={}},13218:(e,t,r)=>{"use strict";var n=r(99813),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,c=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,u=i?Symbol.for("react.provider"):60109,d=i?Symbol.for("react.context"):60110,p=i?Symbol.for("react.forward_ref"):60112,h=i?Symbol.for("react.suspense"):60113,f=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function _(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||y}function E(){}function w(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||y}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},E.prototype=_.prototype;var x=w.prototype=new E;x.constructor=w,n(x,_.prototype),x.isPureReactComponent=!0;var L={current:null},O=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,r){var n,i={},a=null,s=null;if(null!=t)for(n in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)O.call(t,n)&&!S.hasOwnProperty(n)&&(i[n]=t[n]);var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(n in c=e.defaultProps)void 0===i[n]&&(i[n]=c[n]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:L.current}}function P(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var I=/\/+/g,A=[];function C(e,t,r,n){if(A.length){var i=A.pop();return i.result=e,i.keyPrefix=t,i.func=r,i.context=n,i.count=0,i}return{result:e,keyPrefix:t,func:r,context:n,count:0}}function k(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>A.length&&A.push(e)}function D(e,t,r,n){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var s=!1;if(null===e)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case o:case a:s=!0}}if(s)return r(n,e,""===t?"."+R(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var c=0;c<e.length;c++){var l=t+R(i=e[c],c);s+=D(i,l,r,n)}else if("function"==typeof(l=null===e||"object"!=typeof e?null:"function"==typeof(l=g&&e[g]||e["@@iterator"])?l:null))for(e=l.call(e),c=0;!(i=e.next()).done;)s+=D(i=i.value,l=t+R(i,c++),r,n);else if("object"===i)throw r=""+e,Error(v(31,"[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r,""));return s}function N(e,t,r){return null==e?0:D(e,"",t,r)}function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function M(e,t){e.func.call(e.context,t,e.count++)}function j(e,t,r){var n=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?F(e,n,r,(function(e){return e})):null!=e&&(P(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(I,"$&/")+"/")+r)),n.push(e))}function F(e,t,r,n,i){var o="";null!=r&&(o=(""+r).replace(I,"$&/")+"/"),N(e,j,t=C(t,o,n,i)),k(t)}var Z={current:null};function B(){var e=Z.current;if(null===e)throw Error(v(321));return e}var G={ReactCurrentDispatcher:Z,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:L,IsSomeRendererActing:{current:!1},assign:n};t.Children={map:function(e,t,r){if(null==e)return e;var n=[];return F(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;N(e,M,t=C(null,null,t,r)),k(t)},count:function(e){return N(e,(function(){return null}),null)},toArray:function(e){var t=[];return F(e,t,null,(function(e){return e})),t},only:function(e){if(!P(e))throw Error(v(143));return e}},t.Component=_,t.Fragment=s,t.Profiler=l,t.PureComponent=w,t.StrictMode=c,t.Suspense=h,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=G,t.cloneElement=function(e,t,r){if(null==e)throw Error(v(267,e));var i=n({},e.props),a=e.key,s=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,c=L.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)O.call(t,u)&&!S.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var d=0;d<u;d++)l[d]=arguments[d+2];i.children=l}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:c}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=T,t.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:p,render:e}},t.isValidElement=P,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return B().useCallback(e,t)},t.useContext=function(e,t){return B().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return B().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return B().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return B().useLayoutEffect(e,t)},t.useMemo=function(e,t){return B().useMemo(e,t)},t.useReducer=function(e,t,r){return B().useReducer(e,t,r)},t.useRef=function(e){return B().useRef(e)},t.useState=function(e){return B().useState(e)},t.version="16.14.0"},89526:(e,t,r)=>{"use strict";e.exports=r(13218)},32390:e=>{var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof g?t:g,o=Object.create(i.prototype),a=new P(n||[]);return o._invoke=function(e,t,r){var n=d;return function(i,o){if(n===h)throw new Error("Generator is already running");if(n===f){if("throw"===i)throw o;return A()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===d)throw n=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var c=u(e,t,r);if("normal"===c.type){if(n=r.done?f:p,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=f,r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d="suspendedStart",p="suspendedYield",h="executing",f="completed",m={};function g(){}function v(){}function y(){}var b={};c(b,o,(function(){return this}));var _=Object.getPrototypeOf,E=_&&_(_(I([])));E&&E!==r&&n.call(E,o)&&(b=E);var w=y.prototype=g.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function r(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,n){function o(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(o,o):o()}}function O(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method))return m;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=u(n,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var o=i.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function I(e){if(e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:A}}function A(){return{value:t,done:!0}}return v.prototype=y,c(w,"constructor",y),c(y,"constructor",v),v.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},x(L.prototype),c(L.prototype,a,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new L(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(w),c(w,s,"Generator"),c(w,o,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},10536:(e,t,r)=>{"use strict";var n=r(32389),i=/[\/\?<>\\:\*\|"]/g,o=/[\x00-\x1f\x80-\x9f]/g,a=/^\.+$/,s=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i,c=/[\. ]+$/;function l(e,t){if("string"!=typeof e)throw new Error("Input must be string");var r=e.replace(i,t).replace(o,t).replace(a,t).replace(s,t).replace(c,t);return n(r,255)}e.exports=function(e,t){var r=t&&t.replacement||"",n=l(e,r);return""===r?n:l(n,"")}},41196:(e,t)=>{"use strict";var r,n,i,o,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,c=null,l=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(l,0),e}},u=Date.now();t.unstable_now=function(){return Date.now()-u},r=function(e){null!==s?setTimeout(r,0,e):(s=e,setTimeout(l,0))},n=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},o=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,p=window.Date,h=window.setTimeout,f=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var g=p.now();t.unstable_now=function(){return p.now()-g}}var v=!1,y=null,b=-1,_=5,E=0;o=function(){return t.unstable_now()>=E},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):_=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,x=w.port2;w.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();E=e+_;try{y(!0,e)?x.postMessage(null):(v=!1,y=null)}catch(e){throw x.postMessage(null),e}}else v=!1},r=function(e){y=e,v||(v=!0,x.postMessage(null))},n=function(e,r){b=h((function(){e(t.unstable_now())}),r)},i=function(){f(b),b=-1}}function L(e,t){var r=e.length;e.push(t);e:for(;;){var n=r-1>>>1,i=e[n];if(!(void 0!==i&&0<T(i,t)))break e;e[n]=t,e[r]=i,r=n}}function O(e){return void 0===(e=e[0])?null:e}function S(e){var t=e[0];if(void 0!==t){var r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length;n<i;){var o=2*(n+1)-1,a=e[o],s=o+1,c=e[s];if(void 0!==a&&0>T(a,r))void 0!==c&&0>T(c,a)?(e[n]=c,e[s]=r,n=s):(e[n]=a,e[o]=r,n=o);else{if(!(void 0!==c&&0>T(c,r)))break e;e[n]=c,e[s]=r,n=s}}}return t}return null}function T(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}var P=[],I=[],A=1,C=null,k=3,D=!1,N=!1,R=!1;function M(e){for(var t=O(I);null!==t;){if(null===t.callback)S(I);else{if(!(t.startTime<=e))break;S(I),t.sortIndex=t.expirationTime,L(P,t)}t=O(I)}}function j(e){if(R=!1,M(e),!N)if(null!==O(P))N=!0,r(F);else{var t=O(I);null!==t&&n(j,t.startTime-e)}}function F(e,r){N=!1,R&&(R=!1,i()),D=!0;var a=k;try{for(M(r),C=O(P);null!==C&&(!(C.expirationTime>r)||e&&!o());){var s=C.callback;if(null!==s){C.callback=null,k=C.priorityLevel;var c=s(C.expirationTime<=r);r=t.unstable_now(),"function"==typeof c?C.callback=c:C===O(P)&&S(P),M(r)}else S(P);C=O(P)}if(null!==C)var l=!0;else{var u=O(I);null!==u&&n(j,u.startTime-r),l=!1}return l}finally{C=null,k=a,D=!1}}function Z(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||D||(N=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return k},t.unstable_getFirstCallbackNode=function(){return O(P)},t.unstable_next=function(e){switch(k){case 1:case 2:case 3:var t=3;break;default:t=k}var r=k;k=t;try{return e()}finally{k=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=k;k=e;try{return t()}finally{k=r}},t.unstable_scheduleCallback=function(e,o,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var c=a.delay;c="number"==typeof c&&0<c?s+c:s,a="number"==typeof a.timeout?a.timeout:Z(e)}else a=Z(e),c=s;return e={id:A++,callback:o,priorityLevel:e,startTime:c,expirationTime:a=c+a,sortIndex:-1},c>s?(e.sortIndex=c,L(I,e),null===O(P)&&e===O(I)&&(R?i():R=!0,n(j,c-s))):(e.sortIndex=a,L(P,e),N||D||(N=!0,r(F))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();M(e);var r=O(P);return r!==C&&null!==C&&null!==r&&null!==r.callback&&r.startTime<=e&&r.expirationTime<C.expirationTime||o()},t.unstable_wrapCallback=function(e){var t=k;return function(){var r=k;k=t;try{return e.apply(this,arguments)}finally{k=r}}}},72851:(e,t,r)=>{"use strict";e.exports=r(41196)},72106:e=>{e.exports=function(e,t){for(var r=e.split("."),n=t.split("."),i=0;i<3;i++){var o=Number(r[i]),a=Number(n[i]);if(o>a)return 1;if(a>o)return-1;if(!isNaN(o)&&isNaN(a))return 1;if(isNaN(o)&&!isNaN(a))return-1}return 0}},74765:(e,t,r)=>{const n=Symbol("SemVer ANY");class i{static get ANY(){return n}constructor(e,t){if(t=o(t),e instanceof i){if(e.loose===!!t.loose)return e;e=e.value}l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(e){const t=this.options.loose?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new u(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new d(e.value,t).test(this.value):""===e.operator?""===e.value||new d(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(c(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(c(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=i;const o=r(4681),{re:a,t:s}=r(79720),c=r(97221),l=r(36638),u=r(53292),d=r(83514)},83514:(e,t,r)=>{class n{constructor(e,t){if(t=o(t),e instanceof n)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new n(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!g(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&v(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=((this.options.includePrerelease&&f)|(this.options.loose&&m))+":"+e,r=i.get(t);if(r)return r;const n=this.options.loose,o=n?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE];e=e.replace(o,I(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(l[u.COMPARATORTRIM],d),s("comparator trim",e);let c=(e=(e=(e=e.replace(l[u.TILDETRIM],p)).replace(l[u.CARETTRIM],h)).split(/\s+/).join(" ")).split(" ").map((e=>b(e,this.options))).join(" ").split(/\s+/).map((e=>P(e,this.options)));n&&(c=c.filter((e=>(s("loose invalid filter",e,this.options),!!e.match(l[u.COMPARATORLOOSE]))))),s("range list",c);const v=new Map,y=c.map((e=>new a(e,this.options)));for(const e of y){if(g(e))return[e];v.set(e.value,e)}v.size>1&&v.has("")&&v.delete("");const _=[...v.values()];return i.set(t,_),_}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Range is required");return this.set.some((r=>y(r,t)&&e.set.some((e=>y(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(A(this.set[t],e,this.options))return!0;return!1}}e.exports=n;const i=new(r(25271))({max:1e3}),o=r(4681),a=r(74765),s=r(36638),c=r(53292),{re:l,t:u,comparatorTrimReplace:d,tildeTrimReplace:p,caretTrimReplace:h}=r(79720),{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:m}=r(31087),g=e=>"<0.0.0-0"===e.value,v=e=>""===e.value,y=(e,t)=>{let r=!0;const n=e.slice();let i=n.pop();for(;r&&n.length;)r=n.every((e=>i.intersects(e,t))),i=n.pop();return r},b=(e,t)=>(s("comp",e,t),e=x(e,t),s("caret",e),e=E(e,t),s("tildes",e),e=O(e,t),s("xrange",e),e=T(e,t),s("stars",e),e),_=e=>!e||"x"===e.toLowerCase()||"*"===e,E=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{const r=t.loose?l[u.TILDELOOSE]:l[u.TILDE];return e.replace(r,((t,r,n,i,o)=>{let a;return s("tilde",e,t,r,n,i,o),_(r)?a="":_(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:_(i)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(s("replaceTilde pr",o),a=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,s("tilde return",a),a}))},x=(e,t)=>e.trim().split(/\s+/).map((e=>L(e,t))).join(" "),L=(e,t)=>{s("caret",e,t);const r=t.loose?l[u.CARETLOOSE]:l[u.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,i,o,a)=>{let c;return s("caret",e,t,r,i,o,a),_(r)?c="":_(i)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:_(o)?c="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:a?(s("replaceCaret pr",a),c="0"===r?"0"===i?`>=${r}.${i}.${o}-${a} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${a} <${+r+1}.0.0-0`):(s("no pr"),c="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),s("caret return",c),c}))},O=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map((e=>S(e,t))).join(" ")),S=(e,t)=>{e=e.trim();const r=t.loose?l[u.XRANGELOOSE]:l[u.XRANGE];return e.replace(r,((r,n,i,o,a,c)=>{s("xRange",e,r,n,i,o,a,c);const l=_(i),u=l||_(o),d=u||_(a),p=d;return"="===n&&p&&(n=""),c=t.includePrerelease?"-0":"",l?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&p?(u&&(o=0),a=0,">"===n?(n=">=",u?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===n&&(n="<",u?i=+i+1:o=+o+1),"<"===n&&(c="-0"),r=`${n+i}.${o}.${a}${c}`):u?r=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(r=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),s("xRange return",r),r}))},T=(e,t)=>(s("replaceStars",e,t),e.trim().replace(l[u.STAR],"")),P=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),I=e=>(t,r,n,i,o,a,s,c,l,u,d,p,h)=>`${r=_(n)?"":_(i)?`>=${n}.0.0${e?"-0":""}`:_(o)?`>=${n}.${i}.0${e?"-0":""}`:a?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=_(l)?"":_(u)?`<${+l+1}.0.0-0`:_(d)?`<${l}.${+u+1}.0-0`:p?`<=${l}.${u}.${d}-${p}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`}`.trim(),A=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(s(e[r].semver),e[r].semver!==a.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},53292:(e,t,r)=>{const n=r(36638),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=r(31087),{re:a,t:s}=r(79720),c=r(4681),{compareIdentifiers:l}=r(32283);class u{constructor(e,t){if(t=c(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof u)){if("string"==typeof e&&e===this.version)return 0;e=new u(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof u||(e=new u(e,this.options)),l(this.major,e.major)||l(this.minor,e.minor)||l(this.patch,e.patch)}comparePre(e){if(e instanceof u||(e=new u(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],i=e.prerelease[t];if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return l(r,i)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const r=this.build[t],i=e.build[t];if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return l(r,i)}while(++t)}inc(e,t,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(r)?1:0;if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===l(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}e.exports=u},97221:(e,t,r)=>{const n=r(56355),i=r(62556),o=r(30873),a=r(54148),s=r(31258),c=r(95256);e.exports=(e,t,r,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,l);case"!=":return i(e,r,l);case">":return o(e,r,l);case">=":return a(e,r,l);case"<":return s(e,r,l);case"<=":return c(e,r,l);default:throw new TypeError(`Invalid operator: ${t}`)}}},7569:(e,t,r)=>{const n=r(53292);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},56355:(e,t,r)=>{const n=r(7569);e.exports=(e,t,r)=>0===n(e,t,r)},30873:(e,t,r)=>{const n=r(7569);e.exports=(e,t,r)=>n(e,t,r)>0},54148:(e,t,r)=>{const n=r(7569);e.exports=(e,t,r)=>n(e,t,r)>=0},31258:(e,t,r)=>{const n=r(7569);e.exports=(e,t,r)=>n(e,t,r)<0},95256:(e,t,r)=>{const n=r(7569);e.exports=(e,t,r)=>n(e,t,r)<=0},62556:(e,t,r)=>{const n=r(7569);e.exports=(e,t,r)=>0!==n(e,t,r)},93286:(e,t,r)=>{const n=r(83514);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},31087:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},36638:(e,t,r)=>{var n=r(82530);const i="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=i},32283:e=>{const t=/^[0-9]+$/,r=(e,r)=>{const n=t.test(e),i=t.test(r);return n&&i&&(e=+e,r=+r),e===r?0:n&&!i?-1:i&&!n?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},4681:e=>{const t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r},79720:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n}=r(31087),i=r(36638),o=(t=e.exports={}).re=[],a=t.src=[],s=t.t={};let c=0;const l=(e,t,r)=>{const n=c++;i(e,n,t),s[e]=n,a[n]=t,o[n]=new RegExp(t,r?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${a[s.NUMERICIDENTIFIER]}|${a[s.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${a[s.NUMERICIDENTIFIERLOOSE]}|${a[s.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${a[s.PRERELEASEIDENTIFIER]}(?:\\.${a[s.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${a[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[s.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${a[s.BUILDIDENTIFIER]}(?:\\.${a[s.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${a[s.MAINVERSION]}${a[s.PRERELEASE]}?${a[s.BUILD]}?`),l("FULL",`^${a[s.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${a[s.MAINVERSIONLOOSE]}${a[s.PRERELEASELOOSE]}?${a[s.BUILD]}?`),l("LOOSE",`^${a[s.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",`${a[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),l("XRANGEIDENTIFIER",`${a[s.NUMERICIDENTIFIER]}|x|X|\\*`),l("XRANGEPLAIN",`[v=\\s]*(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:${a[s.PRERELEASE]})?${a[s.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:${a[s.PRERELEASELOOSE]})?${a[s.BUILD]}?)?)?`),l("XRANGE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),l("COERCERTL",a[s.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${a[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",l("TILDE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${a[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",l("CARET",`^${a[s.LONECARET]}${a[s.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${a[s.LONECARET]}${a[s.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${a[s.GTLT]}\\s*(${a[s.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]}|${a[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${a[s.XRANGEPLAIN]})\\s+-\\s+(${a[s.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${a[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[s.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},25271:(e,t,r)=>{"use strict";const n=r(70475),i=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),c=Symbol("maxAge"),l=Symbol("dispose"),u=Symbol("noDisposeOnSet"),d=Symbol("lruList"),p=Symbol("cache"),h=Symbol("updateAgeOnGet"),f=()=>1,m=(e,t,r)=>{const n=e[p].get(t);if(n){const t=n.value;if(g(e,t)){if(y(e,n),!e[s])return}else r&&(e[h]&&(n.value.now=Date.now()),e[d].unshiftNode(n));return t.value}},g=(e,t)=>{if(!t||!t.maxAge&&!e[c])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[c]&&r>e[c]},v=e=>{if(e[o]>e[i])for(let t=e[d].tail;e[o]>e[i]&&null!==t;){const r=t.prev;y(e,t),t=r}},y=(e,t)=>{if(t){const r=t.value;e[l]&&e[l](r.key,r.value),e[o]-=r.length,e[p].delete(r.key),e[d].removeNode(t)}};class b{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0}}const _=(e,t,r,n)=>{let i=r.value;g(e,i)&&(y(e,r),e[s]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[i]=e.max||1/0;const t=e.length||f;if(this[a]="function"!=typeof t?f:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[c]=e.maxAge||0,this[l]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[h]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||1/0,v(this)}get max(){return this[i]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[c]=e,v(this)}get maxAge(){return this[c]}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[a]&&(this[a]=e,this[o]=0,this[d].forEach((e=>{e.length=this[a](e.value,e.key),this[o]+=e.length}))),v(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let r=this[d].tail;null!==r;){const n=r.prev;_(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[d].head;null!==r;){const n=r.next;_(this,e,r,t),r=n}}keys(){return this[d].toArray().map((e=>e.key))}values(){return this[d].toArray().map((e=>e.value))}reset(){this[l]&&this[d]&&this[d].length&&this[d].forEach((e=>this[l](e.key,e.value))),this[p]=new Map,this[d]=new n,this[o]=0}dump(){return this[d].map((e=>!g(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[d]}set(e,t,r){if((r=r||this[c])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,s=this[a](t,e);if(this[p].has(e)){if(s>this[i])return y(this,this[p].get(e)),!1;const a=this[p].get(e).value;return this[l]&&(this[u]||this[l](e,a.value)),a.now=n,a.maxAge=r,a.value=t,this[o]+=s-a.length,a.length=s,this.get(e),v(this),!0}const h=new b(e,t,s,n,r);return h.length>this[i]?(this[l]&&this[l](e,t),!1):(this[o]+=h.length,this[d].unshift(h),this[p].set(e,this[d].head),v(this),!0)}has(e){if(!this[p].has(e))return!1;const t=this[p].get(e).value;return!g(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){const e=this[d].tail;return e?(y(this,e),e.value):null}del(e){y(this,this[p].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{const e=i-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[p].forEach(((e,t)=>m(this,t,!1)))}}},50241:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},70475:(e,t,r)=>{"use strict";function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)t.push(arguments[r]);return t}function i(e,t,r){var n=t===e.head?new s(r,null,t,e):new s(r,t,t.next,e);return null===n.next&&(e.tail=n),null===n.prev&&(e.head=n),e.length++,n}function o(e,t){e.tail=new s(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function a(e,t){e.head=new s(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,t,r,n){if(!(this instanceof s))return new s(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}e.exports=n,n.Node=s,n.create=n,n.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},n.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},n.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},n.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},n.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},n.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},n.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},n.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev},n.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},n.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},n.prototype.map=function(e,t){t=t||this;for(var r=new n,i=this.head;null!==i;)r.push(e.call(t,i.value,this)),i=i.next;return r},n.prototype.mapReverse=function(e,t){t=t||this;for(var r=new n,i=this.tail;null!==i;)r.push(e.call(t,i.value,this)),i=i.prev;return r},n.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r},n.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},n.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;for(;null!==o&&i<t;i++,o=o.next)r.push(o.value);return r},n.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)r.push(o.value);return r},n.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,o=this.head;null!==o&&n<e;n++)o=o.next;var a=[];for(n=0;o&&n<t;n++)a.push(o.value),o=this.removeNode(o);for(null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev),n=0;n<r.length;n++)o=i(this,o,r[n]);return a},n.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};try{r(50241)(n)}catch(e){}},72704:e=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},29449:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},32389:(e,t,r)=>{"use strict";var n=r(17823),i=r(45322);e.exports=n.bind(null,i)},17823:e=>{"use strict";function t(e){return e>=55296&&e<=56319}function r(e){return e>=56320&&e<=57343}e.exports=function(e,n,i){if("string"!=typeof n)throw new Error("Input must be string");for(var o,a,s=n.length,c=0,l=0;l<s;l+=1){if(o=n.charCodeAt(l),a=n[l],t(o)&&r(n.charCodeAt(l+1))&&(a+=n[l+=1]),(c+=e(a))===i)return n.slice(0,l+1);if(c>i)return n.slice(0,l-a.length+1)}return n}},20859:function(e,t){var r,n;void 0===(n="function"==typeof(r=function(){var e={"+":!0,"#":!0,".":!0,"/":!0,";":!0,"?":!0,"&":!0},t={"*":!0};function r(e){return encodeURI(e).replace(/%25[0-9][0-9]/g,(function(e){return"%"+e.substring(3)}))}function n(e){return e=e.replace(/%../g,""),encodeURIComponent(e)===e}function i(i){var o="";e[i.charAt(0)]&&(o=i.charAt(0),i=i.substring(1));var a="",s="",c=!0,l=!1,u=!1;"+"==o?c=!1:"."==o?(s=".",a="."):"/"==o?(s="/",a="/"):"#"==o?(s="#",c=!1):";"==o?(s=";",a=";",l=!0,u=!0):"?"==o?(s="?",a="&",l=!0):"&"==o&&(s="&",a="&",l=!0);for(var d=[],p=i.split(","),h=[],f={},m=0;m<p.length;m++){var g=p[m],v=null;if(-1!=g.indexOf(":")){var y=g.split(":");g=y[0],v=parseInt(y[1])}for(var b={};t[g.charAt(g.length-1)];)b[g.charAt(g.length-1)]=!0,g=g.substring(0,g.length-1);var _={truncate:v,name:g,suffices:b};h.push(_),f[g]=_,d.push(g)}return{varNames:d,prefix:s,substitution:function(e){for(var t="",n=0,i=0;i<h.length;i++){var o=h[i],d=e(o.name);if(null==d||Array.isArray(d)&&0==d.length||"object"==typeof d&&0==Object.keys(d).length)n++;else if(t+=i==n?s:a||",",Array.isArray(d)){l&&(t+=o.name+"=");for(var p=0;p<d.length;p++)p>0&&(t+=o.suffices["*"]&&a||",",o.suffices["*"]&&l&&(t+=o.name+"=")),t+=c?encodeURIComponent(d[p]).replace(/!/g,"%21"):r(d[p])}else if("object"==typeof d){l&&!o.suffices["*"]&&(t+=o.name+"=");var f=!0;for(var m in d)f||(t+=o.suffices["*"]&&a||","),f=!1,t+=c?encodeURIComponent(m).replace(/!/g,"%21"):r(m),t+=o.suffices["*"]?"=":",",t+=c?encodeURIComponent(d[m]).replace(/!/g,"%21"):r(d[m])}else l&&(t+=o.name,u&&""==d||(t+="=")),null!=o.truncate&&(d=d.substring(0,o.truncate)),t+=c?encodeURIComponent(d).replace(/!/g,"%21"):r(d)}return t},unSubstitution:function(e,t,r){if(s&&(e=e.substring(s.length)),1==h.length&&h[0].suffices["*"]){for(var i=(x=h[0]).name,o=x.suffices["*"]?e.split(a||","):[e],u=c&&-1!=e.indexOf("="),d=1;d<o.length;d++)e=o[d],u&&-1==e.indexOf("=")&&(o[d-1]+=(a||",")+e,o.splice(d,1),d--);for(d=0;d<o.length;d++)e=o[d],c&&-1!=e.indexOf("=")&&(u=!0),1==(y=e.split(",")).length?o[d]=y[0]:o[d]=y;if(l||u){for(var p=t[i]||{},m=0;m<o.length;m++){var g=e;if(!l||g){if("string"==typeof o[m]){var v=(e=o[m]).split("=",1)[0];if(e=e.substring(v.length+1),c){if(r&&!n(e))return;e=decodeURIComponent(e)}g=e}else{if(v=(e=o[m][0]).split("=",1)[0],e=e.substring(v.length+1),c){if(r&&!n(e))return;e=decodeURIComponent(e)}o[m][0]=e,g=o[m]}if(c){if(r&&!n(v))return;v=decodeURIComponent(v)}void 0!==p[v]?Array.isArray(p[v])?p[v].push(g):p[v]=[p[v],g]:p[v]=g}}1==Object.keys(p).length&&void 0!==p[i]?t[i]=p[i]:t[i]=p}else{if(c)for(m=0;m<o.length;m++){var y=o[m];if(Array.isArray(y))for(var b=0;b<y.length;b++){if(r&&!n(y[b]))return;y[b]=decodeURIComponent(y[b])}else{if(r&&!n(y))return;o[m]=decodeURIComponent(y)}}void 0!==t[i]?Array.isArray(t[i])?t[i]=t[i].concat(o):t[i]=[t[i]].concat(o):1!=o.length||x.suffices["*"]?t[i]=o:t[i]=o[0]}}else{o=1==h.length?[e]:e.split(a||",");var _={};for(d=0;d<o.length;d++){for(var E=0;E<h.length-1&&E<d&&!h[E].suffices["*"];E++);if(E!=d){for(var w=h.length-1;w>0&&h.length-w<o.length-d&&!h[w].suffices["*"];w--);h.length-w!=o.length-d?_[d]=E:_[d]=w}else _[d]=d}for(d=0;d<o.length;d++)if((e=o[d])||!l){if(y=e.split(","),u=!1,l){i=(e=y[0]).split("=",1)[0],e=e.substring(i.length+1),y[0]=e;var x=f[i]||h[0]}else i=(x=h[_[d]]).name;for(m=0;m<y.length;m++)if(c){if(r&&!n(y[m]))return;y[m]=decodeURIComponent(y[m])}(l||x.suffices["*"])&&void 0!==t[i]?Array.isArray(t[i])?t[i]=t[i].concat(y):t[i]=[t[i]].concat(y):1!=y.length||x.suffices["*"]?t[i]=y:t[i]=y[0]}}return 1}}}function o(e){if(!(this instanceof o))return new o(e);for(var t=e.split("{"),r=[t.shift()],n=[],a=[],s=[],c=[];t.length>0;){var l=t.shift(),u=l.split("}")[0],d=l.substring(u.length+1),p=i(u);a.push(p.substitution),s.push(p.unSubstitution),n.push(p.prefix),r.push(d),c=c.concat(p.varNames)}this.fill=function(e){if(e&&"function"!=typeof e){var t=e;e=function(e){return t[e]}}for(var n=r[0],i=0;i<a.length;i++)n+=(0,a[i])(e),n+=r[i+1];return n},this.fromUri=function(e,t){t=t||{};for(var i={},o=0;o<r.length;o++){var a=r[o];if(e.substring(0,a.length)!==a)return;if(e=e.substring(a.length),o>=r.length-1){if(""==e)break;return}var c=n[o];if(!c||e.substring(0,c.length)===c){for(var l=r[o+1],u=o;;){if(u==r.length-2){var d=e.substring(e.length-l.length);if(d!==l)return;var p=e.substring(0,e.length-l.length);e=d}else if(l){var h=e.indexOf(l);p=e.substring(0,h),e=e.substring(h)}else if(n[u+1])-1===(h=e.indexOf(n[u+1]))&&(h=e.length),p=e.substring(0,h),e=e.substring(h);else{if(r.length>u+2){u++,l=r[u+1];continue}p=e,e=""}break}if(!s[o](p,i,t.strict))return}}return i},this.varNames=c,this.template=e}return o.prototype={toString:function(){return this.template},fillFromObject:function(e){return this.fill(e)},test:function(e,t){return!!this.fromUri(e,t)}},o})?r.apply(t,[]):r)||(e.exports=n)},45322:e=>{"use strict";function t(e){return e>=55296&&e<=56319}function r(e){return e>=56320&&e<=57343}e.exports=function(e){if("string"!=typeof e)throw new Error("Input must be string");for(var n=e.length,i=0,o=null,a=null,s=0;s<n;s++)r(o=e.charCodeAt(s))?null!=a&&t(a)?i+=1:i+=3:o<=127?i+=1:o>=128&&o<=2047?i+=2:o>=2048&&o<=65535&&(i+=3),a=o;return i}},50586:(e,t,r)=>{var n=r(36589),i=r(22708),o=i;o.v1=n,o.v4=i,e.exports=o},98726:e=>{for(var t=[],r=0;r<256;++r)t[r]=(r+256).toString(16).substr(1);e.exports=function(e,r){var n=r||0,i=t;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}},76338:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var r=new Uint8Array(16);e.exports=function(){return t(r),r}}else{var n=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),n[t]=e>>>((3&t)<<3)&255;return n}}},36589:(e,t,r)=>{var n,i,o=r(76338),a=r(98726),s=0,c=0;e.exports=function(e,t,r){var l=t&&r||0,u=t||[],d=(e=e||{}).node||n,p=void 0!==e.clockseq?e.clockseq:i;if(null==d||null==p){var h=o();null==d&&(d=n=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==p&&(p=i=16383&(h[6]<<8|h[7]))}var f=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:c+1,g=f-s+(m-c)/1e4;if(g<0&&void 0===e.clockseq&&(p=p+1&16383),(g<0||f>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=f,c=m,i=p;var v=(1e4*(268435455&(f+=122192928e5))+m)%4294967296;u[l++]=v>>>24&255,u[l++]=v>>>16&255,u[l++]=v>>>8&255,u[l++]=255&v;var y=f/4294967296*1e4&268435455;u[l++]=y>>>8&255,u[l++]=255&y,u[l++]=y>>>24&15|16,u[l++]=y>>>16&255,u[l++]=p>>>8|128,u[l++]=255&p;for(var b=0;b<6;++b)u[l+b]=d[b];return t||a(u)}},22708:(e,t,r)=>{var n=r(76338),i=r(98726);e.exports=function(e,t,r){var o=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||n)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||i(a)}},89198:e=>{"use strict";e.exports=function(){}},20286:e=>{"use strict";e.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},83462:(e,t,r)=>{function n(e){this.options=e||{locator:{}}}function i(){this.cdata=!1}function o(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function a(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function s(e,t,r){return"string"==typeof e?e.substr(t,r):e.length>=t+r||t?new java.lang.String(e,t,r)+"":e}function c(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}n.prototype.parseFromString=function(e,t){var r=this.options,n=new l,o=r.domBuilder||new i,s=r.errorHandler,c=r.locator,u=r.xmlns||{},d={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return c&&o.setDocumentLocator(c),n.errorHandler=function(e,t,r){if(!e){if(t instanceof i)return t;e=t}var n={},o=e instanceof Function;function s(t){var i=e[t];!i&&o&&(i=2==e.length?function(r){e(t,r)}:e),n[t]=i&&function(e){i("[xmldom "+t+"]\t"+e+a(r))}||function(){}}return r=r||{},s("warning"),s("error"),s("fatalError"),n}(s,o,c),n.domBuilder=r.domBuilder||o,/\/x?html?$/.test(t)&&(d.nbsp=" ",d.copy="©",u[""]="http://www.w3.org/1999/xhtml"),u.xml=u.xml||"http://www.w3.org/XML/1998/namespace",e?n.parse(e,u,d):n.errorHandler.error("invalid doc source"),o.doc},i.prototype={startDocument:function(){this.doc=(new u).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,r,n){var i=this.doc,a=i.createElementNS(e,r||t),s=n.length;c(this,a),this.currentElement=a,this.locator&&o(this.locator,a);for(var l=0;l<s;l++){e=n.getURI(l);var u=n.getValue(l),d=(r=n.getQName(l),i.createAttributeNS(e,r));this.locator&&o(n.getLocator(l),d),d.value=d.nodeValue=u,a.setAttributeNode(d)}},endElement:function(e,t,r){var n=this.currentElement;n.tagName,this.currentElement=n.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var r=this.doc.createProcessingInstruction(e,t);this.locator&&o(this.locator,r),c(this,r)},ignorableWhitespace:function(e,t,r){},characters:function(e,t,r){if(e=s.apply(this,arguments)){if(this.cdata)var n=this.doc.createCDATASection(e);else n=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(e)&&this.doc.appendChild(n),this.locator&&o(this.locator,n)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,r){e=s.apply(this,arguments);var n=this.doc.createComment(e);this.locator&&o(this.locator,n),c(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,r){var n=this.doc.implementation;if(n&&n.createDocumentType){var i=n.createDocumentType(e,t,r);this.locator&&o(this.locator,i),c(this,i)}},warning:function(e){console.warn("[xmldom warning]\t"+e,a(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,a(this.locator))},fatalError:function(e){throw console.error("[xmldom fatalError]\t"+e,a(this.locator)),e}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){i.prototype[e]=function(){return null}}));var l=r(31284).G,u=r(24929).DOMImplementation;r(24929),t.a=n},24929:(e,t)=>{function r(e,t){for(var r in e)t[r]=e[r]}function n(e,t){var n=e.prototype;if(Object.create){var i=Object.create(t.prototype);n.__proto__=i}if(!(n instanceof t)){function o(){}o.prototype=t.prototype,r(n,o=new o),e.prototype=n=o}n.constructor!=e&&("function"!=typeof e&&console.error("unknow Class:"+e),n.constructor=e)}var i={},o=i.ELEMENT_NODE=1,a=i.ATTRIBUTE_NODE=2,s=i.TEXT_NODE=3,c=i.CDATA_SECTION_NODE=4,l=i.ENTITY_REFERENCE_NODE=5,u=i.ENTITY_NODE=6,d=i.PROCESSING_INSTRUCTION_NODE=7,p=i.COMMENT_NODE=8,h=i.DOCUMENT_NODE=9,f=i.DOCUMENT_TYPE_NODE=10,m=i.DOCUMENT_FRAGMENT_NODE=11,g=i.NOTATION_NODE=12,v={},y={},b=(v.INDEX_SIZE_ERR=(y[1]="Index size error",1),v.DOMSTRING_SIZE_ERR=(y[2]="DOMString size error",2),v.HIERARCHY_REQUEST_ERR=(y[3]="Hierarchy request error",3)),_=(v.WRONG_DOCUMENT_ERR=(y[4]="Wrong document",4),v.INVALID_CHARACTER_ERR=(y[5]="Invalid character",5),v.NO_DATA_ALLOWED_ERR=(y[6]="No data allowed",6),v.NO_MODIFICATION_ALLOWED_ERR=(y[7]="No modification allowed",7),v.NOT_FOUND_ERR=(y[8]="Not found",8)),E=(v.NOT_SUPPORTED_ERR=(y[9]="Not supported",9),v.INUSE_ATTRIBUTE_ERR=(y[10]="Attribute in use",10));function w(e,t){if(t instanceof Error)var r=t;else r=this,Error.call(this,y[e]),this.message=y[e],Error.captureStackTrace&&Error.captureStackTrace(this,w);return r.code=e,t&&(this.message=this.message+": "+t),r}function x(){}function L(e,t){this._node=e,this._refresh=t,O(this)}function O(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var n=e._refresh(e._node);te(e,"length",n.length),r(n,e),e._inc=t}}function S(){}function T(e,t){for(var r=e.length;r--;)if(e[r]===t)return r}function P(e,t,r,n){if(n?t[T(t,n)]=r:t[t.length++]=r,e){r.ownerElement=e;var i=e.ownerDocument;i&&(n&&R(i,e,n),function(e,t,r){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==r.namespaceURI&&(t._nsMap[r.prefix?r.localName:""]=r.value)}(i,e,r))}}function I(e,t,r){var n=T(t,r);if(!(n>=0))throw w(_,new Error(e.tagName+"@"+r));for(var i=t.length-1;n<i;)t[n]=t[++n];if(t.length=i,e){var o=e.ownerDocument;o&&(R(o,e,r),r.ownerElement=null)}}function A(e){if(this._features={},e)for(var t in e)this._features=e[t]}function C(){}function k(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function D(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(D(e,t))return!0}while(e=e.nextSibling)}function N(){}function R(e,t,r,n){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==r.namespaceURI&&delete t._nsMap[r.prefix?r.localName:""]}function M(e,t,r){if(e&&e._inc){e._inc++;var n=t.childNodes;if(r)n[n.length++]=r;else{for(var i=t.firstChild,o=0;i;)n[o++]=i,i=i.nextSibling;n.length=o}}}function j(e,t){var r=t.previousSibling,n=t.nextSibling;return r?r.nextSibling=n:e.firstChild=n,n?n.previousSibling=r:e.lastChild=r,M(e.ownerDocument,e),t}function F(e,t,r){var n=t.parentNode;if(n&&n.removeChild(t),t.nodeType===m){var i=t.firstChild;if(null==i)return t;var o=t.lastChild}else i=o=t;var a=r?r.previousSibling:e.lastChild;i.previousSibling=a,o.nextSibling=r,a?a.nextSibling=i:e.firstChild=i,null==r?e.lastChild=o:r.previousSibling=o;do{i.parentNode=e}while(i!==o&&(i=i.nextSibling));return M(e.ownerDocument||e,e),t.nodeType==m&&(t.firstChild=t.lastChild=null),t}function Z(){this._nsMap={}}function B(){}function G(){}function U(){}function H(){}function z(){}function V(){}function Y(){}function W(){}function K(){}function $(){}function q(){}function X(e,t,r){var n=e.prefix||"",i=e.namespaceURI;if(!n&&!i)return!1;if("xml"===n&&"http://www.w3.org/XML/1998/namespace"===i||"http://www.w3.org/2000/xmlns/"==i)return!1;for(var o=r.length;o--;){var a=r[o];if(a.prefix==n)return a.namespace!=i}return!0}function J(e,t,r,n,i){if(n){if(!(e=n(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case o:i||(i=[]),i.length;var u=e.attributes,g=u.length,v=e.firstChild,y=e.tagName;r="http://www.w3.org/1999/xhtml"===e.namespaceURI||r,t.push("<",y);for(var b=0;b<g;b++)"xmlns"==(_=u.item(b)).prefix?i.push({prefix:_.localName,namespace:_.value}):"xmlns"==_.nodeName&&i.push({prefix:"",namespace:_.value});for(b=0;b<g;b++){var _;if(X(_=u.item(b),0,i)){var E=_.prefix||"",w=_.namespaceURI,x=E?" xmlns:"+E:" xmlns";t.push(x,'="',w,'"'),i.push({prefix:E,namespace:w})}J(_,t,r,n,i)}if(X(e,0,i)&&(E=e.prefix||"",w=e.namespaceURI,x=E?" xmlns:"+E:" xmlns",t.push(x,'="',w,'"'),i.push({prefix:E,namespace:w})),v||r&&!/^(?:meta|link|img|br|hr|input)$/i.test(y)){if(t.push(">"),r&&/^script$/i.test(y))for(;v;)v.data?t.push(v.data):J(v,t,r,n,i),v=v.nextSibling;else for(;v;)J(v,t,r,n,i),v=v.nextSibling;t.push("</",y,">")}else t.push("/>");return;case h:case m:for(v=e.firstChild;v;)J(v,t,r,n,i),v=v.nextSibling;return;case a:return t.push(" ",e.name,'="',e.value.replace(/[<&"]/g,k),'"');case s:return t.push(e.data.replace(/[<&]/g,k));case c:return t.push("<![CDATA[",e.data,"]]>");case p:return t.push("\x3c!--",e.data,"--\x3e");case f:var L=e.publicId,O=e.systemId;if(t.push("<!DOCTYPE ",e.name),L)t.push(' PUBLIC "',L),O&&"."!=O&&t.push('" "',O),t.push('">');else if(O&&"."!=O)t.push(' SYSTEM "',O,'">');else{var S=e.internalSubset;S&&t.push(" [",S,"]"),t.push(">")}return;case d:return t.push("<?",e.target," ",e.data,"?>");case l:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function Q(e,t,r){var n;switch(t.nodeType){case o:(n=t.cloneNode(!1)).ownerDocument=e;case m:break;case a:r=!0}if(n||(n=t.cloneNode(!1)),n.ownerDocument=e,n.parentNode=null,r)for(var i=t.firstChild;i;)n.appendChild(Q(e,i,r)),i=i.nextSibling;return n}function ee(e,t,r){var n=new t.constructor;for(var i in t){var s=t[i];"object"!=typeof s&&s!=n[i]&&(n[i]=s)}switch(t.childNodes&&(n.childNodes=new x),n.ownerDocument=e,n.nodeType){case o:var c=t.attributes,l=n.attributes=new S,u=c.length;l._ownerElement=n;for(var d=0;d<u;d++)n.setAttributeNode(ee(e,c.item(d),!0));break;case a:r=!0}if(r)for(var p=t.firstChild;p;)n.appendChild(ee(e,p,r)),p=p.nextSibling;return n}function te(e,t,r){e[t]=r}v.INVALID_STATE_ERR=(y[11]="Invalid state",11),v.SYNTAX_ERR=(y[12]="Syntax error",12),v.INVALID_MODIFICATION_ERR=(y[13]="Invalid modification",13),v.NAMESPACE_ERR=(y[14]="Invalid namespace",14),v.INVALID_ACCESS_ERR=(y[15]="Invalid access",15),w.prototype=Error.prototype,r(v,w),x.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var r=[],n=0;n<this.length;n++)J(this[n],r,e,t);return r.join("")}},L.prototype.item=function(e){return O(this),this[e]},n(L,x),S.prototype={length:0,item:x.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var r=this[t];if(r.nodeName==e)return r}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new w(E);var r=this.getNamedItem(e.nodeName);return P(this._ownerElement,this,e,r),r},setNamedItemNS:function(e){var t,r=e.ownerElement;if(r&&r!=this._ownerElement)throw new w(E);return t=this.getNamedItemNS(e.namespaceURI,e.localName),P(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return I(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var r=this.getNamedItemNS(e,t);return I(this._ownerElement,this,r),r},getNamedItemNS:function(e,t){for(var r=this.length;r--;){var n=this[r];if(n.localName==t&&n.namespaceURI==e)return n}return null}},A.prototype={hasFeature:function(e,t){var r=this._features[e.toLowerCase()];return!(!r||t&&!(t in r))},createDocument:function(e,t,r){var n=new N;if(n.implementation=this,n.childNodes=new x,n.doctype=r,r&&n.appendChild(r),t){var i=n.createElementNS(e,t);n.appendChild(i)}return n},createDocumentType:function(e,t,r){var n=new V;return n.name=e,n.nodeName=e,n.publicId=t,n.systemId=r,n}},C.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return F(this,e,t)},replaceChild:function(e,t){this.insertBefore(e,t),t&&this.removeChild(t)},removeChild:function(e){return j(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return ee(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==s&&e.nodeType==s?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var r=t._nsMap;if(r)for(var n in r)if(r[n]==e)return n;t=t.nodeType==a?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var r=t._nsMap;if(r&&e in r)return r[e];t=t.nodeType==a?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},r(i,C),r(i,C.prototype),N.prototype={nodeName:"#document",nodeType:h,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==m){for(var r=e.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,t),r=n}return e}return null==this.documentElement&&e.nodeType==o&&(this.documentElement=e),F(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),j(this,e)},importNode:function(e,t){return Q(this,e,t)},getElementById:function(e){var t=null;return D(this.documentElement,(function(r){if(r.nodeType==o&&r.getAttribute("id")==e)return t=r,!0})),t},createElement:function(e){var t=new Z;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.childNodes=new x,(t.attributes=new S)._ownerElement=t,t},createDocumentFragment:function(){var e=new $;return e.ownerDocument=this,e.childNodes=new x,e},createTextNode:function(e){var t=new U;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new H;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new z;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var r=new q;return r.ownerDocument=this,r.tagName=r.target=e,r.nodeValue=r.data=t,r},createAttribute:function(e){var t=new B;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new K;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var r=new Z,n=t.split(":"),i=r.attributes=new S;return r.childNodes=new x,r.ownerDocument=this,r.nodeName=t,r.tagName=t,r.namespaceURI=e,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=t,i._ownerElement=r,r},createAttributeNS:function(e,t){var r=new B,n=t.split(":");return r.ownerDocument=this,r.nodeName=t,r.name=t,r.namespaceURI=e,r.specified=!0,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=t,r}},n(N,C),Z.prototype={nodeType:o,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var r=this.ownerDocument.createAttribute(e);r.value=r.nodeValue=""+t,this.setAttributeNode(r)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===m?this.insertBefore(e,null):function(e,t){var r=t.parentNode;if(r){var n=e.lastChild;r.removeChild(t),n=e.lastChild}return n=e.lastChild,t.parentNode=e,t.previousSibling=n,t.nextSibling=null,n?n.nextSibling=t:e.firstChild=t,e.lastChild=t,M(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);r&&this.removeAttributeNode(r)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);return r&&r.value||""},setAttributeNS:function(e,t,r){var n=this.ownerDocument.createAttributeNS(e,t);n.value=n.nodeValue=""+r,this.setAttributeNode(n)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new L(this,(function(t){var r=[];return D(t,(function(n){n===t||n.nodeType!=o||"*"!==e&&n.tagName!=e||r.push(n)})),r}))},getElementsByTagNameNS:function(e,t){return new L(this,(function(r){var n=[];return D(r,(function(i){i===r||i.nodeType!==o||"*"!==e&&i.namespaceURI!==e||"*"!==t&&i.localName!=t||n.push(i)})),n}))}},N.prototype.getElementsByTagName=Z.prototype.getElementsByTagName,N.prototype.getElementsByTagNameNS=Z.prototype.getElementsByTagNameNS,n(Z,C),B.prototype.nodeType=a,n(B,C),G.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(y[b])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,r){r=this.data.substring(0,e)+r+this.data.substring(e+t),this.nodeValue=this.data=r,this.length=r.length}},n(G,C),U.prototype={nodeName:"#text",nodeType:s,splitText:function(e){var t=this.data,r=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},n(U,G),H.prototype={nodeName:"#comment",nodeType:p},n(H,G),z.prototype={nodeName:"#cdata-section",nodeType:c},n(z,G),V.prototype.nodeType=f,n(V,C),Y.prototype.nodeType=g,n(Y,C),W.prototype.nodeType=u,n(W,C),K.prototype.nodeType=l,n(K,C),$.prototype.nodeName="#document-fragment",$.prototype.nodeType=m,n($,C),q.prototype.nodeType=d,n(q,C),C.prototype.toString=function(e,t){var r=[],n=9==this.nodeType?this.documentElement:this,i=n.prefix,o=n.namespaceURI;if(o&&null==i&&null==(i=n.lookupPrefix(o)))var a=[{namespace:o,prefix:null}];return J(this,r,e,t,a),r.join("")};try{if(Object.defineProperty){function re(e){switch(e.nodeType){case o:case m:var t=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&t.push(re(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(L.prototype,"length",{get:function(){return O(this),this.$$length}}),Object.defineProperty(C.prototype,"textContent",{get:function(){return re(this)},set:function(e){switch(this.nodeType){case o:case m:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),te=function(e,t,r){e["$$"+t]=r}}}catch(ne){}t.DOMImplementation=A},31284:(e,t)=>{var r=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,n=new RegExp("[\\-\\.0-9"+r.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),i=new RegExp("^"+r.source+n.source+"*(?::"+r.source+n.source+"*)?$");function o(){}function a(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function s(e,t,r,n,i,o){for(var a,s=++t,c=0;;){var l=e.charAt(s);switch(l){case"=":if(1===c)a=e.slice(t,s),c=3;else{if(2!==c)throw new Error("attribute equal must after attrName");c=3}break;case"'":case'"':if(3===c||1===c){if(1===c&&(o.warning('attribute value must after "="'),a=e.slice(t,s)),t=s+1,!((s=e.indexOf(l,t))>0))throw new Error("attribute value no end '"+l+"' match");u=e.slice(t,s).replace(/&#?\w+;/g,i),r.add(a,u,t-1),c=5}else{if(4!=c)throw new Error('attribute value must after "="');u=e.slice(t,s).replace(/&#?\w+;/g,i),r.add(a,u,t),o.warning('attribute "'+a+'" missed start quot('+l+")!!"),t=s+1,c=5}break;case"/":switch(c){case 0:r.setTagName(e.slice(t,s));case 5:case 6:case 7:c=7,r.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==c&&r.setTagName(e.slice(t,s)),s;case">":switch(c){case 0:r.setTagName(e.slice(t,s));case 5:case 6:case 7:break;case 4:case 1:"/"===(u=e.slice(t,s)).slice(-1)&&(r.closed=!0,u=u.slice(0,-1));case 2:2===c&&(u=a),4==c?(o.warning('attribute "'+u+'" missed quot(")!!'),r.add(a,u.replace(/&#?\w+;/g,i),t)):("http://www.w3.org/1999/xhtml"===n[""]&&u.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+u+'" missed value!! "'+u+'" instead!!'),r.add(u,u,t));break;case 3:throw new Error("attribute value missed!!")}return s;case"€":l=" ";default:if(l<=" ")switch(c){case 0:r.setTagName(e.slice(t,s)),c=6;break;case 1:a=e.slice(t,s),c=2;break;case 4:var u=e.slice(t,s).replace(/&#?\w+;/g,i);o.warning('attribute "'+u+'" missed quot(")!!'),r.add(a,u,t);case 5:c=6}else switch(c){case 2:r.tagName,"http://www.w3.org/1999/xhtml"===n[""]&&a.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+a+'" missed value!! "'+a+'" instead2!!'),r.add(a,a,t),t=s,c=1;break;case 5:o.warning('attribute space is required"'+a+'"!!');case 6:c=1,t=s;break;case 3:c=4,t=s;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}s++}}function c(e,t,r){for(var n=e.tagName,i=null,o=e.length;o--;){var a=e[o],s=a.qName,c=a.value;if((h=s.indexOf(":"))>0)var l=a.prefix=s.slice(0,h),u=s.slice(h+1),p="xmlns"===l&&u;else u=s,l=null,p="xmlns"===s&&"";a.localName=u,!1!==p&&(null==i&&(i={},d(r,r={})),r[p]=i[p]=c,a.uri="http://www.w3.org/2000/xmlns/",t.startPrefixMapping(p,c))}for(o=e.length;o--;)(l=(a=e[o]).prefix)&&("xml"===l&&(a.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==l&&(a.uri=r[l||""]));var h;(h=n.indexOf(":"))>0?(l=e.prefix=n.slice(0,h),u=e.localName=n.slice(h+1)):(l=null,u=e.localName=n);var f=e.uri=r[l||""];if(t.startElement(f,u,n,e),!e.closed)return e.currentNSMap=r,e.localNSMap=i,!0;if(t.endElement(f,u,n),i)for(l in i)t.endPrefixMapping(l)}function l(e,t,r,n,i){if(/^(?:script|textarea)$/i.test(r)){var o=e.indexOf("</"+r+">",t),a=e.substring(t+1,o);if(/[&<]/.test(a))return/^script$/i.test(r)?(i.characters(a,0,a.length),o):(a=a.replace(/&#?\w+;/g,n),i.characters(a,0,a.length),o)}return t+1}function u(e,t,r,n){var i=n[r];return null==i&&((i=e.lastIndexOf("</"+r+">"))<t&&(i=e.lastIndexOf("</"+r)),n[r]=i),i<t}function d(e,t){for(var r in e)t[r]=e[r]}function p(e,t,r,n){if("-"===e.charAt(t+2))return"-"===e.charAt(t+3)?(i=e.indexOf("--\x3e",t+4))>t?(r.comment(e,t+4,i-t-4),i+3):(n.error("Unclosed comment"),-1):-1;if("CDATA["==e.substr(t+3,6)){var i=e.indexOf("]]>",t+9);return r.startCDATA(),r.characters(e,t+9,i-t-9),r.endCDATA(),i+3}var o=function(e,t){var r,n=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=t,i.exec(e);r=i.exec(e);)if(n.push(r),r[1])return n}(e,t),a=o.length;if(a>1&&/!doctype/i.test(o[0][0])){var s=o[1][0],c=a>3&&/^public$/i.test(o[2][0])&&o[3][0],l=a>4&&o[4][0],u=o[a-1];return r.startDTD(s,c&&c.replace(/^(['"])(.*?)\1$/,"$2"),l&&l.replace(/^(['"])(.*?)\1$/,"$2")),r.endDTD(),u.index+u[0].length}return-1}function h(e,t,r){var n=e.indexOf("?>",t);if(n){var i=e.substring(t,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return i?(i[0].length,r.processingInstruction(i[1],i[2]),n+2):-1}return-1}function f(e){}function m(e,t){return e.__proto__=t,e}o.prototype={parse:function(e,t,r){var n=this.domBuilder;n.startDocument(),d(t,t={}),function(e,t,r,n,i){function o(e){var t=e.slice(1,-1);return t in r?r[t]:"#"===t.charAt(0)?function(e){if(e>65535){var t=55296+((e-=65536)>>10),r=56320+(1023&e);return String.fromCharCode(t,r)}return String.fromCharCode(e)}(parseInt(t.substr(1).replace("x","0x"))):(i.error("entity not found:"+e),e)}function d(t){if(t>w){var r=e.substring(w,t).replace(/&#?\w+;/g,o);b&&m(w),n.characters(r,0,t-w),w=t}}function m(t,r){for(;t>=v&&(r=y.exec(e));)g=r.index,v=g+r[0].length,b.lineNumber++;b.columnNumber=t-g+1}for(var g=0,v=0,y=/.*(?:\r\n?|\n)|.*$/g,b=n.locator,_=[{currentNSMap:t}],E={},w=0;;){try{var x=e.indexOf("<",w);if(x<0){if(!e.substr(w).match(/^\s*$/)){var L=n.doc,O=L.createTextNode(e.substr(w));L.appendChild(O),n.currentElement=O}return}switch(x>w&&d(x),e.charAt(x+1)){case"/":var S=e.indexOf(">",x+3),T=e.substring(x+2,S),P=_.pop();S<0?(T=e.substring(x+2).replace(/[\s<].*/,""),i.error("end tag name: "+T+" is not complete:"+P.tagName),S=x+1+T.length):T.match(/\s</)&&(T=T.replace(/[\s<].*/,""),i.error("end tag name: "+T+" maybe not complete"),S=x+1+T.length);var I=P.localNSMap,A=P.tagName==T;if(A||P.tagName&&P.tagName.toLowerCase()==T.toLowerCase()){if(n.endElement(P.uri,P.localName,T),I)for(var C in I)n.endPrefixMapping(C);A||i.fatalError("end tag name: "+T+" is not match the current start tagName:"+P.tagName)}else _.push(P);S++;break;case"?":b&&m(x),S=h(e,x,n);break;case"!":b&&m(x),S=p(e,x,n,i);break;default:b&&m(x);var k=new f,D=_[_.length-1].currentNSMap,N=(S=s(e,x,k,D,o,i),k.length);if(!k.closed&&u(e,S,k.tagName,E)&&(k.closed=!0,r.nbsp||i.warning("unclosed xml attribute")),b&&N){for(var R=a(b,{}),M=0;M<N;M++){var j=k[M];m(j.offset),j.locator=a(b,{})}n.locator=R,c(k,n,D)&&_.push(k),n.locator=b}else c(k,n,D)&&_.push(k);"http://www.w3.org/1999/xhtml"!==k.uri||k.closed?S++:S=l(e,S,k.tagName,o,n)}}catch(e){i.error("element parse error: "+e),S=-1}S>w?w=S:d(Math.max(x,w)+1)}}(e,t,r,n,this.errorHandler),n.endDocument()}},f.prototype={setTagName:function(e){if(!i.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},add:function(e,t,r){if(!i.test(e))throw new Error("invalid attribute:"+e);this[this.length++]={qName:e,value:t,offset:r}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},m({},m.prototype)instanceof m||(m=function(e,t){function r(){}for(t in r.prototype=t,r=new r,e)r[t]=e[t];return r}),t.G=o},28972:()=>{try{const e=(window.nodeRequire||require)("module").Module,t=e._resolveLookupPaths.bind(e);e._resolveLookupPaths=(e,r)=>{const n=r.paths;r.paths=[],n?.length>0&&r.paths.push(n[0]);const i=t(e,r);return r.paths=n,i}}catch(e){console.log("Error applying module path restriction:",e)}},92188:(e,t,r)=>{window.ccLibrariesPublicPath&&(r.p=window.ccLibrariesPublicPath)},28069:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AH404Error-usage",viewBox:"18.37 17 134.63 87",url:r.p+"resources/icons.svg#AH404Error",toString:function(){return this.url}}},570:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AHNoElements-usage",viewBox:"0 0 96 96",url:r.p+"resources/icons.svg#AHNoElements",toString:function(){return this.url}}},35213:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ActivateFonts-usage",viewBox:"0 0 26 26",url:r.p+"resources/icons.svg#ActivateFonts",toString:function(){return this.url}}},11867:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ActivateFontsSpinner-usage",viewBox:"0 0 26 26",url:r.p+"resources/icons.svg#ActivateFontsSpinner",toString:function(){return this.url}}},65403:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Add-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Add",toString:function(){return this.url}}},49331:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Add12-usage",viewBox:"0 0 12 12",url:r.p+"resources/icons.svg#Add12",toString:function(){return this.url}}},1963:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Add14-usage",viewBox:"0 0 14 14",url:r.p+"resources/icons.svg#Add14",toString:function(){return this.url}}},6791:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddAnimation-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#AddAnimation",toString:function(){return this.url}}},15406:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddBrush-usage",viewBox:"-0.5 0.5 42 42",url:r.p+"resources/icons.svg#AddBrush",toString:function(){return this.url}}},37461:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddCCLibrary-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#AddCCLibrary",toString:function(){return this.url}}},69035:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddCharacterStyle-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#AddCharacterStyle",toString:function(){return this.url}}},92846:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddCircle-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#AddCircle",toString:function(){return this.url}}},28506:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddCircleOutline-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#AddCircleOutline",toString:function(){return this.url}}},70793:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddComponent-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#AddComponent",toString:function(){return this.url}}},18434:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddCopy-usage",viewBox:"0 0 37 37",url:r.p+"resources/icons.svg#AddCopy",toString:function(){return this.url}}},33433:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddDropdown-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#AddDropdown",toString:function(){return this.url}}},4931:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddGroup-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#AddGroup",toString:function(){return this.url}}},9981:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddImage-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#AddImage",toString:function(){return this.url}}},752:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddLayerStyle-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#AddLayerStyle",toString:function(){return this.url}}},29451:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddLink-usage",viewBox:"0 0 96 37",url:r.p+"resources/icons.svg#AddLink",toString:function(){return this.url}}},64978:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddLook-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#AddLook",toString:function(){return this.url}}},99743:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddModel-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#AddModel",toString:function(){return this.url}}},52576:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddParagraphStyle-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#AddParagraphStyle",toString:function(){return this.url}}},33610:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddPattern-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#AddPattern",toString:function(){return this.url}}},30571:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddStock-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#AddStock",toString:function(){return this.url}}},1360:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AddText-usage",viewBox:"0 0 42 42",url:r.p+"resources/icons.svg#AddText",toString:function(){return this.url}}},62344:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AdobeFonts-usage",viewBox:"0 0 36 36",url:r.p+"resources/icons.svg#AdobeFonts",toString:function(){return this.url}}},20568:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Alert-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Alert",toString:function(){return this.url}}},32903:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AlertOutline-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#AlertOutline",toString:function(){return this.url}}},95852:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AllFilterIcon-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#AllFilterIcon",toString:function(){return this.url}}},42964:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ArrowDown-usage",viewBox:"0 0 8 10",url:r.p+"resources/icons.svg#ArrowDown",toString:function(){return this.url}}},78027:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ArrowUp-usage",viewBox:"0 0 8 10",url:r.p+"resources/icons.svg#ArrowUp",toString:function(){return this.url}}},31651:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AssetBrokenElement-usage",viewBox:"0 0 14 14",url:r.p+"resources/icons.svg#AssetBrokenElement",toString:function(){return this.url}}},29179:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AssetBrokenLink-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#AssetBrokenLink",toString:function(){return this.url}}},54104:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AssetLinked-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#AssetLinked",toString:function(){return this.url}}},27481:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AssetRestricted-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#AssetRestricted",toString:function(){return this.url}}},70474:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AssetUpdate-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#AssetUpdate",toString:function(){return this.url}}},49864:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"AssetUploading-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#AssetUploading",toString:function(){return this.url}}},61659:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Back-usage",viewBox:"0 0 42 42",url:r.p+"resources/icons.svg#Back",toString:function(){return this.url}}},46787:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"BackArrow-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#BackArrow",toString:function(){return this.url}}},48907:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Browse-usage",viewBox:"0 0 14 14",url:r.p+"resources/icons.svg#Browse",toString:function(){return this.url}}},58389:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"BrowseTeamLibrary-usage",viewBox:"0 0 72 72",url:r.p+"resources/icons.svg#BrowseTeamLibrary",toString:function(){return this.url}}},67012:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Building-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Building",toString:function(){return this.url}}},56586:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CCLibrary-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#CCLibrary",toString:function(){return this.url}}},19161:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CCLibrary16-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#CCLibrary16",toString:function(){return this.url}}},6598:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CCLibraryLocked-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#CCLibraryLocked",toString:function(){return this.url}}},99910:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CCXCreateBrandPlus-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#CCXCreateBrandPlus",toString:function(){return this.url}}},33666:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CCXCreateColor-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#CCXCreateColor",toString:function(){return this.url}}},69177:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CCXCreateFont-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#CCXCreateFont",toString:function(){return this.url}}},23130:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CCXCreateImage-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#CCXCreateImage",toString:function(){return this.url}}},13558:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CCXCreateLogo-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#CCXCreateLogo",toString:function(){return this.url}}},21425:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CCXCreateTemplate-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#CCXCreateTemplate",toString:function(){return this.url}}},21105:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Capture-usage",viewBox:"0 0 240 234",url:r.p+"resources/icons.svg#Capture",toString:function(){return this.url}}},46922:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ChangeCloud-usage",viewBox:"0 0 20 13",url:r.p+"resources/icons.svg#ChangeCloud",toString:function(){return this.url}}},48567:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Checkmark-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Checkmark",toString:function(){return this.url}}},31719:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CheckmarkCircle-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#CheckmarkCircle",toString:function(){return this.url}}},42625:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CheckmarkRounded-usage",viewBox:"0 0 12 12",url:r.p+"resources/icons.svg#CheckmarkRounded",toString:function(){return this.url}}},49386:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ChevronDownMedium-usage",viewBox:"0 0 10 6",url:r.p+"resources/icons.svg#ChevronDownMedium",toString:function(){return this.url}}},73453:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ChevronDownSmall-usage",viewBox:"0 0 8 6",url:r.p+"resources/icons.svg#ChevronDownSmall",toString:function(){return this.url}}},78714:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ChevronLeftMedium-usage",viewBox:"0 0 6 10",url:r.p+"resources/icons.svg#ChevronLeftMedium",toString:function(){return this.url}}},20776:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ChevronLeftSmall-usage",viewBox:"0 0 6 8",url:r.p+"resources/icons.svg#ChevronLeftSmall",toString:function(){return this.url}}},506:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ChevronRightMedium-usage",viewBox:"0 0 6 10",url:r.p+"resources/icons.svg#ChevronRightMedium",toString:function(){return this.url}}},75797:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ChevronRightSmall-usage",viewBox:"0 0 6 8",url:r.p+"resources/icons.svg#ChevronRightSmall",toString:function(){return this.url}}},9126:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Clock-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Clock",toString:function(){return this.url}}},80351:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Close-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#Close",toString:function(){return this.url}}},7007:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Cloud-usage",viewBox:"0 0 42 42",url:r.p+"resources/icons.svg#Cloud",toString:function(){return this.url}}},9848:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ColorPalette-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#ColorPalette",toString:function(){return this.url}}},27327:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Copy-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Copy",toString:function(){return this.url}}},40880:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CreateATeamLibrary-usage",viewBox:"0 0 72 72",url:r.p+"resources/icons.svg#CreateATeamLibrary",toString:function(){return this.url}}},26222:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CreateColor-usage",viewBox:"0 0 18 18.002",url:r.p+"resources/icons.svg#CreateColor",toString:function(){return this.url}}},94275:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CreateColortheme-usage",viewBox:"0 0 18 18.002",url:r.p+"resources/icons.svg#CreateColortheme",toString:function(){return this.url}}},33949:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CreateFont-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#CreateFont",toString:function(){return this.url}}},14484:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CreateImage-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#CreateImage",toString:function(){return this.url}}},62159:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CreateLogo-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#CreateLogo",toString:function(){return this.url}}},453:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CreateTemplate-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#CreateTemplate",toString:function(){return this.url}}},58823:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CreativeCloud-usage",viewBox:"0 0 96 96",url:r.p+"resources/icons.svg#CreativeCloud",toString:function(){return this.url}}},242:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CreativeCloudAlert-usage",viewBox:"0 0 70 70",url:r.p+"resources/icons.svg#CreativeCloudAlert",toString:function(){return this.url}}},46690:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"CreativeCloudError-usage",viewBox:"0 0 70 70",url:r.p+"resources/icons.svg#CreativeCloudError",toString:function(){return this.url}}},13068:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Date-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Date",toString:function(){return this.url}}},97991:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Delete-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#Delete",toString:function(){return this.url}}},86346:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"DiscoverLibraries-usage",viewBox:"0 0 100 100",url:r.p+"resources/icons.svg#DiscoverLibraries",toString:function(){return this.url}}},94878:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"DocumentAssets-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#DocumentAssets",toString:function(){return this.url}}},64172:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"DownArrow-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#DownArrow",toString:function(){return this.url}}},55158:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"DownloadFromCloud-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#DownloadFromCloud",toString:function(){return this.url}}},64851:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Duplicate-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Duplicate",toString:function(){return this.url}}},51371:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Edit-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Edit",toString:function(){return this.url}}},23087:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"EmptyLibrary-usage",viewBox:"0 0 250 250",url:r.p+"resources/icons.svg#EmptyLibrary",toString:function(){return this.url}}},838:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"EmptyLibrary1-usage",viewBox:"0 0 136 136",url:r.p+"resources/icons.svg#EmptyLibrary1",toString:function(){return this.url}}},42699:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"EmptyLibrary2-usage",viewBox:"0 0 136 136",url:r.p+"resources/icons.svg#EmptyLibrary2",toString:function(){return this.url}}},4471:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"EmptyLibrary3-usage",viewBox:"0 0 136 136",url:r.p+"resources/icons.svg#EmptyLibrary3",toString:function(){return this.url}}},41791:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Error-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#Error",toString:function(){return this.url}}},11551:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Eyedropper-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#Eyedropper",toString:function(){return this.url}}},22370:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Filter-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Filter",toString:function(){return this.url}}},74989:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Filter16-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#Filter16",toString:function(){return this.url}}},85394:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"FilterApplied-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#FilterApplied",toString:function(){return this.url}}},93038:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"FilterNotification16-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#FilterNotification16",toString:function(){return this.url}}},22209:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"FilterWarning-usage",viewBox:"0 0 48.7 50.6",url:r.p+"resources/icons.svg#FilterWarning",toString:function(){return this.url}}},82261:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Flag-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Flag",toString:function(){return this.url}}},81764:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Folder-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#Folder",toString:function(){return this.url}}},48538:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"FolderOpen-usage",viewBox:"0 0 36 36",url:r.p+"resources/icons.svg#FolderOpen",toString:function(){return this.url}}},29575:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Globe-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Globe",toString:function(){return this.url}}},8332:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"GlobeSearch-usage",viewBox:"0 0 14 14",url:r.p+"resources/icons.svg#GlobeSearch",toString:function(){return this.url}}},97365:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"GridView-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#GridView",toString:function(){return this.url}}},73344:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Group-usage",viewBox:"0 0 42 42",url:r.p+"resources/icons.svg#Group",toString:function(){return this.url}}},51546:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"HelpOutline-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#HelpOutline",toString:function(){return this.url}}},28902:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"IlluAccessAssetsEverywhere-usage",viewBox:"0 0 280 250",url:r.p+"resources/icons.svg#IlluAccessAssetsEverywhere",toString:function(){return this.url}}},86109:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Image-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#Image",toString:function(){return this.url}}},16825:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Info-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#Info",toString:function(){return this.url}}},32548:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"InfoOutline-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#InfoOutline",toString:function(){return this.url}}},56533:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"InfoS2-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#InfoS2",toString:function(){return this.url}}},83383:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Invite-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#Invite",toString:function(){return this.url}}},86080:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Leave-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Leave",toString:function(){return this.url}}},34533:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"LibraryAccess-usage",viewBox:"0 0 28 32",url:r.p+"resources/icons.svg#LibraryAccess",toString:function(){return this.url}}},30998:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Link-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Link",toString:function(){return this.url}}},4005:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"LinkedDocumentLibrary_CanEdit-usage",viewBox:"0 0 150 150",url:r.p+"resources/icons.svg#LinkedDocumentLibrary_CanEdit",toString:function(){return this.url}}},56016:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"LinkedDocumentLibrary_CanView-usage",viewBox:"0 0 150 150",url:r.p+"resources/icons.svg#LinkedDocumentLibrary_CanView",toString:function(){return this.url}}},61439:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"LinkedLibrary-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#LinkedLibrary",toString:function(){return this.url}}},46089:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ListView-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#ListView",toString:function(){return this.url}}},29932:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Lock-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#Lock",toString:function(){return this.url}}},14904:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"LockMenu-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#LockMenu",toString:function(){return this.url}}},72836:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"LockPopup-usage",viewBox:"0 0 36 36",url:r.p+"resources/icons.svg#LockPopup",toString:function(){return this.url}}},98618:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Logos-usage",viewBox:"0 0 49 49",url:r.p+"resources/icons.svg#Logos",toString:function(){return this.url}}},87584:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Magnify-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#Magnify",toString:function(){return this.url}}},24861:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"MissingFontWarning-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#MissingFontWarning",toString:function(){return this.url}}},17296:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"More-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#More",toString:function(){return this.url}}},4006:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Move-usage",viewBox:"0 0 19 19",url:r.p+"resources/icons.svg#Move",toString:function(){return this.url}}},21296:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"NamingOrder-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#NamingOrder",toString:function(){return this.url}}},61419:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Next-usage",viewBox:"0 0 42 42",url:r.p+"resources/icons.svg#Next",toString:function(){return this.url}}},68857:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"NoSearchResults-usage",viewBox:"0 0 100 100",url:r.p+"resources/icons.svg#NoSearchResults",toString:function(){return this.url}}},29974:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Note-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#Note",toString:function(){return this.url}}},99576:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"OnboardingCCLibrary-usage",viewBox:"0 0 184 184",url:r.p+"resources/icons.svg#OnboardingCCLibrary",toString:function(){return this.url}}},36652:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"OpenIn-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#OpenIn",toString:function(){return this.url}}},1704:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Organisations-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Organisations",toString:function(){return this.url}}},9801:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"PathView-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#PathView",toString:function(){return this.url}}},11537:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"PlaceOnCanvas-usage",viewBox:"0 0 26 26",url:r.p+"resources/icons.svg#PlaceOnCanvas",toString:function(){return this.url}}},41464:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Plus-usage",viewBox:"0 0 42 42",url:r.p+"resources/icons.svg#Plus",toString:function(){return this.url}}},42110:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"PlusDrag-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#PlusDrag",toString:function(){return this.url}}},54721:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Projects-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Projects",toString:function(){return this.url}}},53225:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"PublishRemove-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#PublishRemove",toString:function(){return this.url}}},17529:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Question-usage",viewBox:"0 0 42 42",url:r.p+"resources/icons.svg#Question",toString:function(){return this.url}}},83742:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ReadOnly-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#ReadOnly",toString:function(){return this.url}}},91355:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Rename-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Rename",toString:function(){return this.url}}},36346:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ReuseUpdateAssets-usage",viewBox:"0 0 100 100",url:r.p+"resources/icons.svg#ReuseUpdateAssets",toString:function(){return this.url}}},7639:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"S2_Icon_Copy_20_N-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#S2_Icon_Copy_20_N",toString:function(){return this.url}}},39895:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_Buildings-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#SX_Buildings",toString:function(){return this.url}}},83841:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_Close-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#SX_Close",toString:function(){return this.url}}},66529:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_Delete-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#SX_Delete",toString:function(){return this.url}}},80862:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_Download-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#SX_Download",toString:function(){return this.url}}},89030:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_Duplicate-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#SX_Duplicate",toString:function(){return this.url}}},93567:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_Edit-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#SX_Edit",toString:function(){return this.url}}},9997:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_Filter-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#SX_Filter",toString:function(){return this.url}}},3367:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_Flag-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#SX_Flag",toString:function(){return this.url}}},61383:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_GlobeGrid-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#SX_GlobeGrid",toString:function(){return this.url}}},58530:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_Invite-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#SX_Invite",toString:function(){return this.url}}},78295:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_Leave-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#SX_Leave",toString:function(){return this.url}}},54381:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_Logo-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#SX_Logo",toString:function(){return this.url}}},75151:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_PublishRemove-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#SX_PublishRemove",toString:function(){return this.url}}},16314:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_Search-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#SX_Search",toString:function(){return this.url}}},77729:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_SortOrderDown-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#SX_SortOrderDown",toString:function(){return this.url}}},60791:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_SortOrderUp-usage",viewBox:"0 0 20 20",url:r.p+"resources/icons.svg#SX_SortOrderUp",toString:function(){return this.url}}},21549:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_User-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#SX_User",toString:function(){return this.url}}},60569:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SX_UserGroup-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#SX_UserGroup",toString:function(){return this.url}}},7280:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"S_MoveTo_18_N-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#S_MoveTo_18_N",toString:function(){return this.url}}},4465:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Settings-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Settings",toString:function(){return this.url}}},26246:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ShareAssets-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#ShareAssets",toString:function(){return this.url}}},62458:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Shop-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Shop",toString:function(){return this.url}}},57325:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ShoppingCart-usage",viewBox:"0 0 36 36",url:r.p+"resources/icons.svg#ShoppingCart",toString:function(){return this.url}}},73557:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"ShowMenu-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#ShowMenu",toString:function(){return this.url}}},2548:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Sort-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#Sort",toString:function(){return this.url}}},93065:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SortDescending-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#SortDescending",toString:function(){return this.url}}},87295:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"StockLicensedBadge-usage",viewBox:"0 0 46 40",url:r.p+"resources/icons.svg#StockLicensedBadge",toString:function(){return this.url}}},45071:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Subscribed-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#Subscribed",toString:function(){return this.url}}},29184:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SyncAlert-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#SyncAlert",toString:function(){return this.url}}},32797:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SyncDefault-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#SyncDefault",toString:function(){return this.url}}},47403:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SyncError-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#SyncError",toString:function(){return this.url}}},69543:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Syncing-usage",viewBox:"0 0 16 16",url:r.p+"resources/icons.svg#Syncing",toString:function(){return this.url}}},8404:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"SyncingSpinner-usage",viewBox:"0 0 26 26",url:r.p+"resources/icons.svg#SyncingSpinner",toString:function(){return this.url}}},73671:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"TraditionalLibrary_CanEdit-usage",viewBox:"0 0 150 150",url:r.p+"resources/icons.svg#TraditionalLibrary_CanEdit",toString:function(){return this.url}}},88998:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"TraditionalLibrary_CanView-usage",viewBox:"0 0 150 150",url:r.p+"resources/icons.svg#TraditionalLibrary_CanView",toString:function(){return this.url}}},57067:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"TreeView-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#TreeView",toString:function(){return this.url}}},23687:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"UploadDocAssets-usage",viewBox:"0 0 14 14",url:r.p+"resources/icons.svg#UploadDocAssets",toString:function(){return this.url}}},88864:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"UploadImage-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#UploadImage",toString:function(){return this.url}}},7317:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"UseAsBrand-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#UseAsBrand",toString:function(){return this.url}}},52449:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"UseAsLibrary-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#UseAsLibrary",toString:function(){return this.url}}},39100:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"User-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#User",toString:function(){return this.url}}},33380:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"UserGroup-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#UserGroup",toString:function(){return this.url}}},4046:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"UserGroupOutline-usage",viewBox:void 0,url:r.p+"resources/icons.svg#UserGroupOutline",toString:function(){return this.url}}},95861:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"VerifyContentAuthenticity-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#VerifyContentAuthenticity",toString:function(){return this.url}}},7237:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"Visibility-usage",viewBox:"0 0 18 18",url:r.p+"resources/icons.svg#Visibility",toString:function(){return this.url}}},71001:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={id:"XDFile-usage",viewBox:"0 0 32 32",url:r.p+"resources/icons.svg#XDFile",toString:function(){return this.url}}},9142:(e,t,r)=>{"use strict";r.d(t,{Z:()=>E});var n,i,o,a,s=r(89526),c=r(2652),l=r.n(c),u=r(62631),d=r(50265),p=r(27611),h=r(84824),f=r(72279);let m=(0,u.Pi)((a=class extends s.Component{constructor(...e){var t;super(...e),(t=o)&&Object.defineProperty(this,"pageInput",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0}),this.onKeyDown=e=>{const t=parseInt(this.pageInput,10);switch(e.key){case"ArrowUp":case"Up":this.changePage(t+1);break;case"ArrowDown":case"Down":this.changePage(t-1);break;case" ":this.changePage(t)}},this.changePage=e=>{this.isInvalidPage(e)||(this.pageInput=e,this.props.onPageChange(e))},this.onPageInputBlur=()=>{this.props.currentPage!==this.pageInput&&(this.pageInput=this.props.currentPage)},this.onNext=()=>{this.changePage(this.props.currentPage+1)},this.onPrevious=()=>{this.changePage(this.props.currentPage-1)},this.onInputChangeEvent=e=>{const t=e.target.value;""!==t&&this.isInvalidPage(t)?e.target.value=""!==this.pageInput?this.props.currentPage:"":(this.pageInput=t,t&&this.changePage(t))},this.onButtonKeyPress=(e,t)=>{"Enter"===e.key&&t()}}componentDidUpdate(e){e.currentPage!==this.props.currentPage&&this.changePage(this.props.currentPage)}isInvalidPage(e){const t=this.props.totalPages;return!!isNaN(e)||(e=parseInt(e,10))<1||t&&e>t}get pageDisplay(){return s.createElement("div",{className:"pagination-controls-number-display"},this.props.allowInput?this.inputDisplay:this.noInputDisplay)}get inputDisplay(){return s.createElement(s.Fragment,null,s.createElement("input",{type:"text","data-test-id":"spectrum-pagination-input",value:this.pageInput,onBlur:this.onPageInputBlur,onKeyDown:this.onKeyDown,onChange:this.onInputChangeEvent}),s.createElement("span",{"data-test-id":"spectrum-pagination-total",className:"spectrum-Body--secondary spectrum-Pagination-counter"},(0,h.Iu)("DL_INFO_INPUT_PAGINATION_COUNT",{totalPages:this.props.totalPages})))}get noInputDisplay(){return s.createElement("span",{"data-test-id":"spectrum-pagination-total"},(0,h.Iu)("DL_INFO_PAGINATION_COUNT",{currentPage:this.props.currentPage,totalPages:this.props.totalPages}))}render(){return s.createElement("div",{className:"spectrum-Pagination spectrum-Pagination--explicit pagination-wrapper","data-test-id":"spectrum-pagination"},s.createElement(f.Z,{className:"pagination-controls-arrow","data-test-id":"spectrum-pagination-previous",onClick:this.onPrevious},s.createElement(p.Z,{id:"ChevronLeftMedium",height:10})),this.pageDisplay,s.createElement(f.Z,{className:"pagination-controls-arrow","data-test-id":"spectrum-pagination-next",onClick:this.onNext},s.createElement(p.Z,{id:"ChevronRightMedium",height:10})))}},a.defaultProps={allowInput:!1},a.propTypes={totalPages:l().number.isRequired,onPageChange:l().func.isRequired,currentPage:l().number.isRequired,allowInput:l().bool},g=(i=a).prototype,v="pageInput",y=[d.observable],b={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}},_={},Object.keys(b).forEach((function(e){_[e]=b[e]})),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=y.slice().reverse().reduce((function(e,t){return t(g,v,e)||e}),_),void 0===_.initializer&&(Object.defineProperty(g,v,_),_=null),o=_,n=i))||n;var g,v,y,b,_;class E extends s.Component{get navigationControls(){return s.createElement("div",{className:"info-panel-controller-nav-controls"},s.createElement(m,{currentPage:this.props.currentStopIndex+1,totalPages:this.props.controllerData.length,onPageChange:this.props.onChange}))}get navigationRow(){return s.createElement("div",{className:"details-row details-navigation-row"},s.createElement("div",{className:"details-label details-label-stop-navigation"},(0,h.Iu)(this.props.stopLabel)),s.createElement("div",{className:"details-value"},this.navigationControls))}get details(){const e=this.props.controllerData[this.props.currentStopIndex].data.map((e=>{const t=`info-panel-controller-detail-${e.label.toLowerCase().replace(/[^0-9a-z]/gi,"-")}`;return s.createElement("div",{className:"details-row",key:t,"data-test-id":t},s.createElement("div",{className:"details-label"},e.label),s.createElement("div",{className:"details-value"},e.value))}));return s.createElement("div",{className:"info-panel-controller-details"},s.createElement("div",{className:"details-row details-navigation-row-container"},this.navigationRow),e)}render(){return this.props.controllerData.length?s.createElement("div",{className:"info-panel-controller-wrapper","data-test-id":"info-panel-controller"},this.props.displayBar,this.details):null}}E.defaultProps={stopLabel:"DL_INFO_GRADIENT_STOP"},E.propTypes={displayBar:l().node.isRequired,controllerData:l().arrayOf(l().object).isRequired,onChange:l().func.isRequired,currentStopIndex:l().number.isRequired,stopLabel:l().string}},72279:(e,t,r)=>{"use strict";r.d(t,{Z:()=>A});var n=r(89526),i=r(2652),o=r.n(i),a=r(50265),s=r(62631),c=r(40743),l=r(99767),u=r(64403),d=r.n(u),p=r(76485),h=r(52844);const f=["variant","children","disabled","selected","quiet","uxpUseNative"],m=["children"];var g,v,y,b,_,E;function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){L(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function L(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},O.apply(this,arguments)}function S(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function T(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function P(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let I=(g=a.observable.ref,(0,s.Pi)(((E=class extends n.Component{constructor(...e){super(...e),T(this,"active",b,this),T(this,"buttonRef",_,this),this.setButtonRef=e=>{this.buttonRef=e},this.onClick=e=>{this.props.onClick&&!this.props.disabled&&this.props.onClick(e)},this.onDrop=()=>{!this.props.disabled&&this.props.onDrop()},this.onMouseDown=e=>{!this.props.disabled&&this.props.onMouseDown(e)},this.onActive=()=>this.active=!0,this.onInactive=()=>this.active=!1}get classes(){return p.Z.hasNativeControlStyles&&this.props.variant?this.props.className:d()(this.props.className,"base-button",{"div-image-button":!p.Z.supportsImagesInButtons,disabled:this.props.disabled,selected:this.props.selected,active:this.active})}get buttonView(){const e=this.props,t=e.variant,r=e.children,i=e.disabled,o=e.selected,a=e.quiet,s=e.uxpUseNative,l=S(e,f);if(!p.Z.supportsImagesInButtons&&!t)return this.divView;const u=n.createElement("button",O({},(0,c.default)(l),{tabIndex:"0","data-test-id":this.props["data-test-id"]||"button",className:this.classes,onClick:this.onClick,onDrop:this.onDrop,onMouseDown:this.onMouseDown,disabled:i}),r),d=x(x({},(0,c.default)(l)),{},{quiet:a,ref:this.setButtonRef,variant:t,tabIndex:"0","data-test-id":this.props["data-test-id"]||"button",onClick:this.onClick,onDrop:this.onDrop,onMouseDown:this.onMouseDown,selected:o||null,disabled:i||null,className:this.classes,uxpUseNative:s});return t&&"action"!==t?n.createElement(h.Z,O({fallback:u},d),r):(delete d.variant,n.createElement(h.Z,O({variant:"action"},d),r))}get divView(){const e=this.props,t=e.children,r=S(e,m);return n.createElement("div",O({},(0,c.default)(r),{"data-test-id":this.props["data-test-id"]||"button",tabIndex:"0",className:d()("uxp-imgButton",this.classes),onClick:this.onClick,onDrop:this.onDrop,onMouseDown:e=>{this.onActive(),this.onMouseDown(e)},onMouseUp:this.onInactive,onMouseLeave:this.onInactive}),t)}render(){return this.props.tooltip?n.createElement(l.Z,{placement:"top-start",content:this.props.tooltip,featureId:this.props.featureId},this.buttonView):this.buttonView}}).defaultProps={selected:!1,disabled:!1,onMouseDown:()=>{},onDrop:()=>{}},E.propTypes={onClick:o().func,onDrop:o().func,onMouseDown:o().func,className:o().string,children:o().node,tooltip:o().string,selected:o().bool,disabled:o().bool,variant:o().oneOf(["cta","primary","secondary","warning","action","accent"]),"data-test-id":o().string,featureId:o().string,quiet:o().bool,uxpUseNative:o().bool},b=P((y=E).prototype,"active",[a.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_=P(y.prototype,"buttonRef",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=y))||v);const A=n.forwardRef(((e,t)=>n.createElement(I,O({},e,{ref:t}))))},73435:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(89526),i=r(2652),o=r.n(i),a=r(45236);class s extends n.Component{render(){const e=this.props.preferSpectrumFallback?void 0:n.createElement(n.Fragment,null,this.props.children);return n.createElement(a.Z,{"data-test-id":"button-group",className:this.props.className,fallback:e,orientation:this.props.orientation},this.props.children)}}s.defaultProps={orientation:"horizontal"},s.propTypes={orientation:o().oneOf(["horizontal","vertical"]),preferSpectrumFallback:o().bool,className:o().string,children:o().node}},51702:(e,t,r)=>{"use strict";r.d(t,{Z:()=>v});var n,i,o,a,s,c=r(89526),l=r(2652),u=r.n(l),d=r(50265),p=r(27611),h=r(72279),f=r(24937),m=r(62631),g=r(85080);let v=(n=d.observable.ref,(0,m.Pi)((s=class extends c.Component{constructor(...e){var t;super(...e),this.overlayState=new g.Z({ignoreScrollEvents:!0,ignoreFocus:!0}),(t=a)&&Object.defineProperty(this,"buttonRef",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0}),this.setButtonRef=e=>{this.buttonRef=e},this.handleClick=e=>{e.stopPropagation(),this.overlayState.toggleOverlay();const t=this.customLabelRef.getBoundingClientRect();this.context.viewState.setContextMenuPositionState({x:t.left,y:t.bottom}),this.props.onContextMenuClick(e,this.buttonRef)},this.handleKeyDown=e=>{"Enter"!==e.key&&" "!==e.key||this.handleClick(e)},this.setCustomLabelRef=e=>{this.customLabelRef=e}}render(){return c.createElement("div",{ref:this.setCustomLabelRef},c.createElement(h.Z,{variant:"action",className:"w2B",quiet:this.props.quiet,selected:this.overlayState.isOpen,"data-test-id":"context-menu-button",onClick:this.handleClick,onKeyDown:this.handleKeyDown,ref:this.setButtonRef,"aria-label":"Context Menu Button"},c.createElement(p.Z,{id:this.props.icon,className:"AK4",height:18})))}},s.contextType=f.r,s.defaultProps={quiet:!1,icon:"More"},s.propTypes={onContextMenuClick:u().func.isRequired,quiet:u().bool,icon:u().string,dataTestId:u().string},y=(o=s).prototype,b="buttonRef",_=[n],E={configurable:!0,enumerable:!0,writable:!0,initializer:null},w={},Object.keys(E).forEach((function(e){w[e]=E[e]})),w.enumerable=!!w.enumerable,w.configurable=!!w.configurable,("value"in w||w.initializer)&&(w.writable=!0),w=_.slice().reverse().reduce((function(e,t){return t(y,b,e)||e}),w),void 0===w.initializer&&(Object.defineProperty(y,b,w),w=null),a=w,i=o))||i);var y,b,_,E,w},36791:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n=r(89526),i=r(2652),o=r.n(i),a=r(27611),s=r(72279),c=r(64403),l=r.n(c),u=r(99767),d=r(84824),p=r(5837),h=r(76485);class f extends n.Component{constructor(...e){super(...e),this.onClick=e=>{e.stopPropagation(),this.props.disabled||this.props.onClick(e)}}get graphicsViewContents(){return n.createElement("div",{className:"create-card-contents"},n.createElement("div",{className:"u4n"},n.createElement(a.Z,{id:this.props.icon,height:32,className:"Ijd"}),n.createElement("div",{className:"Frh"},n.createElement(a.Z,{id:"Add",height:18,className:"OS4"}))),this.createCardButton)}get createCardButton(){return h.Z.isMobileView?n.createElement("span",{className:"d8y","data-test-id":`create-card-text-${this.props.shortType}`},this.props.buttonText):n.createElement(s.Z,{quiet:!0,variant:"accent",disabled:this.props.disabled,"data-test-id":`create-card-button-${this.props.shortType}`},this.props.buttonText)}get smallIcon(){return n.createElement("div",{className:"cpZ"},n.createElement(a.Z,{id:`Create${this.props.shortType.charAt(0).toUpperCase()+this.props.shortType.slice(1)}`,height:18,className:"OS4"}))}get fullWidthContents(){const e=this.props.shortType.toUpperCase();return n.createElement("div",{className:"xKd"},this.smallIcon,n.createElement("div",{className:"jVH","data-test-id":`create-card-title-${this.props.shortType}`},n.createElement(p.Z,{html:(0,d.Iu)(`DL_ADD_TITLE_${e}`)})),n.createElement("div",{className:"bik","data-test-id":`create-card-subtitle-${this.props.shortType}`},(0,d.Iu)(`DL_ADD_SUBTITLE_${e}`)))}render(){const e=l()("I5d",`create-card-${this.props.shortType}`,{xFe:this.props.disabled,bJL:this.props.fullWidth}),t=this.props.disabled?(0,d.Iu)("DL_INSERT_TOOLTIP_LIMIT"):"";return n.createElement(u.Z,{content:t,placement:"top",className:"PwA"},n.createElement("div",{className:e,onClick:this.onClick,"data-test-id":`create-card-${this.props.shortType}`},this.props.fullWidth?this.fullWidthContents:this.graphicsViewContents))}}f.defaultProps={disabled:!1,fullWidth:!1},f.propTypes={disabled:o().bool,icon:o().string.isRequired,onClick:o().func,shortType:o().string.isRequired,buttonText:o().string,fullWidth:o().bool}},75157:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n,i,o=r(89526),a=r(62631),s=r(76485),c=r(24937);let l=(0,a.Pi)(((i=class extends o.Component{render(){return this.context.dialogManager.dialog&&s.Z.openCustomDialog&&!this.context.dialogManager.isDialogAlwaysInline?(s.Z.openCustomDialog(),null):this.context.dialogManager.dialog||null}}).contextType=c.r,n=i))||n},98405:(e,t,r)=>{"use strict";r.d(t,{Z:()=>g});var n,i,o,a=r(89526),s=r(50265),c=r(62631),l=r(84824),u=r(27611),d=r(99386),p=r(76485),h=r(51461),f=r(24937),m=r(52844);let g=(0,c.Pi)(((o=class extends a.Component{constructor(...e){super(...e),this._revealRootView=()=>{h.ZP.reportEvent("Navigation","Library Panel","click","root-view",{content:{category:"Empty Document Assets"}}),this.context.viewState.showRootView()},this._browseSharedLibrariesinCCD=()=>{h.ZP.reportEvent("Navigation","Root View","click","view-shared-libraries"),this.context.libraryManager.openBrowseAll()},this._browsePublicLibrariesInCCD=()=>{h.ZP.reportEvent("Navigation","Root View","click","view-public-libraries"),this.context.libraryManager.openMarketplace()},this._openLM=()=>{h.ZP.reportEvent("Navigation","Root View","click","manage-libraries"),p.Z.openLibraryManagerWindow()},this._discoverLibraries=()=>{if(d.Z.currentProduct.config.handleDiscoverLibraries)return d.Z.currentProduct.config.handleDiscoverLibraries();this._browsePublicLibrariesInCCD()}}get libraries(){return this.context.libraryManager.libraries}get message(){return this.context.libraryManager.currentLibrary&&this.context.libraryManager.currentLibrary.isDocumentAssets?{bodyText:"EMPTY_DOC_ASSETS_MESSAGE",callToActionText:"EMPTY_DOC_ASSETS_CTA",callToActionType:"link",showImage:!0,onClickHandler:this._revealRootView}:this.libraries.length<=d.Z.MAX_LIBRARIES_ONBOARDING?{bodyText:"EMPTY_ROOT_VIEW_MESSAGE",callToActionText:"EMPTY_ROOT_VIEW_CTA",callToActionType:"button",showImage:!0,onClickHandler:this._discoverLibraries}:this.hasLibraryManager?{bodyText:"ROOT_VIEW_MESSAGE_LM",callToActionText:"ROOT_VIEW_CTA_LM",callToActionType:"link",showImage:!1,onClickHandler:this._openLM}:{component:this.noLMRootViewMessage}}get noLMRootViewMessage(){return a.createElement(a.Fragment,null,this.getCallToAction("link","DL_MORE_LIBRARY_BROWSE",this._browseSharedLibrariesinCCD,"root-view-browse-shared-link"),this.getCallToAction("link","DL_MORE_LIBRARY_BROWSE_PUBLIC",this._browsePublicLibrariesInCCD,"root-view-browse-public-link"))}get hasLibraryManager(){return d.Z.currentProduct.config.hasLibraryManager}get icon(){return a.createElement("div",{className:"discover-libraries-graphic","data-test-id":"discover-libraries-graphic"},a.createElement(u.Z,{id:"DiscoverLibraries",height:100}))}getCallToAction(e,t,r,n){return"button"===e?a.createElement(m.Z,{"data-test-id":"discover-libraries-browse-button",variant:"cta",onClick:r},(0,l.Iu)(t)):a.createElement("div",{className:"panel-contents-bottom-message-link",onClick:r,"data-test-id":n||"discover-libraries-link"},(0,l.Iu)(t))}get discoverLibrariesContent(){const e=this.message,t=e.bodyText,r=e.callToActionText,n=e.callToActionType,i=e.onClickHandler,o=e.component,s=e.showImage;return a.createElement("div",{className:"discover-libraries","data-test-id":"discover-libraries-message"},s&&this.icon,t&&a.createElement("div",{className:"discover-libraries-text","data-test-id":"discover-libraries-text"},(0,l.Iu)(t)),o||this.getCallToAction(n,r,i))}render(){var e,t;return(null===(e=(t=d.Z.currentProduct).getCustomDiscoverLibrariesView)||void 0===e?void 0:e.call(t))||this.discoverLibrariesContent}}).contextType=f.r,v=(i=o).prototype,y="discoverLibrariesContent",b=[s.computed],_=Object.getOwnPropertyDescriptor(i.prototype,"discoverLibrariesContent"),E=i.prototype,w={},Object.keys(_).forEach((function(e){w[e]=_[e]})),w.enumerable=!!w.enumerable,w.configurable=!!w.configurable,("value"in w||w.initializer)&&(w.writable=!0),w=b.slice().reverse().reduce((function(e,t){return t(v,y,e)||e}),w),E&&void 0!==w.initializer&&(w.value=w.initializer?w.initializer.call(E):void 0,w.initializer=void 0),void 0===w.initializer&&(Object.defineProperty(v,y,w),w=null),n=i))||n;var v,y,b,_,E,w},82562:(e,t,r)=>{"use strict";r.d(t,{Z:()=>E});var n,i,o,a=r(89526),s=r(27611),c=r(52844),l=r(24937),u=r(84824),d=r(2652),p=r.n(d),h=r(50265),f=r(62631),m=r(79012),g=r(88166),v=r.n(g),y=r(85834),b=r(99386),_=r(5837);let E=(0,f.Pi)(((o=class extends a.Component{get syncStatus(){return this.context.libraryManager.syncStatus}get librariesIcon(){var e;return a.createElement("div",{className:"uqj"},a.createElement(s.Z,{id:null!==(e=this.props.graphic)&&void 0!==e?e:"FilterWarning",height:b.Z.currentProduct.config.filterIconHeight||82,width:b.Z.currentProduct.config.filterIconWidth||80}))}get header(){var e;const t=y.Z.get("brandFeatureEnabled")?"DL_LIBRARY_AND_BRAND_EMPTY_VIEW_HEADER":"DL_TEAM_LIBRARY_EMPTY_VIEW_HEADER";return a.createElement("div",{className:"eV2","data-test-id":"empty-library-grid-header"},null!==(e=this.props.header)&&void 0!==e?e:(0,u.Iu)(t))}get subtitle(){var e,t,r;let n=y.Z.get("brandFeatureEnabled")?"DL_LIBRARY_AND_BRAND_EMPTY_VIEW_SUBTITLE":"DL_TEAM_LIBRARY_EMPTY_VIEW_SUBTITLE";return null!==(e=b.Z.currentProduct.config)&&void 0!==e&&null!==(t=e.hasGlobalSearch)&&void 0!==t&&t.call(e)&&(n="DL_EMPTY_LIB_PANEL_GLOBAL_SEARCH"),a.createElement("div",{className:"ypv","data-test-id":"empty-library-grid-subtitle"},a.createElement(_.Z,{html:null!==(r=this.props.subtitle)&&void 0!==r?r:(0,u.Iu)(n)}))}get clearFilterButton(){const e=this.context.viewState.isLibraryNameSearchType();return a.createElement("div",{className:"_00"},a.createElement(c.Z,{"data-test-id":"empty-library-grid-clear-button",variant:"secondary",onClick:()=>{this.context.viewState.resetCurrentLibrariesFilter(),e&&this.context.viewState.setSearchText("")}},(0,u.Iu)("DL_TEAM_LIBRARY_EMPTY_VIEW_CLEAR_"+(e?"SEARCH":"FILTER"))))}get content(){var e,t;if("loading"===this.syncStatus.state)return a.createElement(v(),{"data-test-id":"empty-library-grid-loading",size:"L"});if("error"===this.syncStatus.state)return a.createElement(m.Z,null);const r=!(null!==(e=b.Z.currentProduct.config)&&void 0!==e&&null!==(t=e.hasGlobalSearch)&&void 0!==t&&t.call(e))&&"team"!==this.props.view;return a.createElement("div",{className:"JJs","data-test-id":"empty-library-grid-content"},this.librariesIcon,this.header,this.subtitle,r&&this.clearFilterButton)}render(){var e,t,r;return null!==(e=b.Z.currentProduct.config)&&void 0!==e&&e.emptyFilterLibraryViewOverride?null===(t=(r=b.Z.currentProduct.config).emptyFilterLibraryViewOverride)||void 0===t?void 0:t.call(r):a.createElement("div",{className:"G8l","data-test-id":"empty-library-grid"},this.content)}}).contextType=l.r,o.propTypes={view:p().oneOf(["team","personal"]),header:p().string,subtitle:p().string,graphic:p().string},w=(i=o).prototype,x="syncStatus",L=[h.computed],O=Object.getOwnPropertyDescriptor(i.prototype,"syncStatus"),S=i.prototype,T={},Object.keys(O).forEach((function(e){T[e]=O[e]})),T.enumerable=!!T.enumerable,T.configurable=!!T.configurable,("value"in T||T.initializer)&&(T.writable=!0),T=L.slice().reverse().reduce((function(e,t){return t(w,x,e)||e}),T),S&&void 0!==T.initializer&&(T.value=T.initializer?T.initializer.call(S):void 0,T.initializer=void 0),void 0===T.initializer&&(Object.defineProperty(w,x,T),T=null),n=i))||n;var w,x,L,O,S,T},5837:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n,i,o=r(89526),a=r(2652),s=r.n(a),c=r(62631),l=r(76485);let u=(0,c.Pi)((i=class e extends o.Component{render(){const t=Object.assign({},this.props);delete t.html,delete t.linkClickMethods;const r=(new DOMParser).parseFromString(`<div id="text">${this.props.html}</div>`,"text/html").getElementById("text").childNodes;return o.createElement("div",t,e.nodeListToJSX(r,this.props.linkClickMethods))}},i.propTypes={html:s().string.isRequired,linkClickMethods:s().object},i.defaultProps={linkClickMethods:{}},i.elementNodeToJSX={DIV:(e,t)=>o.createElement("div",{key:t},i.nodeListToJSX(e.childNodes)),SPAN:(e,t)=>o.createElement("span",{key:t},i.nodeListToJSX(e.childNodes)),BR:(e,t)=>o.createElement("br",{key:t}),UL:(e,t)=>o.createElement("ul",{key:t},i.nodeListToJSX(e.childNodes)),OL:(e,t)=>o.createElement("ol",{key:t},i.nodeListToJSX(e.childNodes)),LI:(e,t)=>o.createElement("li",{key:t},i.nodeListToJSX(e.childNodes)),B:(e,t)=>o.createElement("b",{key:t},i.nodeListToJSX(e.childNodes)),I:(e,t)=>o.createElement("i",{key:t},i.nodeListToJSX(e.childNodes)),A:(e,t,r)=>{let n=()=>{};const a=e.getAttribute("href");return a&&"#"===a.charAt(0)?n=r[a.substr(1)]:a&&(n=()=>l.Z.launchInBrowser(a)),o.createElement("a",{key:t,onClick:n,className:"panel-html-text-link"},i.nodeListToJSX(e.childNodes))}},i.nodeToJSX=(e,t,r)=>{const n=e&&e.tagName&&e.tagName.toUpperCase();return 3===e.nodeType?e.textContent:1===e.nodeType&&i.elementNodeToJSX[n]?i.elementNodeToJSX[n](e,t,r):""},i.nodeListToJSX=(e,t)=>Array.from(e).map(((e,r)=>i.nodeToJSX(e,r,t))),n=i))||n},27611:(e,t,r)=>{"use strict";r.d(t,{Z:()=>da});var n=r(89526),i=r(2652),o=r.n(i),a=r(50265),s=r(62631),c=r(64403),l=r.n(c),u=r(76485),d=r(99386),p=r(28086),h=r(83377);const f=["alt","className","aria-label","size"];function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e){switch(e){case"XS":return"s";case"S":return"m";case"M":default:return"xl";case"L":case"XL":case"XXL":return"xxl"}}function b(e){const t=e.alt,r=e.className,n=e["aria-label"],i=e.size;return g(g({},function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,f)),{},{class:r,label:t||n,size:y(i)})}var _=r(94859),E=r(82530);function w(){w=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function x(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const L=(0,_.Z)(r(44316)).default;let O;E.env.EXCLUDE_SWC||(O=new p.t(["sp-icon-add"],function(){var e,t=(e=w().mark((function e(t){var n;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(7633)]).then(r.bind(r,7397));case 3:return n=e.sent,e.abrupt("return",[n.IconAdd]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(3461)]).then(r.bind(r,86736));case 7:return e.t0=e.sent.IconAdd,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){x(o,n,i,a,s,"next",e)}function s(e){x(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const S=(0,h.Z)({displayName:"Add",fallback:L,swcLoader:O,swcProps:b,tagName:"sp-icon-add"});var T=r(82530);function P(){P=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function I(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const A=(0,_.Z)(r(97598)).default;let C;T.env.EXCLUDE_SWC||(C=new p.t(["sp-icon-add-circle"],function(){var e,t=(e=P().mark((function e(t){var n;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(6707)]).then(r.bind(r,64529));case 3:return n=e.sent,e.abrupt("return",[n.IconAddCircle]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(6754)]).then(r.bind(r,47194));case 7:return e.t0=e.sent.IconAddCircle,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){I(o,n,i,a,s,"next",e)}function s(e){I(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const k=(0,h.Z)({displayName:"AddCircle",fallback:A,swcLoader:C,swcProps:b,tagName:"sp-icon-add-circle"});var D=r(82530);function N(){N=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function R(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const M=(0,_.Z)(r(77125)).default;let j;D.env.EXCLUDE_SWC||(j=new p.t(["sp-icon-alert"],function(){var e,t=(e=N().mark((function e(t){var n;return N().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(9469)]).then(r.bind(r,61015));case 3:return n=e.sent,e.abrupt("return",[n.IconAlert]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(8637)]).then(r.bind(r,11436));case 7:return e.t0=e.sent.IconAlert,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){R(o,n,i,a,s,"next",e)}function s(e){R(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const F=(0,h.Z)({displayName:"Alert",fallback:M,swcLoader:j,swcProps:b,tagName:"sp-icon-alert"});var Z=r(82530);function B(){B=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function G(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const U=(0,_.Z)(r(16089)).default;let H;Z.env.EXCLUDE_SWC||(H=new p.t(["sp-icon-building"],function(){var e,t=(e=B().mark((function e(t){var n;return B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(6142)]).then(r.bind(r,7768));case 3:return n=e.sent,e.abrupt("return",[n.IconBuilding]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(4788)]).then(r.bind(r,72525));case 7:return e.t0=e.sent.IconBuilding,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){G(o,n,i,a,s,"next",e)}function s(e){G(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const z=(0,h.Z)({displayName:"Building",fallback:U,swcLoader:H,swcProps:b,tagName:"sp-icon-building"});var V=r(82530);function Y(){Y=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function W(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const K=(0,_.Z)(r(39070)).default;let $;V.env.EXCLUDE_SWC||($=new p.t(["sp-icon-browse"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){W(o,n,i,a,s,"next",e)}function s(e){W(o,n,i,a,s,"throw",e)}a(void 0)}))}}(Y().mark((function e(){var t,n;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(7242)]).then(r.bind(r,66095));case 2:return t=e.sent,n=t.IconBrowse,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const q=(0,h.Z)({displayName:"Browse",fallback:K,swcLoader:$,swcProps:b,tagName:"sp-icon-browse"});var X=r(82530);function J(){J=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Q(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const ee=(0,_.Z)(r(50891)).default;let te;X.env.EXCLUDE_SWC||(te=new p.t(["sp-icon-brush"],function(){var e,t=(e=J().mark((function e(t){var n;return J().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(515)]).then(r.bind(r,65122));case 3:return n=e.sent,e.abrupt("return",[n.IconBrush]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(4541)]).then(r.bind(r,16572));case 7:return e.t0=e.sent.IconBrush,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Q(o,n,i,a,s,"next",e)}function s(e){Q(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const re=(0,h.Z)({displayName:"Brush",fallback:ee,swcLoader:te,swcProps:b,tagName:"sp-icon-brush"});var ne=r(82530);function ie(){ie=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function oe(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const ae=(0,_.Z)(r(64114)).default;let se;ne.env.EXCLUDE_SWC||(se=new p.t(["sp-icon-cclibrary"],function(){var e,t=(e=ie().mark((function e(t){var n;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(487)]).then(r.bind(r,46434));case 3:return n=e.sent,e.abrupt("return",[n.IconCCLibrary]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(144)]).then(r.bind(r,98947));case 7:return e.t0=e.sent.IconCCLibrary,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){oe(o,n,i,a,s,"next",e)}function s(e){oe(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const ce=(0,h.Z)({displayName:"CCLibrary",fallback:ae,swcLoader:se,swcProps:b,tagName:"sp-icon-cclibrary"});var le=r(82530);function ue(){ue=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function de(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const pe=(0,_.Z)(r(14928)).default;let he;le.env.EXCLUDE_SWC||(he=new p.t(["sp-icon-checkmark"],function(){var e,t=(e=ue().mark((function e(t){var n;return ue().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(1894)]).then(r.bind(r,93773));case 3:return n=e.sent,e.abrupt("return",[n.IconCheckmark]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(9686)]).then(r.bind(r,66810));case 7:return e.t0=e.sent.IconCheckmark,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){de(o,n,i,a,s,"next",e)}function s(e){de(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const fe=(0,h.Z)({displayName:"Checkmark",fallback:pe,swcLoader:he,swcProps:b,tagName:"sp-icon-checkmark"});var me=r(82530);function ge(){ge=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ve(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const ye=(0,_.Z)(r(79207)).default;let be;me.env.EXCLUDE_SWC||(be=new p.t(["sp-icon-chevron-down"],function(){var e,t=(e=ge().mark((function e(t){var n;return ge().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(8762)]).then(r.bind(r,67912));case 3:return n=e.sent,e.abrupt("return",[n.IconChevronDown]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(9196)]).then(r.bind(r,23751));case 7:return e.t0=e.sent.IconChevronDown,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ve(o,n,i,a,s,"next",e)}function s(e){ve(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const _e=(0,h.Z)({displayName:"ChevronDown",fallback:ye,swcLoader:be,swcProps:b,tagName:"sp-icon-chevron-down"});var Ee=r(82530);function we(){we=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function xe(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Le=(0,_.Z)(r(34803)).default;let Oe;Ee.env.EXCLUDE_SWC||(Oe=new p.t(["sp-icon-chevron-left"],function(){var e,t=(e=we().mark((function e(t){var n;return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(6160)]).then(r.bind(r,66317));case 3:return n=e.sent,e.abrupt("return",[n.IconChevronLeft]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(5670)]).then(r.bind(r,62218));case 7:return e.t0=e.sent.IconChevronLeft,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){xe(o,n,i,a,s,"next",e)}function s(e){xe(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Se=(0,h.Z)({displayName:"ChevronLeft",fallback:Le,swcLoader:Oe,swcProps:b,tagName:"sp-icon-chevron-left"});var Te=r(82530);function Pe(){Pe=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ie(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Ae=(0,_.Z)(r(57362)).default;let Ce;Te.env.EXCLUDE_SWC||(Ce=new p.t(["sp-icon-chevron-right"],function(){var e,t=(e=Pe().mark((function e(t){var n;return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(1866)]).then(r.bind(r,36873));case 3:return n=e.sent,e.abrupt("return",[n.IconChevronRight]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(8697)]).then(r.bind(r,73746));case 7:return e.t0=e.sent.IconChevronRight,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ie(o,n,i,a,s,"next",e)}function s(e){Ie(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const ke=(0,h.Z)({displayName:"ChevronRight",fallback:Ae,swcLoader:Ce,swcProps:b,tagName:"sp-icon-chevron-right"});var De=r(82530);function Ne(){Ne=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Re(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Me=(0,_.Z)(r(88716)).default;let je;De.env.EXCLUDE_SWC||(je=new p.t(["sp-icon-classic-grid-view"],function(){var e,t=(e=Ne().mark((function e(t){var n;return Ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(2764)]).then(r.bind(r,93265));case 3:return n=e.sent,e.abrupt("return",[n.IconGridView]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(4764)]).then(r.bind(r,76556));case 7:return e.t0=e.sent.IconClassicGridView,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Re(o,n,i,a,s,"next",e)}function s(e){Re(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Fe=(0,h.Z)({displayName:"ClassicGridView",fallback:Me,swcLoader:je,swcProps:b,tagName:"sp-icon-classic-grid-view"});var Ze=r(82530);function Be(){Be=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ge(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Ue=(0,_.Z)(r(89877)).default;let He;Ze.env.EXCLUDE_SWC||(He=new p.t(["sp-icon-close"],function(){var e,t=(e=Be().mark((function e(t){var n;return Be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(7075)]).then(r.bind(r,70303));case 3:return n=e.sent,e.abrupt("return",[n.IconClose]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(2120)]).then(r.bind(r,68684));case 7:return e.t0=e.sent.IconClose,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ge(o,n,i,a,s,"next",e)}function s(e){Ge(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const ze=(0,h.Z)({displayName:"Close",fallback:Ue,swcLoader:He,swcProps:b,tagName:"sp-icon-close"});var Ve=r(82530);function Ye(){Ye=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function We(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Ke=(0,_.Z)(r(65306)).default;let $e;Ve.env.EXCLUDE_SWC||($e=new p.t(["sp-icon-cloud"],function(){var e,t=(e=Ye().mark((function e(t){var n;return Ye().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(2509)]).then(r.bind(r,81428));case 3:return n=e.sent,e.abrupt("return",[n.IconCloud]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(2819)]).then(r.bind(r,36666));case 7:return e.t0=e.sent.IconCloud,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){We(o,n,i,a,s,"next",e)}function s(e){We(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const qe=(0,h.Z)({displayName:"Cloud",fallback:Ke,swcLoader:$e,swcProps:b,tagName:"sp-icon-cloud"});var Xe=r(82530);function Je(){Je=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Qe(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const et=(0,_.Z)(r(69325)).default;let tt;Xe.env.EXCLUDE_SWC||(tt=new p.t(["sp-icon-cloud-disconnected"],function(){var e,t=(e=Je().mark((function e(t){var n;return Je().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(8908)]).then(r.bind(r,53546));case 3:return n=e.sent,e.abrupt("return",[n.IconCloudStateDisconnected]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(1977)]).then(r.bind(r,13695));case 7:return e.t0=e.sent.IconCloudDisconnected,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Qe(o,n,i,a,s,"next",e)}function s(e){Qe(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const rt=(0,h.Z)({displayName:"CloudDisconnected",fallback:et,swcLoader:tt,swcProps:b,tagName:"sp-icon-cloud-disconnected"});var nt=r(82530);function it(){it=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ot(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const at=(0,_.Z)(r(84035)).default;let st;nt.env.EXCLUDE_SWC||(st=new p.t(["sp-icon-cloud-error"],function(){var e,t=(e=it().mark((function e(t){var n;return it().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(4687)]).then(r.bind(r,5297));case 3:return n=e.sent,e.abrupt("return",[n.IconCloudStateError]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(2697)]).then(r.bind(r,88045));case 7:return e.t0=e.sent.IconCloudError,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ot(o,n,i,a,s,"next",e)}function s(e){ot(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const ct=(0,h.Z)({displayName:"CloudError",fallback:at,swcLoader:st,swcProps:b,tagName:"sp-icon-cloud-error"});var lt=r(82530);function ut(){ut=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function dt(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const pt=(0,_.Z)(r(63198)).default;let ht;lt.env.EXCLUDE_SWC||(ht=new p.t(["sp-icon-color-palette"],function(){var e,t=(e=ut().mark((function e(t){var n;return ut().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(6085)]).then(r.bind(r,10822));case 3:return n=e.sent,e.abrupt("return",[n.IconColorPalette]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(6301)]).then(r.bind(r,72460));case 7:return e.t0=e.sent.IconColorPalette,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){dt(o,n,i,a,s,"next",e)}function s(e){dt(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const ft=(0,h.Z)({displayName:"ColorPalette",fallback:pt,swcLoader:ht,swcProps:b,tagName:"sp-icon-color-palette"});var mt=r(82530);function gt(){gt=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function vt(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const yt=(0,_.Z)(r(15588)).default;let bt;mt.env.EXCLUDE_SWC||(bt=new p.t(["sp-icon-date"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){vt(o,n,i,a,s,"next",e)}function s(e){vt(o,n,i,a,s,"throw",e)}a(void 0)}))}}(gt().mark((function e(){var t,n;return gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(4255)]).then(r.bind(r,91385));case 2:return t=e.sent,n=t.IconDate,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const _t=(0,h.Z)({displayName:"Date",fallback:yt,swcLoader:bt,swcProps:b,tagName:"sp-icon-date"});var Et=r(82530);function wt(){wt=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function xt(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Lt=(0,_.Z)(r(38242)).default;let Ot;Et.env.EXCLUDE_SWC||(Ot=new p.t(["sp-icon-delete"],function(){var e,t=(e=wt().mark((function e(t){var n;return wt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(6282)]).then(r.bind(r,19587));case 3:return n=e.sent,e.abrupt("return",[n.IconDelete]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(6991)]).then(r.bind(r,88267));case 7:return e.t0=e.sent.IconDelete,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){xt(o,n,i,a,s,"next",e)}function s(e){xt(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const St=(0,h.Z)({displayName:"Delete",fallback:Lt,swcLoader:Ot,swcProps:b,tagName:"sp-icon-delete"});var Tt=r(82530);function Pt(){Pt=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function It(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const At=(0,_.Z)(r(21876)).default;let Ct;Tt.env.EXCLUDE_SWC||(Ct=new p.t(["sp-icon-download-from-cloud-outline"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){It(o,n,i,a,s,"next",e)}function s(e){It(o,n,i,a,s,"throw",e)}a(void 0)}))}}(Pt().mark((function e(){var t,n;return Pt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(1605)]).then(r.bind(r,81937));case 2:return t=e.sent,n=t.IconDownloadFromCloudOutline,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const kt=(0,h.Z)({displayName:"DownloadFromCloudOutline",fallback:At,swcLoader:Ct,swcProps:b,tagName:"sp-icon-download-from-cloud-outline"});var Dt=r(82530);function Nt(){Nt=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Rt(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Mt=(0,_.Z)(r(27944)).default;let jt;Dt.env.EXCLUDE_SWC||(jt=new p.t(["sp-icon-edit"],function(){var e,t=(e=Nt().mark((function e(t){var n;return Nt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(7213)]).then(r.bind(r,83372));case 3:return n=e.sent,e.abrupt("return",[n.IconEdit]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(7674)]).then(r.bind(r,79599));case 7:return e.t0=e.sent.IconEdit,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Rt(o,n,i,a,s,"next",e)}function s(e){Rt(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Ft=(0,h.Z)({displayName:"Edit",fallback:Mt,swcLoader:jt,swcProps:b,tagName:"sp-icon-edit"});var Zt=r(82530);function Bt(){Bt=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Gt(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Ut=(0,_.Z)(r(81950)).default;let Ht;Zt.env.EXCLUDE_SWC||(Ht=new p.t(["sp-icon-filter"],function(){var e,t=(e=Bt().mark((function e(t){var n;return Bt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(6153)]).then(r.bind(r,64741));case 3:return n=e.sent,e.abrupt("return",[n.IconFilter]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(3149)]).then(r.bind(r,3130));case 7:return e.t0=e.sent.IconFilter,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Gt(o,n,i,a,s,"next",e)}function s(e){Gt(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const zt=(0,h.Z)({displayName:"Filter",fallback:Ut,swcLoader:Ht,swcProps:b,tagName:"sp-icon-filter"});var Vt=r(82530);function Yt(){Yt=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Wt(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Kt=(0,_.Z)(r(18657)).default;let $t;Vt.env.EXCLUDE_SWC||($t=new p.t(["sp-icon-filter-check"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Wt(o,n,i,a,s,"next",e)}function s(e){Wt(o,n,i,a,s,"throw",e)}a(void 0)}))}}(Yt().mark((function e(){var t,n;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(8121)]).then(r.bind(r,64525));case 2:return t=e.sent,n=t.IconFilterCheck,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const qt=(0,h.Z)({displayName:"FilterCheck",fallback:Kt,swcLoader:$t,swcProps:b,tagName:"sp-icon-filter-check"});var Xt=r(82530);function Jt(){Jt=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Qt(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const er=(0,_.Z)(r(96288)).default;let tr;Xt.env.EXCLUDE_SWC||(tr=new p.t(["sp-icon-flag"],function(){var e,t=(e=Jt().mark((function e(t){var n;return Jt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(2988)]).then(r.bind(r,81931));case 3:return n=e.sent,e.abrupt("return",[n.IconFlag]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(386)]).then(r.bind(r,70449));case 7:return e.t0=e.sent.IconFlag,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Qt(o,n,i,a,s,"next",e)}function s(e){Qt(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const rr=(0,h.Z)({displayName:"Flag",fallback:er,swcLoader:tr,swcProps:b,tagName:"sp-icon-flag"});var nr=r(82530);function ir(){ir=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function or(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const ar=(0,_.Z)(r(4457)).default;let sr;nr.env.EXCLUDE_SWC||(sr=new p.t(["sp-icon-folder"],function(){var e,t=(e=ir().mark((function e(t){var n;return ir().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(7775)]).then(r.bind(r,57913));case 3:return n=e.sent,e.abrupt("return",[n.IconFolder]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(3882)]).then(r.bind(r,16095));case 7:return e.t0=e.sent.IconFolder,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){or(o,n,i,a,s,"next",e)}function s(e){or(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const cr=(0,h.Z)({displayName:"Folder",fallback:ar,swcLoader:sr,swcProps:b,tagName:"sp-icon-folder"});var lr=r(82530);function ur(){ur=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function dr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const pr=(0,_.Z)(r(56590)).default;let hr;lr.env.EXCLUDE_SWC||(hr=new p.t(["sp-icon-folder-add"],function(){var e,t=(e=ur().mark((function e(t){var n;return ur().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(2652)]).then(r.bind(r,29828));case 3:return n=e.sent,e.abrupt("return",[n.IconFolderAdd]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(9020)]).then(r.bind(r,65349));case 7:return e.t0=e.sent.IconFolderAdd,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){dr(o,n,i,a,s,"next",e)}function s(e){dr(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const fr=(0,h.Z)({displayName:"FolderAdd",fallback:pr,swcLoader:hr,swcProps:b,tagName:"sp-icon-folder-add"});var mr=r(82530);function gr(){gr=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function vr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const yr=(0,_.Z)(r(91912)).default;let br;mr.env.EXCLUDE_SWC||(br=new p.t(["sp-icon-folder-open"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){vr(o,n,i,a,s,"next",e)}function s(e){vr(o,n,i,a,s,"throw",e)}a(void 0)}))}}(gr().mark((function e(){var t,n;return gr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(6624)]).then(r.bind(r,95778));case 2:return t=e.sent,n=t.IconFolderOpen,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const _r=(0,h.Z)({displayName:"FolderOpen",fallback:yr,swcLoader:br,swcProps:b,tagName:"sp-icon-folder-open"});var Er=r(82530);function wr(){wr=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function xr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Lr=(0,_.Z)(r(64335)).default;let Or;Er.env.EXCLUDE_SWC||(Or=new p.t(["sp-icon-globe"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){xr(o,n,i,a,s,"next",e)}function s(e){xr(o,n,i,a,s,"throw",e)}a(void 0)}))}}(wr().mark((function e(){var t,n;return wr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(3795)]).then(r.bind(r,96529));case 2:return t=e.sent,n=t.IconGlobe,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const Sr=(0,h.Z)({displayName:"Globe",fallback:Lr,swcLoader:Or,swcProps:b,tagName:"sp-icon-globe"});var Tr=r(82530);function Pr(){Pr=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ir(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Ar=(0,_.Z)(r(53904)).default;let Cr;Tr.env.EXCLUDE_SWC||(Cr=new p.t(["sp-icon-globe-search"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ir(o,n,i,a,s,"next",e)}function s(e){Ir(o,n,i,a,s,"throw",e)}a(void 0)}))}}(Pr().mark((function e(){var t,n;return Pr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(7793)]).then(r.bind(r,19757));case 2:return t=e.sent,n=t.IconGlobeSearch,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const kr=(0,h.Z)({displayName:"GlobeSearch",fallback:Ar,swcLoader:Cr,swcProps:b,tagName:"sp-icon-globe-search"});var Dr=r(82530);function Nr(){Nr=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Rr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Mr=(0,_.Z)(r(86071)).default;let jr;Dr.env.EXCLUDE_SWC||(jr=new p.t(["sp-icon-help-outline"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Rr(o,n,i,a,s,"next",e)}function s(e){Rr(o,n,i,a,s,"throw",e)}a(void 0)}))}}(Nr().mark((function e(){var t,n;return Nr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(7665)]).then(r.bind(r,33886));case 2:return t=e.sent,n=t.IconHelpOutline,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const Fr=(0,h.Z)({displayName:"HelpOutline",fallback:Mr,swcLoader:jr,swcProps:b,tagName:"sp-icon-help-outline"});var Zr=r(82530);function Br(){Br=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Gr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Ur=(0,_.Z)(r(20494)).default;let Hr;Zr.env.EXCLUDE_SWC||(Hr=new p.t(["sp-icon-image"],function(){var e,t=(e=Br().mark((function e(t){var n;return Br().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(5378)]).then(r.bind(r,41993));case 3:return n=e.sent,e.abrupt("return",[n.IconImage]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(6414)]).then(r.bind(r,99876));case 7:return e.t0=e.sent.IconImage,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Gr(o,n,i,a,s,"next",e)}function s(e){Gr(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const zr=(0,h.Z)({displayName:"Image",fallback:Ur,swcLoader:Hr,swcProps:b,tagName:"sp-icon-image"});var Vr=r(82530);function Yr(){Yr=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Wr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Kr=(0,_.Z)(r(21876)).default;let $r;Vr.env.EXCLUDE_SWC||($r=new p.t(["sp-icon-invite"],function(){var e,t=(e=Yr().mark((function e(t){var n;return Yr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(8719)]).then(r.bind(r,31168));case 3:return n=e.sent,e.abrupt("return",[n.IconInvite]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(956)]).then(r.bind(r,91907));case 7:return e.t0=e.sent.IconInvite,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Wr(o,n,i,a,s,"next",e)}function s(e){Wr(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const qr=(0,h.Z)({displayName:"Invite",fallback:Kr,swcLoader:$r,swcProps:b,tagName:"sp-icon-invite"});var Xr=r(82530);function Jr(){Jr=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Qr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const en=(0,_.Z)(r(69674)).default;let tn;Xr.env.EXCLUDE_SWC||(tn=new p.t(["sp-icon-info"],function(){var e,t=(e=Jr().mark((function e(t){var n;return Jr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(8422)]).then(r.bind(r,39258));case 3:return n=e.sent,e.abrupt("return",[n.IconInfo]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(9864)]).then(r.bind(r,26608));case 7:return e.t0=e.sent.IconInfo,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Qr(o,n,i,a,s,"next",e)}function s(e){Qr(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const rn=(0,h.Z)({displayName:"Info",fallback:en,swcLoader:tn,swcProps:b,tagName:"sp-icon-info"});var nn=r(82530);function on(){on=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function an(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const sn=(0,_.Z)(r(78023)).default;let cn;nn.env.EXCLUDE_SWC||(cn=new p.t(["sp-icon-info-outline"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){an(o,n,i,a,s,"next",e)}function s(e){an(o,n,i,a,s,"throw",e)}a(void 0)}))}}(on().mark((function e(){var t,n;return on().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(2515)]).then(r.bind(r,70327));case 2:return t=e.sent,n=t.IconInfoOutline,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const ln=(0,h.Z)({displayName:"InfoOutline",fallback:sn,swcLoader:cn,swcProps:b,tagName:"sp-icon-info-outline"});var un=r(82530);function dn(){dn=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function pn(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const hn=(0,_.Z)(r(74274)).default;let fn;un.env.EXCLUDE_SWC||(fn=new p.t(["sp-icon-link"],function(){var e,t=(e=dn().mark((function e(t){var n;return dn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(9217)]).then(r.bind(r,53054));case 3:return n=e.sent,e.abrupt("return",[n.IconLink]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(748)]).then(r.bind(r,71658));case 7:return e.t0=e.sent.IconLink,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){pn(o,n,i,a,s,"next",e)}function s(e){pn(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const mn=(0,h.Z)({displayName:"Link",fallback:hn,swcLoader:fn,swcProps:b,tagName:"sp-icon-link"});var gn=r(82530);function vn(){vn=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function yn(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const bn=(0,_.Z)(r(47019)).default;let _n;gn.env.EXCLUDE_SWC||(_n=new p.t(["sp-icon-link-out"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){yn(o,n,i,a,s,"next",e)}function s(e){yn(o,n,i,a,s,"throw",e)}a(void 0)}))}}(vn().mark((function e(){var t,n;return vn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(2517)]).then(r.bind(r,6980));case 2:return t=e.sent,n=t.IconLinkOut,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const En=(0,h.Z)({displayName:"LinkOut",fallback:bn,swcLoader:_n,swcProps:b,tagName:"sp-icon-link-out"});var wn=r(82530);function xn(){xn=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ln(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const On=(0,_.Z)(r(70316)).default;let Sn;wn.env.EXCLUDE_SWC||(Sn=new p.t(["sp-icon-lock-closed"],function(){var e,t=(e=xn().mark((function e(t){var n;return xn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(4787)]).then(r.bind(r,93169));case 3:return n=e.sent,e.abrupt("return",[n.IconLockClosed]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(5724)]).then(r.bind(r,85339));case 7:return e.t0=e.sent.IconLockClosed,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ln(o,n,i,a,s,"next",e)}function s(e){Ln(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Tn=(0,h.Z)({displayName:"LockClosed",fallback:On,swcLoader:Sn,swcProps:b,tagName:"sp-icon-lock-closed"});var Pn=r(82530);function In(){In=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function An(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Cn=(0,_.Z)(r(45302)).default;let kn;Pn.env.EXCLUDE_SWC||(kn=new p.t(["sp-icon-magnify"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){An(o,n,i,a,s,"next",e)}function s(e){An(o,n,i,a,s,"throw",e)}a(void 0)}))}}(In().mark((function e(){var t,n;return In().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(5537)]).then(r.bind(r,85955));case 2:return t=e.sent,n=t.IconMagnify,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const Dn=(0,h.Z)({displayName:"Magnify",fallback:Cn,swcLoader:kn,swcProps:b,tagName:"sp-icon-magnify"});var Nn=r(82530);function Rn(){Rn=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Mn(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const jn=(0,_.Z)(r(19547)).default;let Fn;Nn.env.EXCLUDE_SWC||(Fn=new p.t(["sp-icon-more"],function(){var e,t=(e=Rn().mark((function e(t){var n;return Rn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(1258)]).then(r.bind(r,28214));case 3:return n=e.sent,e.abrupt("return",[n.IconMore]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(5706)]).then(r.bind(r,8788));case 7:return e.t0=e.sent.IconMore,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Mn(o,n,i,a,s,"next",e)}function s(e){Mn(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Zn=(0,h.Z)({displayName:"More",fallback:jn,swcLoader:Fn,swcProps:b,tagName:"sp-icon-more"});var Bn=r(82530);function Gn(){Gn=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Un(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Hn=(0,_.Z)(r(14924)).default;let zn;Bn.env.EXCLUDE_SWC||(zn=new p.t(["sp-icon-open-in"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Un(o,n,i,a,s,"next",e)}function s(e){Un(o,n,i,a,s,"throw",e)}a(void 0)}))}}(Gn().mark((function e(){var t,n;return Gn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(1776)]).then(r.bind(r,63370));case 2:return t=e.sent,n=t.IconOpenIn,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const Vn=(0,h.Z)({displayName:"OpenIn",fallback:Hn,swcLoader:zn,swcProps:b,tagName:"sp-icon-open-in"});var Yn=r(82530);function Wn(){Wn=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Kn(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const $n=(0,_.Z)(r(48864)).default;let qn;Yn.env.EXCLUDE_SWC||(qn=new p.t(["sp-icon-organisations"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Kn(o,n,i,a,s,"next",e)}function s(e){Kn(o,n,i,a,s,"throw",e)}a(void 0)}))}}(Wn().mark((function e(){var t,n;return Wn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(9219)]).then(r.bind(r,28356));case 2:return t=e.sent,n=t.IconOrganisations,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const Xn=(0,h.Z)({displayName:"Organisations",fallback:$n,swcLoader:qn,swcProps:b,tagName:"sp-icon-organisations"});var Jn=r(82530);function Qn(){Qn=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ei(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const ti=(0,_.Z)(r(56519)).default;let ri;Jn.env.EXCLUDE_SWC||(ri=new p.t(["sp-icon-publish-remove"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ei(o,n,i,a,s,"next",e)}function s(e){ei(o,n,i,a,s,"throw",e)}a(void 0)}))}}(Qn().mark((function e(){var t,n;return Qn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(6837)]).then(r.bind(r,37374));case 2:return t=e.sent,n=t.IconPublishRemove,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const ni=(0,h.Z)({displayName:"PublishRemove",fallback:ti,swcLoader:ri,swcProps:b,tagName:"sp-icon-publish-remove"});var ii=r(82530);function oi(){oi=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ai(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const si=(0,_.Z)(r(47623)).default;let ci;ii.env.EXCLUDE_SWC||(ci=new p.t(["sp-icon-rail-right-close"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ai(o,n,i,a,s,"next",e)}function s(e){ai(o,n,i,a,s,"throw",e)}a(void 0)}))}}(oi().mark((function e(){var t,n;return oi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(6462)]).then(r.bind(r,15198));case 2:return t=e.sent,n=t.IconRailRightClose,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const li=(0,h.Z)({displayName:"RailRightClose",fallback:si,swcLoader:ci,swcProps:b,tagName:"sp-icon-rail-right-close"});var ui=r(82530);function di(){di=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function pi(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const hi=(0,_.Z)(r(10666)).default;let fi;ui.env.EXCLUDE_SWC||(fi=new p.t(["sp-icon-refresh"],function(){var e,t=(e=di().mark((function e(t){var n;return di().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(5155)]).then(r.bind(r,13499));case 3:return n=e.sent,e.abrupt("return",[n.IconRefresh]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(1596)]).then(r.bind(r,49932));case 7:return e.t0=e.sent.IconRefresh,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){pi(o,n,i,a,s,"next",e)}function s(e){pi(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const mi=(0,h.Z)({displayName:"Refresh",fallback:hi,swcLoader:fi,swcProps:b,tagName:"sp-icon-refresh"});var gi=r(82530);function vi(){vi=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function yi(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const bi=(0,_.Z)(r(1574)).default;let _i;gi.env.EXCLUDE_SWC||(_i=new p.t(["sp-icon-rename"],function(){var e,t=(e=vi().mark((function e(t){var n;return vi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(8655)]).then(r.bind(r,36053));case 3:return n=e.sent,e.abrupt("return",[n.IconRename]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(5035)]).then(r.bind(r,9982));case 7:return e.t0=e.sent.IconRename,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){yi(o,n,i,a,s,"next",e)}function s(e){yi(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Ei=(0,h.Z)({displayName:"Rename",fallback:bi,swcLoader:_i,swcProps:b,tagName:"sp-icon-rename"});var wi=r(82530);function xi(){xi=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Li(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Oi=(0,_.Z)(r(95716)).default;let Si;wi.env.EXCLUDE_SWC||(Si=new p.t(["sp-icon-settings"],function(){var e,t=(e=xi().mark((function e(t){var n;return xi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(8104)]).then(r.bind(r,2063));case 3:return n=e.sent,e.abrupt("return",[n.IconSettings]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(5549)]).then(r.bind(r,19652));case 7:return e.t0=e.sent.IconSettings,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Li(o,n,i,a,s,"next",e)}function s(e){Li(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Ti=(0,h.Z)({displayName:"Settings",fallback:Oi,swcLoader:Si,swcProps:b,tagName:"sp-icon-settings"});var Pi=r(82530);function Ii(){Ii=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ai(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Ci=(0,_.Z)(r(6827)).default;let ki;Pi.env.EXCLUDE_SWC||(ki=new p.t(["sp-icon-shopping-cart"],function(){var e,t=(e=Ii().mark((function e(t){var n;return Ii().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(6318)]).then(r.bind(r,94656));case 3:return n=e.sent,e.abrupt("return",[n.IconShoppingCart]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(834)]).then(r.bind(r,44850));case 7:return e.t0=e.sent.IconShoppingCart,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ai(o,n,i,a,s,"next",e)}function s(e){Ai(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Di=(0,h.Z)({displayName:"ShoppingCart",fallback:Ci,swcLoader:ki,swcProps:b,tagName:"sp-icon-shopping-cart"});var Ni=r(82530);function Ri(){Ri=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Mi(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const ji=(0,_.Z)(r(4007)).default;let Fi;Ni.env.EXCLUDE_SWC||(Fi=new p.t(["sp-icon-share"],function(){var e,t=(e=Ri().mark((function e(t){var n;return Ri().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(7876)]).then(r.bind(r,52811));case 3:return n=e.sent,e.abrupt("return",[n.IconShare]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(9860)]).then(r.bind(r,11010));case 7:return e.t0=e.sent.IconShare,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Mi(o,n,i,a,s,"next",e)}function s(e){Mi(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Zi=(0,h.Z)({displayName:"Share",fallback:ji,swcLoader:Fi,swcProps:b,tagName:"sp-icon-share"});var Bi=r(82530);function Gi(){Gi=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ui(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Hi=(0,_.Z)(r(21876)).default;let zi;Bi.env.EXCLUDE_SWC||(zi=new p.t(["sp-icon-shop"],function(){var e,t=(e=Gi().mark((function e(t){var n;return Gi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(208)]).then(r.bind(r,61460));case 3:return n=e.sent,e.abrupt("return",[n.IconSmallBusiness]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(7685)]).then(r.bind(r,74828));case 7:return e.t0=e.sent.IconShop,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ui(o,n,i,a,s,"next",e)}function s(e){Ui(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Vi=(0,h.Z)({displayName:"Shop",fallback:Hi,swcLoader:zi,swcProps:b,tagName:"sp-icon-shop"});var Yi=r(82530);function Wi(){Wi=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ki(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const $i=(0,_.Z)(r(94257)).default;let qi;Yi.env.EXCLUDE_SWC||(qi=new p.t(["sp-icon-show-menu"],function(){var e,t=(e=Wi().mark((function e(t){var n;return Wi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(7553)]).then(r.bind(r,80501));case 3:return n=e.sent,e.abrupt("return",[n.IconShowMenu]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(5883)]).then(r.bind(r,58015));case 7:return e.t0=e.sent.IconShowMenu,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ki(o,n,i,a,s,"next",e)}function s(e){Ki(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Xi=(0,h.Z)({displayName:"ShowMenu",fallback:$i,swcLoader:qi,swcProps:b,tagName:"sp-icon-show-menu"});var Ji=r(82530);function Qi(){Qi=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function eo(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const to=(0,_.Z)(r(3637)).default;let ro;Ji.env.EXCLUDE_SWC||(ro=new p.t(["sp-icon-sort-order-down"],function(){var e,t=(e=Qi().mark((function e(t){var n;return Qi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(2620)]).then(r.bind(r,80752));case 3:return n=e.sent,e.abrupt("return",[n.IconSortOrderDown]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(2205)]).then(r.bind(r,45989));case 7:return e.t0=e.sent.IconSortOrderDown,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){eo(o,n,i,a,s,"next",e)}function s(e){eo(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const no=(0,h.Z)({displayName:"SortOrderDown",fallback:to,swcLoader:ro,swcProps:b,tagName:"sp-icon-sort-order-down"});var io=r(82530);function oo(){oo=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ao(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const so=(0,_.Z)(r(15431)).default;let co;io.env.EXCLUDE_SWC||(co=new p.t(["sp-icon-sort-order-up"],function(){var e,t=(e=oo().mark((function e(t){var n;return oo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(6305)]).then(r.bind(r,56829));case 3:return n=e.sent,e.abrupt("return",[n.IconSortOrderUp]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(4067)]).then(r.bind(r,80668));case 7:return e.t0=e.sent.IconSortOrderUp,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ao(o,n,i,a,s,"next",e)}function s(e){ao(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const lo=(0,h.Z)({displayName:"SortOrderUp",fallback:so,swcLoader:co,swcProps:b,tagName:"sp-icon-sort-order-up"});var uo=r(82530);function po(){po=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ho(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const fo=(0,_.Z)(r(37457)).default;let mo;uo.env.EXCLUDE_SWC||(mo=new p.t(["sp-icon-text"],function(){var e,t=(e=po().mark((function e(t){var n;return po().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(6365)]).then(r.bind(r,79504));case 3:return n=e.sent,e.abrupt("return",[n.IconText]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(2968)]).then(r.bind(r,93410));case 7:return e.t0=e.sent.IconText,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ho(o,n,i,a,s,"next",e)}function s(e){ho(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const go=(0,h.Z)({displayName:"Text",fallback:fo,swcLoader:mo,swcProps:b,tagName:"sp-icon-text"});var vo=r(82530);function yo(){yo=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function bo(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const _o=(0,_.Z)(r(20229)).default;let Eo;vo.env.EXCLUDE_SWC||(Eo=new p.t(["sp-icon-text-paragraph"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){bo(o,n,i,a,s,"next",e)}function s(e){bo(o,n,i,a,s,"throw",e)}a(void 0)}))}}(yo().mark((function e(){var t,n;return yo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(2636)]).then(r.bind(r,10861));case 2:return t=e.sent,n=t.IconTextParagraph,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const wo=(0,h.Z)({displayName:"TextParagraph",fallback:_o,swcLoader:Eo,swcProps:b,tagName:"sp-icon-text-paragraph"});var xo=r(82530);function Lo(){Lo=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Oo(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const So=(0,_.Z)(r(3335)).default;let To;xo.env.EXCLUDE_SWC||(To=new p.t(["sp-icon-user"],function(){var e,t=(e=Lo().mark((function e(t){var n;return Lo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(8867)]).then(r.bind(r,39206));case 3:return n=e.sent,e.abrupt("return",[n.IconUser]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(7487)]).then(r.bind(r,94766));case 7:return e.t0=e.sent.IconUser,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Oo(o,n,i,a,s,"next",e)}function s(e){Oo(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Po=(0,h.Z)({displayName:"User",fallback:So,swcLoader:To,swcProps:b,tagName:"sp-icon-user"});var Io=r(82530);function Ao(){Ao=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Co(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const ko=(0,_.Z)(r(66619)).default;let Do;Io.env.EXCLUDE_SWC||(Do=new p.t(["sp-icon-user-group"],function(){var e,t=(e=Ao().mark((function e(t){var n;return Ao().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(554)]).then(r.bind(r,9485));case 3:return n=e.sent,e.abrupt("return",[n.IconUserGroup]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(3498)]).then(r.bind(r,95140));case 7:return e.t0=e.sent.IconUserGroup,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Co(o,n,i,a,s,"next",e)}function s(e){Co(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const No=(0,h.Z)({displayName:"UserGroup",fallback:ko,swcLoader:Do,swcProps:b,tagName:"sp-icon-user-group"});var Ro=r(82530);function Mo(){Mo=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function jo(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Fo=(0,_.Z)(r(42166)).default;let Zo;Ro.env.EXCLUDE_SWC||(Zo=new p.t(["sp-icon-user-lock"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){jo(o,n,i,a,s,"next",e)}function s(e){jo(o,n,i,a,s,"throw",e)}a(void 0)}))}}(Mo().mark((function e(){var t,n;return Mo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(4587)]).then(r.bind(r,71205));case 2:return t=e.sent,n=t.IconUserLock,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const Bo=(0,h.Z)({displayName:"UserLock",fallback:Fo,swcLoader:Zo,swcProps:b,tagName:"sp-icon-user-lock"});var Go=r(82530);function Uo(){Uo=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ho(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const zo=(0,_.Z)(r(44756)).default;let Vo;Go.env.EXCLUDE_SWC||(Vo=new p.t(["sp-icon-view-list"],function(){var e,t=(e=Uo().mark((function e(t){var n;return Uo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(9222)]).then(r.bind(r,42057));case 3:return n=e.sent,e.abrupt("return",[n.IconListView]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(7283)]).then(r.bind(r,95107));case 7:return e.t0=e.sent.IconViewList,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ho(o,n,i,a,s,"next",e)}function s(e){Ho(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Yo=(0,h.Z)({displayName:"ViewList",fallback:zo,swcLoader:Vo,swcProps:b,tagName:"sp-icon-view-list"});var Wo=r(82530);function Ko(){Ko=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function $o(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const qo=(0,_.Z)(r(22622)).default;let Xo;Wo.env.EXCLUDE_SWC||(Xo=new p.t(["sp-icon-visibility"],function(){var e,t=(e=Ko().mark((function e(t){var n;return Ko().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("express"!==t.spectrumTheme){e.next=5;break}return e.next=3,Promise.all([r.e(1686),r.e(4146)]).then(r.bind(r,22512));case 3:return n=e.sent,e.abrupt("return",[n.IconVisibility]);case 5:return e.next=7,Promise.all([r.e(1686),r.e(6939)]).then(r.bind(r,26309));case 7:return e.t0=e.sent.IconVisibility,e.abrupt("return",[e.t0]);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){$o(o,n,i,a,s,"next",e)}function s(e){$o(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()));const Jo={ActivateFonts:kt,ActivateFontsSpinner:mi,Add:S,Add12:S,Add14:S,AddBrush:re,AddCircle:k,AddGroup:fr,AddParagraphStyle:wo,AddText:go,Alert:F,Back:Se,Browse:q,Building:z,CCLibrary:ce,CCLibrary16:ce,CCXCreateColor:ft,CCXCreateFont:go,CCXCreateImage:zr,Checkmark:fe,ChevronDownMedium:_e,ChevronDownSmall:_e,ChevronLeftMedium:Se,ChevronLeftSmall:Se,ChevronRightMedium:ke,ChevronRightSmall:ke,Close:ze,Cloud:qe,Date:_t,Delete:St,DownArrow:_e,Edit:Ft,Error:F,Filter:zt,Filter16:zt,FilterApplied:qt,Flag:rr,Folder:cr,FolderOpen:_r,Globe:Sr,GlobeSearch:kr,GridView:Fe,Group:No,HelpOutline:Fr,Info:rn,InfoOutline:ln,Invite:qr,Leave:li,Link:En,LinkedLibrary:mn,ListView:Yo,Lock:Tn,Magnify:Dn,More:Zn,Next:ke,OpenIn:Vn,Organisations:Xn,Plus:S,PublishRemove:ni,Question:Fr,ReadOnly:Bo,Rename:Ei,Settings:Ti,ShareAssets:Zi,Shop:Vi,ShoppingCart:Di,ShowMenu:Xi,Sort:no,SortDescending:lo,SyncAlert:ct,SyncError:rt,SyncDefault:qe,SyncingSpinner:mi,User:Po,UserGroup:No,Visibility:(0,h.Z)({displayName:"Visibility",fallback:qo,swcLoader:Xo,swcProps:b,tagName:"sp-icon-visibility"})};var Qo,ea,ta,ra,na;function ia(){return ia=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ia.apply(this,arguments)}function oa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function aa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oa(Object(r),!0).forEach((function(t){sa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function sa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ca(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const la=r(5515),ua={};let da=(Qo=a.observable.ref,(0,s.Pi)((na=class extends n.Component{constructor(...e){var t;super(...e),(t=ra)&&Object.defineProperty(this,"_svg",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0}),this._setSVGRef=e=>this._svg=e}componentDidMount(){u.Z.useSVGPolyfill&&(this._updateIconReaction=(0,a.reaction)((()=>this._svg&&this.icon.url),(()=>this._loadSVG()),{fireImmediately:!0}))}componentWillUnmount(){this._updateIconReaction&&(this._updateIconReaction(),delete this._updateIconReaction)}get dataTestId(){return`panel-icon-${this.iconId}`}get icon(){return la(`./${this.iconId}.svg`).default}get _width(){return this.props.width||this.props.height}get iconId(){var e,t;return null!==(e=null===(t=d.Z.currentProduct.config.iconOverrides)||void 0===t?void 0:t[this.props.id])&&void 0!==e?e:this.props.id}_loadSVG(){const e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),2!==o.length);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e)||function(e,t){if(e){if("string"==typeof e)return ca(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ca(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.icon.url.split("#")),t=e[0],r=e[1];ua[t]||(ua[t]=fetch(t).then((e=>e.text())).then((e=>{const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t}))),ua[t].then((e=>{if(!this._svg)return;const t=e.getElementById(r);if(!t)return;for(;this._svg.firstChild;)this._svg.removeChild(this._svg.lastChild);const n=document.createDocumentFragment();for(let e=t.cloneNode(!0);e.childNodes.length;){const t=document.adoptNode(e.firstChild,!0);n.appendChild(t)}this._svg.appendChild(n)}))}render(){const e=n.createElement("svg",{"data-test-id":"icon-svg",width:this._width,height:this.props.height,viewBox:this.icon.viewBox,style:{fill:"currentColor"},ref:this._setSVGRef},!u.Z.useSVGPolyfill&&!u.Z.useSVGLegacyHref&&n.createElement("use",{"data-test-id":"icon-link",href:this.icon.url}),u.Z.useSVGLegacyHref&&n.createElement("use",{"data-test-id":"icon-link",xlinkHref:this.icon.url})),t=aa(aa({},this.props),{},{icon:d.Z.SPECTRUM_ICONS_MAP[this.iconId]||this.iconId,width:this._width,style:{width:this._width,height:this.props.height},className:null}),r=Jo[this.iconId];return n.createElement("div",{"data-test-id":this.dataTestId,key:this.iconId,className:l()(this.props.className,"panel-icon"),onClick:this.props.onClick,style:{width:this._width,height:this.props.height},slot:this.props.slot},r?n.createElement(r,ia({dir:"ltr",fallback:e},t)):e)}},na.defaultProps={onClick:()=>{}},na.propTypes={width:o().number,height:o().number.isRequired,id:o().string.isRequired,onClick:o().func,className:o().string,slot:o().string},pa=(ta=na).prototype,ha="_svg",fa=[Qo],ma={configurable:!0,enumerable:!0,writable:!0,initializer:null},ga={},Object.keys(ma).forEach((function(e){ga[e]=ma[e]})),ga.enumerable=!!ga.enumerable,ga.configurable=!!ga.configurable,("value"in ga||ga.initializer)&&(ga.writable=!0),ga=fa.slice().reverse().reduce((function(e,t){return t(pa,ha,e)||e}),ga),void 0===ga.initializer&&(Object.defineProperty(pa,ha,ga),ga=null),ra=ga,ea=ta))||ea);var pa,ha,fa,ma,ga},16154:(e,t,r)=>{"use strict";r.d(t,{Z:()=>x});var n,i,o,a=r(89526),s=r(50265),c=r(62631),l=r(53849),u=r(47320),d=r(84824),p=r(76485),h=r(46903),f=r(68895),m=r(4784),g=r(24937),v=r(31870),y=r(2652),b=r.n(y),_=r(44853),E=r(5906);const w=e=>e.map((e=>{const t=`info-panel-detail-row-${e.label.toLowerCase().replace(/[^0-9a-z]/gi,"-")}`,r=e.onClick?a.createElement("div",{className:"details-value clickable","data-test-id":"source-doc-link",onClick:e.onClick},e.value):a.createElement("div",{className:"details-value","data-test-id":`details-value-${t}`},e.value);return a.createElement("div",{className:"details-row",key:e.label,"data-test-id":t},a.createElement("div",{className:"details-label","data-test-id":`details-label-${t}`},e.label),r)}));let x=(0,c.Pi)(((o=class extends a.Component{constructor(...e){super(...e),this.updateStockData=()=>{this.element&&v.Jw(this.element)&&v.PS(this.element)}}componentDidMount(){this.disposeStockReaction=(0,s.reaction)((()=>this.element),(()=>this.updateStockData())),this.updateStockData(),this.context.libraryManager.fetchLibraryCollaborations(this.currentLibrary)}componentWillUnmount(){this.disposeStockReaction()}get element(){return this.props&&this.props.element?this.props.element:this.currentLibrary&&l.Z.selection.length>=1?l.Z.selection[l.Z.selection.length-1]:void 0}get currentLibrary(){return this.props&&this.props.element?this.props.element.library:this.context.libraryManager.currentLibrary}get header(){let e,t,r;return this.element?(e=this.element.name,t=(u.Z.getExtension(this.element)||(0,d.Iu)(u.Z.getTypeName(this.element.type,!0))).toLocaleUpperCase(p.Z.getLocale()),r=a.createElement(E.Z,{element:this.element,placeholder:(0,d.Iu)("DL_DESCRIPTION_PLACEHOLDER"),className:"info-panel-editable-description",iconHeight:16})):(e=this.currentLibrary.name,t=(0,d.Iu)("DL_INFO_LIBRARY").toLocaleUpperCase(p.Z.getLocale())),a.createElement(a.Fragment,null,a.createElement("div",{className:"info-panel-header"},a.createElement("div",{className:"info-panel-header-title","data-test-id":"info-panel-header-title"},e),a.createElement("div",{className:"info-panel-header-subtitle","data-test-id":"info-panel-header-subtitle"},t),r&&a.createElement("div",{className:"info-panel-header-description","data-test-id":"info-panel-header-description"},r)),a.createElement("div",{className:"info-panel-divider"}))}get customControls(){const e=u.Z.getInfoControlComponent(this.element);if(e)return a.createElement(a.Fragment,null,a.createElement("div",{className:"info-panel-controller","data-test-id":"info-panel-controller-wrapper"},a.createElement(e,{element:this.element})),a.createElement("div",{className:"info-panel-divider"}))}get serviceProperties(){const e=u.Z.getCustomServiceProperties(this.element);if(e.length)return a.createElement("div",{"data-test-id":"info-panel-service-properties",className:"info-panel-service-properties"},w(e))}get primaryProperties(){let e;if(this.element)e=u.Z.getCustomPanelInfoPrimaryProperties(this.element);else{const t=this.currentLibrary.elements.length;e=[{label:(0,d.Iu)("DL_INFO_SHARING"),value:(0,h.rU)(this.currentLibrary)},{label:(0,d.Iu)("DL_INFO_SIZE"),value:a.createElement("div",null,a.createElement("div",null,m.Z.getSizeAsString(this.currentLibrary)),a.createElement("div",null,(0,d.Iu)(1===t?"DL_INFO_ELEMENT_COUNT_SINGULAR":"DL_INFO_ELEMENT_COUNT_PLURAL",{numElements:t})))}]}if(e.length)return a.createElement("div",{"data-test-id":"info-panel-primary-properties",className:"info-panel-primary-properties"},w(e))}get subProperties(){const e=u.Z.getCustomPanelInfoSubProperties(this.element);if(e.length)return a.createElement("div",{"data-test-id":"info-panel-sub-properties",className:"info-panel-sub-properties"},w(e))}get createdModifiedProperties(){const e=this.element||this.currentLibrary;let t=(0,d.zt)(new Date(e.created)),r=(0,d.zt)(new Date(e.modified));const n=this.currentLibrary.collaborators;if(n){const i=n.find((t=>t.id===e.createdBy));i&&(t=a.createElement("div",null,a.createElement("div",null,t),a.createElement("div",null,(0,d.Iu)("DL_INFO_CHANGE_BY",{name:i.name||i.email}))));const o=n.find((t=>t.id===e.modifiedBy));o&&(r=a.createElement("div",null,a.createElement("div",null,r),a.createElement("div",null,(0,d.Iu)("DL_INFO_CHANGE_BY",{name:o.name||o.email}))))}const i=[{label:(0,d.Iu)("DL_INFO_CREATED"),value:t},{label:(0,d.Iu)("DL_INFO_MODIFIED"),value:r}];return e.library&&i.push({label:(0,d.Iu)("DL_INFO_LIBRARY"),value:e.library.name}),(0,f.EZ)(this.currentLibrary)&&i.push({label:(0,d.Iu)("DL_INFO_SOURCE"),value:(0,f.wH)(this.currentLibrary),onClick:()=>(0,f.Fb)(this.currentLibrary)}),a.createElement("div",{"data-test-id":"info-panel-created-modified-properties",className:"info-panel-created-modified-properties"},w(i))}get propertiesList(){return a.createElement(a.Fragment,null,a.createElement("div",{className:"info-panel-properties-list","data-test-id":"info-panel-properties-list"},this.element&&this.serviceProperties,this.primaryProperties,this.element&&this.subProperties),a.createElement("div",{className:"info-panel-divider"}),a.createElement("div",{className:"info-panel-created-modified-list"},this.createdModifiedProperties))}get locale(){return p.Z.getLocale()}render(){return this.element||this.currentLibrary?a.createElement("div",{className:"info-panel","data-test-id":"info-panel-view",lang:this.locale},!this.context.viewState.isOneUpMode()&&this.header,this.element&&this.customControls,this.propertiesList):null}}).contextType=g.r,o.propTypes={element:b().instanceOf(_.Z)},L=(i=o).prototype,O="locale",S=[s.computed],T=Object.getOwnPropertyDescriptor(i.prototype,"locale"),P=i.prototype,I={},Object.keys(T).forEach((function(e){I[e]=T[e]})),I.enumerable=!!I.enumerable,I.configurable=!!I.configurable,("value"in I||I.initializer)&&(I.writable=!0),I=S.slice().reverse().reduce((function(e,t){return t(L,O,e)||e}),I),P&&void 0!==I.initializer&&(I.value=I.initializer?I.initializer.call(P):void 0,I.initializer=void 0),void 0===I.initializer&&(Object.defineProperty(L,O,I),I=null),n=i))||n;var L,O,S,T,P,I},35938:(e,t,r)=>{"use strict";r.d(t,{Z:()=>He});var n,i,o,a=r(89526),s=r(2652),c=r.n(s),l=r(50265),u=r(62631),d=r(41199),p=r(99386),h=r(76485),f=r(47320),m=r(24937),g=r(53849),v=r(84824),y=r(91854),b=r(64662),_=r(46903),E=r(20290),w=r(51461),x=r(27611),L=r(64403),O=r.n(L),S=r(99767);function T(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let P=(0,u.Pi)(((o=class extends a.Component{constructor(...e){super(...e),this.toggleCollapsed=()=>{if(this.isCollapseDisabled)return;const e=this.collapsed?"expand-category":"collapse-category";w.ZP.reportEvent("Navigation","Library Panel","click",e),this.context.viewState.setTypeCollapsed(this.props.type,!this.collapsed)},this.onClickAdd=e=>{e.stopPropagation(),this.props.disableAdd||this.props.onClickAdd(e)}}get collapsed(){return this.context.viewState.isTypeCollapsed(this.props.type)}get isDocumentAssetsType(){return this.context.viewState.isDocumentSearchType()||this.context.viewState.isDocumentSearchMode()}get isCollapseDisabled(){const e=p.Z.currentProduct.config.disabledCollapseSectionIds;return e&&e.length}get isGroupLocalizationString(){return this.isDocumentAssetsType&&"group"===p.Z.currentProduct.config.defaultViewByState}get displayName(){return this.props.isRole?(0,v.Iu)(`DL_ROLE_${this.props.type.toUpperCase()}`):(0,v.Iu)(this.isGroupLocalizationString?this.props.type:f.Z.getTypeName(this.props.type))}get testId(){return`category-header-${this.isDocumentAssetsType||this.props.isRole?this.props.type:f.Z.getShortType(this.props.type)}`}get collapseArrow(){var e,t;if(!this.isCollapseDisabled)return a.createElement("div",{className:"panel-chevron-container-icon"},a.createElement(x.Z,{id:this.collapsed?"ChevronRightSmall":"ChevronDownSmall",height:(null===(e=(t=p.Z.currentProduct.config).collapseGroupChevronHeight)||void 0===e?void 0:e.call(t))||8}))}get addButton(){if(!this.props.showAdd)return;const e=this.props.disableAdd?(0,v.Iu)("DL_INSERT_TOOLTIP_LIMIT"):"",t=O()("type-header-add-button",{disabled:this.props.disableAdd});return a.createElement(S.Z,{content:e,placement:"top"},a.createElement("div",{className:t,onClick:this.onClickAdd,"data-test-id":`type-header-add-button-${this.displayName.toLowerCase()}`},a.createElement(x.Z,{id:"AddCircleOutline",height:18})))}render(){return a.createElement("div",{"data-test-id":this.testId,className:"panel-type-header"},a.createElement("div",{"data-test-id":`${this.testId}-toggle`,onClick:this.toggleCollapsed,className:"panel-type-header-toggle-zone"},this.collapseArrow,a.createElement("div",{"data-test-id":`${this.testId}-title`,className:"panel-type-header-text"},this.displayName)),this.addButton)}}).defaultProps={isRole:!1,showAdd:!1,onClickAdd:()=>{}},o.contextType=m.r,o.propTypes={type:c().string.isRequired,isRole:c().bool,showAdd:c().bool,disableAdd:c().bool,onClickAdd:c().func},T((i=o).prototype,"collapsed",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"collapsed"),i.prototype),T(i.prototype,"isDocumentAssetsType",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"isDocumentAssetsType"),i.prototype),n=i))||n;var I,A;let C=(0,u.Pi)(((A=class extends a.Component{get title(){return new Date(this.props.time).toLocaleString().replace(":00 "," ")}get testId(){return`timestamp-header-${this.props.time}`}render(){return a.createElement("div",{"data-test-id":this.testId,className:"panel-timestamp-header"},a.createElement("div",{"data-test-id":`${this.testId}-title`},this.title))}}).propTypes={time:c().number.isRequired},I=A))||I;var k,D,N,R=r(48003),M=r(5837),j=r(26981),F=r(72279),Z=r(10440),B=r(69233),G=r(99409),U=r(74242),H=r(48989),z=r(33275),V=r(75623);let Y=(0,u.Pi)(((N=class extends a.Component{constructor(...e){super(...e),this.handleDoubleClick=()=>{this.props.disableEditing||this.context.viewManager.startEditPath(this.props.group)}}get pathState(){return this.context.viewManager.pathState}get isEditing(){return this.context.viewManager.editPathGroup===this.props.group}get treeView(){return a.createElement("div",{"data-test-id":"panel-group-tree-view",className:"panel-group-container-text",onDoubleClick:this.handleDoubleClick},a.createElement("span",{className:"panel-group-path-view-head"},this.props.group.name))}render(){return this.isEditing?a.createElement(H.Z,{pathState:this.pathState,autocomplete:!1}):this.treeView}}).contextType=m.r,N.propTypes={group:c().oneOfType([c().instanceOf(z.ZA),c().instanceOf(V.Z)]).isRequired,disableEditing:c().bool},N.defaultProps={disableEditing:!1},W=(D=N).prototype,K="treeView",$=[l.computed],q=Object.getOwnPropertyDescriptor(D.prototype,"treeView"),X=D.prototype,J={},Object.keys(q).forEach((function(e){J[e]=q[e]})),J.enumerable=!!J.enumerable,J.configurable=!!J.configurable,("value"in J||J.initializer)&&(J.writable=!0),J=$.slice().reverse().reduce((function(e,t){return t(W,K,e)||e}),J),X&&void 0!==J.initializer&&(J.value=J.initializer?J.initializer.call(X):void 0,J.initializer=void 0),void 0===J.initializer&&(Object.defineProperty(W,K,J),J=null),k=D))||k;var W,K,$,q,X,J,Q,ee,te;function re(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let ne=(0,u.Pi)(((te=class extends a.Component{get isUngrouped(){return"*"===this.props.group.id}get usePathView(){return"path"===this.props.viewByGroupMode&&!this.props.group.disableEditing}get pathViewHeader(){return this.props.group===p.Z.UNGROUPED_GROUP?a.createElement("div",{className:"panel-group-header root last-of-type"},(0,v.Iu)("DL_GROUP_UNGROUPED")):a.createElement(U.Z,{group:this.props.group,disableEditing:p.Z.currentProduct.config.disableEditPathOperation})}get treeViewHeader(){return a.createElement(Y,{group:this.props.group,disableEditing:p.Z.currentProduct.config.disableGroupViewRename||this.props.group.disableEditing})}get ungroupedHeader(){const e=(0,B.tl)(this.props.group)&&p.Z.currentProduct.config.emptyUngroupedCustomMessage;return a.createElement("div",{"data-test-id":"ungrouped-name",className:"panel-group-container-text panel-group-header root last-of-type"},(0,v.Iu)("DL_GROUP_UNGROUPED"),e&&a.createElement("span",{className:"panel-group-text-empty-ungrouped"},(0,v.Iu)(e)))}get header(){return this.isUngrouped?this.ungroupedHeader:this.usePathView?this.pathViewHeader:this.treeViewHeader}render(){return a.createElement("div",{"data-test-id":`group-title-container-${this.props.viewByGroupMode}`,className:O()(`group-title-container-${this.props.viewMode}`,`group-title-container-${this.props.viewByGroupMode}`,{ungrouped:this.isUngrouped})},this.header)}}).contextType=m.r,te.propTypes={group:c().oneOfType([c().object,z.ZA,V.Z]).isRequired,viewMode:c().oneOf(["list","grid"]),viewByGroupMode:c().oneOf(["path","tree"])},te.defaultProps={viewMode:"grid",viewByGroupMode:"tree"},re((ee=te).prototype,"pathViewHeader",[l.computed],Object.getOwnPropertyDescriptor(ee.prototype,"pathViewHeader"),ee.prototype),re(ee.prototype,"treeViewHeader",[l.computed],Object.getOwnPropertyDescriptor(ee.prototype,"treeViewHeader"),ee.prototype),re(ee.prototype,"ungroupedHeader",[l.computed],Object.getOwnPropertyDescriptor(ee.prototype,"ungroupedHeader"),ee.prototype),Q=ee))||Q;var ie,oe,ae;function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},se.apply(this,arguments)}function ce(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let le=(0,u.Pi)(((ae=class extends a.Component{constructor(...e){super(...e),this.onToggleCollapse=e=>{e.stopPropagation(),G.Z.closeContextMenu();const t=h.Z.isWindowsOS(),r=this.isCollapsed?"expand-group":"collapse-group";w.ZP.reportGroupEvent("Navigation","Library Panel","click",r,this.props.group);const n=this.isCollapsed,i=p.Z.currentProduct.config.customCollapseGroupWithModifierKey;if(i&&i(e,this.props.group))return;const o=e.altKey||t&&h.Z.hasUXPWindowsCTRLClickBug&&e.metaKey,a=!o&&n&&this.context.viewState.viewByGroupMode===p.Z.VIEW_BY_GROUP_MODES.PATH;this.context.viewState.setGroupCollapsed(this.props.group.id,!n),(o||a)&&B.ez(this.props.group,{shouldCollapse:!n,expandNonMeaningfulChildren:a})},this.onAddClick=e=>{w.ZP.reportEvent("Add Assets","Element","click","add",{event:{value:"single",count:1}},this.context.libraryManager.currentLibrary),this.props.group.addButtonAction(),e.stopPropagation()},this.handleGroupHeaderClick=e=>{if(this.isUngrouped||p.Z.currentProduct.config.disableGroupViewHeaderClick)return;e.stopPropagation();const t=this.context.viewState.getState().enableMultiSelect,r=h.Z.isWindowsOS(),n=!Z.Z.isSelected(this.props.group);if((!r&&e.metaKey||r&&e.ctrlKey||r&&h.Z.hasUXPWindowsCTRLClickBug&&e.metaKey)&&n){Z.Z.toggleSelection(this.props.group);const e=B.xF(this.props.group,!0);this.props.group.library.elements.filter((t=>e.includes(t.getGroups()[0]))).forEach((e=>g.Z.toggleSelection(e)))}else if(t&&e.shiftKey&&Z.Z.groupSelection.length>0&&n){const e=this.context.viewState.groupsInViewOrder,t=Z.Z.groupSelection.map((t=>e.indexOf(t))).reduce(((e,t)=>Math.min(e,t)),this.props.group.library.getGroups().length-1);Z.Z.setSelectionRange(this.props.group);const r=()=>B.gw(this.props.group),n=()=>B.$3(this.props.group),i=e.indexOf(this.props.group)<t?r():n();i&&!g.Z.selection.includes(i)&&g.Z.setSelectionRange(i,!1,!0,!1)}else{Z.Z.clearSelection(),Z.Z.setSelection(this.props.group,!0);const e=this.props.group.library.elements.filter((e=>Z.Z.isSelected(e.getGroups()[0])));g.Z.setSelection(e,void 0,!1)}},this.handleContextMenu=e=>{if(!this.isUngrouped&&!p.Z.currentProduct.config.disableGroupContextMenuInView&&(this.context.viewState.setContextMenuPositionState({x:e.clientX,y:e.clientY}),h.Z.setContextMenu)){this.context.viewManager.stopRename(),e.stopPropagation();const t=(0,R.M)(this.props.group);G.Z.openContextMenu(t,e)}},this.handleDragStart=e=>{if(!this.isDraggable)return void e.preventDefault();try{e.dataTransfer.setData("text/plain","")}catch(e){}e.dataTransfer.effectAllowed="move";const t=j.Ig();t&&e.dataTransfer.setDragImage(new Image,0,0),y.Z.handleDragStart("group",this.props.group,t?t=>{const r=e.target.parentNode.cloneNode(!0);r.style.opacity=.8,r.classList.add("drag-clone"),r.style.height="28px";const n=r.getElementsByClassName("panel-group-container-empty-message")[0];n&&n.remove(),r.style.left=e.target.clientX-e.target.clientWidth/2+"px",r.style.top=e.target.clientY-e.target.clientHeight/2+"px",t.appendChild(r),t.style.width=e.target.clientWidth+"px",document.body.appendChild(t)}:null)},this.handleDragEnd=e=>{p.Z.currentProduct.config.missingDropEventsBug?y.Z.handleDrop(e):y.Z.handleDragEnd()},this.createSubgroupFromEmpty=()=>{w.ZP.setExtraEventMetrics("createGroup",{content:{category:"Empty Group"}}),this.context.groupActions.createSubgroup(this.props.group)}}get isCollapsed(){return this.context.viewState.isGroupCollapsed(this.props.group.id)}get isSelected(){return Z.Z.isSelected(this.props.group)}get isHighestSelected(){return this.isSelected&&(!this.props.group.parent||!B._y(this.props.group).find((e=>Z.Z.isSelected(e))))}get isUngrouped(){return!this.props.group||"*"===this.props.group.id}get testId(){return`panel-group-container-${this.isUngrouped?"ungrouped":this.props.group.id}`}get icon(){var e,t;const r=p.Z.currentProduct.config.disabledCollapseSectionIds;if(this.isUngrouped||r&&r.length)return;const n=O()("panel-chevron-container-icon","group");return a.createElement("div",{"data-test-id":"group-expander-icon",className:n,onClick:this.onToggleCollapse},a.createElement(x.Z,{id:this.isCollapsed?"ChevronRightSmall":"ChevronDownSmall",height:(null===(e=(t=p.Z.currentProduct.config).collapseGroupChevronHeight)||void 0===e?void 0:e.call(t))||8}))}get addAssetsButton(){const e=this.props.group;return a.createElement(F.Z,{disabled:!e.isAddButtonActive,"data-test-id":"panel-group-add-assets-button",onClick:this.onAddClick,tooltip:e.addButtonTooltip,style:{padding:"2px",marginRight:"16px"}},a.createElement(x.Z,{id:"Add12",height:12}))}get groupHeader(){const e=this.context.libraryManager.currentLibrary,t=e&&e.getGroups().length>=1,r=e&&e.elements.find((e=>0===e.getGroups().length));if(p.Z.currentProduct.config.allowUngroupedFiltering&&r||!this.isUngrouped||t&&r)return a.createElement(ne,{group:this.props.group,viewMode:this.props.viewMode,viewByGroupMode:this.context.viewState.viewByGroupMode})}get emptyGroupMessage(){if(!this.isUngrouped&&B.tl(this.props.group)&&!this.isCollapsed&&!this.props.group.hideDefaultTextInEmptyGroup){let e;e=this.props.group.library&&!this.context.viewState.isLibraryWritable(this.props.group.library)||p.Z.currentProduct.config.disableGroupEditing?(0,v.Iu)("DL_EMPTY_GROUP_INSTRUCTIONS_READ_ONLY"):(0,v.Iu)("DL_EMPTY_GROUP_INSTRUCTIONS_NESTED");const t=O()("panel-group-container-empty-message",{isHighlighted:this.isHighlighted});return a.createElement("div",{className:"panel-group-container-empty-wrapper","data-test-id":"panel-group-container-empty-wrapper"},a.createElement("div",{"data-test-id":"empty-group-message",className:t},e&&a.createElement(M.Z,{className:"panel-group-container-empty-message-text",linkClickMethods:{action:this.createSubgroupFromEmpty},html:e,"data-test-id":"empty-group-message-text"})))}}get isDraggable(){return!p.Z.currentProduct.config.disableGroupViewDragging&&!this.props.group.disableEditing&&![this.context.viewManager.renamingItem,this.context.viewManager.editPathGroup].includes(this.props.group)}get isHighlighted(){const e=y.Z.activeDropTarget;if(!e||!e.group)return!1;const t=e.group.id===this.props.group.id;if(!e.isValidDropTarget)return t;const r=e.isValidDropTarget(y.Z.dragData);return t&&r}render(){const e=y.Z.activeDropTarget&&y.Z.activeDropTarget.beforeGroup===this.props.group,t=y.Z.activeDropTarget&&y.Z.activeDropTarget.afterGroup===this.props.group&&y.Z.activeDropTarget.beforeGroup&&"*"===y.Z.activeDropTarget.beforeGroup.id,r=O()("panel-group-container",{"panel-group-container-ungrouped":this.isUngrouped,"panel-group-container-separator-above":e,"panel-group-container-separator-below":t,"panel-group-container-highlight":this.isHighlighted,selected:this.isSelected,"read-only":!this.context.viewState.isLibraryWritable(this.context.libraryManager.currentLibrary)}),n=O()("panel-group-header-container",{selected:this.isSelected,isHighestSelected:this.isHighestSelected,isHoverable:!this.isUngrouped,root:!this.props.group.parent});return a.createElement("div",se({"data-test-id":this.testId,className:r,style:{height:this.props.height}},h.Z.contextMenuEventListeners(this.handleContextMenu)),!this.props.hideHeader&&a.createElement("div",{"data-test-id":`${this.testId}-header`,className:n,onClick:this.handleGroupHeaderClick,draggable:!this.isUngrouped&&this.isDraggable,onDragStart:this.handleDragStart,onDragEnd:this.handleDragEnd,style:this.props.style},this.icon,this.groupHeader,this.props.group.displayAddButton&&this.addAssetsButton),a.createElement("div",{"data-test-id":`${this.testId}-content-wrapper`,className:"panel-group-content-wrapper",style:this.props.style},this.emptyGroupMessage),h.Z.hasUXPScrollZIndexBug&&a.createElement("div",{"data-test-id":"uxp-scrollbar-drag-padding",className:"uxp-scrollbar-drag-padding"}))}}).contextType=m.r,ae.propTypes={group:c().oneOfType([c().object,c().instanceOf(z.ZA),c().instanceOf(V.Z)]).isRequired,height:c().number,viewMode:c().oneOf(["grid","list"]),style:c().object,hideHeader:c().bool},ce((oe=ae).prototype,"isCollapsed",[l.computed],Object.getOwnPropertyDescriptor(oe.prototype,"isCollapsed"),oe.prototype),ce(oe.prototype,"isSelected",[l.computed],Object.getOwnPropertyDescriptor(oe.prototype,"isSelected"),oe.prototype),ce(oe.prototype,"isHighestSelected",[l.computed],Object.getOwnPropertyDescriptor(oe.prototype,"isHighestSelected"),oe.prototype),ce(oe.prototype,"groupHeader",[l.computed],Object.getOwnPropertyDescriptor(oe.prototype,"groupHeader"),oe.prototype),ce(oe.prototype,"emptyGroupMessage",[l.computed],Object.getOwnPropertyDescriptor(oe.prototype,"emptyGroupMessage"),oe.prototype),ie=oe))||ie;var ue,de,pe=r(59299),he=r(54048),fe=r(69923);let me=(0,u.Pi)(((de=class extends a.Component{render(){return this.props.target.type===y.Z.dragType?a.createElement("div",{"data-test-id":"drop-zone-indicator",className:"panel-drop-zone-indicator"}):null}}).propTypes={target:c().instanceOf(fe.Z)},ue=de))||ue;const ge=(e,t,r)=>t>=e.x&&t<=e.x+e.width&&r>=e.y&&r<=e.y+e.height;class ve{constructor(){this._targets=[]}push(e){const t=Math.floor(e.y/200),r=Math.floor((e.y+e.height)/200);for(let n=t;n<=r;n++)this._targets[n]=this._targets[n]||[],this._targets[n].push(e)}find(e,t,r){const n=Math.floor(t/200),i=this._targets[n];if(i)for(let n=0;n<i.length;n++){const a=i[n];var o;if(ge(a,e,t)&&(a.isValidDropTarget(r)||(null===(o=a.mainDropTarget)||void 0===o?void 0:o.isValidDropTarget(r))))return a}}}var ye,be,_e,Ee,we,xe=r(98405),Le=r(5849),Oe=r(43616),Se=r(85080),Te=r(25585);function Pe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ie(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(r),!0).forEach((function(t){Ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ce(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function ke(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const De={ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown"};let Ne=(0,u.Pi)(((we=class extends a.Component{constructor(...e){super(...e),this.overlayState=new Se.Z({ignoreScrollEvents:!0,onClose:()=>this.handleBlur()}),Ce(this,"_selection",_e,this),Ce(this,"_lockedPath",Ee,this),this.registerInputEl=()=>{this.props.inputEl&&(this.props.inputEl.addEventListener("keydown",this.handleKeyDown),this.props.inputEl.addEventListener("input",this.handleInputChange),this.registerOverlay(),this.overlayState.toggleOverlay())},this.unregisterInputEl=()=>{this.props.inputEl&&(this.props.inputEl.removeEventListener("keydown",this.handleKeyDown),this.props.inputEl.removeEventListener("input",this.handleInputChange))},this.registerOverlay=()=>{this.dropdownEl&&this.props.inputEl&&this.overlayState.setParentElement([...this.dropdownParentEl,this.props.inputEl])},this.handleEnter=e=>(e.preventDefault(),this.pathState.commitEdit()),this.getNewSelectedIndex=e=>{const t=0===this.selectedIndex,r=this.selectedIndex===this.menuItems.length-1;return e===De.ARROW_UP?t?this.menuItems.length-1:this.selectedIndex-1:e===De.ARROW_DOWN?r?0:this.selectedIndex+1:void 0},this.handleArrowTravel=e=>{if(e.preventDefault(),e.stopPropagation(),[De.ARROW_UP,De.ARROW_DOWN].includes(e.key)){const t=this.getNewSelectedIndex(e.key);this.setSelection(t),this._lockedPath||(this._lockedPath=this.autocompletePath);const r=this.menuItems[t];this.pathState.updateEntry(this.pathState.headIndex,r.name),this.resetInputCursor()}},this.handleInputChange=()=>{this._lockedPath=null},this.handleKeyDown=e=>{if([De.ARROW_UP,De.ARROW_DOWN].includes(e.key))return this.handleArrowTravel(e)},this.handleBlur=()=>{this.pathState.isEditing&&this.pathState.commitEdit(),this._lockedPath=null},this.handleClickOnResult=e=>{this.acceptAutocomplete(e.name)},this.handleReturnFocus=()=>{this.props.inputEl&&setTimeout((()=>{this.props.inputEl.focus(),this.resetInputCursor()}))},this.setDropdownRef=e=>{e&&(this.dropdownEl=e,this.registerOverlay())}}componentDidMount(){this.disposeResetSelection=(0,l.reaction)((()=>this.autocompleteResults),(()=>{this._lockedPath||this.setSelection(0)})),this.registerInputEl()}componentWillUnmount(){this.disposeResetSelection(),this.overlayState.hideOverlay()}componentDidUpdate(e){e.inputEl!==this.props.inputEl&&this.registerInputEl()}get dropdownParentEl(){if(this.dropdownEl)return this.dropdownEl.overlayState.getParentElement()}get selectedIndex(){return this._selection}get pathState(){return this.context.viewManager.pathState}get query(){var e;return!this.pathState.isEditing||this.hidePathHead?"":null===(e=this.path[this.path.length-1])||void 0===e?void 0:e.name}get hidePathHead(){return!!this.pathState.head.isGroup&&this.pathState.isNewGroup}get autocompletePath(){return this._lockedPath?this._lockedPath:this.hidePathHead?[...this.pathState.matchedPath.slice(0,-1),this.pathState.getNewGroupEntry()]:this.pathState.matchedPath}get autocompleteResults(){if(!this.pathState.isEditing)return[];const e=this.pathState.getAutocompleteResultsForPath(this.autocompletePath);return this.pathState.isNewGroup?e.filter((e=>e!==this.pathState.group)):e}get path(){return this.pathState.isEditing?this._lockedPath?this._lockedPath.slice(this.pathState.maxDepth):this.pathState.livePath:[]}setSelection(e){this._selection=e}acceptAutocomplete(e){const t=this.pathState.livePath.length-1;this.pathState.updateEntry(t,e),this.pathState.addEntry(),this._lockedPath=null,this.handleReturnFocus()}resetInputCursor(){const e=this.props.inputEl.value;this.props.inputEl.setSelectionRange(e.length,e.length)}getPathLabel(e){const t=this.props.width-this.props.x,r=(0,Te.Zj)(e,{maxWidth:t});return a.createElement("div",null,r)}get menuItems(){const e=this.autocompleteResults?this.autocompleteResults.map((e=>{const t=(0,B._y)(e,!0).map((e=>e.name)).slice(this.pathState.maxDepth);return{key:e.id,label:this.getPathLabel(t),name:e.name,onClick:()=>this.handleClickOnResult(e)}})):[],t=this.path.map((e=>e.name)),r=this.query.trim(),n=!(!this.autocompleteResults||!this.autocompleteResults.find((e=>e.name===r))),i={key:"create",label:this.getPathLabel(t),name:r,onClick:()=>this.acceptAutocomplete(r)};return(this.query&&!n?[i,...e]:e).map(((e,t)=>Ie(Ie({},e),{},{isSelected:this.selectedIndex===t,onMouseOver:()=>this.setSelection(t)})))}render(){return a.createElement(Oe.Z,{open:!!this.menuItems.length,disableUpperCaseTitle:!0,ref:this.setDropdownRef,data:this.menuItems,className:"panel-group-path-view-autocomplete",type:"path-view-autocomplete"})}}).contextType=m.r,we.propTypes={inputEl:c().object,x:c().number,width:c().number},_e=ke((be=we).prototype,"_selection",[l.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Ee=ke(be.prototype,"_lockedPath",[l.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ke(be.prototype,"autocompletePath",[l.computed],Object.getOwnPropertyDescriptor(be.prototype,"autocompletePath"),be.prototype),ke(be.prototype,"autocompleteResults",[l.computed],Object.getOwnPropertyDescriptor(be.prototype,"autocompleteResults"),be.prototype),ke(be.prototype,"menuItems",[l.computed],Object.getOwnPropertyDescriptor(be.prototype,"menuItems"),be.prototype),ye=be))||ye;var Re=r(97536),Me=r(36791);const je=["type","data","height","width","additionalStyles","library","viewMode","gridSizeType"];var Fe,Ze,Be;function Ge(){return Ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ge.apply(this,arguments)}function Ue(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let He=(0,u.Pi)((Be=class e extends a.Component{constructor(...t){super(...t),this._getCellItemKey=e=>{const t=e.type,r=e.key||this._getCellKey(e);return`${t}:${e.data&&e.data.library?e.data.library.id:""}:${r}:${"element"===t?this.context.viewState.viewState:""}`},this._getCellKey=e=>{var t,r;return"object"!=typeof e.data?e.data:null===(t=e.data)||void 0===t||!t.id||p.Z.CONSTANT_KEY_IDS.includes(e.data.id)?(null===(r=e.data)||void 0===r?void 0:r.id)||"*":(0,_.P)(e.data)},this._cellRenderer=({index:t,style:r})=>{const n=this.items[t],i=n.type,o=n.data,s=n.height,c=n.width,l=n.additionalStyles,u=n.library,d=n.viewMode,p=n.gridSizeType,h=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(n,je),f=e.ITEM_VIEWS[i](o,s,c,u,d,p,h);return l&&Object.assign(r,l),a.createElement("div",{key:this._getCellItemKey(this.items[t]),style:r},f)},this._cellSizeAndPositionGetter=({index:e})=>{const t=this.items[e];return{width:t.width,height:t.height,x:t.x,y:t.y}},this._sectionItems=[],this._setCollection=e=>{this._collection=e},this.handleClick=e=>{(h.Z.isWindowsOS()?e.ctrlKey:e.metaKey)||this.context.viewState.clearAllSelections()},this.handleDragEnter=e=>{e.preventDefault()},this.handleDragOver=e=>{if(this.context.viewState.isLibraryWritable(this.context.libraryManager.currentLibrary)&&y.Z.dragData){e.preventDefault();const t=Array.isArray(y.Z.dragData)&&y.Z.dragData[0]instanceof b.Z;"type"===this.context.viewState.viewByState&&t&&(e.dataTransfer.dropEffect="move");const r=this.dropTargets&&this.dropTargets[y.Z.dragType];this._bounds=this._bounds||this.libraryContents&&this.libraryContents.getBoundingClientRect();const n=e.clientY-this._bounds.top+this._scrollTop,i=e.clientX-this._bounds.left;r&&y.Z.setActiveDropTarget(r.find(i,n,y.Z.dragData)),this._onDragOver&&this._onDragOver(i,n)}},this.handleDrop=e=>{y.Z.handleDrop(e)},this._scrollTop=0,this.setSelectedSection=()=>{const e=(t,r,n=0,i=t.length-1)=>{if(r=Math.ceil(r),n>i)return-1;const o=Math.floor((n+i)/2),a=t[o];return r>=a.y&&(!t[o+1]||r<t[o+1].y)?a:r<a.y?e(t,r,n,o-1):e(t,r,o+1,i)},t=e(this._sectionItems,this._scrollTop);-1!==t&&this.context.viewState.setCurrentSection(t.data.id)},this._debouncedSetSelectedSection=(0,E.Ds)(p.Z.AUTO_SCROLL_GROUP_SELECT_DEBOUNCE,(()=>(this.setSelectedSection(),Promise.resolve()))),this.handleScroll=e=>{this._scrollTop=e.target&&e.target.scrollTop,this._debouncedSetSelectedSection()},this.findNextElementToNavigate=(e,t,r)=>{if(!["ArrowDown","ArrowRight","ArrowUp","ArrowLeft"].includes(e))return;let n;const i=this.items.filter((e=>"element"===e.type)),o=this.context.viewState.getElementsInViewOrder(g.Z.selection);if(o.length>0){let a;g.Z.lastSelectedElementWithShift&&t?a=g.Z.lastSelectedElementWithShift.id:g.Z.currentFocusedElement&&r?a=g.Z.currentFocusedElement.id:["ArrowDown","ArrowRight"].includes(e)?a=o[o.length-1].id:["ArrowUp","ArrowLeft"].includes(e)&&(a=o[0].id);const s=i.findIndex((({data:{id:e}})=>a===e));switch(e){case"ArrowLeft":n=i[s-1];break;case"ArrowRight":n=i[s+1];break;case"ArrowUp":for(let e=s-1;e>=0&&!(n&&i[e].x<i[s].x)&&!(i[e].y<i[s].y&&(n=i[e],i[e].x===i[s].x));e--);break;case"ArrowDown":{let e=i[s].y;for(let t=s+1;t<i.length&&!(n&&i[t].y>e&&e>i[s].y)&&!(i[t].y>i[s].y&&(n=i[t],e=i[t].y,i[t].x===i[s].x));t++);}}}else["ArrowDown","ArrowRight"].includes(e)&&g.Z.selection.length>0?n=i[i.length-1]:(["ArrowUp","ArrowLeft"].includes(e)||0===g.Z.selection.length)&&(n=i[0]);return n},this.handleKeyDown=e=>{let t=!0;const r=h.Z.isWindowsOS()?e.ctrlKey:e.metaKey,n=this.findNextElementToNavigate(e.key,e.shiftKey,r);if(n)if(e.shiftKey)g.Z.setSelectionRange(n.data,!0);else if(r)g.Z.setFocusedElement(n.data,!0);else if(e.altKey){let t,r;const i=this.items.filter((e=>"element"===e.type)),o=i.findIndex((({data:{id:e}})=>n.data.id===e));["ArrowDown","ArrowRight"].includes(e.key)?(r=n.data,t=o<i.length-1?i[o+1].data:void 0):["ArrowUp","ArrowLeft"].includes(e.key)&&(t=n.data,r=o>0?i[o-1].data:void 0),(0,_.l)(g.Z.selection,r,t,!0)}else g.Z.setSelection(n.data,!0);else if(" "===e.key&&g.Z.currentFocusedElement)g.Z.toggleSelection(g.Z.currentFocusedElement);else if(["PageUp","PageDown"].includes(e.key)){const r=this.items.filter((e=>"group"===e.type)),n=r.findIndex((({data:{id:e}})=>this.context.viewState.currentSection===e));"PageDown"===e.key&&-1!==n&&n<r.length-1?g.Z.revealGroup(r[n+1].data):"PageUp"===e.key&&n>0?g.Z.revealGroup(r[n-1].data):t=!1}else t=!1;t&&(e.stopPropagation(),e.preventDefault())},this.setContentsRef=e=>{this.libraryContents=e}}componentDidMount(){(0,Re.ny)(),this._loadingReaction=(0,l.reaction)((()=>this._showLoadingToast),(()=>this.toggleLoadingToast()),{fireImmediately:!0}),this._syncErrorReaction=(0,l.reaction)((()=>this._showSyncErrorToast),(()=>this.toggleSyncErrorToast()),{fireImmediately:!0})}componentWillUnmount(){this.toggleLoadingToast(!0),this.toggleSyncErrorToast(!0),this._loadingReaction(),this._syncErrorReaction()}get _showLoadingToast(){const e=this.context.libraryManager.currentLibrary;return e&&!e.areElementsLoaded}get _showSyncErrorToast(){return"requestFailed"===this.context.libraryManager.syncStatus.errorType}componentDidUpdate(e){if(e.width!==this.props.width)if(p.Z.currentProduct.config.maintainCurrentSectionOnResize&&this.context.viewState.currentSection)if("group"===this.context.viewState.viewByState){const e=this.items.find((e=>"group"===e.type&&e.data.id===this.context.viewState.currentSection));e&&g.Z.revealGroup(e.data,!0)}else g.Z.revealGroup(this.context.viewState.currentSection,!0);else this.setSelectedSection()}get items(){this._clearDropTargets();const e=this.props.itemInjector(),t=e.sectionItems,r=e.dropTargets,n=e.items;return this._sectionItems=t,r.group.forEach((e=>this.dropTargets.group.push(e))),r.element.forEach((e=>this.dropTargets.element.push(e))),n}_clearDropTargets(){this.dropTargets={group:new ve,element:new ve},this._bounds=null}componentWillReact(){this._collection&&this._collection.recomputeCellSizesAndPositions()}get _scrollToCell(){return this.props.height>0?this.items.findIndex((e=>e.data===g.Z.itemPendingScroll)):-1}get offsetTop(){}get _collectionStyle(){return{outline:"none",scrollBehavior:g.Z.shouldEaseScrolling?"smooth":"auto",overflowY:"auto",overflowX:"hidden"}}_getScrollToCellAndClearPending(){return-1!==this._scrollToCell&&setTimeout((()=>g.Z.clearItemPendingScroll())),this._scrollToCell}toggleLoadingToast(e=!1){const t="library-loading-toast-message",r=this.context.toastManager;!e&&this._showLoadingToast?r.openToast("message",{variant:"info",referenceId:t,message:(0,v.Iu)("DL_LOADING_LIBRARY"),duration:.1,closable:!1}):r.closeToast(t)}toggleSyncErrorToast(e=!1){const t="library-sync-error-toast-message",r=this.context.toastManager;!e&&this._showSyncErrorToast?r.openToast("message",{referenceId:t,message:(0,v.Iu)("DL_SYNC_REQUEST_ERROR"),variant:"error",duration:0}):r.closeToast(t)}renderVirtualizer(){if("group"===this.context.viewState.viewByState&&0===this.context.viewState.searchState.searchResultsCount&&p.Z.currentProduct.config.emptyLibraryCustomComponent){const e=p.Z.currentProduct.config.emptyLibraryCustomComponent;return a.createElement(e,{library:this.context.libraryManager.currentLibrary})}return a.createElement(d.Z,{id:"collection",cellCount:this.items.length,cellRenderer:this._cellRenderer,cellSizeAndPositionGetter:this._cellSizeAndPositionGetter,scrollToAlignment:g.Z.scrollToAlignment,scrollToCell:this._getScrollToCellAndClearPending(),width:this.props.width,height:this.props.height,ref:this._setCollection,style:this._collectionStyle})}render(){return a.createElement("div",{className:"panel-inner-library-contents",tabIndex:"0",ref:this.setContentsRef,onClick:this.handleClick,onDragEnter:this.handleDragEnter,onDragOver:this.handleDragOver,onDrop:this.handleDrop,onScroll:this.handleScroll,onKeyDown:this.handleKeyDown,"data-test-id":"library-contents"},this.renderVirtualizer())}},Be.contextType=m.r,Be.propTypes={itemInjector:c().func.isRequired,width:c().number,height:c().number},Be.ITEM_VIEWS={element:(e,t,r,n,i,o,s)=>{const c=f.Z.getComponent(e.type);return a.createElement(c,Ge({element:e,height:t,width:r,viewMode:i,gridSizeType:o,showDetails:h.Z.elementDetailMode},s))},header:e=>a.createElement(P,{type:e.type,isRole:e.isRole,showAdd:e.showAdd,disableAdd:e.disableAdd,onClickAdd:e.onClickAdd}),timeHeader:e=>a.createElement(C,{time:e}),removedElementsMessage:e=>a.createElement("div",{"data-test-id":"removed-elements-message",className:"panel-removed-elements-message"},e),documentAssetsOnboarding:()=>a.createElement(xe.Z,null),group:(e,t,r,n,i,o,s)=>a.createElement(le,Ge({group:e.library?e:Object.assign({library:n},e),height:t,viewMode:i},s)),ungroupedSeparator:()=>a.createElement("div",{"data-test-id":"ungrouped-separator",className:"panel-group-ungrouped-border"}),searchResultHeader:e=>a.createElement(pe.Z,{numResults:e}),searchOptionsMessage:()=>a.createElement(he.Z,null),loadSpinner:()=>a.createElement("div",{className:"panel-library-contents-load-spinner","data-test-id":"load-spinner"},a.createElement(Le.Z,{size:"medium",indeterminate:!0})),dropZone:e=>a.createElement(me,{target:e}),pathViewAutocomplete:(e,t,r,n,i,o,s)=>a.createElement(Ne,Ge({width:r},s)),spacer:(e,t,r)=>a.createElement("div",{"data-test-id":"bottom-spacer",style:{height:t,width:r}}),createItem:e=>a.createElement(Me.Z,{shortType:e.shortType,icon:e.icon,fullWidth:e.fullWidth,buttonText:e.buttonText,disabled:e.disabled,onClick:e.onClick})},Ue((Ze=Be).prototype,"_showSyncErrorToast",[l.computed],Object.getOwnPropertyDescriptor(Ze.prototype,"_showSyncErrorToast"),Ze.prototype),Ue(Ze.prototype,"items",[l.computed],Object.getOwnPropertyDescriptor(Ze.prototype,"items"),Ze.prototype),Ue(Ze.prototype,"_scrollToCell",[l.computed],Object.getOwnPropertyDescriptor(Ze.prototype,"_scrollToCell"),Ze.prototype),Ue(Ze.prototype,"_collectionStyle",[l.computed],Object.getOwnPropertyDescriptor(Ze.prototype,"_collectionStyle"),Ze.prototype),Fe=Ze))||Fe},39808:(e,t,r)=>{"use strict";r.d(t,{Z:()=>K});var n=r(89526),i=r(62631),o=r(2652),a=r.n(o),s=r(24937),c=r(35938),l=r(99386),u=r(91854),d=r(69233),p=r(69923),h=r(46903);class f extends p.Z{get type(){return"group"}get beforeGroup(){return this._dropTarget.beforeGroup}get afterGroup(){return this._dropTarget.afterGroup}get isReorder(){return!(!this.afterGroup&&!this.beforeGroup)}isValidDropTarget(e){const t=e===this.afterGroup||e===this.beforeGroup||e===this.group,r=this.group&&e.parent===this.group,n=(0,d.zA)(this.afterGroup||this.group,e)||(0,d.zA)(this.beforeGroup||this.group,e),i=this.group||this.beforeGroup||this.afterGroup,o=Array.isArray(e)?e:[e];return!(t||r||n||i.library&&i.library.isDocumentAssets&&!(0,d.mB)(o,i,this.isReorder))}onDrop(e){this.isReorder?(0,h.dB)(e,this.afterGroup,this.beforeGroup):(0,h.yD)(!0,e,this.group.library,this.group)}}var m=r(99987),g=r(59299),v=r(54048),y=r(46931),b=r(85834),_=r(76485),E=r(47320);function w(e){const t=0===(null==e?void 0:e.elements.length);return!y.Z.panel.viewState.isSearchMode()&&t&&e.isDocumentAssets}function x(e,t,r){if(t[e.type].push(e),b.Z.get("dropZoneIndicators")){const t=e.x,n=e.y,i=e.width,o=e.height;e.id=!0,r.push({type:"dropZone",data:e,x:t,y:n,width:i,height:o,additionalStyles:{pointerEvents:"none"}})}}function L(e,t,r){const n=_.Z.getDynamicLayoutRules()[e]||{},i=(null==n?void 0:n.horizontalSpacing)||4,o=(null==n?void 0:n.verticalSpacing)||4,a=function(e,t){const r=_.Z.getDynamicLayoutRules()[t]||{},n=_.Z.getDynamicLayoutMinimumBreakpoint(),i=_.Z.getDynamicLayoutBreakpointWidth();let o=Math.ceil((e-n)/i);return o=o<0?0:o,r.getColumns&&r.getColumns(o)||1}(r,e),s=Math.floor((t+i)/a)-i;return{cellWidth:s,cellHeight:n.getHeight(s),gridHorizontalPadding:i,gridVerticalPadding:o,columns:a}}function O(e,t,r){if(w(r)){const r=e.x,n=e.y,i=e.width,o=e.height;t.push({type:"documentAssetsOnboarding",x:r,y:n,width:i,height:o,data:{}})}}function S(e,t,r){const n="path"===y.Z.panel.viewState.viewByGroupMode?e&&e.pathViewMaxDepth||0:void 0,i=y.Z.panel.viewState.elementSortState,o=y.Z.panel.viewState.isDocumentSearchMode()?()=>function(e,t,r){const n=E.Z.groupElementsByTopLevelGroup(e,t,r),i=Object.fromEntries(n.map((e=>[e.item.id,e])));return{root:{children:n},branches:i}}(t,r,i):()=>(0,d.GI)(e,{maxDepth:n,sortBy:i});return o()}function T(e,t,r){e.group&&"*"!==e.group.id&&x(new m.Z(e),t,r)}function P(e){var t,r;const n=(null===(t=(r=l.Z.currentProduct.config).headerHeight)||void 0===t?void 0:t.call(r))||24;return e+(l.Z.currentProduct.config.hideFirstSectionHeader?n:0)}function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function A(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?I(Object(r),!0).forEach((function(t){C(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function C(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var k,D,N=r(33275),R=r(80091),M=r(75623);let j=(0,i.Pi)((D=class extends n.Component{constructor(...e){super(...e),this.injectItems=()=>function(e,t,r,n){var i,o,a,s;const c=[],p={group:[],element:[]};if(!e)return{items:[],dropTargets:p,sectionItems:c};const h=l.Z.currentProduct.config.emptyGroupHeight||70,b=l.Z.currentProduct.config.disableGroupMargin?0:12,_=l.Z.currentProduct.config.gridLeftPadding||0,I=l.Z.currentProduct.config.paddingBetweenGroups||12,C=b,k=[],D=(null===(i=(o=l.Z.currentProduct.config).headerHeight)||void 0===i?void 0:i.call(o))||24,N=l.Z.currentProduct.config.headerMargin||0,R="path"===y.Z.panel.viewState.viewByGroupMode,M="order"===y.Z.panel.viewState.elementSortState,j=function(e,t,r){return S(e,t,r).root.children}(e,t,r),F=y.Z.panel.viewState.librariesSearchState.filterCount>0,Z=l.Z.SCROLLBAR_WIDTH,B=n.width-Z-2*_;let G;if(F){const e=new Set;r.forEach((t=>e.add(t.id))),t.forEach((t=>e.add(t.id))),G=t=>e.has(t.id)}else G=()=>!0;const U=({key:i,section:o,index:a,sections:s,x:g,y:v,width:b,zIndex:w,hideHeader:O=!1,mainDropTarget:j})=>{var F;const Z=g,B=o.item,H="*"===B.id,z=o.children.filter((e=>G(e.item))),V=0===z.length,Y=l.Z.currentProduct.config.disableNestedGroupIndent?0:function(e,t,r,n){const i=n.width*l.Z.SUBGROUP_INDENT_PERCENT,o=function(e,t,r){const n=S(e,t,r).branches;return Math.max(...Object.values(n).map((e=>e.item.isGroup?e.depth:0)))+1}(e,t,r);return Math.min(l.Z.MAX_SUBGROUP_INDENT,Math.ceil(i/o))}(e,t,r,n),W=H&&0===o.children.length,K=H&&(e&&0===e.getGroups().length||W),$=V&&e&&(e.hideUngroupedSection||!y.Z.panel.viewState.isLibraryWritable(e)),q=b-Y-Z<160?h+25:h,X=q+D+N,J=B.parent||0===a||l.Z.currentProduct.config.evenlySpacedSubgroups?0:I,Q=!!j,ee=u.Z.isHoldingDragOverGroup(B),te=M&&(!R||R&&(ee||Q)),re=Q||y.Z.panel.viewState.isGroupCollapsed(B.id)||V&&B.hideDefaultTextInEmptyGroup;if(l.Z.currentProduct.config.hideEmptyGroups&&V&&!H)return{x:g,y:v};if(!G(o.item))return{x:g,y:v};if(H&&$)return{x:g,y:v};if(V&&B.hideWhenEmpty)return{x:g,y:v};if(R&&!Q&&!(0,d.k5)(o))return{x:g,y:v};const ne=o.tree.branches[null===(F=(0,d.Oy)(o.item))||void 0===F?void 0:F.id];if(R&&ne&&(0,d.k5)(ne))return{x:g,y:v};if(R&&u.Z.isHoldingDragOverGroup(B)){const n=e.pathViewMaxDepth||0,i=(0,d._y)(B).slice(n).map((n=>S(e,t,r).branches[n.id]));j=u.Z.holdingDropTarget,i.forEach(((e,t)=>{const r=`${B.id}:${e.item.id}`,n=U({key:r,section:e,index:t,sections:i,x:g,y:v,width:b,zIndex:w,hideHeader:O,mainDropTarget:j}).y;v=n}))}v+=J;const ie=!l.Z.currentProduct.config.disableGroupSeparator&&l.Z.currentProduct.config.groupSeparatorHeight||12;if(!l.Z.currentProduct.config.disableGroupSeparator&&H&&!K){const e={type:"ungroupedSeparator",data:B,x:g,y:v,width:b,height:12};k.push(e),v+=ie}const oe={type:"group",data:B,key:i,x:_,y:v,width:b,style:{paddingLeft:g},library:t[0]&&t[0].library,viewMode:y.Z.panel.viewState.viewState,zIndex:w,hideHeader:O};if(function(e,t){t.push(e);const r="path"===y.Z.panel.viewState.viewByGroupMode,n=y.Z.panel.viewManager.editPathGroup===e.data,i=y.Z.panel.viewManager.pathState.inputElement;if(r&&n&&i){const r=e.x,n=e.y,o=e.width,a=r+25+e.style.paddingLeft,s=n+24,c=o-a-12;t.push({type:"pathViewAutocomplete",x:a,y:s,width:c,height:0,data:{id:"autocomplete"},inputEl:i,zIndex:2})}}(oe,k),c.push({y:v-(H?ie:0),data:B}),te){const n=C,i=R?(n=>{const i=S(e,t,r).branches,o=i[n.id].parent;return o.children.find(((e,t)=>e.item.parent===n.parent&&o.children[t+1]===i[n.id]))})(B):s[a-1],o=(null==i?void 0:i.item.isGroup)&&i.item;x(new f({x:g,y:v-C/2,width:b,height:n,afterGroup:o,beforeGroup:B,mainDropTarget:j}),p,k)}if(!V||H||re){if(!H){var ae;const e={x:g,y:v,width:b,height:D+(re?0:4),group:B,mainDropTarget:j},t=null===(ae=z.find((e=>!e.item.isGroup)))||void 0===ae?void 0:ae.item;x(new m.Z(A(A({},e),{},{beforeElement:t})),p,k),x(new f(e),p,k)}}else{const e={x:g,y:v,width:b,height:X,group:B};x(new m.Z(e),p,k),x(new f(e),p,k)}if(v+=(K||O?0:D)+N,re){const e=v-oe.y;return oe.height=e,{x:g,y:v}}if("grid"===y.Z.panel.viewState.viewState){const e=l.Z.currentProduct.config.gridLeftPadding||12,t=l.Z.currentProduct.config.gridRightPadding||0,r=b-g-t-(l.Z.currentProduct.config.gridLeftPadding?0:2*e),n=function(e){if(l.Z.currentProduct.config.uniformElementSize)return y.Z.panel.viewState.gridZoomFactor;let t,r,n,i;return e.forEach((e=>{const o=E.Z.getGridSizeByType(e.type||l.Z.COLOR_ELEMENT_TYPE);o===l.Z.GRID_TYPE_LARGE?t=!0:o===l.Z.GRID_TYPE_MEDIUM?r=!0:o===l.Z.GRID_TYPE_SMALL?n=!0:o===l.Z.GRID_TYPE_WIDE&&(i=!0)})),t||i&&r||i&&n?l.Z.GRID_TYPE_LARGE:!i||r||n?r?l.Z.GRID_TYPE_MEDIUM:l.Z.GRID_TYPE_SMALL:l.Z.GRID_TYPE_WIDE}(z.map((e=>e.item)).filter((e=>!e.isGroup))),i=L(n,r,b),o=i.cellHeight,a=i.cellWidth,s=i.gridHorizontalPadding,c=i.gridVerticalPadding,u=i.columns;g+=e,l.Z.currentProduct.config.disableTopElementGridPadding&&(v-=c),z.forEach(((t,r)=>{const i=t.item;if(0!==r||i.isGroup||l.Z.currentProduct.config.disablePaddingWithinGridGroup||(v+=c),0!==r&&r%u==0&&!i.isGroup){const t=Math.max(0,g-a/2-s);T({x:t,y:v,width:b-t,height:o,group:B,afterElement:z[r-1]&&z[r-1].item,beforeElement:i,isRowEnd:!0},p,k),g=Z+e,v+=o+c}if(!i.isGroup){const e=Math.max(0,g-s-a/2),t=Math.min(a+2*s,g+a/2,b-e);T({x:e,y:v,width:t,height:o,group:B,afterElement:r>0?z[r-1].item:void 0,beforeElement:i},p,k)}if(!i.isGroup&&(r===z.length-1||z[r+1].item.isGroup)){const e=g+a/2;T({x:e,y:v,width:b-e,height:o,group:B,afterElement:i,isRowEnd:!0},p,k)}if(i.isGroup){const e=U({section:t,index:r,sections:z,x:Z+Y,y:v,width:b,zIndex:w+1}).y;v=e}else{k.push({type:"element",data:i,x:g,y:v,width:a,height:o,viewMode:y.Z.panel.viewState.viewState,gridSizeType:n,zIndex:1}),g+=a+s;const e=r===z.length-1,t=!e&&z[r+1].item.isGroup;(e||t)&&(v+=o+c)}}))}else{const e=l.Z.LIST_VIEW_ELEMENT_HEIGHT;z.forEach(((t,r)=>{const n=t.item;if(G(n))if(n.isGroup){const e=U({section:t,index:r,sections:z,x:g+Y,y:v,width:b,zIndex:w+1}).y;v=e}else T({x:g,y:v-e/2,width:b,height:e,group:B,afterElement:r>0?z[r-1].item:void 0,beforeElement:n},p,k),r===z.length-1&&T({x:g,y:v+e/2,width:b,height:e/2,group:B,afterElement:n,isRowEnd:!0},p,k),k.push({type:"element",data:n,x:_,y:v,width:b,height:e,viewMode:y.Z.panel.viewState.viewState,zIndex:1,listStyle:{paddingLeft:g+12}}),v+=e}))}if(V&&(v+=q+(l.Z.currentProduct.config.emptyGroupBottomPadding||0)),oe.height=v-oe.y,H){const e=l.Z.currentProduct.config.lastSectionFullHeight&&s.length>1?0:oe.y,t=Math.max(P(n.height)-e,oe.height);oe.height=t;const r={x:Z,y:oe.y,width:b,height:t,group:B};x(new m.Z(r),p,k)}return{x:g,y:v}},H=_;let z=l.Z.currentProduct.config.disableGroupMargin?0:(null===(a=(s=l.Z.currentProduct.config).getScrollTopPadding)||void 0===a?void 0:a.call(s))||8;if(y.Z.panel.viewState.isSearchMode()){const e=g.Z.getHeight(t.length,B);k.push({type:"searchResultHeader",data:t.length,x:0,y:z,width:B,height:e}),z+=e}let V=!1;if(j.forEach(((e,t)=>{const r=l.Z.currentProduct.config.hideFirstSectionHeader&&!V;(R&&!(0,d.Oy)(e.item)&&(0,d.k5)(e)||!R&&0===t)&&(V=!0);const n=U({section:e,index:t,sections:j,x:H,y:z,width:B,zIndex:-100,hideHeader:r}).y;z=n})),(y.Z.panel.viewState.isLibrarySearchMode()||y.Z.panel.viewState.isDocumentSearchMode())&&!y.Z.panel.viewState.isRootView()){const e=v.Z.getHeight(B);k.push({type:"searchOptionsMessage",data:{},x:0,y:z,width:B,height:e}),z+=e}const Y=0===j.find((e=>e.item&&"*"===e.item.id)).children.length,W=Y&&e&&(e.hideUngroupedSection||!y.Z.panel.viewState.isLibraryWritable(e));return!(n.height<=z)||w(e)||l.Z.currentProduct.config.hideExtraBottomSpace||Y&&!W||(k.push({type:"spacer",data:{},x:0,y:z,width:B,height:64}),z+=64),O({x:_,y:z,width:B,height:n.height-z},k,e),{items:k,dropTargets:p,sectionItems:c}}(this.props.library,this.props.elements,this.props.groups,{width:this.props.width,height:this.props.height})}render(){const e=this.props,t=e.baseContentView,r=e.width,i=e.height;return n.createElement(t,{itemInjector:this.injectItems,width:r,height:i})}},D.propTypes={width:a().number,height:a().number,library:a().any,elements:i.ng.arrayOrObservableArrayOf(a().oneOfType([a().instanceOf(N.W_),a().instanceOf(R.Z)])).isRequired,groups:i.ng.arrayOrObservableArrayOf(a().oneOfType([a().instanceOf(N.ZA),a().instanceOf(M.Z)])).isRequired,baseContentView:a().elementType},D.defaultProps={baseContentView:c.Z},D.contextType=s.r,k=D))||k;var F,Z,B=r(34038),G=r(4784),U=r(51461),H=r(39293),z=r(6535);let V=(0,i.Pi)((Z=class extends n.Component{constructor(...e){super(...e),this.injectItems=()=>function(e,t,r){var n,i;const o=[],a={group:[],element:[]},s=l.Z.SCROLLBAR_WIDTH,c=r.width-s;if(c<0)return{dropTargets:a,sectionItems:o,items:[]};const u=y.Z.panel.viewState.isSearchMode()?y.Z.panel.viewState.elementSearchSort:y.Z.panel.viewState.elementSortState,d=y.Z.panel.viewState.isRemovedElementsMode()?E.Z.groupElementsByTime(t,"removed"):E.Z.groupElementsByType(t,u,y.Z.panel.viewState.elementSortDescendingState),p=[];let h=l.Z.currentProduct.config.disableGroupMargin?0:(null===(n=(i=l.Z.currentProduct.config).getScrollTopPadding)||void 0===n?void 0:n.call(i))||8;if(y.Z.panel.viewState.isSearchMode()){const e=g.Z.getHeight(t.length,c);p.push({type:"searchResultHeader",data:t.length,x:0,y:h,width:c,height:e}),h+=e}if(y.Z.panel.viewState.isRemovedElementsMode()){if(0===t.length)return p.push({type:"removedElementsMessage",data:"No deleted items.",x:0,y:h,width:c,height:20}),{dropTargets:a,sectionItems:o,items:p};if(!t[0].library.isWritable)return p.push({type:"removedElementsMessage",data:"You don't have write access to this library, so you can't view its deleted items.",x:0,y:h,width:c,height:20}),{dropTargets:a,sectionItems:o,items:p}}const f=t=>!(!y.Z.panel.viewState.isLibraryWritable(e,!1,!0)||y.Z.panel.viewState.isSearchMode())&&(b.Z.get("brandFeatureEnabled")&&t.isRole||(e=>B.ku(e.type).length)(t)),_=d.filter((e=>{const t=l.Z.currentProduct.config.showEmptyUsableTypes&&f(e);return e.children.length||t}));if(_.forEach(((t,n)=>{var i,a;const s=t.type||t.item&&t.item.nameLocalizationKey||"*",u=t.isRole?s:E.Z.getShortType(s),d=t.children,m=p.length,g=(null===(i=(a=l.Z.currentProduct.config).headerHeight)||void 0===i?void 0:i.call(a))||24,v=r=>{r.stopPropagation();const n=E.Z.getOpenPickerOperation(t.isRole?l.Z.IMAGE_ELEMENT_TYPE:s),i=(0,H.Ol)(e)?"brands":"libraries";U.ZP.reportEvent("Operations",i,"click","add-library-asset",{content:{type:u}},e),n(e,r,t.isRole)};if(y.Z.panel.viewState.isRemovedElementsMode())p.push({type:"timeHeader",data:t.time,x:0,y:h,width:c,height:g}),h+=g;else if(!y.Z.panel.libraryManager.disableCCLibraries){const r=l.Z.currentProduct.config.hideFirstSectionHeader&&0===n;if(!r){const r={isRole:t.isRole,type:s,id:"header",showAdd:!!(l.Z.currentProduct.config.enableCreateItemCards&&t.children.length&&f(t)),onClickAdd:v,disableAdd:!G.Z.canAddElements(e)};p.push({type:"header",data:r,x:0,y:h,width:c,height:g})}if(o.push({y:h,data:{id:s}}),h+=(r?0:g)+(l.Z.currentProduct.config.headerMargin||0),y.Z.panel.viewState.isTypeCollapsed(s))return void(h+=4)}let b;if("grid"===y.Z.panel.viewState.viewState){const r=2*l.Z.currentProduct.config.gridLeftPadding||12,n=l.Z.currentProduct.config.gridRightPadding||0,i=c-2*r-n,o=E.Z.getGridSizeByType(t.type||d[0]&&d[0].type),a=L(o,i,c),m=a.cellHeight,g=a.cellWidth,v=a.gridHorizontalPadding,_=a.gridVerticalPadding,w=a.columns;b=r,l.Z.currentProduct.config.disableTopElementGridPadding&&(h-=_);const x=l.Z.currentProduct.config.enableCreateItemCards&&!t.children.length&&f(t);if(x){const n=r=>{r.stopPropagation();const n=E.Z.getOpenPickerOperation(t.isRole?l.Z.IMAGE_ELEMENT_TYPE:s),i=(0,H.Ol)(e)?"brands":"libraries";U.ZP.reportEvent("Operations",i,"click","add-library-asset",{content:{type:u}},e),n(e,r,t.isRole)},i={id:`add-${u}-card`,icon:`CCXCreate${u[0].toUpperCase()+u.slice(1).toLowerCase()}`,disabled:!G.Z.canAddElements(e),onClick:n,shortType:u,fullWidth:!0},a=c-2*r;p.push({type:"createItem",data:i,x:b,y:h,width:a,height:m,viewMode:y.Z.panel.viewState.viewState,gridSizeType:o,zIndex:1}),b+=g+v}d.forEach(((e,t)=>{x&&t++,t%w==0&&0!==t&&(b=r,h+=m+_),p.push({type:"element",data:e,x:b,y:h,width:g,height:m,viewMode:y.Z.panel.viewState.viewState,gridSizeType:o,zIndex:1}),b+=g+v})),h+=m+_}else{b=0;const e=l.Z.LIST_VIEW_ELEMENT_HEIGHT;d.forEach((t=>{p.push({type:"element",data:t,x:b,y:h,width:c,height:e,viewMode:y.Z.panel.viewState.viewState,zIndex:1,listStyle:{paddingLeft:12}}),h+=e}))}!l.Z.currentProduct.config.disableGroupMargin&&n<_.length-1&&(h+=12),n===_.length-1&&_.length>1&&l.Z.currentProduct.config.lastSectionFullHeight&&(p[m].height=Math.max(P(r.height),h-p[m].y))})),(y.Z.panel.viewState.isLibrarySearchMode()||y.Z.panel.viewState.isDocumentSearchMode())&&!y.Z.panel.viewState.isRootView()){const e=v.Z.getHeight(c);p.push({type:"searchOptionsMessage",data:{},x:0,y:h,width:c,height:e}),h+=e}return r.height<=h&&!w(e)&&!l.Z.currentProduct.config.hideExtraBottomSpace&&(p.push({type:"spacer",data:{},x:0,y:h,width:c,height:64}),h+=64),x(new m.Z({x:0,y:0,width:c,height:Math.max(h,r.height)}),a,p),O({x:0,y:h,width:c,height:r.height-h},p,e),{sectionItems:o,dropTargets:a,items:p}}(this.props.library,this.props.elements,{width:this.props.width,height:this.props.height})}render(){const e=this.props,t=e.baseContentView,r=e.width,i=e.height;return n.createElement(t,{itemInjector:this.injectItems,width:r,height:i})}},Z.propTypes={width:a().number,height:a().number,library:a().oneOfType([a().instanceOf(N.Zu),a().instanceOf(z.Z)]),elements:i.ng.arrayOrObservableArrayOf(a().oneOfType([a().instanceOf(N.W_),a().instanceOf(R.Z)])).isRequired,baseContentView:a().elementType},Z.defaultProps={baseContentView:c.Z},Z.contextType=s.r,F=Z))||F;var Y,W;let K=(0,i.Pi)(((W=class extends n.Component{get shouldRenderGroupView(){return("group"===this.context.viewState.viewByState||this.context.viewState.isDocumentSearchMode()&&"group"===l.Z.currentProduct.config.defaultViewByState)&&this.props.groups}render(){const e=this.shouldRenderGroupView?j:V;return n.createElement(e,this.props)}}).propTypes={width:a().number,height:a().number,library:a().any,elements:i.ng.arrayOrObservableArrayOf(a().oneOfType([a().instanceOf(N.W_),a().instanceOf(R.Z)])).isRequired,groups:i.ng.arrayOrObservableArrayOf(a().oneOfType([a().instanceOf(N.ZA),a().instanceOf(M.Z)])),baseContentView:a().elementType},W.contextType=s.r,Y=W))||Y},21694:(e,t,r)=>{"use strict";r.d(t,{Z:()=>T});var n=r(89526),i=r(2652),o=r.n(i),a=r(62631),s=r(50265),c=r(84824),l=r(24937),u=r(76485),d=r(99386),p=r(51461),h=r(26981),f=r(46903),m=r(74149),g=r(64403),v=r.n(g),y=r(33275),b=r(6535),_=r(89526);const E=["library","children","className"];var w,x,L,O;function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},S.apply(this,arguments)}let T=(0,a.Pi)((O=class extends n.Component{constructor(...e){var t;super(...e),(t=L)&&Object.defineProperty(this,"isDraggedOver",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0}),this.dragData=null,this._onDragOver=e=>{this.context.viewState.isLibraryWritable(this.props.library,!1)&&(e.dataTransfer.types.includes(u.Z.ElementDragId)||e.dataTransfer.types.includes("Files"))&&(e.dataTransfer.types.includes("Files")&&(e.dataTransfer.dropEffect="copy"),e.preventDefault(),this.isDraggedOver=!0)},this._onDragLeave=()=>{this.isDraggedOver=!1,this.dragData=null},this._onDragEnter=e=>{e.preventDefault(),this.context.viewState.getDraggingData().then((e=>this.dragData=e))},this._onDrop=e=>{this.isDraggedOver=!1;const t=e.dataTransfer.getData(u.Z.ElementDragId),r=e.dataTransfer.files,n=this.dragData;if(this.dragData=null,this.context.viewState.isLibraryWritable(this.props.library,!1))if((0,h.SF)(n)){if(!(n.assetList&&n.assetList.length>0))return;n.library=this.props.library;const t=(({metaKey:e,altKey:t,ctrlKey:r,shiftKey:n})=>({metaKey:e,altKey:t,ctrlKey:r,shiftKey:n}))(e);(d.Z.currentProduct.dropHandler?d.Z.currentProduct.dropHandler(n,t):Promise.reject()).catch((()=>(0,h.rr)(n,this.props.library))).then((e=>{e&&(e=Array.isArray(e)?e:[e],this._showElementAddedToast(e))}))}else if(t){const r=JSON.parse(t);if(r.libraryId===this.props.library.id)return;const n=r.elementIds.map((e=>this.context.libraryManager.currentLibrary.getElementById(e))),i=!e.altKey;p.ZP.setExtraEventMetrics("updateElement",{subtype:"ungroup",content:{category:"Drag Drop"}}),p.ZP.setExtraEventMetrics(i?"moveElement":"copyElement",{content:{category:"Drag Drop"}}),p.ZP.reportEvent("Element Operations","Element","click",i?"move-to-library":"ungroup",{event:{count:n.length,value:"agg"},content:{category:"Drag Drop"}}),(0,f.IO)(i,n,this.props.library)}else r&&r.length>0&&(e.preventDefault(),e.stopPropagation(),(u.Z.getDragFileList?u.Z.getDragFileList.bind(u.Z):()=>Promise.resolve(r))().then((e=>{(0,m.Bq)(this.props.library,e).then((e=>{this._showElementAddedToast(e)}))})))}}_showElementAddedToast(e){const t=e&&e.length;if(!t)return;const r=t>1?"DL_ELEMENTS_ADDED_SUCCESFUL":"DL_ELEMENT_ADDED_SUCCESFUL";this.context.toastManager.openToast("message",{message:(0,c.Iu)(r,{numElements:t,libraryName:this.props.library.name})})}render(){const e=this.props,t=e.library,r=e.children,n=e.className,i=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,E),o=v()("library-list-item-container",n);return _.createElement("div",S({"data-test-id":`library-drop-target-${t.id}`,onDragOver:this._onDragOver,onDragLeave:this._onDragLeave,onDragEnter:this._onDragEnter,onDrop:this._onDrop,className:o},i),r(this.isDraggedOver))}},O.contextType=l.r,O.propTypes={library:o().oneOfType([o().instanceOf(y.Zu),o().instanceOf(b.Z)]).isRequired,children:o().func.isRequired,className:o().string},P=(x=O).prototype,I="isDraggedOver",A=[s.observable],C={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}},k={},Object.keys(C).forEach((function(e){k[e]=C[e]})),k.enumerable=!!k.enumerable,k.configurable=!!k.configurable,("value"in k||k.initializer)&&(k.writable=!0),k=A.slice().reverse().reduce((function(e,t){return t(P,I,e)||e}),k),void 0===k.initializer&&(Object.defineProperty(P,I,k),k=null),L=k,w=x))||w;var P,I,A,C,k},17632:(e,t,r)=>{"use strict";r.d(t,{Z:()=>M});var n,i,o=r(89526),a=r(2652),s=r.n(a),c=r(62631),l=r(50265),u=r(76485),d=r(46903),p=r(1149),h=r(64403),f=r.n(h),m=r(27611),g=r(84824),v=r(3303),y=r(33275),b=r(6535);let _=(0,c.Pi)(((i=class extends o.Component{render(){return o.createElement(v.Z,{item:this.props.library,allowBlankName:!1,allowLongDoubleClick:this.props.allowLongDoubleClick,placeholder:(0,g.Iu)("DL_EDIT_NAME_PLACEHOLDER"),inputClassName:"library-list-item-edit-name",onEditFinish:this.props.onEditFinish,onOverflowChange:this.props.onOverflowChange,isSelected:this.props.isSelected,isReadOnly:!(0,d.W)(this.props.library),isEditDisabled:this.props.isEditDisabled})}}).defaultProps={allowLongDoubleClick:!0,isSelected:!1},i.propTypes={allowLongDoubleClick:s().bool,library:s().instanceOf(y.Zu,b.Z).isRequired,onEditFinish:s().func,onOverflowChange:s().func,isSelected:s().bool,isEditDisabled:s().bool},n=i))||n;var E,w,x,L,O=r(51461),S=r(99767),T=r(2169),P=r(99409),I=r(24937),A=r(99386),C=r(21694),k=r(51702),D=r(85080),N=r(85834);function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},R.apply(this,arguments)}let M=(0,c.Pi)((L=class extends o.Component{constructor(...e){var t;super(...e),this.overlayState=new D.Z({ignoreScrollEvents:!0,ignoreFocus:!0}),(t=x)&&Object.defineProperty(this,"hasNameTooltip",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0}),this.componentDidMount=()=>{this.context.libraryManager.fetchLibraryCollaborations(this.props.library,A.Z.FETCH_COLLABORATIONS_THROTTLE)},this.finishRename=e=>{O.ZP.reportEvent("Library Operations","Library","click","rename",{content:{category:"click"===e?"List Click":"List Right Click"}},this.props.library),u.Z.setHeader&&u.Z.setHeader()},this.handleClick=e=>{const t=(0,T.j6)(e);t&&"INPUT"!==t.tagName&&t.blur();const r=this.context.viewState,n=r.getSearchText();if(r.isSearchMode()&&n&&A.Z.currentProduct.config.reportSearchSDMEvents){const e=this.sectionLibrary,t=e.roles[0]?e.roles[0].type:"library",i=r.librariesInViewOrder.indexOf(e)+1,o={"custom.library.type":(0,p.$2)(e.ownership),"custom.library.filter":t,"ui.search_keyword":n,"custom.ui.location":"editor-brands-libraries-tab","custom.search.rank":i,"custom.search.id":r.getSearchId()};A.Z.currentProduct.config.reportSearchSDMEvents(o)}if(!this.isRenamingMode&&this.props.allowNavigation&&this.props.onClick){const e=this.props.library.isDocumentAssets?"select-document-assets":"select-library";O.ZP.reportEvent("Navigation","Library Panel","click",e,null,this.props.library),r.setSearchText(""),r.setSearchType("library"),this.props.onClick(this.props.library)}P.Z.closeContextMenu()},this.handleOverflowChange=e=>{this.hasNameTooltip=u.Z.hasUXPScrollWidthBug||e},this.handleContextMenu=e=>{if(u.Z.setContextMenu&&!this.props.disableContextMenu){this.overlayState.toggleOverlay();const t=A.Z.currentProduct.config.disabledLibraryContextMenuActions||[];this.context.viewManager.stopRename(),e.stopPropagation();const r=this.context.libraryActions.getLibraryActions(this.props.library,!1,this.props.isRecent).filter((e=>!t.includes(e.id)));P.Z.openContextMenu(r,e)}}}get iconHeight(){return A.Z.currentProduct.config.libraryListItemIconSize||12}get sectionLibrary(){return this.props.isRecent?(this._recentLibrary=this._recentLibrary||new Proxy(this.props.library,{get:(e,t)=>"id"===t?`${e.id}${A.Z.RECENT_LIBRARY_ID_FLAG}`:e[t]}),this._recentLibrary):this.props.library}get isDocumentAssets(){return this.props.library.isDocumentAssets}get gatedUpdates(){return this.props.library.gatedUpdates||[]}get gatedUpdatesBadge(){if(!this.gatedUpdates.length)return;const e=this.gatedUpdates.length>=A.Z.MAX_ASSET_UPDATE_COUNT?"UPDATE_COUNT_MAX":"UPDATE_COUNT",t=this.gatedUpdates.length>=A.Z.MAX_ASSET_UPDATE_COUNT?A.Z.MAX_ASSET_UPDATE_COUNT:this.gatedUpdates.length;return o.createElement("div",{"data-test-id":"library-list-item-update-count",className:"library-list-item-update-count"},(0,g.Iu)(e,{number:t}))}get folder(){return this.props.library&&this.context.libraryManager.platformFolders.find((e=>this.props.library.parentDirectoryId===e.id))}get libraryName(){return o.createElement(_,{onOverflowChange:this.handleOverflowChange,library:this.sectionLibrary,allowLongDoubleClick:this.props.allowLongDoubleClick,onEditFinish:this.finishRename,isSelected:this.props.isSelected,isEditDisabled:this.props.disableEditableName})}get linkedLibraryIcon(){return this.isDocumentAssets?o.createElement(m.Z,{id:"DocumentAssets",height:this.iconHeight,className:f()({"notification-indicator":!!this.gatedUpdates.length})}):this.props.library.documentId?o.createElement(m.Z,{id:"LinkedLibrary",height:this.iconHeight}):void 0}get shareIcon(){if(!this.isDocumentAssets)return d.$_(this.props.library)?N.Z.get("enableProjects")?o.createElement(m.Z,{id:"Projects",height:this.iconHeight}):o.createElement(m.Z,{id:"Building",height:this.iconHeight}):d.R3(this.props.library)?o.createElement(m.Z,{id:"UserGroup",height:this.iconHeight}):d.D3(this.props.library)?o.createElement(m.Z,{id:"Globe",height:this.iconHeight}):void 0}get dataTestId(){return`library-list-item-${this.props.library.id}`}get isRenamingMode(){return this.context.viewManager.renamingItem&&this.context.viewManager.renamingItem.id===this.sectionLibrary.id}get invalidRename(){return this.isRenamingMode&&this.context.viewManager.renameStatus!==A.Z.RENAME_STATES.VALID}get shareLabel(){return d.rU(this.props.library)}get shareTooltip(){return d.rU(this.props.library,!0)}get shareStatus(){if(this.shareIcon||!this.props.sharingIconOnly)return o.createElement(S.Z,{className:"library-list-item-tooltip library-list-item-icon-container",content:this.shareTooltip,disable:!!this.isRenamingMode,placement:"right"},o.createElement("div",{"data-test-id":"library-list-item-sharing-container",className:"library-list-item-sharing-container"},o.createElement("div",{"data-test-id":"icon",className:"library-list-item-shared-icon"},this.shareIcon&&this.shareIcon),!this.props.sharingIconOnly&&o.createElement("span",{"data-test-id":"sharing",className:"library-list-item-sharing"},this.shareLabel)))}get isHighlighted(){return this.context.libraryManager.isLibraryRecentlyActive(this.props.library)}get createdDate(){return o.createElement(S.Z,{className:"library-list-item-created",content:(0,g.Iu)("DL_INFO_CREATED_DATE")},o.createElement("div",{"data-test-id":"created-date"},(0,g.zt)(new Date(this.props.library.created),!0)))}get contextMenuButton(){return o.createElement("div",{className:f()("library-list-item-context-menu",{open:this.overlayState.isOpen})},o.createElement(k.Z,{quiet:!0,"data-test-id":"mosaic-context-menu",onContextMenuClick:this.handleContextMenu}))}render(){return o.createElement(C.Z,{library:this.props.library},(e=>{const t=f()("library-list-item",{"is-dragged-over":e,"is-selected":this.props.isSelected,"is-renaming":!!this.isRenamingMode,"is-highlighted":this.isHighlighted,invalid:!!this.invalidRename});return o.createElement("div",R({"data-test-id":this.dataTestId,className:t,onClick:this.handleClick},u.Z.contextMenuEventListeners(this.handleContextMenu),{onKeyPress:e=>"Enter"===e.key?this.handleClick(e):null,tabIndex:"0",role:"option","aria-selected":this.context.libraryManager.currentLibrary===this.props.library,"aria-label":`${this.props.library.name}, ${this.shareLabel}`}),o.createElement(S.Z,{className:"library-list-item-tooltip library-list-item-name-container",content:this.props.library.name,disable:!this.hasNameTooltip||!!this.isRenamingMode,placement:"top"},this.linkedLibraryIcon&&o.createElement("div",{"data-test-id":"linked-library-icon",className:"library-list-item-linked-library-icon"},this.linkedLibraryIcon),o.createElement("div",{"data-test-id":"name",className:"library-list-item-name"},this.libraryName)),this.isDocumentAssets?this.gatedUpdatesBadge:this.shareStatus,this.props.showContextMenuButton&&this.contextMenuButton,this.props.showCreatedDate&&this.createdDate,this.props.children)}))}},L.contextType=I.r,L.propTypes={library:s().oneOfType([s().instanceOf(y.Zu),s().instanceOf(b.Z)]).isRequired,onClick:s().func,isSelected:s().bool,isRecent:s().bool,sharingIconOnly:s().bool,allowNavigation:s().bool,allowLongDoubleClick:s().bool,disableContextMenu:s().bool,disableEditableName:s().bool,showCreatedDate:s().bool,showContextMenuButton:s().bool,children:s().node},L.defaultProps={sharingIconOnly:!0,allowNavigation:!0,allowLongDoubleClick:!0,showContextMenuButton:!1},j=(w=L).prototype,F="hasNameTooltip",Z=[l.observable],B={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!!u.Z.hasUXPScrollWidthBug}},G={},Object.keys(B).forEach((function(e){G[e]=B[e]})),G.enumerable=!!G.enumerable,G.configurable=!!G.configurable,("value"in G||G.initializer)&&(G.writable=!0),G=Z.slice().reverse().reduce((function(e,t){return t(j,F,e)||e}),G),void 0===G.initializer&&(Object.defineProperty(j,F,G),G=null),x=G,E=w))||E;var j,F,Z,B,G},64027:(e,t,r)=>{"use strict";r.d(t,{Z:()=>q});var n,i,o=r(89526),a=r(2652),s=r.n(a),c=r(50265),l=r(62631),u=r(13169),d=r(53849),p=r(39808),h=r(99767),f=r(84824),m=r(99386),g=r(30131),v=r(27611),y=r(91854),b=r(99987),_=r(96195),E=r.n(_),w=r(68895),x=r(33275);let L=(0,l.Pi)(((i=class extends o.Component{constructor(...e){super(...e),this.handleDrop=e=>{y.Z.handleDrop(e)},this._dropTarget=new b.Z({}),this.handleDragOver=()=>{y.Z.setActiveDropTarget(this._dropTarget)}}get addDocContentOperation(){return m.Z.currentProduct.getAddDocContentOperation&&m.Z.currentProduct.getAddDocContentOperation()}get containerKey(){return`${this.props.library.isWritable?"write":"read"}-${this.props.library.documentType?"linked-library":"traditional-library"}`}get instructionContent(){const e=this.props.library.isWritable?"EDIT":"VIEW";return this.props.library.documentType?`DL_EMPTY_LIB_PANEL_INSTRUCTION_${e}_LINKED_LIB`:`DL_EMPTY_LIB_PANEL_INSTRUCTION_${e}_TRADITIONAL`}get instructionMessage(){return o.createElement("div",{className:"panel-empty-view-instructions","data-test-id":`instructions-${this.containerKey}`},(0,f.Iu)(this.instructionContent))}howToUseInBrowser(){(0,g.I0)()}get emptyIconName(){const e=this.props.library.isWritable?"Edit":"View";return this.props.library.documentType?`LinkedDocumentLibrary_Can${e}`:`TraditionalLibrary_Can${e}`}get emptyIcon(){const e={id:this.emptyIconName,height:110};return o.createElement(v.Z,{id:e.id,height:e.height})}get graphic(){return o.createElement("div",{className:"panel-empty-view-icon","data-test-id":"icon"},this.emptyIcon)}get headerContentWriteAccess(){return this.props.library.documentType?"DL_EMPTY_LIB_PANEL_HEADING":"DL_EMPTY_LIB_PANEL_HEADING_EDIT_TRADITIONAL"}get header(){const e=this.props.library.isWritable?this.headerContentWriteAccess:"DL_EMPTY_LIB_PANEL_HEADING";return o.createElement("div",{className:"panel-empty-view-header","data-test-id":`header-${this.containerKey}`},(0,f.Iu)(e))}get learnMoreButton(){if(!m.Z.currentProduct.config.disableEmptyStateHelpIcon)return o.createElement(h.Z,{content:(0,f.Iu)("DL_EMPTY_LIB_LEARN_MORE")},o.createElement("div",{className:"panel-empty-help-icon","data-test-id":"help",onClick:this.howToUseInBrowser},o.createElement(v.Z,{id:"Question",height:18})))}get addDocContentButton(){if(this.addDocContentOperation)return o.createElement(h.Z,{content:(0,f.Iu)(this.addDocContentOperation.buttonToolTip),"data-test-id":"add-doc-content-tooltip"},o.createElement("div",{className:"panel-empty-add-doc-content","data-test-id":"add-doc-content",onClick:this.addDocContentOperation.apply},o.createElement("span",{className:"panel-empty-add-doc-content-text","data-test-id":"add-doc-content-text"},(0,f.Iu)(this.addDocContentOperation.buttonName))))}get openSourceFilelink(){return o.createElement("div",{className:"panel-empty-view-link",onClick:()=>(0,w.Fb)(this.props.library)},(0,f.Iu)("DL_EMPTY_LIB_LINKED_LIBRARY"))}get openSourceFileButton(){return o.createElement(E(),{className:"panel-empty-add-open-source-file-button",label:(0,f.Iu)("DL_EMPTY_LIB_LINKED_LIBRARY"),onClick:()=>(0,w.Fb)(this.props.library),variant:"action",icon:o.createElement(v.Z,{width:12,height:12,id:"OpenIn",className:"panel-empty-button-icon",header:(0,f.Iu)("DL_EMPTY_LIB_LINKED_LIBRARY")})})}get openSourceFile(){if(this.props.library.documentType&&this.props.library.isWritable)return m.Z.currentProduct.addOpenSourceFileButton?this.openSourceFileButton:this.openSourceFilelink}get content(){if(this.props.library&&!this.props.library.isDeletedFromServer)return o.createElement("div",{className:"panel-empty-view-inner-container","data-test-id":`content-${this.containerKey}}`},this.graphic,this.header,this.instructionMessage,this.openSourceFile)}render(){return o.createElement("div",{className:"panel-empty-view-container","data-test-id":"emptyLibraryView",id:"emptyPanelContainer",onDrop:this.handleDrop,onDragOver:this.handleDragOver},this.content)}}).defaultProps={library:null},i.propTypes={library:s().oneOfType([s().instanceOf(x.Zu)])},n=i))||n;var O,S,T,P,I,A=r(64403),C=r.n(A),k=r(26964),D=r(24937),N=r(4784),R=r(26981),M=r(76485),j=r(51461);let F=(O=c.observable.ref,(0,l.Pi)((I=class extends o.Component{constructor(...e){var t;super(...e),(t=P)&&Object.defineProperty(this,"_dropData",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0}),this._dragTargets=[],this.onMutation=e=>{e.forEach((e=>{e.removedNodes.forEach((e=>{this._dragTargets.forEach(((t,r)=>{(t===e||e.contains(t))&&this._dragTargets.splice(r,1)}))}))}))},this.handleDragOver=e=>{M.Z.isWindowsOS()&&e.dataTransfer.types.includes("com.adobe.cep.dnd.pasteboardtype")&&(e.dataTransfer.dropEffect="copy"),(0,R.gc)(e.dataTransfer.types)&&(e.dataTransfer.dropEffect=M.Z.supportsDropFiles&&!this.isDisabled?"copy":"none"),e.preventDefault()},this.handleDragEnter=e=>{if(e.preventDefault(),m.Z.currentProduct.config.disableLibraryDragLayer)return;if(this._dragTargets.push(e.target),this._dragTargets.length>1)return;const t=this.context.libraryManager.currentLibrary;if(!t||!t.isDeletedFromServer)if((0,R.gc)(e.dataTransfer.types))M.Z.supportsDropFiles&&this._doFilesDragEnter(e);else{const t=(({metaKey:e,altKey:t,ctrlKey:r,shiftKey:n})=>({metaKey:e,altKey:t,ctrlKey:r,shiftKey:n}))(e);this.context.viewState.getDraggingData().then((e=>this._doLayersDragEnter(e,t))).catch((e=>k.Z.log(e)))}},this._doFilesDragEnter=()=>{this.context.viewState.resetMode(),this.context.viewState.isLibraryWritable(this.context.libraryManager.currentLibrary)?N.Z.canAddElements(this.context.libraryManager.currentLibrary)?this._setDropData({icon:"UploadImage",message:(0,f.Iu)("DL_DESIGN_LIBRARY_NATIVE_DROP")}):this._showLibraryFullError():this.showReadOnlyAlert()},this._doLayersDragEnter=(e,t)=>{if(this.context.viewState.resetMode(),!this.context.viewState.isLibraryWritable(this.context.libraryManager.currentLibrary))return void this.showReadOnlyAlert();if(!N.Z.canAddElements(this.context.libraryManager.currentLibrary))return void this._showLibraryFullError();let r=m.Z.currentProduct.customDropMessage&&m.Z.currentProduct.customDropMessage(e,t);e.feedback&&(r=e.feedback);const n=e.assetList&&e.assetList.length>0,i=(t=[])=>{this._setDropData({data:e,icon:e.linked?"AddLink":"AddCopy",message:r,layers:t,valid:n})};n?(0,R._C)(e,this.context.libraryManager.currentLibrary).then(i):i()},this.handleDragLeave=()=>{this._dragTargets.pop(),this._dragTargets.length||(this._dropData&&"UploadImage"===this._dropData.icon&&j.ZP.reportEvent("Add Assets","Element","click","add-cancel",{content:{category:"Bulk Upload"}}),this._dropData=void 0,y.Z.setActiveDropTarget())},this.handleDrop=()=>{this._dropData=void 0,this._dragTargets=[]},this.setDragLayerRef=e=>{this.dragLayerNode=e}}componentDidMount(){const e=M.Z.MutationObserver||MutationObserver;this.observer=new e(this.onMutation),this.observer.observe(this.dragLayerNode,{childList:!0,subtree:!0})}componentWillUnmount(){this.observer.disconnect()}get message(){return this._dropData.message}get icon(){return this._dropData.icon}get isValid(){return this._dropData.valid}get layers(){return this._dropData.layers}get isDisabled(){return!this.context.viewState.isLibraryWritable(this.context.libraryManager.currentLibrary)||!N.Z.canAddElements(this.context.libraryManager.currentLibrary)}_setDropData(e){this._dropData=e,y.Z.handleDragStart("element",[e],null)}_showLibraryFullError(){this._dropData={disabled:!0,icon:"Alert",message:(0,f.Iu)("DL_DESIGN_LIBRARY_HAS_LIMIT")}}showReadOnlyAlert(){this._dropData={disabled:!0,icon:"Alert",message:(0,f.Iu)("DL_DESIGN_LIBRARY_READ_ONLY")}}get layersNode(){if(this.isValid&&this.layers.length){const e=this.layers.map(((e,t)=>o.createElement("div",{key:t.toString()},e)));return o.createElement("div",{"data-test-id":"layers",className:"panel-contents-drop-area-text"},e)}}get dropArea(){const e=C()("panel-contents-drop-area-icon",{"panel-contents-drop-area-icon":this.isValid,"panel-contents-drop-area-smaller-icon":!this.isValid});return o.createElement("div",{className:"panel-contents-drop-area-container"},o.createElement("div",{"data-test-id":"icon",className:e},o.createElement(v.Z,{id:this.icon,height:28})),this.layersNode,o.createElement("div",{"data-test-id":"message",className:"panel-contents-drop-area-subtext"},this.message))}get showDropMessage(){const e=this.context.libraryManager.currentLibrary,t="group"===this.context.viewState.viewByState&&e&&(e.getGroups().length>0||e.elements.length>0);return this._dropData&&(this._dropData.disabled||!t)}get dragLayer(){return this.showDropMessage&&o.createElement("div",{"data-test-id":"drag-layer",className:C()("panel-contents-drop-area",{"panel-contents-drop-area-disabled":this._dropData.disabled}),style:{top:this.context.viewState.panelHeaderHeight}},this.dropArea)}render(){return o.createElement("div",{ref:this.setDragLayerRef,"data-test-id":"library-contents-container",className:"panel-contents",onDrop:this.handleDrop,onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDragOver:this.handleDragOver},this.props.children,this.dragLayer)}},I.contextType=D.r,I.propTypes={children:s().node},Z=(T=I).prototype,B="_dropData",G=[O],U={configurable:!0,enumerable:!0,writable:!0,initializer:null},H={},Object.keys(U).forEach((function(e){H[e]=U[e]})),H.enumerable=!!H.enumerable,H.configurable=!!H.configurable,("value"in H||H.initializer)&&(H.writable=!0),H=G.slice().reverse().reduce((function(e,t){return t(Z,B,e)||e}),H),void 0===H.initializer&&(Object.defineProperty(Z,B,H),H=null),P=H,S=T))||S);var Z,B,G,U,H,z=r(99277),V=r(89526);function Y(){return V.createElement("div",{className:"panel-relink-result-none-container","data-test-id":"no-relink-result"},V.createElement("div",{className:"panel-search-info","data-test-id":"no-relink-result-message"},(0,f.Iu)("DL_RELINK_NONE_AVAILABLE")))}var W,K,$=r(10441);let q=(0,l.Pi)(((K=class extends o.Component{constructor(...e){super(...e),this.getNormalModeView=e=>this.getLibraryContentsView(e.elements,"group"===this.viewState.viewByState?e.getGroups():null),this.isSelectAllKeystroke=e=>{const t=M.Z.isWindowsOS(),r="a"===e.key||"A"===e.key;return t?r&&e.ctrlKey:r&&(e.metaKey||e.ctrlKey)},this.handleKeydownEvent=e=>{var t;const r=this.context.viewState.getState().enableMultiSelect,n=d.Z.selection.length===(null===(t=this.library)||void 0===t?void 0:t.elements.length);var i;r&&!n&&this.isSelectAllKeystroke(e)?(d.Z.setSelection(null===(i=this.library)||void 0===i?void 0:i.elements),e.preventDefault()):r&&"Escape"===e.key&&d.Z.clearSelection()}}componentDidMount(){this.disposer=(0,c.reaction)((()=>this.searchResults),(()=>{this.viewState.librariesSearchState.filterCount&&this.viewState.librariesSearchState.clearUnusedTypeOptions()})),this.context.viewState.getState().enableMultiSelect&&document.addEventListener("keydown",this.handleKeydownEvent)}componentWillUnmount(){var e;null===(e=this.disposer)||void 0===e||e.call(this),document.removeEventListener("keydown",this.handleKeydownEvent)}get library(){return this.props.library||this.libraryManager.currentLibrary}get viewState(){return this.context.viewState}get libraryManager(){return this.context.libraryManager}get searchResults(){return this.viewState.librariesSearchState.searchResults}get relinkResults(){const e=this.viewState.getState().elementTypeFilter;return this.libraryManager.currentLibrary.elements.filter((t=>e.includes(t.type)))}getLibraryContentsView(e,t){const r=M.Z.AutoSizer||u.Z,n=M.Z.LibraryContentsView||p.Z;return o.createElement(r,null,(({width:r,height:i})=>o.createElement(n,{width:r,height:i,groups:t,elements:e,library:this.library})))}shouldDoSearch(){return this.viewState.isSearchMode()&&!(0,$.fs)(this.viewState.getSearchText())}get deletedFromServer(){const e=this.library;if(!e||!e.isDeletedFromServer)return null;const t="incoming"===e.collaboration?(0,f.Iu)("DL_UNSHARED"):(0,f.Iu)("DL_DELETED_FROM_SERVER");return o.createElement("div",{className:"panel-deleted-message-container","data-test-id":"panel-deleted-message-container",style:{top:this.viewState.panelHeaderHeight}},o.createElement("div",{"data-test-id":"panel-deleted-on-server",className:"panel-deleted-message"},o.createElement("div",{className:"panel-deleted-message-inner"},o.createElement("div",{className:"panel-deleted-message-icon"},o.createElement(v.Z,{id:"CreativeCloudAlert",height:50})),o.createElement("div",{className:"panel-deleted-message-description"},t)),o.createElement("div",{className:"panel-deleted-message-options"},o.createElement("a",{"data-test-id":"delete-library",className:"panel-deleted-message-link",onClick:()=>this.libraryManager.deleteLibrary(e)},(0,f.Iu)("DL_REMOVE_FROM_LIST")))))}get contents(){var e,t,r,n,i;if(this.viewState.isRemovedElementsMode())return this.getLibraryContentsView(null===(i=this.library)||void 0===i?void 0:i.removedElements);if(this.shouldDoSearch()){const e=this.searchResults;if(0===e.length&&!this.viewState.searchState.isLoading)return j.ZP.reportSearchEvent("Search","Search","render","no-results",{ui:{filter:this.viewState.getSearchType()}}),o.createElement(z.Z,null);j.ZP.reportSearchEvent("Search","Search","render","results",{event:{value:e.length},ui:{filter:this.viewState.getSearchType()}});const t=this.viewState.isDocumentSearchMode()?this.viewState.librariesSearchState.searchResultsGroups:null;return this.getLibraryContentsView(e,t)}if(this.viewState.searchState.filterCount>0){const e=this.searchResults,t="group"===this.viewState.viewByState?this.viewState.librariesSearchState.searchResultsGroups:null;return this.getLibraryContentsView(e,t)}const a=!(null!==(e=this.library)&&void 0!==e&&e.areElementsLoaded),s=(null===(t=this.library)||void 0===t?void 0:t.elements.length)>0,c=(null===(r=this.library)||void 0===r?void 0:r.getGroups().length)>0&&"group"===this.viewState.viewByState&&!this.viewState.isRelinkLayerMode(),l=!(null===(n=this.library)||void 0===n||!n.isWritable)&&"group"!==this.viewState.viewByState&&m.Z.currentProduct.config.hideEmptyLibraryTypeView;if(!(s||c||a||l)){const e=m.Z.currentProduct.config.emptyLibraryCustomComponent||L;return o.createElement(e,{library:this.library})}return this.viewState.isRelinkLayerMode()?this.relinkResults.length?this.getLibraryContentsView(this.relinkResults):o.createElement(Y,null):this.getNormalModeView(this.library)}get contentsHeader(){if(!this.viewState.isDefaultMode()||!this.library)return null;const e=m.Z.currentProduct.config.AdditionalLibraryHeaderView;return e&&o.createElement(e,{library:this.library})}render(){return o.createElement(F,null,this.deletedFromServer,o.createElement("div",{"data-test-id":"panel-library-contents-wrapper",className:"panel-library-contents-wrapper"},this.contentsHeader,o.createElement("div",{"data-test-id":"panel-library-contents",className:"panel-library-contents"},this.contents)))}}).propTypes={library:a.any},K.contextType=D.r,W=K))||W},82038:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n,i,o=r(89526),a=r(64403),s=r.n(a),c=r(91489),l=r(27611),u=r(24937),d=r(84824),p=r(62631),h=r(99767);let f=(0,p.Pi)(((i=class extends o.Component{get iconHeight(){switch(this.props.iconSize){case"S":default:return 18;case"M":return 22;case"L":case"XL":return 32}}_getDataTestId(e){return this.props.source?`panel-${this.props.source}-menu-item-${e}`:"text"===e?void 0:`menu-item-${e}`}_getIcon(e){if(!e.icon)return null;const t=s()("Pvf",{PYB:e.destructive});return o.createElement(l.Z,{id:e.icon,slot:"icon",height:this.iconHeight,className:t})}render(){return this.props.menuData.map((e=>{const t=e.key||e.id;if(e.divider)return this.props.hideDividers?null:o.createElement(c.R,{key:t});if(e.isTitle)return o.createElement(c.FD,{key:t},e.label);const r=o.createElement(c.sN,{key:t,id:e.id,icon:this._getIcon(e),onClick:e.onClick,disabled:!1===e.enableMenu,description:e.description,selected:e.checked,"data-test-id":this._getDataTestId(t)},o.createElement("span",{"data-test-id":this._getDataTestId("text"),className:s()({PYB:e.destructive})},(0,d.Iu)(e.label)));return e.tooltip?o.createElement(h.Z,{placement:"right",content:e.tooltip},r):r}))}}).contextType=u.r,i.defaultProps={iconSize:"S"},n=i))||n},33054:(e,t,r)=>{"use strict";r.d(t,{Z:()=>P});var n,i,o,a,s,c,l,u,d,p=r(89526),h=r(2652),f=r.n(h),m=r(50265),g=r(62631),v=r(84824),y=r(76485),b=r(64403),_=r.n(b),E=r(27611),w=r(99386);function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function L(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){O(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function T(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let P=(n=m.observable.ref,i=m.observable.ref,o=m.observable.ref,(0,g.Pi)(((d=class extends p.Component{constructor(...e){super(...e),S(this,"activeSubMenu",c,this),S(this,"_parentElement",l,this),S(this,"menuItemsRef",u,this),this.setMenuItemsRef=e=>{this.menuItemsRef.push(e)},this.onClickBack=()=>{this.activeSubMenu=this.activeSubMenu.slice(1)},this._getMenuIndex=(e,t)=>e.menuId?e.menuId.replace("MENU_",""):t,this._getItemIcon=(e,t)=>{if(e.hideIcon)return;t=this._getMenuIndex(e,t);const r=e.icon||e.checked&&"Checkmark",n=w.Z.currentProduct.config.defaultMenuIconHeight||this.props.iconHeight,i=e.style?L(L({},e.style),{},{height:n-2,width:n-2}):{},o=_()("panel-menu-icon",{warning:e.destructive});return p.createElement("div",{"data-test-id":`menu-item-${t}-icon`,className:o,style:i},r&&p.createElement(E.Z,{id:r,height:n}))},this.handleKeyDown=(e,t,r)=>{switch(t.preventDefault(),t.key){case"Enter":return this.onClickMenuItem(e,t);case"Tab":t.shiftKey&&r>0?this.menuItemsRef[r-1].focus():!t.shiftKey&&r<this.menuItemsRef.length&&this.menuItemsRef[r+1].focus();break;case"ArrowDown":r<this.menuItemsRef.length&&this.menuItemsRef[r+1].focus();break;case"ArrowUp":r>0&&this.menuItemsRef[r-1].focus()}},this._getMenuItem=(e,t)=>{const r=this._getMenuIndex(e,t),n=_()("panel-group-menu-item",{disabled:!1===e.enableMenu}),i=_()("panel-group-menu-label",{"panel-menu-label-selected":e.checked,warning:e.destructive});return p.createElement("div",{ref:this.setMenuItemsRef,key:r,className:n,"data-test-id":`menu-item-${r}`,onClick:t=>this.onClickMenuItem(e,t),tabIndex:0,onKeyDown:r=>this.handleKeyDown(e,r,t)},this._getItemIcon(e,r),p.createElement("div",{"data-test-id":`menu-item-${r}-label`,className:i},(0,v.Iu)(e.label,e.translationData),e.description&&p.createElement("div",{"data-test-id":`menu-item-${r}-description`,className:"panel-group-menu-item-description"},e.description)),e.menuItems&&p.createElement(E.Z,{id:"ChevronRightSmall",height:8}))},this._getMenuItems=()=>{let e=this.menuItems.filter((e=>!1!==e.divider)),t=0,r=0;return e=e.map((e=>!0===e.divider?p.createElement("div",{key:"divider_"+r++,className:"panel-group-menu-subdivider"}):this._getMenuItem(e,t++))),e},this.setScrollableElement=e=>this._scrollableElement=e,this.onMenuWheel=e=>{const t=this._scrollableElement.scrollTop<=0,r=this._scrollableElement.clientHeight+this._scrollableElement.scrollTop>=this._scrollableElement.scrollHeight;(e.deltaY<0&&t||e.deltaY>0&&r)&&(e.preventDefault(),e.stopPropagation())},this.handleScroll=e=>{e.stopPropagation()}}componentDidMount(){this.menuItemsRef[0]&&this.menuItemsRef[0].focus()}componentDidUpdate(e){e.menuItems!==this.props.menuItems&&(this.activeSubMenu=[{menuItems:this.props.menuItems}])}componentWillUnmount(){var e;null!==(e=this.props.triggerRef)&&void 0!==e&&e.buttonRef&&this.props.triggerRef.buttonRef.focus()}get headerLabel(){return this.activeSubMenu[0].label}get menuItems(){return this.activeSubMenu[0].menuItems}onClickMenuItem(e,t){e.menuItems?(this.mainMenuContainerHeight=this.mainMenuContainerHeight||this._scrollableElement.offsetHeight,this.activeSubMenu=[e].concat(this.activeSubMenu)):!1!==e.enableMenu&&(this.props.close&&this.props.close(t),e.onClick())}get header(){if(this.headerLabel)return p.createElement("div",{style:{maxWidth:this.maxWidth}},p.createElement("div",{className:"panel-group-menu-item","data-test-id":"menu-item-header",onClick:this.onClickBack},p.createElement("div",{className:"panel-menu-icon"},p.createElement(E.Z,{id:"ChevronLeftSmall",height:8})),p.createElement("div",{"data-test-id":"menu-item-header-label",className:"panel-group-menu-label"},(0,v.Iu)(this.headerLabel))),p.createElement("div",{className:"panel-group-menu-divider"}))}get maxWidth(){if(this.props.maxWidth)return"100%";let e=w.Z.MAX_CONTEXT_MENU_WIDTH;return this.props.style&&(e=this.props.style.left?y.Z.getPanelWidth()-this.props.style.left:y.Z.getPanelWidth()-this.props.style.right,e=!Number.isNaN(e)&&e||0),Math.max(e,w.Z.MAX_CONTEXT_MENU_WIDTH)}get menuContainerStyle(){const e=y.Z.menuItemHeight||24,t=this.headerLabel?e+3:0;if(this.props.preserveMainMenuHeightForSubMenus&&this.mainMenuContainerHeight)return{height:this.mainMenuContainerHeight-t,maxWidth:this.maxWidth};const r=this.props.footerMenu?0:Math.round(this.props.clientY);let n=0;this.props.minMenuItemsVisible>0&&(n=e*this.props.minMenuItemsVisible);const i=e*this.props.maxMenuItemsVisible+18;let o=i;if(!this.props.canShowOutsidePanel){const n=Math.min(y.Z.getPanelHeight()-r-t-25,i);o=Math.floor(n/e)*e+3}return n>o&&(o=n),{minHeight:n,maxHeight:o,maxWidth:this.maxWidth}}render(){const e=_()("panel-group-menu",this.props.className),t=L({},this.props.style);return this.props.maxWidth&&(t.maxWidth=this.props.maxWidth),p.createElement("div",{onWheel:this.onMenuWheel,className:e,style:t,"data-test-id":"menu-container"},this.header,p.createElement("div",{ref:this.setScrollableElement,"data-test-id":"menu-container-scrollable",className:"panel-group-menu-scroll-container",onScroll:this.handleScroll,style:this.menuContainerStyle},this._getMenuItems()))}}).defaultProps={maxMenuItemsVisible:10,minMenuItemsVisible:0,iconHeight:13,footerMenu:!1,clientY:0,preserveMainMenuHeightForSubMenus:!1,canShowOutsidePanel:!1,triggerRef:void 0},d.propTypes={menuItems:f().array.isRequired,maxMenuItemsVisible:f().number,minMenuItemsVisible:f().number,maxWidth:f().oneOfType([f().string,f().number]),className:f().string,style:f().object,close:f().func,iconHeight:f().number,footerMenu:f().bool,clientY:f().number,preserveMainMenuHeightForSubMenus:f().bool,canShowOutsidePanel:f().bool,triggerRef:f().oneOfType([f().func,f().shape({current:f().instanceOf(Element)})])},c=T((s=d).prototype,"activeSubMenu",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[{menuItems:this.props.menuItems}]}}),l=T(s.prototype,"_parentElement",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),u=T(s.prototype,"menuItemsRef",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),T(s.prototype,"headerLabel",[m.computed],Object.getOwnPropertyDescriptor(s.prototype,"headerLabel"),s.prototype),T(s.prototype,"menuItems",[m.computed],Object.getOwnPropertyDescriptor(s.prototype,"menuItems"),s.prototype),a=s))||a)},39611:(e,t,r)=>{"use strict";r.d(t,{Z:()=>S});var n=r(89526),i=r(2652),o=r.n(i),a=r(50265),s=r(62631),c=r(99386),l=r(9276),u=r(33372),d=r(51993),p=r(90885),h=r(31408);const f={mosaicView:"QEU",renditionWrapper:"lQM",topLeft:"wUe",topRight:"Azs",bottomLeft:"qvX",bottomRight:"s74",emptyState:"xEN",fullSizeRenditionWrapper:"Lai",list:"mOL"};var m=r(33275),g=r(16203);class v extends n.Component{getEmptyElementView(){return n.createElement("div",{className:f.emptyChildTile,"data-test-id":"mosaic-view-empty-tile"})}render(){const e=this.props.library.getElementById(this.props.elementId);return e?e.type===c.Z.COLOR_ELEMENT_TYPE?n.createElement(l.Z,{element:e,viewMode:"thumbnail-large",disableInteraction:!0}):e.type===c.Z.COLOR_THEME_ELEMENT_TYPE?n.createElement(u.Z,{element:e,viewMode:"thumbnail-large",isMosaicView:!0,disableInteraction:!0}):e.type===c.Z.GRADIENT_ELEMENT_TYPE?n.createElement(d.Z,{element:e,viewMode:"thumbnail-large",disableInteraction:!0}):(0,g.Hb)(e)?n.createElement(p.Z,{element:e,viewMode:"thumbnail-large",mosaicTileSize:this.props.mosaicTileSize,disableInteraction:!0}):n.createElement(h.Z,{element:e,className:f.mosaicViewThumbnail,viewMode:"thumbnail-large",disableInteraction:!0}):this.getEmptyElementView()}}v.propTypes={library:o().instanceOf(m.Zu).isRequired,elementId:o().string,mosaicTileSize:o().oneOf(["quarter","full"])};var y,b,_,E=r(64403),w=r.n(E),x=r(24937),L=r(27611);const O=[f.topLeft,f.topRight,f.bottomLeft,f.bottomRight];let S=(0,s.Pi)(((_=class extends n.Component{constructor(...e){super(...e),this.getMosaicTile=(e,t)=>{const r=w()(f.renditionWrapper,O[t]);return n.createElement("div",{key:e||t,className:r,"data-test-id":"mosaic-view-rendition-tile"},n.createElement(v,{elementId:e,library:this.props.library,mosaicTileSize:"quarter"}))},this.getFullSizeMosaicTile=e=>n.createElement("div",{className:f.fullSizeRenditionWrapper,"data-test-id":"mosaic-view-rendition-fullsize"},n.createElement(v,{elementId:e,library:this.props.library,mosaicTileSize:"full"}))}render(){return n.createElement("div",{className:w()(f.mosaicView,f[this.props.viewMode],this.props.className),"data-test-id":"mosaic-view"},this.mosaicTiles)}get mosaicTiles(){if(!this.props.renditionGrid||!this.props.renditionGrid.main)return n.createElement("div",{className:f.emptyState,"data-test-id":"mosaic-view-empty-state"},n.createElement(L.Z,{id:"CCLibrary",height:32}));const e=[this.props.renditionGrid.main,...this.props.renditionGrid.tiles].map((e=>e.id)).filter((e=>!!e));if(e.length<4)return this.getFullSizeMosaicTile(this.props.renditionGrid.main.id);const t=[];for(let r=0;r<4;r++)t.push(this.getMosaicTile(e[r],r));return t}}).contextType=x.r,_.defaultProps={viewMode:"grid"},_.propTypes={viewMode:o().oneOf(["list","grid"]),renditionGrid:o().object,library:o().instanceOf(m.Zu).isRequired,className:o().string},T=(b=_).prototype,P="mosaicTiles",I=[a.computed],A=Object.getOwnPropertyDescriptor(b.prototype,"mosaicTiles"),C=b.prototype,k={},Object.keys(A).forEach((function(e){k[e]=A[e]})),k.enumerable=!!k.enumerable,k.configurable=!!k.configurable,("value"in k||k.initializer)&&(k.writable=!0),k=I.slice().reverse().reduce((function(e,t){return t(T,P,e)||e}),k),C&&void 0!==k.initializer&&(k.value=k.initializer?k.initializer.call(C):void 0,k.initializer=void 0),void 0===k.initializer&&(Object.defineProperty(T,P,k),k=null),y=b))||y;var T,P,I,A,C,k},79012:(e,t,r)=>{"use strict";r.d(t,{Z:()=>I});var n,i,o,a=r(89526),s=r(62631),c=r(50265),l=r(84824),u=r(5837),d=r(82606),p=r(37642),h=r(79799),f=r(30131),m=r(27611),g=r(76485),v=r(64403),y=r.n(v),b=r(98405),_=r(5849),E=r(24937),w=r(2652),x=r.n(w),L=r(52844),O=r(51461);function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?T(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function P(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let I=(0,s.Pi)(((o=class extends a.Component{constructor(...e){super(...e),this.reconnectToProcess=()=>{h.Z.reconnectToProcess()},this.showAddLibraryDialog=()=>{this.context.dialogManager.openDialog("createLibrary")},this.requestSync=()=>{this.context.libraryManager.sync()},this.enableSyncing=()=>{this.context.libraryManager.enableSyncing()},this.openNetworkErrorURL=()=>{f.Ds(this.syncStatus.errorType)}}get ERROR_BUTTONS(){return{excludeHostnameOSX:[this.reconnectToProcess,"DL_NO_LIBS_RETRY"],excludeHostnameWin:[this.reconnectToProcess,"DL_NO_LIBS_RETRY"],excludeHostnameWin10:[this.reconnectToProcess,"DL_NO_LIBS_RETRY"],verifyDnsSettings:[this.reconnectToProcess,"DL_NO_LIBS_RETRY"],verifySocketConnection:[this.reconnectToProcess,"DL_NO_LIBS_RETRY"],syncDisabled:[this.enableSyncing,"DL_LAUNCH_CC_APP_ENABLE_BUTTON"]}}iconWrapper(e){return a.createElement("div",{"data-test-id":"no-libraries-icon",className:"panel-nolibs-alert-icon"},a.createElement(m.Z,{id:e,height:48}))}get syncStatus(){return this.context.libraryManager.syncStatus}get isDownloadingLibraries(){var e;return!(null===(e=this.context.libraryManager.getNewLibrarySyncProgress())||void 0===e||!e.length)}get icon(){return"syncing"===this.syncStatus.state?this.iconWrapper("CreativeCloud"):"syncDisabled"===this.syncStatus.errorType||"loggedOut"===this.syncStatus.errorType?this.iconWrapper("CreativeCloudAlert"):this.iconWrapper("CreativeCloudError")}get retryMessage(){if(p.Cu(this.syncStatus)&&this.syncStatus.retryDuration)return a.createElement("div",{className:"panel-nolibs-message"},(0,l.Iu)("DL_SYNC_RETRY",{duration:this.syncStatus.retryDuration}))}get message(){const e="syncing"===this.syncStatus.state?(0,l.Iu)("DL_NO_LIBS_SYNCING"):p.sB(this.syncStatus);return a.createElement("span",{"data-test-id":"no-libraries-message"},a.createElement(u.Z,{className:"panel-nolibs-message",html:e}),this.retryMessage)}get title(){if("error"===this.syncStatus.state)return a.createElement("h1",{"data-test-id":"no-libraries-title",className:"panel-nolibs-title"},(0,l.Iu)("DL_NO_LIBS_PAGE_NOT_AVAILABLE"))}get syncingProgressBar(){if("syncing"===this.syncStatus.state){const e=g.Z.ProgressBar||d.Z;return a.createElement("div",{"data-test-id":"syncing-progress-bar",className:"panel-nolibs-progress-bar"},a.createElement(e,{progress:this.syncStatus.syncProgress,showMetaData:!1}))}}get link(){if("error"!==this.syncStatus.state)return null;const e=S({serviceError:[()=>f.Ds(),"DL_NO_LIBS_MORE_INFO"],noService:[f.Gh,"DL_NO_LIBS_GET_IT"],excludeHostnameOSX:[this.openNetworkErrorURL,"DL_TROUBLESHOOT_NETWORK_SETTINGS"],excludeHostnameWin:[this.openNetworkErrorURL,"DL_TROUBLESHOOT_NETWORK_SETTINGS"],excludeHostnameWin10:[this.openNetworkErrorURL,"DL_TROUBLESHOOT_NETWORK_SETTINGS"],verifyDnsSettings:[this.openNetworkErrorURL,"DL_TROUBLESHOOT_NETWORK_SETTINGS"],updateServer:[f.aF,"DL_NO_LIBS_GET_IT"],updateClient:[f.aF,"DL_NO_LIBS_GET_IT"]}[this.syncStatus.errorType]||[],2),t=e[0],r=e[1];return t?a.createElement("a",{"data-test-id":"no-libraries-link",className:"panel-nolibs-link",tabIndex:"0",onClick:t,onKeyPress:e=>"Enter"===e.key?t(e):null},(0,l.Iu)(r)):void 0}get newLibraryButton(){return a.createElement(L.Z,{"data-test-id":"new-library-button",className:"panel-nolibs-create-button",variant:"cta",onClick:this.showAddLibraryDialog},(0,l.Iu)("DL_NO_LIBS_CREATE_LIBRARY_BUTTON_TEXT"))}get retrySyncButton(){if("noAccess"!==this.syncStatus.errorType)return a.createElement(L.Z,{"data-test-id":"retry-button",className:"panel-nolibs-retry-button",disabled:Boolean(this.syncStatus.retryDuration),onClick:this.requestSync},(0,l.Iu)("DL_NO_LIBS_RETRY"))}get button(){if("syncing"===this.syncStatus.state)return this.newLibraryButton;if(p.Cu(this.syncStatus))return a.createElement(a.Fragment,null,a.createElement("span",null,this.retrySyncButton),a.createElement("span",null,this.newLibraryButton));const e=S(this.ERROR_BUTTONS[this.syncStatus.errorType]||[],2),t=e[0],r=e[1];return t?a.createElement(L.Z,{"data-test-id":"no-libraries-button",variant:"secondary",className:"panel-nolibs-retry-button",onClick:t},(0,l.Iu)(r)):void 0}get contents(){if(window.navigator.userAgent.includes("CreativeCloud")&&!this.context.libraryManager.areLibrariesLoaded&&("error"!==this.syncStatus.state||"error"===this.syncStatus.state&&"serviceError"===this.syncStatus.errorType))return a.createElement("div",{"data-test-id":"panel-nolibs-load-spinner",className:"panel-nolibs-middle"},a.createElement(_.Z,{size:"large",indeterminate:!0}));if(["ok","syncing","error"].includes(this.syncStatus.state)){if("ok"===this.syncStatus.state||"syncing"===this.syncStatus.state&&!this.isDownloadingLibraries)return a.createElement(b.Z,null);const e=y()("panel-nolibs-middle",`panel-nolibs-${this.syncStatus.state}`);return a.createElement("div",{className:e,"data-test-id":"no-libraries-content"},this.icon,this.title,this.message,this.syncingProgressBar,this.link,this.button)}}componentDidMount(){O.ZP.reportEvent("Navigation","Library Panel","render","no-libraries-view")}render(){return a.createElement("div",{className:this.props.className,"data-test-id":"no-libraries-view"},this.contents)}}).contextType=E.r,o.propTypes={className:x().string},P((i=o).prototype,"syncStatus",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"syncStatus"),i.prototype),P(i.prototype,"isDownloadingLibraries",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"isDownloadingLibraries"),i.prototype),P(i.prototype,"icon",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"icon"),i.prototype),P(i.prototype,"retryMessage",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"retryMessage"),i.prototype),P(i.prototype,"message",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"message"),i.prototype),P(i.prototype,"title",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"title"),i.prototype),P(i.prototype,"syncingProgressBar",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"syncingProgressBar"),i.prototype),P(i.prototype,"link",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"link"),i.prototype),P(i.prototype,"newLibraryButton",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"newLibraryButton"),i.prototype),P(i.prototype,"retrySyncButton",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"retrySyncButton"),i.prototype),P(i.prototype,"button",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"button"),i.prototype),P(i.prototype,"contents",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"contents"),i.prototype),n=i))||n},99277:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n,i,o=r(89526),a=r(84824),s=r(59299),c=r(27611),l=r(62631),u=r(54048),d=r(24937),p=r(99386);let h=(0,l.Pi)(((i=class extends o.Component{constructor(...e){super(...e),this.clearFilters=()=>{this.context.viewState.searchState.clearFilters(),this.context.viewState.isDocumentSearchType()&&this.context.viewState.searchState.clearDocumentFilters(),this.context.viewState.isStockSearchMode()&&this.context.viewState.searchState.search()}}get links(){return this.context.viewState.searchState.filterCount?o.createElement("div",{className:"panel-search-info-link","data-test-id":"no-search-result-clear-filters",onClick:this.clearFilters},(0,a.Iu)("DL_CLEAR_FILTERS")):o.createElement(u.Z,{hidePromptText:!0})}render(){return o.createElement("div",{className:"panel-search-result-none-container","data-test-id":"no-search-result"},o.createElement(s.Z,{numResults:0}),o.createElement("div",{className:"panel-search-info"},o.createElement("div",{className:"panel-search-info-graphic","data-test-id":"no-search-result-graphic"},o.createElement(c.Z,{id:"NoSearchResults",height:p.Z.currentProduct.config.filterIconHeight||100})),o.createElement("div",{className:"panel-search-info-title","data-test-id":"no-search-result-title"},(0,a.Iu)("DL_SEARCH_LIBRARIES_NO_RESULTS_TITLE")),o.createElement("div",{className:"panel-search-info-body","data-test-id":"no-search-result-body"},(0,a.Iu)("DL_SEARCH_LIBRARIES_NO_RESULTS_BODY")),this.links))}}).contextType=d.r,n=i))||n},40953:(e,t,r)=>{"use strict";r.d(t,{Z:()=>Ir});var n,i,o,a=r(89526),s=r(64403),c=r.n(s),l=r(50265),u=r(62631),d=r(76485),p=r(51461),h=r(59157),f=r(75157),m=r(84824),g=r(99409),v=r(25585),y=r(99386),b=r(27611),_=r(43616),E=r(24937);function w(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let x=(0,u.Pi)(((o=class extends a.Component{constructor(...e){super(...e),this.onClick=e=>{p.ZP.reportEvent("Search","Library Panel","click","select-search-type",{ui:{filter:e}}),this.context.viewState.setSearchType(e)},this.onClickLabel=()=>{"recentSearchesOverlay"===this.context.dialogManager.dialogName&&this.context.dialogManager.closeDialog()}}get currentSearchType(){return this.context.viewState.getSearchType()}get menuData(){return this.context.viewState.getSearchTypes().filter((e=>{const t="stock"===e&&y.Z.currentProduct.config.disableStockSearch,r="libraries"===e&&(this.context.libraryManager.disableCCLibraries||y.Z.currentProduct.config.disableAllLibrariesElementSearch);return!t&&!r})).map((e=>({label:(0,m.Iu)("DL_SEARCH_"+e.toUpperCase()),onClick:()=>this.onClick(e),isSelected:e===this.currentSearchType,key:e})))}get labelIcon(){return a.createElement(b.Z,{"data-test-id":"search-source-dropdown-icon",id:"ChevronDownSmall",height:8,width:8})}render(){return a.createElement(_.Z,{onClickLabel:this.context.dialogManager.closeDialog,tooltip:(0,m.Iu)("DL_SEARCH_SELECT_SCOPE_TOOLTIP"),data:this.menuData,className:"panel-search-source-dropdown",type:"search-source",currentLabel:this.labelIcon,title:(0,m.Iu)("DL_SEARCH_DROPDOWN_TITLE"),dropdownOptions:{ignoreScrollEvents:!0}})}}).contextType=E.r,w((i=o).prototype,"currentSearchType",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"currentSearchType"),i.prototype),w(i.prototype,"menuData",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"menuData"),i.prototype),w(i.prototype,"labelIcon",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"labelIcon"),i.prototype),n=i))||n;var L,O,S,T,P=r(99767),I=r(2652),A=r.n(I);function C(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let k=(0,u.Pi)((T=class extends a.Component{constructor(...e){var t;super(...e),this.onClickSearch=e=>{p.ZP.reportSearchEvent("Search","Search","click","input",{ui:{filter:this.searchType}}),""===this.searchText&&this.context.viewState.hasRecentSearches()&&this.openDialog(),e.stopPropagation()},this.onClickCancel=e=>{e.stopPropagation(),e.preventDefault(),this.context.dialogManager.closeDialog(),p.ZP.reportSearchEvent("Search","Search","click","cancel",{ui:{filter:this.searchType}}),this.context.viewState.setSearchText("")},(t=S)&&Object.defineProperty(this,"isFocused",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0}),this.onFocus=e=>{this.isFocused=!0,d.Z.hasUXPInputClickBug&&(g.Z._listenerManager.notify("flyoutMenuClicked",e),this.onClickSearch(e))},this.onBlur=()=>{this.isFocused=!1},this.onKeydown=e=>{"Escape"===e.key&&this.onClickCancel(e),"Enter"===e.key&&this.context.viewState.clearFindSimilarSearchMode()},this.openDialog=()=>{y.Z.currentProduct.config.hideRecentSearchesOverlay||this.context.dialogManager.openDialog("recentSearchesOverlay")},this.onChange=e=>{const t=this.context.viewState,r=y.Z.currentProduct.config,n=(0,v.aS)(e.target.value,y.Z.MAX_INPUT_STRING_LENGTH,!1);if(t.setSearchText(n),r.reportSearchSDMEvents&&n){const e=t.getRecentSearches()[y.Z.STORED_RECENT_SEARCH_LIBRARIES_KEY].slice(0,y.Z.STORED_RECENT_SEARCH_DISPLAY_LIMIT),i={"content.category":"brands&libraries","ui.search_keyword":n,"custom.ui.location":"editor","custom.ui.search_type":"direct","custom.search.id":t.getSearchId(),"custom.search.suggestion_list_shown":e},o={"content.category":"brands&libraries","ui.search_keyword":n,"custom.ui.location":"editor","custom.search.id":t.getSearchId(),"custom.search.result_count":t.librariesInViewOrder.length};r.reportSearchSDMEvents(i),r.reportSearchSDMEvents(o)}""!==this.searchText?this.context.dialogManager.closeDialog():t.hasRecentSearches()&&this.openDialog()},this._setSearchInput=e=>this.searchInput=e}get searchText(){return this.context.viewState.getSearchText()||""}get disabled(){const e=!this.context.libraryManager.searchableLibraries.length,t=this.context.viewState.isRelinkLayerMode();return e||t||this.props.disabled}get searchType(){return this.context.viewState.getSearchType()}get showCancel(){return""!==this.searchText}get cancelButton(){return this.showCancel?a.createElement("div",{"data-test-id":"cancel",className:"panel-search-cancel",onClick:this.onClickCancel},a.createElement(P.Z,{placement:"left",content:(0,m.Iu)("DL_SEARCH_CANCEL_TOOLTIP")},a.createElement(b.Z,{id:"Close",height:y.Z.currentProduct.config.searchBarCloseIconHeight||20}))):y.Z.currentProduct.config.hideDefaultSearchCancelIcon?a.createElement("div",{"data-test-id":"cancel-placeholder",className:"panel-search-cancel-placeholder"}):void 0}get searchIcon(){if(!y.Z.currentProduct.config.hideCustomSearchIcon)return a.createElement("div",{"data-test-id":"panel-search-icon",className:"panel-search-icon"},a.createElement(b.Z,{id:"Magnify",height:y.Z.currentProduct.config.searchIconSize||12}))}get showSourceSelectionButton(){const e=this.context.libraryManager.disableCCLibraries||y.Z.currentProduct.config.disableAllLibrariesSearch||y.Z.currentProduct.config.disableSearchSourceSelection;return!(this.context.viewState.isRootView()||e&&y.Z.currentProduct.config.disableStockSearch)}get sourceSelectionButton(){if(this.showSourceSelectionButton)return a.createElement(x,null)}get showInputBox(){return!d.Z.hasInputZOrderBug||!this.context.dialogManager.dialog||!!["recentSearchesOverlay","contextMenu"].find((e=>e===this.context.dialogManager.dialogName))}render(){var e,t;const r=c()("panel-search-input",{disabled:this.disabled}),n=c()("panel-search",{"is-focused":this.isFocused,"show-source-button":this.showSourceSelectionButton,"show-cancel-button":this.cancelButton}),i=y.Z.currentProduct.config.customSearchPlaceholders,o=i&&i[this.searchType]&&(0,m.Iu)(i[this.searchType]);return a.createElement("div",{className:n,"data-test-id":"search-bar"},this.searchIcon,this.showInputBox&&a.createElement("input",{"uxp-quiet":"true","data-test-id":"input",value:this.searchText,ref:this._setSearchInput,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClickSearch,className:r,type:"search",results:"0",onKeyDown:this.onKeydown,placeholder:null!==(e=null!==(t=this.props.placeholderText)&&void 0!==t?t:o)&&void 0!==e?e:(0,m.Iu)(`DL_SEARCH_INPUT_${this.searchType.toUpperCase()}_PLACEHOLDER`),spellCheck:"false",disabled:this.disabled}),this.cancelButton,this.sourceSelectionButton)}},T.contextType=E.r,T.propTypes={placeholderText:A().string,disabled:A().bool},C((O=T).prototype,"searchText",[l.computed],Object.getOwnPropertyDescriptor(O.prototype,"searchText"),O.prototype),C(O.prototype,"disabled",[l.computed],Object.getOwnPropertyDescriptor(O.prototype,"disabled"),O.prototype),C(O.prototype,"searchType",[l.computed],Object.getOwnPropertyDescriptor(O.prototype,"searchType"),O.prototype),S=C(O.prototype,"isFocused",[l.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),C(O.prototype,"showCancel",[l.computed],Object.getOwnPropertyDescriptor(O.prototype,"showCancel"),O.prototype),C(O.prototype,"cancelButton",[l.computed],Object.getOwnPropertyDescriptor(O.prototype,"cancelButton"),O.prototype),C(O.prototype,"searchIcon",[l.computed],Object.getOwnPropertyDescriptor(O.prototype,"searchIcon"),O.prototype),C(O.prototype,"showSourceSelectionButton",[l.computed],Object.getOwnPropertyDescriptor(O.prototype,"showSourceSelectionButton"),O.prototype),C(O.prototype,"sourceSelectionButton",[l.computed],Object.getOwnPropertyDescriptor(O.prototype,"sourceSelectionButton"),O.prototype),L=O))||L;var D,N,R,M=r(37800),j=r(72279),F=r(30131),Z=r(47320);function B(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let G=(0,u.Pi)(((R=class extends a.Component{constructor(...e){super(...e),this.onFilterToggle=(e,t,r)=>{const n=["library","document"].includes(t.type)?"source":"asset type";p.ZP.reportEvent("Search","Library Panel","click",r?"select-filter":"deselect-filter",{event:{value:t.id},content:{type:n}},this.libraryManager.currentLibrary),this.searchState.setSearchOption(t.id,r,t.type),this.disabled||e.stopPropagation()},this.onFilterDelete=(e,t)=>{const r=this.libraryManager.documentAssetsContainer.elements.filter((e=>e.linkReference===t.id));p.ZP.reportEvent("Element Operations","element","click","make-local",{event:{value:"agg",count:r.length},content:{category:"Click"}}),r.forEach((e=>{p.ZP.reportElementEvent("Element Operations","element","click","make-local",e,{event:{value:"single",count:1},content:{category:"Click"}})})),d.Z.unlinkAssetsFromDocument(t.id),this.searchState.setSearchOption(t.id,!1,t.type);const n=Z.Z.groupElementsByTopLevelGroup(this.libraryManager.documentAssetsContainer.elements,this.libraryManager.documentAssetsContainer.getGroups());this.searchState.filterTypeOptions.forEach((e=>{const t=n.find((t=>t.item&&t.item.name===e.id));t.children&&t.children.length||this.searchState.setSearchOption(e.id,!1,e.type)}))},this.onClearFilters=e=>{e.stopPropagation(),this.viewState.isDocumentSearchType()?this.searchState.clearDocumentFilters():this.searchState.clearFilters()}}get viewState(){return this.context.viewState}get libraryManager(){return this.context.libraryManager}get searchState(){return this.viewState.searchState}get hasSelectedFilters(){return this.searchState.filterCount}get searchFilters(){return this.viewState.isLibrariesSearchMode()||this.viewState.isDocumentSearchType()?[...this.searchState.filterLibrariesOptions,...this.searchState.filterTypeOptions]:this.searchState.filterTypeOptions}formatFilterOption(e){const t=this.searchState.isSearchOptionEnabled(e.id),r=this.viewState.isDocumentSearchType()&&e.removable?t=>this.onFilterDelete(t,e):void 0;return{label:(0,m.Iu)(e.label),onClick:r=>this.onFilterToggle(r,e,!t),onClickDelete:r,isSelected:t,key:e.id}}get clearFiltersLabel(){return a.createElement("div",{className:"dropdown-label-wrapper"},a.createElement(b.Z,{id:"Close",height:18,className:"left-align-correction"}),(0,m.Iu)("DL_CLEAR_FILTERS"))}get menuData(){const e=this.searchState.filterTypeOptions.map((e=>this.formatFilterOption(e)));let t=[];(this.viewState.isLibrariesSearchMode()||this.viewState.isDocumentSearchType())&&this.viewState.searchState.filterLibrariesOptions.length&&(t=[{divider:!0,key:"divider"},{key:"librariesTitle",isTitle:!0,label:(0,m.Iu)(this.viewState.isDocumentSearchType()?"DL_LIBRARY_LIST_FILTER_BY_SOURCE":"DL_LIBRARY_LIST_FILTER_BY_LIBRARY")},...this.searchState.filterLibrariesOptions.map((e=>this.formatFilterOption(e)))]);const r=[{divider:!0,key:"clearFiltersDivider"},{label:this.clearFiltersLabel,key:"clearFilters",disabled:!this.hasSelectedFilters,onClick:this.onClearFilters}];return[...e,...t,...r]}get disabled(){return this.context.viewState.isSearchMode()?!(this.hasSelectedFilters||this.searchState.searchResultsCount)||0===this.searchFilters.length:!this.libraryManager.currentLibrary.elements.length}get labelIcon(){var e,t;const r=null!==(e=y.Z.currentProduct.config.defaultFilterIconSelected)&&void 0!==e?e:"FilterNotification16",n=null!==(t=y.Z.currentProduct.config.defaultFilterIcon)&&void 0!==t?t:"Filter16",i=this.hasSelectedFilters?r:n;return a.createElement(j.Z,{className:"view-toggle-button",quiet:!0,onClick:()=>{}},a.createElement(b.Z,{"data-test-id":"panel-dropdown-icon",id:i,height:16,width:16}))}get footer(){return this.viewState.isStockSearchMode()&&this.libraryManager.isOnline&&a.createElement("a",{onClick:()=>(0,F.v7)("",{},!0),className:"panel-select-menu-footer","data-test-id":"panel-dropdown-menu-footer-link"},(0,m.Iu)("DL_STOCK_SEARCH_AUDIO_WEB"))}render(){const e=this.viewState.isLibrariesSearchMode()||this.libraryManager.currentLibrary&&this.libraryManager.currentLibrary.isDocumentAssets?"DL_LIBRARY_LIST_FILTER_BY_TYPE":"DL_LIBRARY_LIST_FILTER_BY";return a.createElement(_.Z,{data:this.menuData,disabled:this.disabled,className:"panel-search-filters-dropdown",type:"search-filter",currentLabel:this.labelIcon,title:(0,m.Iu)(e),tooltip:(0,m.Iu)("DL_SEARCH_FILTERS_TOOLTIP"),footer:this.footer})}}).contextType=E.r,B((N=R).prototype,"searchFilters",[l.computed],Object.getOwnPropertyDescriptor(N.prototype,"searchFilters"),N.prototype),B(N.prototype,"menuData",[l.computed],Object.getOwnPropertyDescriptor(N.prototype,"menuData"),N.prototype),B(N.prototype,"disabled",[l.computed],Object.getOwnPropertyDescriptor(N.prototype,"disabled"),N.prototype),B(N.prototype,"labelIcon",[l.computed],Object.getOwnPropertyDescriptor(N.prototype,"labelIcon"),N.prototype),B(N.prototype,"footer",[l.computed],Object.getOwnPropertyDescriptor(N.prototype,"footer"),N.prototype),D=N))||D;var U,H,z=r(41765),V=r(46903),Y=r(76792),W=r(85080),K=r(33054),$=r(37642),q=r(33275);let X=(0,u.Pi)(((H=class extends a.Component{constructor(...e){super(...e),this.onClickShare=()=>{p.ZP.reportEvent("Manager","Manage","click","share"),this.context.libraryActions.invite(this.props.library,!0)}}render(){var e;return y.Z.currentProduct.config.customShareButton?a.createElement(j.Z,{variant:"accent","data-test-id":"panel-navigation-share-button",className:"panel-navigation-button",onClick:this.onClickShare,tooltip:(0,m.Iu)("DL_SHARE_LIBRARY_BUTTON_TOOLTIP")},(0,m.Iu)("DL_SHARE")):a.createElement(j.Z,{quiet:!0,variant:"action","data-test-id":"panel-navigation-share-button",className:"panel-navigation-button",onClick:this.onClickShare,tooltip:(0,m.Iu)("DL_SHARE_LIBRARY_BUTTON_TOOLTIP")},a.createElement(b.Z,{id:"Invite",height:null!==(e=this.props.height)&&void 0!==e?e:16}))}}).contextType=E.r,H.propTypes={library:A().instanceOf(q.Zu),height:A().number},U=H))||U;var J,Q,ee,te,re;function ne(){ne=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ie(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function oe(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function ae(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let se=(0,u.Pi)(((re=class extends a.Component{constructor(...e){super(...e),this.library=this.props.library,this.isSharedwithYou="incoming"===this.library.ownership,oe(this,"isBookmarked",ee,this),oe(this,"addingState",te,this)}static isLibraryBookmarked(e){return!("incoming"!==e.ownership&&!(0,V.D3)(e)||!e.bookmark.id)}followLibraryAction(e){var t,r=this;return(t=ne().mark((function t(){return ne().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r.addingState=!0,t.next=4,r.context.libraryManager.followLibrary(e.assetId,e.id);case 4:r.isBookmarked=!0,r.context.toastManager.openToast("message",{variant:"success",message:(0,m.Iu)("DL_ADD_TO_LIBRARY_TOAST",{libraryName:e.name})}),p.ZP.reportEvent("Operations","Follow library","click","finish"),setTimeout((()=>{r.context.toastManager.openToast("message",{action:{label:(0,m.Iu)("DL_REFRESH"),onClick:()=>setTimeout((()=>{var t;null===(t=d.Z.navigateToLibrary)||void 0===t||t.call(d.Z,e)}),0)},variant:"info",message:(0,m.Iu)("DL_ITEMS_READY_TOAST")})}),5e3),t.next=16;break;case 10:t.prev=10,t.t0=t.catch(0),r.addingState=!1,r.isBookmarked=!1,r.context.toastManager.openToast("message",{variant:"faliure",message:(0,m.Iu)("DL_ADD_TO_LIBRARY_FAILURE_TOAST",{libraryName:e.name})}),p.ZP.reportError("Operations","Follow library",t.t0&&t.t0.description,"click","foloow-library-error",void 0,r.context.libraryManager.currentLibrary);case 16:case"end":return t.stop()}}),t,null,[[0,10]])})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){ie(o,n,i,a,s,"next",e)}function s(e){ie(o,n,i,a,s,"throw",e)}a(void 0)}))})()}get shareButton(){if((0,V.hp)(this.library)&&this.context.libraryManager.isSharingEnabled)return a.createElement(X,{library:this.library})}get actions(){var e,t;let r;return r="incoming"===this.library.ownership?this.isBookmarked:!(0,V.D3)(this.library),a.createElement(a.Fragment,null,r&&this.shareButton,null===(e=(t=y.Z.currentProduct).libraryContextMenuButton)||void 0===e?void 0:e.call(t,this.library))}get isEmptyPublicLibrary(){return(0,V.D3)(this.library)&&0===this.library.elements.length}get bookmarkButton(){return!this.isBookmarked&&!this.isEmptyPublicLibrary&&a.createElement(j.Z,{variant:"accent",disabled:this.addingState,"data-test-id":"follow-library-button",className:"follow-library",onClick:()=>this.followLibraryAction(this.library)},(0,m.Iu)("DL_ADD"))}render(){return a.createElement("div",{className:"ah-header-actions","data-test-id":"ah-header-actions"},this.isSharedwithYou||(0,V.D3)(this.library)?a.createElement(a.Fragment,null,this.bookmarkButton,this.actions):this.actions)}}).propTypes={library:A().any.isRequired},re.contextType=E.r,ee=ae((Q=re).prototype,"isBookmarked",[l.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return se.isLibraryBookmarked(this.library)}}),te=ae(Q.prototype,"addingState",[l.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ae(Q.prototype,"bookmarkButton",[l.computed],Object.getOwnPropertyDescriptor(Q.prototype,"bookmarkButton"),Q.prototype),J=Q))||J;var ce,le;let ue=(0,u.Pi)((le=class extends a.Component{constructor(...e){super(...e),this.menuOverlayState=new W.Z,this.onClickBackButton=e=>{this.onCloseMenu(),this.isOneUpMode?(p.ZP.reportEvent("Navigation","Library Panel","click","search"===this.context.viewState.getState().modeParams.previousMode?"back-to-search":"back-to-library"),this.context.viewState.setStateBeforeOneUpMode()):d.Z.navigateBack?d.Z.navigateBack():(p.ZP.reportEvent("Navigation","Library Panel","click","root-view"),this.context.viewState.showRootView()),e.stopPropagation()},this.onKeyEvent=e=>{"Enter"===e.key&&this.onClickBackButton(e)},this.onClickMenu=()=>{this.menuOverlayState.toggleOverlay(),this.context.viewManager.stopRename(),this.context.viewManager.stopEditDescription()},this.onCloseMenu=()=>{this.menuOverlayState.hideOverlay()},this.onClickShare=()=>{p.ZP.reportEvent("Manager","Manage","click","share"),this.context.libraryActions.invite(this.context.libraryManager.currentLibrary,!0)},this.onOpenLibrariesManager=e=>{p.ZP.reportEvent("Manager","Launch","click","open-manager"),d.Z.openLibraryManagerWindow(),e.stopPropagation()}}get isOneUpMode(){return this.context.viewState.isOneUpMode()}get isSearchMode(){return this.context.viewState.isSearchMode()}get isRootView(){return this.context.viewState.isRootView()}get isRelinkLayerMode(){return this.context.viewState.isRelinkLayerMode()}get shouldShowBackButton(){return!this.isSearchMode&&!this.isRootView}get backButton(){var e;const t=null!==(e=y.Z.currentProduct.config.customBackButtonSize)&&void 0!==e?e:8;if(!this.shouldShowBackButton)return;let r="DL_BACK_BUTTON_ROOT";return this.isOneUpMode&&(r="search"===this.context.viewState.getState().modeParams.previousMode?"DL_BACK_BUTTON_SEARCH":"DL_BACK_BUTTON_LIBRARY"),a.createElement(P.Z,{content:(0,m.Iu)(r)},a.createElement("div",{"data-test-id":"panel-navigation-back-button",className:"panel-navigation-row-back-button",tabIndex:0,onKeyUp:this.onKeyEvent},a.createElement(b.Z,{id:"ChevronLeftSmall",height:t})))}get shareButton(){if(!(this.isRootView||this.isOneUpMode||this.isSearchMode||this.isRelinkLayerMode)&&(0,V.hp)(this.context.libraryManager.currentLibrary))return a.createElement(X,{library:this.context.libraryManager.currentLibrary})}get librariesManagerButton(){var e;if(!y.Z.currentProduct.config.hasLibraryManager||this.isOneUpMode||this.isSearchMode||this.isRelinkLayerMode)return;const t=this.context.libraryManager,r=(e,r,n,i=!1,o)=>{let s=!1;t.librariesInitError&&(n=$.sB(t.syncStatus),s=!0,i=!1);const l=c()("panel-navigation-button",{"notification-indicator":i});n=(n=(0,m.Iu)(n)).replace("<br/>","");const u=i?"panel-navigation-open-manager-button-notification":"panel-navigation-open-manager-button";return a.createElement(j.Z,{"data-test-id":u,className:l,onClick:this.onOpenLibrariesManager,tooltip:n,disabled:s,featureId:o},a.createElement(b.Z,{id:e,height:r}))};if(this.isRootView)return r("Add12",12,"DL_OPEN_LIB_MANAGER_BUTTON_TOOLTIP",!1,"FEATURE_TOOLTIP_DISCOVER_LIBRARIES");if(null!==(e=t.currentLibrary)&&void 0!==e&&e.isDocumentAssets&&!t.isRestrictedAccount){const e=t.publishState.isPendingUpdate;return r("ShareAssets",16,e?"DL_OPEN_LIB_MANAGER_BUTTON_DOC_ASSETS_TOOLTIP_UPDATE":"DL_OPEN_LIB_MANAGER_BUTTON_DOC_ASSETS_TOOLTIP",e,"FEATURE_TOOLTIP_SHARE_DESIGN_SYSTEMS")}}get elementContextMenuButton(){if(!this.isOneUpMode)return;const e=this.context.viewState.getState().modeParams,t=e.element,r=e.subElement,n=(0,Y.vf)([t],r);if(!n.length)return;let i;return this.menuOverlayState.isOpen&&(i=a.createElement(K.Z,{menuItems:n,className:"panel-search-types",close:this.onCloseMenu,maxMenuItemsVisible:y.Z.MAX_ONEUP_ELEMENT_CONTEXT_MENU_ITEMS})),a.createElement("div",{className:"oneup-element-context-menu-container",ref:this.menuOverlayState.setParentElement},a.createElement(j.Z,{"data-test-id":"oneup-element-context-menu",className:"oneup-element-context-menu",onClick:this.onClickMenu},a.createElement(b.Z,{id:"More",height:16})),i)}get navigationLabelText(){return this.isSearchMode?(0,m.Iu)("DL_SEARCH_HEADER"):this.isRootView?(0,m.Iu)("DL_LIBRARIES_PANEL_NAME"):this.isOneUpMode?this.context.viewState.getState().modeParams.element.name:this.context.libraryManager.currentLibrary.name}get linkedLibraryIcon(){if(this.context.viewState.isDefaultMode()&&this.context.libraryManager.currentLibrary&&this.context.libraryManager.currentLibrary.documentId)return a.createElement(b.Z,{id:"LinkedLibrary",height:8,className:"linkedLibraryIcon"})}getTeamLibraryToolTipData(){const e=this.context.libraryManager.currentLibrary,t=(0,V.Uu)(e),r=[e.name];return t&&t.name?r.push((0,m.Iu)("DL_LIBRARY_TEAM_TOOLTIP",{name:t.name}),t.ownerName):r.push((0,m.Iu)("DL_LIBRARY_STATUS_TEAM")),r}get navigationLabel(){var e;const t=y.Z.currentProduct.config.lowercaseNavigationLabel?this.navigationLabelText:null===(e=this.navigationLabelText)||void 0===e?void 0:e.toLocaleUpperCase(d.Z.getLocale()),r=a.createElement("div",{className:"panel-navigation-header-row-label-text","data-test-id":"panel-navigation-header-row-label-text"},t);if(this.isSearchMode||this.isRootView||this.isOneUpMode)return r;let n=(0,V.$h)(this.context.libraryManager.currentLibrary);return(0,V.$_)(this.context.libraryManager.currentLibrary)&&(n=this.getTeamLibraryToolTipData()),y.Z.currentProduct.config.disableLibraryTooltip&&(n=""),a.createElement(P.Z,{content:n,placement:"bottom-left",className:"panel-navigation-header-row-label-text-wrapper"},r)}get headerActions(){return y.Z.currentProduct.config.bookmarkAction?a.createElement(se,{library:this.context.libraryManager.currentLibrary}):this.shareButton||this.librariesManagerButton||this.elementContextMenuButton}render(){const e=c()("panel-navigation-row",{"one-up-navigation-row":this.isOneUpMode}),t=c()("panel-navigation-header-row-clickable",{"is-clickable":this.shouldShowBackButton});return a.createElement("div",{"data-test-id":"panel-navigation-header-row",className:e,onContextMenu:V.XT},a.createElement("div",{className:"panel-navigation-header-row-clickable-wrapper"},a.createElement("div",{className:t,"data-test-id":"panel-navigation-header-row-clickable",onClick:this.onClickBackButton},this.backButton,this.linkedLibraryIcon,a.createElement("div",{className:"panel-navigation-header-row-label","data-test-id":"panel-navigation-header-row-label"},this.navigationLabel))),this.headerActions)}},le.contextType=E.r,ce=le))||ce;var de,pe,he,fe=r(17632);function me(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let ge=(0,u.Pi)(((he=class extends a.Component{constructor(...e){super(...e),this.onGridButtonClick=e=>{this._setViewState("list"===this.viewState?"grid":"list"),e.stopPropagation()},this.handleViewByGroupModeToggle=e=>{"tree"===this.context.viewState.viewByGroupMode?this.context.viewState.setViewByGroupMode("path"):this.context.viewState.setViewByGroupMode("tree"),p.ZP.reportEvent("Navigation","Library Panel","click","group-view-change",null,this.context.libraryManager.currentLibrary),e.stopPropagation()},this.onCreateLibraryClick=()=>{p.ZP.reportEvent("Create Library","Root View","click","new-library-header"),this.context.dialogManager.openDialog("createLibrary")},this.setHeaderRef=e=>{this.headerRef=e},this.setSearchRef=e=>{this.searchRef=e},this.onClickFlyoutMenu=()=>{this.context.dialogManager.openDialog("contextMenu",{menuItems:g.Z.getFlyoutMenu(!0),maxMenuItemsVisible:20,x:5,y:30,position:"left"})},this.handleClick=()=>{this.context.viewState.clearAllSelections()}}get viewState(){return this.context.viewState.viewState}get viewTypeDisabled(){return this.context.viewState.isSearchMode()}get listGridDisabled(){return this.context.viewState.isStockSearchMode()}get library(){return this.context.libraryManager.currentLibrary}componentDidMount(){this.context.viewState.setHeaderView(this)}getHeight(){return this.headerRef&&this.headerRef.clientHeight||0}getSearchBarBottom(){return this.searchRef&&this.searchRef.offsetTop+this.searchRef.clientHeight}get isLibrariesFilterEnabled(){return y.Z.currentProduct.config.showSortDropdownRootView&&!y.Z.currentProduct.config.disableFilters}get canShowLibrariesFilterDropdown(){return this.isLibrariesFilterEnabled&&this.context.viewState.isRootView()}get canShowSearchFiltersDropdown(){return!y.Z.currentProduct.config.hideFilterDropdownOneUpView&&!y.Z.currentProduct.config.disableFilters}_setViewState(e){this.context.viewState.setViewState(e),p.ZP.reportEvent("Navigation","Library Panel","click","view-change",null,this.context.libraryManager.currentLibrary)}get treePathToggleButton(){if(this.context.viewState.isStockSearchMode()||this.isLibrariesFilterEnabled)return;const e=this.context.viewState.viewByGroupMode,t="tree"===e?"DL_VIEW_BY_GROUP_PATH":"DL_VIEW_BY_GROUP_TREE",r=y.Z.currentProduct.config.iconHeight||16;return a.createElement(j.Z,{"data-test-id":"tree-path-toggle-button",onClick:this.handleViewByGroupModeToggle,className:"tree-path-toggle-button",quiet:!0,tooltip:(0,m.Iu)(t)},a.createElement(b.Z,{id:"tree"===e?"PathView":"TreeView",height:r}))}get viewToggleButton(){if(this.context.viewState.isStockSearchMode()||this.isLibrariesFilterEnabled||this.context.viewState.isLibraryNameSearchType())return;const e="grid"===this.viewState?"DL_LISTVIEW_TOOLTIP":"DL_GRIDVIEW_TOOLTIP",t=y.Z.currentProduct.config.iconHeight||16;return a.createElement(j.Z,{"data-test-id":`view-toggle-to-${"grid"===this.viewState?"list":"grid"}-button`,onClick:this.onGridButtonClick,className:"view-toggle-button",disabled:this.listGridDisabled,quiet:!0,tooltip:(0,m.Iu)(e)},a.createElement(b.Z,{id:"grid"===this.viewState?"ListView":"GridView",height:t}))}get sortDropdownButton(){if("group"===this.context.viewState.viewByState&&this.context.viewState.isDocumentSearchMode())return;if(this.canShowLibrariesFilterDropdown)return a.createElement(M.Z,{mode:"libraries","data-test-id":"sort-dropdown",sortOrderControl:!0,hideGroupBy:!0});const e=!this.context.viewState.isStockSearchMode();return a.createElement(M.Z,{sortOrderControl:e,hideGroupBy:this.library&&this.library.isDocumentAssets})}get filterDropdown(){return this.canShowLibrariesFilterDropdown?a.createElement(z.Z,null):this.canShowSearchFiltersDropdown?a.createElement(G,null):void 0}get viewModeControls(){var e,t;const r=(null===(e=(t=y.Z.currentProduct.config).sortOnRightInRootView)||void 0===e?void 0:e.call(t))&&this.context.viewState.isRootView();return y.Z.currentProduct.customSubheader?y.Z.currentProduct.customSubheader():a.createElement(a.Fragment,null,a.createElement("div",{className:"panel-header-left-controls"},this.filterDropdown,!r&&this.sortDropdownButton),this.context.viewState.viewByState===y.Z.VIEW_BY_MODES.GROUP&&this.treePathToggleButton,this.viewToggleButton)}get relinkHeader(){const e=this.context.viewState.getState().modeParams,t=e.missing?a.createElement("div",{className:"panel-relink-header-image-missing"}):a.createElement("div",{className:"panel-relink-header-image"},a.createElement(b.Z,{id:"Cloud",height:14}));return a.createElement("div",{"data-test-id":"relink-header",className:"panel-relink-header"},t,a.createElement("div",{"data-test-id":"relink-message",className:"panel-relink-header-text"},e.message))}get removedElementsHeader(){return a.createElement("div",{"data-test-id":"removed-elements-header",className:"panel-relink-header"},a.createElement("div",{className:"panel-relink-header-image"},a.createElement(b.Z,{id:"Delete",height:16})),a.createElement("div",{"data-test-id":"removed-elements-message",className:"panel-relink-header-text"},"Deleted Items"))}get hideViewModeHeader(){return this.context.viewState.isOneUpMode()||this.context.viewState.isPlainRootView&&!this.isLibrariesFilterEnabled}get libraryModeHeader(){if(this.hideViewModeHeader)return;const e=this.context.viewState.isRelinkLayerMode()?this.relinkHeader:this.context.viewState.isRemovedElementsMode()?this.removedElementsHeader:this.viewModeControls;return a.createElement("div",{"data-test-id":"panel-header-controls-row",className:"panel-header-row panel-header-controls-row"},e)}get searchBar(){return a.createElement("div",{className:"panel-header-search-row",ref:this.setSearchRef},a.createElement(k,null))}get navigationRow(){if(!y.Z.currentProduct.config.disableNavigationLabel&&!(this.context.viewState.isRootView()&&!y.Z.currentProduct.config.noFlyoutMenu||this.context.libraryManager.disableCCLibraries))return a.createElement(ue,null)}get createLibraryButton(){if(!y.Z.currentProduct.config.readOnlyPanelUI&&this.context.libraryManager.areLibrariesLoaded&&this.context.viewState.isPlainRootView&&!y.Z.currentProduct.config.hideHeaderCreateLibraryButton)return a.createElement("div",{className:"create-library-button-header-row","data-test-id":"create-library-button-header-row",onClick:this.onCreateLibraryClick},a.createElement(b.Z,{id:"Add14",height:14}),a.createElement("div",{className:"create-library-button-text"},(0,m.Iu)("DL_CREATE_DESIGN_LIBRARY")))}get documentAssets(){if(this.isDocumentAssetsRootView){var e,t;const r=this.context.libraryManager.documentAssetsContainer;return a.createElement(fe.Z,{library:r,key:r.id,onClick:e=>this.context.libraryManager.currentLibrary=e,showContextMenuButton:null===(e=(t=y.Z.currentProduct.config).showLibraryListItemContextMenuButton)||void 0===e?void 0:e.call(t)})}}get isDocumentAssetsRootView(){return!y.Z.currentProduct.config.disableDocumentAssetsView&&!this.context.viewState.isSearchMode()&&this.context.viewState.isRootView()&&this.context.libraryManager.documentAssetsContainer}get shouldDisplaySearchBar(){var e,t;if(null!==(e=(t=y.Z.currentProduct).isExpandedView)&&void 0!==e&&e.call(t)&&d.Z.isMobileView)return!1;const r=y.Z.currentProduct.config.enableLibraryNameSearch,n=this.context.libraryManager.disableCCLibraries||y.Z.currentProduct.config.disableAllLibrariesElementSearch;return!this.context.viewState.isOneUpMode()&&(this.context.viewState.isRootView()&&r||!(this.context.viewState.isRootView()&&n))&&!y.Z.currentProduct.config.disableSearchBar}render(){const e=c()("panel-header",{"root-view-header":this.context.viewState.isRootView()});return a.createElement("div",{"data-test-id":"panel-header",className:e,ref:this.setHeaderRef,onClick:this.handleClick},!this.isDocumentAssetsRootView&&this.navigationRow,this.shouldDisplaySearchBar&&this.searchBar,this.createLibraryButton,this.libraryModeHeader,this.documentAssets,this.isDocumentAssetsRootView&&this.navigationRow)}}).contextType=E.r,me((pe=he).prototype,"viewState",[l.computed],Object.getOwnPropertyDescriptor(pe.prototype,"viewState"),pe.prototype),me(pe.prototype,"viewTypeDisabled",[l.computed],Object.getOwnPropertyDescriptor(pe.prototype,"viewTypeDisabled"),pe.prototype),me(pe.prototype,"listGridDisabled",[l.computed],Object.getOwnPropertyDescriptor(pe.prototype,"listGridDisabled"),pe.prototype),me(pe.prototype,"treePathToggleButton",[l.computed],Object.getOwnPropertyDescriptor(pe.prototype,"treePathToggleButton"),pe.prototype),me(pe.prototype,"viewToggleButton",[l.computed],Object.getOwnPropertyDescriptor(pe.prototype,"viewToggleButton"),pe.prototype),me(pe.prototype,"sortDropdownButton",[l.computed],Object.getOwnPropertyDescriptor(pe.prototype,"sortDropdownButton"),pe.prototype),me(pe.prototype,"filterDropdown",[l.computed],Object.getOwnPropertyDescriptor(pe.prototype,"filterDropdown"),pe.prototype),me(pe.prototype,"viewModeControls",[l.computed],Object.getOwnPropertyDescriptor(pe.prototype,"viewModeControls"),pe.prototype),me(pe.prototype,"relinkHeader",[l.computed],Object.getOwnPropertyDescriptor(pe.prototype,"relinkHeader"),pe.prototype),me(pe.prototype,"removedElementsHeader",[l.computed],Object.getOwnPropertyDescriptor(pe.prototype,"removedElementsHeader"),pe.prototype),me(pe.prototype,"shouldDisplaySearchBar",[l.computed],Object.getOwnPropertyDescriptor(pe.prototype,"shouldDisplaySearchBar"),pe.prototype),de=pe))||de;var ve,ye=r(16993),be=r(15909),_e=r(53849);let Ee=(0,u.Pi)(ve=class extends a.Component{constructor(...e){super(...e),this.onClickRelink=()=>{this.selection.length>0&&this._sendElementChosen(this.selection[0])},this.onClickCancel=()=>this._sendElementChosen()}get selection(){return _e.Z.selection}_sendElementChosen(e){be.Z.sendElementChosen(e),ye.Z.resetMode()}get relinkButton(){const e=ye.Z.getState().modeParams.actionMessage,t=c()("panel-relink-button-relink","action",{disabled:0===this.selection.length});return a.createElement(j.Z,{"data-test-id":"relink-button",className:t,onClick:this.onClickRelink},e)}get cancelButton(){return a.createElement(j.Z,{"data-test-id":"relink-cancel-button",className:"panel-relink-button-cancel",onClick:this.onClickCancel},(0,m.Iu)("DL_CANCEL"))}render(){const e=d.Z.isWindowsOS()?a.createElement(a.Fragment,null,this.relinkButton,this.cancelButton):a.createElement(a.Fragment,null,this.cancelButton,this.relinkButton);return a.createElement("div",{"data-test-id":"relink-footer",className:"panel-relink-action"},e)}})||ve;var we,xe=r(75067);let Le=(0,u.Pi)(we=class extends a.Component{constructor(...e){super(...e),this.onClickDelete=()=>{xe.ZP.deleteElements(this.selection,!0)},this.onClickRestore=()=>{xe.ZP.restoreElements(this.selection)},this.onClickCancel=()=>{ye.Z.resetMode()}}get selection(){return _e.Z.selection}get deleteButton(){const e=c()("panel-relink-button-relink","action",{disabled:0===this.selection.length});return a.createElement("button",{"data-test-id":"removed-elements-delete-button",className:e,onClick:this.onClickDelete},"Permanently Delete")}get restoreButton(){const e=c()("panel-relink-button-relink","action",{disabled:0===this.selection.length});return a.createElement("button",{"data-test-id":"removed-elements-restore-button",className:e,onClick:this.onClickRestore},"Restore")}get cancelButton(){return a.createElement("button",{"data-test-id":"removed-elements-cancel-button",className:"panel-relink-button-cancel",onClick:this.onClickCancel},(0,m.Iu)("DL_CANCEL"))}render(){return a.createElement("div",{"data-test-id":"removed-elements-footer",className:"panel-relink-action"},this.cancelButton,this.restoreButton,this.deleteButton)}})||we;var Oe,Se;let Te=(0,u.Pi)(((Se=class extends a.Component{constructor(...e){super(...e),this.updateAll=()=>{p.ZP.reportEvent("Gated Update","Element","render","update-all",{event:{count:this.library.gatedUpdates.length}}),this.library.updateLinkedAssets()}}get library(){return this.context.libraryManager.currentLibrary}get updateLabel(){const e=this.library.gatedUpdates.length;return e<=1?(0,m.Iu)("UPDATE_ASSETS"):e>=y.Z.MAX_ASSET_UPDATE_COUNT?(0,m.Iu)("UPDATE_ALL_MAX",{number:y.Z.MAX_ASSET_UPDATE_COUNT}):(0,m.Iu)("UPDATE_ALL_NUM",{number:e})}render(){return a.createElement("div",{className:"panel-footer","data-test-id":"panel-footer"},a.createElement("div",{className:"panel-footer-update","data-test-id":"panel-footer-update"},a.createElement(j.Z,{onClick:this.updateAll,variant:"cta","data-test-id":"update-all-button",tooltip:this.updateLabel},this.updateLabel)))}}).contextType=E.r,Oe=Se))||Oe;var Pe,Ie,Ae,Ce=r(8733),ke=r(4784),De=r(68370);function Ne(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Re=(0,u.Pi)(((Ae=class extends a.Component{constructor(...e){super(...e),this.overlayState=new W.Z({onOpen:y.Z.currentProduct.addOperationInstantiated,onClose:y.Z.currentProduct.addOperationComplete}),this.onCloseMenu=e=>{e.stopPropagation(),this.overlayState.hideOverlay(),this.props.onCloseMenu&&this.props.onCloseMenu()},this.onClickButton=e=>{this.overlayState.toggleOverlay(),this.props.onClickButton&&this.props.onClickButton(),e.stopPropagation()}}get menuContents(){return this.props.menuContents}get listItems(){const e={minWidth:this.props.menuMinWidth};return a.createElement(K.Z,{menuItems:this.menuContents,style:e,className:"panel-insert-menu",close:this.onCloseMenu,iconHeight:16,maxMenuItemsVisible:this.menuContents.length,footerMenu:!0,maxWidth:window.innerWidth-14})}get hasMenuContents(){return this.menuContents.length>0}get menu(){return a.createElement("div",{"data-test-id":"insert-menu-view"},this.listItems)}get isDisabled(){return this.props.isDisabled}get iconHeight(){return y.Z.currentProduct.config.mediumIconHeight||16}render(){return a.createElement("div",null,a.createElement("div",{"data-test-id":this.props.testId,id:this.props.testId,className:this.props.className,ref:this.overlayState.setParentElement},a.createElement(j.Z,{"data-test-id":"add-button",className:"panel-footer-icon-add",disabled:this.isDisabled,quiet:!0,onClick:this.onClickButton,tooltip:this.props.tooltip},a.createElement(b.Z,{height:this.iconHeight,width:20,id:this.props.icon})),this.hasMenuContents&&this.overlayState.isOpen&&this.menu))}}).defaultProps={isDisabled:!1,tooltip:"",icon:"AddDropdown",menuMinWidth:160},Ae.propTypes={menuContents:A().arrayOf(A().object).isRequired,isDisabled:A().bool,onClickButton:A().func,onCloseMenu:A().func,tooltip:A().string,icon:A().string,className:A().string,menuMinWidth:A().number,testId:A().string.isRequired},Ne((Ie=Ae).prototype,"listItems",[l.computed],Object.getOwnPropertyDescriptor(Ie.prototype,"listItems"),Ie.prototype),Ne(Ie.prototype,"menu",[l.computed],Object.getOwnPropertyDescriptor(Ie.prototype,"menu"),Ie.prototype),Pe=Ie))||Pe;var Me,je;let Fe=(0,u.Pi)((je=class extends a.Component{constructor(...e){super(...e),this.onCloseMenu=()=>{ye.Z.notifyWorkflowAction("click-add-menu")},this.onClickButton=()=>{ye.Z.notifyWorkflowAction("click-add-button"),d.Z.updateLayerInfoOnOpenAddMenu&&Ce.Z.updateLayerInfo()}}get menuContents(){const e="NewUserOnboarding"===ye.Z.currentWorkflowName;return(0,De.o)((t=>{const r=t.length;t&&p.ZP.reportEvent("Add Assets","Element","click","add",{event:{value:"agg",count:r},content:{category:e?"Onboarding":"Plus"}}),ye.Z.resetMode(),setTimeout((()=>{_e.Z.setSelection(t,!0)}))}),e?"onboarding":"addButton")}get isDisabled(){return ye.Z.isSearchMode()||this.menuContents.length<1}render(){const e=xe.ZP.currentLibrary;return y.Z&&y.Z.currentProduct&&y.Z.currentProduct.config.hideAddControls||!e||!e.isWritable||e.isDeletedFromServer?null:a.createElement(Re,{menuContents:this.menuContents,isDisabled:this.isDisabled,onClickButton:this.onClickButton,tooltip:(0,m.Iu)(ke.Z.canAddElements(e)?"DL_INSERT_TOOLTIP":"DL_INSERT_TOOLTIP_LIMIT"),onCloseMenu:this.onCloseMenu,className:"insert-menu-container",testId:"add-asset-view"})}},Ze=je.prototype,Be="menuContents",Ge=[l.computed],Ue=Object.getOwnPropertyDescriptor(je.prototype,"menuContents"),He=je.prototype,ze={},Object.keys(Ue).forEach((function(e){ze[e]=Ue[e]})),ze.enumerable=!!ze.enumerable,ze.configurable=!!ze.configurable,("value"in ze||ze.initializer)&&(ze.writable=!0),ze=Ge.slice().reverse().reduce((function(e,t){return t(Ze,Be,e)||e}),ze),He&&void 0!==ze.initializer&&(ze.value=ze.initializer?ze.initializer.call(He):void 0,ze.initializer=void 0),void 0===ze.initializer&&(Object.defineProperty(Ze,Be,ze),ze=null),Me=je))||Me;var Ze,Be,Ge,Ue,He,ze,Ve,Ye,We,Ke=r(50777);function $e(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let qe=(0,u.Pi)(((We=class extends a.Component{constructor(...e){super(...e),this.createNewLibrary=()=>{p.ZP.reportEvent("Create Library","Root View","click","new-library-footer"),this.context.dialogManager.openDialog("createLibrary")}}get addDocContentOperation(){return y.Z.currentProduct.getAddDocContentOperation&&y.Z.currentProduct.getAddDocContentOperation()}get menuContents(){const e=()=>{p.ZP.reportEvent("Create Library","Root View","click","create-from-document"),p.ZP.setExtraEventMetrics("createLibrary",{fromDocument:!0}),this.addDocContentOperation.enabled&&this.addDocContentOperation.apply(),p.ZP.clearExtraEventMetrics("createLibrary")},t=[];return Ke.BQ()&&t.push({label:"DL_CAPTURE",icon:"Capture",onClick:e=>Ke.RI(null,e)},{divider:!0}),this.context.libraryManager.isRestrictedAccount||t.push({label:"DL_MORE_LIBRARY_BROWSE",icon:"Browse",onClick:()=>this.context.libraryManager.openBrowseAll()},{label:"DL_MORE_LIBRARY_BROWSE_PUBLIC",icon:"GlobeSearch",onClick:()=>this.context.libraryManager.openMarketplace()},{divider:!0}),t.push(this.addDocContentOperation&&{label:"DL_FLYOUT_ADD_DOC_CONTENT_MENU_ITEM",enableMenu:this.context.libraryManager.areLibrariesLoaded&&!this.context.viewState.isImportExportInProgress,icon:this.addDocContentOperation&&this.addDocContentOperation.icon,onClick:()=>e()},{label:"DL_CREATE_DESIGN_LIBRARY",enableMenu:this.context.libraryManager.areLibrariesLoaded&&!this.context.viewState.isImportExportInProgress,icon:"Add",onClick:this.createNewLibrary}),t.filter((e=>e))}render(){return a.createElement(P.Z,{content:(0,m.Iu)("DL_ADD_LIBRARIES_TOOLTIP")},a.createElement(Re,{isDisabled:!this.context.libraryManager.areLibrariesLoaded,menuContents:this.menuContents,className:"add-library-button-container",testId:"add-library-menu-view"}))}}).contextType=E.r,$e((Ye=We).prototype,"addDocContentOperation",[l.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"addDocContentOperation"),Ye.prototype),$e(Ye.prototype,"menuContents",[l.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"menuContents"),Ye.prototype),Ve=Ye))||Ve;var Xe,Je,Qe=r(68895);let et=(0,u.Pi)(((Je=class extends a.Component{get menuContents(){return[{label:"DL_EDIT_IN_SOURCE",onClick:()=>(0,Qe.Fb)(this.props.library)}]}get isDisabled(){return!(0,Qe.EZ)(this.props.library)||ye.Z.isSearchMode()}get tooltip(){return this.isDisabled?(0,m.Iu)("DL_FOOTER_READ_ONLY_TOOLTIP"):(0,m.Iu)("DL_FOOTER_DOCUMENT_LIBRARY_TOOLTIP")}render(){return a.createElement(Re,{menuContents:this.menuContents,isDisabled:this.isDisabled,menuMinWidth:0,icon:"LockMenu",tooltip:this.tooltip,className:"insert-menu-container",testId:"read-only-document-library-icon"})}}).propTypes={library:A().instanceOf(q.Zu).isRequired},Xe=Je))||Xe;var tt,rt,nt,it=r(95372),ot=r(91854),at=r(10440);let st=(0,u.Pi)(((nt=class extends a.Component{constructor(...e){super(...e),this.onDrop=()=>{this._deleteElementsAndReport(ot.Z.dragData,"Drag Drop"),ot.Z.handleDrop()},this.onClick=()=>{at.Z.groupSelection.length?this._deleteGroupAndReport(at.Z.groupSelection):this._deleteElementsAndReport(_e.Z.selection,"Click")}}get isDisabled(){const e=this.context.viewState.isStockSearchMode()||!this.context.viewState.isLibraryWritable(this.context.libraryManager.currentLibrary)||!this.context.libraryManager.currentLibrary||this.context.libraryManager.currentLibrary.isDeletedFromServer,t=!this.context.viewState.isOneUpMode()&&0===at.Z.groupSelection.length&&0===_e.Z.selection.length;return e||t}_deleteElementsAndReport(e,t){p.ZP.reportEvent("Element Operations","Element","click","delete",{event:{value:e.length},content:{category:t}}),p.ZP.setExtraEventMetrics("removeElement",{content:{category:t}}),this.context.libraryManager.deleteElements(e),p.ZP.clearExtraEventMetrics("removeElement"),_e.Z.clearSelection(),this.context.viewState.isOneUpMode()&&this.context.viewState.setStateBeforeOneUpMode()}_deleteGroupAndReport(e,t){p.ZP.setExtraEventMetrics("removeGroup",{content:{category:t}}),this.context.libraryManager.deleteGroups(e,{deleteContents:!0}),this.context.viewState.clearAllSelections()}render(){return a.createElement(j.Z,{"data-test-id":"delete-button",onDrop:this.onDrop,onClick:this.onClick,disabled:this.isDisabled,quiet:!0,tooltip:(0,m.Iu)("DL_FOOTER_DELETE_TOOLTIP"),className:"panel-footer-icon-delete"},a.createElement(b.Z,{id:"Delete",height:16}))}}).contextType=E.r,function(e,t,r,n,i){var o={};Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}((rt=nt).prototype,"isDisabled",[l.computed],Object.getOwnPropertyDescriptor(rt.prototype,"isDisabled"),rt.prototype),tt=rt))||tt;var ct,lt,ut,dt,pt=r(68548);let ht=(0,u.Pi)((dt=class extends a.Component{constructor(...e){super(...e),function(e,t,r,n){r&&Object.defineProperty(e,"overlayState",{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}(this,0,ut,this),this.hide=()=>{this.props.onClose()},this.onClick=()=>{this.context.dialogManager.openDialog("unlockToolkit"),this.hide()}}componentDidMount(){this.overlayState.toggleOverlay(),this.disposeReaction=(0,l.when)((()=>!this.overlayState.isOpen),this.props.onClose)}componentWillUnmount(){this.disposeReaction&&this.disposeReaction()}render(){return a.createElement("div",{ref:this.overlayState.setParentElement,"data-test-id":"locked-popup",onClick:this.onClick},a.createElement("div",{"data-test-id":"panel-locked-popup",className:"panel-locked-popup-container"},a.createElement("div",{className:"panel-locked-message"},(0,m.Iu)("DL_MY_TOOLKIT_UNLOCK_BUTTON_MESSAGE"))))}},dt.contextType=E.r,dt.propTypes={onClose:A().func.isRequired},ut=function(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}((lt=dt).prototype,"overlayState",[l.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new W.Z}}),ct=lt))||ct;var ft,mt,gt;function vt(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let yt=(0,u.Pi)((mt=class extends a.Component{constructor(...e){super(...e),function(e,t,r,n){r&&Object.defineProperty(e,"showMenu",{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}(this,0,gt,this),this.closePopup=()=>{this.showMenu=!1},this.onClick=()=>{this.showMenu=!0}}get popup(){if(this.showMenu)return a.createElement(ht,{onClose:this.closePopup})}get iconView(){return a.createElement(j.Z,{"data-test-id":"panel-footer-locked",className:"panel-footer-icon-unlock",onClick:this.onClick,quiet:!0},a.createElement(b.Z,{id:"LockPopup",height:17,width:16}))}render(){return a.createElement(a.Fragment,null,this.iconView,this.popup)}},gt=vt(mt.prototype,"showMenu",[l.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),vt(mt.prototype,"popup",[l.computed],Object.getOwnPropertyDescriptor(mt.prototype,"popup"),mt.prototype),vt(mt.prototype,"iconView",[l.computed],Object.getOwnPropertyDescriptor(mt.prototype,"iconView"),mt.prototype),ft=mt))||ft;var bt,_t,Et;function wt(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let xt=(0,u.Pi)(((Et=class extends a.Component{constructor(...e){super(...e),this.onOpenLibrariesManager=()=>{p.ZP.reportEvent("Manager","Launch","click","open-manager"),d.Z.openLibraryManagerWindow()},this.handleClick=()=>{this.context.viewState.clearAllSelections()}}get hasLibraryManager(){return y.Z.currentProduct.config.hasLibraryManager}get readOnlyIcon(){return a.createElement(P.Z,{placement:"top-start",content:(0,m.Iu)("DL_FOOTER_READ_ONLY_TOOLTIP")},a.createElement("div",{"data-test-id":"read-only-icon",className:"panel-footer-icon-read-only"},a.createElement(b.Z,{id:"Lock",height:16})))}get library(){return this.context.libraryManager.currentLibrary}get createGroupButton(){if(!y.Z.currentProduct.config.readOnlyGroups)return a.createElement(it.Z,null)}get addButtons(){return this.context.viewState.isRootView()?!y.Z.currentProduct.config.readOnlyPanelUI&&a.createElement(qe,null):this.context.viewState.isLocked(this.library)?a.createElement(yt,null):this.library&&this.library.documentId?a.createElement(et,{library:this.library}):!this.library||this.library.isWritable&&!this.library.isDocumentAssets?a.createElement(a.Fragment,null,this.createGroupButton,!y.Z.currentProduct.config.hideAddMenuView&&a.createElement(Fe,null),a.createElement(st,null)):this.readOnlyIcon}get openLibraryManagerButton(){if(y.Z.currentProduct.config.hasLibraryManager)return a.createElement(j.Z,{"data-test-id":"panel-footer-libraries-manager",quiet:!0,tooltip:(0,m.Iu)("DL_OPEN_LIB_MANAGER_BUTTON_TOOLTIP"),onClick:this.onOpenLibrariesManager},a.createElement(b.Z,{id:"Settings",height:16}))}get footerView(){return this.context.viewState.isRelinkLayerMode()?a.createElement(Ee,null):this.context.viewState.isRemovedElementsMode()?a.createElement(Le,null):a.createElement(a.Fragment,null,a.createElement(pt.Z,null),a.createElement("div",{className:"panel-footer-toolbar-spacing"}),this.context.viewState.isRootView()&&this.openLibraryManagerButton,!this.context.viewState.isSearchMode()&&this.addButtons)}render(){if(this.library){if(this.library.newLinkedAssetsExist||d.Z.isPreviewActive||this.library.gatedUpdates&&this.library.gatedUpdates.length>0)return a.createElement(Te,null);if(this.library.hideSyncStateFooter)return null}return a.createElement("div",{className:"panel-footer","data-test-id":"panel-footer",onClick:this.handleClick},a.createElement("div",{className:"panel-footer-divider-container"},a.createElement("div",{className:"panel-footer-divider"})),a.createElement("div",{className:c()("panel-footer-toolbar",{windows:d.Z.isWindowsOS()})},this.footerView))}}).contextType=E.r,wt((_t=Et).prototype,"createGroupButton",[l.computed],Object.getOwnPropertyDescriptor(_t.prototype,"createGroupButton"),_t.prototype),wt(_t.prototype,"addButtons",[l.computed],Object.getOwnPropertyDescriptor(_t.prototype,"addButtons"),_t.prototype),wt(_t.prototype,"openLibraryManagerButton",[l.computed],Object.getOwnPropertyDescriptor(_t.prototype,"openLibraryManagerButton"),_t.prototype),wt(_t.prototype,"footerView",[l.computed],Object.getOwnPropertyDescriptor(_t.prototype,"footerView"),_t.prototype),bt=_t))||bt;var Lt,Ot,St=r(70403),Tt=r(2169);let Pt=(0,u.Pi)((Ot=class e extends a.Component{render(){return a.createElement("div",{className:this.props.className},a.createElement("div",{"data-test-id":"stock-tips-header",className:"panel-stock-noresults-tips-header"},e._getTipsHeader()),a.createElement("div",{"data-test-id":"stock-tips-message"},e._getTips()))}static _getTipsHeader(){return(0,m.Iu)("DL_STOCK_PANEL_RESULT_TIPS_HEADER")}static _getTips(){return(0,m.Iu)("DL_STOCK_PANEL_RESULT_TIPS")}static measure(t){return{width:t,height:20+(0,Tt.fk)(e._getTipsHeader(),"panel-stock-noresults-message",t)+(0,Tt.fk)(e._getTips(),"",t)}}},Ot.propTypes={className:A().string},Lt=Ot))||Lt;var It,At;const Ct="panel-stock-search-more-button-text";let kt=(0,u.Pi)((At=class e extends a.Component{constructor(...e){super(...e),this.handleSearchOnWebClick=()=>{this.props.stockSearchState.searchOnWeb()}}static _getSearchMoreButtonText(){return(0,m.Iu)("DL_STOCK_PANEL_SEARCH_ON_WEB")}static _getTipsHeader({searchResultsCount:e}){return(0,m.Iu)("DL_STOCK_PANEL_RESULT_COUNT",{count:e})}static _canShowTips({searchResultsCount:e,findSimilarData:t}){return!t&&e<y.Z.STOCK_SEARCH_RESULT_SIZE}static _canSearchMoreOnWeb({searchResultsCount:e,findSimilarData:t}){const r=!t||!t.url&&!t.path;return e>=y.Z.STOCK_SEARCH_RESULT_SIZE&&r}_getSearchMoreButton(){return a.createElement("div",{className:"panel-stock-search-more-button-container",onClick:this.handleSearchOnWebClick,"data-test-id":"searchmore-button"},a.createElement("div",{className:Ct},e._getSearchMoreButtonText()))}_getSearchTips(){return a.createElement("div",{className:"panel-stock-search-tips-container","data-test-id":"search-tips"},a.createElement("div",null,e._getTipsHeader(this.props.stockSearchState)),a.createElement(Pt,null))}render(){return e._canSearchMoreOnWeb(this.props.stockSearchState)?this._getSearchMoreButton():e._canShowTips(this.props.stockSearchState)?this._getSearchTips():null}static measure(t,r){if(e._canSearchMoreOnWeb(r)){const r=15;return{width:t,height:(0,Tt.fk)(e._getSearchMoreButtonText(),Ct,t)+r}}return e._canShowTips(r)?{width:t,height:30+(0,Tt.fk)(e._getTipsHeader(r),"",t)+Pt.measure(t).height}:{width:0,height:0}}},At.propTypes={stockSearchState:A().instanceOf(St.Z).isRequired},It=At))||It;var Dt,Nt,Rt=r(99277),Mt=r(5849);let jt=(0,u.Pi)(((Nt=class extends a.Component{get spinnerMessage(){return(0,m.Iu)("DL_STOCK_PANEL_SEARCHING_MESSAGE")}render(){return a.createElement("div",{className:"panel-stock-message-container","data-test-id":"is-loading"},a.createElement("div",{className:"stock-loading-spinner"},a.createElement(Mt.Z,{size:"large",indeterminate:!0})),a.createElement("div",{className:"panel-stock-loading-message","data-test-id":"loading-message"},this.spinnerMessage))}}).height=80,Dt=Nt))||Dt;var Ft,Zt,Bt,Gt=r(41199),Ut=r(31870);function Ht(e,t,r,n,i){const o=[],a=e-4*(t.length-1),s=Math.floor(240*a/r);let c=n;return t.forEach((e=>{const t=Math.floor(e.thumbnail_width*s/e.thumbnail_height);o.push({x:c,y:i,height:s,width:t,isVerticalLayout:t<83}),c=c+t+4})),{rowHeight:s,layoutData:o}}let zt=(0,u.Pi)(((Bt=class extends a.Component{constructor(...e){super(...e),this._setCollection=e=>{this._collection=e},this.cellSizeAndPositionGetter=({index:e})=>0===this.props.width?{x:0,y:0,width:0,height:0}:this.items[e].layout,this.cellRenderer=({index:e,key:t,style:r})=>a.createElement("div",{key:t,style:r},this.getItemView(this.items[e].type,this.items[e].data,this.items[e].layout))}get usableWidth(){return this.props.width-16}componentWillReact(){this._collection&&this._collection.recomputeCellSizesAndPositions()}get items(){const e=this.props.stockSearchState,t=[];if(e.isLoading){const e=Math.max(jt.height,this.props.height-4),r={type:"loading",layout:{x:0,y:4,width:this.usableWidth,height:e}};return t.push(r),t}if(0===e.searchResultsCount){const e={type:"noresults",layout:{x:0,y:0,width:this.props.width,height:this.props.height}};return t.push(e),t}const r=e.searchResults;(function(e,t,r=0,n=0){if(!e)return;let i=[],o=[],a=0,s=n;return e.forEach(((n,c)=>{const l=Math.ceil(240*Math.round(n.thumbnail_width)/Math.round(n.thumbnail_height)),u=Ht(t,[...o,n],a+l,r,s),d=u.rowHeight,p=u.layoutData;if(!function(e){return 1===e.length||!e.some((({width:e,height:t})=>e<55||e<83&&t<60))}(p)){const e=Ht(t,o,a,r,s),c=e.rowHeight,u=e.layoutData;return i=i.concat(u),o=[n],a=l,void(s+=c+4)}if(o.push(n),c===e.length-1||a+l>t)return i=i.concat(p),o=[],a=0,void(s+=d+4);a+=l})),i})(r,this.usableWidth-10,10,4).forEach(((e,n)=>{t.push({type:"searchResult",layout:e,data:r[n]})}));const n=t[t.length-1],i=n?n.layout:{x:0,y:4,width:this.usableWidth,height:Math.max(jt.height,this.props.height-4)},o=kt.measure(this.usableWidth-10,this.props.stockSearchState),a={type:"footer",layout:{x:10,y:i.y+i.height+5,width:o.width,height:o.height+25}};return t.push(a),t}getItemView(e,t,r){switch(e){case"searchResult":{const e=Ut.BG(t.media_type_id,t.content_type),n=Z.Z.getStockComponent(e);return a.createElement(n,{stockSearchState:this.props.stockSearchState,asset:t,layout:r})}case"footer":return a.createElement(kt,{stockSearchState:this.props.stockSearchState});case"loading":return a.createElement(jt,null);case"noresults":return a.createElement(Rt.Z,null)}}componentDidUpdate(){d.Z.scrollBugFix&&d.Z.scrollBugFix(this._collection,this.props.height)}render(){return a.createElement("div",{"data-test-id":"results"},a.createElement(Gt.Z,{cellCount:this.items.length,cellRenderer:this.cellRenderer,cellSizeAndPositionGetter:this.cellSizeAndPositionGetter,ref:this._setCollection,width:this.props.width,height:this.props.height,className:"panel-stock-search-result-virtual-scroll"}))}}).propTypes={width:A().number.isRequired,height:A().number.isRequired,stockSearchState:A().instanceOf(St.Z).isRequired},function(e,t,r,n,i){var o={};Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}((Zt=Bt).prototype,"items",[l.computed],Object.getOwnPropertyDescriptor(Zt.prototype,"items"),Zt.prototype),Ft=Zt))||Ft;var Vt,Yt,Wt=r(5837),Kt=r(13169);const $t=()=>a.createElement("div",{className:"panel-dl-stock-error","data-test-id":"no-connection"},a.createElement("div",{className:"panel-dl-stock-no-connection-icon"},a.createElement(b.Z,{id:"CreativeCloud",height:46})),a.createElement(Wt.Z,{className:"panel-dl-stock-message",html:(0,m.Iu)("DL_STOCK_PANEL_NO_CONNECTION_MESSAGE")})),qt=()=>a.createElement("div",{className:"panel-dl-stock-error","data-test-id":"search-error"},a.createElement("div",{className:"panel-dl-stock-message"},(0,m.Iu)("DL_STOCK_PANEL_SEARCH_ERROR")));let Xt=(0,u.Pi)(((Yt=class extends a.Component{get stockSearchState(){return this.props.stockSearchState||ye.Z.stockSearchState}_getRenderComponent(){const e=this.stockSearchState,t=(e.searchResultsCount,e.isLoading),r=e.hasSearchFailed;return e.isOnLine?t?this._getSearchResults():r?a.createElement(qt,null):this._getSearchResults():a.createElement($t,null)}_getSearchResults(){const e=d.Z.AutoSizer||Kt.Z;return a.createElement(e,null,(({width:e,height:t})=>(e=e||300,t=t||600,a.createElement(zt,{stockSearchState:this.stockSearchState,width:e,height:t}))))}render(){return a.createElement("div",{"data-test-id":"stock-search",className:"panel-contents"},this._getRenderComponent())}}).propTypes={stockSearchState:A().instanceOf(St.Z)},Vt=Yt))||Vt;var Jt,Qt,er,tr=r(64027),rr=r(79012),nr=r(98405),ir=r(82562),or=r(74149),ar=r(85834),sr=r(59299);function cr(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let lr=(0,u.Pi)(((er=class extends a.Component{constructor(...e){super(...e),this._navigateToLibrary=e=>{d.Z.navigateToLibrary(e)},this.getLibraryItem=(e,t=!1)=>{var r,n;return a.createElement(fe.Z,{library:e,key:e.id,isRecent:t,onClick:this._navigateToLibrary,showContextMenuButton:null===(r=(n=y.Z.currentProduct.config).showLibraryListItemContextMenuButton)||void 0===r?void 0:r.call(n)})},this.handleDrop=e=>{(0,or.pI)(null,e)}}componentDidMount(){p.ZP.reportEvent("Navigation","Root View","render","root-view",{event:{count:this.activeLibraries.length}})}get activeLibraries(){return(0,V.l8)("active",this.context.viewState.librariesInViewOrder)}get brandLibraries(){return(0,V.l8)("brand",this.activeLibraries)}get brandsEnabled(){return ar.Z.get("brandFeatureEnabled")}get traditionalLibraries(){const e=this.brandsEnabled?"notBrand":"all";return(0,V.l8)(e,this.activeLibraries)}get recentLibrariesView(){if(!(y.Z.currentProduct.config.disableRecentLibrariesView||this.activeLibraries.length<=y.Z.RECENTS_LIST_LIBRARY_MIN))return a.createElement(a.Fragment,null,a.createElement("div",{"data-test-id":"root-view-recents-header",className:"libraries-section-header"},(0,m.Iu)("DL_SELECT_LIBRARY_LIST_HEADER_RECENT")),a.createElement("div",{"data-test-id":"root-view-recent-libraries",className:"root-view-recent-libraries"},this.context.libraryManager.recentLibraries.map((e=>this.getLibraryItem(e,!0)))))}get brandLibrariesView(){if(this.brandsEnabled&&this.brandLibraries.length)return a.createElement(a.Fragment,null,a.createElement("div",{"data-test-id":"root-view-brand-libraries-header",className:"libraries-section-header"},(0,m.Iu)("DL_BRAND_LIBRARIES")),a.createElement("div",{"data-test-id":"root-view-brand-libraries"},this.brandLibraries.map((e=>this.getLibraryItem(e,!1)))))}get traditionalLibrariesView(){return a.createElement("div",{"data-test-id":"root-view-all-libraries"},this.traditionalLibraries.map((e=>this.getLibraryItem(e,!1))))}get libraryList(){const e=[];this.recentLibrariesView&&e.push(this.recentLibrariesView),this.brandLibrariesView&&e.push(this.brandLibrariesView);const t=(this.brandsEnabled||!!e.length)&&!!this.traditionalLibraries.length;return a.createElement(a.Fragment,null,e,t&&a.createElement("div",{"data-test-id":"root-view-all-libraries-header",className:"libraries-section-header"},(0,m.Iu)(y.Z.currentProduct.config.allLibrariesSectionTitle||"DL_SELECT_LIBRARY_LIST_HEADER_ALL")),this.traditionalLibrariesView)}get discoverLibrariesMessage(){if(!this.context.libraryManager.isRestrictedAccount)return a.createElement(nr.Z,null)}get hasDisplayableLibraries(){return this.traditionalLibraries.length||this.brandsEnabled&&this.brandLibraries.length}get emptyLibraryNameSearchView(){const e=this.brandsEnabled?"DL_LIBRARY_AND_BRAND_EMPTY_VIEW_HEADER":"DL_TEAM_LIBRARY_EMPTY_VIEW_HEADER",t=this.brandsEnabled?"DL_LIBRARY_AND_BRAND_EMPTY_VIEW_SUBTITLE":"DL_TEAM_LIBRARY_EMPTY_VIEW_SUBTITLE";if(this.context.viewState.isLibraryNameSearchType())return a.createElement(ir.Z,{view:"personal",header:(0,m.Iu)(e),subtitle:(0,m.Iu)(t),graphic:"CCXEmptySearch"})}get libraryNameSearchResultsHeader(){const e=this.traditionalLibraries.length+this.brandLibraries.length;if(this.context.viewState.isLibraryNameSearchMode())return a.createElement(sr.Z,{numResults:e})}get content(){return this.hasDisplayableLibraries?a.createElement(a.Fragment,null,this.libraryNameSearchResultsHeader,this.libraryList,this.discoverLibrariesMessage):this.emptyLibraryNameSearchView}render(){return a.createElement("div",{className:"panel-contents panel-root-view","data-test-id":"panel-root-view",onDrop:this.handleDrop},a.createElement("div",{className:"root-view-library-list","data-test-id":"root-view-library-list"},this.content))}}).contextType=E.r,cr((Qt=er).prototype,"activeLibraries",[l.computed],Object.getOwnPropertyDescriptor(Qt.prototype,"activeLibraries"),Qt.prototype),cr(Qt.prototype,"brandLibraries",[l.computed],Object.getOwnPropertyDescriptor(Qt.prototype,"brandLibraries"),Qt.prototype),cr(Qt.prototype,"traditionalLibraries",[l.computed],Object.getOwnPropertyDescriptor(Qt.prototype,"traditionalLibraries"),Qt.prototype),cr(Qt.prototype,"recentLibrariesView",[l.computed],Object.getOwnPropertyDescriptor(Qt.prototype,"recentLibrariesView"),Qt.prototype),cr(Qt.prototype,"brandLibrariesView",[l.computed],Object.getOwnPropertyDescriptor(Qt.prototype,"brandLibrariesView"),Qt.prototype),cr(Qt.prototype,"traditionalLibrariesView",[l.computed],Object.getOwnPropertyDescriptor(Qt.prototype,"traditionalLibrariesView"),Qt.prototype),cr(Qt.prototype,"libraryList",[l.computed],Object.getOwnPropertyDescriptor(Qt.prototype,"libraryList"),Qt.prototype),cr(Qt.prototype,"libraryNameSearchResultsHeader",[l.computed],Object.getOwnPropertyDescriptor(Qt.prototype,"libraryNameSearchResultsHeader"),Qt.prototype),cr(Qt.prototype,"content",[l.computed],Object.getOwnPropertyDescriptor(Qt.prototype,"content"),Qt.prototype),Jt=Qt))||Jt;var ur,dr,pr=r(44853),hr=r(3303);let fr=(0,u.Pi)(((dr=class extends a.Component{get allowBlankName(){return Z.Z.allowBlankName(this.props.element)}render(){const e=this.props.element;return a.createElement(hr.Z,{item:e,allowBlankName:this.allowBlankName,placeholder:(0,m.Iu)("DL_EDIT_NAME_PLACEHOLDER"),containerClassName:"oneup-element-name-container",inputClassName:"oneup-element-name-input",textClassName:"oneup-element-name",isReadOnly:!this.context.viewState.isLibraryWritable(e.library)||e.disableRename,isShowingEditIcon:!0},e.name)}}).contextType=E.r,dr.propTypes={element:A().instanceOf(pr.Z)},ur=dr))||ur;var mr,gr,vr=r(5906),yr=r(16154);let br=(0,u.Pi)(((gr=class extends a.Component{constructor(...e){super(...e),this.componentDidMount=()=>{this.context.libraryManager.fetchLibraryCollaborations(this.element.library),p.ZP.reportEvent("Navigation","Library Panel","render","element-1-up")}}get element(){return this.props.element}get elementType(){return(Z.Z.getExtension(this.element)||(0,m.Iu)(Z.Z.getTypeName(this.element.type,!0))).toUpperCase()}get detailView(){if(this.element.type===y.Z.COLOR_THEME_ELEMENT_TYPE)return;const e=Z.Z.getComponent(this.element.type);return a.createElement("div",{className:"oneup-container oneup-detail-view-container"},a.createElement("div",{"data-test-id":"oneup-detail-view",className:"oneup-detail-view"},a.createElement(e,{element:this.element,viewMode:"thumbnail-large"})))}get elementNameAndType(){return a.createElement("div",{className:"oneup-container oneup-element-name-type-container"},a.createElement(fr,{element:this.element}),a.createElement("span",{"data-test-id":"oneup-element-type",className:"oneup-element-type"},this.elementType))}get infoPanel(){return a.createElement("div",{className:"oneup-info-panel-container"},a.createElement(yr.Z,{element:this.element}))}render(){return a.createElement("div",{className:"panel-contents","data-test-id":"oneup-view"},a.createElement("div",{className:"oneup-view-container"},this.elementNameAndType,a.createElement(vr.Z,{element:this.element,placeholder:(0,m.Iu)("DL_DESCRIPTION_PLACEHOLDER"),className:"oneup-editable-description"}),this.detailView,this.infoPanel))}}).contextType=E.r,gr.propTypes={element:A().instanceOf(pr.Z)},mr=gr))||mr;var _r,Er,wr=r(87757),xr=r(46931),Lr=r(57806),Or=r(72373);function Sr(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const Tr={"zh-TW":"zh-Hant","zh-CN":"zh-Hans"},Pr=e=>e.preventDefault();let Ir=(0,u.Pi)((Sr((Er=class extends a.Component{constructor(...e){super(...e),this._onOnline=()=>{xr.Z.panel.libraryManager.sync(),p.ZP.reportStoredOfflineEvents()},this._onOffline=()=>xr.Z.panel.libraryManager.sync(),this.onClick=()=>xr.Z.panel.libraryManager.sync(!0,!0)}componentDidMount(){if(y.Z.currentProduct.config.clearLocalStorageMap&&Or.Z.clearMap(),y.Z.currentProduct.config.preventBodyOverride)return;const e=d.Z.getLocale(),t=Lr.ZP.reactSpectrumTheme,r=Lr.ZP.appCode,n=y.Z.currentProduct.config.legacySpectrumEnabled;document.body.className=c()(`locale_${e}`,`ccl-App--${r}`,`ccl-Theme--${t}`,n&&"spectrum-enabled",{windows:d.Z.isWindowsOS()}),document.body.lang=(e=>Tr[e]||e.split("-")[0])(e),window.addEventListener("online",this._onOnline),window.addEventListener("offline",this._onOffline)}componentWillUnmount(){y.Z.currentProduct.config.preventBodyOverride||(window.removeEventListener("online",this._onOnline),window.removeEventListener("offline",this._onOffline))}get currentLibrary(){const e=xr.Z.panel.libraryManager.currentLibrary;if(e){const t=e&&e.elements.length,r=t?{event:{count:t}}:null,n=e===xr.Z.panel.libraryManager.documentAssetsContainer;setTimeout((()=>p.ZP.reportEvent("Navigation",n?"Document Assets":"Library Panel","render",n?"doc-assets":"load-library",r,e)))}return e}get contents(){return xr.Z.panel.viewState.isStockSearchMode()?a.createElement(Xt,null):xr.Z.panel.viewState.isOneUpMode()?a.createElement(br,{element:xr.Z.panel.viewState.getState().modeParams.element}):this.currentLibrary||xr.Z.panel.viewState.isLibrariesSearchMode()?a.createElement(tr.Z,null):xr.Z.panel.libraryManager.libraries.length?a.createElement(lr,null):a.createElement(rr.Z,{className:"panel-nolibs-container"})}get footerView(){if(!(y.Z.currentProduct.config.disablePanelFooter||xr.Z.panel.viewState.isRootView()&&y.Z.currentProduct.config.hideFooterInRootView))return a.createElement(xt,null)}get panelView(){const e=d.Z.getCustomPanelView();return e?a.createElement(e,null):a.createElement(a.Fragment,null,a.createElement(ge,null),a.createElement("div",{className:"panel-contents-wrapper"},this.contents,a.createElement(h.Z,null)),this.footerView)}get panel(){return!this.currentLibrary&&y.Z.currentProduct.config.errorStateComponent?xr.Z.panel.libraryManager.isResolvingASingleLibrary?a.createElement(Mt.Z,{size:"large",indeterminate:!0,"data-test-id":"ah-load-library-spinner"}):y.Z.currentProduct.config.errorStateComponent:a.createElement(a.Fragment,null,this.panelView,a.createElement(f.Z,null))}get topLevelHeader(){const e=d.Z.getCustomHeaderView();if(e)return a.createElement(e,null)}render(){return a.createElement(a.Fragment,null,a.createElement("div",{"data-test-id":"panel-container",className:"panel-container",onClick:this.onClick,onDragOverCapture:Pr,onDropCapture:Pr},a.createElement(E.o,{value:xr.Z.panel,style:{fontFamily:"inherit",height:"100%",width:"100%",position:"absolute",display:"flex",flexDirection:"column"}},this.topLevelHeader,this.panel,a.createElement(wr.Z,null))))}}).prototype,"currentLibrary",[l.computed],Object.getOwnPropertyDescriptor(Er.prototype,"currentLibrary"),Er.prototype),Sr(Er.prototype,"panelView",[l.computed],Object.getOwnPropertyDescriptor(Er.prototype,"panelView"),Er.prototype),Sr(Er.prototype,"panel",[l.computed],Object.getOwnPropertyDescriptor(Er.prototype,"panel"),Er.prototype),_r=Er))||_r},82606:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n,i,o=r(89526),a=r(2652),s=r.n(a),c=r(62631),l=r(84824);let u=(0,c.Pi)(((i=class extends o.Component{get title(){return o.createElement("div",{"data-test-id":"progressTitle",className:"panel-progressTitle"},this.props.title)}get metadata(){if(this.props.showMetaData)return o.createElement("div",{className:"panel-progressMetadata"},this.title,o.createElement("div",{"data-test-id":"progressPercent",className:"panel-progressPercent"},(0,l.Iu)("DL_PERCENTAGE",{percent:this.props.progress})))}get progressBar(){return o.createElement("div",{className:"panel-progressContainer"},o.createElement("div",{"data-test-id":"progressBar",className:"panel-progressBar",style:{width:`${this.props.progress}%`}}))}render(){return o.createElement("div",{"data-test-id":"progress",className:"panel-progress"},this.metadata,this.progressBar)}}).defaultProps={progress:0,title:"Progress",showMetaData:!0},i.propTypes={progress:s().number,title:s().string,showMetaData:s().bool},n=i))||n},98949:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d});var n,i,o=r(89526),a=r(2652),s=r.n(a),c=r(74379),l=r(85878),u=r(50265);let d=((i=class extends o.Component{get style(){var e;return null!==(e=this.props.project)&&void 0!==e&&e.gradientData?(0,c.mr)(this.props.project.gradientData):{}}get emojiRegEx(){return/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g}get gradientLetterOrEmoji(){var e;const t=null===(e=this.props.project)||void 0===e?void 0:e.name,r=t?t.match(this.emojiRegEx):null,n=t&&r&&t.startsWith(r);return o.createElement("span",{className:"ViL","data-test-id":"project-gradient-letter"},n?r:null==t?void 0:t.substring(0,1))}get loading(){return o.createElement("div",{className:"ghost-loading-wrapper"},o.createElement("div",{"data-test-id":"ghost-loading",className:"ghost-loading"}))}get content(){var e;return null!==(e=this.props.project)&&void 0!==e&&e.gradientData?this.gradientLetterOrEmoji:this.loading}render(){return o.createElement("div",{"data-test-id":"project-gradient-library",style:this.style,className:"k5a"},this.content)}}).propTypes={project:s().instanceOf(l.SZ)},p=(n=i).prototype,h="style",f=[u.computed],m=Object.getOwnPropertyDescriptor(n.prototype,"style"),g=n.prototype,v={},Object.keys(m).forEach((function(e){v[e]=m[e]})),v.enumerable=!!v.enumerable,v.configurable=!!v.configurable,("value"in v||v.initializer)&&(v.writable=!0),v=f.slice().reverse().reduce((function(e,t){return t(p,h,e)||e}),v),g&&void 0!==v.initializer&&(v.value=v.initializer?v.initializer.call(g):void 0,v.initializer=void 0),void 0===v.initializer&&(Object.defineProperty(p,h,v),v=null),n);var p,h,f,m,g,v},59299:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n,i,o=r(89526),a=r(2652),s=r.n(a),c=r(62631),l=r(16993),u=r(84824),d=r(2169),p=r(76485),h=r(99386);let f=(0,c.Pi)((i=class e extends o.Component{static getMessage(e){let t;return l.Z.isLibrariesSearchMode()?l.Z.searchState.hasSelectedLibraryFilters?(t=1===e?"DL_SEARCH_RESULT_FILTERED_LIBRARIES":"DL_SEARCH_RESULTS_FILTERED_LIBRARIES",t=(0,u.Iu)(t,{count:e})):(t=1===e?"DL_SEARCH_RESULT_LIBRARIES":"DL_SEARCH_RESULTS_LIBRARIES",t=(0,u.Iu)(t,{count:e})):l.Z.isStockSearchMode()?t=(0,u.Iu)("DL_SEARCH_RESULTS_STOCK"):l.Z.isDocumentSearchMode()||l.Z.isDocumentSearchType()?(t=1===e?"DL_SEARCH_RESULT_DOCUMENT":"DL_SEARCH_RESULTS_DOCUMENT",t=(0,u.Iu)(t,{count:e})):(t=1===e?"DL_SEARCH_RESULT_LIBRARY":"DL_SEARCH_RESULTS_LIBRARY",t=(0,u.Iu)(t,{query:l.Z.getSearchText(),count:e})),t}static getHeight(e,t){return h.Z.currentProduct.config.useStaticSearchHeaderHeight?50:(0,d.fk)(this.getMessage(e),"panel-search-result-header",t)}render(){const t=e.getMessage(this.props.numResults),r=!h.Z.currentProduct.config.disableUppercaseSearchResultsHeader;return o.createElement("div",{className:"panel-search-result-header","data-test-id":"search-result-header"},r?t.toLocaleUpperCase(p.Z.getLocale()):t)}},i.propTypes={numResults:s().number.isRequired},n=i))||n},59157:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n,i,o=r(89526),a=r(62631),s=r(24937);let c=(0,a.Pi)(((i=class extends o.Component{render(){return this.context.toastManager.toast||null}}).contextType=s.r,n=i))||n},99767:(e,t,r)=>{"use strict";r.d(t,{Z:()=>Lt});var n=r(89526),i=r(73961),o=r(2652),a=r.n(o),s=r(50265),c=r(62631),l=n.createContext(),u=n.createContext();function d(e){var t=e.children,r=n.useState(null),i=r[0],o=r[1],a=n.useRef(!1);n.useEffect((function(){return function(){a.current=!0}}),[]);var s=n.useCallback((function(e){a.current||o(e)}),[]);return n.createElement(l.Provider,{value:i},n.createElement(u.Provider,{value:s},t))}var p=function(e){return Array.isArray(e)?e[0]:e},h=function(e){if("function"==typeof e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.apply(void 0,r)}},f=function(e,t){if("function"==typeof e)return h(e,t);null!=e&&(e.current=t)},m=function(e){return e.reduce((function(e,t){var r=t[0],n=t[1];return e[r]=n,e}),{})},g="undefined"!=typeof window&&window.document&&window.document.createElement?n.useLayoutEffect:n.useEffect;function v(e,t){void 0===t&&(t=!1);var r=e.getBoundingClientRect();return{width:r.width/1,height:r.height/1,top:r.top/1,right:r.right/1,bottom:r.bottom/1,left:r.left/1,x:r.left/1,y:r.top/1}}function y(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function b(e){var t=y(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function _(e){return e instanceof y(e).Element||e instanceof Element}function E(e){return e instanceof y(e).HTMLElement||e instanceof HTMLElement}function w(e){return"undefined"!=typeof ShadowRoot&&(e instanceof y(e).ShadowRoot||e instanceof ShadowRoot)}function x(e){return e?(e.nodeName||"").toLowerCase():null}function L(e){return((_(e)?e.ownerDocument:e.document)||window.document).documentElement}function O(e){return v(L(e)).left+b(e).scrollLeft}function S(e){return y(e).getComputedStyle(e)}function T(e){var t=S(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function P(e,t,r){void 0===r&&(r=!1);var n=E(t),i=E(t)&&function(e){var t=e.getBoundingClientRect(),r=t.width/e.offsetWidth||1,n=t.height/e.offsetHeight||1;return 1!==r||1!==n}(t),o=L(t),a=v(e,i),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&(("body"!==x(t)||T(o))&&(s=function(e){return e!==y(e)&&E(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:b(e);var t}(t)),E(t)?((c=v(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=O(o))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function I(e){var t=v(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function A(e){return"html"===x(e)?e:e.assignedSlot||e.parentNode||(w(e)?e.host:null)||L(e)}function C(e){return["html","body","#document"].indexOf(x(e))>=0?e.ownerDocument.body:E(e)&&T(e)?e:C(A(e))}function k(e,t){var r;void 0===t&&(t=[]);var n=C(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),o=y(n),a=i?[o].concat(o.visualViewport||[],T(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(k(A(a)))}function D(e){return["table","td","th"].indexOf(x(e))>=0}function N(e){return E(e)&&"fixed"!==S(e).position?e.offsetParent:null}function R(e){for(var t=y(e),r=N(e);r&&D(r)&&"static"===S(r).position;)r=N(r);return r&&("html"===x(r)||"body"===x(r)&&"static"===S(r).position)?t:r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&E(e)&&"fixed"===S(e).position)return null;for(var r=A(e);E(r)&&["html","body"].indexOf(x(r))<0;){var n=S(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var M="top",j="bottom",F="right",Z="left",B="auto",G=[M,j,F,Z],U="start",H="end",z="viewport",V="popper",Y=G.reduce((function(e,t){return e.concat([t+"-"+U,t+"-"+H])}),[]),W=[].concat(G,[B]).reduce((function(e,t){return e.concat([t,t+"-"+U,t+"-"+H])}),[]),K=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function $(e){var t=new Map,r=new Set,n=[];function i(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&i(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||i(e)})),n}var q={placement:"bottom",modifiers:[],strategy:"absolute"};function X(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}var J={passive:!0};const Q={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=void 0===i||i,a=n.resize,s=void 0===a||a,c=y(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach((function(e){e.addEventListener("scroll",r.update,J)})),s&&c.addEventListener("resize",r.update,J),function(){o&&l.forEach((function(e){e.removeEventListener("scroll",r.update,J)})),s&&c.removeEventListener("resize",r.update,J)}},data:{}};function ee(e){return e.split("-")[0]}function te(e){return e.split("-")[1]}function re(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ne(e){var t,r=e.reference,n=e.element,i=e.placement,o=i?ee(i):null,a=i?te(i):null,s=r.x+r.width/2-n.width/2,c=r.y+r.height/2-n.height/2;switch(o){case M:t={x:s,y:r.y-n.height};break;case j:t={x:s,y:r.y+r.height};break;case F:t={x:r.x+r.width,y:c};break;case Z:t={x:r.x-n.width,y:c};break;default:t={x:r.x,y:r.y}}var l=o?re(o):null;if(null!=l){var u="y"===l?"height":"width";switch(a){case U:t[l]=t[l]-(r[u]/2-n[u]/2);break;case H:t[l]=t[l]+(r[u]/2-n[u]/2)}}return t}const ie={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=ne({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var oe=Math.max,ae=Math.min,se=Math.round,ce={top:"auto",right:"auto",bottom:"auto",left:"auto"};function le(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=!0===u?function(e){var t=e.x,r=e.y,n=window.devicePixelRatio||1;return{x:se(se(t*n)/n)||0,y:se(se(r*n)/n)||0}}(a):"function"==typeof u?u(a):a,p=d.x,h=void 0===p?0:p,f=d.y,m=void 0===f?0:f,g=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),b=Z,_=M,E=window;if(l){var w=R(r),x="clientHeight",O="clientWidth";w===y(r)&&"static"!==S(w=L(r)).position&&"absolute"===s&&(x="scrollHeight",O="scrollWidth"),i!==M&&(i!==Z&&i!==F||o!==H)||(_=j,m-=w[x]-n.height,m*=c?1:-1),i!==Z&&(i!==M&&i!==j||o!==H)||(b=F,h-=w[O]-n.width,h*=c?1:-1)}var T,P=Object.assign({position:s},l&&ce);return c?Object.assign({},P,((T={})[_]=v?"0":"",T[b]=g?"0":"",T.transform=(E.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",T)):Object.assign({},P,((t={})[_]=v?m+"px":"",t[b]=g?h+"px":"",t.transform="",t))}const ue={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=void 0===i?[0,0]:i,a=W.reduce((function(e,r){return e[r]=function(e,t,r){var n=ee(e),i=[Z,M].indexOf(n)>=0?-1:1,o="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Z,F].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,o),e}),{}),s=a[t.placement],c=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=a}};var de={left:"right",right:"left",bottom:"top",top:"bottom"};function pe(e){return e.replace(/left|right|bottom|top/g,(function(e){return de[e]}))}var he={start:"end",end:"start"};function fe(e){return e.replace(/start|end/g,(function(e){return he[e]}))}function me(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&w(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ge(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ve(e,t){return t===z?ge(function(e){var t=y(e),r=L(e),n=t.visualViewport,i=r.clientWidth,o=r.clientHeight,a=0,s=0;return n&&(i=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=n.offsetLeft,s=n.offsetTop)),{width:i,height:o,x:a+O(e),y:s}}(e)):E(t)?function(e){var t=v(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):ge(function(e){var t,r=L(e),n=b(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=oe(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=oe(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+O(e),c=-n.scrollTop;return"rtl"===S(i||r).direction&&(s+=oe(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}(L(e)))}function ye(e,t,r){var n="clippingParents"===t?function(e){var t=k(A(e)),r=["absolute","fixed"].indexOf(S(e).position)>=0&&E(e)?R(e):e;return _(r)?t.filter((function(e){return _(e)&&me(e,r)&&"body"!==x(e)})):[]}(e):[].concat(t),i=[].concat(n,[r]),o=i[0],a=i.reduce((function(t,r){var n=ve(e,r);return t.top=oe(n.top,t.top),t.right=ae(n.right,t.right),t.bottom=ae(n.bottom,t.bottom),t.left=oe(n.left,t.left),t}),ve(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function be(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function _e(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function Ee(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=void 0===n?e.placement:n,o=r.boundary,a=void 0===o?"clippingParents":o,s=r.rootBoundary,c=void 0===s?z:s,l=r.elementContext,u=void 0===l?V:l,d=r.altBoundary,p=void 0!==d&&d,h=r.padding,f=void 0===h?0:h,m=be("number"!=typeof f?f:_e(f,G)),g=u===V?"reference":V,y=e.rects.popper,b=e.elements[p?g:u],E=ye(_(b)?b:b.contextElement||L(e.elements.popper),a,c),w=v(e.elements.reference),x=ne({reference:w,element:y,strategy:"absolute",placement:i}),O=ge(Object.assign({},y,x)),S=u===V?O:w,T={top:E.top-S.top+m.top,bottom:S.bottom-E.bottom+m.bottom,left:E.left-S.left+m.left,right:S.right-E.right+m.right},P=e.modifiersData.offset;if(u===V&&P){var I=P[i];Object.keys(T).forEach((function(e){var t=[F,j].indexOf(e)>=0?1:-1,r=[M,j].indexOf(e)>=0?"y":"x";T[e]+=I[r]*t}))}return T}function we(e,t,r){return oe(e,ae(t,r))}const xe={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=void 0===i||i,a=r.altAxis,s=void 0!==a&&a,c=r.boundary,l=r.rootBoundary,u=r.altBoundary,d=r.padding,p=r.tether,h=void 0===p||p,f=r.tetherOffset,m=void 0===f?0:f,g=Ee(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),v=ee(t.placement),y=te(t.placement),b=!y,_=re(v),E="x"===_?"y":"x",w=t.modifiersData.popperOffsets,x=t.rects.reference,L=t.rects.popper,O="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,S={x:0,y:0};if(w){if(o||s){var T="y"===_?M:Z,P="y"===_?j:F,A="y"===_?"height":"width",C=w[_],k=w[_]+g[T],D=w[_]-g[P],N=h?-L[A]/2:0,B=y===U?x[A]:L[A],G=y===U?-L[A]:-x[A],H=t.elements.arrow,z=h&&H?I(H):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Y=V[T],W=V[P],K=we(0,x[A],z[A]),$=b?x[A]/2-N-K-Y-O:B-K-Y-O,q=b?-x[A]/2+N+K+W+O:G+K+W+O,X=t.elements.arrow&&R(t.elements.arrow),J=X?"y"===_?X.clientTop||0:X.clientLeft||0:0,Q=t.modifiersData.offset?t.modifiersData.offset[t.placement][_]:0,ne=w[_]+$-Q-J,ie=w[_]+q-Q;if(o){var se=we(h?ae(k,ne):k,C,h?oe(D,ie):D);w[_]=se,S[_]=se-C}if(s){var ce="x"===_?M:Z,le="x"===_?j:F,ue=w[E],de=ue+g[ce],pe=ue-g[le],he=we(h?ae(de,ne):de,ue,h?oe(pe,ie):pe);w[E]=he,S[E]=he-ue}}t.modifiersData[n]=S}},requiresIfExists:["offset"]},Le={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,s=ee(r.placement),c=re(s),l=[Z,F].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return be("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:_e(e,G))}(i.padding,r),d=I(o),p="y"===c?M:Z,h="y"===c?j:F,f=r.rects.reference[l]+r.rects.reference[c]-a[c]-r.rects.popper[l],m=a[c]-r.rects.reference[c],g=R(o),v=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,y=f/2-m/2,b=u[p],_=v-d[l]-u[h],E=v/2-d[l]/2+y,w=we(b,E,_),x=c;r.modifiersData[n]=((t={})[x]=w,t.centerOffset=w-E,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&me(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Oe(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Se(e){return[M,F,j,Z].some((function(t){return e[t]>=0}))}var Te=function(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,i=t.defaultOptions,o=void 0===i?q:i;return function(e,t,r){void 0===r&&(r=o);var i,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},q,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],l=!1,u={state:s,setOptions:function(r){var i="function"==typeof r?r(s.options):r;d(),s.options=Object.assign({},o,s.options,i),s.scrollParents={reference:_(e)?k(e):e.contextElement?k(e.contextElement):[],popper:k(t)};var a=function(e){var t=$(e);return K.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}(function(e){var t=e.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(n,s.options.modifiers)));return s.orderedModifiers=a.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,i=e.effect;if("function"==typeof i){var o=i({state:s,name:t,instance:u,options:n});c.push(o||function(){})}})),u.update()},forceUpdate:function(){if(!l){var e=s.elements,t=e.reference,r=e.popper;if(X(t,r)){s.rects={reference:P(t,R(r),"fixed"===s.options.strategy),popper:I(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var i=s.orderedModifiers[n],o=i.fn,a=i.options,c=void 0===a?{}:a,d=i.name;"function"==typeof o&&(s=o({state:s,options:c,name:d,instance:u})||s)}else s.reset=!1,n=-1}}},update:(i=function(){return new Promise((function(e){u.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(i())}))}))),a}),destroy:function(){d(),l=!0}};if(!X(e,t))return u;function d(){c.forEach((function(e){return e()})),c=[]}return u.setOptions(r).then((function(e){!l&&r.onFirstUpdate&&r.onFirstUpdate(e)})),u}}({defaultModifiers:[Q,ie,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=void 0===n||n,o=r.adaptive,a=void 0===o||o,s=r.roundOffsets,c=void 0===s||s,l={placement:ee(t.placement),variation:te(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,le(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,le(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},i=t.elements[e];E(i)&&x(i)&&(Object.assign(i.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});E(n)&&x(n)&&(Object.assign(n.style,o),Object.keys(i).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},ue,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=void 0===i||i,a=r.altAxis,s=void 0===a||a,c=r.fallbackPlacements,l=r.padding,u=r.boundary,d=r.rootBoundary,p=r.altBoundary,h=r.flipVariations,f=void 0===h||h,m=r.allowedAutoPlacements,g=t.options.placement,v=ee(g),y=c||(v!==g&&f?function(e){if(ee(e)===B)return[];var t=pe(e);return[fe(e),t,fe(t)]}(g):[pe(g)]),b=[g].concat(y).reduce((function(e,r){return e.concat(ee(r)===B?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,l=void 0===c?W:c,u=te(n),d=u?s?Y:Y.filter((function(e){return te(e)===u})):G,p=d.filter((function(e){return l.indexOf(e)>=0}));0===p.length&&(p=d);var h=p.reduce((function(t,r){return t[r]=Ee(e,{placement:r,boundary:i,rootBoundary:o,padding:a})[ee(r)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:r,boundary:u,rootBoundary:d,padding:l,flipVariations:f,allowedAutoPlacements:m}):r)}),[]),_=t.rects.reference,E=t.rects.popper,w=new Map,x=!0,L=b[0],O=0;O<b.length;O++){var S=b[O],T=ee(S),P=te(S)===U,I=[M,j].indexOf(T)>=0,A=I?"width":"height",C=Ee(t,{placement:S,boundary:u,rootBoundary:d,altBoundary:p,padding:l}),k=I?P?F:Z:P?j:M;_[A]>E[A]&&(k=pe(k));var D=pe(k),N=[];if(o&&N.push(C[T]<=0),s&&N.push(C[k]<=0,C[D]<=0),N.every((function(e){return e}))){L=S,x=!1;break}w.set(S,N)}if(x)for(var R=function(e){var t=b.find((function(t){var r=w.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return L=t,"break"},H=f?3:1;H>0&&"break"!==R(H);H--);t.placement!==L&&(t.modifiersData[n]._skip=!0,t.placement=L,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},xe,Le,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Ee(t,{elementContext:"reference"}),s=Ee(t,{altBoundary:!0}),c=Oe(a,n),l=Oe(s,i,o),u=Se(c),d=Se(l);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),Pe=r(15439),Ie=r.n(Pe),Ae=[],Ce=function(){},ke=function(){return Promise.resolve(null)},De=[];function Ne(e){var t=e.placement,r=void 0===t?"bottom":t,i=e.strategy,o=void 0===i?"absolute":i,a=e.modifiers,s=void 0===a?De:a,c=e.referenceElement,u=e.onFirstUpdate,d=e.innerRef,h=e.children,v=n.useContext(l),y=n.useState(null),b=y[0],_=y[1],E=n.useState(null),w=E[0],x=E[1];n.useEffect((function(){f(d,b)}),[d,b]);var L=n.useMemo((function(){return{placement:r,strategy:o,onFirstUpdate:u,modifiers:[].concat(s,[{name:"arrow",enabled:null!=w,options:{element:w}}])}}),[r,o,u,s,w]),O=function(e,t,r){void 0===r&&(r={});var i=n.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Ae},a=n.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],c=a[1],l=n.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,r=Object.keys(t.elements);c({styles:m(r.map((function(e){return[e,t.styles[e]||{}]}))),attributes:m(r.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),u=n.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[l,{name:"applyStyles",enabled:!1}])};return Ie()(i.current,e)?i.current||e:(i.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,l]),d=n.useRef();return g((function(){d.current&&d.current.setOptions(u)}),[u]),g((function(){if(null!=e&&null!=t){var n=(r.createPopper||Te)(e,t,u);return d.current=n,function(){n.destroy(),d.current=null}}}),[e,t,r.createPopper]),{state:d.current?d.current.state:null,styles:s.styles,attributes:s.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}}(c||v,b,L),S=O.state,T=O.styles,P=O.forceUpdate,I=O.update,A=n.useMemo((function(){return{ref:_,style:T.popper,placement:S?S.placement:r,hasPopperEscaped:S&&S.modifiersData.hide?S.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:S&&S.modifiersData.hide?S.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:T.arrow,ref:x},forceUpdate:P||Ce,update:I||ke}}),[_,x,r,S,T,I,P]);return p(h)(A)}var Re=r(80919),Me=r.n(Re);function je(e){var t=e.children,r=e.innerRef,i=n.useContext(u),o=n.useCallback((function(e){f(r,e),h(i,e)}),[r,i]);return n.useEffect((function(){return function(){return f(r,null)}})),n.useEffect((function(){Me()(Boolean(i),"`Reference` should not be used outside of a `Manager` component.")}),[i]),p(t)({ref:o})}var Fe=r(76485),Ze=r(99386),Be=r(64403),Ge=r.n(Be),Ue=r(24937),He=r(14241),ze=r(83377),Ve=r(28086),Ye=r(94859),We=r(82530);const Ke=["className"];function $e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(r),!0).forEach((function(t){Xe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$e(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Xe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Je(){Je=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Qe(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const et=(0,Ye.Z)(r(10387)).default;let tt;We.env.EXCLUDE_SWC||(tt=new Ve.t(["sp-tooltip"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Qe(o,n,i,a,s,"next",e)}function s(e){Qe(o,n,i,a,s,"throw",e)}a(void 0)}))}}(Je().mark((function e(){var t,n;return Je().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(6817)]).then(r.bind(r,32324));case 2:return t=e.sent,n=t.Tooltip,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const rt=(0,ze.Z)({displayName:"Tooltip",fallback:et,swcLoader:tt,swcProps:e=>{const t=e.className;return qe(qe({},function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,Ke)),{},{class:t})},tagName:"sp-tooltip"});var nt=r(30222),it=r(82530);const ot=["trigger","children","className","onHide","onShow","disabled","delayShow","boundariesElement","show"];function at(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function st(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?at(Object(r),!0).forEach((function(t){ct(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):at(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ct(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lt(){lt=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ut(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const dt=(0,Ye.Z)(r(3074)).default;let pt;it.env.EXCLUDE_SWC||(pt=new Ve.t(["overlay-trigger"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ut(o,n,i,a,s,"next",e)}function s(e){ut(o,n,i,a,s,"throw",e)}a(void 0)}))}}(lt().mark((function e(){var t,n;return lt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(128),r.e(4537)]).then(r.bind(r,56167));case 2:return t=e.sent,n=t.OverlayTrigger,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const ht={left:"left",right:"right",top:"top",bottom:"bottom","top left":"top-start","top right":"top-end","bottom left":"bottom-start","bottom right":"bottom-end","left top":"left-start","left bottom":"left-end","right top":"right-start","right bottom":"right-end"},ft=["hover","focus"],mt=(0,ze.Z)({displayName:"OverlayTrigger",fallback:dt,swcLoader:pt,SWCWrapper:function(e){const t=e.trigger,r=void 0===t?ft:t,i=e.children,o=e.className,a=e.onHide,s=e.onShow,c=e.disabled,l=e.delayShow,u=(e.boundariesElement,e.show,function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,ot)),d=n.Children.toArray(i),p=(0,n.useRef)(null),h="object"==typeof r?r:r?[r]:[],f=[],m=[],g=e.placement?ht[e.placement]:"left";if((0,n.useEffect)((()=>{const e=null==p?void 0:p.current;return e&&s&&e.addEventListener("sp-opened",s),e&&a&&e.addEventListener("sp-closed",a),()=>{e&&s&&e.removeEventListener("sp-opened",s),e&&a&&e.removeEventListener("sp-closed",a)}}),[s,a]),h.forEach((e=>{null!=e&&e.includes("hover")||null!=e&&e.includes("focus")?f.push("hover-content"):null!=e&&e.includes("click")?f.push("click-content"):null!=e&&e.includes("longClick")&&f.push("longpress-content")})),f.length&&2===d.length){var v,y;const e=d[0],t=d[1];if(null!==(v=e.props)&&void 0!==v&&v.slot)m.push(e);else{const t=n.cloneElement(e,{slot:"trigger"});m.push(t)}null!==(y=t.props)&&void 0!==y&&y.slot?m.push(t):f.forEach((e=>{const r=n.cloneElement(t,{slot:e,delayed:!!l||void 0});m.push(r)}))}const b=(0,nt.Co)("overlay-trigger");return n.createElement(b,st(st(st({},u),(0,nt.cd)({disabled:c})),{},{placement:g,class:o,ref:p}),m.length?m:i)},tagName:"overlay-trigger"});var gt,vt,yt,bt,_t,Et;function wt(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let xt=(0,c.Pi)(((vt=class extends n.Component{render(){const e=this.context||document.querySelector("#content")||document.querySelector("body"),t=[{name:"computeStyles",options:{gpuAcceleration:!Fe.Z.disableGPUTooltips}}];return i.createPortal(n.createElement(Ne,{placement:this.props.placement,modifiers:t},(({placement:e,ref:t,style:r})=>n.createElement("div",{style:r,ref:t,"data-test-id":"tooltip-container",className:"tooltip","data-placement":e},this.props.children))),e)}}).contextType=He.w,vt.propTypes={children:a().node,delay:a().number,placement:a().string},gt=vt))||gt,Lt=(0,c.Pi)(((Et=class extends n.Component{constructor(...e){var t;super(...e),(t=_t)&&Object.defineProperty(this,"isOpen",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0}),this.handleMouseOver=e=>{e&&e.stopPropagation(),this.context.viewManager.isTooltipActive?this.show():(clearTimeout(this._tooltipDelayTimer),this._tooltipDelayTimer=setTimeout((()=>this.show()),this.props.delay))},this.handleMouseOut=()=>{clearTimeout(this._tooltipDelayTimer),clearTimeout(this._visibleTimer),this.hide()},this.handleMouseDown=()=>{this.context.viewManager.isTooltipActive&&this.handleMouseOut()}}componentDidUpdate(e){this.props.children!==e.children&&this.isOpen&&this.hide()}show(){this.disabled||(this.isOpen=!0,this.context.viewManager.setTooltipActive(),clearTimeout(this._visibleTimer),this._visibleTimer=setTimeout(this.handleMouseOut,7e3))}hide(){this.isOpen=!1,this.context.viewManager.resetTooltip()}get disabled(){return"false"===Ze.Z.showTooltips||this.props.disable||!this.content.length||!this.content[0]}get content(){return Fe.Z.isMobileView?[]:Array.isArray(this.props.content)?this.props.content:[this.props.content]}get tooltipContent(){return this.content.map(((e,t)=>e&&e.divider?n.createElement("div",{key:t.toString(),className:"panel-tooltip-divider"}):n.createElement("div",{key:t.toString(),"data-test-id":"tooltip-content",className:"tooltipContent"},e)))}getSpectrumTooltip(e){return this.content.length&&this.content[0]?n.createElement(mt,{dir:"ltr",className:"tooltip-overlay-trigger","data-test-id":"tooltip-container-with-content",fallback:e,placement:this.props.placement,delay:this.props.delay,disabled:this.disabled||null,trigger:"hover"},n.createElement("div",{className:"tooltipTriggerWrapper"},this.props.children),n.createElement(rt,{dir:"ltr"},this.tooltipContent)):n.createElement("div",{"data-test-id":"no-content-tooltip-wrapper",className:"tooltipTriggerWrapper"},this.props.children)}render(){let e;const t=Fe.Z.Tooltip;return t?n.createElement(t,{className:this.props.className,content:this.content,disable:this.disabled,featureId:this.props.featureId,delay:this.props.delay},this.props.children):(e=n.createElement(d,null,n.createElement(je,null,(({ref:e})=>n.createElement("div",{className:Ge()("tooltip-ref",this.props.className),ref:e,onMouseOver:this.handleMouseOver,onMouseOut:this.handleMouseOut,onMouseDown:this.handleMouseDown},this.props.children))),this.isOpen&&n.createElement(xt,{placement:this.props.placement},this.tooltipContent)),n.createElement("div",{className:Ge()("tooltip-container",this.props.className)},this.getSpectrumTooltip(e)))}}).contextType=Ue.r,Et.defaultProps={content:"",delay:1e3,placement:"top"},Et.propTypes={children:a().node,featureId:a().string,content:a().oneOfType([a().string,a().array]),delay:a().number,placement:a().string,disable:a().bool,className:a().string},_t=wt((bt=Et).prototype,"isOpen",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),wt(bt.prototype,"tooltipContent",[s.computed],Object.getOwnPropertyDescriptor(bt.prototype,"tooltipContent"),bt.prototype),yt=bt))||yt},87757:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d});var n=r(89526),i=r(96195),o=r.n(i),a=r(14924),s=r(98218),c=r(46931),l=r(24937),u=r(85834);class d extends n.Component{constructor(...e){super(...e),this.handleOpenDashboardClick=()=>{this.context.dialogManager.openDialog("jsApi2Dashboard")}}get apiVersion(){var e;return(null===(e=c.Z.panel.libraryManager.privateCollection)||void 0===e?void 0:e.apiVersion)||1}get panelVersion(){const e=s.Z.getPluginVersion();return"99.0.0"===e?"DEV":e}render(){return u.Z.get("showDebugHUD")?n.createElement("div",{className:"ftr"},2===this.apiVersion?n.createElement(o(),{icon:n.createElement(a.default,null),variant:"tool",onClick:this.handleOpenDashboardClick}):void 0,n.createElement("div",null,n.createElement("div",null,"JS API Version: ",this.apiVersion),n.createElement("div",null,"Panel Version: ",this.panelVersion))):null}}d.contextType=l.r},51385:(e,t,r)=>{"use strict";r.d(t,{Z:()=>y});var n,i,o=r(89526),a=r(64403),s=r.n(a),c=r(2652),l=r.n(c),u=r(62631),d=r(76485),p=r(84824),h=r(27611),f=r(2169),m=r(52844),g=r(73435),v=r(99386);let y=(0,u.Pi)((i=class e extends o.Component{constructor(...e){super(...e),this.onClickCancel=e=>{e&&e.stopPropagation(),this.props.close&&this.props.close(),this.props.onClickCancel&&this.props.onClickCancel()},this.onClickOK=e=>{e&&e.stopPropagation(),this.props.close&&this.props.close(),this.props.onClickOK&&this.props.onClickOK()},this.onClickSecondary=e=>{e&&e.stopPropagation(),this.props.close&&this.props.close(),this.props.onClickSecondary&&this.props.onClickSecondary()},this.onClickOutsideDialog=e=>{!this.props.closeOnOutsideClick||this._dialogElement&&(0,f.rP)(e,this._dialogElement)||this.onClickCancel()},this.handleKeyDown=(e,t)=>{"Enter"===e.key&&t(e)},this.setDialogElement=e=>{this._dialogElement=e,setTimeout((()=>this._dialogElement&&this._dialogElement.focus()))}}get okButton(){return this.props.okButtonText&&o.createElement(m.Z,{"data-test-id":"dialog-ok-button",disabled:!this.props.okButtonEnabled,onClick:this.onClickOK,variant:"warning"===this.props.mode?"warning":"cta",treatment:"fill",uxpUseNative:!1},(0,p.Iu)(this.props.okButtonText))}get cancelButton(){return this.props.cancelButtonText&&o.createElement(m.Z,{"data-test-id":"dialog-cancel-button",onClick:this.onClickCancel,variant:"secondary",uxpUseNative:!1},(0,p.Iu)(this.props.cancelButtonText))}get secondaryButton(){return this.props.secondaryButtonText&&o.createElement(m.Z,{"data-test-id":"dialog-secondary-button",disabled:!this.props.secondaryButtonEnabled,onClick:this.onClickSecondary,variant:"secondary",uxpUseNative:!1},(0,p.Iu)(this.props.secondaryButtonText))}get footer(){return d.Z.isWindowsOS()?o.createElement(g.Z,null,this.okButton,this.secondaryButton,this.cancelButton):o.createElement(g.Z,null,this.cancelButton,this.secondaryButton,this.okButton)}get icon(){var t,r;return null===(t=(r=e._icons)[this.props.mode])||void 0===t?void 0:t.call(r,v.Z.currentProduct.config.dialogIconSize||12)}render(){const e=s()("panel-dialog-window"),t=s()("panel-dialog-title",[`panel-dialog-${this.props.mode}-color`]);return o.createElement("div",{"data-test-id":"dialog-wrapper",className:s()(this.props.className,"panel-dialog"),onClick:this.onClickOutsideDialog},o.createElement("div",{"data-test-id":"dialog-window",className:e,ref:this.setDialogElement,tabIndex:"-1"},o.createElement("div",{className:"panel-dialog-container"},o.createElement("div",{className:"panel-dialog-divider-container"},o.createElement("div",{className:"panel-dialog-divider"})),this.props.title&&o.createElement("div",{className:"panel-dialog-header"},o.createElement("div",{"data-test-id":"dialog-title",className:t},this.props.title),this.icon),o.createElement("div",{className:"panel-dialog-contents"},this.props.children),o.createElement("div",{"data-test-id":"dialog-footer",className:"panel-dialog-footer"},this.footer))))}},i.defaultProps={cancelButtonText:"DL_CANCEL",closeOnOutsideClick:!0,mode:"normal",okButtonText:"DL_OK",okButtonEnabled:!0,secondaryButtonEnabled:!0},i.propTypes={title:l().string,okButtonText:l().string,okButtonEnabled:l().bool,cancelButtonText:l().string,secondaryButtonText:l().string,secondaryButtonEnabled:l().bool,onClickOK:l().func,onClickCancel:l().func,onClickSecondary:l().func,close:l().func,closeOnOutsideClick:l().bool,children:l().node,className:l().string,mode:l().oneOf(["normal","info","error","cloud","warning"])},i._icons={error:e=>o.createElement("div",{"data-test-id":"error-icon",className:"panel-dialog-error-color panel-dialog-error-icon"},o.createElement(h.Z,{id:"Error",height:e})),info:e=>o.createElement("div",{"data-test-id":"info-icon",className:"panel-dialog-info-color panel-dialog-info-icon"},o.createElement(h.Z,{id:"Info",height:e})),cloud:()=>o.createElement("div",{"data-test-id":"cloud-icon",className:"panel-dialog-cloud-icon"},o.createElement(h.Z,{id:"AdobeFonts",height:18}))},n=i))||n},145:(e,t,r)=>{"use strict";r.d(t,{Z:()=>x});var n,i,o=r(89526),a=r(2652),s=r.n(a),c=r(64403),l=r.n(c),u=r(62631),d=r(45079),p=r(3074),h=r.n(p),f=r(10387),m=r.n(f),g=r(96195),v=r.n(g),y=r(84824),b=r(24937),_=r(51385),E=r(76485),w=r(99386);let x=(0,u.Pi)(((i=class extends o.Component{constructor(...e){super(...e),this.onCreate=()=>{this.context.dialogManager.openDialog("createLibrary")},this.onPublish=()=>{this.props.close(),this.context.documentActions.publish(this.context.libraryManager.documentAssetsContainer).catch((()=>{}))}}get publishState(){return this.context.libraryManager.publishState}get createSection(){return this.getSection({id:"create",header:this.getHeader({title:"DL_CREATE_PUBLISH_CREATE_TITLE"}),items:this.getBulletItems([{id:"create-1",label:"DL_CREATE_PUBLISH_CREATE_BULLET_1"},{id:"create-2",label:"DL_CREATE_PUBLISH_CREATE_BULLET_2"}]),message:"DL_CREATE_PUBLISH_CREATE_MESSAGE",action:this.getAction({variant:"secondary",label:"DL_CREATE_PUBLISH_CREATE_ACTION",onClick:this.onCreate})})}get disabledMessage(){return{OFFLINE:"DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_OFFLINE",READ_ONLY:"DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_READ_ONLY",QUOTA:"DL_OVER_QUOTA_LIBRARY_ERROR_BODY",EMPTY:"DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_EMPTY",MISSING_STORAGE:"DL_SAVE_CLOUD_DOC_MESSAGE",UPGRADE:"DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_UPGRADE_TOOLTIP"}[this.publishState.disabledStatus]}get publishSection(){const e=!this.publishState.canPublish||this.publishState.canUpgrade,t=this.disabledMessage,r=this.publishState.canUpgrade;return this.getSection({id:r?"upgrade":"publish",header:this.getHeader({label:"DL_NEW",title:"DL_CREATE_PUBLISH_PUBLISH_TITLE"}),items:this.getBulletItems([{id:"publish-1",label:"DL_CREATE_PUBLISH_PUBLISH_BULLET_1"},{id:"publish-2",label:"DL_CREATE_PUBLISH_PUBLISH_BULLET_2"}]),message:"DL_CREATE_PUBLISH_PUBLISH_MESSAGE",action:this.getAction({variant:"cta",label:"DL_CREATE_PUBLISH_PUBLISH_ACTION",onClick:this.onPublish,disabled:e,tooltip:t})})}getHeader({title:e}){return o.createElement("div",{className:"create-publish-section-header"},o.createElement(d.default,{variant:"subtitle1","data-test-id":"create-publish-section-title"},(0,y.Iu)(e)))}getBulletItems(e){return o.createElement("div",{className:l()({"uxp-bullet-list":!E.Z.supportsCSSListItem})},e.map((({label:e,id:t})=>o.createElement("div",{key:t,className:"dialog-bullet-item","data-test-id":`create-publish-section-item-${t}`},(0,y.Iu)(e)))))}getAction({variant:e,label:t,onClick:r,disabled:n,tooltip:i}){return o.createElement("div",{className:"create-publish-section-action","data-test-id":"create-publish-section-action"},o.createElement(h(),{boundariesElement:"container",placement:"top",trigger:["hover","focus"],disabled:!n},o.createElement(v(),{"data-test-id":"create-publish-section-action-button",className:l()("panel-dialog-button",e,{disabled:n}),disabled:n,onClick:r,label:(0,y.Iu)(t),variant:e,uxpUseNative:!1,style:"SPRK"===w.Z.currentProduct.config.code&&"DL_CREATE_PUBLISH_PUBLISH_ACTION"===t&&n?{borderColor:"#d3d3d3"}:{}}),o.createElement(m(),{ref:e=>this.tooltipRef=e},(0,y.Iu)(i))))}getSection({id:e,header:t,items:r,message:n,action:i}){return o.createElement("div",{className:l()("create-publish-section",e),"data-test-id":`create-publish-section-${e}`},t,r,o.createElement("span",{className:"create-publish-section-message","data-test-id":"create-publish-section-message"},(0,y.Iu)(n)),i)}render(){return o.createElement(_.Z,{title:(0,y.Iu)("DL_CREATE_DESIGN_LIBRARY"),className:"panel-dialog-create-publish-library",close:this.props.close},o.createElement("div",{className:"create-publish-body"},this.createSection,this.publishSection))}}).dialogName="createOrPublishLibrary",i.contextType=b.r,i.propTypes={close:s().func},n=i))||n},37182:(e,t,r)=>{"use strict";r.d(t,{Z:()=>B});var n,i,o,a,s,c,l,u,d,p,h=r(89526),f=r(2652),m=r.n(f),g=r(62631),v=r(64403),y=r.n(v),b=r(50265),_=r(88166),E=r.n(_),w=r(45079),x=r(10387),L=r.n(x),O=r(3074),S=r.n(O),T=r(51385),P=r(84824),I=r(24937),A=r(17632),C=r(27299),k=r(17179),D=r(52422),N=r(5837),R=r(27611),M=r(76485),j=r(99525);function F(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function Z(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let B=(n=b.observable.ref,i=b.observable.ref,o=b.observable.ref,(0,g.Pi)(((p=class extends h.Component{constructor(...e){super(...e),F(this,"_selectedLibrary",c,this),F(this,"_relinkableAssetsMap",l,this),F(this,"_relinkableLibrariesMap",u,this),F(this,"_relinkAdditional",d,this),this.setSelectedLibrary=e=>{const t=!!(this.getRelinkCandidatesInLibrary(e).length-1);this.setRelinkAdditional(t),this._selectedLibrary=e},this.setRelinkAdditional=e=>{this._relinkAdditional=e},this.onRelink=()=>{const e=this.getRelinkCandidatesInLibrary(this.selectedLibrary),t=this.relinkAdditional?e:[e.find((({asset:e})=>e===this.props.element))];this.props.onRelink(t),this.props.close()},this.onCancel=()=>{this.props.onCancel(),this.props.close()},this.getLibraryItem=e=>{var t;const r=`${e.id}${"org"===e.ownerType?"-team":""}`,n=y()("orphaned-library-list-item",{selected:(null===(t=this.selectedLibrary)||void 0===t?void 0:t.id)===e.id}),i=(0,P.zt)(new Date(e.modified),!0),o=this.getRelinkCandidatesInLibrary(e);return h.createElement("div",{key:r,className:n,onClick:()=>this.setSelectedLibrary(e)},h.createElement(A.Z,{library:e,disableContextMenu:!0,disableEditableName:!0,allowNavigation:!1,allowLongDoubleClick:!1,sharingIconOnly:!1},this.getModifiedDateColumn(i),this.getBrokenLinksColumn(o.length)))}}componentDidMount(){this.context.libraryManager.getRelinkableAssets().then((({assets:e,libraries:t})=>{this._relinkableAssetsMap=e,this._relinkableLibrariesMap=t}))}get selectedLibrary(){return this._selectedLibrary}get relinkAdditional(){return this._relinkAdditional}get isLoading(){return!this._relinkableAssetsMap.get(this.props.element.id)}get relinkableLibraries(){const e=this._relinkableAssetsMap.get(this.props.element.id);return e&&e.length?k.Z.sortByModified(e.map((({element:e})=>e.library))):[]}getRelinkCandidatesInLibrary(e){return this._relinkableLibrariesMap.get(e.id)||[]}get loadingSpinner(){return h.createElement("div",{className:"loading-container"},h.createElement(E(),{size:"L",className:"loading","data-test-id":"relink-orphan-asset-loading"}))}getNameColumn(){return h.createElement("div",{className:"library-list-item-name-container"},this.getColumnHeader({id:"name",label:"DL_LIBRARIES",className:"library-list-item-name"}))}getSharingColumn(){return h.createElement("div",{className:"library-list-item-icon-container"},h.createElement("div",{className:"library-list-item-sharing-container"},this.getColumnHeader({id:"sharing",label:"DL_MEMBERS",className:"library-list-item-sharing"})))}getModifiedDateColumn(e){return h.createElement("span",{className:"library-list-item-modified","data-test-id":"library-list-item-modified"},e)}getBrokenLinksColumn(e){return h.createElement("span",{className:"library-list-item-broken-links","data-test-id":"library-list-item-broken-links"},e)}getColumnHeader({id:e,label:t,className:r}){return h.createElement(w.default,{"data-test-id":`library-list-header-column-${e}`,className:y()("library-list-column-header",r),variant:"subtitle3"},(0,P.Iu)(t).toLocaleUpperCase(M.Z.getLocale()))}wrapWithLibrariesListItemContainer(e){return h.createElement("div",{className:"orphaned-library-list orphaned-asset-library-list-header"},h.createElement("div",{className:"orphaned-library-list-item"},h.createElement("div",{className:"library-list-item-container"},e)))}get brokenLinksColumnHeader(){return this.getBrokenLinksColumn(h.createElement("div",{className:"broken-links-column-header-container"},this.getColumnHeader({id:"broken-links",label:"DL_BROKEN_LINKS"}),h.createElement(S(),{boundariesElement:"container",placement:"top",trigger:["hover","focus"]},h.createElement("div",{"data-test-id":"broken-links-info-icon-container"},h.createElement(R.Z,{id:"InfoOutline",height:16})),h.createElement(L(),{variant:"info",ref:e=>this.tooltipRef=e},(0,P.Iu)("DIALOG_ORPHAN_ASSET_RELINK_BROKEN_LINKS_TOOLTIP")))))}get relinkableLibrariesHeader(){return this.wrapWithLibrariesListItemContainer(h.createElement("div",{className:"library-list-item"},this.getNameColumn(),this.getSharingColumn(),this.getModifiedDateColumn(this.getColumnHeader({id:"modified",label:"DL_LAST_MODIFIED"})),this.brokenLinksColumnHeader))}get relinkableLibrariesPicker(){return h.createElement("div",{className:"orphaned-asset-library-picker"},h.createElement("div",{className:"orphaned-asset-library-list-container"},this.relinkableLibrariesHeader,h.createElement("div",{className:"orphaned-library-list"},this.relinkableLibraries.map(this.getLibraryItem))),this.relinkAdditionalMessage)}get relinkAdditionalMessage(){const e=this.selectedLibrary?this.getRelinkCandidatesInLibrary(this.selectedLibrary).length-1:0,t=e>0?1===e?"DIALOG_ORPHAN_ASSET_RELINK_ADDITIONAL_SINGULAR":"DIALOG_ORPHAN_ASSET_RELINK_ADDITIONAL_NUM":"DIALOG_ORPHAN_ASSET_RELINK_ADDITIONAL",r=!this.selectedLibrary||0===e;return h.createElement("div",{"data-test-id":"relink-orphan-relink-additional-message",className:y()("orphaned-asset-relink-additional-container",{disabled:r}),onClick:()=>!r&&this.setRelinkAdditional(!this.relinkAdditional)},h.createElement(D.Z,{checked:this.relinkAdditional,disabled:r}),(0,P.Iu)(t,{count:e}))}get dialogData(){return this.isLoading?{title:(0,P.Iu)("DIALOG_ORPHAN_ASSET_RELINK_TITLE_LOADING"),messageLabel:"DIALOG_ORPHAN_ASSET_RELINK_MESSAGE_LOADING",body:this.loadingSpinner,ctaButton:{label:null}}:{title:(0,P.Iu)("DIALOG_ORPHAN_SELECT_TITLE"),messageLabel:"DIALOG_ORPHAN_ASSET_RELINK_MESSAGE_MATCH",body:this.relinkableLibrariesPicker,ctaButton:{label:(0,P.Iu)("DIALOG_ORPHAN_ASSET_RELINK_CONFIRM"),onClick:this.onRelink,disabled:!this.selectedLibrary}}}get message(){return h.createElement("div",{className:"relink-orphan-asset-message","data-test-id":"relink-orphan-asset-message"},h.createElement(N.Z,{html:(0,P.Iu)(this.dialogData.messageLabel,{name:this.props.element.name})}))}render(){return this.isLoading||this.relinkableLibraries.length?h.createElement(T.Z,{title:this.dialogData.title,okButtonText:this.dialogData.ctaButton.label,onClickOK:this.dialogData.ctaButton.onClick,okButtonEnabled:!this.dialogData.ctaButton.disabled,onClickCancel:this.onCancel,mode:"normal",className:"panel-dialog-relink-orphan-asset wide"},h.createElement("div",{className:"panel-dialog-layout-100","data-test-id":"relink-orphan-asset"},this.message,this.dialogData.body)):h.createElement(j.Z,{element:this.props.element,close:this.onCancel})}}).dialogName="relinkDocumentAsset",p.contextType=I.r,p.propTypes={element:m().instanceOf(C.Z).isRequired,onRelink:m().func.isRequired,onCancel:m().func.isRequired,close:m().func.isRequired},c=Z((s=p).prototype,"_selectedLibrary",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=Z(s.prototype,"_relinkableAssetsMap",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),u=Z(s.prototype,"_relinkableLibrariesMap",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),d=Z(s.prototype,"_relinkAdditional",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Z(s.prototype,"isLoading",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"isLoading"),s.prototype),Z(s.prototype,"relinkableLibraries",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"relinkableLibraries"),s.prototype),Z(s.prototype,"brokenLinksColumnHeader",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"brokenLinksColumnHeader"),s.prototype),Z(s.prototype,"relinkableLibrariesHeader",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"relinkableLibrariesHeader"),s.prototype),Z(s.prototype,"relinkableLibrariesPicker",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"relinkableLibrariesPicker"),s.prototype),Z(s.prototype,"relinkAdditionalMessage",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"relinkAdditionalMessage"),s.prototype),Z(s.prototype,"dialogData",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"dialogData"),s.prototype),Z(s.prototype,"message",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"message"),s.prototype),a=s))||a)},11507:(e,t,r)=>{"use strict";r.d(t,{Z:()=>b});var n,i,o,a,s=r(89526),c=r(2652),l=r.n(c),u=r(50265),d=r(62631),p=r(51385),h=r(27611),f=r(84824),m=r(64403),g=r.n(m),v=r(76485),y=r(24937);let b=(0,d.Pi)((a=class extends s.Component{constructor(...e){var t;super(...e),(t=o)&&Object.defineProperty(this,"showRelinkWarning",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0}),this.handleCreateNew=()=>{this.props.onRelinkChoice("createNew"),this.props.close()},this.handlePublish=()=>{this.props.onRelinkChoice("relink"),this.props.close()},this.openRelinkOrphanDialog=()=>this.context.documentActions.relinkDocumentToOrphanedLibrary(this.context.libraryManager.documentAssetsContainer)}get relinkableLibrary(){return this.context.libraryManager.relinkableLibrary}get canRelinkOrphans(){return!!this.context.libraryManager.orphanedLibraries.length}get dialogData(){return this.relinkableLibrary?this.relinkableLibrary.isWritable?this.showRelinkWarning?{mode:"warning",title:"DL_RELINK_DOCUMENT_LIBRARY_HEADING",message:"DL_RELINK_DOCUMENT_LIBRARY_WARNING",primaryLabel:"DL_RELINK_DOCUMENT_LIBRARY_PUBLISH",primaryHandler:this.handlePublish}:{mode:"normal",title:"DL_RELINK_DOCUMENT_LIBRARY_HEADING",message:"DL_RELINK_DOCUMENT_LIBRARY_INFO",primaryLabel:"DL_RELINK_DOCUMENT_LIBRARY_CONTINUE",primaryHandler:()=>this.showRelinkWarning=!0,secondaryLabel:"DL_RELINK_DOCUMENT_LIBRARY_CREATE_NEW",secondaryHandler:this.handleCreateNew}:{mode:"warning",title:"DL_RELINK_DOCUMENT_LIBRARY_READ_ONLY_HEADING",message:"DL_RELINK_DOCUMENT_LIBRARY_READ_ONLY_INFO",primaryLabel:"DL_RELINK_DOCUMENT_LIBRARY_CREATE_NEW",primaryHandler:this.handleCreateNew}:this.canRelinkOrphans?{mode:"normal",title:"DL_RELINK_DOCUMENT_LIBRARY_MISSING_LIBRARY_HEADING",message:"DL_RELINK_DOCUMENT_LIBRARY_CREATE_NEW_OR_ORPHAN_MESSAGE",primaryLabel:"DIALOG_ORPHAN_SELECT_RELINK",primaryHandler:this.openRelinkOrphanDialog,secondaryLabel:"DL_RELINK_DOCUMENT_LIBRARY_CREATE_NEW",secondaryHandler:this.handleCreateNew,messageBullets:[{id:"bullet-broken-links",label:"DL_RELINK_DOCUMENT_LIBRARY_MESSAGE_BROKEN_LINKS"},{id:"bullet-collaborators",label:"DL_RELINK_DOCUMENT_LIBRARY_MESSAGE_COLLABORATORS"}]}:{mode:"warning",title:"DL_RELINK_DOCUMENT_LIBRARY_MISSING_LIBRARY_HEADING",message:"DL_RELINK_DOCUMENT_LIBRARY_CREATE_NEW_MESSAGE",primaryLabel:"DL_RELINK_DOCUMENT_LIBRARY_CREATE_NEW",primaryHandler:this.handleCreateNew,messageBullets:[{id:"bullet-broken-links",label:"DL_RELINK_DOCUMENT_LIBRARY_MESSAGE_BROKEN_LINKS"},{id:"bullet-collaborators",label:"DL_RELINK_DOCUMENT_LIBRARY_MESSAGE_COLLABORATORS"}]}}_getBullets(e){if(e)return s.createElement("div",{className:g()({"uxp-bullet-list":!v.Z.supportsCSSListItem})},e.map((e=>s.createElement("div",{className:"dialog-bullet-item",key:e.id},` ${(0,f.Iu)(e.label)}`))))}render(){return s.createElement(p.Z,{className:"panel-dialog-relink-document-library",mode:this.dialogData.mode,title:(0,f.Iu)(this.dialogData.title),okButtonText:(0,f.Iu)(this.dialogData.primaryLabel),secondaryButtonText:(0,f.Iu)(this.dialogData.secondaryLabel),onClickOK:this.dialogData.primaryHandler,onClickSecondary:this.dialogData.secondaryHandler,onClickCancel:()=>this.props.close()},s.createElement("div",{"data-test-id":"relink-confirm-message",className:"panel-dialog-layout-100"},this.showRelinkWarning&&s.createElement("div",{className:"dialog-warning destructive"},s.createElement(h.Z,{id:"Alert",height:14}),s.createElement("div",{className:"warning-message-title"},(0,f.Iu)("DL_CANNOT_UNDO_WARNING"))),(0,f.Iu)(this.dialogData.message),this.dialogData.messageBullets&&this._getBullets(this.dialogData.messageBullets)))}},a.contextType=y.r,a.dialogName="relinkDocumentLibrary",a.propTypes={onRelinkChoice:l().func.isRequired,close:l().func},_=(i=a).prototype,E="showRelinkWarning",w=[u.observable],x={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}},L={},Object.keys(x).forEach((function(e){L[e]=x[e]})),L.enumerable=!!L.enumerable,L.configurable=!!L.configurable,("value"in L||L.initializer)&&(L.writable=!0),L=w.slice().reverse().reduce((function(e,t){return t(_,E,e)||e}),L),void 0===L.initializer&&(Object.defineProperty(_,E,L),L=null),o=L,n=i))||n;var _,E,w,x,L},67116:(e,t,r)=>{"use strict";r.d(t,{Z:()=>w});var n,i,o,a,s,c=r(89526),l=r(2652),u=r.n(l),d=r(50265),p=r(62631),h=r(51385),f=r(84824),m=r(64403),g=r.n(m),v=r(17632),y=r(24937),b=r(17179);function _(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function E(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let w=(0,p.Pi)(((s=class extends c.Component{constructor(...e){super(...e),_(this,"selectedLibrary",o,this),_(this,"showConfirmationDialog",a,this)}get orphanedLibraries(){return b.Z.sortByModified(this.context.libraryManager.orphanedLibraries)}get dialogData(){return this.showConfirmationDialog?{title:"DIALOG_ORPHAN_RELINK_TITLE",primaryLabel:"DIALOG_ORPHAN_RELINK_CONTINUE",message:"DIALOG_ORPHAN_RELINK_MESSAGE",primaryHandler:()=>{this.props.relinkToOrphanLibrary(this.selectedLibrary),this.props.close()}}:{title:"DIALOG_ORPHAN_SELECT_TITLE",primaryLabel:"DIALOG_ORPHAN_SELECT_RELINK",body:this.orphanedLibrariesPicker,primaryHandler:()=>{this.showConfirmationDialog=!0}}}get orphanedLibrariesPicker(){return c.createElement("div",{className:"orphaned-library-list"},this.orphanedLibraries.map(((e,t)=>{const r=g()({"orphaned-library-list-item":!0,selected:this.selectedLibrary&&this.selectedLibrary.id===e.id});return c.createElement("div",{className:r,key:t,onClick:()=>{this.selectedLibrary=e}},c.createElement(v.Z,{library:e,disableContextMenu:!0,disableEditableName:!0,showCreatedDate:!0,allowNavigation:!1,allowLongDoubleClick:!1,sharingIconOnly:!1}))})))}render(){return c.createElement(h.Z,{title:(0,f.Iu)(this.dialogData.title),okButtonText:(0,f.Iu)(this.dialogData.primaryLabel),onClickOK:this.dialogData.primaryHandler,onClickCancel:()=>this.props.close(),okButtonEnabled:!!this.selectedLibrary,mode:"normal",className:"wide"},c.createElement("div",{"data-test-id":"relink-orphan-library",className:"panel-dialog-layout-100"},this.dialogData.body||(0,f.Iu)(this.dialogData.message)))}}).dialogName="relinkOrphanedDocumentLibrary",s.contextType=y.r,s.propTypes={relinkToOrphanLibrary:u().func.isRequired,close:u().func},o=E((i=s).prototype,"selectedLibrary",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),a=E(i.prototype,"showConfirmationDialog",[d.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),n=i))||n},99525:(e,t,r)=>{"use strict";r.d(t,{Z:()=>A});var n,i,o,a,s,c,l=r(89526),u=r(2652),d=r.n(u),p=r(64403),h=r.n(p),f=r(62631),m=r(50265),g=r(64114),v=r(27611),y=r(76485),b=r(51385),_=r(84824),E=r(24937),w=r(52422),x=r(30131),L=r(27299),O=r(51461),S=r(88166),T=r.n(S);function P(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function I(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let A=(0,f.Pi)(((c=class extends l.Component{constructor(...e){super(...e),P(this,"_librariesToFollow",o,this),P(this,"_shouldAcceptInvites",a,this),P(this,"_isLoading",s,this),this.toggleShouldAcceptInvites=()=>{this._shouldAcceptInvites=!this._shouldAcceptInvites},this.toggleFollowLibrary=e=>{this._librariesToFollow.set(e,!this._librariesToFollow.get(e))},this.resolveSelectedLinks=()=>{const e=[];this.selectedPendingFollowLibraries.forEach((({brokenLinks:t})=>{e.push(...t)})),this.shouldAcceptInvites&&e.push(...this.pendingInviteAssets),this.resolveLinks(e)},this.getSourceDocumentItem=([e,{documentName:t,brokenLinks:r}])=>{const n=r[0],i=!n.isMissingLegacyDocumentLink;return this.getSourceItem({id:`legacy-link-${e}`,icon:l.createElement(v.Z,{id:"XDFile",height:16,"data-test-id":"panel-dialog-section-content-xd-logo"}),className:h()("is-file",{disabled:!i}),label:t,onClick:()=>i&&y.Z.editInSource(n)})},this.getSourceLibraryItem=([e,{libraryName:t}])=>{const r=this.showSummaryView;return this.getSourceItem({id:`library-link-${e}`,icon:l.createElement(g.default,{size:"S","data-test-id":"panel-dialog-section-content-cc-libraries-logo"}),label:t,checkbox:r&&l.createElement(w.Z,{checked:this.isLibrarySelected(e),onChange:()=>this.toggleFollowLibrary(e)})})},this.getLibraryInvitesItem=e=>{const t=this.showSummaryView,r=e>1?(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_NUM_INVITES",{num:this.context.libraryManager.invitationsData.size}):(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_INVITE");return this.getSourceItem({id:"library-link-pending-invites",icon:l.createElement(g.default,{size:"S","data-test-id":"panel-dialog-section-content-cc-libraries-logo"}),label:r,checkbox:t&&l.createElement(w.Z,{checked:this.shouldAcceptInvites,onChange:this.toggleShouldAcceptInvites})})},this.numberResolutionStep=(e,t)=>{const r=e.toLocaleString();return l.createElement("div",{key:r,className:"panel-dialog-step-counter-container","data-test-id":`resolve-broken-links-step-${e}`},l.createElement("span",{className:"panel-dialog-label-step-counter"},`${r}.`),t)}}componentDidMount(){this.shouldFetchInvitations&&(this._isLoading=!0,this.context.libraryManager.fetchLibraryInvitations(!0).finally((()=>{this._shouldAcceptInvites=!!this.pendingInviteAssets.length,this._isLoading=!1}))),Object.keys(this.pendingFollowLibraries).forEach((e=>{this._librariesToFollow.set(e,!0)})),this._dispose=(0,m.when)((()=>!this._dialogHasMissingLinks),(()=>{this.props.close()}))}componentWillUnmount(){this._dispose()}get shouldFetchInvitations(){return this.isOnline&&this.props.fetchInvitations&&(this.element.isPendingInvite||this.element.isMissingLibrary)}get showSummaryView(){return!this.props.element}get assetsContainer(){return this.element.library}get _dialogHasMissingLinks(){return!!this.elements.find((e=>e.isMissingLink||e.isDeprecatedLegacyDocumentLink))}get elements(){return this.props.element?[this.props.element]:this.context.libraryManager.documentAssetsContainer.resolvableMissingLinks}get element(){return this.elements[0]}get pendingInviteAssets(){return this.props.element?this.element.isPendingInvite&&[this.element]:this.assetsContainer.resolvableMissingLinks.filter((e=>e.isPendingInvite))}get shouldAcceptInvites(){return this._shouldAcceptInvites}get librariesToFollow(){return this._librariesToFollow}get isOnline(){return this.context.libraryManager.isOnline}get loadingSpinner(){return l.createElement("div",{className:"loading-container"},l.createElement(T(),{size:"L",className:"loading","data-test-id":"resolve-broken-links-loading"}))}isLibrarySelected(e){return!!this.librariesToFollow.get(e)}resolveLinks(e){this.context.documentActions.resolveLinks(e)}get selectedPendingFollowLibraries(){const e=[];return Object.keys(this.pendingFollowLibraries).forEach((t=>{this.isLibrarySelected(t)&&e.push(this.pendingFollowLibraries[t])})),e}get operationCount(){return(this.shouldAcceptInvites?this.pendingInvites.size:0)+this.selectedPendingFollowLibraries.length}get pendingFollowLibraries(){const e={};return this.elements.forEach((t=>{if(t.isPendingFollow){const r=t.cachedLinkedLibraryName,n=t.cachedLinkedLibraryId;e[n]||(e[n]={libraryName:r,brokenLinks:[]}),e[n].brokenLinks.push(t)}})),e}get deprecatedSourceDocuments(){const e={};return this.elements.forEach((t=>{if(t.isDeprecatedLegacyDocumentLink){const r=t.linkedDocumentName,n=t.linkReference;e[n]||(e[n]={documentName:r,brokenLinks:[]}),e[n].brokenLinks.push(t)}})),e}get pendingInvites(){return this.context.libraryManager.invitationsData}getResolutionStep({id:e,icon:t,label:r}){return l.createElement("div",{className:"panel-dialog-section-label-step","data-test-id":`panel-dialog-section-label-step-${e}`},(0,_.Iu)(r),t)}getSourceHeading({id:e,label:t}){return l.createElement("div",{className:"panel-dialog-section-label","data-test-id":`panel-dialog-section-label-${e}`},(0,_.Iu)(t))}getSourceItem({id:e,icon:t,className:r,label:n,checkbox:i,onClick:o}){return l.createElement("div",{key:e,className:h()("source-list-item",r),onClick:o,"data-test-id":`resolve-broken-links-source-item-${e}`},l.createElement("div",{className:"source-name-container"},l.createElement("div",{className:"source-icon"},t),l.createElement("span",{className:"source-name"},n)),i&&l.createElement("div",{className:"source-checkbox","data-test-id":`resolve-broken-links-source-item-checkbox-${e}`},i))}get legacyLinkInfo(){const e=Object.entries(this.deprecatedSourceDocuments);if(!e.length)return;const t="resolve-broken-links-legacy-link-info";return l.createElement("div",{key:t,className:"resolve-broken-links-info","data-test-id":t},this.showSummaryView?this.getResolutionStep({id:"open-sources",label:"DIALOG_RESOLVE_BROKEN_LINK_STEP_OPEN_SOURCE",icon:l.createElement(v.Z,{id:"Info",onClick:()=>(0,x.f2)(),className:"open-sources-info-icon",height:16})}):this.getSourceHeading({id:"source-document",label:"DIALOG_RESOLVE_BROKEN_LINK_SOURCE_FILE"}),l.createElement("div",{className:"source-list","data-test-id":"broken-links-source-documents-list"},e.map(this.getSourceDocumentItem)))}get pendingFollowInfo(){const e=Object.entries(this.pendingFollowLibraries);if(!e.length)return;const t="resolve-broken-links-pending-follow-info";return l.createElement("div",{key:t,className:"resolve-broken-links-info","data-test-id":t},this.showSummaryView?this.getResolutionStep({id:"follow-libraries",label:"DIALOG_RESOLVE_BROKEN_LINK_STEP_FOLLOW_LIBRARIES"}):this.getSourceHeading({id:"source-library",label:"DIALOG_RESOLVE_BROKEN_LINK_SOURCE_LIB"}),l.createElement("div",{className:"source-list","data-test-id":"broken-links-pending-follow-list"},e.map(this.getSourceLibraryItem)))}get pendingInviteInfo(){if(!this.pendingInviteAssets.length)return;const e="resolve-broken-links-pending-invite-info";return l.createElement("div",{key:e,className:"resolve-broken-links-info","data-test-id":e},this.getResolutionStep({id:"accept-invites",label:"DIALOG_RESOLVE_BROKEN_LINK_STEP_ACCEPT_INVITATIONS"}),l.createElement("div",{className:"source-list","data-test-id":"broken-links-pending-invites-list"},this.getLibraryInvitesItem(this.pendingInvites.size)))}get suggestRequestInvite(){const e="resolve-broken-links-request-invites";return l.createElement("div",{key:e,className:"resolve-broken-links-info","data-test-id":e},this.getResolutionStep({id:"request-invites",label:"DIALOG_RESOLVE_BROKEN_LINK_STEP_REQUEST_INVITATIONS"}))}get suggestMakeLocal(){const e="resolve-broken-links-make-local";return l.createElement("div",{key:e,className:"resolve-broken-links-info","data-test-id":e},this.getResolutionStep({id:"make-local",label:"DIALOG_RESOLVE_BROKEN_LINK_STEP_MAKE_LOCAL"}))}get missingElementSteps(){const e=[{id:"step-1",label:this.suggestRequestInvite},{id:"step-2",label:this.suggestMakeLocal}];return l.createElement("div",{className:"resolve-broken-links-resolution-bullet-list"},e.map((e=>l.createElement("div",{key:e.id,className:"dialog-bullet-item"},e.label))))}get globalResolutionSteps(){const e=this.assetsContainer.missingLinks.filter((e=>e.isMissingLibrary)),t=[this.pendingFollowInfo,this.pendingInviteInfo,this.legacyLinkInfo,!!e.length&&this.suggestRequestInvite].filter((e=>e));return 1===t.length?t:t.map(((e,t)=>this.numberResolutionStep(t+1,e)))}get isLoading(){return this._isLoading}get dialogData(){const e=!this.isOnline,t=e?(0,_.Iu)("DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_OFFLINE"):void 0;if(this.isLoading)return{title:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_TITLE"),message:(0,_.Iu)("DL_LOADING"),resolutionInfo:this.loadingSpinner,ctaButton:{label:null}};if(this.showSummaryView){const r=this.pendingInvites.size+Object.keys(this.pendingFollowLibraries).length;return{title:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINKS_TITLE"),message:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_MESSAGE_MULTIPLE_LINKS"),resolutionInfo:this.globalResolutionSteps,ctaButton:r&&{label:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_ADD_LIBRARIES",{count:this.operationCount}),onClick:this.resolveSelectedLinks,disabled:0===this.operationCount||e,tooltip:t}}}if(this.element.isPendingFollow)return{title:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_TITLE"),message:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_MESSAGE_ADD_LIB"),resolutionInfo:this.pendingFollowInfo,ctaButton:{label:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_CTA_ADD_LIBRARY"),onClick:()=>this.resolveLinks([this.element]),disabled:e,tooltip:t}};if(this.element.isDeprecatedLegacyDocumentLink){const r=this.element.isMissingLegacyDocumentLink||e,n=r?this.element.isMissingLegacyDocumentLink?(0,_.Iu)("ASSET_LINK_RESTRICTED"):t:void 0;return{title:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_TITLE"),message:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_MESSAGE_RELINK_FILE"),resolutionInfo:this.legacyLinkInfo,ctaButton:{label:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_CTA_RELINK_FILE"),onClick:()=>y.Z.editInSource(this.element),disabled:r,tooltip:n},secondaryButton:{label:(0,_.Iu)("DL_LEARN_MORE"),onClick:()=>(0,x.f2)(),disabled:e,tooltip:t}}}return this.element.isPendingInvite?{title:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_TITLE"),message:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_PENDING_MESSAGE"),resolutionInfo:this.pendingInviteInfo,ctaButton:{label:(0,_.Iu)("ACCEPT_INVITES"),onClick:()=>this.resolveLinks([this.element]),disabled:e,tooltip:t}}:this.element.isMissingLibrary?{title:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_TITLE"),message:(0,_.Iu)("DIALOG_RESOLVE_BROKEN_LINK_MESSAGE"),secondaryButton:{label:(0,_.Iu)("DL_LEARN_MORE"),onClick:()=>(0,x.Az)(),disabled:e,tooltip:t}}:this.element.isMissingElement?{title:(0,_.Iu)("DIALOG_CANT_RESOLVE_BROKEN_LINK_TITLE"),message:(0,_.Iu)("DIALOG_CANT_RESOLVE_BROKEN_LINK_MESSAGE"),resolutionInfo:this.missingElementSteps,ctaButton:{label:null},secondaryButton:{label:(0,_.Iu)("DL_UNLINK_ASSET"),onClick:()=>{O.ZP.reportElementEvent("ResolveBrokenLinksDialog","Element","click","make-local",this.element),y.Z.unlinkAssets([this.element])}}}:void 0}get title(){return this.dialogData.title}get message(){return this.dialogData.message}get ctaButton(){return this.dialogData.ctaButton}get secondaryButton(){return this.dialogData.secondaryButton}get cancelButtonLabel(){return this.showSummaryView?(0,_.Iu)("DL_CLOSE"):(0,_.Iu)("DL_CANCEL")}get resolutionInfo(){if(this.dialogData.resolutionInfo)return l.createElement("div",{className:"resolve-broken-links-resolution-info","data-test-id":"resolve-broken-links-resolution-info"},this.dialogData.resolutionInfo)}render(){var e,t,r,n,i,o,a,s;return this.dialogData?l.createElement(b.Z,{title:this.title,cancelButtonText:this.cancelButtonLabel,secondaryButtonText:null===(e=this.secondaryButton)||void 0===e?void 0:e.label,secondaryButtonEnabled:!(null!==(t=this.secondaryButton)&&void 0!==t&&t.disabled),secondaryButtonTooltip:null===(r=this.secondaryButton)||void 0===r?void 0:r.tooltip,onClickSecondary:null===(n=this.secondaryButton)||void 0===n?void 0:n.onClick,okButtonText:(null===(i=this.ctaButton)||void 0===i?void 0:i.label)||"",okButtonEnabled:!(null!==(o=this.ctaButton)&&void 0!==o&&o.disabled),okButtonTooltip:null===(a=this.ctaButton)||void 0===a?void 0:a.tooltip,onClickOK:null===(s=this.ctaButton)||void 0===s?void 0:s.onClick,mode:"normal",close:this.props.close,className:"panel-dialog-resolve-broken-links"},l.createElement("div",{className:"panel-dialog-layout-100","data-test-id":"resolve-broken-links"},l.createElement("div",{"data-test-id":"resolve-broken-links-message"},this.message),this.resolutionInfo)):null}}).contextType=E.r,c.dialogName="resolveBrokenLinks",c.defaultProps={fetchInvitations:!0},c.propTypes={element:d().instanceOf(L.Z),close:d().func,fetchInvitations:d().bool},o=I((i=c).prototype,"_librariesToFollow",[m.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),a=I(i.prototype,"_shouldAcceptInvites",[m.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!!this.pendingInviteAssets.length}}),s=I(i.prototype,"_isLoading",[m.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),I(i.prototype,"_dialogHasMissingLinks",[m.computed],Object.getOwnPropertyDescriptor(i.prototype,"_dialogHasMissingLinks"),i.prototype),I(i.prototype,"selectedPendingFollowLibraries",[m.computed],Object.getOwnPropertyDescriptor(i.prototype,"selectedPendingFollowLibraries"),i.prototype),I(i.prototype,"operationCount",[m.computed],Object.getOwnPropertyDescriptor(i.prototype,"operationCount"),i.prototype),I(i.prototype,"pendingFollowLibraries",[m.computed],Object.getOwnPropertyDescriptor(i.prototype,"pendingFollowLibraries"),i.prototype),I(i.prototype,"deprecatedSourceDocuments",[m.computed],Object.getOwnPropertyDescriptor(i.prototype,"deprecatedSourceDocuments"),i.prototype),I(i.prototype,"legacyLinkInfo",[m.computed],Object.getOwnPropertyDescriptor(i.prototype,"legacyLinkInfo"),i.prototype),I(i.prototype,"pendingFollowInfo",[m.computed],Object.getOwnPropertyDescriptor(i.prototype,"pendingFollowInfo"),i.prototype),I(i.prototype,"pendingInviteInfo",[m.computed],Object.getOwnPropertyDescriptor(i.prototype,"pendingInviteInfo"),i.prototype),I(i.prototype,"missingElementSteps",[m.computed],Object.getOwnPropertyDescriptor(i.prototype,"missingElementSteps"),i.prototype),I(i.prototype,"globalResolutionSteps",[m.computed],Object.getOwnPropertyDescriptor(i.prototype,"globalResolutionSteps"),i.prototype),I(i.prototype,"dialogData",[m.computed],Object.getOwnPropertyDescriptor(i.prototype,"dialogData"),i.prototype),n=i))||n},5906:(e,t,r)=>{"use strict";r.d(t,{Z:()=>x});var n,i,o,a,s=r(89526),c=r(2652),l=r.n(c),u=r(50265),d=r(62631),p=r(99386),h=r(64403),f=r.n(h),m=r(44853),g=r(27611),v=r(25585),y=r(72279),b=r(84824),_=r(24937),E=r(51461),w=r(76485);let x=(0,d.Pi)((a=class extends s.Component{constructor(...e){var t;super(...e),(t=o)&&Object.defineProperty(this,"charactersRemaining",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0}),this.startEdit=e=>{e.stopPropagation(),this.isReadOnly||(this.charactersRemaining=this.props.element.description?p.Z.NOTES_MAX_CHARACTER_COUNT-(0,v.NJ)(this.props.element.description):p.Z.NOTES_MAX_CHARACTER_COUNT,this.context.viewManager.startEditDescription(this.props.element))},this.deleteDescription=e=>{E.ZP.setExtraEventMetrics("updateElement",{subtype:"delete-note",content:{category:"Click"}}),e.stopPropagation(),this.isReadOnly||(this.props.element.description="")},this.handleInputKeyDown=e=>{"Enter"!==e.key||w.Z.isComposingInputEvent(e)?"Escape"===e.key&&this.finishEditing(!0):e.shiftKey||this.finishEditing(),e.stopPropagation()},this.handleBlur=()=>{this.finishEditing(!1)},this.onButtonPress=e=>{e.stopPropagation(),this.finishEditing(!0)},this.onButtonMouseDown=e=>{e.preventDefault()},this.handleInput=()=>{this.descriptionInput.value=(0,v.aS)(this.descriptionInput.value,p.Z.NOTES_MAX_CHARACTER_COUNT,!1),this.charactersRemaining=p.Z.NOTES_MAX_CHARACTER_COUNT-(0,v.NJ)(this.descriptionInput.value)},this.setInputRef=e=>{this.descriptionInput=e,this.descriptionInput&&!this.isReadOnly&&(this.descriptionInput.select(),this.descriptionInput.focus())},this.setTextRef=e=>{this.descriptionText=e},this.handleKeyDown=(e,t)=>{"Enter"===e.key&&(e.preventDefault(),t(e))}}get isEditingDescription(){return this.context.viewManager.editDescriptionElement&&this.context.viewManager.editDescriptionElement.id===this.props.element.id}get isReadOnly(){return!this.context.viewState.isLibraryWritable(this.props.element.library)}get defaultValue(){return this.props.element.description||""}get editBadge(){return s.createElement("div",{tabIndex:"0","data-test-id":"editable-description-edit-icon",className:"editable-description-icon",onClick:this.startEdit,onKeyDown:e=>this.handleKeyDown(e,this.startEdit)},s.createElement(g.Z,{id:"Edit",height:this.props.iconHeight,tabIndex:"-1"}))}get deleteBadge(){return s.createElement("div",{tabIndex:"0","data-test-id":"editable-description-delete-icon",className:"editable-description-icon editable-description-delete-icon",onClick:this.deleteDescription,onKeyDown:e=>this.handleKeyDown(e,this.deleteDescription)},s.createElement(g.Z,{id:"Delete",height:this.props.iconHeight,tabIndex:"-1"}))}get description(){if(!this.props.element.description)return;const e=this.props.element.description.split("\n"),t=[];for(let r=0;r<e.length;r++)t.push(s.createElement("span",{"data-test-id":`editable-description-line-${r+1}`,key:`line_${r}`},e[r])),t.push(s.createElement("br",{key:`break_${r}`}));return t.pop(),t}finishEditing(e=!1){if(!this.descriptionInput)return void(this.editTrigger=void 0);const t=this.descriptionInput.value;if(!e&&t!==this.props.element.description){let e="add";t?this.props.element.description&&(e="edit"):e="delete",E.ZP.setExtraEventMetrics("updateElement",{subtype:`${e}-note`,content:{category:"Click"}}),this.props.element.description=t.trim()}this.editTrigger=void 0,this.context.viewManager.stopEditDescription()}get descriptionButtons(){return s.createElement("div",{className:"editable-description-buttons"},s.createElement(y.Z,{variant:"cta","data-test-id":"editable-description-cancel-button",className:"editable-description-button",onClick:()=>this.finishEditing(!0),onMouseDown:this.onButtonMouseDown},(0,b.Iu)("DL_CANCEL")),s.createElement(y.Z,{variant:"cta","data-test-id":"editable-description-save-button",className:"editable-description-button",onClick:()=>this.finishEditing(),onMouseDown:this.onButtonMouseDown},(0,b.Iu)("DL_SAVE")))}render(){if(this.isReadOnly&&!this.props.element.description)return null;const e=f()("element-description",{"read-only-description":this.isReadOnly}),t=this.isEditingDescription?s.createElement(s.Fragment,null,this.descriptionButtons,s.createElement("textarea",{"data-test-id":"editable-description-input",readOnly:this.isReadOnly,ref:this.setInputRef,className:"element-description-input",type:"text",placeholder:this.props.placeholder,"uxp-quiet":"true",spellCheck:"true",onBlur:this.handleBlur,defaultValue:this.defaultValue,onKeyDown:this.handleInputKeyDown,onInput:this.handleInput}),s.createElement("div",{"data-test-id":"editable-description-character-count",className:"editable-description-character-count"},this.charactersRemaining)):s.createElement("div",{"aria-label":this.props.element.description||this.props.placeholder,className:f()("editable-description-wrapper",{"placeholder-description":!this.props.element.description})},s.createElement("span",{"data-test-id":"editable-description-text",ref:this.setTextRef,className:e,onDoubleClick:this.startEdit},this.description||s.createElement("i",null,this.props.placeholder)),s.createElement("div",{className:"editable-description-badges"},this.isReadOnly||this.editBadge,this.isReadOnly||!this.props.element.description||this.deleteBadge));return s.createElement("div",{"data-test-id":this.props.className,className:this.props.className},s.createElement("div",{"data-test-id":"editable-description-container",className:f()("element-description-container",{"is-editing":this.isEditingDescription})},t))}},a.contextType=_.r,a.defaultProps={allowLongDoubleClick:!1,iconHeight:12,className:"default-editable-description"},a.propTypes={element:l().instanceOf(m.Z).isRequired,placeholder:l().string.isRequired,className:l().string,allowLongDoubleClick:l().bool,iconHeight:l().number},L=(i=a).prototype,O="charactersRemaining",S=[u.observable],T={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return p.Z.NOTES_MAX_CHARACTER_COUNT}},P={},Object.keys(T).forEach((function(e){P[e]=T[e]})),P.enumerable=!!P.enumerable,P.configurable=!!P.configurable,("value"in P||P.initializer)&&(P.writable=!0),P=S.slice().reverse().reduce((function(e,t){return t(L,O,e)||e}),P),void 0===P.initializer&&(Object.defineProperty(L,O,P),P=null),o=P,n=i))||n;var L,O,S,T,P},3303:(e,t,r)=>{"use strict";r.d(t,{Z:()=>x});var n,i,o,a,s,c=r(89526),l=r(2652),u=r.n(l),d=r(62631),p=r(50265),h=r(99386),f=r(64403),m=r.n(f),g=r(24937),v=r(27611),y=r(46903),b=r(99767),_=r(84824),E=r(76485);function w(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let x=(n=p.observable.ref,(0,d.Pi)(((s=class extends c.Component{constructor(...e){var t;super(...e),this.componentDidMount=()=>{this._disposeOverflowReaction=(0,p.reaction)((()=>this.nameText),this.refreshOverflow),setTimeout(this.refreshOverflow)},this.refreshOverflow=()=>{this.props.onOverflowChange(this.getOverflow())},this.handleClick=e=>{this.props.onNameClick(e),this.props.allowLongDoubleClick&&this.props.isSelected&&!this.props.isEditDisabled&&(e.stopPropagation(),this.editTrigger="click",this.startEditing())},this.handleDoubleClick=e=>{this.props.allowLongDoubleClick||this.props.isEditDisabled||this.props.isReadOnly||(e.stopPropagation(),this.startEditing())},this.handleClickEdit=e=>{e.stopPropagation(),this.startEditing()},this.handleKeyDown=e=>{"Enter"!==e.key||E.Z.isComposingInputEvent(e)?"Escape"===e.key&&this.finishEditing(!0):this.finishEditing(),e.stopPropagation()},this.handleBlur=()=>{this.finishEditing(!1)},this.handleOnChange=e=>{this.context.viewManager.setRenameValue(e.target.value.trim())},this.setInputRef=e=>{this.nameInput=e,this.nameInput&&!this.props.isReadOnly&&(this.nameInput.select(),this.nameInput.focus())},(t=a)&&Object.defineProperty(this,"nameText",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0}),this.setTextRef=e=>{this.nameText=e}}get name(){return this.context.viewManager.renameValue}get isEditingName(){return this.context.viewManager.renamingItem&&this.context.viewManager.renamingItem.id===this.props.item.id}get defaultValue(){return!this.props.isReadOnly&&this.props.item.isAutoNamed?"":this.props.item.name}componentWillUnmount(){this._disposeOverflowReaction()}getOverflow(){var e,t;return(null===(e=this.nameText)||void 0===e?void 0:e.offsetWidth)<(null===(t=this.nameText)||void 0===t?void 0:t.scrollWidth)}startEditing(){this.props.onEditStart(),this.context.viewManager.startRename(this.props.item),this.context.viewManager.setRenameValue(this.defaultValue)}isNameValid(){return(!this.name||this.context.viewManager.renameStatus===h.Z.RENAME_STATES.VALID)&&(this.name&&""!==this.name.trim()||this.props.allowBlankName)}get showWarning(){return!(!this.isEditingName||!this.name||this.name===this.defaultValue||this.isNameValid())}finishEditing(e=!1){if(!this.nameInput)return void(this.editTrigger=void 0);const t=this.nameInput.value.trim();t!==this.props.item.name&&(e||this.isNameValid())||(e=!0),e?(this.props.onEditCancel(),this.context.viewManager.setRenameValue(this.defaultValue)):(this.props.item.isGroup&&this.context.viewManager.stopRename(),(0,y.UE)(this.props.item,t),this.props.onEditFinish(this.editTrigger)),this.editTrigger=void 0,this.context.viewManager.stopRename()}get tooltipErrorMessage(){const e=this.context.viewManager.renameStatus;return h.Z.RENAME_STATE_ERROR_MESSAGES[e]}render(){const e=m()(this.props.inputClassName,{"read-only-name":this.props.isReadOnly,"show-warning":this.showWarning}),t=this.isEditingName?c.createElement("div",{className:"editable-name-input-wrapper"},c.createElement("input",{"data-test-id":"editable-name-input",readOnly:this.props.isReadOnly,ref:this.setInputRef,maxLength:h.Z.MAX_INPUT_STRING_LENGTH,className:e,type:"text",placeholder:this.props.placeholder,"uxp-quiet":"false",spellCheck:"false",onBlur:this.handleBlur,defaultValue:this.defaultValue,onKeyDown:this.handleKeyDown,onChange:this.handleOnChange}),this.showWarning&&c.createElement("div",{"data-test-id":"editable-name-alert-tooltip"},c.createElement(b.Z,{className:"editable-name-alert-tooltip",placement:"top",content:(0,_.Iu)(this.tooltipErrorMessage)},c.createElement(v.Z,{className:"editable-name-alert-icon",id:"Alert",height:h.Z.currentProduct.config.alertIconHeight||10})))):c.createElement("div",{className:m()("editable-name-wrapper",{"editable-name-wrapper-edit-icon":this.props.isShowingEditIcon&&!this.props.isReadOnly})},c.createElement("span",{"data-test-id":"editable-name-text",ref:this.setTextRef,className:m()(this.props.textClassName,"editable-name-text",{"read-only-name":this.props.isReadOnly}),onClick:this.handleClick,onDoubleClick:this.handleDoubleClick},this.props.children||this.props.item.name),!this.props.isShowingEditIcon||this.props.isReadOnly||this.props.isEditDisabled?c.createElement("span",{className:"editable-name-padding","data-test-id":"editable-name-padding"}):c.createElement("div",{"data-test-id":"editable-name-edit-icon",className:"element-name-edit-icon",onClick:this.handleClickEdit},c.createElement(v.Z,{id:"Edit",height:12})));return c.createElement("div",{"data-test-id":"editable-name-container",className:m()(this.props.containerClassName,"editable-name",{"is-editing":this.isEditingName,invalid:this.showWarning})},t)}}).contextType=g.r,s.defaultProps={allowBlankName:!1,allowLongDoubleClick:!1,onEditFinish:()=>{},onEditStart:()=>{},onEditCancel:()=>{},onOverflowChange:()=>{},onNameClick:()=>{},isSelected:!1,isShowingEditIcon:!1,isReadOnly:!1},s.propTypes={item:u().instanceOf(Object).isRequired,placeholder:u().string.isRequired,containerClassName:u().string,inputClassName:u().string,textClassName:u().string,allowBlankName:u().bool,allowLongDoubleClick:u().bool,children:u().node,onEditFinish:u().func,onEditCancel:u().func,onEditStart:u().func,onOverflowChange:u().func,isSelected:u().bool,isShowingEditIcon:u().bool,isReadOnly:u().bool,isEditDisabled:u().bool,onNameClick:u().func},w((o=s).prototype,"showWarning",[p.computed],Object.getOwnPropertyDescriptor(o.prototype,"showWarning"),o.prototype),a=w(o.prototype,"nameText",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w(o.prototype,"tooltipErrorMessage",[p.computed],Object.getOwnPropertyDescriptor(o.prototype,"tooltipErrorMessage"),o.prototype),i=o))||i)},18135:(e,t,r)=>{"use strict";r.d(t,{Z:()=>Te});var n,i,o=r(89526),a=r(2652),s=r.n(a),c=r(50265),l=r(62631),u=r(64403),d=r.n(u),p=r(47320),h=r(84824),f=r(46903),m=r(39293),g=r(76485),v=r(76792),y=r(53849),b=r(99386),_=r(91854),E=r(99409),w=r(98218),x=r(3303),L=r(24937),O=r(33275),S=r(80091);let T=(0,l.Pi)(((i=class extends o.Component{get isEditingName(){return this.context.viewManager.renamingItem&&this.context.viewManager.renamingItem.id===this.props.element.id}get allowBlankName(){return p.Z.allowBlankName(this.props.element)}render(){const e=this.props,t=e.element,r=e.selected,n=e.viewMode,i=d()({selected:r,"show-on-panel-hover":"panelHover"===this.context.viewState.nameVisibility,"show-on-element-hover":"elementHover"===this.context.viewState.nameVisibility},`panel-${n}-item-name-container`);return o.createElement(x.Z,{item:t,allowBlankName:this.allowBlankName,placeholder:(0,h.Iu)("DL_EDIT_NAME_PLACEHOLDER"),containerClassName:i,inputClassName:`panel-${n}-item-edit-name`,textClassName:`panel-${n}-item-name`,isSelected:y.Z.isSelected(t),isReadOnly:!this.context.viewState.isLibraryWritable(t.library)||t.disableRename,onNameClick:this.props.onNameClick},t.name)}}).contextType=L.r,i.defaultProps={selected:!1,viewMode:"grid",onNameClick:()=>{}},i.propTypes={element:s().oneOfType([s().instanceOf(O.W_),s().instanceOf(S.Z)]),selected:s().bool,viewMode:s().oneOf(["grid","list"]),onNameClick:s().func},n=i))||n;var P,I,A=r(99767),C=r(27611);let k=(0,l.Pi)(((I=class extends o.Component{constructor(...e){super(...e),this.handleClick=e=>{this.props.applyOperation.apply(),e.stopPropagation()}}getClasses(){return d()(`panel-place-button-overlay-${this.props.viewMode}`,"show-on-hover-child")}render(){return o.createElement("div",{"data-test-id":"place-button",className:this.getClasses(),onClick:this.handleClick},o.createElement(A.Z,{placement:"top-start",content:(0,h.Iu)(this.props.applyOperation.name)},o.createElement(C.Z,{id:"PlaceOnCanvas",height:13})))}}).propTypes={viewMode:s().oneOf(b.Z.ELEMENT_VIEW_MODES).isRequired,applyOperation:s().object.isRequired},P=I))||P;var D,N,R,M=r(31870),j=r(51461),F=r(30131),Z=r(26981),B=r(44914),G=r(24099),U=r(64662);let H=(0,l.Pi)(((R=class extends o.Component{get element(){return this.props.element}get contentAuthenticityBadge(){return o.createElement(G.Z,{dataTestId:"verify-content-authenticity",icon:"VerifyContentAuthenticity",tooltipContent:(0,h.Iu)("DL_VERIFY_CONTENT_AUTHENTICITY"),onClick:()=>{}})}render(){return this.contentAuthenticityBadge}}).propTypes={element:s().instanceOf(U.Z).isRequired},z=(N=R).prototype,V="contentAuthenticityBadge",Y=[c.computed],W=Object.getOwnPropertyDescriptor(N.prototype,"contentAuthenticityBadge"),K=N.prototype,$={},Object.keys(W).forEach((function(e){$[e]=W[e]})),$.enumerable=!!$.enumerable,$.configurable=!!$.configurable,("value"in $||$.initializer)&&($.writable=!0),$=Y.slice().reverse().reduce((function(e,t){return t(z,V,e)||e}),$),K&&void 0!==$.initializer&&($.value=$.initializer?$.initializer.call(K):void 0,$.initializer=void 0),void 0===$.initializer&&(Object.defineProperty(z,V,$),$=null),D=N))||D;var z,V,Y,W,K,$,q,X,J;let Q=(0,l.Pi)(((J=class extends o.Component{get element(){return this.props.element}get editBadge(){return o.createElement(G.Z,{dataTestId:"edit",icon:"Edit",tooltipContent:(0,h.Iu)("DL_EDIT_IN_SOURCE"),onClick:this.editOperation.apply})}get editOperation(){return p.Z.getEditOperations(this.element).find((e=>e.onEditItem&&!e.disabled))}render(){return this.editOperation&&this.element.library.isWritable&&!p.Z.isDownloadInProgress(this.element)?this.editBadge:null}}).propTypes={element:s().oneOfType([s().instanceOf(O.W_),s().instanceOf(S.Z)]).isRequired},function(e,t,r,n,i){var o={};Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}((X=J).prototype,"editBadge",[c.computed],Object.getOwnPropertyDescriptor(X.prototype,"editBadge"),X.prototype),q=X))||q;var ee,te,re,ne=r(5849),ie=r(69233),oe=r(20290);function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ae.apply(this,arguments)}function se(){se=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ce(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function le(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return ue(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ue(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function de(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let pe=(0,l.Pi)(((re=class extends o.Component{constructor(...e){var t;super(...e),t=this,this._getElementSourceGroup=()=>this.element.linkedElement&&this.element.linkedElement.getGroups()[0],this._getElementSourceName=()=>{const e=this.element.linkedLibrary;let t;return this.element.isLegacyDocumentLink?t=this.element.linkedDocumentName:e?e.name&&(t=e.name):t=this.element.cachedLinkedLibraryName,t},this.onMouseOver=()=>{this.previousTooltips=document.querySelectorAll("active-overlay");var e,t=le(this.previousTooltips);try{for(t.s();!(e=t.n()).done;)e.value.style.display="none"}catch(e){t.e(e)}finally{t.f()}this.checkIfCanAddTeamLibrary(),this.fetchLibraryInvitations(),this.showPreview()},this.fetchLibraryInvitations=()=>{(this.element.isMissingLibrary||this.element.isPendingInvite)&&this.context.libraryManager.fetchLibraryInvitations()},this._checkIfCanAddTeamLibrary=function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ce(o,n,i,a,s,"next",e)}function s(e){ce(o,n,i,a,s,"throw",e)}a(void 0)}))}}(se().mark((function e(){return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.element.isMissingLibrary&&!t.element.isPendingFollow||!t.element.cachedLinkedLibraryAssetId){e.next=2;break}return e.abrupt("return",t.context.libraryManager.fetchTeamLibraryData(t.element.cachedLinkedLibraryAssetId));case 2:case"end":return e.stop()}}),e)}))),this.checkIfCanAddTeamLibrary=(0,oe.P2)(this._checkIfCanAddTeamLibrary,b.Z.FETCH_TEAM_LIBS_THROTTLE),this.showPreview=()=>{const e=this.element.isPendingUpdate;this.element.isDeprecatedLegacyDocumentLink||!e||g.Z.isPreviewActive||(j.ZP.reportElementEvent("Gated Update","Element","render","preview-update",this.element),g.Z.startPreview(this.element))},this.hidePreview=()=>{var e,t=le(this.previousTooltips);try{for(t.s();!(e=t.n()).done;)e.value.style.display="block"}catch(e){t.e(e)}finally{t.f()}g.Z.isPreviewActive&&g.Z.cancelPreview()},this.handleClick=e=>{this.element.isNormalLinkState&&!this.element.isDeprecatedLegacyDocumentLink||e.stopPropagation(),this.element.isBrokenLegacyDocumentLink||(this.element.isMissingLegacyDocumentLink&&this.element.canRelinkToDocument?this.element.relinkToDocument():this.element.isDeprecatedLegacyDocumentLink||!this.element.isPendingUpdate&&!g.Z.isPreviewActive?(this.element.isMissingLink||this.element.isDeprecatedLegacyDocumentLink)&&(this.element.canRelinkToLibrary?this.context.documentActions.relinkAssetToLibrary(this.element):g.Z.openApplicationDialog("resolveBrokenLinks",{element:this.element})):(j.ZP.reportElementEvent("Gated Update","Element","render","accept-update",this.element),g.Z.commitPreview()))},this.onRightClick=e=>{g.Z.isPreviewActive&&e.stopPropagation()}}get element(){return this.props.element}get iconName(){if(this.element.isSyncing)return"AssetUploading";if(!this.element.isDeprecatedLegacyDocumentLink){if(this.element.isNormalLinkState)return"AssetLinked";if(this.element.isPendingUpdate)return"AssetUpdate"}return this.element.isRestricted?"AssetRestricted":this.element.linkType===b.Z.LIBRARY_TYPE?"AssetBrokenElement":"AssetBrokenLink"}get tooltipContent(){const e=[];if(this.element.isNormalLinkState&&(this.element.isDeprecatedLegacyDocumentLink?(e.push((0,h.Iu)("ASSET_SOURCE_DOCUMENT_DEPRECATED")),e.push((0,h.Iu)("ASSET_LINK_RESOLVE"))):g.Z.isPreviewActive||e.push((0,h.Iu)("ASSET_LINK_UP_TO_DATE"))),this.element.isPendingUpdate||g.Z.isPreviewActive)if(this.element.isDeprecatedLegacyDocumentLink)e.push((0,h.Iu)("ASSET_SOURCE_DOCUMENT_DEPRECATED")),e.push((0,h.Iu)("ASSET_LINK_RESOLVE"));else if(e.push((0,h.Iu)("ASSET_LINK_UPDATE")),this.element.linkedAsset){const t=(0,h.zt)(this.element.linkedAsset.modified.getTime());e.push(t)}this.element.isSyncing&&e.push((0,h.Iu)("DL_SYNCING")),this.element.isMissingLibraryLink?this.element.isPendingFollow?(e.push((0,h.Iu)("ASSET_LINK_MISSING_PENDING_FOLLOW")),e.push((0,h.Iu)("ASSET_LINK_MISSING_LIBRARY_RESOLVE"))):(e.push((0,h.Iu)("ASSET_LINK_MISSING_LIBRARY")),this.element.isPendingInvite?e.push((0,h.Iu)("ASSET_LINK_MISSING_LIBRARY_RESOLVE")):this.element.canRelinkToLibrary&&e.push((0,h.Iu)("ASSET_LINK_RESOLVE"))):this.element.isMissingLegacyDocumentLink?(e.push((0,h.Iu)("ASSET_LINK_MISSING_SOURCE_DOCUMENT")),this.element.canRelinkToDocument&&e.push((0,h.Iu)("ASSET_LINK_RELINK"))):this.element.isRestricted?e.push((0,h.Iu)("ASSET_LINK_RESTRICTED")):this.element.isMissingLink&&(e.push((0,h.Iu)(this.element.linkType===b.Z.LIBRARY_TYPE?"ASSET_LINK_MISSING_ELEMENT":"ASSET_LINK_MISSING_ASSET")),this.element.canRelinkToLibrary&&e.push((0,h.Iu)("ASSET_LINK_RESOLVE")));const t=this._getElementSourceName();if(t){const r=this.element.isLegacyDocumentLink?"ASSET_SOURCE_DOCUMENT":"ASSET_SOURCE_LIBRARY";e.push((0,h.Iu)(r,{name:t}))}const r=this._getElementSourceGroup();return r&&e.push((0,ie.DB)(r)),e}componentDidMount(){this.fetchLibraryInvitations(),this.checkIfCanAddTeamLibrary(),this._dispose=(0,c.reaction)((()=>this.element.isMissingLibrary),(e=>{e&&(this._checkIfCanAddTeamLibrary(),this.fetchLibraryInvitations())})),this.previousTooltips=[]}componentWillUnmount(){this._dispose()}get loadingSpinner(){return o.createElement(ne.Z,{"data-test-id":"link-badge-loading",className:"link-badge-loading",indeterminate:!0,size:"small"})}get linkBadge(){return o.createElement(A.Z,{placement:"top-start",content:this.tooltipContent},o.createElement("div",ae({className:"element-badge-container","data-test-id":"link-badge",onClick:this.handleClick,onMouseOver:this.onMouseOver,onMouseOut:this.hidePreview},g.Z.contextMenuEventListeners(this.onRightClick)),o.createElement(C.Z,{id:this.iconName,height:16,className:"nopointer"})))}get isUnlinking(){return this.context.viewManager.getIsUnlinkingAsset(this.element)}render(){return this.element.isLinked?this.isUnlinking?this.loadingSpinner:this.linkBadge:null}}).contextType=L.r,re.propTypes={element:s().oneOfType([s().instanceOf(O.W_),s().instanceOf(S.Z)]).isRequired},de((te=re).prototype,"linkBadge",[c.computed],Object.getOwnPropertyDescriptor(te.prototype,"linkBadge"),te.prototype),de(te.prototype,"isUnlinking",[c.computed],Object.getOwnPropertyDescriptor(te.prototype,"isUnlinking"),te.prototype),ee=te))||ee;var he,fe,me,ge,ve,ye=r(10440),be=r(25585),_e=r(2169),Ee=r(51702),we=r(85080),xe=r(85834),Le=r(52422);function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Oe.apply(this,arguments)}function Se(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Te=(he=c.observable.ref,(0,l.Pi)((ve=class extends o.Component{constructor(e){super(e),this.overlayState=new we.Z({ignoreScrollEvents:!0,ignoreFocus:!0}),this.handleLicense=()=>{j.ZP.reportStockEvent("License","click","start",{ui:{sequence:"thumbnail"}},this.element),M.q$()?M.Zg(this.element).then((()=>{j.ZP.reportStockEvent("License","render","success",{ui:{sequence:"thumbnail"}},this.element)})).catch((()=>{j.ZP.reportStockEvent("License","render","error",{ui:{sequence:"thumbnail"}},this.element)})):F.WS(M.wq(this.element),this.element.type)},this._lastClickTime=0,this.handleClick=(e,t=!1)=>{if(this.props.disableInteraction)return;var r,n;if(xe.Z.get("ubeDesignEnabled"))return void(null===(r=(n=b.Z.currentProduct).navigateToElement)||void 0===r||r.call(n,this.element));this.onClickSetSelection(e,t);const i=y.Z.selection.length>0,o=b.Z.currentProduct.config,a=o.navigateToElementOneUp,s=o.enableMultiSelectCheckbox;if(a){if(this.element.id.startsWith("@PLACEHOLDER"))return;var c;s&&(t||i)||null===(c=g.Z.navigateToElement)||void 0===c||c.call(g.Z,this.element,this.element.library)}const l=(new Date).valueOf();if(!e.metaKey&&!e.ctrlKey&&!e.shiftKey&&this._lastClickTime<l-500){const e=p.Z.getOnClickApplyOperation(this.element);e&&e.apply()}this._lastClickTime=l},this.handleKeyDown=e=>{"Enter"===e.key&&this.handleClick(e)},this.selectSingleElement=()=>{ye.Z.clearSelection(),y.Z.setSelection(this.element)},this.onClickSetSelection=(e,t=!1)=>{var r,n;if(e.stopPropagation(),E.Z.setContextMenu([]),g.Z.isMobileView&&null!==(r=(n=b.Z.currentProduct).isExpandedView)&&void 0!==r&&r.call(n))return;const i=this.context.viewState.getState().enableMultiSelect,o=g.Z.isWindowsOS(),a=b.Z.currentProduct.config.enableMultiSelectCheckbox,s=y.Z.selection.length>0,c=!o&&e.metaKey||o&&e.ctrlKey||o&&g.Z.hasUXPWindowsCTRLClickBug&&e.metaKey;i?t&&a||c?y.Z.toggleSelection(this.element):e.shiftKey?y.Z.setSelectionRange(this.element):a&&s?y.Z.toggleSelection(this.element):a||this.selectSingleElement():this.selectSingleElement()},this.handleDoubleClick=e=>{e.stopPropagation(),this.props.disableInteraction||this.element.library.isDocumentAssets&&b.Z.currentProduct.config.disableEditOnDoubleClickAsset||p.Z.editElement(this.element)},this.handleDragStart=e=>{var t,r;if(g.Z.isMobileView)return void e.preventDefault();y.Z.isSelected(this.element)||y.Z.setSelection(this.element);const n=y.Z.selection,i=[];n.forEach((e=>{const t=p.Z.getDragData(e);t&&(delete t.usedRepresentationForAnalytics,i.push(t))}));const o={source:b.Z.DRAGDROP_SOURCE,version:w.Z.getPluginVersion(),assetList:i};try{e.dataTransfer.setData(g.Z.ElementDragId,JSON.stringify(o))}catch(e){}const a=g.Z.useUXPDragImage;let s=Z.Ig()&&!a;if(g.Z.enableDragOutsideProduct&&1===n.length&&!n[0].library.isDocumentAssets){const t=n[0];if(b.Z.DRAGOUT_ELEMENT_TYPES.includes(t.type)){const r=p.Z.getRepresentationForExport(t),n=r&&r.getCachedContentPath(),i=(0,f.__)(r);n&&i&&(s=!1,e.dataTransfer.setData("DownloadURL",`file/${i}:${t.name}.${i}:file://${n}`))}}s&&e.dataTransfer.setDragImage(this.blankImage,0,0),a&&n.forEach(((t,r)=>{const n=document.getElementById(`element-${t.id}`);n&&e.dataTransfer.uxpSetDragImageAt(n,0,0,r)})),null===(t=(r=b.Z.currentProduct.config).setElementDragData)||void 0===t||t.call(r,e,n),_.Z.handleDragStart("element",n,s?t=>{const r=e.target.cloneNode(!0);if(r.style.left=e.target.clientX-e.target.clientWidth/2+"px",r.style.top=e.target.clientY-e.target.clientHeight/2+"px",r.classList.add("panel-ghost-element"),n.length>1){const e=document.createElement("div");e.classList.add("panel-ghost-count");const r=b.Z.MAX_DRAG_DISPLAY_COUNT,i=r&&r<n.length?(0,h.Iu)("DL_MAX_DRAG_DISPLAY_COUNT",{maxCount:r}):n.length;e.innerHTML=i,t.appendChild(e)}t.appendChild(r),t.style.width=(b.Z.currentProduct.config.customDragCardWidth||e.target.clientWidth)+"px",t.style.height=(b.Z.currentProduct.config.customDragCardHeight||e.target.clientHeight)+"px",(e.target.getRootNode().querySelector("body")||g.Z.getRootPanelElement()).appendChild(t)}:null)},this.handleDragEnd=e=>{b.Z.currentProduct.config.missingDropEventsBug?_.Z.handleDrop(e):_.Z.handleDragEnd()},this.handleContextMenu=(e,t)=>{if(e.stopPropagation(),this.props.disableInteraction)return;let r,n;if(this.overlayState.toggleOverlay(),"click"!==e.type&&"contextmenu"!==e.type||(r=e.clientX,n=e.clientY),"keydown"===e.type){const t=e.target.getBoundingClientRect();r=t.left,n=t.bottom}this.context.viewState.setContextMenuPositionState({x:r,y:n});const i=(0,m.Ol)(this.element.library);j.ZP.reportElementEvent("Navigation",i?"brands":"libraries","click","library-asset-contextual-menu",this.element),(0,v.pT)(this.element),g.Z.onContextMenu(e,t)},this.handleCheckboxClick=e=>{e.stopPropagation(),this.handleClick(e,!0)},this.handleCheckboxKeyDown=e=>{"Tab"===e.key&&(" "!==e.key&&"Enter"!==e.key||(e.stopPropagation(),this.handleClick(e,!0)))},this.checkbox=(e,t)=>{const r=b.Z.currentProduct.config,n=r.enableMultiSelectCheckbox,i=r.showElementContextMenuButton;if(!n)return null;if(null!=i&&i(this.element)){const r=t?"elementSelectedCheckbox":"elementCheckbox";return o.createElement("div",{className:r,"data-test-id":r},o.createElement(Le.Z,{checked:e,onChange:this.handleCheckboxClick,onKeyDown:this.handleCheckboxKeyDown}))}return null},function(e,t,r,n){r&&Object.defineProperty(e,"metadataRef",{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}(this,0,ge,this),this.setMetadataRef=e=>{this.metadataRef=e},this.onNameClick=e=>{!b.Z.currentProduct.config.applyElementOnNameClick&&this.onClickSetSelection(e)},this._registerElementNode=(e,t)=>{g.Z.registerElementNode&&g.Z.registerElementNode(t,e)},this.onMouseOver=()=>{const e=this.element.isPendingUpdate;!this.element.isDeprecatedLegacyDocumentLink&&e&&!g.Z.isPreviewActive&&b.Z.currentProduct.config.updatedPreviewOnThumbnailHover&&(j.ZP.reportElementEvent("Gated Update","Element","render","preview-update",this.element),g.Z.startPreview(this.element))},this.onMouseOut=()=>{g.Z.isPreviewActive&&b.Z.currentProduct.config.updatedPreviewOnThumbnailHover&&g.Z.cancelPreview()},this.blankImage=new Image,this.blankImage.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="}get element(){return this.props.element}get disabled(){return p.Z.isDisabled(this.element)&&!this.props.viewMode.startsWith("thumbnail")}get selected(){return y.Z.isSelected(this.element)}get invalidRename(){return this.context.viewManager.renamingItem===this.element&&this.context.viewManager.renameStatus!==b.Z.RENAME_STATES.VALID}get subSelected(){const e=this.props.element.getGroups()[0];return!!(e?(0,ie._y)(e,!0):[]).find((e=>ye.Z.isSelected(e)))}get focused(){return y.Z.isFocused(this.element)}get placeButton(){if(b.Z.currentProduct.config.showPlaceButtons){const e=p.Z.getApplyOperations(this.element),t=e&&e.find((e=>e.showPlaceButton)),r=(0,f.Mo)(this.element),n=r.isDownloadPending,i=r.hasFailed;if(t&&!n&&!i)return o.createElement(k,{viewMode:this.props.viewMode,applyOperation:t,key:"place-button"})}}get purchaseButton(){const e=!M.q$(),t=d()("panel-list-item-license",{disabled:e});return M.Jw(this.element)&&"list"===this.props.viewMode&&!M.kv(this.element)?o.createElement("div",{className:t},o.createElement(A.Z,{placement:"top-start",content:(0,h.Iu)("DL_STOCK_LICENSE_MENU"+M.Y8(this.props.element))},o.createElement(C.Z,{id:"ShoppingCart",height:12,onClick:this.handleLicense}))):null}get linkBadge(){return o.createElement(pe,{key:"link-badge",element:this.props.element})}get elementBadges(){if(this.props.disableInteraction)return[];const e="thumbnail-large"===this.props.viewMode&&o.createElement(Q,{element:this.element,key:"edit-badge"}),t="thumbnail-large"===this.props.viewMode&&(0,B.o1)(this.element)&&o.createElement(H,{element:this.element,key:"content-authenticity-badge"}),r="thumbnail"!==this.props.viewMode?this.props.elementBadges:[],n=[e,t].filter(Boolean),i=[];return r.forEach((e=>{"sync-font-badge"===e.key?i.push(e):n.push(e)})),this.props.element.isLinked&&i.push(this.linkBadge),"list"!==this.props.viewMode&&this.placeButton&&i.push(this.placeButton),o.createElement("div",{className:"element-badges-container","data-test-id":"element-badges"},o.createElement("div",{className:"element-badges-left-container","data-test-id":"element-badges-left-container"},n),o.createElement("div",{className:"element-badges-right-container","data-test-id":"element-badges-right-container"},i))}getClasses(){let e;if("grid"===this.props.viewMode)e=`panel-${p.Z.getShortType(this.element.type)}-item panel-grid-item`;else{const t=_.Z.activeDropTarget&&_.Z.activeDropTarget.group===b.Z.UNGROUPED_GROUP;e=d()({"group-view":this.context.viewState.isGroupView(),ungrouped:0===this.props.element.getGroups().length,"ungrouped-drop-target":t},"panel-list-item")}const t=p.Z.getAdditionalClasses(this.element),r=_.Z.activeDropTarget&&_.Z.activeDropTarget.beforeElement===this.element&&!_.Z.activeDropTarget.isRowEnd,n=_.Z.activeDropTarget&&_.Z.activeDropTarget.afterElement===this.element&&_.Z.activeDropTarget.isRowEnd,i="order"===this.context.viewState.elementSortState;return d()({"panel-group-view-item":"group"===this.context.viewState.viewByState,"disabled-item":this.disabled,selected:!this.props.disableInteraction&&this.selected&&!this.subSelected,"sub-selected":this.subSelected,focused:this.focused,interactive:!this.props.disableInteraction,"grid-name-visible":"always"===this.context.viewState.nameVisibility,[`panel-${this.props.viewMode}-item-separator`]:i&&r,[`panel-${this.props.viewMode}-item-separator-end`]:i&&n},e,t,"show-on-hover-parent")}get style(){return"list"===this.props.viewMode?this.props.listStyle:"grid"===this.props.viewMode?{width:"100%",height:"100%"}:void 0}get contextMenuButton(){var e,t;if("grid"===this.props.viewMode&&null!==(e=(t=b.Z.currentProduct.config).showElementContextMenuButton)&&void 0!==e&&e.call(t,this.element))return o.createElement("div",{className:d()("gridContextMenuButton",{open:this.overlayState.isOpen})},o.createElement(Ee.Z,{onContextMenuClick:this.handleContextMenu}))}getGroupMeta(e,t){const r=(0,ie._y)(e,!0),n=r.map((e=>e.name));this.context.viewState.isLibrariesSearchMode()&&n.unshift(e.library.name);const i=r.find((e=>!!e.excludeFromChildPaths));if(this.context.viewState.isDocumentSearchMode()&&i&&n.shift(),!n.length)return;const o=(0,_e.E0)(t,"panel-list-item-info").width,a=this.metadataRef&&this.metadataRef.clientWidth-o||b.Z.TOOLTIP_MAX_WIDTH;t&&(n[0]=`, ${n[0]}`);const s=(0,be.Zj)(n,{maxWidth:a,className:"panel-list-item-info"});return t?s.includes(",")?s:`, ${s}`:s}get additionalDetails(){if(b.Z.currentProduct.config.hideListViewMetadata&&!this.context.viewState.isSearchMode())return;let e=!1;b.Z.currentProduct.config.shouldShowExtensionInSearch&&(e=b.Z.currentProduct.config.shouldShowExtensionInSearch(this.props.element));const t=p.Z.getAdditionalElementDetails(this.props.element);let r=!e&&p.Z.getExtension(this.props.element);r=r&&o.createElement("span",{className:"list-item-extension","data-test-id":"info-extension"},r.toUpperCase());const n=this.props.element.getGroups()[0],i=[t].filter((e=>e)).join(", "),a=n&&this.context.viewState.isSearchMode()&&this.getGroupMeta(n,i),s=(i||a)&&o.createElement("span",{"data-test-id":"info-text"},i,a);return r||s?o.createElement("div",{ref:this.setMetadataRef,"data-test-id":"info-text-container",className:"panel-list-item-info"},r,s):void 0}get extension(){const e=p.Z.getExtension(this.element)||"";return o.createElement("div",{"data-test-id":"extension-text",className:"panel-grid-item-extension"},e.toUpperCase())}get nameAndDescription(){const e=this.additionalDetails;return"list"===this.props.viewMode&&e?o.createElement("div",{className:"panel-list-item-multiline-container"},o.createElement(T,{onNameClick:this.onNameClick,element:this.element,selected:this.selected,viewMode:this.props.viewMode}),e):("list"===this.props.viewMode||!b.Z.currentProduct.config.hideNamesInGridView)&&o.createElement("div",{className:"panel-grid-item-multiline-container"},o.createElement(T,{onNameClick:this.onNameClick,element:this.element,selected:this.selected,viewMode:this.props.viewMode}),"none"!==this.props.showDetails&&this.gridElementDetails)}get gridElementDetails(){return o.createElement("div",{className:"panel-grid-item-type","data-test-id":"grid-item-details"},p.Z.getGridElementDetails(this.props.showDetails,this.props.element))}get overlay(){const e=d()({"disabled-item":this.disabled,selected:this.selected,"has-opacity-bug":g.Z.hasOpacityBug,"invalid-rename":this.invalidRename},`panel-${this.props.viewMode}-selected-overlay`);return o.createElement("div",{className:e})}get isDraggable(){return!this.props.disableInteraction&&this.context.viewManager.renamingItem!==this.element&&"thumbnail"!==this.props.viewMode}get shouldRenderThumbnailAboveName(){return"grid"===this.props.viewMode&&[b.Z.GRID_TYPE_LARGE,b.Z.GRID_TYPE_MEDIUM].includes(this.props.gridSizeType)&&"always"===this.context.viewState.nameVisibility}get thumbnailContents(){if(this.shouldRenderThumbnailAboveName){var e,t;const r=null!==(e=(t=b.Z.currentProduct).isExpandedView)&&void 0!==e&&e.call(t)?b.Z.EXPANDED_GRID_VIEW_NAME_HEIGHT:b.Z.GRID_VIEW_NAME_HEIGHT;return o.createElement("div",{"data-test-id":"grid-thumbnail-above-name",className:"grid-thumbnail-above-name",style:{height:`calc(100% - ${r}px)`}},this.props.children)}return this.props.children}get tooltipContent(){if(!this.props.disableTooltip&&(!this.overlayState.isOpen||g.Z.Tooltip))return p.Z.getTooltipContent(this.element)}get stockId(){return M.Jw(this.element)?M.wq(this.element):null}render(){const e=y.Z.isSelected(this.element);if(this.props.viewMode.startsWith("thumbnail")){const e=p.Z.getAdditionalClasses(this.element),t=d()("panel-list-item",`${this.props.viewMode}-view`,e);return o.createElement("div",{className:t,"data-test-id":`element-thumbnail-${this.element.getLegacyReference()}`,draggable:this.isDraggable,onDragStart:this.handleDragStart,onDragEnd:this.handleDragEnd},this.props.children,this.elementBadges)}const t=y.Z.selection.length>0,r=o.createElement("div",Oe({id:`element-${this.element.id}`,ref:e=>this._registerElementNode(e,this.element),className:this.getClasses(),style:this.style,"img-size":"","data-test-id":`element-${this.element.getLegacyReference()}`,draggable:this.isDraggable,onClick:this.handleClick,onDoubleClick:this.handleDoubleClick},g.Z.contextMenuEventListeners(this.handleContextMenu),{onDragStart:this.handleDragStart,onDragEnd:this.handleDragEnd,onKeyDown:this.handleKeyDown,onMouseOver:this.onMouseOver,onMouseOut:this.onMouseOut,tabIndex:0},this.stockId?{"data-stock-id":this.stockId}:{}),this.checkbox(e,t),this.thumbnailContents,!this.props.thumbnailOnly&&o.createElement(o.Fragment,null,this.overlay,this.nameAndDescription,"list"===this.props.viewMode&&this.placeButton,t?this.elementBadges:this.contextMenuButton||this.elementBadges));return this.tooltipContent?o.createElement(A.Z,{placement:"top-start",content:b.Z.currentProduct.config.disableContentViewTooltips?void 0:this.tooltipContent,className:"element-tooltip"},r,g.Z.hasUXPScrollZIndexBug&&"list"===this.props.viewMode&&o.createElement("div",{"data-test-id":"uxp-scrollbar-drag-padding",className:"uxp-scrollbar-drag-padding"})):r}},ve.contextType=L.r,ve.defaultProps={viewMode:"grid",showDetails:"none",elementBadges:[]},ve.propTypes={showDetails:s().oneOf(["type","none"]),children:s().node,element:s().oneOfType([s().instanceOf(O.W_),s().instanceOf(S.Z)]).isRequired,viewMode:s().oneOf(b.Z.ELEMENT_VIEW_MODES),elementBadges:s().arrayOf(s().node),gridSizeType:s().oneOf(b.Z.GRID_SIZE_TYPES),listStyle:s().object,disableTooltip:s().bool,thumbnailOnly:s().bool,disableInteraction:s().bool},Se((me=ve).prototype,"disabled",[c.computed],Object.getOwnPropertyDescriptor(me.prototype,"disabled"),me.prototype),Se(me.prototype,"selected",[c.computed],Object.getOwnPropertyDescriptor(me.prototype,"selected"),me.prototype),Se(me.prototype,"invalidRename",[c.computed],Object.getOwnPropertyDescriptor(me.prototype,"invalidRename"),me.prototype),Se(me.prototype,"subSelected",[c.computed],Object.getOwnPropertyDescriptor(me.prototype,"subSelected"),me.prototype),Se(me.prototype,"focused",[c.computed],Object.getOwnPropertyDescriptor(me.prototype,"focused"),me.prototype),Se(me.prototype,"placeButton",[c.computed],Object.getOwnPropertyDescriptor(me.prototype,"placeButton"),me.prototype),Se(me.prototype,"purchaseButton",[c.computed],Object.getOwnPropertyDescriptor(me.prototype,"purchaseButton"),me.prototype),Se(me.prototype,"style",[c.computed],Object.getOwnPropertyDescriptor(me.prototype,"style"),me.prototype),ge=Se(me.prototype,"metadataRef",[he],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Se(me.prototype,"tooltipContent",[c.computed],Object.getOwnPropertyDescriptor(me.prototype,"tooltipContent"),me.prototype),Se(me.prototype,"stockId",[c.computed],Object.getOwnPropertyDescriptor(me.prototype,"stockId"),me.prototype),fe=me))||fe)},56649:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p});var n,i,o=r(89526),a=r(62631),s=r(18135),c=r(31408),l=r(24937);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let p=(0,a.Pi)(((i=class extends o.Component{render(){return o.createElement(s.Z,this.props,["list","thumbnail"].includes(this.props.viewMode)?o.createElement("div",{className:"panel-list-item-thumb","img-size":""},o.createElement(c.Z,{element:this.props.element,viewMode:this.props.viewMode,thumbnailType:this.context.viewState.thumbnailType})):o.createElement(c.Z,{element:this.props.element,viewMode:this.props.viewMode,thumbnailType:this.context.viewState.thumbnailType}))}}).contextType=l.r,i.defaultProps={viewMode:"grid"},i.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},s.Z.propTypes),n=i))||n},9276:(e,t,r)=>{"use strict";r.d(t,{Z:()=>y});var n,i,o,a=r(89526),s=r(64403),c=r.n(s),l=r(50265),u=r(62631),d=r(18135),p=r(47320),h=r(76485),f=r(74379),m=r(99386);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let y=(0,u.Pi)(((o=class extends a.Component{get disabled(){var e,t;return p.Z.isDisabled(this.props.element)&&!this.props.viewMode.startsWith("thumbnail")&&!(null!==(e=(t=m.Z.currentProduct).isExpandedView)&&void 0!==e&&e.call(t))}convertSingleColor(e){return h.Z.convertSingleColor(e)}getStyle(){return{backgroundColor:(0,f.tX)(this.props.element,this.disabled,h.Z.shouldConvertColor()?this.convertSingleColor:void 0)}}get hasOpacity(){const e=this.props.element.getPrimaryRepresentation(),t=e&&e.getValue("color","data");return t&&void 0!==t.alpha&&1!==t.alpha}get colorView(){const e=c()(`panel-${this.props.viewMode}-color-item-thumb`,{disabled:this.disabled,opacity:this.hasOpacity,"panel-grid-item-contents":"grid"===this.props.viewMode});let t="panel-color-item-content";return h.Z.colorProfile===f.wo.SRGB&&(t="panel-color-item-content-auto"),a.createElement("div",{className:e},a.createElement("div",{"data-test-id":`color-view-${this.props.viewMode}`,style:this.getStyle(),className:t}))}render(){return a.createElement(d.Z,this.props,this.colorView)}}).defaultProps={viewMode:"grid"},o.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},d.Z.propTypes),b=(i=o).prototype,_="disabled",E=[l.computed],w=Object.getOwnPropertyDescriptor(i.prototype,"disabled"),x=i.prototype,L={},Object.keys(w).forEach((function(e){L[e]=w[e]})),L.enumerable=!!L.enumerable,L.configurable=!!L.configurable,("value"in L||L.initializer)&&(L.writable=!0),L=E.slice().reverse().reduce((function(e,t){return t(b,_,e)||e}),L),x&&void 0!==L.initializer&&(L.value=L.initializer?L.initializer.call(x):void 0,L.initializer=void 0),void 0===L.initializer&&(Object.defineProperty(b,_,L),L=null),n=i))||n;var b,_,E,w,x,L},33372:(e,t,r)=>{"use strict";r.d(t,{Z:()=>T});var n,i,o,a=r(89526),s=r(2652),c=r.n(s),l=r(62631),u=r(50265),d=r(18135),p=r(99767),h=r(47320),f=r(74379),m=r(64403),g=r.n(m),v=r(76792),y=r(76485),b=r(99386),_=r(22708),E=r.n(_);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){L(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function L(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},O.apply(this,arguments)}function S(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let T=(0,l.Pi)(((o=class extends a.Component{constructor(...e){super(...e),this.handleContextMenu=(e,t)=>{this.isInteractive&&(e.stopPropagation(),(0,v.pT)(this.props.element,t),y.Z.onContextMenu(e))}}get disabled(){var e,t;return h.Z.isDisabled(this.props.element)&&!this.props.viewMode.startsWith("thumbnail")&&!(null!==(e=(t=b.Z.currentProduct).isExpandedView)&&void 0!==e&&e.call(t))}get representation(){return h.Z.findUsableRepresentation(this.props.element,"application/vnd.adobe.colortheme+json")}get isInteractive(){return!b.Z.currentProduct.config.navigateToElementOneUp&&!this.props.viewMode.startsWith("thumbnail")&&!this.props.disableInteraction}get swatches(){const e=this.representation&&this.representation.getValue("colortheme","data");if(e)return e.swatches}useColor(e,t){if(this.isInteractive){const r=h.Z.getApplyOperations(this.props.element,e).find((e=>!!e.onClick));r&&r.apply(),t.stopPropagation()}}getStyle(e){return{background:f.CV(e,this.disabled)}}getColorSwatches(){if(!this.swatches)return;let e;if(["list","thumbnail"].includes(this.props.viewMode)){e=g()({interactive:this.isInteractive,"panel-thumbnail-disabled":this.disabled},"panel-list-colortheme-item-thumb");const t=g()({"thumbnail-view":!this.isInteractive},"panel-list-colortheme-item-color");return a.createElement("div",{className:e,"data-test-id":`colortheme-view-${this.props.viewMode}`},this.swatches.map((e=>a.createElement("div",{key:E()(),className:t,style:this.getStyle(e),onClick:t=>this.useColor(e,t)},this.isInteractive&&a.createElement(p.Z,{placement:"top-start",content:h.Z.getTooltipContent(this.props.element,e)},a.createElement("div",{className:"panel-list-colortheme-item-color-inner"}))))))}e=g()({"panel-thumbnail-disabled":this.disabled,"panel-colortheme-mosaic-view":this.props.isMosaicView,"panel-colortheme-item-color":!this.props.isMosaicView});const t=g()("panel-colortheme-container",{"panel-grid-item-contents":!(this.props.viewMode.startsWith("thumbnail")||this.props.isMosaicView),"panel-grid-item-contents-no-border-radius":this.props.viewMode.startsWith("thumbnail")||this.props.isMosaicView});return a.createElement("div",{className:t},this.swatches.map((t=>a.createElement("div",O({key:E()(),"data-test-id":"inner-swatch",className:e,style:this.getStyle(t),onClick:e=>this.useColor(t,e)},y.Z.contextMenuEventListeners((e=>this.handleContextMenu(e,t)))),a.createElement(p.Z,{className:"element-tooltip",placement:"bottom",content:b.Z.currentProduct.config.disableContentViewTooltips?void 0:h.Z.getTooltipContent(this.props.element,t)},a.createElement("div",{className:"panel-colortheme-item-color-inner"}))))))}render(){return a.createElement(d.Z,this.props,this.getColorSwatches())}}).defaultProps={viewMode:"grid",isMosaicView:!1},o.propTypes=x(x({},d.Z.propTypes),{},{isMosaicView:c().bool}),S((i=o).prototype,"disabled",[u.computed],Object.getOwnPropertyDescriptor(i.prototype,"disabled"),i.prototype),S(i.prototype,"representation",[u.computed],Object.getOwnPropertyDescriptor(i.prototype,"representation"),i.prototype),n=i))||n},51993:(e,t,r)=>{"use strict";r.d(t,{Z:()=>_});var n,i,o,a=r(89526),s=r(64403),c=r.n(s),l=r(50265),u=r(62631),d=r(18135),p=r(86357),h=r(47320),f=r(76485),m=r(74379),g=r(99386);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let _=(0,u.Pi)(((o=class extends a.Component{get disabled(){var e,t;return h.Z.isDisabled(this.props.element)&&!this.props.viewMode.startsWith("thumbnail")&&!(null!==(e=(t=g.Z.currentProduct).isExpandedView)&&void 0!==e&&e.call(t))}get style(){return(0,m.Zw)(this.props.element,this.disabled,!0,!1,f.Z.shouldConvertColor()?this.convertSingleColor:void 0)}convertSingleColor(e){return f.Z.convertSingleColor(e)}get customRenderer(){return h.Z.getCustomRenderer(this.props.element)}get gradientThumbnail(){const e=this.customRenderer;if(e)return a.createElement(e,this.props);let t="panel-gradient-item-content";return f.Z.colorProfile===m.wo.SRGB&&(t="panel-gradient-item-content-auto"),a.createElement("div",{"data-test-id":`gradient-view-${this.props.viewMode}`,style:this.style,className:t})}get gradient(){return a.createElement("div",{className:c()(`panel-${this.props.viewMode}-gradient-item-thumb`,{disabled:this.disabled})},this.gradientThumbnail)}get gradientView(){return"grid"===this.props.viewMode?a.createElement("div",{className:"panel-grid-item-contents"},this.gradient):this.gradient}render(){return this.style||this.customRenderer?a.createElement(d.Z,this.props,this.gradientView):a.createElement(p.Z,this.props)}}).defaultProps={viewMode:"grid"},o.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},d.Z.propTypes),b((i=o).prototype,"disabled",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"disabled"),i.prototype),b(i.prototype,"style",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"style"),i.prototype),n=i))||n},49004:(e,t,r)=>{"use strict";r.d(t,{Z:()=>k});var n,i,o,a=r(89526),s=r(62631),c=r(18135),l=r(86357),u=r(2652),d=r.n(u),p=r(24099),h=r(50265),f=r(84824),m=r(31870),g=r(51461),v=r(30131),y=r(33275),b=r(80091);let _=(0,s.Pi)(((o=class extends a.Component{constructor(...e){super(...e),this.handleLicense=()=>{g.ZP.reportStockEvent("License","click","start",{ui:{sequence:"thumbnail"}},this.element),m.q$()?m.Zg(this.element).then((()=>{g.ZP.reportStockEvent("License","render","success",{ui:{sequence:"thumbnail"}},this.element)})).catch((()=>{g.ZP.reportStockEvent("License","render","error",{ui:{sequence:"thumbnail"}},this.element)})):v.WS(m.wq(this.element),this.element.type)}}get element(){return this.props.element}get licenseBadge(){return a.createElement(p.Z,{dataTestId:"license",icon:"ShoppingCart",tooltipContent:(0,f.Iu)("DL_STOCK_LICENSE_MENU"+m.Y8(this.element)),onClick:this.handleLicense,isDisabled:!m.q$()})}render(){return m.Jw(this.element)&&!m.kv(this.element)?this.licenseBadge:null}}).propTypes={element:d().oneOfType([d().instanceOf(y.W_),d().instanceOf(b.Z)]).isRequired},E=(i=o).prototype,w="licenseBadge",x=[h.computed],L=Object.getOwnPropertyDescriptor(i.prototype,"licenseBadge"),O=i.prototype,S={},Object.keys(L).forEach((function(e){S[e]=L[e]})),S.enumerable=!!S.enumerable,S.configurable=!!S.configurable,("value"in S||S.initializer)&&(S.writable=!0),S=x.slice().reverse().reduce((function(e,t){return t(E,w,e)||e}),S),O&&void 0!==S.initializer&&(S.value=S.initializer?S.initializer.call(O):void 0,S.initializer=void 0),void 0===S.initializer&&(Object.defineProperty(E,w,S),S=null),n=i))||n;var E,w,x,L,O,S,T,P;function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},C.apply(this,arguments)}let k=(0,s.Pi)(((P=class extends a.Component{render(){const e={viewMode:this.props.viewMode,element:this.props.element,showDetails:this.props.showDetails,gridSizeType:this.props.gridSizeType};return a.createElement(l.Z,C({},e,{listStyle:this.props.listStyle,elementBadges:[a.createElement(_,{key:"license-badge",element:this.props.element})]}),this.props.children)}}).defaultProps={viewMode:"grid"},P.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?I(Object(r),!0).forEach((function(t){A(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},c.Z.propTypes),T=P))||T},90885:(e,t,r)=>{"use strict";r.d(t,{Z:()=>H});var n,i,o,a=r(89526),s=r(2652),c=r.n(s),l=r(50265),u=r(62631),d=r(64403),p=r.n(d),h=r(47320),f=r(74379),m=r(16203),g=r(18135),v=r(31408),y=r(99386),b=r(24099),_=r(76485),E=r(84824),w=r(5849),x=r(27611),L=r(99767),O=r(24937),S=r(33275),T=r(80091);function P(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let I=(0,u.Pi)(((o=class extends a.Component{constructor(...e){super(...e),this.runTypekitAction=e=>{"sync"===e?this.typekitFont.sync(this.style,"icon",this.element):this.typekitFont.upgrade("icon",this.element)}}get element(){return this.props.element}get loadingBadge(){const e=_.Z.SmallSpinner;return a.createElement("div",{className:"element-badge-container"},a.createElement("div",{"data-test-id":"loading-badge-spinner",className:"element-badge-overlay loading-spinner"},e?a.createElement(e,null):a.createElement(w.Z,{size:"small",indeterminate:!0})))}get missingFontBadge(){return a.createElement(L.Z,{placement:"top-start",content:(0,E.Iu)("DL_FONT_MISSING_TOOLTIP")},a.createElement("div",{className:"element-badge-warning-missing","data-test-id":"font-badge-missing"},a.createElement(x.Z,{id:"MissingFontWarning",height:16})))}get activateBadge(){return a.createElement(b.Z,{dataTestId:"activate",icon:"SyncDefault",badgeSize:"small",iconHeight:10,tooltipContent:(0,E.Iu)(`DL_TYPEKIT_${this.typekitAction.toUpperCase()}_TOOLTIP`),onClick:()=>this.runTypekitAction(this.typekitAction)})}get typekitFont(){const e=this.style&&this.style.adbeFont&&this.style.adbeFont.postScriptName;return this.context.libraryManager.getTypekitFontData(e)}get isFontSyncing(){return this.typekitFont.isFontSyncing}get style(){const e=h.Z.getShortType(this.element.type),t=h.Z.findUsableRepresentation(this.element,`application/vnd.adobe.${e}+json`),r=t&&t.getValue(e,"data");return null!=r&&r.adbeFont?r:{adbeFont:r}}get isMissingFont(){return!this.context.libraryManager.isFontAvailable(this.style)}get isTypekitFont(){return!!this.typekitFont.fontId}get typekitAction(){const e=this.typekitFont.fontActions;return e&&0===e.length?"sync":e&&e.includes("upgrade")?"upgrade":void 0}render(){return this.disabled||!this.isMissingFont?null:this.typekitFont?this.typekitFont.isLoading?null:this.typekitFont.isFontSyncing?this.loadingBadge:this.typekitAction?this.activateBadge:this.missingFontBadge:this.missingFontBadge}}).contextType=O.r,o.propTypes={element:c().oneOfType([c().instanceOf(S.W_),c().instanceOf(T.Z)]).isRequired},P((i=o).prototype,"loadingBadge",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"loadingBadge"),i.prototype),P(i.prototype,"missingFontBadge",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"missingFontBadge"),i.prototype),P(i.prototype,"activateBadge",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"activateBadge"),i.prototype),P(i.prototype,"typekitFont",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"typekitFont"),i.prototype),P(i.prototype,"isFontSyncing",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"isFontSyncing"),i.prototype),n=i))||n;var A=r(61357);const C=["width"];var k,D,N,R,M;function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function F(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach((function(t){Z(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Z(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},B.apply(this,arguments)}function G(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let U=(0,u.Pi)(((N=class extends a.Component{get style(){const e=h.Z.getShortType(this.props.element.type),t=h.Z.findUsableRepresentation(this.props.element,`application/vnd.adobe.${e}+json`),r=t&&t.getValue(e,"data");return this.props.element.type===y.Z.FONT_ELEMENT_TYPE?{adbeFont:r}:r}get colorStyle(){if(m.JG(this.style))return{backgroundColor:(0,f.m3)(this.style.color)}}get requiresContrastingBackground(){return m.DO(this.style)}getColorSwatch(e){if(!m.JG(this.style)||this.props.mosaicTileSize)return;const t=p()("grid"===this.props.viewMode?"panel-textstyle-color":"panel-textstyle-list-item-color",{contrast:this.requiresContrastingBackground,inline:!e});return a.createElement("div",{"data-test-id":"textstyle-color-swatch",style:this.colorStyle,className:t})}get colorSwatchOverlay(){return this.getColorSwatch(!0)}get disabled(){var e,t;return h.Z.isDisabled(this.props.element)&&!this.props.viewMode.startsWith("thumbnail")&&!(null!==(e=(t=y.Z.currentProduct).isExpandedView)&&void 0!==e&&e.call(t))}get isMissingFont(){return!this.context.libraryManager.isFontAvailable(this.style)}get isWideElement(){return this.props.gridSizeType===y.Z.GRID_TYPE_WIDE}get postScriptNameOrFamily(){return m.GD(this.style)||m.BN(this.style)}get uselivePreview(){const e=y.Z.currentProduct.config.useTextStyleThumbnails,t=y.Z.currentProduct.config.fallBackToFontLivePreview;return!e||t&&this._isMissingRendition}get _isMissingRendition(){return null===A.Z.getLocalThumbnailURL(this.props.element,"thumbnail-large"===this.props.viewMode)}getThumbnail(e){return a.createElement(v.Z,{element:this.props.element,viewMode:this.props.viewMode,overlay:this.colorSwatchOverlay,className:e,thumbnailType:this.context.viewState.thumbnailType})}get detailsLine(){const e=m.Mr(this.style);return a.createElement("div",{"data-test-id":"textstyle-font-details",className:"panel-textstyle-rendition-details"},e)}get syncFontBadge(){return!this.disabled&&a.createElement(I,{key:"sync-font-badge",element:this.props.element})}get customRenderer(){const e=h.Z.getCustomRenderer(this.props.element);if(e&&this.postScriptNameOrFamily)return a.createElement(e,this.props)}getTextStyleView({previewText:e,isCentered:t=!0,showDetailsLine:r=!1,minSize:n,maxSize:i,includeLetterSpacing:o=!0}){var s,c;const l=m.zQ(this.style,n,i,o),u=p()("panel-textstyle-rendition-container",{center:t,contrast:this.requiresContrastingBackground,"disabled-item":this.disabled,"preview-container":!!e}),d=p()("panel-textstyle-preview",{"expanded-preview":e&&(null===(s=(c=y.Z.currentProduct).isExpandedView)||void 0===s?void 0:s.call(c))});return a.createElement("div",{"data-test-id":"textstyle-font-rendition-container",className:u},a.createElement("div",{style:l,"data-test-id":"textstyle-font-rendition",className:d},e),r&&this.detailsLine)}isFont(){return this.props.element.type===y.Z.FONT_ELEMENT_TYPE}getLivePreviewText(){const e=this.props.element;return"grid"===this.props.viewMode?this.props.gridSizeType===y.Z.GRID_TYPE_WIDE?e.name:y.Z.SHORT_FONT_PREVIEW_TEXT:"thumbnail-large"===this.props.viewMode?this.props.mosaicTileSize?y.Z.SHORT_FONT_PREVIEW_TEXT:e.name:this.isListOrThumbnailViewMode?y.Z.SHORT_FONT_PREVIEW_TEXT:void 0}getLivePreviewFontSize(e){if("grid"===this.props.viewMode){if(this.props.gridSizeType===y.Z.GRID_TYPE_WIDE)return;if(this.props.gridSizeType===y.Z.GRID_TYPE_MEDIUM)return y.Z.GRID_MEDIUM_PREVIEW_FONT_SIZE;if(this.props.gridSizeType===y.Z.GRID_TYPE_LARGE)return y.Z.GRID_LARGE_PREVIEW_FONT_SIZE}if("thumbnail-large"===this.props.viewMode){if(!this.props.mosaicTileSize)return e?y.Z.ONE_UP_ELEMENT_VIEW_MAX_PREVIEW_FONT_SIZE:void 0;if("quarter"===this.props.mosaicTileSize)return y.Z.MOSAIC_VIEW_QUARTER_PREVIEW_FONT_SIZE;if("full"===this.props.mosaicTileSize)return y.Z.MOSAIC_VIEW_FULL_PREVIEW_FONT_SIZE}if(this.isListOrThumbnailViewMode)return y.Z.LIST_VIEW_PREVIEW_FONT_SIZE}get isListOrThumbnailViewMode(){return["list","thumbnail"].includes(this.props.viewMode)}get textStyleGridView(){return this.uselivePreview?this.getTextStyleView({previewText:this.getLivePreviewText(),isCentered:!this.isWideElement,showDetailsLine:this.isWideElement,maxSize:this.getLivePreviewFontSize(!0),minSize:this.getLivePreviewFontSize()}):a.createElement("div",{className:p()("panel-textstyle-rendition-container","center",{"font-thumbnail":this.isFont})},this.getThumbnail("panel-textstyle-item-img"))}get textStyleListView(){return this.uselivePreview?this.getTextStyleView({previewText:this.getLivePreviewText(),maxSize:this.getLivePreviewFontSize(!0),minSize:this.getLivePreviewFontSize(),includeLetterSpacing:!1}):this.getThumbnail("panel-list-textstyle-item-img")}render(){return a.createElement(g.Z,B({},this.props,{elementBadges:[this.syncFontBadge]}),this.isListOrThumbnailViewMode?a.createElement("div",{className:p()("panel-list-textstyle-thumb",{"disabled-item":this.disabled})},this.customRenderer||this.textStyleListView):a.createElement(a.Fragment,null,a.createElement("div",{className:`panel-${this.props.viewMode}-textstyle-thumbnail-holder`},a.createElement("div",{className:"panel-grid-textstyle-thumbnail"},this.customRenderer||this.textStyleGridView))))}}).contextType=O.r,N.defaultProps={viewMode:"grid",mosaicTileSize:void 0},N.propTypes=F(F({},g.Z.propTypes),{},{height:c().number,width:c().number,mosaicTileSize:c().oneOf(["quarter","full"])}),G((D=N).prototype,"style",[l.computed],Object.getOwnPropertyDescriptor(D.prototype,"style"),D.prototype),G(D.prototype,"colorStyle",[l.computed],Object.getOwnPropertyDescriptor(D.prototype,"colorStyle"),D.prototype),G(D.prototype,"colorSwatchOverlay",[l.computed],Object.getOwnPropertyDescriptor(D.prototype,"colorSwatchOverlay"),D.prototype),G(D.prototype,"disabled",[l.computed],Object.getOwnPropertyDescriptor(D.prototype,"disabled"),D.prototype),G(D.prototype,"uselivePreview",[l.computed],Object.getOwnPropertyDescriptor(D.prototype,"uselivePreview"),D.prototype),G(D.prototype,"_isMissingRendition",[l.computed],Object.getOwnPropertyDescriptor(D.prototype,"_isMissingRendition"),D.prototype),G(D.prototype,"syncFontBadge",[l.computed],Object.getOwnPropertyDescriptor(D.prototype,"syncFontBadge"),D.prototype),G(D.prototype,"textStyleGridView",[l.computed],Object.getOwnPropertyDescriptor(D.prototype,"textStyleGridView"),D.prototype),G(D.prototype,"textStyleListView",[l.computed],Object.getOwnPropertyDescriptor(D.prototype,"textStyleListView"),D.prototype),k=D))||k,H=(0,u.Pi)(((M=class extends a.Component{render(){const e=this.props,t=e.width,r=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,C),n=_.Z.AutoSizer;return!t&&n?a.createElement(n,null,(({width:e})=>a.createElement(U,B({width:e},r)))):a.createElement(U,this.props)}}).propTypes=F(F({},g.Z.propTypes),{},{height:c().number,width:c().number}),R=M))||R},86357:(e,t,r)=>{"use strict";r.d(t,{Z:()=>g});var n,i,o=r(89526),a=r(2652),s=r.n(a),c=r(62631),l=r(18135),u=r(31408),d=r(47320),p=r(24937);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let g=(0,c.Pi)(((i=class extends o.Component{get thumbnail(){const e=d.Z.getCustomRenderer(this.props.element);return e?o.createElement(e,this.props):o.createElement(u.Z,{element:this.props.element,viewMode:this.props.viewMode,thumbnailType:this.context.viewState.thumbnailType})}get thumbnailContainer(){return["list","thumbnail"].includes(this.props.viewMode)?o.createElement("div",{className:"panel-list-item-thumb","img-size":""},this.thumbnail,this.props.children):o.createElement(o.Fragment,null,this.thumbnail,this.props.children)}render(){return o.createElement(l.Z,this.props,this.thumbnailContainer)}}).contextType=p.r,i.defaultProps={viewMode:"grid"},i.propTypes=f(f({},l.Z.propTypes),{},{children:s().node,height:s().number,width:s().number,elementBadges:s().arrayOf(s().node)}),n=i))||n},24099:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n,i,o=r(89526),a=r(2652),s=r.n(a),c=r(64403),l=r.n(c),u=r(62631),d=r(27611),p=r(72279),h=r(99767);let f=(0,u.Pi)(((i=class extends o.Component{render(){const e=l()("element-badge-container",{disabled:this.props.isDisabled}),t=l()("element-badge-overlay","action-badge",`element-badge-size-${this.props.badgeSize}`,`element-badge-${this.props.dataTestId}`);return o.createElement(h.Z,{placement:"top-start",content:this.props.tooltipContent},o.createElement("div",{className:e},o.createElement(p.Z,{"data-test-id":`element-badge-${this.props.dataTestId}-button`,className:t,onClick:this.props.onClick,size:"s",variant:"action"},o.createElement(d.Z,{id:this.props.icon,height:this.props.iconHeight}))))}}).propTypes={dataTestId:s().string.isRequired,icon:s().string.isRequired,onClick:s().func.isRequired,tooltipContent:s().string.isRequired,isDisabled:s().bool,iconHeight:s().number,badgeSize:s().oneOf(["small","large"])},i.defaultProps={isDisabled:!1,iconHeight:16,badgeSize:"large"},n=i))||n},31408:(e,t,r)=>{"use strict";r.d(t,{Z:()=>M});var n,i=r(89526),o=r(2652),a=r.n(o),s=r(62631),c=r(50265),l=r(64403),u=r.n(l),d=r(61357),p=r(47320),h=r(99386);let f=(0,s.Pi)(n=class extends i.Component{render(){return i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",height:"128",width:"128"},i.createElement("g",null,i.createElement("path",{className:"asset-fileBackground",d:"M24,126c-5.5,0-10-4.5-10-10V12c0-5.5,4.5-10,10-10h61.5c2.1,0,4.1,0.8,5.6,2.3l20.5,20.4c1.5,1.5,2.4,3.5,2.4,5.7V116c0,5.5-4.5,10-10,10H24z"}),i.createElement("g",null,i.createElement("path",{className:"asset-fileOutline",d:"M113.1,23.3L92.6,2.9C90.7,1,88.2,0,85.5,0H24c-6.6,0-12,5.4-12,12v104c0,6.6,5.4,12,12,12h80c6.6,0,12-5.4,12-12V30.4C116,27.8,114.9,25.2,113.1,23.3z M90,6l20.1,20H92c-1.1,0-2-0.9-2-2V6z M112,116c0,4.4-3.6,8-8,8H24c-4.4,0-8-3.6-8-8V12c0-4.4,3.6-8,8-8h61.5c0.2,0,0.3,0,0.5,0v20c0,3.3,2.7,6,6,6h20c0,0.1,0,0.3,0,0.4V116z"}))))}})||n;var m,g,v=r(5849),y=r(27611),b=r(24937),_=r(33275),E=r(80091),w=r(99767),x=r(46903),L=r(84824),O=r(76485);let S=(0,s.Pi)(((g=class extends i.Component{constructor(...e){super(...e),this.handleClick=()=>{(0,x.Mo)(this.props.element).hasFailed&&(0,x.vF)(this.props.element)}}get tooltipText(){const e=(0,x.Mo)(this.props.element),t=e.percentDownloaded;return e.hasFailed?(0,L.Iu)("DL_LINK_DOWNLOAD_FAIL_TOOLTIP"):void 0===t?(0,L.Iu)("DL_LINK_DOWNLOAD_TOOLTIP"):(0,L.Iu)("DL_LINK_DOWNLOAD_PROGRESS_TOOLTIP",{percent:t})}getClassNames(){const e="grid"===this.props.viewMode;return u()({"panel-core-overlay-dimmed-top-right":e,"panel-core-overlay-dimmed-center":!e})}get loadingSpinner(){const e=O.Z.SmallSpinner;return e?i.createElement(e,null):i.createElement(v.Z,{size:"small",indeterminate:!0})}render(){const e=(0,x.Mo)(this.props.element),t=e.isDownloadPending,r=e.hasFailed,n=r?this.getClassNames():"panel-core-overlay-dimmed-center";return t&&i.createElement(w.Z,{placement:"top-start",content:this.tooltipText,className:"panel-core-overlay-tooltip"},i.createElement("div",{className:n,onClick:this.handleClick,"data-test-stock-sync-wrapper":"visible","data-test-id":"stock-overlay-tooltip-trigger"},!r&&i.createElement("div",{className:"panel-core-overlay-icon-syncing","data-test-stock-sync":"sync"},this.loadingSpinner),r&&i.createElement("div",{className:"panel-core-overlay-icon-warning","data-test-stock-sync":"fail"},i.createElement(y.Z,{id:"Alert",height:16}))))}}).propTypes={element:a().oneOfType([a().instanceOf(_.W_),a().instanceOf(E.Z)]).isRequired,viewMode:a().oneOf(h.Z.ELEMENT_VIEW_MODES).isRequired,listStyle:a().object},m=g))||m;var T,P,I,A,C,k=r(31870),D=r(16203);function N(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function R(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let M=(0,s.Pi)(((C=class extends i.Component{constructor(...e){super(...e),N(this,"_retry",I,this),N(this,"_hasFailed",A,this),this._handleError=()=>{if(this._retry)return d.Z.getCacheEntry(this.props.element,"thumbnail-large"===this.props.viewMode).cacheEntry._update(),void(this._retry=!1);this._hasFailed=!0}}componentDidMount(){this._disposeReaction=(0,c.reaction)((()=>this._url),(()=>{this._hasFailed=!1,this._retry=!0}))}componentWillUnmount(){var e;null===(e=this._disposeReaction)||void 0===e||e.call(this)}get _url(){const e=d.Z.getCacheEntry(this.props.element,"thumbnail-large"===this.props.viewMode),t=e.cacheEntry;return e.cacheHit||(0,c.runInAction)((()=>this._retry=!1)),t.url}get _isLoading(){return d.Z.isThumbnailLoading(this.props.element,"thumbnail-large"===this.props.viewMode)}get disabled(){return p.Z.isDisabled(this.props.element)&&!this.props.viewMode.startsWith("thumbnail")}get stockDownloadOverlay(){const e={viewMode:this.props.viewMode,element:this.props.element,showDetails:this.props.showDetails,gridSizeType:this.props.gridSizeType};return(0,k.Jw)(this.props.element)&&!this.props.viewMode.startsWith("thumbnail")?i.createElement(S,e):null}get loadingView(){return h.Z.currentProduct.config.ghostLoading?this.ghostLoadingView:this.spinnerView}get ghostLoadingView(){return i.createElement("div",{className:"ghost-loading-wrapper"},i.createElement("div",{"data-test-id":"ghost-loading",className:"ghost-loading"},this.stockDownloadOverlay))}get spinnerView(){return i.createElement("div",{"data-test-id":"spinner",className:"loading-spinner"},i.createElement(v.Z,{size:"small",indeterminate:!0}),this.stockDownloadOverlay)}get brokenThumbnailView(){var e,t;const r=p.Z.getBackupThumbnail(this.props.element,this.props.viewMode);if(r)return r;const n=u()("panel-no-rendition-icon",{"panel-grid-icon-missing-rendition":["grid","thumbnail-large"].includes(this.props.viewMode),"panel-list-icon-missing-rendition":["list","thumbnail"].includes(this.props.viewMode)}),o=null!==(e=(t=h.Z.currentProduct).isExpandedView)&&void 0!==e&&e.call(t)?45:20,a=h.Z.currentProduct.config.spectrumFailedThumbnail?i.createElement(f,null):i.createElement(y.Z,{id:"CreativeCloud",height:o});return i.createElement("div",{"data-test-id":"thumbnail-failed-icon",className:`panel-no-rendition-holder-${this.props.viewMode}`},i.createElement("span",{className:n},a))}get showCheckeredBackground(){return this.context.viewState.elementBackgroundPattern===h.Z.ELEMENT_BACKGROUNDS.CHECKERED||p.Z.showCheckeredBackground(this.props.element)}get checkedBackgroundThumbnailView(){const e=u()("panel-item-img-holder","panel-thumbnail-checkered-background",{"panel-thumbnail-disabled":this.disabled});return i.createElement("div",{"data-test-id":"thumbnail-holder",className:e},i.createElement("img",{"data-test-id":"thumbnail",className:"panel-item-img",src:this._url,onError:this._handleError,crossOrigin:"anonymous"}))}get isThumbnailTiled(){return p.Z.isThumbnailTiled(this.props.element)}get tiledThumbnailView(){const e=u()("panel-item-img-holder","panel-item-tiled-thumbnail",{"panel-thumbnail-disabled":this.disabled}),t={backgroundImage:`url("${this._url.replace(/\\/g,"/")}")`};return i.createElement(i.Fragment,null,i.createElement("div",{"data-test-id":"thumbnail-holder",className:e,style:t}),this.props.overlay)}get thumbnailView(){const e=(0,D.Hb)(this.props.element),t=u()({"panel-thumbnail-disabled":this.disabled,"panel-item-img-scale":!e},this.props.className);return i.createElement(i.Fragment,null,i.createElement("img",{"data-test-id":"thumbnail",className:t,src:this._url,onError:this._handleError,crossOrigin:"anonymous"}),this.props.overlay)}render(){if(this._isLoading)return this.loadingView;if(this._hasFailed&&!this._retry)return this.brokenThumbnailView;const e=[h.Z.AUDIO_ELEMENT_TYPE];return this._url&&!e.includes(this.props.element.type)?this.isThumbnailTiled?this.tiledThumbnailView:this.showCheckeredBackground?this.checkedBackgroundThumbnailView:this.thumbnailView:this.brokenThumbnailView}}).contextType=b.r,C.defaultProps={viewMode:"grid"},C.propTypes={element:a().oneOfType([a().instanceOf(_.W_),a().instanceOf(E.Z)]).isRequired,viewMode:a().oneOf(h.Z.ELEMENT_VIEW_MODES),thumbnailType:a().oneOf(["list","list-group","grid","grid-group"]),className:a().string,overlay:a().node,showDetails:a().oneOf(["type","none"]),gridSizeType:a().oneOf(h.Z.GRID_SIZE_TYPES)},I=R((P=C).prototype,"_retry",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),A=R(P.prototype,"_hasFailed",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),R(P.prototype,"_url",[c.computed],Object.getOwnPropertyDescriptor(P.prototype,"_url"),P.prototype),R(P.prototype,"disabled",[c.computed],Object.getOwnPropertyDescriptor(P.prototype,"disabled"),P.prototype),T=P))||T},5425:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>Se});var n=r(89526),i=r(62631),o=r(24937),a=r(64403),s=r.n(a),c=r(4294),l=r(55678),u=r(96195),d=r.n(u),p=r(97598),h=r(64114),f=r(86071),m=r(94801),g=r(12252),v=r(84824),y=r(73675);const b="wXD";var _,E,w=r(51461);let x=(0,i.Pi)(((E=class extends n.Component{constructor(...e){super(...e),this.handleBrowseTeam=()=>{w.ZP.reportEvent("Manager","Navigation","click","browse-org"),this.context.libraryManager.openBrowseAll()},this.handleManage=()=>w.ZP.reportEvent("Manager","Navigation","click","manage"),this.handleNewLibraryClick=()=>{if(w.ZP.reportEvent("Manager","Navigation","click","new-library"),!this.context.libraryManager.publishState.isPublished)return this.context.dialogManager.openDialog("createOrPublishLibrary");this.context.libraryActions.create()},this.getSideNavItems=()=>[this.manageNavItem,!this.context.libraryManager.isRestrictedAccount&&this.browseNavItem].filter((e=>e))}get manageNavItem(){return n.createElement(l.yc,{key:"0",title:(0,v.Iu)("DL_LIBRARY_MANAGER_MANAGE"),value:"manage",onClick:this.handleManage,className:"Ieh","data-test-id":"manager-sidenav-navigation-manage"},(0,v.Iu)("DL_LIBRARY_MANAGER_MANAGE"))}get browseNavItem(){return n.createElement(l.yc,{key:"1",title:(0,v.Iu)("DL_LIBRARY_MANAGER_BROWSE_ORG"),value:"browse",onClick:this.handleBrowseTeam,className:s()("Ieh","fdP"),"data-test-id":"manager-sidenav-navigation-browse-team"},(0,v.Iu)("DL_LIBRARY_MANAGER_BROWSE_ORG"))}sideNavButton({id:e,icon:t,label:r,onClick:i}){return n.createElement(d(),{className:"x62","data-test-id":`manager-sidenav-action-${e}`,onClick:i,title:r,label:r,icon:t,variant:"action",quiet:!0})}render(){return n.createElement("div",{className:"H6Y"},n.createElement("div",{className:"poT"},n.createElement("div",{className:"nB6"},n.createElement(h.default,{size:"S","data-test-id":"manager-sidenav-cc-libraries-logo"}))),n.createElement(l.kw,{value:"manage",className:s()(b,"ag5")},this.getSideNavItems()),n.createElement(c.default,{variant:"small"}),n.createElement("div",{className:s()(b,"tTX")},this.sideNavButton({id:"create-library",icon:n.createElement(p.default,null),label:(0,v.Iu)("DL_LIBRARY_MANAGER_ACTION_CREATE_LIBRARY"),onClick:this.handleNewLibraryClick})),n.createElement("div",{className:s()(b,"hzc")},n.createElement(m.default,{icon:n.createElement(f.default,{size:"M"}),iconOnly:!0,"data-test-id":"manager-sidenav-footer-help"},(0,y.nN)(null,this.context).map(((e,t)=>n.createElement(g.MenuItem,{key:t,onClick:()=>e.onClick(),ref:t=>this[`${e.id}Ref`]=t,"data-test-id":`manager-help-${e.id}`},(0,v.Iu)(e.label)))))))}}).contextType=o.r,_=E))||_;var L,O,S=r(50265),T=r(32817),P=r.n(T),I=r(45079),A=r(95485),C=r(83300),k=r(2652),D=r.n(k),N=r(21504),R=r(19547),M=r(17632),j=r(33275),F=r(6535);let Z=(0,i.Pi)(((O=class extends n.Component{constructor(...e){super(...e),this.contextMenu=e=>{const t=this.context.libraryActions.getLibraryActions(e,!1).filter((e=>!e.divider&&e.enableMenu));return n.createElement(m.default,{alignRight:!0,icon:n.createElement(R.default,null),iconOnly:!0,onSelect:e=>e.onClick(),className:"cZu","data-test-id":"manager-libraries-list-item-context-menu"},t.map(((e,t)=>n.createElement(g.MenuItem,{disabled:!e.enableMenu,key:t,value:e},e.label))))},this.handleLibraryToggle=e=>{const t=!this.context.libraryManager.isLibraryActive(e);w.ZP.reportEvent("Manager","Manage","click",t?"toggle-on":"toggle-off",{ui:{sequence:"toggle-single"}},e),this.context.libraryManager.setLibraryActiveState(e,t)},this.libraryItem=e=>{const t=`${e.id}${"org"===e.ownerType?"-team":""}`;return n.createElement("div",{key:t,className:"C-K","data-test-id":`manager-libraries-list-item-${e.id}`},n.createElement(N.default,{checked:this.context.libraryManager.isLibraryActive(e),onChange:()=>this.handleLibraryToggle(e),className:"tQs","data-test-id":"manager-libraries-list-item-switch"}),n.createElement("div",{className:"H4a","data-test-id":"manager-libraries-list-item-info"},n.createElement(M.Z,{library:e,disableContextMenu:!0,allowNavigation:!1,allowLongDoubleClick:!1,sharingIconOnly:!1})),this.contextMenu(e))}}render(){return n.createElement("div",{className:"yXf","data-test-id":"manager-libraries-list"},this.props.libraries.map(this.libraryItem))}}).contextType=o.r,O.propTypes={libraries:D().arrayOf(D().oneOfType([D().instanceOf(j.Zu),D().instanceOf(F.Z)])).isRequired},L=O))||L;var B,G,U=r(3074),H=r.n(U),z=r(10387),V=r.n(z),Y=r(76485);let W=(0,i.Pi)(((G=class extends n.Component{constructor(...e){super(...e),this.upgrade=()=>this.context.documentActions.upgradeSubscription()}get upgradeToPublishButton(){return this.button({variant:"secondary",label:"DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_UPGRADE",onClick:this.upgrade,tooltip:"DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_UPGRADE_TOOLTIP"})}get buttonView(){return n.createElement("div",{className:"uTg"},this.upgradeToPublishButton)}button({variant:e,label:t,onClick:r,tooltip:i}){const o=Y.Z.isWindowsOS()?s()("k5F"):s()("k5F",e);return n.createElement("div",{className:"upgrade-section-action","data-test-id":"manager-upgrade-section-action-button"},n.createElement(H(),{boundariesElement:"container",placement:"top",trigger:["hover","focus"],disabled:this.context.libraryManager.isOnline},n.createElement(d(),{"data-test-id":"upgrade-section-action-button",className:o,onClick:r,label:(0,v.Iu)(t),variant:e,uxpUseNative:!1}),n.createElement(V(),{ref:e=>this.tooltipRef=e},(0,v.Iu)(i))))}render(){return n.createElement(n.Fragment,null,n.createElement("div",{className:"_3C","data-test-id":"manager-upgrade-section-container"},n.createElement("span",{className:"cDN",title:(0,v.Iu)("DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_UPGRADE_BODY"),"data-test-id":"manager-upgrade-section-body"},(0,v.Iu)("DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_UPGRADE_BODY")),this.buttonView),n.createElement("div",{className:"F9b"}))}}).contextType=o.r,B=G))||B;var K=r(88166),$=r.n(K),q=r(77125),X=r(14928),J=r(69325),Q=r(11437),ee=r(46903),te=r(5837),re=r(2169);const ne={container:"fDm",contextMenu:"tgn",libraryName:"dDR",actions:"n0j",statusMessage:"um8",button:"q3Z",disabled:"cD9",cta:"fM3",secondary:"Ssx",wait:"vL3",statusText:"Y8P",statusIcon:"fW2",error:"_Nr"};var ie,oe,ae=r(30131);let se=(0,i.Pi)(((oe=class extends n.Component{constructor(...e){super(...e),this.publish=()=>this.context.documentActions.publish(this.props.assetsContainer).catch((()=>{}))}get publishState(){return this.context.libraryManager.publishState}get publishedLibrary(){return this.context.libraryManager.publishedDocumentLibrary}get syncError(){return this.publishState.syncError}get writableFolders(){return this.context.libraryManager.platformFolders&&this.context.libraryManager.platformFolders.filter((e=>e.isWritable))}get canPromote(){return!(this.publishedLibrary&&(0,ee.$_)(this.publishedLibrary))&&this.writableFolders&&this.writableFolders.length>0}get canRelinkOrphans(){return!!this.context.libraryManager.orphanedLibraries.length}get documentName(){return Y.Z.documentName}update(){return w.ZP.reportEvent("Manager","Manage","click","update",{event:{count:this.props.assetsContainer.getGroups().length}},this.publishedLibrary),this.publish()}unpublish(){w.ZP.reportEvent("Manager","Manage","click","unpublish",{event:{count:this.props.assetsContainer.getGroups().length}},this.publishedLibrary),this.context.libraryActions.delete(this.publishedLibrary,!1)}share(){w.ZP.reportEvent("Manager","Manage","click","share",{},this.publishedLibrary),Y.Z.showShareSheet(this.publishedLibrary)}promote(){return this.context.libraryActions.promote(this.publishedLibrary)}relinkOrphan(){return this.context.documentActions.relinkDocumentToOrphanedLibrary(this.props.assetsContainer)}get isPublished(){return this.publishState.isPublished}get canPublish(){return this.publishState.canPublish}get canUpgrade(){return this.publishState.canUpgrade}get disabledMessage(){return{OFFLINE:(0,v.Iu)("DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_OFFLINE"),READ_ONLY:(0,v.Iu)("DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_READ_ONLY"),QUOTA:(0,v.Iu)("DL_OVER_QUOTA_LIBRARY_ERROR_BODY"),EMPTY:(0,v.Iu)("DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_EMPTY"),UPGRADE:(0,v.Iu)("DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_UPGRADE_TOOLTIP"),MISSING_STORAGE:(0,v.Iu)("DL_SAVE_CLOUD_DOC_MESSAGE"),COEDITOR_PUBLISHING:(0,v.Iu)("DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_COEDITOR_PUBLISHING"),MAX_ELEMENTS:(0,v.Iu)("DL_DESIGN_LIBRARY_NATIVE_EXCEEDED_LIMIT_MESSAGE",{num:this.context.libraryManager.MAX_ELEMENTS})}[this.publishState.disabledStatus]}get isPendingUpdate(){return this.publishState.isPendingUpdate}get isPublishing(){return this.publishState.isPublishing}get isLibraryLoading(){return this.publishState.isLoading}get isDocumentSyncing(){return Y.Z.isSavedCloudDocument&&!Y.Z.isSyncedCloudDocument}get isLoading(){return this.isLibraryLoading||this.isPublishing||this.isDocumentSyncing}get syncErrorStatus(){if(!this.syncError)return;const e=this.context.libraryManager.errors;return this.syncError.code===e.EXCEEDS_QUOTA?(0,ee.$_)(this.publishedLibrary)||(0,ee.R3)(this.publishedLibrary)?this.statusMessage({icon:n.createElement(q.default,{"data-test-id":"document-library-status-error-shared-quota",className:s()(ne.statusIcon,ne.error),size:"S"}),label:"DL_PUBLISH_UPDATES_ERROR_MESSAGE",tooltip:"DL_PUBLISH_UPDATES_SHARED_QUOTA_ERROR_BODY"}):this.statusMessage({icon:n.createElement(q.default,{"data-test-id":"document-library-status-error-quota",className:s()(ne.statusIcon,ne.error),size:"S"}),label:"DL_PUBLISH_UPDATES_QUOTA_ERROR_MESSAGE",tooltip:"DL_PUBLISH_UPDATES_QUOTA_ERROR_BODY",onClick:()=>(0,ae.tD)()}):this.statusMessage({icon:n.createElement(q.default,{"data-test-id":"document-library-status-error-generic",className:s()(ne.statusIcon,ne.error),size:"S"}),label:"DL_PUBLISH_UPDATES_ERROR_MESSAGE",tooltip:"DL_PUBLISH_UPDATES_GENERAL_SYNC_ERROR"})}get syncingStatus(){if(!this.isPublished)return;if(this.syncError)return this.syncErrorStatus;if(!this.context.libraryManager.isOnline)return this.statusMessage({icon:n.createElement(J.default,{"data-test-id":"document-library-status-offline",className:s()(ne.statusIcon),size:"S"}),label:"DL_PUBLISH_UPDATES_OFFLINE_ERROR_MESSAGE",tooltip:"DL_PUBLISH_UPDATES_OFFLINE_ERROR_BODY"});const e=this.publishedLibrary.syncProgress;if(!e||100===e)return;const t="DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_PUBLISHING_PROGRESS";return this.statusMessage({icon:n.createElement($(),{variant:"determinate",indeterminate:!1,value:e,"data-test-id":"document-library-status-loading",className:ne.wait,size:"S"}),label:(0,v.Iu)(t,{percent:e}),style:{minWidth:(0,re.E0)((0,v.Iu)(t,{percent:100}),ne.statusMessage).width}})}get loadingStatus(){if(!this.isLoading)return;let e;return e=this.isLibraryLoading?"DL_LOADING":this.isDocumentSyncing?"DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_SAVING":"DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_PUBLISHING",this.statusMessage({icon:n.createElement($(),{"data-test-id":"document-library-status-loading",size:"S"}),label:e,style:ne.statusText})}statusMessage({icon:e,label:t,tooltip:r,style:i,onClick:o}){return n.createElement(n.Fragment,null,n.createElement(H(),{boundariesElement:"container",placement:"top",trigger:["hover","focus"],disabled:!r},n.createElement("div",{className:ne.statusMessage,"data-test-id":"document-library-status-message"},e,t&&n.createElement(te.Z,{html:(0,v.Iu)(t),className:i,onClick:o})),n.createElement(V(),{ref:e=>this.tooltipRef=e},(0,v.Iu)(r))))}button({id:e,variant:t,label:r,onClick:i}){let o=this.canPublish||!this.disabledMessage;this.canUpgrade&&(o=this.canPublish&&"share"===e);const a=Y.Z.isWindowsOS()?s()(ne.button):s()(ne.button,ne[t||"cta"],{[ne.disabled]:!this.canPublish});return n.createElement(H(),{boundariesElement:"container",placement:"top",trigger:["hover","focus"],disabled:o},n.createElement(d(),{className:a,disabled:!this.canPublish||this.canUpgrade&&"share"!==e,onClick:()=>i(),label:(0,v.Iu)(r),variant:t||"cta",uxpUseNative:!1,"data-test-id":`manager-document-library-action-${e}`}),n.createElement(V(),{ref:e=>this.tooltipRef=e},this.disabledMessage))}get pushLibraryButton(){if(!this.isPublished)return this.button({id:"publish",label:"DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_PUBLISH",onClick:this.publish});if(this.isPendingUpdate){if(this.syncError)return;return this.button({id:"update",label:"DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_UPDATE",onClick:()=>this.update()})}return this.statusMessage({icon:n.createElement(X.default,{"data-test-id":"document-library-status-up-to-date",className:ne.statusIcon,size:"S"}),label:"DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_UP_TO_DATE"})}get shareLibraryButton(){if(this.isPublished&&!this.isLoading)return this.button({id:"share",variant:"secondary",label:"DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_SHARE",onClick:()=>this.share()})}get actionsView(){const e=this.pushLibraryButton,t=this.shareLibraryButton,r=this.loadingStatus,i=this.syncingStatus;return n.createElement("div",{className:ne.actions},t,this.isPendingUpdate?n.createElement(n.Fragment,null,e,i):r||i||e)}get contextMenu(){const e=!this.isPublished&&!this.canRelinkOrphans||this.isLoading;return n.createElement(m.default,{disabled:!this.canPublish,icon:n.createElement(R.default,null),iconOnly:!0,className:s()(ne.contextMenu,{[ne.disabled]:e}),"data-test-id":"manager-document-library-context-menu"},this.isPublished?n.createElement(g.MenuItem,{onClick:()=>this.unpublish(),"data-test-id":"manager-document-library-context-menu-action-unpublish",ref:e=>this.unpublishRef=e},(0,v.Iu)("DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_UNPUBLISH")):n.createElement("div",null),this.isPublished&&this.canPromote?n.createElement(g.MenuItem,{onClick:()=>this.promote(),"data-test-id":"manager-document-library-context-menu-action-promote",ref:e=>this.promoteRef=e},(0,v.Iu)("DL_FLYOUT_PROMOTE_LIB")):n.createElement("div",null),this.canRelinkOrphans?n.createElement(g.MenuItem,{onClick:()=>this.relinkOrphan(),"data-test-id":"manager-document-library-context-menu-action-relink",ref:e=>this.relinkRef=e},(0,v.Iu)("DL_FLYOUT_RELINK_LIB")):n.createElement("div",null))}render(){return n.createElement("div",{className:ne.container},n.createElement("span",{className:ne.libraryName,title:this.documentName,"data-test-id":"document-library-name"},this.documentName),this.actionsView,this.contextMenu)}}).contextType=o.r,oe.propTypes={assetsContainer:D().instanceOf(Q.Z)},ie=oe))||ie;var ce,le,ue=r(27611),de=r(97536);let pe=(0,i.Pi)(((le=class extends n.Component{constructor(...e){super(...e),this.handleMenuSelection=e=>{const t="showAll"===e;this.context.libraryManager.setLibrariesActiveState(this.context.libraryManager.libraries,t),this.context.libraryManager.libraries.forEach((e=>{w.ZP.reportEvent("Manager","Manage","click",t?"toggle-on":"toggle-off",{ui:{sequence:"toggle-all"}},e)}))},this.handleSearchChange=e=>{w.ZP.reportEvent("Manager","Search","input","search"),this.context.viewState.setSearchText(e)},this.managerSection=(e,{localeKey:t,localeParams:r},i)=>{"search-results"===e&&w.ZP.reportEvent("Manager","Search","render","results");let o="Bb5";return"upgrade-workflow"===e&&(o="wHC"),n.createElement("div",{className:o,"data-test-id":`manager-content-section-${e}`},n.createElement(I.default,{className:"c2k",variant:"subtitle3","data-test-id":`manager-content-section-${e}-title`},(0,v.Iu)(t,r).toLocaleUpperCase(Y.Z.getLocale())),i)}}componentDidMount(){(0,S.autorun)((()=>{this.context.libraryManager.loaded&&(0,de.cb)(this.context)}))}get showSearch(){return this.searchText.length>0}get showUpgradeView(){return this.context.viewState.isUpgradeView}get searchText(){return this.context.viewState.searchText}get libraries(){return this.context.viewState.filteredLibraries}get header(){return n.createElement("div",{className:"gD9"},n.createElement("div",{className:"yXj","data-test-id":"manager-content-header"},n.createElement(I.default,{variant:"subtitle1","data-test-id":"manager-content-title"},(0,v.Iu)("DL_LIBRARY_MANAGER_TITLE")),n.createElement("div",{className:"XTa"},n.createElement(P(),{onChange:this.handleSearchChange,placeholder:(0,v.Iu)("DL_LIBRARY_MANAGER_SEARCH_INPUT_PLACEHOLDER"),className:"b98","data-test-id":"manager-content-search"}),n.createElement(m.default,{alignRight:!0,icon:n.createElement(C.Z,null),iconOnly:!0,className:"tfh","data-test-id":"manager-content-context-menu"},n.createElement(g.MenuItem,{onClick:()=>this.handleMenuSelection("showAll"),"data-test-id":"manager-content-context-menu-action-show-all",ref:e=>this.showAllRef=e},(0,v.Iu)("DL_LIBRARY_MANAGER_ACTION_SHOW_ALL")),n.createElement(g.MenuItem,{onClick:()=>this.handleMenuSelection("hideAll"),"data-test-id":"manager-content-context-menu-action-hide-all",ref:e=>this.hideAllRef=e},(0,v.Iu)("DL_LIBRARY_MANAGER_ACTION_HIDE_ALL"))))),n.createElement(c.default,{variant:"small"}))}get searchView(){return this.libraries.length>0?n.createElement(Z,{libraries:this.libraries,"data-test-id":"manager-content-search-results-list"}):n.createElement(A.default,{"data-test-id":"manager-content-no-search-results-illustration",className:"E-W",heading:(0,v.Iu)("DL_LIBRARY_MANAGER_SEARCH_EMPTY_HEADING"),description:n.createElement(te.Z,{html:(0,v.Iu)("DL_LIBRARY_MANAGER_SEARCH_EMPTY_DESCRIPTION",{searchText:this.searchText}),"data-test-id":"no-search-result-message"}),illustration:n.createElement(ue.Z,{id:"NoSearchResults",height:100})})}get documentLibraryView(){if(this.context.libraryManager.documentAssetsContainer&&!this.context.libraryManager.isRestrictedAccount)return n.createElement(n.Fragment,null,this.managerSection("current-file",{localeKey:"DL_LIBRARY_MANAGER_SECTION_CURRENT_FILE"},n.createElement(se,{assetsContainer:this.context.libraryManager.documentAssetsContainer,"data-test-id":"manager-content-document-library"})),n.createElement(c.default,{variant:"small"}))}get allLibrariesView(){return this.managerSection("all-libraries",{localeKey:"DL_LIBRARY_MANAGER_SECTION_ALL_LIBRARIES"},n.createElement(Z,{libraries:this.libraries,"data-test-id":"manager-content-section-all-libraries-list"}))}get upgradeView(){return this.context.libraryManager.documentAssetsContainer&&!this.context.libraryManager.isRestrictedAccount&&this.showUpgradeView?this.managerSection("upgrade-workflow",{localeKey:"DL_LIBRARY_MANAGER_DOCUMENT_LIBRARY_UPGRADE_TITLE"},n.createElement(W,{"data-test-id":"manager-content-section-upgrade"})):null}get searchResultsView(){return this.managerSection("search-results",{localeKey:1===this.libraries.length?"DL_SEARCH_RESULT":"DL_SEARCH_RESULTS",localeParams:{count:this.libraries.length}},this.searchView)}render(){return n.createElement("div",{className:"s2a"},this.header,n.createElement("div",{className:"L9h"},this.showSearch?this.searchResultsView:n.createElement(n.Fragment,null,this.documentLibraryView,this.upgradeView,this.allLibrariesView)))}}).contextType=o.r,ce=le))||ce;var he,fe,me=r(89910),ge=r.n(me);let ve=(0,i.Pi)(((fe=class extends n.Component{constructor(...e){super(...e),this.closeDialog=()=>{this.context.dialogManager.closeDialog()}}get dialog(){return this.context.dialogManager.dialog}get dialogName(){return this.context.dialogManager.dialogName}get isTour(){return this.context.dialogManager.isTour}render(){return this.dialog?n.createElement("div",{className:s()("spectrum-Underlay","is-open",{"is-tour":this.isTour}),onClick:this.closeDialog},n.createElement("div",{onClick:e=>e.stopPropagation()},n.createElement(ge(),{className:`manager-dialog-${this.dialogName}`},this.dialog))):null}}).contextType=o.r,he=fe))||he;var ye,be,_e=r(48767),Ee=r(25585);let we=(0,i.Pi)(((be=class extends n.Component{constructor(...e){super(...e),this.onClose=()=>this.context.toastManager.closeToast()}get toast(){return this.context.toastManager.toastData}get variant(){return this.toast&&this.toast.variant}get message(){return this.toast&&this.toast.message}get duration(){return(0,Ee.E4)(this.message)}render(){return this.toast?(setTimeout(this.onClose,this.duration),n.createElement("div",{className:"react-spectrum-ToastContainer react-spectrum-ToastContainer--bottom-center"},n.createElement(_e.ZP,{variant:this.variant,closable:!0,onClose:this.onClose},this.message))):null}}).contextType=o.r,ye=be))||ye;var xe,Le=r(46931);const Oe=e=>e.preventDefault();let Se=(0,i.Pi)(xe=class extends n.Component{render(){return n.createElement(o.o,{value:Le.Z.manager,style:{fontFamily:"inherit"}},n.createElement("div",{id:"manager-root",className:"manager-root body",acceptsFirstPointer:"all"},n.createElement("div",{className:"rc4","data-test-id":"manager-container",onDragOverCapture:Oe,onDropCapture:Oe},n.createElement("div",{className:"iLu","data-test-id":"manager-sidenav-container"},n.createElement(x,null)),n.createElement("div",{className:"E0n","data-test-id":"manager-content-container"},n.createElement(pe,null)),n.createElement(we,null),n.createElement(ve,null))))}})||xe},95372:(e,t,r)=>{"use strict";r.d(t,{Z:()=>b});var n,i,o=r(89526),a=r(62631),s=r(72279),c=r(84824),l=r(51461),u=r(27611),d=r(2652),p=r.n(d),h=r(99386),f=r(24937),m=r(10440),g=r(53849),v=r(64403),y=r.n(v);let b=(0,a.Pi)(((i=class extends o.Component{constructor(...e){super(...e),this.onClickButton=e=>{e.stopPropagation(),l.ZP.setExtraEventMetrics("createGroup",{content:{category:"Group Button"}});const t=this.props.disableEmptySubgroups?[]:m.Z.groupSelection,r=g.Z.selection,n=!t.length&&r.length?r:t;this.context.groupActions.createGroupFromSet(n)}}get isVisible(){return this.context.libraryManager.currentLibrary&&!this.context.libraryManager.currentLibrary.isDeletedFromServer}get isDisabled(){return this.context.viewState.isSearchMode()||this.props.disabled}get hasSelection(){return m.Z.groupSelection.length||g.Z.selection.length}get buttonNode(){const e=this.props.showLabel?"AddCircle":"Folder",t=this.props.showLabel&&o.createElement("span",{"data-test-id":"create-group-button-label",className:"create-group-button-text"},(0,c.Iu)("DL_ADD_GROUP")),r=(0,c.Iu)(this.hasSelection?"DL_GROUP_TOGETHER":"DL_NEW_GROUP");return this.isVisible?o.createElement(s.Z,{className:y()("create-group-button",{"svg-disabled":this.props.disabled}),"data-test-id":"create-group-button",tooltip:h.Z.currentProduct.config.disableContentViewTooltips?void 0:r,disabled:this.isDisabled,quiet:!0,onClick:this.onClickButton},o.createElement(u.Z,{id:e,height:18,onClick:this.handleAddLibrary}),t):null}render(){return this.buttonNode}}).contextType=f.r,i.defaultProps={showLabel:!1,disabled:!1,disableEmptySubgroups:!1},i.contextType=f.r,i.propTypes={showLabel:p().bool,disabled:p().bool,disableEmptySubgroups:p().bool},n=i))||n},68548:(e,t,r)=>{"use strict";r.d(t,{Z:()=>O});var n,i,o,a,s=r(89526),c=r(2652),l=r.n(c),u=r(64403),d=r.n(u),p=r(62631),h=r(50265),f=r(84824),m=r(51461),g=r(99767),v=r(27611),y=r(37642),b=r(24937),_=r(46903),E=r(99386),w=r(72279);function x(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const L={ok:"SyncDefault",working:"Syncing",syncing:"Syncing",loading:"Syncing",warning:"SyncAlert",error:"SyncError"};let O=(0,p.Pi)(((a=class extends s.Component{constructor(...e){var t;super(...e),(t=o)&&Object.defineProperty(this,"isMouseDown",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0}),this.onMouseUp=()=>{this.isMouseDown=!1,this.shouldShowInfoViewOnMouseDown},this.onMouseDown=()=>{this.isMouseDown=!0,this.shouldShowInfoViewOnMouseDown},this.onClick=e=>{m.ZP.reportEvent("Navigation","Library Panel","click","sync-state"),e.stopPropagation(),this.isSyncDisabled?this.context.dialogManager.openDialog("enableSyncPopup"):this.isOwnedQuotaError||this.isSharedQuotaError?this.context.dialogManager.openDialog("overQuotaError",{errorType:this.isOwnedQuotaError?"owned":"shared"}):this.context.libraryManager.sync()}}get syncStatus(){return this.context.libraryManager.syncStatus}get isSyncDisabled(){return"error"===this.syncStatus.state&&"syncDisabled"===this.syncStatus.errorType}get isOwnedQuotaError(){return"error"===this.syncStatus.state&&"quota"===this.syncStatus.errorType}get isSharedQuotaError(){return"error"===this.syncStatus.state&&"sharedQuota"===this.syncStatus.errorType}get quotaErrorLibraries(){return this.isOwnedQuotaError?(0,_.Iu)():(0,_.cm)()}get shouldShowInfoViewOnMouseDown(){var e;return!(null!==(e=E.Z.currentProduct.config)&&void 0!==e&&e.disableSyncStatusText||this.isSyncDisabled||this.isOwnedQuotaError||this.isSharedQuotaError)}get syncingLibrariesProgress(){if(0===this.syncStatus.syncingLibraries.length)return[(0,f.Iu)("DL_SYNC_PROGRESS")];const e=[(0,f.Iu)("DL_SYNC_PROGRESS_NUM_LIBRARIES",{number:this.syncStatus.syncingLibraries.length})],t=this.syncStatus.syncingLibraries.map((e=>{if(e.progress){if(e.truncatedName){const t={percent:e.progress,name:e.truncatedName};return"uploading"===e.state?(0,f.Iu)("DL_UPLOAD_LIBRARY_PERCENT",t):(0,f.Iu)("DL_DOWNLOAD_LIBRARY_PERCENT",t)}return(0,f.Iu)("DL_DOWNLOAD_NEW_LIBRARY_PERCENT",{percent:e.progress})}}));return e.concat(t).filter((e=>e))}get messageContent(){return"ok"===this.syncStatus.state?[(0,f.Iu)("DL_SYNC_OK")]:"working"===this.syncStatus.state?[(0,f.Iu)("DL_SYNC_PROGRESS")]:"syncing"===this.syncStatus.state?this.syncingLibrariesProgress:"error"===this.syncStatus.state?[y.yN(this.syncStatus),this.syncStatus.retryDuration&&(0,f.Iu)("DL_SYNC_RETRY",{duration:this.syncStatus.retryDuration})]:[]}get infoView(){return this.shouldShowInfoViewOnMouseDown&&this.isMouseDown?s.createElement("div",{"data-test-id":"panel-sync-message",className:"panel-sync-message-container"},s.createElement("div",{className:"panel-sync-message"},this.messageContent.map(((e,t)=>s.createElement("div",{key:t.toString()},e))))):null}get iconView(){let e=L[this.syncStatus.state];"loggedOut"!==this.syncStatus.errorType&&"syncDisabled"!==this.syncStatus.errorType||(e=L.warning);const t=d()("sync-button",`panel-footer-icon-${this.syncStatus.state}`);return s.createElement(w.Z,{variant:"action",quiet:!0,"data-test-id":"sync-button",className:t,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onMouseLeave:this.onMouseUp,onClick:this.onClick},e&&s.createElement(v.Z,{height:this.props.height,id:e,key:e}))}render(){return s.createElement(g.Z,{placement:"top-start",content:this.messageContent,disable:Boolean(this.popup)},this.iconView,this.infoView)}}).contextType=b.r,a.propTypes={height:l().number},a.defaultProps={height:16},o=x((i=a).prototype,"isMouseDown",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),x(i.prototype,"syncStatus",[h.computed],Object.getOwnPropertyDescriptor(i.prototype,"syncStatus"),i.prototype),x(i.prototype,"isSyncDisabled",[h.computed],Object.getOwnPropertyDescriptor(i.prototype,"isSyncDisabled"),i.prototype),x(i.prototype,"isOwnedQuotaError",[h.computed],Object.getOwnPropertyDescriptor(i.prototype,"isOwnedQuotaError"),i.prototype),x(i.prototype,"isSharedQuotaError",[h.computed],Object.getOwnPropertyDescriptor(i.prototype,"isSharedQuotaError"),i.prototype),x(i.prototype,"syncingLibrariesProgress",[h.computed],Object.getOwnPropertyDescriptor(i.prototype,"syncingLibrariesProgress"),i.prototype),x(i.prototype,"messageContent",[h.computed],Object.getOwnPropertyDescriptor(i.prototype,"messageContent"),i.prototype),x(i.prototype,"infoView",[h.computed],Object.getOwnPropertyDescriptor(i.prototype,"infoView"),i.prototype),x(i.prototype,"iconView",[h.computed],Object.getOwnPropertyDescriptor(i.prototype,"iconView"),i.prototype),n=i))||n},43616:(e,t,r)=>{"use strict";r.d(t,{Z:()=>A});var n,i,o,a,s,c,l,u,d,p=r(89526),h=r(2652),f=r.n(h),m=r(64403),g=r.n(m),v=r(50265),y=r(62631),b=r(85080),_=r(27611),E=r(76485),w=r(2169),x=r(99767),L=r(84824),O=r(99386);function S(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let A=(n=v.observable.ref,i=v.observable.ref,o=v.observable.ref,(0,y.Pi)(((d=class extends p.Component{constructor(...e){super(...e),this.overlayState=new b.Z(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?T(Object(r),!0).forEach((function(t){P(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({isOpen:this.props.open,ignoreAllEvents:this._controlled},this.props.dropdownOptions)),S(this,"_menuElement",c,this),S(this,"_menuElement",l,this),this.onKeyNavOnDropDownItem=e=>{e.key&&e.stopPropagation();const t=document.activeElement.shadowRoot.activeElement;if("ArrowDown"===e.key){const e=this._getSiblingNodeForFocus(t.nextSibling,!0);null!==e&&e.focus()}else if("ArrowUp"===e.key){const e=this._getSiblingNodeForFocus(t.previousSibling);null!==e&&e.focus()}else"Escape"===e.key&&this.onClickDropDown(e)},this._getSiblingNodeForFocus=(e,t)=>{for(;null!==e&&null===e.getAttribute("tabIndex");)e=t?e.nextSibling:e.previousSibling;return e},this.onClickDropDown=e=>{if(!this.props.disabled&&!this.props.noDropdown){this.props.onClickLabel&&this.props.onClickLabel();const t=(0,w.j6)(e),r=(null==t?void 0:t.className)||"";if("Enter"===e.key&&r.includes("keypress-suppression"))return;this._controlled||this.overlayState.toggleOverlay(),e.stopPropagation()}},this.onItemKeyPress=(e,t)=>{"Enter"===e.key&&t.onClick(e)},this.onDropdownKeyPress=e=>{"Enter"===e.key&&this.onClickDropDown(e)},this.onClickDelete=(e,t)=>{e.stopPropagation(),e.preventDefault(),t.onClickDelete(e)},S(this,"wrappedLabelRef",u,this),this.setWrappedLabelRef=e=>{this.wrappedLabelRef=e},this._setParentElement=e=>{this._parentElement=e,this.overlayState.setParentElement(e)},this._setMenuAlignmentClass=e=>{e&&(e.className+=` dropdown-align-${this.getMenuAlignment()}`)},this._setMenuElement=e=>{this._menuElement=e},this.handleClickButton=e=>{e.stopPropagation()}}componentWillUnmount(){var e;null===(e=this._parentElement)||void 0===e||e.removeEventListener("keydown",this.onKeyNavOnDropDownItem),this.overlayState.hideOverlay()}componentDidUpdate(){this.props.disabled&&this.overlayState.hideOverlay()}componentDidMount(){var e;null===(e=this._parentElement)||void 0===e||e.addEventListener("keydown",this.onKeyNavOnDropDownItem)}get _controlled(){return void 0!==this.props.open}menuItem(e){var t;const r=null!==(t=O.Z.currentProduct.config.defaultCheckMark)&&void 0!==t?t:"Checkmark",n=e.isSelected?{icon:r}:{},i=e.iconId?{icon:e.iconId}:n,o=g()("panel-select-menu-item",e.className,{"is-selected":e.isSelected,disabled:e.disabled});if(e.divider)return p.createElement("div",{"data-test-id":"panel-dropdown-menu-divider",key:e.key,className:"panel-menu-subdivider"});if(e.isTitle){const t=this.disableUpperCaseTitle?e.label:e.label.toLocaleUpperCase(E.Z.getLocale());return p.createElement("div",{className:"panel-select-menu-header",key:e.key,"data-test-id":"panel-dropdown-menu-subtitle"},t)}return p.createElement("div",{key:e.key,className:o,onClick:e.disabled?()=>{}:e.onClick,onMouseOver:e.onMouseOver,onFocus:e.onFocus,tabIndex:"0",onKeyPress:t=>this.onItemKeyPress(t,e),"data-test-id":`panel-dropdown-menu-item-${e.key}`},e.onClickDelete&&p.createElement(x.Z,{content:(0,L.Iu)("DL_LIBRARY_LIST_FILTER_UNLINK_SOURCE_TOOLTIP")},p.createElement("div",{"data-test-id":"panel-dropdown-menu-item-remove",className:"panel-menu-remove-icon",onClick:t=>this.onClickDelete(t,e)},p.createElement(_.Z,{id:"Close",height:18,className:"left-align-correction"}))),p.createElement("div",{"data-test-id":"panel-dropdown-menu-item-text",className:"panel-menu-label"},e.label),p.createElement("div",{"data-test-id":"panel-dropdown-menu-item-icon",className:"panel-menu-icon"},i.icon?p.createElement(_.Z,{className:e.iconClassName,id:i.icon,height:12}):null))}get disableUpperCaseTitle(){return O.Z.currentProduct.config.lowercaseMenuTitles||this.props.disableUpperCaseTitle}get title(){if(this.props.title)return this.disableUpperCaseTitle?this.props.title:this.props.title.toLocaleUpperCase(E.Z.getLocale())}get menu(){return p.createElement("div",{"data-test-id":"panel-dropdown-menu",className:"panel-dropdown-menu",ref:this._setMenuAlignmentClass},p.createElement("div",{"data-test-id":"panel-dropdown-menu-list",style:this.menuListStyle},this.title&&p.createElement("div",{className:"panel-select-menu-header","data-test-id":"panel-dropdown-menu-title"},this.title),this.props.data.map((e=>this.menuItem(e))),this.props.footer))}get isStringLabel(){return"string"==typeof this.props.currentLabel}get currentLabel(){return this.props.currentLabel?this.isStringLabel||this.props.wrapCustomLabel?p.createElement("div",{className:"panel-dropdown-name",ref:this.setWrappedLabelRef},this.props.icon&&p.createElement("div",{"data-test-id":"panel-dropdown-menu-item-type-icon",className:"panel-menu-icon panel-menu-icon-type"},p.createElement(_.Z,{id:this.props.icon,height:18})),p.createElement("div",{"data-test-id":"panel-dropdown-name",className:"panel-select-menu-label"},this.props.currentLabel),!this.props.noDropdown&&p.createElement("div",{className:"panel-menu-icon"},p.createElement(_.Z,{id:"ChevronDownSmall",height:O.Z.currentProduct.config.dropdownChevronHeight||8}))):this.props.currentLabel:null}getMenuAlignment(){if(!this._parentElement)return this.props.align;const e=E.Z.getAdjustedBoundingClientRect?E.Z.getAdjustedBoundingClientRect(this._parentElement):this._parentElement.getBoundingClientRect();return E.Z.getPanelWidth()<=e.x+180?e.x<E.Z.getPanelWidth()-e.x?"left":"right":e.x-180<=0?"left":this.props.align}get menuListStyle(){const e=E.Z.getAdjustedBoundingClientRect?E.Z.getAdjustedBoundingClientRect(this._parentElement):this._parentElement&&this._parentElement.getBoundingClientRect(),t=e&&e.bottom,r=Math.min(E.Z.getPanelHeight()-t,350);return{maxHeight:`${this.props.maxHeight||22*Math.floor(r/22)}px`,overflow:"auto"}}get menuContainerStyle(){var e;if(!this._menuElement)return;const t=this._menuElement.getBoundingClientRect(),r=null!==(e=null==t?void 0:t.right)&&void 0!==e?e:0,n=E.Z.getPanelWidth()-r;return n<0?{left:`${n}px`}:void 0}get isOpen(){return this._controlled?this.props.open:this.overlayState.isOpen}get currentLabelRef(){return this.isStringLabel||this.props.wrapCustomLabel||!this.props.customLabelRef?this.wrappedLabelRef:this.props.customLabelRef}render(){const e=this.props.tooltip?p.createElement(x.Z,{content:this.props.tooltip},this.currentLabel):this.currentLabel,t=g()("panel-select","panel-dropdown",this.props.className,{disabled:this.props.disabled,"panel-custom-label-dropdown":!this.isStringLabel&&!this.props.wrapCustomLabel}),r=this.isStringLabel||this.props.wrapCustomLabel?"0":null;return p.createElement("div",{tabIndex:r,onKeyPress:this.onDropdownKeyPress,"data-test-id":`${this.props.type}-dropdown`,className:t,onClick:this.onClickDropDown,ref:this._setParentElement},e,this.isOpen&&this.menu)}}).defaultProps={disabled:!1,noDropdown:!1,align:"left"},d.propTypes={wrapCustomLabel:f().bool,dropdownOptions:f().object,customLabelRef:f().shape({current:f().instanceOf(Element)}),currentLabel:f().oneOfType([f().string,f().node]),type:f().string.isRequired,title:f().string,className:f().string,data:f().arrayOf(f().object).isRequired,disabled:f().bool,open:f().bool,icon:f().string,noDropdown:f().bool,tooltip:f().string,onClickLabel:f().func,footer:f().node,maxHeight:f().number,disableUpperCaseTitle:f().bool,align:f().oneOf(["left","right"]),locationBasedOnLabel:f().bool},c=I((s=d).prototype,"_menuElement",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=I(s.prototype,"_menuElement",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I(s.prototype,"menu",[v.computed],Object.getOwnPropertyDescriptor(s.prototype,"menu"),s.prototype),u=I(s.prototype,"wrappedLabelRef",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I(s.prototype,"menuContainerStyle",[v.computed],Object.getOwnPropertyDescriptor(s.prototype,"menuContainerStyle"),s.prototype),a=s))||a)},37800:(e,t,r)=>{"use strict";r.d(t,{Z:()=>w});var n,i,o,a=r(89526),s=r(2652),c=r.n(s),l=r(62631),u=r(50265),d=r(64403),p=r.n(d),h=r(84824),f=r(43616),m=r(27611),g=r(72279),v=r(24937),y=r(51461),b=r(99386),_=r(85080);function E(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let w=(0,l.Pi)(((o=class extends a.Component{constructor(...e){super(...e),this.overlayState=new _.Z({ignoreScrollEvents:!0,ignoreFocus:!0}),this.handleSortBySelection=e=>{this.context.viewState[{libraries:"setLibrarySortState",elements:this.isSearchMode?"setElementSearchSort":"setElementSortState"}[this.props.mode]].bind(this.context.viewState)(e),this.props.onSortChange&&this.props.onSortChange(e),y.ZP.reportEvent("Navigation","Library Panel","click","sort-change",{content:{type:"libraries"===this.props.mode?"library":"element"}},"libraries"!==this.props.mode&&this.context.libraryManager.currentLibrary)},this.handleSortOrderToggle=()=>{this.context.viewState[{libraries:"setLibrarySortOrderDescendingState",elements:"setElementSortDescendingState"}[this.props.mode]].bind(this.context.viewState)(!this.sortOrderDescending),y.ZP.reportEvent("Navigation","Library Panel","click","sort-change",null,this.context.libraryManager.currentLibrary)},this.handleViewBySelection=e=>{this.context.viewState.setViewByState(e),y.ZP.reportEvent("Navigation","Library Panel","click","filter-change",null,this.context.libraryManager.currentLibrary)},this.handleClick=()=>{this.overlayState.toggleOverlay()},this.setCustomLabelRef=e=>{this.customLabelRef=e}}get library(){return this.context.libraryManager.currentLibrary}get isSearchMode(){return this.context.viewState.isSearchMode()}get sortState(){return this.context.viewState[{libraries:"librarySortState",elements:this.isSearchMode?"elementSearchSort":"elementSortState"}[this.props.mode]]}get sortOrderDescending(){return this.context.viewState[{libraries:"librarySortOrderDescendingState",elements:"elementSortDescendingState"}[this.props.mode]]}get sortOptions(){return this.context.viewState[{libraries:"getLibrariesSearchSortOptions",elements:this.isSearchMode?"getElementSearchSortOptions":"getElementSortOptions"}[this.props.mode]]()}get sortTooltip(){var e,t;return null!==(e=(t=b.Z.currentProduct).isExpandedBrandsView)&&void 0!==e&&e.call(t)?(0,h.Iu)("BRAND_SORT_TOOLTIP"):(0,h.Iu)("DL_SORT_TOOLTIP")}get viewByState(){return this.context.viewState.viewByState}get alwaysShowSortIcon(){return!!this.context.viewState.isStockSearchMode()||!this.context.viewState.isRootView()&&"group"===this.viewByState}get sortControlLabel(){const e=this.sortOrderDescending?"Sort":"SortDescending";return a.createElement("div",{"data-test-id":"sort-dropdown-order-control-label",className:"sort-dropdown-order-control-label"},!b.Z.currentProduct.config.shouldExcludeSortIconFromDropdown&&a.createElement(m.Z,{className:"sort-icon",id:e,height:12}),a.createElement("div",null,(0,h.Iu)("DL_SORT_REVERSE_ORDER")))}get groupByOptions(){return this.context.viewState.getViewByStateOptions().map((e=>({key:e,label:(0,h.Iu)(`DL_VIEW_BY_${e.toUpperCase()}_SHORT`),onClick:()=>this.handleViewBySelection(e),isSelected:this.viewByState===e})))}get sortByOptions(){const e=this.sortOptions.map((e=>({label:(0,h.Iu)("DL_SEARCH_SORT_BY_OPTION_"+e.toUpperCase()),onClick:()=>this.handleSortBySelection(e),isSelected:this.sortState===e,key:e})));return this.props.sortOrderControl&&("group"===this.viewByState&&"name"===this.sortState||this.context.viewState.isRootView()||"group"!==this.viewByState)&&e.push({divider:!0,key:"divider-1"},{label:this.sortControlLabel,id:this.sortOrderDescending?"sortOrderDescending":"sortOrderAscending",onClick:this.handleSortOrderToggle,isSelected:!1,key:"sort-order"}),b.Z.currentProduct.customSortOptions?b.Z.currentProduct.customSortOptions(e):e}get menuData(){const e=[{isTitle:!0,key:"groupBy",label:(0,h.Iu)("DL_GROUP_BY_TITLE")},...this.groupByOptions];let t=[{isTitle:!0,key:"sortBy",label:(0,h.Iu)("DL_SORT_BY_TITLE")},...this.sortByOptions];return b.Z.currentProduct.config.shouldExcludeTitleFromSortDropdown&&(t=[...this.sortByOptions]),"elements"!==this.props.mode||this.isSearchMode||this.props.hideGroupBy?t:[...e,{divider:!0,key:"divider-2"},...t]}get labelIcon(){let e=b.Z.currentProduct.config.iconHeight||16,t=b.Z.currentProduct.config.iconWidth||16;"ACCC"===b.Z.currentProduct.config.code&&(e=22,t=22);const r=this.sortOrderDescending&&!this.alwaysShowSortIcon?"SortDescending":"Sort";return a.createElement("div",{ref:this.setCustomLabelRef},a.createElement(g.Z,{selected:this.overlayState.isOpen,quiet:!0,variant:"action","data-test-id":"sort-dropdown-button","aria-label":this.sortTooltip,onClick:this.handleClick,className:p()("view-toggle-button","keypress-suppression",{"is-disabled":this.props.disabled,selected:this.overlayState.isOpen})},a.createElement(m.Z,{className:"sort-icon","data-test-id":"panel-dropdown-icon",id:r,height:e,width:t})))}render(){return a.createElement(f.Z,{tooltip:this.sortTooltip,disabled:this.props.disabled,data:this.menuData,className:"panel-sort-dropdown",type:"sort",currentLabel:this.labelIcon,locationBasedOnLabel:!0,customLabelRef:this.customLabelRef,align:"right"})}}).contextType=v.r,o.propTypes={mode:c().oneOf(["elements","libraries"]),sortOrderControl:c().bool,onSortChange:c().func,hideGroupBy:c().bool,disabled:c().bool},o.defaultProps={mode:"elements",hideGroupBy:!1,disabled:!1},E((i=o).prototype,"groupByOptions",[u.computed],Object.getOwnPropertyDescriptor(i.prototype,"groupByOptions"),i.prototype),E(i.prototype,"sortByOptions",[u.computed],Object.getOwnPropertyDescriptor(i.prototype,"sortByOptions"),i.prototype),E(i.prototype,"labelIcon",[u.computed],Object.getOwnPropertyDescriptor(i.prototype,"labelIcon"),i.prototype),n=i))||n},48989:(e,t,r)=>{"use strict";r.d(t,{Z:()=>O});var n,i,o,a=r(89526),s=r(2652),c=r.n(s),l=r(50265),u=r(62631),d=r(77227),p=r(24937),h=r(99386),f=r(76485),m=r(51461),g=r(64403),v=r.n(g),y=r(27611),b=r(99767),_=r(46903),E=r(84824);function w(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const x=/(\s*\/\s*)|(\s\s)/,L={ESC:"Escape",ENTER:"Enter",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight"};let O=(0,u.Pi)(((o=class extends a.Component{constructor(...e){super(...e),this.handleInputChange=e=>{const t=e.target.value;if(t.match(/\/$/)&&t.length>this.value.length)return this.handleCreateNew();const r=t.split(h.Z.PATH_VIEW_GROUP_SEPARATOR),n=r.findIndex(((e,t)=>e!==this.pathState.livePath[t].name)),i=r[n].split(x)[0];this.pathState.updateEntry(n,i),this.isRename&&this.context.viewManager.setRenameValue(i)},this.handleKeyDown=e=>{[L.ARROW_LEFT,L.ARROW_RIGHT].includes(e.key)&&e.stopPropagation(),e.key===L.ENTER&&this.handleCommitEdit(),e.key===L.ESC&&this.pathState.stopEdit()},this.handleBlur=()=>{this.props.autocomplete||this.handleCommitEdit()},this.handleInputClick=e=>{e.stopPropagation()},this.setInputRef=e=>{this.inputEl=e,this.pathState.setInputElement(e)}}componentDidMount(){this.pathState.isEditing&&(this.hideHead?this.placeCursorAt(this.value.length):this.selectHead(),this.isRename&&this.context.viewManager.startRename(this.pathState.group))}componentWillUnmount(){this.pathState.stopEdit(),this.context.viewManager.stopRename()}get pathState(){return this.props.pathState}get isRename(){return this.context.viewState.viewByGroupMode!==h.Z.VIEW_BY_GROUP_MODES.PATH&&1===this.pathState.livePath.length}get hideHead(){return!!this.pathState.head.isGroup&&this.pathState.isNewGroup}get value(){return this.pathState.livePath.map(((e,t)=>t===this.headIndex&&this.hideHead?"":e.name)).join(h.Z.PATH_VIEW_GROUP_SEPARATOR)}get headValue(){var e;return null===(e=this.pathState.head)||void 0===e?void 0:e.name}get headIndex(){return this.pathState.headIndex}get isEditing(){return this.pathState.isEditing}setSelectionRangeUXP(e,t){if(document.activeElement===this.inputEl)this.inputEl.setSelectionRange(e,t);else{const r=()=>{this.inputEl.setSelectionRange(e,t),this.inputEl.removeEventListener("focus",r)};this.inputEl.addEventListener("focus",r)}}setSelectionRange(e,t){this.inputEl&&(f.Z.hasUXPInputSelectionRangeBug?this.setSelectionRangeUXP(e,t):this.inputEl.setSelectionRange(e,t),this.inputEl.focus())}selectHead(){const e=this.value.length-this.headValue.length,t=this.value.length;this.setSelectionRange(e,t)}placeCursorAt(e){this.setSelectionRange(e,e)}handleCreateNew(){this.headValue.trim()&&(m.ZP.setExtraEventMetrics("createGroup",{content:{category:"In Path"}}),this.pathState.updateEntry(this.headIndex,this.headValue.trim()),this.pathState.addEntry(),f.Z.hasUXPInputSelectionRangeBug&&this.placeCursorAt(this.value.length))}handleCommitEdit(){if(this.isRename)return this.handleRenameCommit();this.pathState.commitEdit()}handleRenameCommit(){if(!this.isInvalidName&&this.context.viewManager.renameValue){const e=this.context.viewManager.renameValue.trim();this.context.viewManager.stopRename(),(0,_.UE)(this.pathState.group,e)}this.pathState.stopEdit()}get tooltipErrorMessage(){const e=this.context.viewManager.renameStatus;return h.Z.RENAME_STATE_ERROR_MESSAGES[e]}get isInvalidName(){return!!this.isRename&&this.context.viewManager.renameStatus!==h.Z.RENAME_STATES.VALID}render(){const e=v()("panel-group-path-view-edit panel-group-container-text is-editing",{invalid:this.isInvalidName});return a.createElement("div",{className:e},a.createElement("input",{type:"text",spellCheck:"false","uxp-quiet":"false","data-test-id":"panel-group-path-view-entry-input",className:"panel-group-container-input",ref:this.setInputRef,value:this.value,onChange:this.handleInputChange,onKeyDown:this.handleKeyDown,onClick:this.handleInputClick,onBlur:this.handleBlur}),this.isInvalidName&&a.createElement("div",{"data-test-id":"editable-name-alert-tooltip"},a.createElement(b.Z,{className:"editable-name-alert-tooltip",placement:"top",content:(0,E.Iu)(this.tooltipErrorMessage)},a.createElement(y.Z,{className:"editable-name-alert-icon",id:"Alert",height:10}))))}}).contextType=p.r,o.propTypes={pathState:c().instanceOf(d.Z),autocomplete:c().bool},w((i=o).prototype,"value",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"value"),i.prototype),w(i.prototype,"tooltipErrorMessage",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"tooltipErrorMessage"),i.prototype),w(i.prototype,"isInvalidName",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"isInvalidName"),i.prototype),n=i))||n},74242:(e,t,r)=>{"use strict";r.d(t,{Z:()=>w});var n=r(89526),i=r(2652),o=r.n(i),a=r(50265),s=r(62631),c=r(24937),l=r(48989),u=r(99386),d=r(20290),p=r(25585),h=r(69233);class f{constructor(e){this._cb=e}disconnect(){window.removeEventListener("resize",this._cb)}observe(){window.addEventListener("resize",this._cb)}}var m,g,v,y,b=r(33275),_=r(75623);function E(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let w=(0,s.Pi)(((y=class extends n.Component{constructor(...e){var t;super(...e),(t=v)&&Object.defineProperty(this,"_maxWidth",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0}),this.setPathRef=e=>{this.pathRef=e},this.handleResize=(0,d.Ds)(u.Z.WINDOW_RESIZE_DEBOUNCE,(()=>{const e=u.Z.currentProduct.config.editWidthSubtraction||0;return this._maxWidth=this.pathRef?this.pathRef.clientWidth-u.Z.SCROLLBAR_WIDTH-e:0,Promise.resolve()})),this.handleDoubleClick=()=>{this.props.disableEditing||this.context.viewManager.startEditPath(this.props.group)}}componentDidMount(){let e=f;window.ResizeObserver&&(e=window.ResizeObserver),this.resizeObserver=new e((()=>this.handleResize())),this.pathRef&&this.resizeObserver.observe(this.pathRef)}componentWillUnmount(){this.resizeObserver?this.resizeObserver.disconnect():window.removeEventListener("resize",this.handleResize)}get pathState(){return this.context.viewManager.pathState}get maxDepth(){return this.props.group.library.pathViewMaxDepth||0}get groupPath(){return[...(0,h._y)(this.props.group),this.props.group].map((e=>e.name)).slice(this.maxDepth)}get isEditing(){return this.context.viewManager.editPathGroup===this.props.group}get maxWidth(){return this._maxWidth}get pathView(){const e=(0,p.Zj)(this.groupPath,{maxWidth:this.maxWidth,className:"panel-group-container-text-sizer"}).split(u.Z.PATH_VIEW_GROUP_SEPARATOR),t=e[e.length-1],r=u.Z.currentProduct.config.hideTailForGroupPathView?"":e.slice(0,e.length-1).join(u.Z.PATH_VIEW_GROUP_SEPARATOR);return n.createElement("div",{ref:this.setPathRef,"data-test-id":"panel-group-path-view",className:"panel-group-container-text panel-group-path-view",onDoubleClick:this.handleDoubleClick},r,r&&u.Z.PATH_VIEW_GROUP_SEPARATOR,n.createElement("span",{className:"panel-group-path-view-head"},t))}render(){return this.isEditing?n.createElement(l.Z,{pathState:this.pathState,autocomplete:!0}):this.pathView}}).contextType=c.r,y.propTypes={group:o().oneOfType([o().instanceOf(b.ZA),o().instanceOf(_.Z)]).isRequired,disableEditing:o().bool},y.defaultProps={disableEditing:!1},v=E((g=y).prototype,"_maxWidth",[a.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),E(g.prototype,"groupPath",[a.computed],Object.getOwnPropertyDescriptor(g.prototype,"groupPath"),g.prototype),E(g.prototype,"pathView",[a.computed],Object.getOwnPropertyDescriptor(g.prototype,"pathView"),g.prototype),m=g))||m},52422:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d});var n,i,o=r(89526),a=r(2652),s=r.n(a),c=r(62631),l=r(64403),u=r.n(l);let d=(0,c.Pi)(((i=class extends o.Component{render(){const e=u()("spectrum-Checkbox-box",{checked:this.props.checked});return o.createElement("label",{className:"spectrum-Checkbox"},o.createElement("input",{tabIndex:0,"data-test-id":"spectrum-checkbox",type:"checkbox",className:"spectrum-Checkbox-input",onClick:this.props.onChange,onKeyDown:this.props.onKeyDown,"aria-checked":this.props.checked,"aria-label":this.props.label,checked:this.props.checked,readOnly:!0,disabled:this.props.disabled}),o.createElement("span",{className:e},o.createElement("svg",{className:"spectrum-UIIcon-CheckmarkSmall spectrum-Icon spectrum-Checkbox-checkmark",focusable:"false","aria-hidden":"true",role:"img"},o.createElement("path",{d:"M3.788 9A1 1 0 0 1 3 8.615l-2.288-3a1 1 0 1 1 1.576-1.23l1.5 1.991 3.924-4.991a1 1 0 1 1 1.576 1.23l-4.712 6A1 1 0 0 1 3.788 9z",className:"spectrum-UIIcon--medium"}))),o.createElement("span",{className:"spectrum-Checkbox-label"},this.props.label))}}).propTypes={checked:s().bool,disabled:s().bool,label:s().string,onChange:s().func,onKeyDown:s().func},n=i))||n},5849:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n,i,o=r(89526),a=r(64403),s=r.n(a),c=r(2652),l=r.n(c),u=r(62631),d=r(76485);const p=r(88166);let h=(0,u.Pi)(((i=class extends o.Component{get value(){return Math.min(Math.max(+this.props.progress,0),100)}get progressBar(){let e;const t={},r={};return this.props.indeterminate||(this.value>0&&this.value<=50?(e=this.value/50*180-180,t.transform="rotate("+e+"deg)",r.transform="rotate(-180deg)"):this.value>50&&(e=(this.value-50)/50*180-180,t.transform="rotate(0deg)",r.transform="rotate("+e+"deg)")),o.createElement("div",{className:s()(`spectrum-CircleLoader spectrum-CircleLoader--${this.props.size}`,{"spectrum-CircleLoader--indeterminate":this.props.indeterminate},this.props.className),"data-test-id":this.props["data-test-id"]},o.createElement("div",{className:"spectrum-CircleLoader-track"}),o.createElement("div",{className:"spectrum-CircleLoader-fills"},o.createElement("div",{className:"spectrum-CircleLoader-fillMask1"},o.createElement("div",{"data-test-id":"circle-loader-submask1",className:"spectrum-CircleLoader-fillSubMask1",style:t},o.createElement("div",{className:"spectrum-CircleLoader-fill"}))),o.createElement("div",{className:"spectrum-CircleLoader-fillMask2"},o.createElement("div",{"data-test-id":"circle-loader-submask2",className:"spectrum-CircleLoader-fillSubMask2",style:r},o.createElement("div",{className:"spectrum-CircleLoader-fill"})))))}get uxpProgressBar(){return o.createElement(p,{"data-test-id":"uxp-circle-loader",variant:this.props.indeterminate?"indeterminate":"determinate",indeterminate:this.props.indeterminate,value:this.value,size:this.props.size.substring(0,1).toUpperCase(),className:`spectrum-CircleLoader--${this.props.size}`})}render(){return o.createElement("div",{"data-test-id":"progress",className:"panel-progress"},d.Z.supportsAnimations?this.progressBar:this.uxpProgressBar)}}).defaultProps={progress:0,size:"large",indeterminate:!1},i.propTypes={progress:l().number,size:l().oneOf(["small","medium","large"]),indeterminate:l().bool,className:l().string,"data-test-id":l().string},n=i))||n},58925:(e,t,r)=>{"use strict";r.d(t,{Z:()=>Z});var n,i,o,a=r(89526),s=r(2652),c=r.n(s),l=r(62631),u=r(64403),d=r.n(u),p=r(31870),h=r(99767),f=r(84824),m=r(27611),g=r(50265),v=r(24937);let y=(0,l.Pi)(((o=class extends a.Component{get isWritable(){return this.context.viewState.isLibraryWritable(this.context.libraryManager.currentLibrary,null,!0)}_getLicensedBadge(){if(this.props.asset.is_licensed)return a.createElement("div",{className:"panel-dl-stock-content-item-licensed-container"},a.createElement(h.Z,{content:(0,f.Iu)("DL_STOCK_LICENSED_SEARCH_RESULT")},a.createElement("div",{className:"panel-dl-stock-content-item-licensed search-asset-icon","data-test-id":"licensed"},a.createElement("div",{className:"panel-dl-stock-content-item-icon-licensed"},a.createElement(m.Z,{id:"StockLicensedBadge",height:40,width:46})))))}_getLicenseButton(){if(this.props.asset.is_licensed||!this.context.libraryManager.currentLibrary)return;const e=this.context.libraryManager.currentLibrary.name;let t=this.props.onLicenseClick;this.isWritable||(t=null);const r=d()("panel-dl-stock-content-item-action","search-asset-icon","show-on-hover-child",{disabled:!this.isWritable});let n;return n=this.isWritable?p.q$()?(0,f.Iu)("DL_STOCK_LICENSE_THEN_SAVE_TO_TOOLTIP",{name:e}):(0,f.Iu)("DL_STOCK_LICENSE_TOOLTIP"):(0,f.Iu)("DL_ERROR_EDIT_READ_ONLY_LIBRARY",{name:e}),a.createElement(h.Z,{content:n},a.createElement("div",{className:r,onClick:t,"data-test-id":"license-button"},a.createElement("div",{className:"panel-dl-stock-content-item-icon"},a.createElement(m.Z,{id:"ShoppingCart",height:18}))))}_getSaveCompButton(){const e=this.props.asset;if(!e.is_licensed&&!p.dF(e)||!this.context.libraryManager.currentLibrary)return;const t=this.context.libraryManager.currentLibrary.name;let r=this.props.onSaveCompClick;this.isWritable||(r=null);const n=d()("panel-dl-stock-content-item-action","search-asset-icon","show-on-hover-child",{disabled:!this.isWritable});let i;return i=this.isWritable?e.is_licensed?(0,f.Iu)("DL_STOCK_SAVE_TO_TOOLTIP",{name:t}):(0,f.Iu)("DL_STOCK_SAVE_PREVIEW_TO_TOOLTIP",{name:t}):(0,f.Iu)("DL_ERROR_EDIT_READ_ONLY_LIBRARY",{name:t}),a.createElement(h.Z,{content:i},a.createElement("div",{className:n,onClick:r,"data-test-id":"savecomp-button"},a.createElement("div",{className:"panel-dl-stock-content-item-icon"},a.createElement(m.Z,{id:"AddStock",height:18}))))}render(){const e=d()({"panel-dl-stock-content-item-hover-vertical":!1,"panel-dl-stock-content-item-hover":!0});return a.createElement(a.Fragment,null,a.createElement("div",{className:e,"data-test-id":"badges"},this._getLicenseButton(),this._getSaveCompButton()),this._getLicensedBadge())}}).contextType=v.r,o.propTypes={asset:c().object.isRequired,onLicenseClick:c().func.isRequired,onSaveCompClick:c().func.isRequired},b=(i=o).prototype,_="isWritable",E=[g.computed],w=Object.getOwnPropertyDescriptor(i.prototype,"isWritable"),x=i.prototype,L={},Object.keys(w).forEach((function(e){L[e]=w[e]})),L.enumerable=!!L.enumerable,L.configurable=!!L.configurable,("value"in L||L.initializer)&&(L.writable=!0),L=E.slice().reverse().reduce((function(e,t){return t(b,_,e)||e}),L),x&&void 0!==L.initializer&&(L.value=L.initializer?L.initializer.call(x):void 0,L.initializer=void 0),void 0===L.initializer&&(Object.defineProperty(b,_,L),L=null),n=i))||n;var b,_,E,w,x,L,O=r(75067),S=r(99409),T=r(51461),P=r(4784),I=r(16993),A=r(68370),C=r(30131);function k(e){return O.ZP.libraries.map((t=>({label:t.name,enableMenu:P.Z.canAddElements(t)&&I.Z.isLibraryWritable(t,!1,!0),checked:t.id===O.ZP.currentLibrary.id,onClick:()=>{e(t)}})))}var D,N,R=r(91854),M=r(47320),j=r(76485),F=r(26981);let Z=(0,l.Pi)(((N=class extends a.Component{constructor(...e){super(...e),this._setImageRef=e=>{this.imageElement=e},this._handleSaveCompClick=()=>{const e=this.props.asset;T.ZP.reportStockEvent("Add Stock","click","start",null,e),(0,p.LU)({asset:e,library:O.ZP.currentLibrary,img:this.imageElement}).then((e=>{T.ZP.reportStockEvent("Add Stock","render","success",{},e)})).catch((()=>{T.ZP.reportStockEvent("Add Stock","render","error",{event:{error_desc:"unknown"}})}))},this._handleLicenseClick=()=>{const e=T.ZP.STOCK_EVENTSOURCE.SEARCH,t=this.props.asset;T.ZP.reportStockEvent("License","click","start",{ui:{sequence:e}},t),p.q$()?(0,p.S8)({asset:t,library:O.ZP.currentLibrary,img:this.imageElement}).then((()=>{T.ZP.reportStockEvent("License","render","success",{ui:{sequence:e}},t)})).catch((()=>{T.ZP.reportStockEvent("License","render","error",{event:{error_desc:"unknown"},ui:{sequence:e}},t)})):C.WS(t.id,t.type)},this._handleContextMenu=e=>{e.stopPropagation(),function(e,t){const r=[],n=[];if(!e.is_licensed)if(p.q$()){const t=k((t=>{const r=T.ZP.STOCK_EVENTSOURCE.CONTEXT_MENU;T.ZP.reportStockEvent("License","click","start",{ui:{sequence:r}},e),p.S8({asset:e,library:t}).then((()=>{T.ZP.reportStockEvent("License","render","success",{ui:{sequence:r}},e)})).catch((()=>{T.ZP.reportStockEvent("License","render","error",{event:{error_desc:"unknown"},ui:{sequence:r}},e)}))}));n.push({label:"DL_STOCK_LICENSE_THEN_SAVE_TO",enableMenu:!0,menuItems:t})}else n.push({label:"DL_STOCK_LICENSE_TOOLTIP",onClick:()=>{const t=T.ZP.STOCK_EVENTSOURCE.CONTEXT_MENU;T.ZP.reportStockEvent("License","click","start",{ui:{sequence:t}},e),(0,C.WS)(e.id,e.type)}});if(p.dF(e)||e.is_licensed){const r=k((r=>{T.ZP.reportStockEvent("Add Stock","click","start",null,e),p.LU({asset:e,library:r,img:t}).then((e=>{T.ZP.reportStockEvent("Add Stock","render","success",{},e)})).catch((()=>{T.ZP.reportStockEvent("Add Stock","render","error",{event:{error_desc:"unknown"}})}))}));n.push({label:e.is_licensed?"DL_STOCK_SAVE_TO":"DL_STOCK_SAVE_PREVIEW_TO",enableMenu:!0,menuItems:r})}(0,A.s)(r,n);const i=[];7!==e.media_type_id&&i.push({label:"DL_STOCK_FIND_SIMILAR_MENU",onClick:()=>{T.ZP.reportStockEvent("Find Similar","click","find",{ui:{sequence:"search"}},e),I.Z.setFindSimilarSearchMode(e.id)}}),i.push({label:"DL_STOCK_VIEW_ON_WEB",onClick:()=>{(0,C.WS)(e.id,e.type)}}),(0,A.s)(r,i),S.Z.setContextMenu(r)}(this.props.asset,this.imageElement),j.Z.onContextMenu(e)},this._handleDragStart=e=>{const t={asset:this.props.asset,imageElement:this.imageElement,dragStartEvent:e},r=F.Ig();R.Z.handleDragStart("stock",t,r?t=>{const r=this.imageElement.cloneNode(!0);r.style.opacity=.8,r.style.width=this.props.layout.width+"px",r.style.height=this.props.layout.height+"px",r.style.left=e.target.clientX-e.target.clientWidth/2+"px",r.style.top=e.target.clientY-e.target.clientHeight/2+"px",t.appendChild(r),document.body.appendChild(t)}:null)},this._handleDragEnd=e=>{R.Z.handleDragEnd({dragEndEvent:e})},this._handleDoubleClick=()=>{C.WS(this.props.asset.id,this.props.asset.type)}}render(){const e=this.props.asset,t=p.BG(e.media_type_id,e.content_type),r=e.thumbnail_url,n=e.id;return a.createElement(h.Z,{content:(0,p.gB)(e)},a.createElement("div",{className:"panel-stock-search-result-container show-on-hover-parent",onContextMenu:this._handleContextMenu,onDragStart:this._handleDragStart,onDragEnd:this._handleDragEnd,onDoubleClick:this._handleDoubleClick,"data-test-id":`stock-result-${n}`,draggable:M.Z.isStockAssetDraggable(t)},a.createElement("img",{className:"panel-stock-search-result-image",src:r,ref:this._setImageRef,"data-test-id":"image",crossOrigin:"anonymous"}),a.createElement("div",{className:"panel-stock-search-result-children-container"},this.props.children),a.createElement(y,{asset:e,onLicenseClick:this._handleLicenseClick,onSaveCompClick:this._handleSaveCompClick})))}}).propTypes={asset:c().object.isRequired,children:c().node.isRequired,layout:c().shape({width:c().number.isRequired,height:c().number.isRequired}).isRequired},D=N))||D},14241:(e,t,r)=>{"use strict";r.d(t,{X:()=>l,w:()=>c});var n=r(89526),i=r(2652),o=r.n(i),a=r(24937),s=r(46931);const c=n.createContext();class l extends n.Component{render(){return n.createElement(c.Provider,{value:this.props.portalNode},n.createElement(a.o,{value:s.Z.panel,style:{height:"100%",width:"100%",borderRadius:"inherit",background:"inherit"}},this.props.children))}}l.propTypes={children:o().node,portalNode:o().instanceOf(HTMLElement)}},48346:(e,t,r)=>{"use strict";r.d(t,{Z:()=>v});var n=r(35938),i=r(39808),o=r(10206),a=r.n(o),s=r(31870),c=r(76485),l=r(89526);const u=["type","data","height","width","additionalStyles","library","viewMode","gridSizeType"];function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}function p(e){return e}function h(e){const t="element"===e.type&&(0,s.kv)(e.data);return`${e.data&&e.data.type?e.data.type:e.type}:${t?1:0}`}const f="function"==typeof n.Z?n.Z:class{};class m extends f{constructor(...e){super(...e),this._setVirtualScroller=e=>{this._uxpVirtualScroller=e}}_onDragOver(e,t){if(c.Z.autoScrollNotSupported&&!this._autoScrolling){const e=t-this._scrollTop,r=this.props.height,n=40,i=e<n?-1:r-e<n?1:0;if(i){const e=20*i;this._autoScrolling=requestAnimationFrame((()=>{delete this._autoScrolling,this._uxpVirtualScroller&&this._uxpVirtualScroller.scrollBy(0,e)}))}}}renderVirtualizer(){const e=this._getScrollToCellAndClearPending(),t=e>=0?this._getCellItemKey(this.items[e]):void 0;return l.createElement(a(),{id:"collection",items:this.items,itemKey:this._getCellItemKey,itemType:h,itemRect:p,scrollToItem:t,style:{width:this.props.width,height:this.props.height,zIndex:0},ref:this._setVirtualScroller},(e=>{const t=e.type,r=e.data,i=e.height,o=e.width,a=e.additionalStyles,s=e.library,c=e.viewMode,d=e.gridSizeType,p=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,u),h=n.Z.ITEM_VIEWS[t](r,i,o,s,c,d,p),f={zIndex:e.zIndex};return a&&Object.assign(f,a),l.createElement("div",{style:f},h)}))}}const g=e=>l.createElement(i.Z,d({},e,{baseContentView:m}));g.displayName="UXPLibraryContentsView";const v=g},73645:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d});var n,i,o=r(89526),a=r(2652),s=r.n(a),c=r(62631),l=r(64403),u=r.n(l);let d=(0,c.Pi)(((i=class extends o.Component{get divider(){const e=this.props.content.filter((e=>!e.divider)),t=Math.max(...e.map((e=>e.length)));return"⎼".repeat(Math.min(t,36))}get tooltipContent(){var e;const t=null===(e=this.props.content)||void 0===e?void 0:e.map((e=>e&&e.divider?this.divider:e)).join("\n");if(!this.props.disable&&t)return t}render(){return o.createElement("div",{"data-test-id":"tooltip-wrapper",className:u()("tooltip-ref",this.props.className),title:this.tooltipContent},this.props.children)}}).propTypes={children:s().node,featureId:s().string,content:s().array,disable:s().bool,className:s().string},n=i))||n},43393:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p});var n,i,o,a,s,c=r(50265),l=r(99386);function u(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function d(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let p=(i=d((n=class{constructor(e){u(this,"_searchTypeOptions",i,this),u(this,"_searchLibrariesOptions",o,this),u(this,"_searchDocumentGroupOptions",a,this),u(this,"_searchDocumentLinkOptions",s,this),this.viewState=e}_getSearchFilters(e){return Array.from(e.entries()).filter((([e,t])=>t&&"editorial"!==e)).map((([e])=>e))}get _searchTypeFilters(){return this._getSearchFilters(this._searchTypeOptions)}get _searchLibrariesFilters(){return this._getSearchFilters(this._searchLibrariesOptions)}get _searchDocumentGroupFilters(){return this._getSearchFilters(this._searchDocumentGroupOptions)}get _searchDocumentLinkFilters(){return this._getSearchFilters(this._searchDocumentLinkOptions)}get filterCount(){let e=[this._searchTypeFilters,this._searchLibrariesFilters];return(this.viewState.isDocumentSearchType()||l.Z.currentProduct.config.includeGroupFilters)&&(e=e.concat([this._searchDocumentGroupFilters,this._searchDocumentLinkFilters])),e.reduce(((e,t)=>e+t.length),0)}clearFilters(){this._searchTypeOptions=new Map,this._searchLibrariesOptions=new Map}isSearchOptionEnabled(e){return Boolean(this._searchTypeOptions.get(e)||this._searchLibrariesOptions.get(e)||this._searchDocumentGroupOptions.get(e)||this._searchDocumentLinkOptions.get(e))}}).prototype,"_searchTypeOptions",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),o=d(n.prototype,"_searchLibrariesOptions",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),a=d(n.prototype,"_searchDocumentGroupOptions",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),s=d(n.prototype,"_searchDocumentLinkOptions",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),n)},24937:(e,t,r)=>{"use strict";r.d(t,{r:()=>le,o:()=>ue});var n=r(21955),i=r(13824),o=r(10470),a=r(20512),s=r(55725),c=(r(62103),r(89526));function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const p={componentStack:null,error:null,eventId:null};class h extends c.Component{constructor(e){super(e),h.prototype.__init.call(this),this.state=p,this._openFallbackReportDialog=!0;const t=(0,n.Gd)().getClient();t&&t.on&&e.showDialog&&(this._openFallbackReportDialog=!1,t.on("afterSendEvent",(t=>{t.type||t.event_id!==this._lastEventId||(0,i.jp)(u(u({},e.dialogOptions),{},{eventId:this._lastEventId}))})))}componentDidCatch(e,{componentStack:t}){const r=this.props,n=r.beforeCapture,l=r.onError,d=r.showDialog,p=r.dialogOptions;(0,o.$e)((r=>{if(function(e){const t=e.match(/^([^.]+)/);return null!==t&&parseInt(t[0])>=17}(c.version)&&(0,a.VZ)(e)){const r=new Error(e.message);r.name=`React ErrorBoundary ${e.name}`,r.stack=t,function(e,t){const r=new WeakMap;!function e(t,n){if(!r.has(t))return t.cause?(r.set(t,!0),e(t.cause,n)):void(t.cause=n)}(e,t)}(e,r)}n&&n(r,e,t),r.addEventProcessor((e=>((0,s.EG)(e,{handled:!1}),e)));const h=(0,o.Tb)(e,{contexts:{react:{componentStack:t}}});l&&l(e,t,h),d&&(this._lastEventId=h,this._openFallbackReportDialog&&(0,i.jp)(u(u({},p),{},{eventId:h}))),this.setState({error:e,componentStack:t,eventId:h})}))}componentDidMount(){const e=this.props.onMount;e&&e()}componentWillUnmount(){const e=this.state,t=e.error,r=e.componentStack,n=e.eventId,i=this.props.onUnmount;i&&i(t,r,n)}__init(){this.resetErrorBoundary=()=>{const e=this.props.onReset,t=this.state,r=t.error,n=t.componentStack,i=t.eventId;e&&e(r,n,i),this.setState(p)}}render(){const e=this.props,t=e.fallback,r=e.children,n=this.state;if(n.error){let e;return e="function"==typeof t?t({error:n.error,componentStack:n.componentStack,resetError:this.resetErrorBoundary,eventId:n.eventId}):t,c.isValidElement(e)?e:null}return"function"==typeof r?r():r}}var f=r(2652),m=r.n(f),g=r(83377),v=r(28086),y=r(30222),b=r(94859),_=r(54071),E=r(70040),w=r(82530);const x=["className","locale","scale","spectrumTheme","theme","typekitId"];function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?L(Object(r),!0).forEach((function(t){S(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function S(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T(){T=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function P(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function I(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){P(o,n,i,a,s,"next",e)}function s(e){P(o,n,i,a,s,"throw",e)}a(void 0)}))}}const A=(0,b.Z)(r(30665)).default,C="sp-theme";let k;w.env.EXCLUDE_SWC||(k=new v.t([C],I(T().mark((function e(){var t,n;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(9022),r.e(5144)]).then(r.bind(r,93588));case 2:return t=e.sent,n=t.Theme,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));let D=()=>Promise.resolve(),N=()=>Promise.resolve(),R=()=>Promise.resolve(),M=()=>Promise.resolve(),j=()=>Promise.resolve(),F=()=>Promise.resolve(),Z=()=>Promise.resolve(),B=()=>Promise.resolve(),G=()=>Promise.resolve(),U=()=>Promise.resolve(),H=()=>Promise.resolve(),z=()=>Promise.resolve();function V(e){return Y.apply(this,arguments)}function Y(){return(Y=I(T().mark((function e(t){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("large"!==t.scale){e.next=8;break}if("express"!==t.system){e.next=5;break}return e.abrupt("return",H());case 5:return e.abrupt("return",G());case 6:e.next=13;break;case 8:if("express"!==t.system){e.next=12;break}return e.abrupt("return",z());case 12:return e.abrupt("return",U());case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function W(e){return K.apply(this,arguments)}function K(){return(K=I(T().mark((function e(t){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t.color,e.next="dark"===e.t0?3:"darkest"===e.t0?8:"light"===e.t0?13:(e.t0,18);break;case 3:if("express"!==t.system){e.next=7;break}return e.abrupt("return",j());case 7:return e.abrupt("return",D());case 8:if("express"!==t.system){e.next=12;break}return e.abrupt("return",F());case 12:return e.abrupt("return",N());case 13:if("express"!==t.system){e.next=17;break}return e.abrupt("return",Z());case 17:return e.abrupt("return",R());case 18:if("express"!==t.system){e.next=22;break}return e.abrupt("return",B());case 22:return e.abrupt("return",M());case 23:case"end":return e.stop()}}),e)})))).apply(this,arguments)}w.env.EXCLUDE_SWC||(D=function(){var e=I(T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(9022),r.e(5754),r.e(8684)]).then(r.bind(r,32639));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),N=function(){var e=I(T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(9022),r.e(5754),r.e(8051)]).then(r.bind(r,95013));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),R=function(){var e=I(T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(9022),r.e(5754),r.e(2729)]).then(r.bind(r,78577));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),M=function(){var e=I(T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(9022),r.e(5754),r.e(7311)]).then(r.bind(r,23183));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),j=function(){var e=I(T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(9022),r.e(8023),r.e(9515),r.e(8689)]).then(r.bind(r,80475));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),F=function(){var e=I(T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(9022),r.e(8023),r.e(9515),r.e(2039)]).then(r.bind(r,30097));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Z=function(){var e=I(T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(9022),r.e(8023),r.e(1138),r.e(6875)]).then(r.bind(r,74628));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),B=function(){var e=I(T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(9022),r.e(8023),r.e(1138),r.e(8202)]).then(r.bind(r,84578));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),G=function(){var e=I(T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(9022),r.e(5754),r.e(5458)]).then(r.bind(r,82252));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),U=function(){var e=I(T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(9022),r.e(5754),r.e(4268)]).then(r.bind(r,39685));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),H=function(){var e=I(T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(9022),r.e(8023),r.e(2659)]).then(r.bind(r,73100));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),z=function(){var e=I(T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(9022),r.e(8023),r.e(1892)]).then(r.bind(r,61234));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),(0,E.I)((function(e){const t=e.scale,r=e.spectrumTheme,n=e.theme,i=e.typekitId,o=[V({scale:t,system:r}),W({color:n,system:r}),(0,y.Yn)(i)];return(0,y.Vc)(C)&&o.push((0,y.A2)(C,e,k)),Promise.all(o)}));const $=(0,g.Z)({displayName:"Provider",fallback:A,swcLoader:k,SWCWrapper:function(e){const t=e.className,r=e.locale,n=e.scale,i=e.spectrumTheme,o=e.theme,a=e.typekitId,s=void 0===a?"ruf7eed":a,l=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,x);(0,c.useEffect)((()=>{V({scale:n,system:i}).catch(console.error)}),[n,i]),(0,c.useEffect)((()=>{W({color:o,system:i}).catch(console.error)}),[i,o]),(0,c.useEffect)((()=>{(0,y.Yn)(s).catch(console.error)}),[s]);const u=(0,y.Co)(C);return c.createElement(u,O(O({},l),{},{class:t,color:o,lang:r,scale:n,system:i}))},tagName:C});function q(e){const t=e.scale,r=e.spectrumTheme,n=e.theme,i=e.typekitId,o=(0,c.useMemo)((()=>(0,_.V)({scale:t,spectrumTheme:r,theme:n,typekitId:i})),[t,r,n,i]);return c.createElement(_.N.Provider,{value:o},c.createElement($,O({},e)))}var X,J,Q,ee,te=r(62631),re=r(50265),ne=r(76485),ie=r(99386),oe=r(26964),ae=r(5849),se=r(57806),ce=r(21360);const le=c.createContext({});let ue=(0,te.Pi)((ee=class extends c.Component{constructor(e){var t;super(e),(t=Q)&&Object.defineProperty(this,"loaded",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0}),ne.Z.beforeLibrariesProviderRenders?ne.Z.beforeLibrariesProviderRenders().catch((e=>{oe.Z.log(e)})).finally((()=>{this.finishLoading()})):this.finishLoading()}finishLoading(){this.loaded=!0,this.addMarkerForLoadEnd()}addMarkerForLoadEnd(){(0,ce.$0)(ce.bC.LOAD.start)&&!(0,ce.$0)(ce.bC.LOAD.end)&&((0,ce._q)(ce.bC.LOAD.end),(0,ce.L8)(ce.bC.LOAD.measure))}get themeColor(){return se.ZP.reactSpectrumTheme}get themeSystem(){return ie.Z.currentProduct.config.themeSystem||"spectrum"}get providerContents(){return this.loaded?this.props.children:ie.Z.currentProduct.config.showContentLoadingSpinner?c.createElement(ae.Z,{"data-test-id":"libraries-content-loading-spinner",size:"large",indeterminate:!0}):null}render(){return c.createElement(h,null,c.createElement(le.Provider,{value:this.props.value},c.createElement(q,{"data-test-id":"react-spectrum-provider",boundariesElement:"container",theme:this.themeColor,spectrumTheme:this.themeSystem,scale:"medium",style:this.props.style},this.providerContents)))}},ee.propTypes={children:m().node,value:m().object,style:m().object},de=(J=ee).prototype,pe="loaded",he=[re.observable],fe={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}},me={},Object.keys(fe).forEach((function(e){me[e]=fe[e]})),me.enumerable=!!me.enumerable,me.configurable=!!me.configurable,("value"in me||me.initializer)&&(me.writable=!0),me=he.slice().reverse().reduce((function(e,t){return t(de,pe,e)||e}),me),void 0===me.initializer&&(Object.defineProperty(de,pe,me),me=null),Q=me,X=J))||X;var de,pe,he,fe,me},60620:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAppConfiguration:()=>z});var n,i,o,a,s=r(77560),c=r(89526),l=r(62631),u=r(50265),d=r(2652),p=r.n(d),h=r(84824),f=r(75067),m=r(33275),g=r(96195),v=r.n(g),y=r(27611),b=r(74149),_=r(16993),E=r(91854),w=r(99987),x=r(95372),L=r(24937),O=r(20290),S=r(99386),T=r(68895);let P=(0,l.Pi)((a=class extends c.Component{constructor(...e){var t;super(...e),(t=o)&&Object.defineProperty(this,"_contentWidth",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0}),this.handleResize=(0,O.Ds)(S.Z.WINDOW_RESIZE_DEBOUNCE,(()=>(this._contentWidth=this.contentRef?this.contentRef.clientWidth:0,Promise.resolve()))),this.openAddElementsDialog=()=>{(0,b.fY)(this.props.library||f.ZP.currentLibrary,"Empty State")},this.libraryContent=e=>{const t=this.emptyStateContents[e];return c.createElement("div",{"data-test-id":`empty-state-${e}`},c.createElement("div",{className:"panel-empty-icon","data-test-id":`empty-state-${e}-icon`},c.createElement(y.Z,{height:150,id:t.icon})),c.createElement("div",{className:"panel-empty-title","data-test-id":`empty-state-${e}-title`},(0,h.Iu)(t.title)),c.createElement("div",{className:"panel-empty-text","data-test-id":`empty-state-${e}-text`},(0,h.Iu)(t.text)),t.button)},this.handleDrop=e=>{this.props.library.isWritable&&E.Z.handleDrop(e)},this._dropTarget=new w.Z({}),this.handleDragOver=()=>{this.props.library.isWritable&&E.Z.setActiveDropTarget(this._dropTarget)},this.setContentRef=e=>{this.contentRef=e}}componentDidMount(){const e=window.ResizeObserver;this.resizeObserver=new e((()=>this.handleResize())),this.contentRef&&this.resizeObserver.observe(this.contentRef),this._contentWidth=this.contentRef?this.contentRef.clientWidth:0}componentWillUnmount(){this.resizeObserver.disconnect()}get contentWidth(){return this._contentWidth}get addElementsButton(){return c.createElement(v(),{disabled:_.Z.isLocked(this.props.library),"data-test-id":"primary-action-empty-button",className:"primary-action-empty-button",onClick:this.openAddElementsDialog,tabIndex:"0"},c.createElement("span",{className:"primary-action-empty-button-label"},(0,h.Iu)("DL_EMPTY_LIB_ACCC_PRIMARY_ACTION")))}get emptyLibCards(){const e=Math.floor(this.contentWidth/192);return[{img:"EmptyLibrary2",instruction:"DL_EMPTY_LIB_PANEL_INSTRUCTION_ACCC_2",testID:"instruction2",button:this.addElementsButton},{img:"EmptyLibrary1",instruction:"DL_EMPTY_LIB_PANEL_INSTRUCTION_ACCC_1",testID:"instruction1",button:this.addGroupButton,isHidden:e<2},{img:"EmptyLibrary3",testID:"instruction3",instruction:"DL_EMPTY_LIB_PANEL_INSTRUCTION_ACCC_3",isHidden:e<3}].filter((e=>!e.isHidden))}get addOpenFileButton(){return c.createElement(v(),{className:"empty-state-open-file-button",label:(0,h.Iu)("DL_EMPTY_LIB_LINKED_LIBRARY"),onClick:()=>(0,T.Fb)(this.props.library),variant:"cta",icon:c.createElement(y.Z,{width:14,height:14,id:"Link",label:(0,h.Iu)("DL_EMPTY_LIB_LINKED_LIBRARY"),className:"empty-state-button-icon"})})}get emptyStateContents(){return{"linked-library-read":{icon:"LinkedDocumentLibrary_CanView",title:"DL_EMPTY_LIB_LINKED_LIBRARY_READ_ONLY_TITLE",text:"DL_EMPTY_LIB_LINKED_LIBRARY_READ_ONLY_TEXT",type:"linked-library"},"linked-library-edit":{icon:"LinkedDocumentLibrary_CanEdit",title:"DL_EMPTY_LIB_LINKED_LIBRARY_WRITE_TITLE",text:"DL_EMPTY_LIB_LINKED_LIBRARY_WRITE_TEXT",type:"linked-library",button:this.addOpenFileButton},"library-read":{icon:"TraditionalLibrary_CanView",title:"DL_EMPTY_LIB_TRADITIONAL_LIBRARY_READ_ONLY_TITLE",text:"DL_EMPTY_LIB_TRADITIONAL_LIBRARY_READ_ONLY_TEXT",type:"traditional-library"}}}get editStateTraditionalLibrary(){return this.emptyLibCards.map((e=>c.createElement("div",{key:`empty-card-${e.testID}`,"data-test-id":`panel-empty-${e.testID}`,className:"panel-empty-card"},c.createElement("div",{className:"panel-empty-card-image"},c.createElement(y.Z,{height:136,width:136,id:e.img})),c.createElement("div",{className:"panel-empty-card-instruction","data-test-id":e.testID},(0,h.Iu)(e.instruction)),e.button)))}get header(){return c.createElement("h1",{className:"panel-empty-heading-label","data-test-id":"header"},(0,h.Iu)("DL_EMPTY_LIB_ACCC_TITLE"))}get addGroupButton(){return c.createElement(x.Z,{showLabel:!0})}get writableContent(){if(!this.props.library||this.props.library.isDeletedFromServer)return;const e=this.props.library.documentType;return c.createElement(c.Fragment,null,!e&&this.header,!e&&c.createElement("div",{className:"panel-empty-cards","data-test-id":"writable-cards"},this.editStateTraditionalLibrary),e&&this.libraryContent("linked-library-edit"))}get readOnlyContent(){const e=this.props.library.documentType?"linked-library-read":"library-read";return c.createElement(c.Fragment,null,this.libraryContent(e))}render(){return c.createElement("div",{className:"panel-empty-container","data-test-id":"emptyLibraryView-ccd",id:"emptyPanelContainer",onDrop:this.handleDrop,onDragOver:this.handleDragOver,ref:this.setContentRef},c.createElement("div",{className:"panel-empty-inner-container","data-test-id":"content"},this.props.library&&this.props.library.isWritable?this.writableContent:this.readOnlyContent))}},a.contextType=L.r,a.defaultProps={library:null},a.propTypes={library:p().instanceOf(m.Zu)},I=(i=a).prototype,A="_contentWidth",C=[u.observable],k={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}},D={},Object.keys(k).forEach((function(e){D[e]=k[e]})),D.enumerable=!!D.enumerable,D.configurable=!!D.configurable,("value"in D||D.initializer)&&(D.writable=!0),D=C.slice().reverse().reduce((function(e,t){return t(I,A,e)||e}),D),void 0===D.initializer&&(Object.defineProperty(I,A,D),D=null),o=D,n=i))||n;var I,A,C,k,D,N=r(30131),R=r(46931),M=r(5837),j=r(76485);function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(Object(r),!0).forEach((function(t){B(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function B(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const G={[S.Z.GRID_TYPE_SMALL]:{MIN_WIDTH:88,HORIZONTAL_SPACING:12,VERTICAL_SPACING:12,MIN_NUM_COLUMNS:1,HEIGHT_OFFSET:0},[S.Z.GRID_TYPE_MEDIUM]:{MIN_WIDTH:112,HORIZONTAL_SPACING:16,VERTICAL_SPACING:35,MIN_NUM_COLUMNS:1,HEIGHT_OFFSET:29},[S.Z.GRID_TYPE_LARGE]:{MIN_WIDTH:168,HORIZONTAL_SPACING:16,VERTICAL_SPACING:41,MIN_NUM_COLUMNS:1,HEIGHT_OFFSET:47}};class U{constructor(e,t={}){this.sizes={},this.mobileSizes={};for(const r in G){const n=(null==e?void 0:e[r])||{},i=(null==t?void 0:t[r])||{};this.sizes[r]=Z(Z({},G[r]),n),this.mobileSizes[r]=Z(Z({},this.sizes[r]),i)}}_getCurrentSizes(){return j.Z.isMobileView?this.mobileSizes:this.sizes}getDynamicLayoutMinimumBreakpoint(){return this.getDynamicLayoutBreakpointWidth()}getDynamicLayoutBreakpointWidth(){const e=this._getCurrentSizes(),t=e[_.Z.gridZoomFactor]||e[S.Z.GRID_TYPE_LARGE];return t.MIN_WIDTH+t.HORIZONTAL_SPACING}getDynamicLayoutRules(){const e=this._getCurrentSizes(),t=e[S.Z.GRID_TYPE_LARGE],r=e[S.Z.GRID_TYPE_MEDIUM],n=e[S.Z.GRID_TYPE_SMALL];return{[S.Z.GRID_TYPE_LARGE]:this._getDynamicLayoutRule(t),[S.Z.GRID_TYPE_MEDIUM]:this._getDynamicLayoutRule(r),[S.Z.GRID_TYPE_SMALL]:this._getDynamicLayoutRule(n)}}_getDynamicLayoutRule(e){return{getHeight:t=>t+e.HEIGHT_OFFSET,getColumns:t=>e.MIN_NUM_COLUMNS+t,verticalSpacing:e.VERTICAL_SPACING,horizontalSpacing:e.HORIZONTAL_SPACING}}}var H=r(89526);function z(){return this.config={},this.config.code="ACCC",this.config.fullName="Creative Cloud Desktop",this.config.translationSuffix="ACCC",this.config.ghostLoading=!0,this.config.lastSectionFullHeight=!0,this.config.disabledCollapseSectionIds=["type","group"],this.config.enableUnusableElements=!0,this.config.groupScrollAlignment="start",this.config.windowGutterPaddingWidth=48,this.config.headerHeight=()=>36,this.config.headerMargin=16,this.config.disableGroupMargin=!0,this.config.gridLeftPadding=16,this.config.mediumIconHeight=12,this.config.smallIconHeight=12,this.config.dropdownChevronHeight=16,this.config.extraSmallIconHeight=8,this.config.emptyGroupHeight=72,this.config.paddingBetweenGroups=36,this.config.disableGroupSeparator=!0,this.config.emptyGroupBottomPadding=40,this.config.sectionNavIndent=8,this.config.emptyUngroupedCustomMessage="DL_EMPTY_UNGROUP_INSTRUCTIONS",this.config.viewBySelectCustomOptionGroup="DL_VIEW_BY_GROUP_SHORT",this.config.viewBySelectCustomOptionType="DL_VIEW_BY_TYPE_SHORT",this.config.customPanelTitle="DL_LIBRARIES_PANEL_NAME_YOUR_LIBRARIES",this.config.invalidGroupNameSlashMessage="DL_GROUP_NAME_INVALID_SLASHES_ACCC",this.config.emptyLibraryCustomComponent=P,this.config.enableUngroupedDropOverlay=!0,this.config.customDragCardHeight=96,this.config.customDragCardWidth=96,this.config.spectrumFailedThumbnail=!0,this.config.uniformElementSize=!0,this.config.disablePaddingWithinGridGroup=!0,this.config.evenlySpacedSubgroups=!0,this.config.disableGroupViewRename=!0,this.config.disableGroupViewDragging=!0,this.config.disableGroupViewHeaderClick=!0,this.config.disableFindSimilar=!0,this.config.disableDefaultEditError=!0,this.config.disableOneUpMode=!0,this.config.enableUppercaseGridDetails=!0,this.config.enableReplaceGraphic=!0,this.config.maintainCurrentSectionOnResize=!0,this.config.useTextStyleThumbnails=!0,this.config.disableContentViewTooltips=!0,this.config.hideExtraBottomSpace=!0,this.config.hideFirstSectionHeader=!0,this.config.disableRestorePreviousCurrentLibrary=!0,this.config.defaultViewByState="group",this.config.defaultViewByGroupMode="path",this.config.teamOnboardingRightSpacing=100,this.config.teamOnboardingTopSpacing=90,this.config.showCCDTeamsOnboarding=!0,this.config.disableCCDTeamsOneUpOnboarding=!0,this.config.noFlyoutMenu=!0,this.config.showOpenInAppMenu=!0,this.config.disableGroupContextMenuInView=!0,this.config.disableNestedGroupIndent=!0,this.config.disableEditPathOperation=!0,this.config.disableDeleteEmptyAncestors=!0,this.config.editWidthSubtraction=64,this.config.mosaicCardVariant="quiet",this.config.mosaicCellPaddingBottom=48,this.config.themes={ffffff:"light",111111:"darker"},this.config.translationOverrides={DL_NO_LIBS_SYNCING:"DL_LOADING_LIBRARIES"},this.config.legacySpectrumEnabled=!0,this.config.defaultTheme="darker",this.config.elementTypes=[s.Z.ColorElementConfig,s.Z.ColorThemeElementConfig,s.Z.ImageElementConfig,s.Z.TextStyleElementConfig,s.Z.FontElementConfig,s.Z.ParagraphStyleElementConfig,s.Z.TextElementConfig,s.Z.LayerStyleElementConfig,s.Z.BrushElementConfig,s.Z.VideoElementConfig,s.Z.LookElementConfig,s.Z.CapsuleElementConfig,s.Z.PatternElementConfig,s.Z.TemplateElementConfig,s.Z.AnimationElementConfig,s.Z.ThreeDElementConfig,s.Z.MaterialElementConfig,s.Z.LightElementConfig,s.Z.GradientElementConfig,s.Z.ComponentElementConfig,s.Z.AudioElementConfig,s.Z.ChannelElementConfig,s.Z.ImageGuidelineElementConfig,s.Z.UnsupportedElementConfig],this.init=()=>Promise.resolve(),this._dynamicGrid=new U,this.config.getDynamicLayoutBreakpointWidth=()=>this._dynamicGrid.getDynamicLayoutBreakpointWidth(),this.config.getDynamicLayoutMinimumBreakpoint=()=>this._dynamicGrid.getDynamicLayoutMinimumBreakpoint(),this.config.getDynamicLayoutRules=()=>this._dynamicGrid.getDynamicLayoutRules(),this.config.handleViewPathView=function(){(0,N.UK)()},this._handleToastClick=()=>{const e=j.Z.ccdAPI.ccdContext.get("onboardingTourStore"),t={componentId:"/assets/libraries",tourId:"ccd.libraries.nestedGroups"+Math.floor(1e3*Math.random()),version:1,viewType:"Main",disableProgress:!0,onTourEnd:()=>{},tourContent:[{id:"ccd.libraries.nestedGroups",stepNumber:10,type:"coachMark",title:(0,h.Iu)("DL_VIEW_BY_GROUP_POPOVER_TITLE"),target:".view-type-dropdown",domTarget:"library-contents-view",description:(0,h.Iu)("DL_VIEW_BY_GROUP_POPOVER_BODY"),confirmLabel:(0,h.Iu)("DL_OK"),cancelLabel:(0,h.Iu)("DL_CANCEL"),mandatory:!1,placement:"bottom left",confirmAnalyticsId:"tour",cancelAnalyticsId:"skip"}]};e.register(t)},this.config.showCustomGroupViewPopover=()=>{const e=H.createElement(M.Z,{className:"panel-toast-group-sort",html:(0,h.Iu)("DL_VIEW_BY_GROUP_POPOVER_BODY_LINK"),onClick:this._handleToastClick});R.Z.panel.toastManager.openToast("message",{variant:"info",message:e})},this.config.setElementDragData=(e,t)=>{e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setData(j.Z.ElementDragId,JSON.stringify({libraryId:t[0].library.id,elementIds:t.map((e=>e.id))}))},this}},54697:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAppConfiguration:()=>D});var n=r(99386),i=r(76485),o=r(75067),a=r(53849),s=r(74379),c=r(34038),l=r(46903),u=r(77560),d=r(8733),p=r(16771);class h extends p.Z{_setColor(e,t,r){return t||(t=[],e.representations.forEach((e=>{const r=e.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY);"primary"===e.getValue("library","rel")?t.unshift(r):t.push(r)})),e.representations.length>0&&(0,l.vM)(e.representations[0],"setColor")),r&&r("setColor"),i.Z.execApp("setColor",[t])}getApplyOperations(e){const t=d.Z.getLayerInfo();return!t||t&&!t.selectionExists?[]:[{name:"DL_SET_COLOR_TOOLTIP",icon:"paintbucket",isDraggable:!1,apply:(t,r)=>this._setColor(e,t,r),displayInMenu:!0,onClick:!0}]}}var f=r(48124),m=r(47320),g=r(31870),v=r(76325);function y(...e){const t=function(e,...t){return e.replace(/\{(\d+)\}/gm,((e,r)=>t[r]))}(...e);return i.Z.execApp("log",[t,"cc-libraries-panel"])}function b(e,t=!1){y("addOrUpdateElementInProject(element:{0}({1}), addingElement:{2})",e.name,e.id,t);const r={name:e.name,id:e.id,libraryName:e.library.name,reference:e.getLegacyReference(),modified:e.modified,created:e.created,adobeStockId:g.wq(e)};r.licensed=r.adobeStockId?g.kv(e):null;const n=m.Z.findUsableRepresentation(e,c.ku(e.type));if(n){const s=t?"com.adobe.DesignLibraries.events.CreateLibrariesFootage":"com.adobe.DesignLibraries.events.UpdateLibrariesFootage";r.width=n.width,r.height=n.height,r.contentLength=n.contentLength,r.contentType=n.type;const u=c.vn(n.type);r.extension=u[0];const d=n.getValue("video","data");if(d?(r.framerate=d.framerate&&Number(d.framerate),r.duration=Math.floor(d.duration)):(r.framerate=1,r.duration=1),t&&(0,l.vM)(n,"placeAsset"),g.Jw(e)){var a;r.url=n.getContentURL(),r.trackingdata=n.getValue("adobestock","trackingdata");const e=null!==(a=o.ZP.userId)&&void 0!==a?a:"";return y("Retrieving IMS access token."),v.Z.getAccessToken(e).then((function(e){y("IMS access token: {0}",e),r.imsToken=e;const t=i.Z.createEvent(s,"APPLICATION");t.data=JSON.stringify(r),y("Dispatching event to application: {0}: {1}",t.name,t.data),i.Z.dispatchEvent(t)})).catch((function(e){y("WARNING: Failed to get IMS access token: {0}",JSON.stringify(e));const t=i.Z.createEvent(s,"APPLICATION");t.data=JSON.stringify(r),y("Dispatching event to application: {0}: {1}",t.name,t.data),i.Z.dispatchEvent(t)}))}n.getContentPath().then((e=>{r.assetPath=e;const t=i.Z.createEvent(s,"APPLICATION");t.data=JSON.stringify(r),y("Dispatching event to application: {0}: {1}",t.name,t.data),i.Z.dispatchEvent(t)}))}y("WARNING: No assetRep found.")}class _ extends f.Z{getApplyOperations(e){return[{name:"DL_ADD_IMAGE_TO_PROJECT",onClick:!1,isDraggable:!0,apply:()=>b(e,!0),displayInMenu:!0}]}}var E=r(65944);class w extends E.Z{_applyLook(e){const t=this._config.findUsableRepresentation(e);if(t)return(0,l.vM)(t,"placeAsset"),t.getContentPath().then((t=>i.Z.execApp("placeAsset",[t,!1,e.name])))}getApplyOperations(e){return[{name:"DL_APPLY_LOOK",onClick:!1,isDraggable:!0,apply:()=>this._applyLook(e),displayInMenu:!0}]}}var x=r(4328);class L extends x.Z{getApplyOperations(e){return[{name:"DL_ADD_TO_PROJECT",icon:"download",apply:()=>b(e,!0),displayInMenu:!0}]}}var O=r(54888);class S extends O.Z{getApplyOperations(e){return[{name:"DL_ADD_TO_PROJECT",onClick:!1,isDraggable:!0,apply:()=>b(e,!0),displayInMenu:!0}]}}var T=r(82359);class P extends T.Z{getApplyOperations(e){return[{name:"DL_ADD_TO_PROJECT",onClick:!1,isDraggable:!0,apply:()=>b(e,!0),displayInMenu:!0}]}}var I=r(59846);class A extends I.Z{getApplyOperations(e){return[{name:"DL_ADD_TO_PROJECT",onClick:!1,isDraggable:!0,apply:()=>b(e,!0),displayInMenu:!0}]}}function C(){C=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function k(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function D(){function e(e){return s.vq(e,e,e).slice(1).toLowerCase()}this.getScaleColor=function(t){return e(.4*t+35)},this.cssThemeBGScale=function(){const t={},r={darker:"darker",dark_v7:"dark-v7",dark:"dark",light:"light",lighter:"lighter"},n=e=>{switch(e){case 0:return r.darker;case 100:return r.dark;default:return"generated/"+e}};for(let e=0;e<=100;e++){const r=this.getScaleColor(e);(!Object.prototype.hasOwnProperty.call(t,r)||Object.prototype.hasOwnProperty.call(t,r)&&n(e)!=="generated/"+e)&&(t[r]=n(e))}return[[30,r.darker],[50,r.dark_v7],[245,r.light]].forEach((r=>{const n=e(r[0]);t[n]=r[1]})),t},this.config={},this.config.code="AEFT",this.config.fullName="After Effects",this.config.translationSuffix="AE",this.config.dragDropSource="com.adobe.aftereffects",this.config.defaultStockSearchOptions=[n.Z.STOCK_SEARCH_OPTION_VIDEO.id],this.config.themes=this.cssThemeBGScale(),this.config.defaultTheme="darker",this.config.elementTypes=[h,u.Z.ColorThemeElementConfig,_,L,w,S,P,A,u.Z.AudioElementConfig,u.Z.ComponentElementConfig,u.Z.CapsuleElementConfig,u.Z.TextStyleElementConfig,u.Z.FontElementConfig,u.Z.ParagraphStyleElementConfig,u.Z.LayerStyleElementConfig,u.Z.BrushElementConfig,u.Z.PatternElementConfig,u.Z.TemplateElementConfig,u.Z.TextElementConfig,u.Z.AnimationElementConfig,u.Z.GradientElementConfig,u.Z.ChannelElementConfig,u.Z.ImageGuidelineElementConfig,u.Z.UnsupportedElementConfig],this.config.collapsedTypes=[n.Z.AUDIO_ELEMENT_TYPE,n.Z.BRUSH_ELEMENT_TYPE,n.Z.GRADIENT_ELEMENT_TYPE,n.Z.CHARACTER_STYLE_ELEMENT_TYPE,n.Z.FONT_ELEMENT_TYPE,n.Z.LAYER_STYLE_ELEMENT_TYPE,n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,n.Z.PATTERN_ELEMENT_TYPE,n.Z.TEXT_ELEMENT_TYPE,n.Z.TEMPLATE_ELEMENT_TYPE,n.Z.CAPSULE_ELEMENT_TYPE,n.Z.ANIMATION_ELEMENT_TYPE,n.Z.CHANNEL_ELEMENT_TYPE,n.Z.IMAGE_GUIDELINE_ELEMENT_TYPE,n.Z.UNSUPPORTED_ELEMENT_TYPE],this.init=function(){c.Zh(n.Z.IMAGE_ELEMENT_TYPE,["application/pdf","application/illustrator","application/photoshop","application/photoshop.large","image/vnd.adobe.photoshop","image/png","image/jpeg","image/jpg","image/tiff","image/bmp","image/svg+xml","image/heic","image/x-adobe-dng","image/dng"]),c.Zh(n.Z.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),c.Zh(n.Z.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),c.Zh(n.Z.LOOK_ELEMENT_TYPE,["application/vnd.adobe.cube+txt","application/vnd.adobe.look+xml"]),c.Zh(n.Z.COMPONENT_ELEMENT_TYPE,["image/svg+xml","image/png"]),c.Zh(n.Z.VIDEO_ELEMENT_TYPE,["video/mp4","video/quicktime","video/x-quicktime","video/x-ms-wmv","video/x-ms-asf","video/x-msvideo","video/mpeg"]),c.Zh(n.Z.THREE_D_ELEMENT_TYPE,["application/vnd.adobe.obj.3d+zip","model/gltf+json","model/gltf-binary"]),c.Zh(n.Z.MATERIAL_ELEMENT_TYPE,["application/vnd.adobe.sbsar+zip"]),c.Zh(n.Z.LIGHT_ELEMENT_TYPE,["image/vnd.radiance"]),i.Z.execApp("getTooltipState").then((function(e){n.Z.showTooltips=e})),this.startEventListener()},this.reportEvent=function(){},this.getUserData=function(e){i.Z.execApp("getUserData").then((function(t){if(!t||"undefined"===t)return e();e(JSON.parse(t))}))},this.config.hideAddControls=!0;const t=function(){var e,t=(e=C().mark((function e(t){var r,n;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return y("onFootageNeedsUpdate event.data.element.reference={0}",t.data.element.reference),e.next=3,o.ZP.resolveElementReference(t.data.element.reference);case 3:if(r=e.sent,n=!!t.data.element.addingElement,r){e.next=8;break}throw y("Cound not resolve element."),"Element not found";case 8:b(r,n);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){k(o,n,i,a,s,"next",e)}function s(e){k(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),r=e=>{const t=i.Z.createEvent("com.adobe.DesignLibraries.events.UploadCapsuleResponse","APPLICATION"),r={code:0},s=e.data,u=o.ZP.getLibraryById(s.libraryId);let d=0;if(c.xW(s.primaryPath)||(d=2),0!==d||c.xW(s.secondaryPath)||(d=3),0!==d||c.xW(s.thumbnailPath)||(d=4),0!==d||u||(d=5),0!==d||u.isWritable||(d=6),0===d){const e=(e,t)=>{const r=i.Z.createEvent("com.adobe.DesignLibraries.events.UploadCapsuleProgress","APPLICATION");r.data=JSON.stringify({current:e,total:t}),i.Z.dispatchEvent(r)},o=[];let d,p,h=3,f=0;s.videoPreviewPath&&c.xW(s.videoPreviewPath)&&h++,e(f,h);const m=(0,l.MN)(u,s.capsuleName,n.Z.CAPSULE_ELEMENT_TYPE,{});if(s.primaryPath){if(d=m.createRepresentation("application/vnd.adobe.ae.graphic+zip","primary"),s.metadata){const e=JSON.parse(s.metadata);d.setValue(n.Z.CAPSULE_NAMESPACE,n.Z.CAPSULE_DATA_KEY,e)}p=d.setContentFromPath(s.primaryPath).then((()=>{f+=1,e(f,h)})),o.push(p)}s.secondaryPath&&(d=m.createRepresentation("application/vnd.adobe.graphic+json","alternate"),p=d.setContentFromPath(s.secondaryPath).then((()=>{f+=1,e(f,h)})),o.push(p)),s.thumbnailPath&&(d=m.createRepresentation("image/png","rendition"),p=d.setContentFromPath(s.thumbnailPath).then((()=>{f+=1,e(f,h)})),o.push(p)),s.videoPreviewPath&&c.xW(s.videoPreviewPath)&&(d=m.createRepresentation("video/mp4","rendition"),p=d.setContentFromPath(s.videoPreviewPath).then((()=>{f+=1,e(f,h)})),o.push(p));const g=()=>{const e=[m.setThumbnailCache(n.Z.CAPSULE_THUMBNAIL_SIZE,s.thumbnailPath),m.endOperation()];Promise.all(e).then((()=>{s.primaryPath&&c._I(s.primaryPath),s.secondaryPath&&c._I(s.secondaryPath),s.thumbnailPath&&c._I(s.thumbnailPath)})),a.Z.revealElement(m),t.data=JSON.stringify(r),i.Z.dispatchEvent(t)},v=()=>{u.removeElement(m,!0),r.code=1,t.data=JSON.stringify(r),i.Z.dispatchEvent(t)};Promise.all(o).then(g,v)}else r.code=d,t.data=JSON.stringify(r),i.Z.dispatchEvent(t)};return this.startEventListener=function(){i.Z.addEventListener("com.adobe.csxs.events.ShouldUpdateFootage",t),i.Z.addEventListener("uploadCapsuleEvent",r)},this.stopEventListener=function(){i.Z.removeEventListener("com.adobe.csxs.events.ShouldUpdateFootage",t),i.Z.removeEventListener("uploadCapsuleEvent",r)},this}},1149:(e,t,r)=>{"use strict";function n(e){switch(e){case"private":case"outgoing":case"collaborated":return"owned";case"incoming":return"shared";default:return e}}r.d(t,{$2:()=>n}),r(31870),r(2169)},68051:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(76485),i=r(8733),o=r(46903),a=r(12894),s=r(13293);class c extends a.Z{_setStyleInfo(e,t,r){e.type="charstyle",e.name=t,e.id=r}_setFont(e,t,r){const i=1===r.index,a=r.index===r.length,c=this._config.findUsableRepresentation(e);if(!c)return;const l=(0,s.R)(e);l&&l.id?(0,o.vM)(c,t,null,{event:{value:"typekit"}}):(0,o.vM)(c,t);const u=e.name,d=e.id+";"+e.modified,p=this._getStyleData(e,!0);return this._setStyleInfo(p,u,d),n.Z.execApp(t,[p,i,a])}getApplyOperations(e,t,r){const n=i.Z.getLayerInfo();return n&&"LayerKind.TEXT"===n.kind?[{name:"DL_SET_FONT_TOOLTIP",icon:"text",onClick:!0,apply:()=>this._setFont(e,"setFont",r),displayInMenu:!0}]:[]}}},39360:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAppConfiguration:()=>y});var n=r(99386),i=r(47320),o=r(76485),a=r(75067),s=r(31870),c=r(74379),l=r(8733),u=r(34038),d=r(26964),p=r(77560),h=r(46903),f=r(16771);class m extends f.Z{_copyColorValue(e,t,r,i){r||(r=[],e.representations.forEach((e=>{const t=e.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY);"primary"===e.relationship?r.unshift(t):r.push(t)})),e.representations.length>0&&(0,h.vM)(e.representations[0],t)),i&&i(t);const a=c.Nh(r);if(!a)return;if("copyRGB"===t)return o.Z.execApp(t,[JSON.stringify(a.value)]);const s=c.m3(a),l=!(!event||1!==event.which);return o.Z.execApp(t,[s.toUpperCase(),l])}getApplyOperations(e){return[{name:"DL_COPY_HEX_COLOR_TOOLTIP",icon:"paintbucket",apply:(t,r)=>this._copyColorValue(e,"copyHex",t,r),displayInMenu:!0,onClick:!0},{name:"DL_COPY_RGB_COLOR_TOOLTIP",icon:"paintbucket",apply:(t,r)=>this._copyColorValue(e,"copyRGB",t,r),displayInMenu:!0}]}}var g=r(48124);class v extends g.Z{_addImageToDocument(e,t,r){const i=s.wq(e),a=this._config.findUsableRepresentation(e);return a?((0,h.vM)(a,"placeAsset",t),a.getContentPath().then((c=>{const l=u.i_(n.Z.IMAGE_ELEMENT_TYPE,a.type),d=l&&"PHXS"===l.app;return o.Z.execApp("placeAsset",[c,d,e.library.name,e.name,e.getLegacyReference(),(0,h.RW)(e),e.created,i||"",i?s.kv(e):null,t,r])}))):e.getThumbnailPath().then((function(n){return(0,h.dN)(e,"placeAsset",t),o.Z.execApp("placeAsset",[n,!1,e.library.name,e.name,e.getLegacyReference(),(0,h.RW)(e),e.created,i||"",i?s.kv(e):null,t,r])}))}getApplyOperations(e){return[{name:"DL_INSERT_IMAGE_TO_DOC_AS_LINKED",icon:"download",apply:()=>this._addImageToDocument(e,!0,!1),displayInMenu:n.Z.currentProduct.config.isDocumentOpen},{name:"DL_INSERT_IMAGE_TO_DOC_AS_COPY",icon:"download",apply:()=>this._addImageToDocument(e,!1,!1),displayInMenu:n.Z.currentProduct.config.isDocumentOpen},{name:"DL_DOWNLOAD_IMAGE_AS_LINKED",icon:"download",apply:()=>this._addImageToDocument(e,!0,!0),displayInMenu:!0},{name:"DL_DOWNLOAD_IMAGE_AS_COPY",icon:"download",apply:()=>this._addImageToDocument(e,!1,!0),displayInMenu:!0}]}isDisabled(e){return!this._config.findUsableRepresentation(e)&&!e.getCachedThumbnailPath()}}function y(){this.config={},this.config.code="DRWV",this.config.fullName="Dreamweaver",this.config.translationSuffix="DW",this.config.dragDropSource="com.adobe.dreamweaver",this.config.themes={323232:"darker",484848:"dark",cacaca:"light",f0f0f0:"lighter"},this.config.legacySpectrumEnabled=!0,this.config.defaultTheme="dark",this.config.isDocumentOpen=!1,this.config.isReadOnly=!0,this.config.elementTypes=[v,m,p.Z.ColorThemeElementConfig,p.Z.ComponentElementConfig,p.Z.TextStyleElementConfig,p.Z.FontElementConfig,p.Z.ParagraphStyleElementConfig,p.Z.VideoElementConfig,p.Z.LayerStyleElementConfig,p.Z.LookElementConfig,p.Z.CapsuleElementConfig,p.Z.BrushElementConfig,p.Z.ThreeDElementConfig,p.Z.PatternElementConfig,p.Z.TemplateElementConfig,p.Z.TextElementConfig,p.Z.AnimationElementConfig,p.Z.LightElementConfig,p.Z.MaterialElementConfig,p.Z.GradientElementConfig,p.Z.AudioElementConfig,p.Z.ChannelElementConfig,p.Z.ImageGuidelineElementConfig,p.Z.UnsupportedElementConfig],this.config.collapsedTypes=[n.Z.CHARACTER_STYLE_ELEMENT_TYPE,n.Z.FONT_ELEMENT_TYPE,n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,n.Z.VIDEO_ELEMENT_TYPE,n.Z.LAYER_STYLE_ELEMENT_TYPE,n.Z.LOOK_ELEMENT_TYPE,n.Z.CAPSULE_ELEMENT_TYPE,n.Z.BRUSH_ELEMENT_TYPE,n.Z.THREE_D_ELEMENT_TYPE,n.Z.PATTERN_ELEMENT_TYPE,n.Z.TEMPLATE_ELEMENT_TYPE,n.Z.TEXT_ELEMENT_TYPE,n.Z.ANIMATION_ELEMENT_TYPE,n.Z.LIGHT_ELEMENT_TYPE,n.Z.MATERIAL_ELEMENT_TYPE,n.Z.GRADIENT_ELEMENT_TYPE,n.Z.AUDIO_ELEMENT_TYPE,n.Z.CHANNEL_ELEMENT_TYPE,n.Z.IMAGE_GUIDELINE_ELEMENT_TYPE,n.Z.UNSUPPORTED_ELEMENT_TYPE];let e={},t=!1;const r=()=>{t||(t=!0,setTimeout((function(){t=!1,(()=>{const t=[];function r(t){u.colors=t.colors;const r=[];let n;if(t.images){for(let e=t.images.length-1;e>=0;--e)t.images[e].thumbnailError?t.images.splice(e,1):(n={},n.path=t.images[e].thumbnail,r.push(n));r.reverse,u.images=t.images}e.thumbnails=r,e.currentLibraryItemList=u,o.Z.execApp("setLibraryCollection",[JSON.stringify(e)])}function l(){const t=e.libraries[0];t&&t.images.every((e=>""!==e.thumbnail||e.thumbnailError))&&r(t)}a.ZP.libraries.forEach((function(e){e.isDeletedFromServer||t.push({name:e.name,id:e.id})})),t.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0})),e={},e.libraryNames=t,e.libraries=[];const u={},p=a.ZP.currentLibrary;p&&(e.currentLibrary=t.findIndex((e=>e.id===p.id)),function(t){const r={};r.name=t.name,r.id=t.id,r.images=[],r.colors=[];const o=t.elements,a=o.length;let u,p,h,f=0;for(let e=0;e<a&&f<3e3;e++){const t={};if(h=o[e],h.type===n.Z.IMAGE_ELEMENT_TYPE){f++;const e=h.getPrimaryRepresentation();t.elementRef=h.getLegacyReference(),t.primaryType=e?e.type:"",t.elementName=h.name,t.adobeStockID=s.wq(h)||"",t.isUnlicensedStockAsset=!!t.adobeStockID&&!s.kv(h);const n=i.Z.getThumbnailSize(h);t.thumbnail=h.getCachedThumbnailPath(n),t.thumbnail||(t.thumbnail="",h.getThumbnailPath(n).then((e=>t.thumbnail=e),(e=>{d.Z.log(e),t.thumbnailError=!0})).then(l)),r.images.push(t)}else if(h.type===n.Z.COLOR_ELEMENT_TYPE){f++;for(let e=0;e<h.representations.length;e++)if(c.lP(h)){const t={};u=h.representations[e].getValue("color","data"),p=c.m3(u),t.hexValue=p,t.source="color",t.colorAliasName=h.name&&""!==h.name?h.name:p,r.colors.push(t)}}else if(h.type===n.Z.COLOR_THEME_ELEMENT_TYPE&&h.getPrimaryRepresentation().getValue("colortheme","data")){const e=h.getPrimaryRepresentation().getValue("colortheme","data").swatches;f++;for(let t=0;t<e.length;t++)for(let n=0;n<e[t].length;n++)if(c.Nh(e[t])){const i={};u=e[t][n],p=c.m3(u),i.hexValue=p,i.source="colorTheme",r.colors.push(i)}}}e.libraries.push(r)}(p),e.libraries.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0})),r(e.libraries[0]))})()}),100))};this.init=function(){u.Zh(n.Z.IMAGE_ELEMENT_TYPE,["image/png","image/jpeg","image/jpg","image/gif","image/bmp","image/svg+xml"]),u.Zh(n.Z.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),u.Zh(n.Z.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),u.Zh(n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,[]),u.Zh(n.Z.CHARACTER_STYLE_ELEMENT_TYPE,[]),u.Zh(n.Z.LAYER_STYLE_ELEMENT_TYPE,[]),u.Zh(n.Z.BRUSH_ELEMENT_TYPE,[]),u.Zh(n.Z.LOOK_ELEMENT_TYPE,[]),u.Zh(n.Z.COMPONENT_ELEMENT_TYPE,["image/svg+xml","image/png"]),o.Z.execApp("getTooltipState").then((function(e){n.Z.showTooltips=e})),this.startEventListener(),a.ZP.addListener("libraryList",(function(){r()})),a.ZP.addListener("currentLibrary",(function(){r()})),a.ZP.addListener("libraryStatus",(function(){r()}))},this.reportEvent=function(e,t){const r=o.Z.createEvent("com.adobe.DesignLibraries.events.LOGPIP","APPLICATION"),n=function(e){return e||"N/A"},i={eventName:n(e),libraryID:n(t.libraryID),elementType:n(t.elementType),opType:n(t.opType)};r.data=JSON.stringify(i),o.Z.dispatchEvent(r)},this.getUserData=function(e){o.Z.execApp("getUserData").then((function(t){if(!t||"undefined"===t)return e();e(JSON.parse(t))}))};const h=()=>{l.Z.handleSelectionChange()};this.config.hideAddControls=!0;const f=()=>{},g=e=>{"open"===e.data.documentStatus?n.Z.currentProduct.config.isDocumentOpen=!0:n.Z.currentProduct.config.isDocumentOpen=!1};return this.startEventListener=function(){o.Z.addEventListener("selectionChanged",h),o.Z.addEventListener("addAssetToLibrary",f),o.Z.addEventListener("requestContextRebuild",r),o.Z.addEventListener("documentChanged",g)},this.stopEventListener=function(){o.Z.removeEventListener("selectionChanged",h),o.Z.removeEventListener("addAssetToLibrary",f),o.Z.removeEventListener("requestContextRebuild",r),o.Z.removeEventListener("documentChanged",g)},this}},91828:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAppConfiguration:()=>H});var n=r(99386),i=r(75067),o=r(76485),a=r(34038),s=r(26964),c=r(8733),l=r(53849),u=r(46903),d=r(47320),p=r(15909),h=r(9494),f=r(84824),m=r(92098),g=r(80804);function v(e){const t=d.Z.findUsableRepresentation(e,a.PX(n.Z.ANIMATION_ELEMENT_TYPE)),r="documentLock_"+e.id,s=e.library&&e.library.name;if(!t)return!1;let c,v,y=!1,b=!1;m.Z.getTempFile(t).then((e=>(c=e,v=a.K3(c)+".png",o.Z.execApp("openAssetForEdit",[e,v])))).then((t=>{const d=g.Z.startListening(t,c,(t=>{switch(t){case"closed":h.Z.obtainLock(r,(()=>{g.Z.stopListening(d),y=!0,b||m.Z.deleteTempFile(c),p.Z.elementEditCompleted(e),h.Z.releaseLock(r)}));break;case"saved":{if(!(0,u.ii)(c))return;let t=e.library;const d=!t||t.isDeletedLocally;let g;if(d||!t.isWritable){if(t=i.ZP.getRecoveryLibrary(s),!t)return;g=!0}const _=[];h.Z.obtainLock(r,(()=>{b=!0,e.isDeletedLocally||g?e=t.createElement(e.name,e.type):(e.beginOperation(),e.removeAllRepresentations());const i=a.pH(c,e.type),E=e.createRepresentation(i,"primary");_.push(E.setContentFromPath(c)),v&&a.xW(v)&&_.push((0,u.bf)(e,n.Z.IMAGE_THUMBNAIL_SIZE,v));const w=e.endOperation(),x=()=>{p.Z.sendElementUpdated(E),h.Z.releaseLock(r),g&&(l.Z.revealElement(e),d?o.Z.showError((0,f.Iu)("DL_WARNING_RECOVERED_FROM_DELETED",{recoveryLibraryName:t.name})):o.Z.showError((0,f.Iu)("DL_WARNING_RECOVERED_FROM_READONLY",{recoveryLibraryName:t.name,originalLibraryName:s}))),w.then((()=>{y?m.Z.deleteTempFile(c):m.Z.updateTempFile(E,c),b=!1}))};Promise.all(_).then(x,x)}));break}}}))}))}function y(){y=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function b(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function _(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){b(o,n,i,a,s,"next",e)}function s(e){b(o,n,i,a,s,"throw",e)}a(void 0)}))}}const E=(e,t)=>{if(e){const r=e.element,n=r.getLegacyReference();e.getContentPath().then((function(e){const i=o.Z.createEvent("com.adobe.DesignLibraries.events.attachRenditionCompleted","APPLICATION");i.data=JSON.stringify({requestRef:t,elementRef:n,name:r.name,libraryName:r.library.name,modifiedTime:(0,u.RW)(r),creationTime:r.created,data:[e]}),o.Z.dispatchEvent(i)}))}},w=(e,t,r)=>{const n=t&&t.files||[];for(let t=0;t<n.length;t++){const i=n[t];if(a.xW(i.path)){const t=a.pH(i.path,r.type),n=r.createRepresentation(t,i.relationship).setContentFromPath(i.path);e.push(n)}}},x=e=>{for(let t=0;t<e.length;t++)a._I(e[t].path)},L=(e,t,r)=>{if(!e)throw"No current library";if(!t||!t.files||!r)throw"event data invalid"};function O(e){return S.apply(this,arguments)}function S(){return(S=_(y().mark((function e(t){var r,o,s,c,d,p;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.data.fileData,o=t.data.elementType,s=t.data.elementRef,e.prev=3,s){e.next=6;break}throw"elementRef missing";case 6:return e.next=8,i.ZP.resolveElementReference(s);case 8:if(c=e.sent){e.next=11;break}throw"Element not found";case 11:if(l.Z.revealElement(c),d=c.library,(0,u.oY)(d)){e.next=15;break}return e.abrupt("return");case 15:return L(d,r,o),c.isDeletedLocally?c=d.createElement(c.name,c.type):(c.beginOperation(),c.removeAllRepresentations()),w(p=[],r,c),e.abrupt("return",Promise.all(p).then((function(){const e=[];return r.rendition&&e.push(c.setThumbnailCache(n.Z.IMAGE_THUMBNAIL_SIZE,r.rendition)),e.push(c.endOperation),Promise.all(e).then((()=>{r.rendition&&a._I(r.rendition.path),x(r.files)})),E(c.getPrimaryRepresentation(),t.data.requestRef),c}),(()=>Promise.reject("Could not update element"))));case 22:return e.prev=22,e.t0=e.catch(3),e.abrupt("return",Promise.reject("Could not update element: "+e.t0));case 25:case"end":return e.stop()}}),e,null,[[3,22]])})))).apply(this,arguments)}const T="application/vnd.adobe.animate-xfl+zip",P="application/vnd.adobe.animate-sym+zip";function I(e){return A.apply(this,arguments)}function A(){return(A=_(y().mark((function e(t){var r,n,o,a,s;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.data.elementRef){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,i.ZP.resolveElementReference(r);case 5:if(n=e.sent){e.next=8;break}return e.abrupt("return");case 8:if(o=n.library,(0,u.oY)(o)){e.next=11;break}return e.abrupt("return");case 11:if(a=n.getPrimaryRepresentation(),s=a&&a.type===P,!(a&&a.type===T||s)){e.next=16;break}return e.abrupt("return",v(n));case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const C=()=>{c.Z.handleSelectionChange()};var k=r(77560),D=r(74149),N=r(71923);class R extends N.Z{_addAnimationToDocument(e,t){const r=this._config.findUsableRepresentation(e);return r?((0,u.vM)(r,"placeAsset"),r.getContentPath().then((r=>o.Z.execApp("placeAsset",[r,e.library.name,e.name,e.getLegacyReference(),(0,u.RW)(e),e.created,t,JSON.stringify(e.getValues())])))):e.getThumbnailPath().then((r=>((0,u.dN)(e,"placeAsset"),o.Z.execApp("placeAsset",[r,e.library.name,e.name,e.getLegacyReference(),(0,u.RW)(e),e.created,t]))))}getApplyOperations(e){if(!c.Z.getLayerInfo())return[];const t=e.getPrimaryRepresentation();return t&&"application/vnd.adobe.animate-sym+zip"===t.type?[{name:"DL_ADD_ANIMATION_TO_DOC_AS_LINKED",icon:"download",allowMultiple:!0,apply:()=>this._addAnimationToDocument(e,!0),displayInMenu:!0},{name:"DL_ADD_ANIMATION_TO_DOC_AS_COPY",icon:"download",allowMultiple:!0,apply:()=>this._addAnimationToDocument(e,!1),displayInMenu:!0}]:t&&"application/vnd.adobe.animate-xfl+zip"===t.type?[{name:"DL_OPEN_IN_NEW_DOCUMENT",icon:"download",allowMultiple:!0,apply:()=>this._addAnimationToDocument(e,!1),displayInMenu:!0}]:[]}_addDocContent(e,t){return this._confirmAddOperation().then((()=>o.Z.execApp("uploadCurrentDoc",[]))).then((r=>{const n=JSON.parse(r),i={documentId:n.documentId,layerIds:n.layerIds,dragAssetId:""};return(0,D.Cf)(n.layerName,n.files,n.rendition,e,t,i,n.elementData)}),(()=>Promise.reject("Could not extract asset.")))}_addAsset(e,t,r=""){return(0,u.g0)(r).then((n=>{const i=n.map((n=>{const i={documentId:n.documentId,layerIds:n.layerIds,dragAssetId:r};return(0,D.Cf)(n.layerName,n.files,n.rendition,e,t,i,n.elementData)}));return Promise.all(i).catch((()=>Promise.reject("Could not upload files")))}),(()=>Promise.reject("Could not extract asset.")))}_confirmAddOperation(){return o.Z.execApp("saveCurrentDoc",[]).then((e=>{if("true"!==e.toLowerCase())return Promise.reject("Did not save document")}))}getAddOperations(e){if(!e)return[];const t=[];return e.enableDocumentUpload&&t.push({name:"DL_ADD_ENTIRE_ANIMATION_TO_LIBRARY",order:1,icon:"AddAnimation",apply:(e,t)=>this._addDocContent(e,t)}),e.enableAnimationUpload&&t.push({name:"DL_ADD_SYMBOL_TO_LIBRARY",order:2,icon:"AddAnimation",dropSupport:!0,apply:(e,t,r)=>this._addAsset(e,t,r)}),t}defaultEditOperation(e){return v(e)}getDragData(e){let t,r=this._config.findUsableRepresentation(e);if(r)t=r.getCachedContentPath();else if(e){const n=e.getCachedThumbnailPath();n&&(t=n,r={type:"image/png",element:e})}if(t)return{data:[t],usedRepresentationForAnalytics:r,metaData:e.getValue("FLPR","assetInfo")}}}var M=r(74379),j=r(16771);class F extends j.Z{_setColor(e,t,r){t||(t=[],e.representations.forEach((e=>{const r=e.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY);"primary"===e.relationship?t.unshift(r):t.push(r)})),e.representations.length>0&&(0,u.vM)(e.representations[0],"setColor"));const i=M.Nh(t);if(!i)return;r&&r("setColor");const a=M.m3(i);return o.Z.execApp("setColor",[a.toUpperCase()])}getApplyOperations(e){const t=c.Z.getLayerInfo();return!t||t&&!t.selectionExists?[]:[{name:"DL_SET_COLOR_TOOLTIP",icon:"paintbucket",apply:(t,r)=>this._setColor(e,t,r),displayInMenu:!0,onClick:!0}]}}var Z=r(76572);class B extends Z.Z{_addBrushToDocument(e,t){return(0,u.vM)(t,"useBrush"),t.getContentPath().then((t=>o.Z.execApp("loadAndSelectBrush",[e.library.name,e.name,t])))}getApplyOperations(e){const t=a.ku(e.type),r=e.representations.find((e=>{const r="rendition"===e.relationship,n=this._config.isRepresentationCompatible(e,t);return!r&&n}));return c.Z.getLayerInfo()&&r?[{name:"DL_ADD_BRUSH_TO_DOC",icon:"brush",onClick:!0,allowMultiple:!0,apply:()=>this._addBrushToDocument(e,r),displayInMenu:!0}]:[]}_addBrush(e,t){return o.Z.execApp("uploadBrushes",[e.name]).then((r=>{const n=JSON.parse(r).files.map((r=>(0,D.D5)(r.name,r.primary,r.rendition,e,t)));return Promise.all(n).then((e=>(e[0]&&l.Z.revealElement(e[0]),e)),(()=>Promise.reject("Could not upload some brushes.")))}),(()=>Promise.reject("Could not extract brushes.")))}getAddOperations(e){return e&&e.enableBrushUpload?[{name:"DL_ADD_BRUSH_TO_LIBRARY",order:3,iconToolTip:"DL_ADD_BRUSH_TO_LIBRARY_ICON_TOOLTIP",icon:"AddBrush",apply:(e,t)=>this._addBrush(e,t)}]:[]}}var G=r(48124);class U extends G.Z{_addImageToDocument(e,t=!1){const r=this._config.findUsableRepresentation(e);return r?((0,u.vM)(r,"placeAsset"),r.getContentPath().then((r=>o.Z.execApp("placeAsset",[r,e.library.name,e.name,e.getLegacyReference(),(0,u.RW)(e),e.created,t])))):e.getThumbnailPath().then((r=>((0,u.dN)(e,"placeAsset"),o.Z.execApp("placeAsset",[r,e.library.name,e.name,e.getLegacyReference(),(0,u.RW)(e),e.created,t]))))}getApplyOperations(e){return c.Z.getLayerInfo()?[{name:"DL_ADD_IMAGE_TO_DOC",icon:"download",allowMultiple:!0,apply:()=>this._addImageToDocument(e),displayInMenu:!0}]:[]}getAddOperations(){return[]}isDisabled(e){return!this._config.findUsableRepresentation(e)&&!e.getCachedThumbnailPath()}}function H(){return this.config={},this.config.code="FLPR",this.config.fullName="FlashPro",this.config.translationSuffix="FP",this.config.dragDropSource="com.adobe.flashpro",this.config.themes={444444:"dark",dbdbdb:"lighter"},this.config.elementTypes=[F,k.Z.ColorThemeElementConfig,B,R,U,k.Z.ComponentElementConfig,k.Z.VideoElementConfig,k.Z.TextStyleElementConfig,k.Z.FontElementConfig,k.Z.ParagraphStyleElementConfig,k.Z.LayerStyleElementConfig,k.Z.LookElementConfig,k.Z.CapsuleElementConfig,k.Z.ThreeDElementConfig,k.Z.PatternElementConfig,k.Z.TemplateElementConfig,k.Z.LightElementConfig,k.Z.MaterialElementConfig,k.Z.TextElementConfig,k.Z.GradientElementConfig,k.Z.AudioElementConfig,k.Z.ChannelElementConfig,k.Z.ImageGuidelineElementConfig,k.Z.UnsupportedElementConfig],this.config.collapsedTypes=[n.Z.VIDEO_ELEMENT_TYPE,n.Z.CHARACTER_STYLE_ELEMENT_TYPE,n.Z.FONT_ELEMENT_TYPE,n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,n.Z.LAYER_STYLE_ELEMENT_TYPE,n.Z.LOOK_ELEMENT_TYPE,n.Z.CAPSULE_ELEMENT_TYPE,n.Z.THREE_D_ELEMENT_TYPE,n.Z.PATTERN_ELEMENT_TYPE,n.Z.TEMPLATE_ELEMENT_TYPE,n.Z.LIGHT_ELEMENT_TYPE,n.Z.MATERIAL_ELEMENT_TYPE,n.Z.TEXT_ELEMENT_TYPE,n.Z.GRADIENT_ELEMENT_TYPE,n.Z.AUDIO_ELEMENT_TYPE,n.Z.CHANNEL_ELEMENT_TYPE,n.Z.IMAGE_GUIDELINE_ELEMENT_TYPE,n.Z.UNSUPPORTED_ELEMENT_TYPE],this.startEventListener=function(){o.Z.addEventListener("com.adobe.events.flash.documentChanged",C),o.Z.addEventListener("com.adobe.events.flash.attachRendition",O),o.Z.addEventListener("com.adobe.events.flash.editElement",I)},this.stopEventListener=function(){o.Z.removeEventListener("com.adobe.events.flash.documentChanged",C),o.Z.removeEventListener("com.adobe.events.flash.attachRendition",O),o.Z.removeEventListener("com.adobe.events.flash.editElement",I)},this.addOperationInstantiated=function(){o.Z.addEventListener("com.adobe.events.flash.selectionChanged",C),C()},this.addOperationComplete=function(){o.Z.removeEventListener("com.adobe.events.flash.selectionChanged",C)},this.init=function(){a.Zh(n.Z.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),a.Zh(n.Z.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),a.Zh(n.Z.BRUSH_ELEMENT_TYPE,["application/vnd.adobe.vector.brush+zip"]),a.Zh(n.Z.IMAGE_ELEMENT_TYPE,["image/svg+xml","image/png","image/jpeg","image/jpg","image/gif","image/bmp","application/photoshop","image/vnd.adobe.photoshop","application/photoshop.large","application/illustrator"]),a.Zh(n.Z.VIDEO_ELEMENT_TYPE,[]),a.Zh(n.Z.CHARACTER_STYLE_ELEMENT_TYPE,[]),a.Zh(n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,[]),a.Zh(n.Z.LAYER_STYLE_ELEMENT_TYPE,[]),a.Zh(n.Z.LOOK_ELEMENT_TYPE,[]),a.Zh(n.Z.THREE_D_ELEMENT_TYPE,[]),a.Dk(n.Z.ANIMATION_ELEMENT_TYPE,["application/vnd.adobe.animate-xfl+zip","application/vnd.adobe.animate-sym+zip"]),a.Zh(n.Z.COMPONENT_ELEMENT_TYPE,["image/svg+xml","image/png"]),o.Z.execApp("getTooltipState").then((function(e){n.Z.showTooltips=e})),this.startEventListener(),i.ZP.waitForInitialLoad().then((function(){const e=o.Z.createEvent("com.adobe.events.flash.extensionLoaded","APPLICATION");e.data="",e.extensionId="com.adobe.DesignLibraries.angular",o.Z.dispatchEvent(e)}))},this.reportEvent=function(e,t){o.Z.execApp("reportEvent",[e,t]).then((function(t){JSON.parse(t)&&s.Z.log(e+" metric reported to FL")}))},this.getUserData=function(e){o.Z.execApp("getUserData").then((function(t){if(!t||"undefined"===t)return e();e(JSON.parse(t))}))},this}},13594:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAppConfiguration:()=>Q});var n=r(99386),i=r(47320),o=r(75067),a=r(76485),s=r(31870),c=r(8733),l=r(84074),u=r(26964),d=r(34038),p=r(16993),h=r(46903),f=r(84824),m=r(57613);const g={};function v(e,t,r,i){const o=g[e.type];if(r.index===r.length){const e="addElement",t={opType:o.ANALYTICS_OP_TYPE,elementType:o.ANALYTICS_ELEMENT_TYPE,numElements:r.length};n.Z.currentProduct.reportEvent(e,t)}const c=s.wq(e),l=r.length>1;return t?((0,h.vM)(t,"placeAsset",i),t.getContentPath().then((t=>a.Z.execApp("placeAsset",[t||"",e.library.name,e.name,e.getLegacyReference(),(0,h.RW)(e),e.created,c,c?s.kv(e):null,i,l])))):e.getThumbnailPath().then((t=>((0,h.dN)(e,"placeAsset",i),a.Z.execApp("placeAsset",[t,e.library.name,e.name,e.getLegacyReference(),(0,h.RW)(e),e.created,c,c?s.kv(e):null,i,l]))))}function y(e,t,r){const o=c.Z.getLayerInfo();if(!o||!0===o.noDocState)return[];const a=g[e.type],s=i.Z.findUsableRepresentation(e);if(!s&&!a.ALLOW_PNG_FALLBACK)return[];const l=s&&"application/vnd.adobe.indesign-idms"===s.type;return n.Z.IS_APP_IN_TOUCH_MODE?[{name:"DL_ADD_IMAGE_TO_DOC_AS_LINKED",icon:"download",allowMultiple:!1,apply:()=>v(e,s,r,!0),displayInMenu:!0,onClick:!0}]:[{name:"DL_ADD_IMAGE_TO_DOC_AS_LINKED",icon:"download",allowMultiple:!0,apply:()=>v(e,s,r,!0),displayInMenu:!l},{name:"DL_ADD_IMAGE_TO_DOC_AS_COPY",icon:"download",allowMultiple:!0,apply:()=>v(e,s,r,!1),displayInMenu:!0}]}g[n.Z.IMAGE_ELEMENT_TYPE]={ANALYTICS_OP_TYPE:"addImageToDocument",ANALYTICS_ELEMENT_TYPE:"image",ALLOW_PNG_FALLBACK:!0},g[n.Z.COMPONENT_ELEMENT_TYPE]={ANALYTICS_OP_TYPE:"addComponentToDocument",ANALYTICS_ELEMENT_TYPE:"component",ALLOW_PNG_FALLBACK:!0},g[n.Z.ANIMATION_ELEMENT_TYPE]={ANALYTICS_OP_TYPE:"addAnimationToDocument",ANALYTICS_ELEMENT_TYPE:"animation",ALLOW_PNG_FALLBACK:!1};var b=r(71923);class _ extends b.Z{getApplyOperations(e,t,r){return y(e,0,r)}defaultEditOperation(){return!1}}var E=r(16771);class w extends E.Z{_setColor(e,t,r,i,o){const s=1===r.index,c=r.index===r.length;return i||(i=[],e.representations.forEach((t=>{const r=t.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY);void 0!==e.name&&(r.name=e.name),"primary"===t.relationship?i.unshift(r):i.push(r)})),e.representations.length>0&&((0,h.vM)(e.representations[0],t),"addColor"===t&&!0===c&&n.Z.currentProduct.reportEvent("addElement",{opType:"addColor",elementType:"color",numElements:r.length}))),o&&o(t),a.Z.execApp(t,[i,s,c])}getApplyOperations(e,t,r){const n=c.Z.getLayerInfo();return n&&(n.selectionExists||n.textSelectionExists||n.insertionPointExists)?[{name:"DL_SET_COLOR_TOOLTIP",icon:"paintbucket",apply:(t,n)=>this._setColor(e,"setColor",r,t,n),displayInMenu:!0,onClick:!0},{name:"DL_ID_ADD_COLORS_TOOLTIP",icon:"paintbucket",allowMultiple:!0,apply:(t,n)=>this._setColor(e,"addColor",r,t,n),displayInMenu:r.length>1}]:[{name:"DL_ID_ADD_COLORS_TOOLTIP",icon:"paintbucket",allowMultiple:!0,apply:(t,n)=>this._setColor(e,"addColor",r,t,n),displayInMenu:!0}]}defaultEditOperation(e){if(n.Z.IS_APP_IN_TOUCH_MODE)return;const t=this._config.findUsableRepresentation(e),r=t&&t.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY);return a.Z.execApp("replaceColor",[r]).then((t=>{if(t.length&&JSON.parse(t))return a.Z.execApp("getLayerColor",[]).then((t=>{const r=JSON.parse(t);e.beginOperation(),e.removeAllRepresentations(),r.forEach(((t,r)=>{const i=0===r?"primary":"rendition";e.createRepresentation(n.Z.COLOR_REPRESENTATION_TYPE,i).setValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY,t)})),e.endOperation()}))}))}}var x=r(38122);class L extends x.Z{_createColorGroup(e,t){const r=1===t.index,i=t.index===t.length,o=this._config.findUsableRepresentation(e),s=o.getValue("colortheme","data");return s.name=e.name,(0,h.vM)(o,"createColorGroup"),i&&n.Z.currentProduct.reportEvent("addElement",{opType:"createColorGroup",elementType:"colortheme",numElements:t.length}),a.Z.execApp("createColorGroup",[s,r,i])}getApplyOperations(e,t,r){const n=super.getApplyOperations(e,t,r);return n.push({name:"DL_ID_ADD_COLORTHEME_TOOLTIP",icon:"paintbucket",apply:()=>this._createColorGroup(e,r),displayInMenu:!0,allowMultiple:!0}),n}}var O=r(77560),S=r(68051),T=r(53849),P=r(15909),I=r(9494),A=r(48124),C=r(92098),k=r(80804);class D extends A.Z{getApplyOperations(e,t,r){return y(e,0,r)}_getLockId(e){return"documentLock_"+e.id}_onDocumentClose(e,t){const r=this._getLockId(e);I.Z.obtainLock(r,(()=>{k.Z.stopListening(t.listenerId),t.isClosed=!0,!1===t.isSaveInProgress&&(C.Z.deleteTempFile(t.tempPath),d._I(t.docPath)),P.Z.elementEditCompleted(e),I.Z.releaseLock(r)}))}_onDocumentSave(e,t){if(!(0,h.ii)(t.tempPath))return;t.isSaveInProgress=!0;const r=d.K3(t.tempPath)+".pdf",i=d.K3(t.tempPath)+".png";if(!d.xW(t.tempPath)||!d.xW(r))return void(t.isSaveInProgress=!1);let c=e.library;const l=c.name,u=!c||c.isDeletedLocally;let p=!1;if(u||!c.isWritable){if(c=o.ZP.getRecoveryLibrary(c.name),!c)return;p=!0}const m=this._getLockId(e);I.Z.obtainLock(m,(()=>{const o=s.si(e);e.isDeletedLocally||p?e=c.createElement(e.name,e.type):(e.beginOperation(),e.removeAllRepresentations());const g=[],v=d.pH(t.tempPath,e.type),y=e.createRepresentation(v,"primary");o&&s.i2(y,o),g.push(y.setContentFromPath(t.tempPath));const b=d.pH(r,e.type),_=e.createRepresentation(b,"rendition");g.push(_.setContentFromPath(r)),i&&d.xW(i)&&g.push((0,h.bf)(e,n.Z.IMAGE_THUMBNAIL_SIZE,i));const E=()=>{P.Z.sendElementUpdated(y);const r=e.endOperation();I.Z.releaseLock(m),p&&(T.Z.revealElement(e),u?a.Z.showError((0,f.Iu)("DL_WARNING_RECOVERED_FROM_DELETED",{recoveryLibraryName:c.name})):a.Z.showError((0,f.Iu)("DL_WARNING_RECOVERED_FROM_READONLY",{recoveryLibraryName:c.name,originalLibraryName:l}))),r.then((()=>{t.isClosed?C.Z.deleteTempFile(t.tempPath):C.Z.updateTempFile(y,t.tempPath),t.isSaveInProgress=!1}))};Promise.all(g).then(E,E)}))}defaultEditOperation(e){if(!0===n.Z.IS_APP_IN_TOUCH_MODE)return;if(!this._config.isEditable(e))return!1;const t=e.getPrimaryRepresentation();C.Z.getTempFile(t).then((t=>a.Z.execApp("openAssetForEdit",[t,"image",e.getLegacyReference()]).then((r=>{const n=d.K3(t),i={docPath:n,tempPath:t,isClosed:!1,isSaveInProgress:!1};i.listenerId=k.Z.startListening(r,n,(t=>{"closed"===t?this._onDocumentClose(e,i):"saved"===t&&this._onDocumentSave(e,i)}))}))))}isDisabled(e){return!this._config.findUsableRepresentation(e)&&!e.getCachedThumbnailPath()}}var N=r(74244);const R="application/vnd.adobe.paragraphstyle+json",M="paragraphstyle",j="data";class F extends N.Z{constructor(...e){super(...e),this._setStyleInfo=function(e,t,r){e.type="parastyle",e.name=t,e.id=r}}_useParaStyle(e,t,r){const n=1===r.index,i=r.index===r.length,o=this._config.findUsableRepresentation(e);if(!o)return;(0,h.vM)(o,t);const s=e.name,c=e.id+";"+e.modified;let l,u;return o.type===R?(u=o.getValue(M,j),this._setStyleInfo(u,s,c),l=a.Z.execApp(t,[u,n,i])):"application/vnd.adobe.paragraphstyle+snippet"===o.type&&(l=o.getContentPath().then((r=>{u={},this._setStyleInfo(u,s,c),u.idmsPath=r;const o=this._config.findUsableRepresentation(e,R).getValue(M,j);return u.adbeFont=o.adbeFont,u.fontFamily=o.fontFamily,a.Z.execApp(t,[u,n,i])}))),l}_setParaStyle(e,t){return this._useParaStyle(e,"setFont",t)}_addTextStyle(e,t){return t.index===t.length&&n.Z.currentProduct.reportEvent("addElement",{opType:"addTextStyle",elementType:"paragraphstyle",numElements:t.length}),this._useParaStyle(e,"addTextStyle",t)}getApplyOperations(e,t,r){const n=c.Z.getLayerInfo();if(!n)return[];const i=[];return n&&"LayerKind.TEXT"===n.kind&&i.push({name:"DL_SET_PARA_STYLE_TOOLTIP",icon:"text",onClick:!0,apply:()=>this._setParaStyle(e,r),displayInMenu:!0}),i.push({name:"DL_ADD_AS_PARA_STYLE_TOOLTIP",icon:"pastetext",allowMultiple:!0,apply:()=>this._addTextStyle(e,r),displayInMenu:!0}),i}}var Z=r(54712);class B extends Z.Z{_openDocumentFromTemplate(e,t,r){return r?a.Z.showError((0,f.Iu)(s.hr(e))):((0,h.vM)(t,"useTemplate"),t.getContentPath().then((t=>a.Z.execApp("openDocumentFromTemplate",[t,e.name]))))}getApplyOperations(e){const t=d.ku(e.type),r=e.representations.find((e=>{const r="rendition"===e.relationship,n=this._config.isRepresentationCompatible(e,t);return!r&&n})),n=!r&&this._config.isRepresentationCompatible(e.getPrimaryRepresentation(),t,!0);return r||n?[{name:"DL_OPEN_DOC_FROM_TEMPLATE",icon:"template",onDoubleClick:!0,apply:()=>this._openDocumentFromTemplate(e,r,n),displayInMenu:!0}]:[]}}var G=r(91696);class U extends G.Z{_useText(e,t,r,i,o){const s=1===t.index,c=t.index===t.length,l=this._config.findUsableRepresentation(e);if(!l)return;o?(0,h.vM)(l,"InlineText"):r&&i?(0,h.vM)(l,"LinkedTextWithStyles"):i?(0,h.vM)(l,"TextWithStyles"):(0,h.vM)(l,"TextWithoutStyles");const u=e.id+";"+e.modified;if(l.type===n.Z.TEXT_REPRESENTATION_JSON_TYPE){const t=l.getValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY);return t.id=u,t.type="text",a.Z.execApp("placeText",[t,e.getLegacyReference(),r,i,o,s,c])}return l.type===n.Z.TEXT_REPRESENTATION_ID_SNIPPET_TYPE?l.getContentPath().then((t=>{const l={id:u,type:"text",idmsPath:t,fonts:[]},d=this._config.findUsableRepresentation(e,n.Z.TEXT_REPRESENTATION_JSON_TYPE).getValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY).styles;return Object.keys(d).map((e=>d[e])).forEach((e=>{e.value.adbeFont&&l.fonts.push({adbeFont:e.value.adbeFont,fontFamily:e.value.fontFamily})})),a.Z.execApp("placeText",[l,e.getLegacyReference(),r,i,o,s,c])})):void 0}_setText(e,t){return this._useText(e,t,!0,!0,!1)}_setTextUnLinked(e,t){return this._useText(e,t,!1,!0,!1)}_setPlainText(e,t){return this._useText(e,t,!1,!1,!1)}_setTextInline(e,t){return this._useText(e,t,!1,!0,!0)}getApplyOperations(e,t,r){const n=c.Z.getLayerInfo();return n?!0===n.canBringTextInline?[{name:"DL_ADD_TEXT_INLINE_ID",icon:"text",onClick:!1,apply:()=>this._setTextInline(e,r),displayInMenu:!0}]:n.noDocState?[]:[{name:"DL_ADD_TEXT_LINKED_ID",icon:"text",onClick:!1,apply:()=>this._setText(e,r),displayInMenu:!0,allowMultiple:!0},{name:a.Z.isWindowsOS()?"DL_ADD_TEXT_UNLINKED_ID_WIN":"DL_ADD_TEXT_UNLINKED_ID_MAC",icon:"text",onClick:!1,apply:()=>this._setTextUnLinked(e,r),displayInMenu:!0,allowMultiple:!0},{name:"DL_ADD_TEXT_UNLINKED_NOSTYLES",icon:"text",onClick:!1,apply:()=>this._setPlainText(e,r),displayInMenu:!0,allowMultiple:!0}]:[]}_getLockId(e){return"documentLock_"+e.id}_onDocumentClose(e,t){const r=this._getLockId(e);I.Z.obtainLock(r,(()=>{k.Z.stopListening(t.listenerId),t.isClosed=!0,!1===t.isSaveInProgress&&(C.Z.deleteTempFile(t.tempPath),d._I(t.docPath)),P.Z.elementEditCompleted(e),I.Z.releaseLock(r)}))}_onDocumentSave(e,t){if(!(0,h.ii)(t.tempPath))return;t.isSaveInProgress=!0;const r=d.K3(t.tempPath)+".png";if(!d.xW(t.tempPath)||!d.xW(r))return void(t.isSaveInProgress=!1);let i=e.library;const s=i.name,c=!i||i.isDeletedLocally;let l=!1;if(c||!i.isWritable){if(i=o.ZP.getRecoveryLibrary(i.name),!i)return;l=!0}const u=this._getLockId(e);I.Z.obtainLock(u,(()=>{let o;e.isDeletedLocally||l?e=i.createElement(e.name,e.type):(e.beginOperation(),e.removeAllRepresentations()),o=d.xW(t.docPath)?a.Z.execApp("getTextInfoFromDocument",[t.docPath]):a.Z.execApp("getTextInfoFromSnippet",[t.tempPath]),o.then((o=>{const p=[],m=d.pH(t.tempPath,e.type),g=e.createRepresentation(m,"primary");p.push(g.setContentFromPath(t.tempPath));const v=JSON.parse(o);e.createRepresentation(n.Z.TEXT_REPRESENTATION_JSON_TYPE,"rendition").setValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY,v.textInfo),r&&d.xW(r)&&p.push((0,h.bf)(e,n.Z.IMAGE_THUMBNAIL_SIZE,r));const y=()=>{P.Z.sendElementUpdated(g);const r=e.endOperation();I.Z.releaseLock(u),l&&(T.Z.revealElement(e),c?a.Z.showError((0,f.Iu)("DL_WARNING_RECOVERED_FROM_DELETED",{recoveryLibraryName:i.name})):a.Z.showError((0,f.Iu)("DL_WARNING_RECOVERED_FROM_READONLY",{recoveryLibraryName:i.name,originalLibraryName:s}))),r.then((()=>{t.isClosed?C.Z.deleteTempFile(t.tempPath):C.Z.updateTempFile(g,t.tempPath),t.isSaveInProgress=!1}))};Promise.all(p).then(y,y)}))}))}defaultEditOperation(e){if(!0===n.Z.IS_APP_IN_TOUCH_MODE)return;if(!this._config.isEditable(e))return!1;const t=e.getPrimaryRepresentation();C.Z.getTempFile(t).then((t=>{const r=[],i=this._config.findUsableRepresentation(e,n.Z.TEXT_REPRESENTATION_JSON_TYPE).getValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY).styles;return Object.keys(i).map((e=>i[e])).forEach((e=>{e.value.adbeFont&&r.push({adbeFont:e.value.adbeFont,fontFamily:e.value.fontFamily})})),a.Z.execApp("openAssetForEdit",[t,"text",e.getLegacyReference(),r]).then((r=>{const n=d.K3(t),i={docPath:n,tempPath:t,isClosed:!1,isSaveInProgress:!1};i.listenerId=k.Z.startListening(r,n,(t=>{"closed"===t?this._onDocumentClose(e,i):"saved"===t&&this._onDocumentSave(e,i)}))}))}))}getDragData(e){const t=this._config.findUsableRepresentation(e);if(!t)return;const r={};if(t.type===n.Z.TEXT_REPRESENTATION_ID_SNIPPET_TYPE){r.fonts=[];const t=this._config.findUsableRepresentation(e,n.Z.TEXT_REPRESENTATION_JSON_TYPE).getValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY).styles;Object.keys(t).map((e=>t[e])).forEach((e=>{e.value.adbeFont&&r.fonts.push({adbeFont:e.value.adbeFont,fontFamily:e.value.fontFamily})}))}return r}}var H=r(54142),z=r(13293);const V="application/vnd.adobe.characterstyle+json",Y="application/vnd.adobe.characterstyle+snippet",W="characterstyle",K="data";class $ extends H.Z{_setStyleInfo(e,t,r){e.type="charstyle",e.name=t,e.id=r}_useTextStyle(e,t,r){const n=1===t.index,i=t.index===t.length,o=this._config.findUsableRepresentation(e);if(!o)return;const s=z.R(e);s&&s.id?(0,h.vM)(o,r,null,{event:{value:"typekit"}}):(0,h.vM)(o,r);const c=e.name,l=e.id+";"+e.modified;if(o.type===V){const e=o.getValue(W,K);return this._setStyleInfo(e,c,l),a.Z.execApp(r,[e,n,i])}return o.type===Y?o.getContentPath().then((t=>{const o={};this._setStyleInfo(o,c,l),o.idmsPath=t;const s=this._config.findUsableRepresentation(e,V).getValue(W,K);return o.adbeFont=s.adbeFont,o.fontFamily=s.fontFamily,a.Z.execApp(r,[o,n,i])})):void 0}_setTextStyle(e,t){return this._useTextStyle(e,t,"setFont")}_addTextStyle(e,t){return t.index===t.length&&n.Z.currentProduct.reportEvent("addElement",{opType:"addTextStyle",elementType:"characterstyle",numElements:t.length}),this._useTextStyle(e,t,"addTextStyle")}getApplyOperations(e,t,r){const n=c.Z.getLayerInfo();if(!n)return[];const i=[];return n&&"LayerKind.TEXT"===n.kind&&i.push({name:"DL_SET_TEXT_STYLE_TOOLTIP",icon:"text",onClick:!0,apply:()=>this._setTextStyle(e,r),displayInMenu:!0}),i.push({name:"DL_ADD_AS_TEXT_STYLE_TOOLTIP",icon:"pastetext",allowMultiple:!0,apply:()=>this._addTextStyle(e,r),displayInMenu:!0}),i}_addTextStyleElement(e,t,r){return e&&"LayerKind.TEXT"===e.kind?a.Z.execApp("getCharStyleInfo").then((e=>{var i;const o=JSON.parse(e);null!==(i=n.Z.currentProduct.config)&&void 0!==i&&i.copyTempFileIfNecessary&&(o.idmsPath=o.idmsPath&&n.Z.currentProduct.config.copyTempFileIfNecessary(o.idmsPath),o.previewPath=o.previewPath&&n.Z.currentProduct.config.copyTempFileIfNecessary(o.previewPath));const a=(0,h.MN)(t,o.styleName,n.Z.CHARACTER_STYLE_ELEMENT_TYPE,{opType:r}),s=[];if(o.idmsPath){const e=a.createRepresentation(Y,"primary");s.push(e.setContentFromPath(o.idmsPath)),a.createRepresentation(V,"rendition").setValue(W,K,o.styleInfo)}else a.createRepresentation(V,"primary").setValue(W,K,o.styleInfo);if(o.previewPath){const e=a.createRepresentation("image/png","rendition");s.push(e.setContentFromPath(o.previewPath))}return Promise.all(s).then((()=>{const e=[];return o.previewPath&&e.push(a.setThumbnailCache(n.Z.CHARACTER_STYLE_THUMBNAIL_SIZE,o.previewPath)),e.push(a.endOperation()),Promise.all(e).then((()=>{o.idmsPath&&d._I(o.idmsPath),o.previewPath&&d._I(o.previewPath)})),a})).catch((()=>(t.removeElement(a,!0),Promise.reject("Could not create element."))))})):Promise.reject("not a text layer")}getAddOperations(e){return e&&e.text&&!1!==e.isAppliedCharStyleSupported?[{name:"DL_ADD_TEXT_STYLE_NAME",order:2,icon:"AddCharacterStyle",apply:(t,r)=>new Promise((n=>{c.Z.updateLayerInfo().then((()=>n(this._addTextStyleElement(e,t,r))))}))}]:[]}}function q(){q=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function X(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function J(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){X(o,n,i,a,s,"next",e)}function s(e){X(o,n,i,a,s,"throw",e)}a(void 0)}))}}function Q(){this.config={},this.config.code="IDSN",this.config.fullName="InDesign",this.config.translationSuffix="ID",this.config.dragDropSource="com.adobe.indesign",this.config.offsetSelectMenu=!0,this.config.stateMethod="getCurrentStates",this.config.usesEscapedFilePathsInEvents=!0,this.config.themes={323232:"darker",535353:"dark",b8b8b8:"light",f0f0f0:"lighter"},this.config.legacySpectrumEnabled=!0,this.config.defaultTheme="dark","com.adobe.DesignLibraries.touch"===a.Z.getExtensionID()?(n.Z.IS_APP_IN_TOUCH_MODE=!0,n.Z.CONTEXT_MENUS_ENABLED=!1):(n.Z.IS_APP_IN_TOUCH_MODE=!1,n.Z.CONTEXT_MENUS_ENABLED=!0),this.config.elementTypes=[w,L,U,$,S.Z,F,D,B,O.Z.ComponentElementConfig,_,O.Z.PatternElementConfig,O.Z.BrushElementConfig,O.Z.VideoElementConfig,O.Z.LookElementConfig,O.Z.CapsuleElementConfig,O.Z.ThreeDElementConfig,O.Z.LayerStyleElementConfig,O.Z.LightElementConfig,O.Z.MaterialElementConfig,O.Z.GradientElementConfig,O.Z.AudioElementConfig,O.Z.ChannelElementConfig,O.Z.ImageGuidelineElementConfig,O.Z.UnsupportedElementConfig],this.config.collapsedTypes=[n.Z.PATTERN_ELEMENT_TYPE,n.Z.BRUSH_ELEMENT_TYPE,n.Z.VIDEO_ELEMENT_TYPE,n.Z.LOOK_ELEMENT_TYPE,n.Z.CAPSULE_ELEMENT_TYPE,n.Z.THREE_D_ELEMENT_TYPE,n.Z.LAYER_STYLE_ELEMENT_TYPE,n.Z.LIGHT_ELEMENT_TYPE,n.Z.MATERIAL_ELEMENT_TYPE,n.Z.GRADIENT_ELEMENT_TYPE,n.Z.AUDIO_ELEMENT_TYPE,n.Z.CHANNEL_ELEMENT_TYPE,n.Z.IMAGE_GUIDELINE_ELEMENT_TYPE,n.Z.UNSUPPORTED_ELEMENT_TYPE],this.config.isCaptureEnabled=!1,this.config.captureModules=["Colors","Shapes","Type"],this.config.includeGuidInTempFileName=!0,this.config.tempFolder=()=>18===this.config.majorVersion?n.Z.strTempFolder.replace(/TemporaryItems/,"").replace(/\/private/,""):n.Z.strTempFolder+"/",this.config.copyTempFileIfNecessary=e=>{let t=e;if(18===this.config.majorVersion&&t.includes("TemporaryItems"))try{t=t.replace(/\/TemporaryItems/,""),window.nodeRequire("fs").copyFileSync(e,t)}catch(e){u.Z.log("Error copying file: "+e)}return t};const e=()=>{p.Z.isRelinkLayerMode()&&p.Z.resetMode()},t=()=>{e()},r=()=>{const e=o.ZP.libraries.filter((e=>!e.isDeletedFromServer)),t=e.map((e=>({name:e.name,id:e.id,writable:e.isWritable}))),r=o.ZP.currentLibrary,n=r?e.indexOf(r):-1;a.Z.execApp("setLibraryCollection",[JSON.stringify({names:t,current:n})])};let g;this.init=function(){d.Zh(n.Z.IMAGE_ELEMENT_TYPE,["application/vnd.adobe.indesign-idms","image/png","image/jpeg","image/jpg","image/gif","image/bmp","application/photoshop","application/photoshop.large","image/vnd.adobe.photoshop","application/illustrator","application/pdf","image/svg+xml","image/tiff"]),d.Zh(n.Z.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),d.Zh(n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,["application/vnd.adobe.paragraphstyle+json","application/vnd.adobe.paragraphstyle+snippet"]),d.Zh(n.Z.CHARACTER_STYLE_ELEMENT_TYPE,["application/vnd.adobe.characterstyle+json","application/vnd.adobe.characterstyle+snippet"]),d.Zh(n.Z.FONT_ELEMENT_TYPE,["application/vnd.adobe.font+json"]),d.Zh(n.Z.TEMPLATE_ELEMENT_TYPE,["application/vnd.adobe.indesign.template"]),d.Zh(n.Z.TEXT_ELEMENT_TYPE,["application/vnd.adobe.text+json","application/vnd.adobe.indesign-idms-text"]),d.Zh(n.Z.ANIMATION_ELEMENT_TYPE,["application/vnd.adobe.animate-xfl+zip","application/vnd.adobe.indesign-idms"]),d.Zh(n.Z.COMPONENT_ELEMENT_TYPE,["image/png"]),d.Dk(n.Z.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),d.Dk(n.Z.IMAGE_ELEMENT_TYPE,["application/vnd.adobe.indesign-idms"]),d.Dk(n.Z.TEXT_ELEMENT_TYPE,["application/vnd.adobe.indesign-idms-text"]),a.Z.execApp("setThumbnailExportOptions"),a.Z.execApp("getTooltipState").then((function(e){n.Z.showTooltips=e})),a.Z.exec("CORE","getApplicationVersion",[]).then((e=>{try{const t=parseInt(e.split(".")[0]);a.Z.execApp("setHSBSupport",[t>=16]),this.config.isCaptureEnabled=t>=17,this.config.majorVersion=t}catch(e){}})),this.startEventListener(),o.ZP.waitForInitialLoad().then((function(){t();const e=a.Z.createEvent("com.adobe.DesignLibraries.events.READY","APPLICATION");a.Z.dispatchEvent(e)})),o.ZP.addListener("libraryList",(function(){r()})),o.ZP.addListener("currentLibrary",(function(){r()}))},this.config.useMouseEventToDetectDrop=!0;const v=e=>{g=void 0,e instanceof Object&&Object.prototype.hasOwnProperty.call(e,"exportContext")?g=e.exportContext:e instanceof String&&(g=e)},y=()=>g=void 0;this.reportEvent=function(e,t){u.Z.log("Metric reported to ID"),t.event=e,"createElement"===e&&(t.creationContext=void 0!==g?g:"");const r=a.Z.createEvent("com.adobe.DesignLibraries.events.LOGPIP","APPLICATION");r.data=JSON.stringify(t),a.Z.dispatchEvent(r),delete t.event,"createElement"===e&&delete t.creationContext},this.getUserData=function(e){a.Z.execApp("getUserData").then((function(t){if(!t||"undefined"===t)return e();e(JSON.parse(t))}))};const b=()=>{c.Z.handleSelectionChange()},E=()=>{a.Z.execApp("getTooltipState").then((function(e){n.Z.showTooltips=e}))};this.fontManager=new m.Z;const x=()=>this.fontManager.invalidateFontList(),T=()=>this.fontManager.invalidateFontList(),P=()=>e(),I=e=>{const t=e.data,r=t.idmsPath,i=t.pdfPath,a=t.pngPath;if(!d.xW(r)||!d.xW(i))return;let s;if(Object.prototype.hasOwnProperty.call(t,"libraryId")?""!==t.libraryId&&(s=o.ZP.getLibraryById(t.libraryId),s&&(o.ZP.currentLibrary=s)):s=o.ZP.currentLibrary,s||t.libraryName||(s=o.ZP.recentLibraries[0]),!s){const e=t.libraryName||(0,f.Iu)("DL_DEFAULT_LIBRARY_NAME"),r=o.ZP.createLibrary(e);if(!r)return;o.ZP.currentLibrary=r,s=o.ZP.currentLibrary}if(!(0,h.oY)(s))return;const c=s.createElement(t.assetName,n.Z.IMAGE_ELEMENT_TYPE),l=[],u=d.pH(r,n.Z.IMAGE_ELEMENT_TYPE),p=c.createRepresentation(u,"primary");l.push(p.setContentFromPath(r));const m=d.pH(i,n.Z.IMAGE_ELEMENT_TYPE),g=c.createRepresentation(m,"rendition");l.push(g.setContentFromPath(i)),a&&d.xW(a)&&l.push((0,h.bf)(c,n.Z.IMAGE_THUMBNAIL_SIZE,a)),Promise.all(l).then((function(){c.endOperation()}),(function(){s.removeElement(c,!0)}))},A=()=>{l.ZP.openDialog("createLibrary")},C=(e,t)=>{if(t){const e=(0,f.Iu)("DL_DEFAULT_LIBRARY_NAME");return o.ZP.createLibrary(e)}let r;if(e&&(r=o.ZP.getLibraryById(e)),r||(r=o.ZP.currentLibrary||o.ZP.recentLibraries[0]),r&&(0,h.oY)(r))return o.ZP.currentLibrary=r,r=o.ZP.currentLibrary,r},k=e=>{const t=C();if(!t)return;const r=e.data,i={},o=r.themeName;Object.prototype.hasOwnProperty.call(r,"rule")&&(i.rule=r.rule,i.baseSwatchIndex=r.baseColorIndex),Object.prototype.hasOwnProperty.call(r,"mood")&&(i.mood=r.mood),i.swatches=[];const s=r.assetList.map((e=>a.Z.execApp("getColorDataFromJSON",[JSON.stringify(e)]).then((e=>{const t=JSON.parse(e);i.swatches.push(t)}))));Promise.all(s).then((()=>{v(r);const e=t.createElement(o,n.Z.COLOR_THEME_ELEMENT_TYPE);e.createRepresentation("application/vnd.adobe.colortheme+json","primary").setValue("colortheme","data",i),y(),e.endOperation()}))},N=e=>{const t=e.data.libraryID,r=!!e.data.createNewLibrary,i=C(t,r);if(!i)return;const o=[],s=e.data.colorList.map((e=>a.Z.execApp("getColorDataFromJSON",[JSON.stringify(e)]).then((t=>{o.push({name:e.colorName,data:JSON.parse(t)})}))));Promise.all(s).then((()=>{const t=e=>{const t=i.createElement(e.name,n.Z.COLOR_ELEMENT_TYPE);e.data.forEach(((e,r)=>{const i=0===r?"primary":"rendition";t.createRepresentation(n.Z.COLOR_REPRESENTATION_TYPE,i).setValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY,e)})),t.endOperation()};v(e.data);for(let e=0;e<o.length;++e)t(o[e]);y()}))},R=(e,t)=>{const r=e.data.libraryID,i=!!e.data.createNewLibrary,o=C(r,i);if(!o)return;let s,c,l,u,p;t?(s="data",c="characterstyle",l=n.Z.CHARACTER_STYLE_ELEMENT_TYPE,u="application/vnd.adobe.characterstyle+json",p="application/vnd.adobe.characterstyle+snippet"):(s="data",c="paragraphstyle",l=n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,u="application/vnd.adobe.paragraphstyle+json",p="application/vnd.adobe.paragraphstyle+snippet");const h=e.data.documentID||-1;e.data.styleUIDList.forEach((r=>{const n=t?"getCharStyleInfoByID":"getParaStyleInfoByID";a.Z.execApp(n,[h,r]).then((t=>{const r=JSON.parse(t);v(e.data);const n=o.createElement(r.styleName,l);y();const i=[],a=n.createRepresentation(p,"primary").setContentFromPath(r.idmsPath);if(i.push(a),n.createRepresentation(u,"rendition").setValue(c,s,r.styleInfo),r.previewPath){const e=n.createRepresentation("image/png","rendition").setContentFromPath(r.previewPath);i.push(e)}Promise.all(i).then((function(){const e=[];r.previewPath&&e.push(n.setThumbnailCache(104,r.previewPath)),e.push(n.endOperation()),Promise.all(e).then((()=>{r.previewPath&&d._I(r.previewPath),r.idmsPath&&d._I(r.idmsPath)}))}))}))}))},M=e=>R(e,!1),j=e=>R(e,!0),Z=e=>e.data?(e=>{const t=e.data;if(""!==t&&void 0!==t){const e=o.ZP.getLibraryById(t);e&&(o.ZP.currentLibrary=e)}})(e):t(),G=function(){var e=J(q().mark((function e(t){var r,c,l;return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.data||void 0===t.data.elementRef){e.next=9;break}return e.next=3,o.ZP.resolveElementReference(t.data.elementRef);case 3:if(r=e.sent,c=s.wq(r),!(l=i.Z.findUsableRepresentation(r,d.ku(n.Z.IMAGE_ELEMENT_TYPE)))){e.next=8;break}return e.abrupt("return",l.getContentPath().then((function(e){return a.Z.execApp("placeAsset",[e,r.library.name,r.name,r.getLegacyReference(),(0,h.RW)(r),r.created,c,c?s.kv(r):null,!0,!1,!0])})));case 8:return e.abrupt("return",r.getThumbnailPath().then((function(e){return a.Z.execApp("placeAsset",[e,r.library.name,r.name,r.getLegacyReference(),(0,h.RW)(r),r.created,c,c?s.kv(r):null,!0,!1])}),(e=>u.Z.log(e))));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),H=function(){var e=J(q().mark((function e(t){var r,s;return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.data||void 0===t.data.elementRef){e.next=7;break}return e.next=3,o.ZP.resolveElementReference(t.data.elementRef);case 3:if(r=e.sent,!(s=i.Z.findUsableRepresentation(r,d.ku(n.Z.TEMPLATE_ELEMENT_TYPE)))){e.next=7;break}return e.abrupt("return",s.getContentPath().then((function(e){return a.Z.execApp("openDocumentFromTemplate",[e])})));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),z=function(){var e=J(q().mark((function e(t){var r,s,c,l;return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=e=>{const r={},n=a.Z.createEvent("com.adobe.DesignLibraries.events.SnippetCreated","APPLICATION");r.idmsPath=e||"",t.data.elementRef&&(r.elementRef=t.data.elementRef),t.data.guid&&(r.guid=t.data.guid),n.data=JSON.stringify(r),a.Z.dispatchEvent(n)},!t.data||void 0===t.data.elementRef){e.next=8;break}return e.next=4,o.ZP.resolveElementReference(t.data.elementRef);case 4:(s=e.sent).type===n.Z.TEXT_ELEMENT_TYPE&&(c=i.Z.findUsableRepresentation(s))&&(c.type===n.Z.TEXT_REPRESENTATION_JSON_TYPE?((l=c.getValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY)).id=s.id+";"+s.modified,l.type="text",a.Z.execApp("getSnippetForText",[l,!t.data.stripStyles]).then((function(e){r(e)}),(function(){r()}))):c.type===n.Z.TEXT_REPRESENTATION_ID_SNIPPET_TYPE&&c.getContentPath().then((function(e){r(e)}))),e.next=9;break;case 8:r();case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return this.startEventListener=function(){a.Z.addEventListener("afterSelectionChanged",b),a.Z.addEventListener("afterSelectionAttributeChanged",b),a.Z.addEventListener("colorChanged",b),a.Z.addEventListener("colorTransformChanged",b),a.Z.addEventListener("uiPreferencesChanged",E),a.Z.addEventListener("fontListChanged",x),a.Z.addEventListener("documentAfterActivate",T),a.Z.addEventListener("documentAfterDeactivate",P),a.Z.addEventListener("afterWorkspaceChanged",Z),!1===n.Z.IS_APP_IN_TOUCH_MODE&&(a.Z.addEventListener("newAssetToMigrate",I),a.Z.addEventListener("createNewCloudLibrary",A),a.Z.addEventListener("createNewColorTheme",k),a.Z.addEventListener("createNewColors",N),a.Z.addEventListener("createNewParaStyles",M),a.Z.addEventListener("createNewCharStyles",j),a.Z.addEventListener("openStock",G),a.Z.addEventListener("openStockTemplate",H),a.Z.addEventListener("createSnippetForElement",z))},this.stopEventListener=function(){a.Z.removeEventListener("afterSelectionChanged",b),a.Z.removeEventListener("afterSelectionAttributeChanged",b),a.Z.removeEventListener("colorChanged",b),a.Z.removeEventListener("colorTransformChanged",b),a.Z.removeEventListener("uiPreferencesChanged",E),a.Z.removeEventListener("fontListChanged",x),a.Z.removeEventListener("documentAfterActivate",T),a.Z.removeEventListener("documentAfterDeactivate",P),a.Z.removeEventListener("afterWorkspaceChanged",Z),!1===n.Z.IS_APP_IN_TOUCH_MODE&&(a.Z.removeEventListener("newAssetToMigrate",I),a.Z.removeEventListener("createNewCloudLibrary",A),a.Z.removeEventListener("createNewColorTheme",k),a.Z.removeEventListener("createNewColors",N),a.Z.removeEventListener("createNewParaStyles",M),a.Z.removeEventListener("createNewCharStyles",j),a.Z.removeEventListener("openStock",G),a.Z.removeEventListener("openStockTemplate",H),a.Z.removeEventListener("createSnippetForElement",z))},this.dropHandler=function(e,t){return u.Z.log("InDesign drop handler",e),(a.Z.isWindowsOS()?t.ctrlKey:t.metaKey)&&"text"===e.assetList[0].type&&(e.assetList[0].type="image"),Promise.reject()},this.customDropMessage=function(e,t){const r=a.Z.isWindowsOS();if(!(r?t.ctrlKey:t.metaKey)&&"text"===e.assetList[0].type){const e="DL_CUSTOM_DROP_MESSAGE_ID_TEXT_"+(r?"WIN":"MAC");return(0,f.Iu)(e)}},this.customOverlayMessage=function(e,t){let r="";return"place"===e?r="DL_CUSTOM_PLACE_OVERLAY_MESSAGE_ID":"relink"===e&&(r=1===t.length&&"text"===t[0]?"DL_CUSTOM_RELINK_TEXT_OVERLAY_MESSAGE_ID":"DL_RELINK_RELINK_OVERLAY_MESSAGE"),r&&(0,f.Iu)(r)},this.allowCmdDrag=!0,this}},87414:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAppConfiguration:()=>$e});var n=r(99386),i=r(75067),o=r(76485),a=r(26964),s=r(34038),c=r(84824),l=r(57613),u=r(47320),d=r(31870),p=r(8733),h=r(16993),f=r(46903);const m="DL_To_Ai",g="Character_Style",v="Paragraph_Style",y="Added",b="Applied";function _(e){let t;Object.prototype.hasOwnProperty.call(e,"libraryID")&&(t=e.libraryID);let r=!1;return Object.prototype.hasOwnProperty.call(e,"createNewLibrary")&&(r=JSON.parse(e.createNewLibrary)),function(e,t){let r;if(e&&(r=i.ZP.getLibraryById(e)),r||t||(r=i.ZP.currentLibrary),r||(r=i.ZP.recentLibraries[0]),!r){const e=(0,c.Iu)("DL_DEFAULT_LIBRARY_NAME");r=i.ZP.createLibrary(e)}return r&&(i.ZP.currentLibrary=r,r=i.ZP.currentLibrary),r}(t,r)}function E(e,t,r){"function"==typeof n.Z.currentProduct.reportEvent&&n.Z.currentProduct.reportEvent("event",{category:e,subcategory:t,eventname:r})}var w=r(53849),x=r(15909),L=r(74149),O=r(30131),S=r(36351),T=r(51461);function P(){P=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function I(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function A(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){I(o,n,i,a,s,"next",e)}function s(e){I(o,n,i,a,s,"throw",e)}a(void 0)}))}}const C=(e,t)=>{if(e){const r=e.element,n=r.getLegacyReference();e.getContentPath().then((e=>{const i=o.Z.createEvent("com.adobe.DesignLibraries.events.ElementUpdated","APPLICATION");i.data=JSON.stringify({requestRef:t,elementRef:n,name:r.name,libraryName:r.library.name,modifiedTime:(0,f.RW)(r),creationTime:r.created,data:[e]}),o.Z.dispatchEvent(i)}))}},k=(e,t,r)=>{const n=t&&t.files||[];for(let t=0;t<n.length;t++){const i=n[t],o=s.pH(i.path,r.type),a=r.createRepresentation(o,i.relationship).setContentFromPath(i.path);e.push(a)}},D=e=>{const t=o.Z.createEvent("ILST.InitialCommunicationError","APPLICATION"),r=i.ZP.syncStatus;t.data={elementIdentifier:e,status:"error",error:r&&r.errorType||"kError"},o.Z.dispatchEvent(t)},N=(e,t,r,n)=>{let a=!1,s=!1;const c=t=>{const r=o.Z.createEvent("ILST.elementUploaded","APPLICATION"),n=t||{errorType:"kNoErr",state:"ok"};S.Z.isOnline||(n.state="error",n.errorType="kNoInternet"),r.data={elementRef:e.getLegacyReference(),status:n.state,error:n.errorType||"kNoErr"},o.Z.dispatchEvent(r)},l=()=>{const o=i.ZP.syncStatus;s||"ok"!==o.state&&"error"!==o.state||(c(o),s=!0,t&&"ok"===o.state&&!a&&("kAIChart"===n?(0,O.w3)(e,"charts",r):"kAIArt"===n&&(0,O.w3)(e,"details",r),a=!0),i.ZP.removeListener("libraryStatus",l))};i.ZP.syncingEnabled()?i.ZP.addListener("libraryStatus",l):c(i.ZP.syncStatus)},R=e=>{for(let t=0;t<e.length;t++)s._I(e[t].path)},M=(e,t,r)=>{if(!e)throw"No current library";if(!t||!t.files||!r)throw"event data invalid"};function j(e){const t=e.data.fileData,r=i.ZP.currentLibrary,o=e.data.additionalQueryParameters,a=e.data.openBrowserAfterOperation,c=e.data.elementType;let l=null;if((0,f.oY)(r))try{if(M(r,t,c),null===t.layerIds||null===t.documentId)throw"layer Ids Or documentId cannot be null";if("kAIArt"!==c&&"kAIChart"!==c)throw"Element not supported yet";l=n.Z.IMAGE_ELEMENT_TYPE,t.layerName="kAIChart"===c?(0,f.In)(r,t.layerName,"DL_CHART_LABEL"):(0,f.In)(r,t.layerName);const e=r.createElement(t.layerName,l),i=[];return k(i,t,e),Promise.all(i).then((function(){const r=[];t.rendition&&r.push(e.setThumbnailCache(n.Z.IMAGE_THUMBNAIL_SIZE,t.rendition)),r.push(e.endOperation()),Promise.all(r).then((()=>{R(t.files),t.rendition&&s._I(t.rendition.path)})),w.Z.revealElement(e);const i={documentId:t.documentId,layerIds:t.layerIds};return x.Z.sendElementCreated(e,i).then((()=>(N(e,a,o,c),e)))}),(()=>Promise.reject("Could not add element")))}catch(e){return D(t.layerIds&&t.layerIds[0]||null),Promise.reject("Could not add element: "+e)}}function F(e){return Z.apply(this,arguments)}function Z(){return(Z=A(P().mark((function e(t){var r,o,a,c,l,u,d,p;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.data.fileData,o=t.data.elementType,a=t.data.elementRef,c=t.data.additionalQueryParameters,l=t.data.openBrowserAfterOperation,e.prev=5,a){e.next=8;break}throw"elementRef missing";case 8:return e.next=10,i.ZP.resolveElementReference(a);case 10:if(u=e.sent){e.next=13;break}throw"Element not found";case 13:if(w.Z.revealElement(u),d=u.library,(0,f.oY)(d)){e.next=17;break}return e.abrupt("return");case 17:return M(d,r,o),u.isDeletedLocally?u=d.createElement(u.name,u.type):(u.beginOperation(),u.removeAllRepresentations()),k(p=[],r,u),e.abrupt("return",Promise.all(p).then((function(){const e=[];return r.rendition&&e.push(u.setThumbnailCache(n.Z.IMAGE_THUMBNAIL_SIZE,r.rendition)),e.push(u.endOperation()),Promise.all(e).then((()=>{R(r.files),r.rendition&&s._I(r.rendition.path)})),C(u.getPrimaryRepresentation(),t.data.requestRef),N(u,l,c,o),u}),(()=>Promise.reject("Could not update element"))));case 24:return e.prev=24,e.t0=e.catch(5),D(t.data.requestRef),e.abrupt("return",Promise.reject("Could not update element: "+e.t0));case 28:case"end":return e.stop()}}),e,null,[[5,24]])})))).apply(this,arguments)}function B(){return(B=A(P().mark((function e(t,r,i,o,a,s,c){var l,u,d,p;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,f.Xv)(r,null,null,o,a,s);case 2:return l=e.sent,u={documentId:l.documentId,layerIds:l.layerIds,dragAssetId:r},l.files.forEach((e=>{e.data=[{namespace:n.Z.PATTERN_NAMESPACE,key:n.Z.PATTERN_DATA_KEY,value:c}]})),d=(0,f.In)(t,i,"DL_TYPE_PATTERN")||l.layerName,p=(0,L.fS)(d,l.files,l.rendition,t,u),e.abrupt("return",p);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const G=e=>{var t,r;if(e&&(void 0===e.canAddTextAsset||!1!==e.canAddTextAsset))return void 0!==e.canAddTextAsset?function(e,t){return o.Z.execApp("getTextInfo").then((r=>{const i=JSON.parse(r);if(!i||!i.textInfo)return Promise.reject("Could not create element.");const o=t.textAssetName||i.name,a=(0,f.In)(e,o,"DL_TEXT_LABEL"),c=(0,f.MN)(e,a,n.Z.TEXT_ELEMENT_TYPE,{opType:"canvasContextMenu"}),l=[];if(i.primaryRepresentation){const e=c.createRepresentation(i.primaryRepresentation.representationType,"primary");if(i.primaryRepresentation.isFile){const t=e.setContentFromPath(i.primaryRepresentation.filePath).then((()=>{l.push(t)}))}else e.setValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY,i.primaryRepresentation.data);c.createRepresentation(n.Z.TEXT_REPRESENTATION_JSON_TYPE,"rendition").setValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY,i.textInfo)}else c.createRepresentation(n.Z.TEXT_REPRESENTATION_JSON_TYPE,"primary").setValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY,i.textInfo);if(i.previewPath){const e=c.createRepresentation("image/png","rendition");e.isPreferredThumbnail=!0;const t=e.setContentFromPath(i.previewPath);l.push(t)}return Promise.all(l).then((function(){const e=[];return i.previewPath&&e.push(c.setThumbnailCache(n.Z.TEXT_THUMBNAIL_SIZE,i.previewPath)),e.push(c.endOperation()),Promise.all(e).then((()=>{i.previewPath&&s._I(i.previewPath),i.primaryRepresentation.isFile&&s._I(i.primaryRepresentation.filePath)})),(0,f.vM)(c.representations[0],"canvasContextMenu"),c}),(()=>(e.removeElement(c),Promise.reject("Could not create element."))))}),(()=>Promise.reject("Could not save text preview.")))}(i.ZP.currentLibrary,e):(t=i.ZP.currentLibrary,r=void 0,(0,f.g0)(r).then((e=>{const n={documentId:e.documentId,layerIds:e.layerIds,dragAssetId:r};return T.ZP.setExtraEventMetrics("createElement",{opType:"canvasContextMenu"}),(0,L.Bm)(e.layerName,e.files,e.rendition,t,n).then((e=>{(0,f.vM)(e.representations[0],"canvasContextMenu")})).catch((()=>{T.ZP.clearExtraEventMetrics("createElement")}))}),(()=>Promise.reject("Could not extract asset."))))};function U(){p.Z.updateLayerInfo().then(G)}const H="illustrator",z="data",V=new Map;function Y(e){const t=i.ZP.currentLibrary,r=e.data;if(r){const e="addButton";"add"===r.source&&(r.name="");const n=function(e,t,r,n,i,o,a){return B.apply(this,arguments)}(t,e,r.name,r.aiPath,r.pngPath,r.thumbnailPath,r.patternStyle),i=V.get(r.name);i&&(i(n),V.delete(r.name))}else console.error("Error in receiving paths")}function W(e,t){const r={name:e.name,data:e.data[0],source:t};return n=r,new Promise(((e,t)=>{try{const t=o.Z.createEvent("ILST.getPatternFiles","APPLICATION");t.data=n,V.set(n.name,e),o.Z.dispatchEvent(t)}catch(e){t(new Error(`Failed to dispatch event: ${e.message}`))}}));var n}function K(e){return e.getValue(H,z)}function $(e,t){e.setValue(H,z,{global:t.global})}const q=e=>{const t=_(e.data);if(!t)return Promise.reject("Library Error");if(!(0,f.oY)(t))return Promise.reject("Library Error");let r;return Object.prototype.hasOwnProperty.call(e.data,"isNew")&&(r=e.data.isNew?"swatchPanelNew":"swatchPanelExisting"),o.Z.execApp("getSelectedSwatchList").then((function(e){if(!e)return Promise.reject("err");try{e=JSON.parse(e)}catch(e){return Promise.reject("err")}let i;e.forEach((e=>{e.data&&(i="PatternColor"===e.typename?W(e,"swatch"):"GradientColor"===e.typename?(e=>{const i=e.name,o=(0,f.MN)(t,i,n.Z.GRADIENT_ELEMENT_TYPE,{opType:r}),a=o.createRepresentation(n.Z.GRADIENT_REPRESENTATION_TYPE,"primary");return a.setValue(n.Z.GRADIENT_NAMESPACE,n.Z.GRADIENT_DATA_KEY,e.data[0]),o.endOperation(),r&&(0,f.vM)(a,r),o})(e):(e=>{let i=e.name;i||(e.data&&e.data[0]&&e.data[0].type&&"spot"===e.data[0].type&&(i=e.data[0].spotColorName),i=i||"");const o=t.createElement(i,n.Z.COLOR_ELEMENT_TYPE);return e.data.forEach(((e,t)=>{const r=0===t?"primary":"rendition",i=o.createRepresentation(n.Z.COLOR_REPRESENTATION_TYPE,r);"global"in e&&($(i,e),delete e.global),i.setValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY,e)})),o.endOperation(),r&&(0,f.vM)(o.representations[0],r),o})(e))})),i.isElement&&w.Z.revealElement(i)}))},X=e=>{const t=_(e.data);return t&&(0,f.oY)(t)?o.Z.execApp("getSelectedSwatchGroupList").then((e=>{if(!e)return Promise.reject("err");if((e=JSON.parse(e)).length>0){let r;e.forEach((e=>{r=(e=>{const r=e.mood||"";let i;return e.swatches&&e.swatches.length<=5&&e.swatches.length>0&&(i=t.createElement(r,n.Z.COLOR_THEME_ELEMENT_TYPE),i.createRepresentation(n.Z.COLOR_THEME_REPRESENTATION_TYPE,"primary").setValue(n.Z.COLOR_THEME_NAMESPACE,n.Z.COLOR_THEME_DATA_KEY,e),i.endOperation()),i})(e)})),r&&w.Z.revealElement(r)}})):Promise.reject("Library Error")};function J(e){const t=e.data,r=[];return t&&(t.uploadSwatch&&r.push(q(e)),t.uploadSwatchGroup&&r.push(X(e))),Promise.all(r)}const Q=(e,t)=>{const r=_(e.data);if(!r)return;if(!(0,f.oY)(r))return;let i,a,c,l,u;Object.prototype.hasOwnProperty.call(e.data,"isNew")&&(i=`${t?"characterStyle":"paragraphStyle"}${e.data.isNew?"New":"Existing"}`),t?(a="data",c="characterstyle",l=n.Z.CHARACTER_STYLE_ELEMENT_TYPE,u="application/vnd.adobe.characterstyle+json"):(a="data",c="paragraphstyle",l=n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,u="application/vnd.adobe.paragraphstyle+json");const d=e.data.styleNames,p=t?"addCharStyleById":"addParaStyleById";d.forEach((e=>{o.Z.execApp(p,[e]).then((e=>{const t=JSON.parse(e),o=r.createElement(t.styleName,l),d=[];if(o.createRepresentation(u,"primary").setValue(c,a,t.styleInfo),t.previewPath){const e=o.createRepresentation("image/png","rendition").setContentFromPath(t.previewPath);d.push(e)}Promise.all(d).then((function(){const e=[];t.previewPath&&e.push(o.setThumbnailCache(n.Z.CHARACTER_STYLE_THUMBNAIL_SIZE,t.previewPath)),e.push(o.endOperation()),Promise.all(e).then((()=>{t.previewPath&&s._I(t.previewPath)})),i&&(0,f.vM)(o.representations[0],i),w.Z.revealElement(o)}))}))}))};function ee(e){Q(e,!0)}function te(e){Q(e,!1)}function re(e){if(!e.data)return Promise.reject(new Error("Empty Event sent"));const t=_(e.data);if(!t)return Promise.reject(new Error("Library Not Found"));if(!(0,f.oY)(t))return Promise.reject(new Error("Could not create element: library is read-only"));const r=e=>{const r=[{path:e.representations[0].source.path,relationship:"primary",data:[{namespace:"3d",key:"data",value:e.representations[0]["3d#data"]}],moveFile:!1}];return function(e,t,r=[],n,i,o){for(let e=0;e<r.length;e++)if(!s.xW(r[e].path))return Promise.reject(new Error(`Could not add new element: path ${r[e].path} does not exist`));for(let e=0;e<r.length;e++)if(!s.lc(r[e].path))return Promise.reject(new Error(`Could not add new element: ${r[e].path} not supported`));if(n&&!s.xW(n))return Promise.reject(new Error(`Could not add new element: thumbnail path ${n} does not exist`));if(!i)return Promise.reject(new Error("Could not add new element: no library"));if(!(0,f.oY)(i,!0))return Promise.reject(new Error("Could not create element: library is read-only"));if(!(0,f.mM)(r,!0))return Promise.reject(new Error("Could not create element: one or more files exceed 1GB limit"));const a=(0,f.MN)(i,t,e,{opType:o}),c=[];if(r.forEach((t=>{const r=t.type||s.pH(t.path,e),n=a.createRepresentation(r,t.relationship);t.data&&t.data.forEach((e=>n.setValue(e.namespace,e.key,e.value))),c.push(n.setContentFromPath(t.path,t.moveFile).then((()=>{t.dimensions&&(n.width=t.dimensions.width,n.height=t.dimensions.height)})))})),n){const e=u.Z.getThumbnailSize(a);c.push((0,f.bf)(a,e,n))}return Promise.all(c).then((()=>(a.endOperation(),a))).catch((e=>(i.removeElement(a,!0),Promise.reject(new Error(`Could not create element: ${e}`)))))}(n.Z.MATERIAL_ELEMENT_TYPE,e.name,r,e.representations[1].source.path,t,"Existing")};return o.Z.execApp("getSelectedMaterialList").then((e=>{if(!e)return Promise.reject(new Error("Could Not get selected materials"));try{(e=JSON.parse(e)).filter((e=>e)).map(r)}catch(e){return Promise.reject(new Error("Add Material Failed"))}}))}function ne(){ne=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ie(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function oe(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ie(o,n,i,a,s,"next",e)}function s(e){ie(o,n,i,a,s,"throw",e)}a(void 0)}))}}const ae=()=>{n.Z.currentProduct.fontManager.invalidateFontList()},se=()=>{p.Z.handleSelectionChange()},ce=()=>{h.Z.isStockSearchMode()||h.Z.resetMode()};function le(){const e=i.ZP.libraries.filter((e=>!e.isDeletedFromServer)).map((e=>({name:e.name,id:e.id,writable:e.isWritable}))),t=i.ZP.currentLibrary,r=t?e.findIndex((e=>e.id===t.id)):-1,n=o.Z.createEvent("ILST.libraryListUpdated","APPLICATION");n.data={names:e,current:r},o.Z.dispatchEvent(n)}const ue=()=>{i.ZP.sync(!1,!1)},de=e=>{_(e.data)},pe=function(){var e=oe(ne().mark((function e(t){var r,c,l;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.data&&void 0!==t.data.elementRef){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,i.ZP.resolveElementReference(t.data.elementRef);case 4:if(r=e.sent,c=d.wq(r),!(l=u.Z.findUsableRepresentation(r,s.ku(n.Z.IMAGE_ELEMENT_TYPE)))){e.next=9;break}return e.abrupt("return",l.getContentPath().then((e=>o.Z.execApp("placeAsset",[e,r.library.name,r.name,r.getLegacyReference(),(0,f.RW)(r),r.created,c,c?d.kv(r):null,!0,!0]))));case 9:return e.abrupt("return",r.getThumbnailPath().then((e=>o.Z.execApp("placeAsset",[e,r.library.name,r.name,r.getLegacyReference(),(0,f.RW)(r),r.created,c,c?d.kv(r):null,!0,!0])),(e=>a.Z.log(e))));case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),he=function(){var e=oe(ne().mark((function e(t){var r,a;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.data||void 0===t.data.elementRef){e.next=7;break}return e.next=3,i.ZP.resolveElementReference(t.data.elementRef);case 3:if(r=e.sent,!(a=u.Z.findUsableRepresentation(r,s.ku(n.Z.TEMPLATE_ELEMENT_TYPE)))){e.next=7;break}return e.abrupt("return",a.getContentPath().then((e=>o.Z.execApp("openDocumentFromTemplate",[e]))));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),fe=function(){var e=oe(ne().mark((function e(t){var r,a,s,c;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(e,t,r)=>{const n=o.Z.createEvent("ILST.textFileCreated","APPLICATION"),i={};e&&(i.stripStyle=t,i.path=e,i.usingContextMenu=!1,i.placeInline=!1,i.contextData=r),n.data=JSON.stringify(i),o.Z.dispatchEvent(n)},t.data&&void 0!==t.data.elementRef){e.next=4;break}return r(),e.abrupt("return");case 4:return e.next=6,i.ZP.resolveElementReference(t.data.elementRef);case 6:a=e.sent,s=u.Z.findUsableRepresentation(a),a.type===n.Z.TEXT_ELEMENT_TYPE&&s&&(s.type===n.Z.TEXT_REPRESENTATION_JSON_TYPE?((c=s.getValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY)).id=a.id+";"+a.modified,c.type="text",o.Z.execApp("getAiFileForText",[c]).then((e=>r(e,t.data.stripStyle,t.data.contextData)),r)):"application/illustrator-text"===s.type&&s.getContentPath().then((e=>r(e,t.data.stripStyle,t.data.contextData))));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();var me=r(77560),ge=r(76572);class ve extends ge.Z{constructor(...e){super(...e),this._addBrushToDocument=function(e,t){return(0,f.vM)(t,"useBrush"),t.getContentPath().then((t=>o.Z.execApp("loadAndSelectBrush",[t,e.name])))}}getApplyOperations(e){const t=s.ku(e.type),r=e.representations.find((e=>{const r="rendition"===e.relationship,n=this._config.isRepresentationCompatible(e,t);return!r&&n}));return p.Z.getLayerInfo()&&r?[{name:"DL_ADD_BRUSH_TO_DOC",icon:"brush",onClick:!0,apply:()=>this._addBrushToDocument(e,r),displayInMenu:!0}]:[]}}var ye=r(16771);class be extends ye.Z{_setColor(e,t,r,i){return r||(r=[],e.representations.forEach((t=>{const i=t.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY),o=K(t);o&&(i.global=o.global);const a=e.name;i.name=a,"primary"===t.relationship?r.unshift(i):r.push(i)})),e.representations.length>0&&(E(m,"Color",y),(0,f.vM)(e.representations[0],t))),i&&i(t),o.Z.execApp(t,[r]).then((e=>{"true"===e&&function(){const e=o.Z.createEvent("ILST.SpotMismtached","APPLICATION");o.Z.dispatchEvent(e)}()}))}getApplyOperations(e){const t=p.Z.getLayerInfo();return t?t.selectionExists||t.textSelectionExists||t.insertionPointExists?[{name:"DL_SET_COLOR_TOOLTIP",icon:"paintbucket",apply:(t,r)=>this._setColor(e,"setColor",t,r),displayInMenu:!0,onClick:!0},{name:"DL_ID_ADD_COLORS_TOOLTIP",icon:"paintbucket",allowMultiple:!0,apply:(t,r)=>this._setColor(e,"addColor",t,r),displayInMenu:!0}]:[{name:"DL_ID_ADD_COLORS_TOOLTIP",icon:"paintbucket",allowMultiple:!0,apply:(t,r)=>this._setColor(e,"addColor",t,r),displayInMenu:!0}]:[]}defaultEditOperation(e){const t=this._config.findUsableRepresentation(e),r=t&&t.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY),i=t&&K(t);return i&&(r.global=i.global),o.Z.execApp("replaceColor",[r]).then((t=>{if(JSON.parse(t))return o.Z.execApp("getLayerColor",[]).then((t=>{const r=JSON.parse(t);e.beginOperation(),e.removeAllRepresentations(),r.forEach(((t,r)=>{const i=0===r?"primary":"rendition",o=e.createRepresentation(n.Z.COLOR_REPRESENTATION_TYPE,i);"global"in t&&($(o,t),delete t.global),o.setValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY,t)})),e.endOperation()}))}))}}var _e=r(38122);class Ee extends _e.Z{_addThemeAsSwatchGroup(e){const t=e.getPrimaryRepresentation(),r=t&&t.getValue("colortheme","data");return o.Z.execApp("addSwatchGroup",[r,e.name]).then((e=>{"undefined"===e&&E(m,"Swatch_Groups",y),(0,f.vM)(t,"AddColorTheme")}))}getApplyOperations(e,t){const r=super.getApplyOperations(e,t);return p.Z.getLayerInfo()&&r.push({name:"DL_ADD_COLORTHEME_TO_SWATCHES",icon:"download",displayInMenu:!0,allowMultiple:!0,apply:()=>this._addThemeAsSwatchGroup(e)}),r}}var we=r(68051);class xe extends we.Z{_setFont(e,t,r){E(m,g,b),super._setFont(e,t,r)}}var Le=r(74379),Oe=r(86423);class Se extends Oe.Z{_fixGradientData(e){const t=e.getValue(n.Z.GRADIENT_NAMESPACE,n.Z.GRADIENT_DATA_KEY);e.getValue(n.Z.GRADIENT_NAMESPACE,"trackingdata")&&1===(null==t?void 0:t.smoothness)&&delete t.smoothness}_applyCustomGradient(e){const t=this._config.findUsableRepresentation(e);if(t){const r=t.getValue(n.Z.GRADIENT_NAMESPACE,n.Z.GRADIENT_DATA_KEY);if(r)return this._fixGradientData(t),r.name=e.name,(0,f.vM)(t,"applyCustomGradient"),o.Z.execApp("applyCustomGradient",[r])}}_alertGradientSameName(){const e=o.Z.createEvent("ILST.isGradientSameName","APPLICATION");o.Z.dispatchEvent(e)}_checkGradientSameName(e){return o.Z.execApp("isGradientSameName",[e]).then((e=>"true"===e&&(this._alertGradientSameName(),!0)))}_addGradientAsSwatch(e,t,r){return this._checkGradientSameName(e.name).then((i=>{if(i)return Promise.resolve();if(!r){r=[];const t=e.getPrimaryRepresentation();if(t){const i=t.getValue(n.Z.GRADIENT_NAMESPACE,n.Z.GRADIENT_DATA_KEY);i.name=e.name,r.push(i)}}return o.Z.execApp(t,[r])}))}getApplyOperations(e){if(!e||this.isDisabled(e))return[];const t=p.Z.getLayerInfo();return t?t.selectionExists||t.textSelectionExists||t.insertionPointExists?[{name:"DL_SET_FILL_GRADIENT_TOOLTIP",onClick:!0,apply:()=>this._applyCustomGradient(e),displayInMenu:!0},{name:"DL_ID_ADD_GRADIENTS_TOOLTIP",icon:"paintbucket",allowMultiple:!0,apply:t=>this._addGradientAsSwatch(e,"addGradientAsSwatch",t),displayInMenu:!0}]:[{name:"DL_ID_ADD_GRADIENTS_TOOLTIP",icon:"paintbucket",allowMultiple:!0,apply:t=>this._addGradientAsSwatch(e,"addGradientAsSwatch",t),displayInMenu:!0}]:[]}_createFillGradient(e,t,r){const i=e.gradientColor.fillGradient?e.gradientColor.fillGradient.data[0]:null,o=(()=>{if(i){const e=(0,f.In)(t,"",this.typeName),o=(0,f.MN)(t,e,n.Z.GRADIENT_ELEMENT_TYPE,{opType:r});return o.createRepresentation(n.Z.GRADIENT_REPRESENTATION_TYPE,"primary").setValue(n.Z.GRADIENT_NAMESPACE,n.Z.GRADIENT_DATA_KEY,i),o.endOperation(),o}return null})();return Promise.resolve(o)}_createStrokeGradient(e,t,r){const i=e.gradientColor.strokeGradient?e.gradientColor.strokeGradient.data[0]:null,o=(()=>{if(i){const e=(0,f.In)(t,"",this.typeName),o=(0,f.MN)(t,e,n.Z.GRADIENT_ELEMENT_TYPE,{opType:r});return o.createRepresentation(n.Z.GRADIENT_REPRESENTATION_TYPE,"primary").setValue(n.Z.GRADIENT_NAMESPACE,n.Z.GRADIENT_DATA_KEY,i),o.endOperation(),o}return null})();return Promise.resolve(o)}getAddOperations(e){if(!e||!e.gradientColor)return[];const t=(t,r)=>new Promise((n=>{p.Z.updateLayerInfo().then((()=>n(this._createFillGradient(e,t,r))))})),r=(t,r)=>new Promise((n=>{p.Z.updateLayerInfo().then((()=>n(this._createStrokeGradient(e,t,r))))}));let n=[];return e.gradientColor.fillGradient&&n.push({name:"DL_TYPE_FILL_GRADIENT_SINGULAR",style:Object.assign((0,Le.mr)(e.gradientColor.fillGradient.data[0],!1,!1),{border:"1px solid",width:"14px",height:"14px",margin:"1px 8px 1px 0px"}),apply:(e,r)=>t(e,r)}),e.gradientColor.strokeGradient&&n.push({name:"DL_TYPE_STROKE_GRADIENT_SINGULAR",style:Object.assign((0,Le.mr)(e.gradientColor.strokeGradient.data[0],!1,!1),{border:"1px solid",width:"14px",height:"14px",margin:"1px 8px 1px 0px"}),apply:(e,t)=>r(e,t)}),n}isDisabled(e){const t=e.getPrimaryRepresentation(),r=t&&t.getValue("gradient","data");return r&&!["radial","linear"].includes(r.type)}}var Te=r(9494),Pe=r(48124),Ie=r(92098),Ae=r(80804);class Ce extends Pe.Z{_addImageToDocument(e,t){const r=d.wq(e),n=this._config.findUsableRepresentation(e);return n?((0,f.vM)(n,"placeAsset",t),n.getContentPath().then((n=>o.Z.execApp("placeAsset",[n,e.library.name,e.name,e.getLegacyReference(),(0,f.RW)(e),e.created,r,r?d.kv(e):null,t])))):e.getThumbnailPath().then((n=>((0,f.dN)(e,"placeAsset",t),o.Z.execApp("placeAsset",[n,e.library.name,e.name,e.getLegacyReference(),(0,f.RW)(e),e.created,r,r?d.kv(e):null,t]))))}getApplyOperations(e){return p.Z.getLayerInfo()?[{name:"DL_ADD_IMAGE_TO_DOC_AS_LINKED",icon:"download",apply:()=>this._addImageToDocument(e,!0),displayInMenu:!0},{name:"DL_ADD_IMAGE_TO_DOC_AS_COPY",icon:"download",apply:()=>this._addImageToDocument(e,!1),displayInMenu:!0}]:[]}_getLockId(e){return"documentLock_"+e.id}_onDocumentClose(e,t){const r=this._getLockId(e);Te.Z.obtainLock(r,(()=>{Ae.Z.stopListening(t.listenerId),t.isClosed=!0,!1===t.isSaveInProgress&&Ie.Z.deleteTempFile(t.tempPath),x.Z.elementEditCompleted(e),Te.Z.releaseLock(r)}))}_onDocumentSave(e,t){if(!(0,f.ii)(t.tempPath))return;t.isSaveInProgress=!0;let r=e.library;const a=r.name,l=!r||r.isDeletedLocally;let u=!1;if(l||!r.isWritable){if(r=i.ZP.getRecoveryLibrary(r.name),!r)return;u=!0}const p=this._getLockId(e);Te.Z.obtainLock(p,(()=>{const i=d.si(e);e.isDeletedLocally||u?e=r.createElement(e.name,e.type):(e.beginOperation(),e.removeAllRepresentations());const h=[],m=s.pH(t.tempPath,e.type),g=e.createRepresentation(m,"primary");i&&d.i2(g,i),h.push(g.setContentFromPath(t.tempPath));const v=s.K3(t.tempPath)+".png";v&&s.xW(v)&&h.push((0,f.bf)(e,n.Z.IMAGE_THUMBNAIL_SIZE,v));const y=()=>{x.Z.sendElementUpdated(g);const n=e.endOperation();Te.Z.releaseLock(p),u&&(w.Z.revealElement(e),l?o.Z.showError((0,c.Iu)("DL_WARNING_RECOVERED_FROM_DELETED",{recoveryLibraryName:r.name})):o.Z.showError((0,c.Iu)("DL_WARNING_RECOVERED_FROM_READONLY",{recoveryLibraryName:r.name,originalLibraryName:a}))),n.then((()=>{t.isClosed?Ie.Z.deleteTempFile(t.tempPath):Ie.Z.updateTempFile(g,t.tempPath),t.isSaveInProgress=!1}))};Promise.all(h).then(y,y)}))}defaultEditOperation(e){if(!this._config.isEditable(e))return!1;const t=e.getPrimaryRepresentation();Ie.Z.getTempFile(t).then((t=>{const r=s.K3(t)+".png";o.Z.execApp("openAssetForEdit",[t,r,"Image"]).then((r=>{const n=o.Z.createEvent("com.adobe.illustrator.FitCurrentDocumentViewToActiveArtboard","APPLICATION");o.Z.dispatchEvent(n);const i={tempPath:t,isClosed:!1,isSaveInProgress:!1};i.listenerId=Ae.Z.startListening(r,t,(t=>{"closed"===t?this._onDocumentClose(e,i):"saved"===t&&this._onDocumentSave(e,i)}))}))}))}isDisabled(e){return!this._config.findUsableRepresentation(e)&&!e.getCachedThumbnailPath()}}var ke=r(74244);class De extends ke.Z{_setStyleInfo(e,t,r){e.type="parastyle",e.name=t,e.id=r}_useParaStyle(e,t,r){const n=1===r.index,i=r.index===r.length,a=this._config.findUsableRepresentation(e);if((0,f.vM)(a,t),a){const r=e.name,s=e.id+";"+e.modified;if("application/vnd.adobe.paragraphstyle+json"===a.type){const e=a.getValue("paragraphstyle","data");return this._setStyleInfo(e,r,s),o.Z.execApp(t,[e,n,i])}}}_setParaStyle(e,t){return E(m,v,b),this._useParaStyle(e,"setFont",t)}_createTextLayer(e,t){return E(m,v,y),this._useParaStyle(e,"createTextLayer",t)}getApplyOperations(e,t,r){const n=p.Z.getLayerInfo();if(!n)return[];const i=[];return n&&"LayerKind.TEXT"===n.kind&&i.push({name:"DL_SET_PARA_STYLE_TOOLTIP",icon:"text",onClick:!0,apply:()=>this._setParaStyle(e,r),displayInMenu:!0}),i.push({name:"DL_ADD_AS_PARA_STYLE_TOOLTIP",icon:"pastetext",apply:()=>this._createTextLayer(e,r),displayInMenu:!0,allowMultiple:!0}),i}}var Ne=r(95134);function Re(){Re=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Me(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function je(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Me(o,n,i,a,s,"next",e)}function s(e){Me(o,n,i,a,s,"throw",e)}a(void 0)}))}}class Fe extends Ne.Z{constructor(...e){super(...e),this.dragType="image",this.allowDragWithoutUsableRepresentation=!0}_applyPattern(e,t){let r;return r=t&&n.Z.currentProduct.config.enableSVGPatterns?t:this._config.findUsableRepresentation(e),r?((0,f.vM)(r,"applyPattern"),r.getContentPath().then((t=>{const i=o.Z.createEvent("ILST.patternApplied","APPLICATION"),a=r.getValue(n.Z.PATTERN_NAMESPACE,n.Z.PATTERN_DATA_KEY);return i.data={path:t,type:r.type,name:e.name},a&&(i.data.patternStyle=a),o.Z.dispatchEvent(i)}))):e.getThumbnailPath().then((t=>{(0,f.dN)(e,"applyPattern");const r=o.Z.createEvent("ILST.patternApplied","APPLICATION");return r.data={path:t,name:e.name},o.Z.dispatchEvent(r)}))}_addImageToDocument(e,t=!1){const r=d.wq(e),n=this._config.findUsableRepresentation(e);return n?((0,f.vM)(n,"placeAsset",t),n.getContentPath().then((n=>o.Z.execApp("placeAsset",[n,e.library.name,e.name,e.getLegacyReference(),(0,f.RW)(e),e.created,r,r?d.kv(e):null,t])))):e.getThumbnailPath().then((n=>((0,f.dN)(e,"placeAsset",t),o.Z.execApp("placeAsset",[n,e.library.name,e.name,e.getLegacyReference(),(0,f.RW)(e),e.created,r,r?d.kv(e):null,t]))))}_addVectorPatternTileToDocument(e,t,r=!1){const n=d.wq(e);return(0,f.vM)(t,"placeAsset",r),t.getContentPath().then((t=>o.Z.execApp("placeAsset",[t,e.library.name,e.name,e.getLegacyReference(),(0,f.RW)(e),e.created,n,n?d.kv(e):null,r])))}getApplyOperations(e){const t=p.Z.getLayerInfo();if(!t)return[];const r=e.representations.find((t=>{const r="application/illustrator"===t.type,n=this._config.isRepresentationCompatible(t,s.ku(e.type));return r&&n})),n=[{name:"DL_ADD_PATTERN_TO_DOC_AS_IMAGE_AS_COPY",icon:"download",apply:()=>this._addImageToDocument(e),displayInMenu:!0}];return r&&n.push({name:"DL_ADD_VECTOR_PATTERN_TILE_TO_DOC_AS_COPY",icon:"download",apply:()=>this._addVectorPatternTileToDocument(e,r),displayInMenu:!0}),(t.selectionExists||t.textSelectionExists||t.insertionPointExists)&&n.push({name:"DL_APPLY_PATTERN",icon:"paintbucket",apply:()=>this._applyPattern(e,r),displayInMenu:!0,onClick:!0}),n}getDragData(e){const t=this._config.findUsableRepresentation(e);let r;if(t&&(r=t.getCachedContentPath()),r)return{data:[r],placeType:"unlinked",usedRepresentationForAnalytics:t}}_createFillPattern(e){return je(Re().mark((function t(){var r,n,i;return Re().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=null==e||null===(r=e.patternColor)||void 0===r?void 0:r.fillPattern)){t.next=6;break}return t.next=4,W(n,"add");case 4:return i=t.sent,t.abrupt("return",i);case 6:return t.abrupt("return",null);case 7:case"end":return t.stop()}}),t)})))()}_createStrokePattern(e){return je(Re().mark((function t(){var r,n,i;return Re().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=null==e||null===(r=e.patternColor)||void 0===r?void 0:r.strokePattern)){t.next=6;break}return t.next=4,W(n,"add");case 4:return i=t.sent,t.abrupt("return",i);case 6:return t.abrupt("return",null);case 7:case"end":return t.stop()}}),t)})))()}getAddOperations(e){if(!e||!e.patternColor)return[];const t=()=>p.Z.updateLayerInfo().then((()=>this._createFillPattern(e))),r=()=>p.Z.updateLayerInfo().then((()=>this._createStrokePattern(e))),n=[];return e.patternColor.fillPattern&&n.push({name:"DL_ADD_FILL_PATTERN",icon:"AddPattern",apply:()=>t()}),e.patternColor.strokePattern&&n.push({name:"DL_ADD_STROKE_PATTERN",icon:"AddPattern",apply:()=>r()}),n}}var Ze=r(54712);class Be extends Ze.Z{_openDocumentFromTemplate(e,t,r){return r?o.Z.showError((0,c.Iu)(d.hr(e))):((0,f.vM)(t,"useTemplate"),t.getContentPath().then((t=>o.Z.execApp("openDocumentFromTemplate",[t,e.name]))))}getApplyOperations(e){const t=s.ku(e.type),r=e.representations.find((e=>{const r="rendition"===e.relationship,n=this._config.isRepresentationCompatible(e,t);return!r&&n})),n=!r&&this._config.isRepresentationCompatible(e.getPrimaryRepresentation(),t,!0);return r||n?[{name:"DL_OPEN_DOC_FROM_TEMPLATE",icon:"template",onDoubleClick:!0,apply:()=>this._openDocumentFromTemplate(e,r,n),displayInMenu:!0}]:[]}}var Ge=r(91696);class Ue extends Ge.Z{_sendAiTextFileCreatedEvent(e,t,r){const n=o.Z.createEvent("ILST.textFileCreated","APPLICATION"),i={};e&&(i.stripStyle=t,i.placeInline=r,i.path=e,i.usingContextMenu=!0),n.data=JSON.stringify(i),o.Z.dispatchEvent(n)}_useText(e,t,r,i){const a=this._config.findUsableRepresentation(e);if(!a)return;(0,f.vM)(a,t);const s=e.id+";"+e.modified;if(a.type===n.Z.TEXT_REPRESENTATION_JSON_TYPE){const e=a.getValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY);return e.id=s,e.type="text",o.Z.execApp(t,[e]).then((e=>this._sendAiTextFileCreatedEvent(e,r,i)))}return"application/illustrator-text"===a.type?a.getContentPath().then((e=>this._sendAiTextFileCreatedEvent(e,r,i))):void 0}_setText(e){return this._useText(e,"getAiFileForText",!1,!1)}_setPlainText(e){return this._useText(e,"getAiFileForText",!0,!1)}_setTextInline(e){return this._useText(e,"getAiFileForText",!1,!0)}getApplyOperations(e){const t=p.Z.getLayerInfo();return t?!0===t.textSelectionExists||!0===t.insertionPointExists?[{name:"DL_ADD_TEXT_INLINE_AI",icon:"text",onClick:!1,apply:()=>this._setTextInline(e),displayInMenu:!0}]:[{name:"DL_ADD_TEXT_UNLINKED_AI",icon:"text",onClick:!1,apply:()=>this._setText(e),displayInMenu:!0},{name:"DL_ADD_TEXT_UNLINKED_NOSTYLES",icon:"text",onClick:!1,apply:()=>this._setPlainText(e),displayInMenu:!0}]:[]}_getLockId(e){return"documentLock_"+e.id}_onDocumentClose(e,t){const r=this._getLockId(e);Te.Z.obtainLock(r,(()=>{Ae.Z.stopListening(t.listenerId),t.isClosed=!0,!1===t.isSaveInProgress&&Ie.Z.deleteTempFile(t.tempPath),x.Z.elementEditCompleted(e),Te.Z.releaseLock(r)}))}_onDocumentSave(e,t){if(!(0,f.ii)(t.tempPath))return;if(t.isSaveInProgress=!0,!s.xW(t.tempPath))return void(t.isSaveInProgress=!1);let r=e.library;const a=r.name,l=!r||r.isDeletedLocally;let u=!1;if(l||!r.isWritable){if(r=i.ZP.getRecoveryLibrary(r.name),!r)return;u=!0}const d=this._getLockId(e);Te.Z.obtainLock(d,(()=>{o.Z.execApp("getUpdatedTextInfo",[t.tempPath]).then((i=>{const p=[],h=JSON.parse(i);if(!0!==h.isValidSave)return;e.isDeletedLocally||u?e=r.createElement(e.name,e.type):(e.beginOperation(),e.removeAllRepresentations());const m=h.textData,g=s.pH(t.tempPath,e.type),v=e.createRepresentation(g,"primary");p.push(v.setContentFromPath(t.tempPath)),e.createRepresentation(n.Z.TEXT_REPRESENTATION_JSON_TYPE,"rendition").setValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY,m.textInfo);const y=s.K3(t.tempPath)+".png";y&&s.xW(y)&&p.push((0,f.bf)(e,n.Z.IMAGE_THUMBNAIL_SIZE,y));const b=()=>{x.Z.sendElementUpdated(v);const n=e.endOperation();Te.Z.releaseLock(d),u&&(w.Z.revealElement(e),l?o.Z.showError((0,c.Iu)("DL_WARNING_RECOVERED_FROM_DELETED",{recoveryLibraryName:r.name})):o.Z.showError((0,c.Iu)("DL_WARNING_RECOVERED_FROM_READONLY",{recoveryLibraryName:r.name,originalLibraryName:a}))),n.then((()=>{t.isClosed?Ie.Z.deleteTempFile(t.tempPath):Ie.Z.updateTempFile(v,t.tempPath),t.isSaveInProgress=!1}))};Promise.all(p).then(b,b)}))}))}defaultEditOperation(e){if(!this._config.isEditable(e))return!1;const t=e.getPrimaryRepresentation();Ie.Z.getTempFile(t).then((t=>{const r=s.K3(t)+".png";o.Z.execApp("openAssetForEdit",[t,r,"text"]).then((r=>{const n={tempPath:t,isClosed:!1,isSaveInProgress:!1};n.listenerId=Ae.Z.startListening(r,t,(t=>{"closed"===t?this._onDocumentClose(e,n):"saved"===t&&this._onDocumentSave(e,n)}))}))}))}}var He=r(54142),ze=r(13293);const Ve="application/vnd.adobe.characterstyle+json",Ye="characterstyle",We="data";class Ke extends He.Z{constructor(...e){super(...e),this._setTextStyle=function(e,t){return E(m,g,b),this._useTextStyle(e,"setFont",t)},this._createTextLayer=function(e,t){return E(m,g,y),this._useTextStyle(e,"createTextLayer",t)}}_setStyleInfo(e,t,r){e.type="charstyle",e.name=t,e.id=r}_useTextStyle(e,t,r){const n=1===r.index,i=r.index===r.length,a=this._config.findUsableRepresentation(e);if(!a)return;const s=ze.R(e);s&&s.id?(0,f.vM)(a,t,null,{event:{value:"typekit"}}):(0,f.vM)(a,t);const c=e.name,l=e.id+";"+e.modified;if(a.type===Ve){const e=a.getValue(Ye,We);return this._setStyleInfo(e,c,l),o.Z.execApp(t,[e,n,i])}}getApplyOperations(e,t,r){const n=p.Z.getLayerInfo();if(!n)return[];const i=[];return"LayerKind.TEXT"===n.kind&&i.push({name:"DL_SET_TEXT_STYLE_TOOLTIP",icon:"text",onClick:!0,apply:()=>this._setTextStyle(e,r),displayInMenu:!0}),i.push({name:"DL_ADD_AS_TEXT_STYLE_TOOLTIP",icon:"pastetext",apply:()=>this._createTextLayer(e,r),displayInMenu:!0,allowMultiple:!0}),i}_addTextStyleElement(e,t,r){return e&&"LayerKind.TEXT"===e.kind?o.Z.execApp("getCharStyleInfo").then((e=>{const i=JSON.parse(e);i.styleName||(i.styleName=(0,c.Iu)("DL_TYPE_NEW_CHAR_STYLE"));const o=(0,f.MN)(t,i.styleName,n.Z.CHARACTER_STYLE_ELEMENT_TYPE,{opType:r});o.createRepresentation(Ve,"primary").setValue(Ye,We,i.styleInfo);const a=[];if(i.previewPath){const e=o.createRepresentation("image/png","rendition");a.push(e.setContentFromPath(i.previewPath))}return Promise.all(a).then((()=>{const e=[];return i.previewPath&&e.push(o.setThumbnailCache(n.Z.CHARACTER_STYLE_THUMBNAIL_SIZE,i.previewPath)),e.push(o.endOperation()),Promise.all(e).then((()=>{i.previewPath&&s._I(i.previewPath)})),o})).catch((()=>(t.removeElement(o,!0),Promise.reject("Could not create element."))))})):Promise.reject("not a text layer")}getAddOperations(e){return e&&e.text&&!1!==e.isAppliedCharStyleSupported?[{name:"DL_ADD_TEXT_STYLE_NAME",order:2,icon:"AddCharacterStyle",apply:(t,r)=>new Promise((n=>{p.Z.updateLayerInfo().then((()=>n(this._addTextStyleElement(e,t,r))))}))}]:[]}}function $e(){return this.config={},this.config.code="ILST",this.config.fullName="Illustrator",this.config.translationSuffix="AI",this.config.dragDropSource="com.adobe.illustrator",this.config.offsetSelectMenu=!0,this.config.enableSVGPatterns=!1,this.config.usesEscapedFilePathsInEvents=!0,this.config.themes={323232:"darker",535353:"dark",b8b8b8:"light",f0f0f0:"lighter"},this.config.legacySpectrumEnabled=!0,this.config.defaultTheme="dark",this.config.elementTypes=[be,Ee,Se,Ue,Ke,xe,De,Ce,ve,Be,Fe,me.Z.ComponentElementConfig,me.Z.VideoElementConfig,me.Z.LookElementConfig,me.Z.CapsuleElementConfig,me.Z.ThreeDElementConfig,me.Z.LayerStyleElementConfig,me.Z.AnimationElementConfig,me.Z.LightElementConfig,me.Z.MaterialElementConfig,me.Z.AudioElementConfig,me.Z.ChannelElementConfig,me.Z.ImageGuidelineElementConfig,me.Z.UnsupportedElementConfig],this.config.collapsedTypes=[n.Z.VIDEO_ELEMENT_TYPE,n.Z.LOOK_ELEMENT_TYPE,n.Z.CAPSULE_ELEMENT_TYPE,n.Z.THREE_D_ELEMENT_TYPE,n.Z.LAYER_STYLE_ELEMENT_TYPE,n.Z.ANIMATION_ELEMENT_TYPE,n.Z.LIGHT_ELEMENT_TYPE,n.Z.AUDIO_ELEMENT_TYPE,n.Z.CHANNEL_ELEMENT_TYPE,n.Z.IMAGE_GUIDELINE_ELEMENT_TYPE,n.Z.UNSUPPORTED_ELEMENT_TYPE],this.config.includeGuidInTempFileName=!0,this.startEventListener=function(){o.Z.addEventListener("documentAfterDeactivate",ce),o.Z.addEventListener("artSelectionChanged",se),o.Z.addEventListener("fontListChanged",ae),o.Z.addEventListener("ILST.addElementToLibrary",j),o.Z.addEventListener("ILST.updateElement",F),o.Z.addEventListener("ILST.forceSyncLibrary",ue),o.Z.addEventListener("ILST.pushColorsToLibrary",J),o.Z.addEventListener("ILST.pushCharStyleToLibrary",ee),o.Z.addEventListener("ILST.pushParaStyleToLibrary",te),o.Z.addEventListener("ILST.addSelectionToLibrary",U),o.Z.addEventListener("ILST.workspaceChanged",de),o.Z.addEventListener("ILST.openStock",pe),o.Z.addEventListener("ILST.openStockTemplate",he),o.Z.addEventListener("ILST.getTextAsAiFile",fe),o.Z.addEventListener("ILST.pushMaterialsToLibrary",re),o.Z.addEventListener("ILST.getPatternFiles.response",Y)},this.stopEventListener=function(){o.Z.removeEventListener("documentAfterDeactivate",ce),o.Z.removeEventListener("artSelectionChanged",se),o.Z.removeEventListener("fontListChanged",ae),o.Z.removeEventListener("ILST.addElementToLibrary",j),o.Z.removeEventListener("ILST.updateElement",F),o.Z.removeEventListener("ILST.forceSyncLibrary",ue),o.Z.removeEventListener("ILST.pushColorsToLibrary",J),o.Z.removeEventListener("ILST.pushCharStyleToLibrary",ee),o.Z.removeEventListener("ILST.pushParaStyleToLibrary",te),o.Z.removeEventListener("ILST.addSelectionToLibrary",U),o.Z.removeEventListener("ILST.workspaceChanged",de),o.Z.removeEventListener("ILST.openStock",pe),o.Z.removeEventListener("ILST.openStockTemplate",he),o.Z.removeEventListener("ILST.getTextAsAiFile",fe),o.Z.removeEventListener("ILST.pushMaterialsToLibrary",re),o.Z.removeEventListener("ILST.getPatternFiles.response",Y)},this.fontManager=new l.Z,this.init=function(){s.Zh(n.Z.IMAGE_ELEMENT_TYPE,["image/png","image/jpeg","image/jpg","image/svg+xml","application/photoshop","application/photoshop.large","image/vnd.adobe.photoshop","application/illustrator","application/pdf"]),s.Zh(n.Z.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),s.Zh(n.Z.BRUSH_ELEMENT_TYPE,["application/vnd.adobe.vector.brush+zip"]),s.Zh(n.Z.CHARACTER_STYLE_ELEMENT_TYPE,["application/vnd.adobe.characterstyle+json"]),s.Zh(n.Z.FONT_ELEMENT_TYPE,["application/vnd.adobe.font+json"]),s.Zh(n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,["application/vnd.adobe.paragraphstyle+json"]),s.Zh(n.Z.TEMPLATE_ELEMENT_TYPE,["application/illustrator.template","application/vnd.adobe.illustrator.template"]),s.Zh(n.Z.PATTERN_ELEMENT_TYPE,["image/vnd.adobe.pattern+png","image/svg+xml","application/illustrator"]),s.Zh(n.Z.TEXT_ELEMENT_TYPE,["application/vnd.adobe.text+json","application/illustrator-text"]),s.Zh(n.Z.COMPONENT_ELEMENT_TYPE,["image/svg+xml","image/png"]),s.Zh(n.Z.MATERIAL_ELEMENT_TYPE,["application/vnd.adobe.sbsar+zip","application/vnd.adobe.mdl.material+zip"]),s.Zh(n.Z.GRADIENT_ELEMENT_TYPE,["application/vnd.adobe.gradient+json"]),s.Dk(n.Z.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),s.Dk(n.Z.IMAGE_ELEMENT_TYPE,["image/svg+xml","application/illustrator"]),s.Dk(n.Z.TEXT_ELEMENT_TYPE,["application/illustrator-text"]),o.Z.execApp("setThumbnailExportOptions"),o.Z.execApp("getTooltipState").then((function(e){n.Z.showTooltips=e})),o.Z.exec("CORE","getApplicationVersion",[]).then((e=>{try{const t=parseInt(e.split(".")[0]);this.config.enableSVGPatterns=t>=23}catch(e){}})),this.startEventListener(),i.ZP.waitForInitialLoad().then((function(){const e=o.Z.createEvent("com.adobe.DesignLibraries.events.READY","APPLICATION");o.Z.dispatchEvent(e)})),i.ZP.addListener("libraryList",(function(){le()})),i.ZP.addListener("currentLibrary",(function(){le()}))},this.reportEvent=function(e,t){a.Z.log("Metric reported to AI"),t.event=e;const r=o.Z.createEvent("com.adobe.illustrator.LOGPIP","APPLICATION");r.data=JSON.stringify(t),o.Z.dispatchEvent(r),delete t.event},this.getUserData=function(e){o.Z.execApp("getUserData").then((function(t){if(!t||"undefined"===t)return e();e(JSON.parse(t))}))},this.config.useMouseEventToDetectDrop=!0,this.dropHandler=function(e,t){return a.Z.log("Illustrator drop handler",e),(o.Z.isWindowsOS()?t.ctrlKey:t.metaKey)&&"text"===e.assetList[0].type&&(e.assetList[0].type="image"),Promise.reject()},this.customDropMessage=function(e,t){const r=o.Z.isWindowsOS();if(!(r?t.ctrlKey:t.metaKey)&&"text"===e.assetList[0].type){const e="DL_CUSTOM_DROP_MESSAGE_ID_TEXT_"+(r?"WIN":"MAC");return(0,c.Iu)(e)}},this.allowCmdDrag=!0,this}},15577:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=new class{constructor(){this.colorModifiedByUser=""}Color(){this.spotMismatch=!1}isColorSupported(e){return"NoColor"!==e._className&&"GradientColor"!==e._className&&"PatternColor"!==e._className}isModeSupported(e){return e&&("RGB"===e.mode||"CMYK"===e.mode||"Gray"===e.mode)}colorToRGB(e){const t=window.app,r=new RGBColor;let n;switch(e._className){case"RGBColor":r.red=e.red,r.green=e.green,r.blue=e.blue;break;case"CMYKColor":n=t.convertSampleColor(ImageColorSpace.CMYK,[e.cyan,e.magenta,e.yellow,e.black],ImageColorSpace.RGB,ColorConvertPurpose.dummypurpose),r.red=n[0],r.green=n[1],r.blue=n[2];break;case"LabColor":n=t.convertSampleColor(ImageColorSpace.LAB,[e.l,e.a,e.b],ImageColorSpace.RGB,ColorConvertPurpose.dummypurpose),r.red=n[0],r.green=n[1],r.blue=n[2];break;case"GrayColor":n=t.convertSampleColor(ImageColorSpace.GrayScale,[e.gray],ImageColorSpace.RGB,ColorConvertPurpose.dummypurpose),r.red=n[0],r.green=n[1],r.blue=n[2];break;case"SpotColor":return this.colorToRGB(e.spot.color)}return r}colorToCMYK(e){const t=window.app,r=new CMYKColor;let n;switch(e._className){case"CMYKColor":r.cyan=e.cyan,r.magenta=e.magenta,r.yellow=e.yellow,r.black=e.black;break;case"RGBColor":n=t.convertSampleColor(ImageColorSpace.RGB,[e.red,e.green,e.blue],ImageColorSpace.CMYK,ColorConvertPurpose.dummypurpose),r.cyan=n[0],r.magenta=n[1],r.yellow=n[2],r.black=n[3];break;case"LabColor":n=t.convertSampleColor(ImageColorSpace.LAB,[e.l,e.a,e.b],ImageColorSpace.CMYK,ColorConvertPurpose.dummypurpose),r.cyan=n[0],r.magenta=n[1],r.yellow=n[2],r.black=n[3];break;case"GrayColor":n=t.convertSampleColor(ImageColorSpace.GrayScale,[e.gray],ImageColorSpace.CMYK,ColorConvertPurpose.dummypurpose),r.cyan=n[0],r.magenta=n[1],r.yellow=n[2],r.black=n[3];break;case"SpotColor":return this.colorToCMYK(e.spot.color)}return r}findRepWithMode(e,t){var r;return null===(r=e.filter((e=>e.mode===t)))||void 0===r?void 0:r[0]}getBestColorRepresentation(e){const t=e[0];return this.isModeSupported(t)?t:this.findRepWithMode(e,"RGB")}areDataSame(e,t){if(e.mode!==t.mode)return!1;const r=e.value,n=t.value;return Object.keys(r).forEach((e=>{if(t=e,parseFloat(r[t])!==parseFloat(n[t]))return!1;var t})),!0}dataToSolidColor(e){const t=window.app,r=t.activeDocument;if(Array.isArray(e)&&(e=this.getBestColorRepresentation(e)),"spot"===e.type){let n,i=!1;const o=new SpotColor;void 0!==e.name&&(e.spotColorName=e.name);try{n=r.spots.getByName(e.spotColorName);const t=this.solidColorToData(n.color),o=this.getBestColorRepresentation(t),a=this.areDataSame(o,e);this.spotMismatch=!a,i=!0}catch(e){i=!1}return i?(o.spot=n,o):(o.spot=t.activeDocument.spots.add(),o.spot.name=e.spotColorName,o.spot.color=this._colorByMode(e),o.spot.colorType=ColorModel.SPOT,o)}if("none"===e.type)return NoColor;if("registration"===e.type)return void 0===TEXT.RegistrationColor&&TEXT.updateRegistrationColor(),TEXT.RegistrationColor;if("process"===e.type&&e.global){let n,i=!1;const o=new SpotColor;void 0!==e.name&&(e.spotColorName=e.name);try{n=r.spots.getByName(e.spotColorName);const t=this.solidColorToData(n.color),o=this.getBestColorRepresentation(t),a=this.areDataSame(o,e);this.spotMismatch=!a,i=!0}catch(e){i=!1}return i?(o.spot=n,o):(o.spot=t.activeDocument.spots.add(),o.spot.name=e.spotColorName,o.spot.color=this._colorByMode(e),o.spot.colorType=ColorModel.PROCESS,o)}return this._colorByMode(e)}_colorByMode(e){let t=new RGBColor;if(e)switch(e.mode){case"RGB":t=new RGBColor,t.red=e.value.r,t.green=e.value.g,t.blue=e.value.b;break;case"CMYK":t=new CMYKColor,t.cyan=e.value.c,t.magenta=e.value.m,t.yellow=e.value.y,t.black=e.value.k;break;case"Lab":t=new LabColor,t.l=e.value.l,t.a=e.value.a,t.b=e.value.b;break;case"Gray":t=new GrayColor,t.gray=e.value}return t}solidColorToData(e){if(!this.isColorSupported(e))return;const t=window.app;let r,n=[];try{r=t.activeDocument.colorProfileName}catch(e){}if("SpotColor"===e._className){if(e.spot.colorType===ColorModel.SPOT)return n=this.solidColorToData(e.spot.color),n.map((function(t){return t.type="spot",t.spotColorName=e.spot.name,t.global=!0,t}));if(e.spot.colorType===ColorModel.PROCESS)return n=this.solidColorToData(e.spot.color),n.map((function(t){return t.type="process",t.spotColorName=e.spot.name,t.global=!0,t}))}const i=this.colorToRGB(e);return n.push({mode:"RGB",value:{r:i.red,g:i.green,b:i.blue},type:"process",global:!1,profileName:r}),"CMYKColor"===e._className&&n.unshift({mode:"CMYK",value:{c:e.cyan,m:e.magenta,y:e.yellow,k:e.black},type:"process",global:!1,profileName:r}),"LabColor"===e._className&&n.unshift({mode:"Lab",value:{l:e.l,a:e.a,b:e.b},type:"process",global:!1,profileName:r}),"GrayColor"===e._className&&n.unshift({mode:"Gray",value:e.gray,type:"process",global:!1,profileName:r}),n}getDisplayName(e){let t="";if(e)switch(e.mode){case"RGB":t+="R="+Math.round(e.value.r).toString(),t+=" G="+Math.round(e.value.g).toString(),t+=" B="+Math.round(e.value.b).toString();break;case"CMYK":t+="C="+Math.round(e.value.c).toString(),t+=" M="+Math.round(e.value.m).toString(),t+=" Y="+Math.round(e.value.y).toString(),t+=" K="+Math.round(e.value.k).toString();break;case"Lab":t+="L="+Math.round(e.value.l).toString(),t+=" A="+Math.round(e.value.a).toString(),t+=" B="+Math.round(e.value.b).toString();break;case"Gray":t="Gray"}return t||(t="Undefined"),t}getSelectedSwatchList(){return new Promise((e=>{const t=window.app.activeDocument,r=[];if(t){const e=t.swatches;if(e){const t=e.getSelected(!1);null!=t&&t.length&&t.forEach((e=>r.push({name:e.name,data:this.solidColorToData(e.color)})))}}e(JSON.stringify(r))}))}getSelectedSwatchGroupList(){return new Promise((e=>{const t=window.app.activeDocument,r=[];let n,i,o;if(t){const e=t.swatchGroups;var a;e&&(n=e.getSelected(),null!==(a=n)&&void 0!==a&&a.length&&n.forEach((e=>{o={},o.mood=e.name,i=e.getAllSwatches();const t=i.map((e=>this.solidColorToData(e.color)));o.swatches=t,r.push(o)})))}e(JSON.stringify(r))}))}addSwatchGroup(e,t){return new Promise((()=>{const r=window.app;if(e){const n=r.activeDocument,i="mood",o="swatches";let a,s,c,l,u;if(n){const r=n.swatchGroups;r&&(s=r.add(),s.name=t||e[i],l=e[o],l.forEach((e=>{c=this.getBestColorRepresentation(e),u=this.dataToSolidColor(c),"spot"===c.type?s.addSpot(u.spot):(a=n.swatches.add(),a.color=u,a.name=this.getDisplayName(c),s.addSwatch(a))})))}}}))}setFillColor(e){try{const t=window.app,r=this.dataToSolidColor(e);t.activeDocument.defaultFillColor=r}catch(e){}}setStrokeColor(e){try{const t=window.app,r=this.dataToSolidColor(e);t.activeDocument.defaultStrokeColor=r}catch(e){}}setColor(e){return new Promise(((t,r)=>{const n=window.app;this.spotMismatch=!1;try{if(0===n.documents.length)return;n.isFillActive()&&this.setFillColor(e),n.isStrokeActive()&&this.setStrokeColor(e);const r=this.spotMismatch;!0===this.spotMismatch&&(this.spotMismatch=!1),t(r)}catch(e){}}))}addColor(e){return new Promise(((t,r)=>{const n=window.app;this.spotMismatch=!1;try{if(0===n.documents.length)return;const r=n.activeDocument,i=this.getBestColorRepresentation(e),o=this.dataToSolidColor(i);if("spot"!==i.type&&!i.global){const e=r.swatches.add();e.color=o,e.name=this.getDisplayName(i)}const a=this.spotMismatch;!0===this.spotMismatch&&(this.spotMismatch=!1),t(a)}catch(e){}}))}getLayerColor(){return new Promise(((e,t)=>{try{const t=this.solidColorToData(this.colorModifiedByUser);return e(JSON.stringify(t))}catch(e){}}))}replaceColor(e){return new Promise(((t,r)=>{const n=window.app;try{const r=this.dataToSolidColor(e),i=n.showColorPicker(r);return this.colorModifiedByUser=i,t(!0),t(r!==i)}catch(e){r(!1)}}))}}},3765:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAppConfiguration:()=>we});var n=r(99386),i=r(75067),o=r(76485),a=r(26964),s=r(34038),c=r(84824),l=r(57613),u=r(53849),d=r(46903);function p(e){let t;Object.prototype.hasOwnProperty.call(e,"libraryID")&&(t=e.libraryID);let r=!1;return Object.prototype.hasOwnProperty.call(e,"createNewLibrary")&&(r=JSON.parse(e.createNewLibrary)),function(e,t){let r;if(e&&(r=i.ZP.getLibraryById(e)),r||t||(r=i.ZP.currentLibrary),r||(r=i.ZP.recentLibraries[0]),!r){const e=(0,c.Iu)("DL_DEFAULT_LIBRARY_NAME");r=i.ZP.createLibrary(e)}return r&&(i.ZP.currentLibrary=r,r=i.ZP.currentLibrary),r}(t,r)}var h=r(15577);const f="illustrator",m="data";function g(e){return e.getValue(f,m)}function v(e,t){e.setValue(f,m,{global:t.global})}function y(e){const t=JSON.parse(e),r=[];return t&&(t.uploadSwatch&&r.push((e=>{const t=p(e);if(!t)return Promise.reject("Library Error");if(!(0,d.oY)(t,!1,!0))return Promise.reject("Library Error");let r;return Object.prototype.hasOwnProperty.call(e,"isNew")&&(r=e.isNew?"swatchPanelNew":"swatchPanelExisting"),h.Z.getSelectedSwatchList().then((e=>{try{e=JSON.parse(e)}catch(e){return Promise.reject("err")}let i;e.forEach((e=>{e.data&&(i=(e=>{const i=e.name||e.data[0].spotColorName||"",o=t.createElement(i,n.Z.COLOR_ELEMENT_TYPE);return e.data.forEach(((e,t)=>{const r=0===t?"primary":"rendition",i=o.createRepresentation(n.Z.COLOR_REPRESENTATION_TYPE,r);"global"in e&&(v(i,e),delete e.global),i.setValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY,e)})),o.endOperation(),r&&(0,d.vM)(o.representations[0],r),o})(e))})),i&&u.Z.revealElement(i)}))})(t)),t.uploadSwatchGroup&&r.push((e=>{const t=p(e);return t&&(0,d.oY)(t)?h.Z.getSelectedSwatchGroupList().then((e=>{if(!e)return Promise.reject("err");if((e=JSON.parse(e)).length>0){let r;e.forEach((e=>{r=(e=>{const r=e.mood||"";let i;return e.swatches&&e.swatches.length<=5&&e.swatches.length>0&&(i=t.createElement(r,n.Z.COLOR_THEME_ELEMENT_TYPE),i.createRepresentation(n.Z.COLOR_THEME_REPRESENTATION_TYPE,"primary").setValue(n.Z.COLOR_THEME_NAMESPACE,n.Z.COLOR_THEME_DATA_KEY,e),i.endOperation()),i})(e)})),r&&u.Z.revealElement(r)}})):Promise.reject("Library Error")})(t))),Promise.all(r)}var b=r(8733),_=r(31870),E=r(15909),w=r(74149),x=r(30131),L=r(36351),O=r(51461);function S(){S=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function T(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const P=(e,t)=>{if(e){const r=e.element,n=r.getLegacyReference();e.getContentPath().then((e=>{const i=o.Z.createEvent(W.elementUpdated,"APPLICATION");i.data=JSON.stringify({requestRef:t,elementRef:n,name:r.name,libraryName:r.library.name,modifiedTime:(0,d.RW)(r),creationTime:r.created,data:[e]}),o.Z.dispatchEvent(i)}))}},I=(e,t,r)=>{const n=t&&t.files||[];for(let t=0;t<n.length;t++){const i=n[t],o=s.pH(i.path,r.type),a=r.createRepresentation(o,i.relationship).setContentFromPath(i.path);e.push(a)}},A=e=>{const t=o.Z.createEvent(W.initialCommunicationError,"APPLICATION"),r=i.ZP.syncStatus;t.data={elementIdentifier:e,status:"error",error:r&&r.errorType||"kError"},o.Z.dispatchEvent(t)},C=(e,t,r,n)=>{let a=!1,s=!1;const c=t=>{const r=o.Z.createEvent(W.elementUploaded,"APPLICATION"),n=t||{errorType:"kNoErr",state:"ok"};L.Z.isOnline||(n.state="error",n.errorType="kNoInternet"),r.data={elementRef:e.getLegacyReference(),status:n.state,error:n.errorType||"kNoErr"},o.Z.dispatchEvent(r)},l=()=>{const o=i.ZP.syncStatus;s||"ok"!==o.state&&"error"!==o.state||(c(o),s=!0,t&&"ok"===o.state&&!a&&("kAIChart"===n?(0,x.w3)(e,"charts",r):"kAIArt"===n&&(0,x.w3)(e,"details",r),a=!0),i.ZP.removeListener("libraryStatus",l))};i.ZP.syncingEnabled()?i.ZP.addListener("libraryStatus",l):c(i.ZP.syncStatus)},k=e=>{for(let t=0;t<e.length;t++)s._I(e[t].path)},D=(e,t,r)=>{if(!e)throw"No current library";if(!t||!t.files||!r)throw"event data invalid"};function N(e){const t=e.data.fileData,r=i.ZP.currentLibrary,o=e.data.additionalQueryParameters,a=e.data.openBrowserAfterOperation,c=e.data.elementType;let l=null;if((0,d.oY)(r))try{if(D(r,t,c),null===t.layerIds||null===t.documentId)throw"layer Ids Or documentId cannot be null";if("kAIArt"!==c&&"kAIChart"!==c)throw"Element not supported yet";l=n.Z.IMAGE_ELEMENT_TYPE,t.layerName="kAIChart"===c?(0,d.In)(r,t.layerName,"DL_CHART_LABEL"):(0,d.In)(r,t.layerName);const e=r.createElement(t.layerName,l),i=[];return I(i,t,e),Promise.all(i).then((function(){const r=[];t.rendition&&r.push(e.setThumbnailCache(n.Z.IMAGE_THUMBNAIL_SIZE,t.rendition)),r.push(e.endOperation()),Promise.all(r).then((()=>{k(t.files),t.rendition&&s._I(t.rendition.path)})),u.Z.revealElement(e);const i={documentId:t.documentId,layerIds:t.layerIds};return E.Z.sendElementCreated(e,i).then((()=>(C(e,a,o,c),e)))}),(()=>Promise.reject("Could not add element")))}catch(e){return A(t.layerIds&&t.layerIds[0]||null),Promise.reject("Could not add element: "+e)}}function R(e){return M.apply(this,arguments)}function M(){return(M=function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){T(o,n,i,a,s,"next",e)}function s(e){T(o,n,i,a,s,"throw",e)}a(void 0)}))}}(S().mark((function e(t){var r,o,a,c,l,p,h,f;return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.data.fileData,o=t.data.elementType,a=t.data.elementRef,c=t.data.additionalQueryParameters,l=t.data.openBrowserAfterOperation,e.prev=5,a){e.next=8;break}throw"elementRef missing";case 8:return e.next=10,i.ZP.resolveElementReference(a);case 10:if(p=e.sent){e.next=13;break}throw"Element not found";case 13:if(u.Z.revealElement(p),h=p.library,(0,d.oY)(h)){e.next=17;break}return e.abrupt("return");case 17:return D(h,r,o),p.isDeletedLocally?p=h.createElement(p.name,p.type):(p.beginOperation(),p.removeAllRepresentations()),I(f=[],r,p),e.abrupt("return",Promise.all(f).then((function(){const e=[];return r.rendition&&e.push(p.setThumbnailCache(n.Z.IMAGE_THUMBNAIL_SIZE,r.rendition)),e.push(p.endOperation()),Promise.all(e).then((()=>{k(r.files),r.rendition&&s._I(r.rendition.path)})),P(p.getPrimaryRepresentation(),t.data.requestRef),C(p,l,c,o),p}),(()=>Promise.reject("Could not update element"))));case 24:return e.prev=24,e.t0=e.catch(5),A(t.data.requestRef),e.abrupt("return",Promise.reject("Could not update element: "+e.t0));case 28:case"end":return e.stop()}}),e,null,[[5,24]])})))).apply(this,arguments)}const j=e=>{var t,r;if(e&&(void 0===e.canAddTextAsset||!1!==e.canAddTextAsset))return void 0!==e.canAddTextAsset?function(e,t){return o.Z.execApp("getTextInfo").then((r=>{const i=JSON.parse(r);if(!i||!i.textInfo)return Promise.reject("Could not create element.");const o=t.textAssetName||i.name,a=(0,d.In)(e,o,"DL_TEXT_LABEL"),c=(0,d.MN)(e,a,n.Z.TEXT_ELEMENT_TYPE,{opType:"canvasContextMenu"}),l=[];if(i.primaryRepresentation){const e=c.createRepresentation(i.primaryRepresentation.representationType,"primary");if(i.primaryRepresentation.isFile){const t=e.setContentFromPath(i.primaryRepresentation.filePath).then((()=>{l.push(t)}))}else e.setValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY,i.primaryRepresentation.data);c.createRepresentation(n.Z.TEXT_REPRESENTATION_JSON_TYPE,"rendition").setValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY,i.textInfo)}else c.createRepresentation(n.Z.TEXT_REPRESENTATION_JSON_TYPE,"primary").setValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY,i.textInfo);if(i.previewPath){const e=c.createRepresentation("image/png","rendition");e.isPreferredThumbnail=!0;const t=e.setContentFromPath(i.previewPath);l.push(t)}return Promise.all(l).then((function(){const e=[];return i.previewPath&&e.push(c.setThumbnailCache(n.Z.TEXT_THUMBNAIL_SIZE,i.previewPath)),e.push(c.endOperation()),Promise.all(e).then((()=>{i.previewPath&&s._I(i.previewPath),i.primaryRepresentation.isFile&&s._I(i.primaryRepresentation.filePath)})),(0,d.vM)(c.representations[0],"canvasContextMenu"),c}),(()=>(e.removeElement(c),Promise.reject("Could not create element."))))}),(()=>Promise.reject("Could not save text preview.")))}(i.ZP.currentLibrary,e):(t=i.ZP.currentLibrary,r=void 0,(0,d.g0)(r).then((e=>{const n={documentId:e.documentId,layerIds:e.layerIds,dragAssetId:r};return O.ZP.setExtraEventMetrics("createElement",{opType:"canvasContextMenu"}),(0,w.Bm)(e.layerName,e.files,e.rendition,t,n).then((e=>{(0,d.vM)(e.representations[0],"canvasContextMenu")})).catch((()=>{O.ZP.clearExtraEventMetrics("createElement")}))}),(()=>Promise.reject("Could not extract asset."))))};function F(){b.Z.updateLayerInfo().then(j)}var Z=r(16993),B=r(47320);const G=(e,t)=>{const r=p(e);if(!r)return;if(!(0,d.oY)(r))return;let i,a,c,l,h;Object.prototype.hasOwnProperty.call(e,"isNew")&&(i=`${t?"characterStyle":"paragraphStyle"}${e.isNew?"New":"Existing"}`),t?(a="data",c="characterstyle",l=n.Z.CHARACTER_STYLE_ELEMENT_TYPE,h="application/vnd.adobe.characterstyle+json"):(a="data",c="paragraphstyle",l=n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,h="application/vnd.adobe.paragraphstyle+json");const f=e.styleNames,m=t?"addCharStyleById":"addParaStyleById";f.forEach((e=>{o.Z.execApp(m,[e]).then((e=>{const t=JSON.parse(e),o=r.createElement(t.styleName,l),p=[];if(o.createRepresentation(h,"primary").setValue(c,a,t.styleInfo),t.previewPath){const e=o.createRepresentation("image/png","rendition").setContentFromPath(t.previewPath);p.push(e)}Promise.all(p).then((function(){const e=[];t.previewPath&&e.push(o.setThumbnailCache(n.Z.CHARACTER_STYLE_THUMBNAIL_SIZE,t.previewPath)),e.push(o.endOperation()),Promise.all(e).then((()=>{t.previewPath&&s._I(t.previewPath)})),i&&(0,d.vM)(o.representations[0],i),u.Z.revealElement(o)}))}))}))};function U(e){e=JSON.parse(e),G(e,!0)}function H(e){e=JSON.parse(e),G(e,!1)}function z(){z=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function V(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Y(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){V(o,n,i,a,s,"next",e)}function s(e){V(o,n,i,a,s,"throw",e)}a(void 0)}))}}const W={libraryListUpdated:"ILST.libraryListUpdated",elementUpdated:"com.adobe.DesignLibraries.events.ElementUpdated",initialCommunicationError:"ILST.InitialCommunicationError",elementUploaded:"ILST.elementUploaded",spotMishmatched:"ILST.SpotMismtached",fitCurrentDocumentViewToActiveArtboard:"com.adobe.illustrator.FitCurrentDocumentViewToActiveArtboard",textFileCreated:"ILST.textFileCreated",applyPattern:"ILST.patternApplied",isGradientSameName:"ILST.isGradientSameName"},K=new class{onLayerUpdateEvent(){b.Z.handleSelectionChange()}updateLibrariesInfo(){const e=i.ZP.libraries.filter((e=>!e.isDeletedFromServer)).map((e=>({name:e.name,id:e.id,writable:e.isWritable}))),t=i.ZP.currentLibrary,r=t?e.findIndex((e=>e.id===t.id)):-1,n=o.Z.createEvent(W.libraryListUpdated,"APPLICATION"),a={names:e,current:r};n.data=JSON.stringify(a),o.Z.dispatchEvent(n)}onFontListChanged(){n.Z.currentProduct.fontManager.invalidateFontList()}resetPanelView(){Z.Z.isStockSearchMode()||Z.Z.resetMode()}onDocumentDeactivateEvent(){this.resetPanelView()}onForceSyncLibrary(){i.ZP.sync(!1,!1)}onWorkspaceChanged(e){p(e=JSON.parse(e))}onStockOpenEvent(e){return Y(z().mark((function t(){var r,a,c;return z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((e=JSON.parse(e))&&void 0!==e.elementRef){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,i.ZP.resolveElementReference(e.elementRef);case 5:return r=t.sent,a=_.wq(r),c=B.Z.findUsableRepresentation(r,s.ku(n.Z.IMAGE_ELEMENT_TYPE)),t.abrupt("return",(c?c.getContentPath():r.getThumbnailPath()).then((e=>o.Z.execApp("placeAsset",{filePath:e,libraryName:r.library.name,itemName:r.name,elementRef:r.getLegacyReference(),modifiedTime:(0,d.RW)(r),creationTime:r.created,adobeStockId:a,adobeStockLicense:a?_.kv(r):null,isLinked:!0,isOpenIn:!0}))));case 9:case"end":return t.stop()}}),t)})))()}onGetTextAsAiFile(e){return Y(z().mark((function t(){var r,a,s,c;return z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=JSON.parse(e),r=(e,t,r)=>{const n=o.Z.createEvent("ILST.textFileCreated","APPLICATION"),i={};e&&(i.stripStyle=t,i.path=e,i.usingContextMenu=!1,i.placeInline=!1,i.contextData=r),n.data=JSON.stringify(i),o.Z.dispatchEvent(n)},e&&void 0!==e.elementRef){t.next=5;break}return r(),t.abrupt("return");case 5:return t.next=7,i.ZP.resolveElementReference(e.elementRef);case 7:a=t.sent,s=B.Z.findUsableRepresentation(a),a.type===n.Z.TEXT_ELEMENT_TYPE&&s&&(s.type===n.Z.TEXT_REPRESENTATION_JSON_TYPE?((c=s.getValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY)).id=a.id+";"+a.modified,c.type="text",o.Z.execApp("getAiFileForText",[c]).then((t=>r(t,e.stripStyle,e.contextData)),r)):"application/illustrator-text"===s.type&&s.getContentPath().then((t=>r(t,e.stripStyle,e.contextData))));case 10:case"end":return t.stop()}}),t)})))()}listen(){o.Z.addEventListener("artSelectionOrPropertyChanged",this.onLayerUpdateEvent),o.Z.addEventListener("ILST.pushColorsToLibrary",y),o.Z.addEventListener("documentAfterDeactivate",this.onDocumentDeactivateEvent),o.Z.addEventListener("fontListChanged",this.onFontListChanged),o.Z.addEventListener("ILST.addElementToLibrary",N),o.Z.addEventListener("ILST.forceSyncLibrary",this.onForceSyncLibrary),o.Z.addEventListener("ILST.addSelectionToLibrary",F),o.Z.addEventListener("ILST.updateElement",R),o.Z.addEventListener("ILST.workspaceChanged",this.onWorkspaceChanged),o.Z.addEventListener("ILST.openStock",this.onStockOpenEvent),o.Z.addEventListener("ILST.pushCharStyleToLibrary",U),o.Z.addEventListener("ILST.pushParaStyleToLibrary",H),o.Z.addEventListener("ILST.getTextAsAiFile",this.onGetTextAsAiFile)}stop(){o.Z.removeEventListener("artSelectionOrPropertyChanged",this.onLayerUpdateEvent),o.Z.removeEventListener("ILST.pushColorsToLibrary",y),o.Z.removeEventListener("documentAfterDeactivate",this.onDocumentDeactivateEvent),o.Z.removeEventListener("fontListChanged",this.onFontListChanged),o.Z.removeEventListener("ILST.addElementToLibrary",N),o.Z.removeEventListener("ILST.forceSyncLibrary",this.onForceSyncLibrary),o.Z.removeEventListener("ILST.addSelectionToLibrary",F),o.Z.removeEventListener("ILST.updateElement",R),o.Z.removeEventListener("ILST.workspaceChanged",this.onWorkspaceChanged),o.Z.removeEventListener("ILST.openStock",this.onStockOpenEvent),o.Z.removeEventListener("ILST.pushCharStyleToLibrary",U),o.Z.removeEventListener("ILST.pushParaStyleToLibrary",H),o.Z.removeEventListener("ILST.getTextAsAiFile",this.onGetTextAsAiFile)}};var $=r(77560),q=r(16771);function X(){const e=o.Z.createEvent(W.spotMishmatched,"APPLICATION");o.Z.dispatchEvent(e)}class J extends q.Z{_setColor(e,t,r,i){return r||(r=[],e.representations.forEach((t=>{const i=t.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY),o=g(t);o&&(i.global=o.global);const a=e.name;i.name=a,"primary"===t.relationship?r.unshift(i):r.push(i)})),e.representations.length>0&&(0,d.vM)(e.representations[0],t)),i&&i(t),"addColor"===t?h.Z.addColor(r).then((e=>{e&&X()})):"setColor"===t?h.Z.setColor(r).then((e=>{e&&X()})):void 0}getApplyOperations(e){const t=b.Z.getLayerInfo();return t&&"{}"!==JSON.stringify(t)?t.selectionExists||t.textSelectionExists||t.insertionPointExists?[{name:"DL_SET_COLOR_TOOLTIP",icon:"paintbucket",apply:(t,r)=>this._setColor(e,"setColor",t,r),displayInMenu:!0,onClick:!0},{name:"DL_ID_ADD_COLORS_TOOLTIP",icon:"paintbucket",allowMultiple:!0,apply:(t,r)=>this._setColor(e,"addColor",t,r),displayInMenu:!0}]:[{name:"DL_ID_ADD_COLORS_TOOLTIP",icon:"paintbucket",allowMultiple:!0,apply:(t,r)=>this._setColor(e,"addColor",t,r),displayInMenu:!0}]:[]}defaultEditOperation(e){const t=this._config.findUsableRepresentation(e),r=t&&t.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY),i=t&&g(t);return i&&(r.global=i.global),h.Z.replaceColor(r).then((t=>{if(JSON.parse(t))return h.Z.getLayerColor().then((t=>{const r=JSON.parse(t);e.beginOperation(),e.removeAllRepresentations(),r.forEach(((t,r)=>{const i=0===r?"primary":"rendition",o=e.createRepresentation(n.Z.COLOR_REPRESENTATION_TYPE,i);"global"in t&&(v(o,t),delete t.global),o.setValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY,t)})),e.endOperation()}))}))}}var Q=r(38122);class ee extends Q.Z{_addThemeAsSwatchGroup(e){const t=e.getPrimaryRepresentation(),r=t&&t.getValue(n.Z.COLOR_THEME_NAMESPACE,n.Z.COLOR_THEME_DATA_KEY);return h.Z.addSwatchGroup(r,e.name).then((()=>{(0,d.vM)(t,"AddColorTheme")}))}getApplyOperations(e,t){const r=super.getApplyOperations(e,t),n=b.Z.getLayerInfo();return n&&"{}"!==JSON.stringify(n)&&r.push({name:"DL_ADD_COLORTHEME_TO_SWATCHES",icon:"download",displayInMenu:!0,allowMultiple:!0,apply:()=>this._addThemeAsSwatchGroup(e)}),r}}var te=r(9494),re=r(48124),ne=r(92098),ie=r(80804);class oe extends re.Z{_addImageToDocument(e,t){const r=_.wq(e),n=this._config.findUsableRepresentation(e);return n?(0,d.vM)(n,"placeAsset",t):(0,d.dN)(e,"placeAsset",t),(n?n.getContentPath():e.getThumbnailPath("full")).then((n=>o.Z.execApp("placeAsset",{filePath:n,libraryName:e.library.name,itemName:e.name,elementRef:e.getLegacyReference(),modifiedTime:(0,d.RW)(e),creationTime:e.created,adobeStockId:r,adobeStockLicense:r?_.kv(e):null,isLinked:t})))}getApplyOperations(e){const t=b.Z.getLayerInfo();return t&&"{}"!==JSON.stringify(t)?[{name:"DL_ADD_IMAGE_TO_DOC_AS_LINKED",icon:"download",apply:()=>this._addImageToDocument(e,!0),displayInMenu:!0},{name:"DL_ADD_IMAGE_TO_DOC_AS_COPY",icon:"download",apply:()=>this._addImageToDocument(e,!1),displayInMenu:!0}]:[]}_getLockId(e){return"documentLock_"+e.id}_onDocumentClose(e,t){const r=this._getLockId(e);te.Z.obtainLock(r,(()=>{ie.Z.stopListening(t.listenerId),t.isClosed=!0,!1===t.isSaveInProgress&&ne.Z.deleteTempFile(t.tempPath),E.Z.elementEditCompleted(e),te.Z.releaseLock(r)}))}_onDocumentSave(e,t){if(!(0,d.ii)(t.tempPath))return;t.isSaveInProgress=!0;let r=e.library;const a=r.name,l=!r||r.isDeletedLocally;let p=!1;if(l||!r.isWritable){if(r=i.ZP.getRecoveryLibrary(r.name),!r)return;p=!0}const h=this._getLockId(e);te.Z.obtainLock(h,(()=>{const i=_.si(e);e.isDeletedLocally||p?e=r.createElement(e.name,e.type):(e.beginOperation(),e.removeAllRepresentations());const f=[],m=s.pH(t.tempPath,e.type),g=e.createRepresentation(m,"primary");i&&_.i2(g,i),f.push(g.setContentFromPath(t.tempPath));const v=s.K3(t.tempPath)+".png";v&&s.xW(v)&&f.push((0,d.bf)(e,n.Z.IMAGE_THUMBNAIL_SIZE,v)),Promise.all(f).then((()=>{E.Z.sendElementUpdated(g);const n=e.endOperation();te.Z.releaseLock(h),p&&(u.Z.revealElement(e),l?o.Z.showError((0,c.Iu)("DL_WARNING_RECOVERED_FROM_DELETED",{recoveryLibraryName:r.name})):o.Z.showError((0,c.Iu)("DL_WARNING_RECOVERED_FROM_READONLY",{recoveryLibraryName:r.name,originalLibraryName:a}))),n.then((()=>{t.isClosed?ne.Z.deleteTempFile(t.tempPath):ne.Z.updateTempFile(g,t.tempPath),t.isSaveInProgress=!1}))}))}))}defaultEditOperation(e){if(!this._config.isEditable(e))return Promise.resolve(!1);const t=e.getPrimaryRepresentation();return ne.Z.getTempFile(t).then((t=>{const r=s.K3(t)+".png";o.Z.execApp("openAssetForEdit",[t,r,"Image"]).then((r=>{const n=o.Z.createEvent(W.fitCurrentDocumentViewToActiveArtboard,"APPLICATION");o.Z.dispatchEvent(n);const i={tempPath:t,isClosed:!1,isSaveInProgress:!1};i.listenerId=ie.Z.startListening(r,t,(t=>{"closed"===t?this._onDocumentClose(e,i):"saved"===t&&this._onDocumentSave(e,i)}))}))}))}isDisabled(e){return!this._config.findUsableRepresentation(e)&&!e.getCachedThumbnailPath()}getStockDragData(){return[""]}}var ae=r(74244);class se extends ae.Z{_setStyleInfo(e,t,r){e.type="parastyle",e.name=t,e.id=r}_useParaStyle(e,t,r){const n=1===r.index,i=r.index===r.length,a=this._config.findUsableRepresentation(e);if((0,d.vM)(a,t),a){const r=e.name,s=e.id+";"+e.modified;if("application/vnd.adobe.paragraphstyle+json"===a.type){const e=a.getValue("paragraphstyle","data");return this._setStyleInfo(e,r,s),o.Z.execApp(t,[e,n,i])}}}_setParaStyle(e,t){return this._useParaStyle(e,"setFont",t)}_createTextLayer(e,t){return this._useParaStyle(e,"createTextLayer",t)}getApplyOperations(e,t,r){const n=b.Z.getLayerInfo();if(!n||"{}"===JSON.stringify(n))return[];const i=[];return n&&"LayerKind.TEXT"===n.kind&&i.push({name:"DL_SET_PARA_STYLE_TOOLTIP",icon:"text",onClick:!0,apply:()=>this._setParaStyle(e,r),displayInMenu:!0}),i.push({name:"DL_ADD_AS_PARA_STYLE_TOOLTIP",icon:"pastetext",apply:()=>this._createTextLayer(e,r),displayInMenu:!0,allowMultiple:!0}),i}}var ce=r(91696);class le extends ce.Z{_sendAiTextFileCreatedEvent(e,t,r){const n=o.Z.createEvent(W.textFileCreated,"APPLICATION"),i={};e&&(i.stripStyle=t,i.placeInline=r,i.path=e,i.usingContextMenu=!0),n.data=JSON.stringify(i),o.Z.dispatchEvent(n)}_useText(e,t,r,i){const a=this._config.findUsableRepresentation(e);if(!a)return;(0,d.vM)(a,t);const s=e.id+";"+e.modified;if(a.type===n.Z.TEXT_REPRESENTATION_JSON_TYPE){const e=a.getValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY);return e.id=s,e.type="text",o.Z.execApp(t,[e]).then((e=>this._sendAiTextFileCreatedEvent(e,r,i)))}return"application/illustrator-text"===a.type?a.getContentPath().then((e=>this._sendAiTextFileCreatedEvent(e,r,i))):void 0}_setText(e){return this._useText(e,"getAiFileForText",!1,!1)}_setPlainText(e){return this._useText(e,"getAiFileForText",!0,!1)}_setTextInline(e){return this._useText(e,"getAiFileForText",!1,!0)}getApplyOperations(e){const t=b.Z.getLayerInfo();return t&&"{}"!==JSON.stringify(t)?!0===t.textSelectionExists||!0===t.insertionPointExists?[{name:"DL_ADD_TEXT_INLINE_AI",icon:"text",onClick:!1,apply:()=>this._setTextInline(e),displayInMenu:!0}]:[{name:"DL_ADD_TEXT_UNLINKED_AI",icon:"text",onClick:!1,apply:()=>this._setText(e),displayInMenu:!0},{name:"DL_ADD_TEXT_UNLINKED_NOSTYLES",icon:"text",onClick:!1,apply:()=>this._setPlainText(e),displayInMenu:!0}]:[]}_getLockId(e){return"documentLock_"+e.id}_onDocumentClose(e,t){const r=this._getLockId(e);te.Z.obtainLock(r,(()=>{ie.Z.stopListening(t.listenerId),t.isClosed=!0,!1===t.isSaveInProgress&&ne.Z.deleteTempFile(t.tempPath),E.Z.elementEditCompleted(e),te.Z.releaseLock(r)}))}_onDocumentSave(e,t){if(!(0,d.ii)(t.tempPath))return;if(t.isSaveInProgress=!0,!s.xW(t.tempPath))return void(t.isSaveInProgress=!1);let r=e.library;const a=r.name,l=!r||r.isDeletedLocally;let p=!1;if(l||!r.isWritable){if(r=i.ZP.getRecoveryLibrary(r.name),!r)return;p=!0}const h=this._getLockId(e);te.Z.obtainLock(h,(()=>{o.Z.execApp("getUpdatedTextInfo",[t.tempPath]).then((i=>{const f=[],m=JSON.parse(i);if(!0!==m.isValidSave)return;e.isDeletedLocally||p?e=r.createElement(e.name,e.type):(e.beginOperation(),e.removeAllRepresentations());const g=m.textData,v=s.pH(t.tempPath,e.type),y=e.createRepresentation(v,"primary");f.push(y.setContentFromPath(t.tempPath)),e.createRepresentation(n.Z.TEXT_REPRESENTATION_JSON_TYPE,"rendition").setValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY,g.textInfo);const b=s.K3(t.tempPath)+".png";b&&s.xW(b)&&f.push((0,d.bf)(e,n.Z.IMAGE_THUMBNAIL_SIZE,b));const _=()=>{E.Z.sendElementUpdated(y);const n=e.endOperation();te.Z.releaseLock(h),p&&(u.Z.revealElement(e),l?o.Z.showError((0,c.Iu)("DL_WARNING_RECOVERED_FROM_DELETED",{recoveryLibraryName:r.name})):o.Z.showError((0,c.Iu)("DL_WARNING_RECOVERED_FROM_READONLY",{recoveryLibraryName:r.name,originalLibraryName:a}))),n.then((()=>{t.isClosed?ne.Z.deleteTempFile(t.tempPath):ne.Z.updateTempFile(y,t.tempPath),t.isSaveInProgress=!1}))};Promise.all(f).then(_,_)}))}))}defaultEditOperation(e){if(!this._config.isEditable(e))return Promise.resolve(!1);const t=e.getPrimaryRepresentation();return ne.Z.getTempFile(t).then((t=>{const r=s.K3(t)+".png";o.Z.execApp("openAssetForEdit",[t,r,"text"]).then((r=>{const n={tempPath:t,isClosed:!1,isSaveInProgress:!1};n.listenerId=ie.Z.startListening(r,t,(t=>{"closed"===t?this._onDocumentClose(e,n):"saved"===t&&this._onDocumentSave(e,n)}))}))}))}}var ue=r(54142),de=r(13293);const pe="application/vnd.adobe.characterstyle+json",he="characterstyle",fe="data";class me extends ue.Z{constructor(...e){super(...e),this._setTextStyle=function(e,t){return this._useTextStyle(e,"setFont",t)},this._createTextLayer=function(e,t){return this._useTextStyle(e,"createTextLayer",t)}}_setStyleInfo(e,t,r){e.type="charstyle",e.name=t,e.id=r}_useTextStyle(e,t,r){const n=1===r.index,i=r.index===r.length,a=this._config.findUsableRepresentation(e);if(!a)return;const s=de.R(e);s&&s.id?(0,d.vM)(a,t,null,{event:{value:"typekit"}}):(0,d.vM)(a,t);const c=e.name,l=e.id+";"+e.modified;if(a.type===pe){const e=a.getValue(he,fe);return this._setStyleInfo(e,c,l),o.Z.execApp(t,[e,n,i])}}getApplyOperations(e,t,r){const n=b.Z.getLayerInfo();if(!n||"{}"===JSON.stringify(n))return[];const i=[];return"LayerKind.TEXT"===n.kind&&i.push({name:"DL_SET_TEXT_STYLE_TOOLTIP",icon:"text",onClick:!0,apply:()=>this._setTextStyle(e,r),displayInMenu:!0}),i.push({name:"DL_ADD_AS_TEXT_STYLE_TOOLTIP",icon:"pastetext",apply:()=>this._createTextLayer(e,r),displayInMenu:!0,allowMultiple:!0}),i}_addTextStyleElement(e,t,r){return e&&"LayerKind.TEXT"===e.kind?o.Z.execApp("getCharStyleInfo").then((e=>{const i=JSON.parse(e);i.styleName||(i.styleName=(0,c.Iu)("DL_TYPE_NEW_CHAR_STYLE"));const o=(0,d.MN)(t,i.styleName,n.Z.CHARACTER_STYLE_ELEMENT_TYPE,{opType:r});o.createRepresentation(pe,"primary").setValue(he,fe,i.styleInfo);const a=[];if(i.previewPath){const e=o.createRepresentation("image/png","rendition");a.push(e.setContentFromPath(i.previewPath))}return Promise.all(a).then((()=>(i.previewPath&&o.setThumbnailCache(n.Z.CHARACTER_STYLE_THUMBNAIL_SIZE,i.previewPath,(()=>{s._I(i.previewPath)})),o.endOperation(),o))).catch((()=>(t.removeElement(o,!0),Promise.reject("Could not create element."))))})):Promise.reject("not a text layer")}getAddOperations(e){return e&&"{}"!==JSON.stringify(e)&&e.text&&!1!==e.isAppliedCharStyleSupported?[{name:"DL_ADD_TEXT_STYLE_NAME",order:2,icon:"AddCharacterStyle",apply:(t,r)=>new Promise((n=>{b.Z.updateLayerInfo().then((()=>n(this._addTextStyleElement(e,t,r))))}))}]:[]}}var ge=r(76572);class ve extends ge.Z{constructor(...e){super(...e),this._addBrushToDocument=function(e,t){return(0,d.vM)(t,"useBrush"),t.getContentPath().then((t=>o.Z.execApp("loadAndSelectBrush",[t,e.name])))}}getApplyOperations(e){const t=s.ku(e.type),r=e.representations.find((e=>{const r="rendition"===e.relationship,n=this._config.isRepresentationCompatible(e,t);return!r&&n})),n=b.Z.getLayerInfo();return n&&"{}"!==JSON.stringify(n)&&r?[{name:"DL_ADD_BRUSH_TO_DOC",icon:"brush",onClick:!0,apply:()=>this._addBrushToDocument(e,r),displayInMenu:!0}]:[]}}var ye=r(95134);class be extends ye.Z{constructor(...e){super(...e),this.dragType="image",this.allowDragWithoutUsableRepresentation=!0}_applyPattern(e,t){let r;return r=t&&n.Z.currentProduct.config.enableSVGPatterns?t:this._config.findUsableRepresentation(e),r?((0,d.vM)(r,"applyPattern"),r.getContentPath().then((t=>{const n=o.Z.createEvent(W.applyPattern,"APPLICATION"),i={};return i.path=t,i.type=r.type,i.name=e.name,n.data=JSON.stringify(i),o.Z.dispatchEvent(n)}))):e.getThumbnailPath().then((t=>{(0,d.dN)(e,"applyPattern");const r=o.Z.createEvent(W.applyPattern,"APPLICATION"),n={};return n.path=t,n.name=e.name,r.data=JSON.stringify(n),o.Z.dispatchEvent(r)}))}_addImageToDocument(e,t=!1){const r=_.wq(e),n=this._config.findUsableRepresentation(e);return n?((0,d.vM)(n,"placeAsset",t),n.getContentPath().then((n=>o.Z.execApp("placeAsset",{filePath:n,libraryName:e.library.name,itemName:e.name,elementRef:e.getLegacyReference(),modifiedTime:(0,d.RW)(e),creationTime:e.created,adobeStockId:r,adobeStockLicense:r?_.kv(e):null,isLinked:t})))):e.getThumbnailPath().then((n=>((0,d.dN)(e,"placeAsset",t),o.Z.execApp("placeAsset",{filePath:n,libraryName:e.library.name,itemName:e.name,elementRef:e.getLegacyReference(),modifiedTime:(0,d.RW)(e),creationTime:e.created,adobeStockId:r,adobeStockLicense:r?_.kv(e):null,isLinked:t}))))}_addVectorPatternTileToDocument(e,t,r=!1){const n=_.wq(e);return(0,d.vM)(t,"placeAsset",r),t.getContentPath().then((t=>o.Z.execApp("placeAsset",{filePath:t,libraryName:e.library.name,itemName:e.name,elementRef:e.getLegacyReference(),modifiedTime:(0,d.RW)(e),creationTime:e.created,adobeStockId:n,adobeStockLicense:n?_.kv(e):null,isLinked:r})))}getApplyOperations(e){const t=b.Z.getLayerInfo();if(!t||"{}"===JSON.stringify(t))return[];const r=e.representations.find((t=>{const r="image/svg+xml"===t.type,n=this._config.isRepresentationCompatible(t,s.ku(e.type));return r&&n})),n=[{name:"DL_APPLY_PATTERN",icon:"paintbucket",apply:()=>this._applyPattern(e,r),displayInMenu:!0,onClick:!0},{name:"DL_ADD_PATTERN_TO_DOC_AS_IMAGE_AS_COPY",icon:"download",apply:()=>this._addImageToDocument(e),displayInMenu:!0}];return r&&n.push({name:"DL_ADD_VECTOR_PATTERN_TILE_TO_DOC_AS_COPY",icon:"download",apply:()=>this._addVectorPatternTileToDocument(e,r),displayInMenu:!0}),n}getDragData(e){const t=this._config.findUsableRepresentation(e);let r;if(t&&(r=t.getCachedContentPath()),r)return{data:[r],placeType:"unlinked",usedRepresentationForAnalytics:t}}}var _e=r(54712);class Ee extends _e.Z{_openDocumentFromTemplate(e,t,r){return r?o.Z.showError((0,c.Iu)(_.hr(e))):((0,d.vM)(t,"useTemplate"),t.getContentPath().then((t=>o.Z.execApp("openDocumentFromTemplate",[t,e.name]))))}getApplyOperations(e){const t=s.ku(e.type),r=e.representations.find((e=>{const r="rendition"===e.relationship,n=this._config.isRepresentationCompatible(e,t);return!r&&n})),n=!r&&this._config.isRepresentationCompatible(e.getPrimaryRepresentation(),t,!0);return r||n?[{name:"DL_OPEN_DOC_FROM_TEMPLATE",icon:"template",onDoubleClick:!0,apply:()=>this._openDocumentFromTemplate(e,r,n),displayInMenu:!0}]:[]}}function we(){return this.config={},this.config.code="ILST_UXP",this.config.fullName="Illustrator",this.config.translationSuffix="AI",this.config.dragDropSource="com.adobe.illustrator",this.config.offsetSelectMenu=!0,this.config.usesEscapedFilePathsInEvents=!0,this.config.hideDefaultSearchCancelIcon=!0,this.config.panelWidthAdjustment=-13,this.config.cancelButtonQuiet=!0,this.config.themes={323232:"darker",535353:"dark",b8b8b8:"light",f0f0f0:"lighter"},this.config.legacySpectrumEnabled=!0,this.config.defaultTheme="dark",this.config.elementTypes=[J,ee,le,me,$.Z.FontElementConfig,se,oe,ve,Ee,be,$.Z.ComponentElementConfig,$.Z.GradientElementConfig,$.Z.VideoElementConfig,$.Z.LookElementConfig,$.Z.CapsuleElementConfig,$.Z.ThreeDElementConfig,$.Z.LayerStyleElementConfig,$.Z.AnimationElementConfig,$.Z.LightElementConfig,$.Z.MaterialElementConfig,$.Z.AudioElementConfig,$.Z.ChannelElementConfig,$.Z.ImageGuidelineElementConfig,$.Z.UnsupportedElementConfig],this.config.collapsedTypes=[n.Z.GRADIENT_ELEMENT_TYPE,n.Z.VIDEO_ELEMENT_TYPE,n.Z.LOOK_ELEMENT_TYPE,n.Z.CAPSULE_ELEMENT_TYPE,n.Z.THREE_D_ELEMENT_TYPE,n.Z.LAYER_STYLE_ELEMENT_TYPE,n.Z.ANIMATION_ELEMENT_TYPE,n.Z.LIGHT_ELEMENT_TYPE,n.Z.MATERIAL_ELEMENT_TYPE,n.Z.AUDIO_ELEMENT_TYPE,n.Z.CHANNEL_ELEMENT_TYPE,n.Z.IMAGE_GUIDELINE_ELEMENT_TYPE,n.Z.UNSUPPORTED_ELEMENT_TYPE],this.config.includeGuidInTempFileName=!0,this.startEventListener=function(){K.listen()},this.stopEventListener=function(){K.stop()},this.fontManager=new l.Z,this.init=function(){s.Zh(n.Z.IMAGE_ELEMENT_TYPE,["image/png","image/jpeg","image/jpg","image/svg+xml","image/bmp","application/photoshop","application/photoshop.large","image/vnd.adobe.photoshop","application/illustrator","application/pdf"]),s.Zh(n.Z.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),s.Zh(n.Z.BRUSH_ELEMENT_TYPE,["application/vnd.adobe.vector.brush+zip"]),s.Zh(n.Z.CHARACTER_STYLE_ELEMENT_TYPE,["application/vnd.adobe.characterstyle+json"]),s.Zh(n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,["application/vnd.adobe.paragraphstyle+json"]),s.Zh(n.Z.TEMPLATE_ELEMENT_TYPE,["application/illustrator.template","application/vnd.adobe.illustrator.template"]),s.Zh(n.Z.PATTERN_ELEMENT_TYPE,["image/vnd.adobe.pattern+png","image/svg+xml"]),s.Zh(n.Z.TEXT_ELEMENT_TYPE,["application/vnd.adobe.text+json","application/illustrator-text"]),s.Zh(n.Z.COMPONENT_ELEMENT_TYPE,["image/svg+xml","image/png"]),s.Dk(n.Z.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),s.Dk(n.Z.IMAGE_ELEMENT_TYPE,["image/svg+xml","application/illustrator"]),s.Dk(n.Z.TEXT_ELEMENT_TYPE,["application/illustrator-text"]),this.startEventListener(),i.ZP.waitForInitialLoad().then((function(){const e=o.Z.createEvent("com.adobe.DesignLibraries.events.READY","APPLICATION");o.Z.dispatchEvent(e)})),i.ZP.addListener("libraryList",(function(){K.updateLibrariesInfo()})),i.ZP.addListener("currentLibrary",(function(){K.updateLibrariesInfo()}))},this.getUserData=function(){},this.config.useMouseEventToDetectDrop=!0,this.dropHandler=function(e,t){return a.Z.log("Illustrator drop handler",e),(o.Z.isWindowsOS()?t.ctrlKey:t.metaKey)&&"text"===e.assetList[0].type&&(e.assetList[0].type="image"),Promise.reject()},this.customDropMessage=function(e,t){const r=o.Z.isWindowsOS();if(!(r?t.ctrlKey:t.metaKey)&&"text"===e.assetList[0].type){const e="DL_CUSTOM_DROP_MESSAGE_ID_TEXT_"+(r?"WIN":"MAC");return(0,c.Iu)(e)}},this.allowCmdDrag=!0,this}},48408:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAppConfiguration:()=>p});var n=r(50265),i=r(99386),o=r(74379),a=r(76485),s=r(47320),c=r(53849),l=r(57613),u=r(34038),d=r(77560);function p(){this.config={},this.config.code="KBRG",this.config.fullName="Bridge",this.config.translationSuffix="BR",this.config.dragDropSource="com.adobe.bridge",this.config.enableUnusableElements=!0,this.config.themes={535353:"dark_mondo",b8b8b8:"light_mondo",f0f0f0:"lighter_mondo","1d1d1d":"darker",323232:"dark",f8f8f8:"lighter"},this.config.legacySpectrumEnabled=!0,this.config.defaultTheme="dark",this.config.elementTypes=[d.Z.ImageElementConfig,d.Z.VideoElementConfig,d.Z.CapsuleElementConfig,d.Z.TextStyleElementConfig,d.Z.FontElementConfig,d.Z.ColorElementConfig,d.Z.ColorThemeElementConfig,d.Z.BrushElementConfig,d.Z.LayerStyleElementConfig,d.Z.AnimationElementConfig,d.Z.ParagraphStyleElementConfig,d.Z.PatternElementConfig,d.Z.LightElementConfig,d.Z.LookElementConfig,d.Z.MaterialElementConfig,d.Z.ThreeDElementConfig,d.Z.TemplateElementConfig,d.Z.TextElementConfig,d.Z.GradientElementConfig,d.Z.ComponentElementConfig,d.Z.AudioElementConfig,d.Z.ChannelElementConfig,d.Z.ImageGuidelineElementConfig,d.Z.UnsupportedElementConfig],this.config.hideAddControls=!0;let e=[];function t(e){if(e.type===i.Z.COLOR_ELEMENT_TYPE){const t=o.tX(e);a.Z.execApp("setColorValues",[e.getLegacyReference(),[t]])}else if(e.type===i.Z.COLOR_THEME_ELEMENT_TYPE){const t=e.representations[0]&&e.representations[0].getValue("colortheme","data"),r=t&&t.swatches.map((e=>o.CV(e)));a.Z.execApp("setColorValues",[e.getLegacyReference(),r])}else s.Z.getLocalThumbnailURL(e).then((t=>{a.Z.execApp("setRenditionPath",[e.getLegacyReference(),256,t])})).catch((()=>{})),e.getThumbnailPath(1024).then((t=>{a.Z.execApp("setRenditionPath",[e.getLegacyReference(),1024,t])})).catch((()=>{}))}function r(){const e=c.Z.selection,r=[];if(e&&0!==e.length){for(let t=0;t<e.length&&t<9;t++){const n={id:e[t].getLegacyReference(),name:e[t].name,type:e[t].type};r.push(n)}a.Z.execApp("setSelectionData",[e.length,r]);for(let r=0;r<e.length&&r<9;r++)t(e[r])}else a.Z.execApp("setSelectionData",[e.length,r])}this.init=function(){u.Zh(i.Z.IMAGE_ELEMENT_TYPE,["image/png","image/jpeg","image/jpg","image/gif","image/tiff","image/bmp","image/svg+xml","image/vnd.adobe.shape+svg","application/photoshop","application/photoshop.large","image/vnd.adobe.photoshop","application/vnd.adobe.indesign-idms","application/illustrator","application/pdf","application/vnd.adobe.muse-collection","application/vnd.adobe.charts+zip"]),u.Zh(i.Z.VIDEO_ELEMENT_TYPE,["video/mp4","video/quicktime","image/png"]),u.Zh(i.Z.CHARACTER_STYLE_ELEMENT_TYPE,["application/vnd.adobe.characterstyle+json","application/vnd.adobe.indesign-idms","image/png"]),u.Zh(i.Z.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),u.Zh(i.Z.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),u.Zh(i.Z.BRUSH_ELEMENT_TYPE,["application/vnd.adobe.vector.brush+zip","application/vnd.adobe.scatter.brush+zip","application/vnd.adobe.ribbon.brush+zip","image/x-adobe-photoshop-brush","image/svg+xml","image/png"]),u.Zh(i.Z.LAYER_STYLE_ELEMENT_TYPE,["application/vnd.adobe.layerstyle","image/png"]),u.Zh(i.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,["application/vnd.adobe.paragraphstyle+json","application/vnd.adobe.paragraphstyle+snippet","application/vnd.adobe.indesign-idms","image/png"]),u.Zh(i.Z.LOOK_ELEMENT_TYPE,["application/vnd.adobe.candy+jpg","application/vnd.adobe.look+xml","application/vnd.adobe.cube+txt","image/jpg"]),u.Zh(i.Z.CAPSULE_ELEMENT_TYPE,["application/vnd.adobe.ppro.graphic+zip","application/vnd.adobe.ae.graphic+zip","image/png","application/vnd.adobe.graphic+json","image/gif","video/mp4"]),u.Zh(i.Z.PATTERN_ELEMENT_TYPE,["image/vnd.adobe.pattern+png","image/jpeg"]),u.Zh(i.Z.TEMPLATE_ELEMENT_TYPE,["application/illustrator.template","image/vnd.adobe.photoshop.template","application/vnd.adobe.indesign.template","image/png"]),u.Zh(i.Z.TEXT_ELEMENT_TYPE,["application/vnd.adobe.text+json","application/vnd.adobe.indesign-idms-text","image/png"]),u.Dk(i.Z.ANIMATION_ELEMENT_TYPE,["application/vnd.adobe.animate-xfl+zip","application/vnd.adobe.animate-sym+zip","image/png","image/jpeg","image/gif"]),u.Zh(i.Z.THREE_D_ELEMENT_TYPE,["image/vnd.adobe.photoshop","application/vnd.adobe.obj.3d+zip","image/jpeg"]),u.Zh(i.Z.LIGHT_ELEMENT_TYPE,["application/vnd.adobe.ibl.light+zip","image/jpeg"]),u.Zh(i.Z.MATERIAL_ELEMENT_TYPE,["application/vnd.adobe.mdl.material+zip","image/jpeg"]),u.Zh(i.Z.COMPONENT_ELEMENT_TYPE,["image/svg+xml","image/png"]),u.Zh(i.Z.GRADIENT_ELEMENT_TYPE,["application/vnd.adobe.gradient+json"]),a.Z.execApp("getTooltipState").then((function(e){i.Z.showTooltips=e})),this.startEventListener(),c.Z.addSelectionChangedListener((function(){const i=c.Z.selection;e.forEach((e=>e())),e=[],i.length>0&&a.Z.execApp("clearSelectionInContentPanel"),r();for(let r=0;r<i.length&&r<9;r++)e.push((0,n.reaction)((()=>i[r]),(e=>{a.Z.execApp("updateSelectionData",[e.getLegacyReference(),e.name]),t(e)})))}))},this.reportEvent=function(){},this.fontManager=new l.Z;const p=()=>this.fontManager.invalidateFontList(),h=()=>c.Z.clearSelection(),f=()=>r();return this.startEventListener=function(){a.Z.addEventListener("fontListChanged",p),a.Z.addEventListener("clearSelection",h),a.Z.addEventListener("getCurrentSelection",f)},this.stopEventListener=function(){a.Z.removeEventListener("fontListChanged",p),a.Z.removeEventListener("clearSelection",h),a.Z.removeEventListener("getCurrentSelection",f)},this}},33471:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAppConfiguration:()=>ve});var n=r(99386),i=r(75067),o=r(84074),a=r(53849),s=r(76485),c=r(8733),l=r(51461),u=r(34038),d=r(26964),p=r(16993),h=r(74149),f=r(57613),m=r(50265),g=r(46903);function v(e){const t={type:"process",profileName:e.profileName||n.Z.DEFAULT_SRGB_PROFILE},r=e._obj;switch(r){case"CMYKColorClass":t.mode="CMYK",t.value={c:e.cyan,m:e.magenta,y:e.yellowColor,k:e.black};break;case"RGBColor":t.mode="RGB",t.value={r:e.red,g:e.grain,b:e.blue};break;case"HSBColorClass":t.mode="HSB",t.value={h:e.hue._value,s:e.saturation,b:e.brightness};break;case"labColor":t.mode="Lab",t.value={l:e.luminance,a:e.a,b:e.b};break;case"grayscale":t.mode="Gray",t.value=e.gray;break;default:t.mode=r,t.value=e}return t}const y="application/vnd.adobe.color+json";function b(e,t,r,o,s){if(e=e||"",!(s=s||i.ZP.getDefaultLibrary()))return Promise.reject("Could not add color: No library");if(!(0,g.oY)(s))return Promise.reject("Could not add color: Library not writable");const c=(0,g.MN)(s,e,n.Z.COLOR_ELEMENT_TYPE,{opType:o});return t&&c.createRepresentation(y,"primary").setValue("color","data",v(t)),r&&c.createRepresentation(y,"rendition").setValue("color","data",v(r)),c.endOperation(),i.ZP.currentLibrary===s&&a.Z.revealElement(c),Promise.resolve(c)}function _(e="",t,r,o){if(!t)return Promise.reject("Could not add gradient: No gradient information provided");if(o=o||i.ZP.getDefaultLibrary(),!(0,g.oY)(o))return Promise.reject("Could not add gradient: Library not writable");void 0===t.angle&&(t.angle=90);const s=(0,g.MN)(o,e,n.Z.GRADIENT_ELEMENT_TYPE,{opType:r});return s.createRepresentation(n.Z.GRADIENT_REPRESENTATION_TYPE,"primary").setValue(n.Z.GRADIENT_NAMESPACE,n.Z.GRADIENT_DATA_KEY,t),s.endOperation(),i.ZP.currentLibrary===o&&a.Z.revealElement(s),Promise.resolve(s)}const E=[{type:"brush",callback:e=>{const t=e.brushOptions||{},r=Object.keys(t).map((e=>({namespace:"photoshop",key:e,value:"color"===e?v(t[e]):t[e]}))),n={path:e.abrPath,data:r};(0,h.D5)(e.name,n,e.pngPath,i.ZP.getDefaultLibrary(),e.opType).then((e=>a.Z.revealElement(e)))}},{type:"characterStyle",callback:e=>{return(t=e.name,r=e.descriptorID,o=e.previewPath,c=e.opType,t=t||"",s.Z.execApp("makeTextItemObjectJSONFromPushDescID",[r]).then((e=>{const r=JSON.parse(e||"");let a,s;try{if(!r)throw"makeTextItemObjectJSONFromPushDescID returned false";if(a=i.ZP.getDefaultLibrary(),!a)throw"No library";if(!(0,g.oY)(a))return;const e="application/vnd.adobe.characterstyle+json",l="characterstyle",d="data";s=(0,g.MN)(a,t,n.Z.CHARACTER_STYLE_ELEMENT_TYPE,{opType:c}),r&&s.createRepresentation(e,"primary").setValue(l,d,r);const p=[];if(o){const e=s.createRepresentation("image/png","rendition").setContentFromPath(o);p.push(e)}return Promise.all(p).then((function(){const e=[];return o&&e.push(s.setThumbnailCache(n.Z.CHARACTER_STYLE_THUMBNAIL_SIZE,o)),e.push(s.endOperation()),Promise.all(e).then((()=>{o&&u._I(o)})),s}),(function(){return a.removeElement(s,!0),Promise.reject("Could not create element.")}))}catch(e){return a&&s&&a.removeElement(s,!0),Promise.reject("Could not add character style: "+e)}}),(e=>Promise.reject("Could not makeTextItemObjectJSONFromPushDescID: "+e)))).then((e=>a.Z.revealElement(e)));var t,r,o,c}},{type:"color",callback:e=>b(e.name,e.primary,e.secondary,e.opType)},{type:"layerStyle",callback:e=>{const t={};return t.path=e.aslPath,(0,h.nA)(e.name,t,e.pngPath,i.ZP.getDefaultLibrary(),e.opType).then((function(e){a.Z.revealElement(e)}))}},{type:"graphic",callback:(e,t)=>{const r=e.assetPath;if(!(0,g.ii)(r,!e.moveFile))return Promise.reject("Could not create element: one or more files exceed 1GB limit");const n={path:r,relationship:"primary",dimensions:{width:e.exportInfo.pixelWidth,height:e.exportInfo.pixelHeight}},o={};return o.layerIds=e.exportInfo.layerIDs,o.documentId=e.exportInfo.documentID,o.pushEventMetadata=t,n.dimensions.width=Number(n.dimensions.width),n.dimensions.height=Number(n.dimensions.height),o.documentId=Number(o.documentId),"string"==typeof o.layerIds&&(o.layerIds=JSON.parse(o.layerIds)),(0,h.Bm)(e.name,[n],e.previewPath,i.ZP.getDefaultLibrary(),e.opType,o).then((e=>a.Z.revealElement(e)))}},{type:"gradient",callback:e=>_(e.name,e.primary,e.opType)}];let w;const x=()=>{s.Z.execApp("getTooltipState").then((function(e){n.Z.showTooltips=e}))},L=[{id:"1684816969",name:"dlDocInfoChanged",callback:e=>(c.Z.handleSelectionChange(),e.documentID!==w&&(n.Z.currentProduct.handleActiveDocChanged(e.documentID),w=e.documentID),!1),dynamic:!1},{id:null,name:"foregroundColorChanged",callback:()=>(c.Z.handleSelectionChange(),!1),dynamic:!0},{id:null,name:"fontListChanged",callback:()=>(s.Z.execApp("refreshFonts").then((function(){n.Z.currentProduct.fontManager.invalidateFontList()})),!1),dynamic:!0},{id:null,name:"convertMode",callback:()=>(c.Z.handleSelectionChange(),!1),dynamic:!0},{id:null,name:"preferencesChanged",callback:x,dynamic:!0}];let O="";const S=e=>{e&&e.data&&function(e){const t=e.event_metadata,r=function(e){const r=s.Z.createEvent("pushAssetToLibraryResponse","APPLICATION"),n={appMetadata:{pushEventMetadata:t},response:e};r.data=JSON.stringify(n),s.Z.dispatchEvent(r)},i=e=>{var t;r({status:"ok"}),t=(e=>{if(!e)return{};const t=e.type&&e.type.match(/application\/vnd\.adobe\.element\.(.*)\+dcx/),r=t&&2===t.length?t[1]:e.type,n={elementID:e.id,elementType:r},i=e.library;return i&&(n.libraryID=i.id,n.libraryElementCount=i.elements.length,i.collaboration&&(n.libraryShared=i.collaboration)),n})(e),n.Z.currentProduct.reportEvent?n.Z.currentProduct.reportEvent("pushAssetToLibrary",t,!0):console.error("Highbeam analytics not available.")},o=e=>r({status:"error",details:e});if(!e||!t)return Promise.reject("pushAssetToLibrary failed: parameter error");const a=e.assetType;if(!a)return Promise.reject("pushAssetToLibrary failed: asset type not defined");const c=E.filter((e=>a===e.type));0===c.length?Promise.reject("pushAssetToLibrary failed: No asset handler found for "+a):Promise.all(c.map((r=>r.callback(e,t).then(i,o))))}(e.data)},T=e=>{if(!e)return;let t={};const r=e.data.indexOf("{");if(-1!==r){const n=e.data.substr(r);t=JSON.parse(n)}const n=String(t.eventID),i=L.filter((function(e){return n===e.id}));1===i.length?i[0].callback(t.eventData):d.Z.log("Expected exactly one handler per event id: "+n)};var P=r(77560),I=r(76572);class A extends I.Z{_addBrushToDocument(e,t){return(0,g.vM)(t,"useBrush"),t.getContentPath().then((function(r){const n="photoshop",i={tool:t.getValue(n,"tool"),flow:t.getValue(n,"flow"),opacity:t.getValue(n,"opacity"),blendMode:t.getValue(n,"blendMode"),color:t.getValue(n,"color")};return s.Z.execApp("loadAndSelectBrush",[r,e.name,i])}))}getApplyOperations(e){const t=u.ku(e.type),r=e.representations.find((e=>{const r="rendition"===e.relationship,n=this._config.isRepresentationCompatible(e,t);return!r&&n}));return r?[{name:"DL_ADD_BRUSH_TO_DOC",icon:"brush",onClick:!0,apply:()=>this._addBrushToDocument(e,r),displayInMenu:!0}]:[]}}var C=r(84824),k=r(16771);class D extends k.Z{_setColor(e,t,r,i,o){return i||(i=[],e.representations.forEach((e=>{const t=e.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY);"primary"===e.relationship?i.unshift(t):i.push(t)})),e.representations.length>0&&(0,g.vM)(e.representations[0],t)),o&&o(t),s.Z.execApp(t,[i,r])}getApplyOperations(e){const t=c.Z.getLayerInfo(),r={name:"DL_SET_COLOR_TOOLTIP",icon:"paintbucket",apply:(t,r)=>this._setColor(e,"setColor",(0,C.Iu)("DL_SET_COLOR_TOOLTIP"),t,r),displayInMenu:!0},n=[];return t&&t.selectionExists?(t.enableShapeLayerApplyOperations?(n.push({name:"DL_SET_FILL_COLOR_TOOLTIP",icon:"paintbucket",apply:(t,r)=>this._setColor(e,"setFillColor",(0,C.Iu)("DL_SET_FILL_COLOR_TOOLTIP"),t,r),displayInMenu:!0}),n.push({name:"DL_SET_STROKE_COLOR_TOOLTIP",icon:"brush",apply:(t,r)=>this._setColor(e,"setStrokeColor",(0,C.Iu)("DL_SET_STROKE_COLOR_TOOLTIP"),t,r),displayInMenu:!0})):n.push(r),n.push({name:"DL_SET_COLOR_OVERLAY_TOOLTIP",icon:"brush",apply:(t,r)=>this._setColor(e,"setColorOverlay",(0,C.Iu)("DL_SET_COLOR_OVERLAY_TOOLTIP"),t,r),displayInMenu:!0,disableClick:!0})):n.push(r),!0!==n[0].disableClick&&(n[0].onClick=!0),n}defaultEditOperation(e){const t=this._config.findUsableRepresentation(e),r=t&&t.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY);let i;return s.Z.execApp("replaceColor",[r]).then((e=>(i=JSON.parse(e),s.Z.execApp("getLayerColor",[])))).then((function(t){if(i){const r=JSON.parse(t);e.beginOperation(),e.removeAllRepresentations(),r.forEach((function(t,r){const i=0===r?"primary":"rendition";e.createRepresentation(n.Z.COLOR_REPRESENTATION_TYPE,i).setValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY,t)})),e.endOperation()}}))}}var N=r(86423);class R extends N.Z{_fixGradientData(e){const t=e.getValue(n.Z.GRADIENT_NAMESPACE,n.Z.GRADIENT_DATA_KEY);e.getValue(n.Z.GRADIENT_NAMESPACE,"trackingdata")&&t&&1===t.smoothness&&delete t.smoothness}_defineCustomGradient(e){const t=this._config.findUsableRepresentation(e);if(t){const r=t.getValue(n.Z.GRADIENT_NAMESPACE,n.Z.GRADIENT_DATA_KEY);if(r)return this._fixGradientData(t),r.name=e.name,(0,g.vM)(t,"defineCustomGradient"),s.Z.execApp("defineCustomGradient",[r])}}_applyCustomGradient(e){const t=this._config.findUsableRepresentation(e);if(t){const r=t.getValue(n.Z.GRADIENT_NAMESPACE,n.Z.GRADIENT_DATA_KEY);if(r)return this._fixGradientData(t),r.name=e.name,(0,g.vM)(t,"applyCustomGradient"),s.Z.execApp("applyCustomGradient",[r])}}getApplyOperations(e){return n.Z.currentProduct.config.enableGradientContextMenu&&e&&!this.isDisabled(e)?[{name:"DL_ADD_GRADIENT_TO_PRESETS",onClick:!1,apply:()=>this._defineCustomGradient(e),displayInMenu:!0},{name:"DL_SET_FILL_GRADIENT_TOOLTIP",onClick:!0,apply:()=>this._applyCustomGradient(e),displayInMenu:!0}]:[]}isDisabled(e){const t=e.getPrimaryRepresentation(),r=t&&t.getValue("gradient","data");return r&&!["radial","linear","noise"].includes(r.type)}}var M=r(31870),j=r(48124),F=r(47320),Z=r(15909),B=r(9494),G=r(92098),U=r(80804);function H(e){const t=e.getPrimaryRepresentation();return!(!t||"image/vnd.adobe.photoshop.template"!==t.type&&"application/x-adobe-libraries-psdt"!==t.type)}function z(e){if(H(e))return!1;if(!F.Z.isEditable(e))return!1;const t=e.getPrimaryRepresentation();let r,n,o=!1,c=!1;const l="documentLock_"+e.id,d=e.library&&e.library.name;G.Z.getTempFile(t).then((function(t){return r=t,n=u.K3(r)+"p.png",s.Z.execApp("openAssetForEdit",[t,n,e.getLegacyReference()])})).then((t=>{s.Z.exec("CORE","isDocumentOpen",[r]).then((p=>{let h=!1;if(void 0!==p&&"undefined"!==p&&(h=JSON.parse(p)),!h)return G.Z.deleteTempFile(r),void Z.Z.elementEditCompleted(e);const f=U.Z.startListening(t,r,(t=>{if("closed"===t)B.Z.obtainLock(l,(function(){U.Z.stopListening(f),o=!0,!1===c&&G.Z.deleteTempFile(r),Z.Z.elementEditCompleted(e),B.Z.releaseLock(l)}));else if("saved"===t){if(!(0,g.ii)(r))return;c=!0;let t,p=e.library;const h=!p||p.isDeletedLocally;if(h||!p.isWritable){if(p=i.ZP.getRecoveryLibrary(d),!p)return;t=!0}B.Z.obtainLock(l,(()=>{const i=M.si(e);e.isDeletedLocally||t?e=p.createElement(e.name,e.type):(e.beginOperation(),e.removeAllRepresentations());const f=u.pH(r,e.type),m=e.createRepresentation(f,"primary");i&&M.i2(m,i);const v=[];v.push(m.setContentFromPath(r)),n&&u.xW(n)&&v.push((0,g.bf)(e,F.Z.getThumbnailSize(e),n));const y=()=>{const n=e.endOperation();B.Z.releaseLock(l),t&&(a.Z.revealElement(e),h?s.Z.showError((0,C.Iu)("DL_WARNING_RECOVERED_FROM_DELETED",{recoveryLibraryName:p.name})):s.Z.showError((0,C.Iu)("DL_WARNING_RECOVERED_FROM_READONLY",{recoveryLibraryName:p.name,originalLibraryName:d}))),n.then((()=>{o?G.Z.deleteTempFile(r):G.Z.updateTempFile(m,r),c=!1,Z.Z.sendElementUpdated(m)}))};Promise.all(v).then(y,y)}))}}))}))}))}class V extends j.Z{_addImageToDocument(e,t){const r=M.wq(e),n=this._config.findUsableRepresentation(e);return n?((0,g.vM)(n,"placeAsset",t),n.getContentPath().then((n=>s.Z.execApp("placeAsset",[n,e.library.name,e.name,e.getLegacyReference(),(0,g.RW)(e),e.created,r,r?M.kv(e):null,t])))):e.getThumbnailPath().then((function(n){return(0,g.dN)(e,"placeAsset",t),s.Z.execApp("placeAsset",[n,e.library.name,e.name,e.getLegacyReference(),(0,g.RW)(e),e.created,r,r?M.kv(e):null,t])}))}getApplyOperations(e){if(!c.Z.hasDocumentOpen())return[];let t=!1;const r=this._config.findUsableRepresentation(e);r&&-1!==["application/postscript","application/pdf","application/illustrator"].indexOf(r.type)&&(t=!0);const n=[];return H(e)||n.push({name:"DL_ADD_IMAGE_TO_DOC_AS_LINKED",icon:"download",apply:()=>this._addImageToDocument(e,!0),displayInMenu:!0}),n.push({name:t?"DL_ADD_IMAGE_TO_DOC_AS_COPY":"DL_ADD_IMAGE_TO_DOC_AS_LAYERS",icon:"download",apply:()=>this._addImageToDocument(e,!1),displayInMenu:!0}),n}defaultEditOperation(e){return z(e)}getAddOperations(e){const t=super.getAddOperations(e);return e&&e.libraryLinked?t.filter((e=>"DL_ADD_IMAGE_NAME"!==e.name&&"DL_CAPTURE"!==e.name)):t}isDisabled(e){return!this._config.findUsableRepresentation(e)&&!e.getCachedThumbnailPath()}}var Y=r(92106);class W extends Y.Z{_applyLayerStyle(e){const t=this._config.findUsableRepresentation(e);if(t)return(0,g.vM)(t,"applyLayerStyle"),t.getContentPath().then((e=>s.Z.execApp("applyLayerStyle",[e])))}getApplyOperations(e){const t=c.Z.getLayerInfo();return!t||t&&!t.enableApplyStyle?[]:[{name:"DL_APPLY_LAYER_STYLE",icon:"layerstyle",onClick:!0,apply:()=>this._applyLayerStyle(e),displayInMenu:!0}]}_addLayerStyle(e,t,r){const i=JSON.parse(e)||{},o=i.layerName||"",a=(0,g.MN)(t,o,n.Z.LAYER_STYLE_ELEMENT_TYPE,{opType:r}),s=[],c=i.files||[];if(c.forEach(((e,t)=>{const r=u.pH(e,n.Z.LAYER_STYLE_ELEMENT_TYPE);if(r){const n=0===t?"primary":"alternate",i=a.createRepresentation(r,n).setContentFromPath(e);s.push(i)}else d.Z.log("Could not create representation: path cannot end with '.': "+e)})),i.rendition){const e=a.createRepresentation("image/png","rendition").setContentFromPath(i.rendition);s.push(e)}return Promise.all(s).then((()=>{const e=[];return i.rendition&&e.push(a.setThumbnailCache(n.Z.LAYER_STYLE_THUMBNAIL_SIZE,i.rendition)),e.push(a.endOperation()),Promise.all(e).then((()=>{i.rendition&&u._I(i.rendition),c.forEach((e=>u._I(e)))})),a}),(()=>(t.removeElement(a,!0),Promise.reject("Could not create element."))))}getAddOperations(e){return e&&e.hasLayerStyles?[{name:"DL_ADD_LAYER_STYLE",icon:"AddLayerStyle",order:3,dropSupport:!1,apply:(e,t)=>s.Z.execApp("saveLayerStyle").then((r=>this._addLayerStyle(r,e,t))).catch((()=>Promise.reject("Could not save layer style.")))}]:[]}}var K=r(65944);class $ extends K.Z{_applyLook(e){const t=this._config.findUsableRepresentation(e);if(t)return(0,g.vM)(t,"makeColorLookupLayerFromFile"),t.getContentPath().then((t=>s.Z.execApp("makeColorLookupLayerFromFile",[t,e.name])))}_applyLookIfRGBDoc(e,t){s.Z.execApp("frontDocIsRGB").then((r=>{"true"===r?this._applyLook(e):t&&alert((0,C.Iu)("DL_APPLY_LOOK_REQUIRES_RGB"))}))}getApplyOperations(e){const t=c.Z.getLayerInfo();return!t||(t&&t.enableApplyLook,0)?[]:[{name:"DL_APPLY_LOOK",onClick:!0,isDraggable:!1,apply:()=>this._applyLookIfRGBDoc(e,!1),displayInMenu:!1},{name:"DL_APPLY_LOOK",onClick:!1,isDraggable:!1,apply:()=>this._applyLookIfRGBDoc(e,!0),displayInMenu:!0}]}}var q=r(95134);class X extends q.Z{constructor(...e){super(...e),this._applyPatternToDocument=function(e){const t=this._config.findUsableRepresentation(e);if(t)return(0,g.vM)(t,"applyPattern"),t.getContentPath().then((t=>s.Z.execApp("makePatternLayerFromFile",[t,e.name,(0,C.Iu)("DL_PHXS_HISTORY_ENTRY_APPLY_PATTERN")])))}}_definePatternFile(e){const t=this._config.findUsableRepresentation(e);if(t)return(0,g.vM)(t,"definePatternPreset"),t.getContentPath().then((t=>s.Z.execApp("definePatternFile",[t,e.name])))}getApplyOperations(e){const t=c.Z.getLayerInfo();return!t||t&&!t.selectionExists?[]:[{name:"DL_APPLY_PATTERN",onClick:!0,apply:()=>this._applyPatternToDocument(e),displayInMenu:!0},{name:"DL_ADD_PATTERN_TO_PRESETS",icon:"brush",onClick:!1,apply:()=>this._definePatternFile(e),displayInMenu:!0}]}}var J=r(54712);class Q extends J.Z{_openDocumentFromTemplate(e,t){return(0,g.vM)(t,"useTemplate"),t.getContentPath().then((t=>s.Z.execApp("openDocumentFromTemplate",[t,e.name,e.getLegacyReference()])))}getApplyOperations(e){const t=u.ku(e.type),r=e.representations.find((e=>{const r="rendition"===e.relationship,n=this._config.isRepresentationCompatible(e,t);return!r&&n}));let n=()=>this._openDocumentFromTemplate(e,r);if(!r){if(!this._config.isRepresentationCompatible(e.getPrimaryRepresentation(),t,!0))return[];const r=M.hr(e);n=()=>s.Z.showError((0,C.Iu)(r))}return[{name:"DL_OPEN_DOC_FROM_TEMPLATE",icon:"template",onDoubleClick:!0,apply:n,displayInMenu:!0}]}}var ee=r(54142),te=r(13293);const re="characterstyle",ne="data";class ie extends ee.Z{constructor(...e){super(...e),this._setTextStyle=function(e){const t=this._config.findUsableRepresentation(e);if(t){const r=te.R(e);r&&r.id?(0,g.vM)(t,"setFont",null,{event:{value:"typekit"}}):(0,g.vM)(t,"setFont");const n=t.getValue(re,ne);return s.Z.execApp("setFont",[n,(0,C.Iu)("DL_PHXS_HISTORY_ENTRY_SET_TEXT_STYLE")])}}}_createTextLayer(e){const t=this._config.findUsableRepresentation(e);if(t){(0,g.vM)(t,"createTextLayer");const e=t.getValue(re,ne);return s.Z.execApp("createFontLayer",[e,(0,C.Iu)("DL_PHXS_HISTORY_ENTRY_CREATE_TEXT_LAYER")])}}getApplyOperations(e){const t=c.Z.getLayerInfo();if(!t||t&&!t.selectionExists)return[];const r=[];return t&&t.enableApplyText&&r.push({name:"DL_SET_TEXT_STYLE_TOOLTIP",icon:"text",onClick:!0,apply:()=>this._setTextStyle(e),displayInMenu:!0}),r.push({name:"DL_CREATE_TEXT_LAYER_TOOLTIP",icon:"pastetext",apply:()=>this._createTextLayer(e),displayInMenu:!0}),r}}var oe=r(82359);class ae extends oe.Z{_add3dObjectToDocument(e){const t=this._config.findUsableRepresentation(e);return t?((0,g.vM)(t,"placeAsset",!1),t.getContentPath().then((t=>s.Z.execApp("placeAsset",[t,e.library.name,e.name,e.getLegacyReference(),(0,g.RW)(e),e.created,null,null,!1])))):e.getThumbnailPath().then((function(t){return(0,g.dN)(e,"placeAsset",!1),s.Z.execApp("placeAsset",[t,e.library.name,e.name,e.getLegacyReference(),(0,g.RW)(e),e.created,null,null,!1])}))}getApplyOperations(e){return c.Z.hasDocumentOpen()?[{name:"DL_ADD_IMAGE_TO_DOC",icon:"download",apply:()=>this._add3dObjectToDocument(e),displayInMenu:!0}]:[]}defaultEditOperation(e){return z(e)}}var se,ce,le=r(12894);class ue extends le.Z{_setFont(e){const t=this._config.findUsableRepresentation(e);if(t){const r=te.R(e);r&&r.id?(0,g.vM)(t,"setFont",null,{event:{value:"typekit"}}):(0,g.vM)(t,"setFont");const n=this._getStyleData(e,!0);return s.Z.execApp("setFont",[n,(0,C.Iu)("DL_PHXS_HISTORY_ENTRY_SET_FONT")])}}getApplyOperations(e){const t=c.Z.getLayerInfo();if(!t||t&&!t.selectionExists)return[];const r=[];return t&&t.enableApplyText&&r.push({name:"DL_SET_FONT_TOOLTIP",onClick:!0,apply:()=>this._setFont(e),displayInMenu:!0}),r}}let de=(se=class{constructor(){var e;(e=ce)&&Object.defineProperty(this,"isAddDocContentEnabled",{enumerable:e.enumerable,configurable:e.configurable,writable:e.writable,value:e.initializer?e.initializer.call(this):void 0})}},pe=se.prototype,he="isAddDocContentEnabled",fe=[m.observable],me={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}},ge={},Object.keys(me).forEach((function(e){ge[e]=me[e]})),ge.enumerable=!!ge.enumerable,ge.configurable=!!ge.configurable,("value"in ge||ge.initializer)&&(ge.writable=!0),ge=fe.slice().reverse().reduce((function(e,t){return t(pe,he,e)||e}),ge),void 0===ge.initializer&&(Object.defineProperty(pe,he,ge),ge=null),ce=ge,se);var pe,he,fe,me,ge;function ve(){const e=new de;function t(t){return e.isAddDocContentEnabled=i.ZP.areLibrariesLoaded&&t,i.ZP.areLibrariesLoaded&&t}return this.config={},this.config.code="PHXS",this.config.translationSuffix="PS",this.config.fullName="Photoshop",this.config.dragDropSource="com.adobe.photoshop",this.config.themes={323232:"darker",535353:"dark",b8b8b8:"light",f0f0f0:"lighter"},this.config.legacySpectrumEnabled=!0,this.config.defaultTheme="dark",this.config.deleteIcon="Delete-PS",this.config.elementTypes=[D,P.Z.ColorThemeElementConfig,R,ie,ue,W,A,V,ae,X,Q,P.Z.ComponentElementConfig,$,P.Z.VideoElementConfig,P.Z.CapsuleElementConfig,P.Z.ParagraphStyleElementConfig,P.Z.TextElementConfig,P.Z.AnimationElementConfig,P.Z.LightElementConfig,P.Z.MaterialElementConfig,P.Z.AudioElementConfig,P.Z.ChannelElementConfig,P.Z.ImageGuidelineElementConfig,P.Z.UnsupportedElementConfig],this.config.collapsedTypes=[n.Z.VIDEO_ELEMENT_TYPE,n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,n.Z.MATERIAL_ELEMENT_TYPE,n.Z.LIGHT_ELEMENT_TYPE,n.Z.TEXT_ELEMENT_TYPE,n.Z.CAPSULE_ELEMENT_TYPE,n.Z.ANIMATION_ELEMENT_TYPE,n.Z.AUDIO_ELEMENT_TYPE,n.Z.CHANNEL_ELEMENT_TYPE,n.Z.IMAGE_GUIDELINE_ELEMENT_TYPE,n.Z.UNSUPPORTED_ELEMENT_TYPE],this.config.isCaptureEnabled=!0,this.config.captureModules=["Patterns","Shapes","Colors","Gradients","Type"],this.config.enablePatternDragging=!1,this.config.useMouseEventToDetectDrop=!0,this.config.hasLibraryManager=!1,this.getFlyoutMenuItems=function(){return[{label:"DL_FLYOUT_ADD_DOC_CONTENT",enableMenu:t(c.Z.hasDocumentOpen()&&!p.Z.isImportExportInProgress),onClick(){n.Z.currentProduct.addDocContent()}}]},this.addDocContent=function(){o.ZP.closeDialog(),p.Z.resetMode();const e=s.Z.createEvent("com.adobe.DesignLibraries.events.AddDocContent","APPLICATION");s.Z.dispatchEvent(e)},this.getAddDocContentOperation=function(){if(t(c.Z.hasDocumentOpen()))return{buttonName:p.Z.isNewUserState()?"DL_NEW_USER_ADD_DOC_CONTENT_BUTTON":"DL_ADD_DOC_CONTENT_BUTTON",buttonToolTip:"DL_ADD_DOC_CONTENT_BUTTON_TOOLTIP",iconToolTip:"DL_ADD_DOC_CONTENT_ICON_TOOLTIP",icon:"UploadDocAssets",apply(){n.Z.currentProduct.addDocContent()},enabled:t(c.Z.hasDocumentOpen())}},this.handleActiveDocChanged=function(e){t(0!==e)},this.dropHandlers={color:function(e){let t,r;const n=[];for(t=0;t<e.assetList.length;++t)r=e.assetList[t].data[0],n.push(b(e.assetList[t].name,r.primary,r.secondary,"dragToPanel",e.library));return Promise.all(n)},gradient:function(e){const t=[];return e.assetList.forEach((r=>{const n=r.data[0],o=e.library||i.ZP.getDefaultLibrary();"number"==typeof n?t.push(s.Z.execApp("saveGradientByIndex",[n,o.id])):t.push(_(r.name,n,"dragToPanel",o))})),Promise.all(t)},style:function(e){const t=(t,r)=>s.Z.execApp("saveLayerStyleByIndex",[t]).then((t=>{const n=e.library||i.ZP.getDefaultLibrary(),o=JSON.parse(t)||{},s={};return s.path=o.aslPath,(0,h.nA)(r,s,o.previewPath,n,"dragToPanel").then((e=>(i.ZP.currentLibrary===n&&a.Z.revealElement(e),e)))}));let r,n;const o=[];for(r=0;r<e.assetList.length;++r)n=e.assetList[r].data[0],o.push(t(n,e.assetList[r].name));return Promise.all(o)},brush:function(e){const t=(t,r)=>s.Z.execApp("saveBrushByIndex",[t]).then((t=>{const n=e.library||i.ZP.getDefaultLibrary(),o=JSON.parse(t)||{},s={};return s.path=o.abrPath,(0,h.D5)(r,s,o.previewPath,n,"dragToPanel").then((e=>(i.ZP.currentLibrary===n&&a.Z.revealElement(e),e)))}));let r,n;const o=[];for(r=0;r<e.assetList.length;++r)n=e.assetList[r].data[0],o.push(t(n,e.assetList[r].name));return Promise.all(o)}},this.dropHandler=function(e){const t=e;if(t&&t.assetList&&t.assetList.length>0){const e=this.dropHandlers[t.assetList[0].type];return e?e(t):Promise.reject()}return Promise.reject()},this.fontManager=new f.Z,this.init=function(){s.Z.execApp("getConfigInfoFromPS").then((function(e){const t=JSON.parse(e)||{};n.Z.currentProduct.config.enablePatternDragging=t.enablePatternDragging,n.Z.currentProduct.config.enableGradientContextMenu=t.enableGradientContextMenu})),u.Zh(n.Z.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),u.Zh(n.Z.BRUSH_ELEMENT_TYPE,["image/x-adobe-photoshop-brush"]),u.Zh(n.Z.CHARACTER_STYLE_ELEMENT_TYPE,["application/vnd.adobe.characterstyle+json"]),u.Zh(n.Z.FONT_ELEMENT_TYPE,["application/vnd.adobe.font+json"]),u.Zh(n.Z.LAYER_STYLE_ELEMENT_TYPE,["application/vnd.adobe.layerstyle"]),u.Zh(n.Z.THREE_D_ELEMENT_TYPE,["image/vnd.adobe.photoshop"]),u.Zh(n.Z.PATTERN_ELEMENT_TYPE,["image/vnd.adobe.pattern+png"]),u.Zh(n.Z.LOOK_ELEMENT_TYPE,["application/vnd.adobe.cube+txt"]),u.Zh(n.Z.TEMPLATE_ELEMENT_TYPE,["image/vnd.adobe.photoshop.template","application/vnd.adobe.photoshop.template"]),u.Zh(n.Z.GRADIENT_ELEMENT_TYPE,["application/vnd.adobe.gradient.noise+json","application/vnd.adobe.gradient+json"]),u.Zh(n.Z.COMPONENT_ELEMENT_TYPE,["image/svg+xml","image/png"]),u.Dk(n.Z.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),u.Dk(n.Z.THREE_D_ELEMENT_TYPE,["image/vnd.adobe.photoshop"]);const e=s.Z.execApp("getReadableFileExtensions").then((function(e){const t=JSON.parse(e)||[],r=t.indexOf("PSDT");-1!==r&&t.splice(r,1),u.Zh(n.Z.IMAGE_ELEMENT_TYPE,["image/vnd.adobe.photoshop.template","application/x-adobe-libraries-psdt"]);const i=["AI","SVG","SVGZ","PDF"];t.length>0?(i.forEach((function(e){const r=t.indexOf(e);-1!==r&&t.splice(r,1)})),u.rx(n.Z.IMAGE_ELEMENT_TYPE,i),u.KU(n.Z.IMAGE_ELEMENT_TYPE,t)):(d.Z.log("Failed to get readable file extensions from PHXS, using short default list."),u.Zh(n.Z.IMAGE_ELEMENT_TYPE,["application/illustrator","image/svg+xml","application/pdf"]),u.Dk(n.Z.IMAGE_ELEMENT_TYPE,["image/png","image/jpeg","image/jpg","image/gif","image/bmp","application/photoshop","image/vnd.adobe.photoshop","application/photoshop.large"]))})),t=s.Z.createEvent("com.adobe.PhotoshopPersistent","APPLICATION");return s.Z.dispatchEvent(t),this.startEventListener(),e},this.startEventListener=function(){s.Z.addManagerInitListener(),s.Z.addOpenDialogEventListener(),function(){const e=L.reduce((function(e,t){return t.dynamic&&e.push(t.name),e}),[]);s.Z.exec("PHXS","getStringID",[e]).then((function(e){const t=e.split(",");let r=0;L.forEach((function(e){e.dynamic&&(e.id=t[r],r++)})),O=L.map((e=>e.id)).join(",");const o=s.Z.createEvent("com.adobe.PhotoshopRegisterEvent","APPLICATION");o.data=O,s.Z.dispatchEvent(o),s.Z.addEventListener("com.adobe.PhotoshopJSONCallback"+n.Z.EXTENSION_ID,T),i.ZP.waitForInitialLoad().then((()=>{const e=s.Z.createEvent("com.adobe.DesignLibraries.events.READY","APPLICATION");s.Z.dispatchEvent(e)}))})),s.Z.addEventListener("pushAssetToLibrary",S),x()}()},this.stopEventListener=function(){s.Z.removeManagerInitListener(),s.Z.removeOpenDialogEventListener(),function(){const e=s.Z.createEvent("com.adobe.PhotoshopUnRegisterEvent","APPLICATION");e.data=O,s.Z.dispatchEvent(e),s.Z.removeEventListener("PhotoshopCallback",T),s.Z.removeEventListener("pushAssetToLibrary",S),O=""}()},this.reportEvent=function(e,t,r){if("createElement"===e&&!t.opType){const r=l.ZP.getExtraEventMetrics(e);r&&(t.opType=r.opType)}s.Z.execApp("reportEvent",[e,t,r]).then((function(t){JSON.parse(t)&&d.Z.log(e+" metric reported to PS")}))},this.getUserData=function(e){s.Z.execApp("getUserData").then((function(t){if(!t||"undefined"===t)return e();e(JSON.parse(t))}))},this}},42334:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(87876),i=r(53337),o=r(19429);function a(){a=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function f(){}var m={};c(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(O([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=f,c(y,"constructor",f),c(f,"constructor",h),h.displayName=c(f,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),c(y,s,"Generator"),c(y,i,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function s(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function c(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){s(o,n,i,a,c,"next",e)}function c(e){s(o,n,i,a,c,"throw",e)}a(void 0)}))}}const l=new class{constructor(){this.EXECUTE_OPERATION_IN_MODAL={modalBehavior:"execute",executeWhileModal:!0}}executeBatchPlayCommand(e,t){var r=this;return c(a().mark((function n(){var i;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=window.nodeRequire("photoshop").action,t||(t=r.EXECUTE_OPERATION_IN_MODAL),n.next=4,i.batchPlay([e],t);case 4:return n.abrupt("return",n.sent);case 5:case"end":return n.stop()}}),n)})))()}executeMultipleBatchPlayCommand(e,t){var r=this;return c(a().mark((function n(){var i;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=window.nodeRequire("photoshop").action,t||(t=r.EXECUTE_OPERATION_IN_MODAL),n.next=4,i.batchPlay(e,t);case 4:return n.abrupt("return",n.sent);case 5:case"end":return n.stop()}}),n)})))()}getAppProperty(e,t,r,n){var i=this;return c(a().mark((function o(){var s,c,l;return a().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return s={_obj:"get",_target:[{_property:t,_ref:"property"}].concat(r)},n&&n.forEach(((e,t)=>s[t]=e)),o.next=5,i.executeBatchPlayCommand(s);case 5:if(c=o.sent,!(!e&&c&&c instanceof Array)){o.next=16;break}if("string"!=typeof(l=c[0][t])){o.next=15;break}return o.prev=9,o.abrupt("return",JSON.parse(l));case 13:o.prev=13,o.t0=o.catch(9);case 15:return o.abrupt("return",l);case 16:return o.abrupt("return",c);case 17:case"end":return o.stop()}}),o,null,[[9,13]])})))()}getCurrentTool(){var e=this;return c(a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getAppProperty(!1,"tool",[{_enum:"ordinal",_ref:"application",_value:"targetEnum"}]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}getCurrentToolOptions(){var e=this;return c(a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getAppProperty(!1,"currentToolOptions",[{_enum:"ordinal",_ref:"application",_value:"targetEnum"}]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}currentToolSupportsBrushes(){var e=this;return c(a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getAppProperty(!1,"toolSupportsBrushes",[{_enum:"ordinal",_ref:"application",_value:"targetEnum"}]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}setLayerName(e,t,r){var n=this;return c(a().mark((function i(){var o;return a().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o={_obj:"set",_target:[{_id:t,_ref:"layer"},{_id:e,_ref:"document"}],to:{_obj:"layer",name:r}},i.next=3,n.executeBatchPlayCommand(o);case 3:return i.abrupt("return",i.sent);case 4:case"end":return i.stop()}}),i)})))()}setCurrentTool(e){var t=this;return c(a().mark((function r(){var n;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={_obj:"select",_target:[{_ref:e}]},r.next=3,t.executeBatchPlayCommand(n);case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}}),r)})))()}setToolOptions(e,t){var r=this;return c(a().mark((function n(){var i;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i={_obj:"set",_target:{_ref:e},to:t,_options:{dialogOptions:"dontDisplay"}},n.next=3,r.executeBatchPlayCommand(i);case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}}),n)})))()}setForegroundColor(e){var t=this;return c(a().mark((function r(){var n;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={_obj:"set",_target:[{_property:"foregroundColor",_ref:"color"}],to:e},r.next=3,t.executeBatchPlayCommand(n);case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}}),r)})))()}getForegroundColor(){var e=this;return c(a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getAppProperty(!1,"foregroundColorRGB",[{_enum:"ordinal",_ref:"application",_value:"targetEnum"}]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}getShowTooltips(){var e=this;return c(a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getAppProperty(!1,"showToolTips",[{_enum:"ordinal",_ref:"application",_value:"targetEnum"}]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}getSelectedLayerIndices(e,t){var r=this;return c(a().mark((function i(){var o,s,c,l,u;return a().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(o=1,e){i.next=14;break}if(!t){i.next=6;break}i.t0=t,i.next=9;break;case 6:return i.next=8,n.Z.getActiveDocumentId();case 8:i.t0=i.sent;case 9:return s=i.t0,i.next=12,n.Z.hasBackgroundLayer(s);case 12:i.sent&&(o=0);case 14:return c=e?"targetLayersIDs":"targetLayers",i.next=17,r.getAppProperty(!1,c,[{_enum:"ordinal",_ref:"document",_value:"targetEnum"}]);case 17:return l=i.sent,u=[],l.forEach((t=>{e?u.push(t._id):u.push(t._index+o)})),i.abrupt("return",u);case 21:case"end":return i.stop()}}),i)})))()}selectLayerByIndex(e,t){var r=this;return c(a().mark((function n(){var i;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i={_obj:"select",_target:[{_index:e,_ref:"layer"}]},t&&(i.selectionModifier={_enum:"selectionModifierType",_value:"addToSelection"}),n.abrupt("return",r.executeBatchPlayCommand(i));case 3:case"end":return n.stop()}}),n)})))()}forEachSelectedLayer(e){var t=this;return c(a().mark((function r(){var n,i;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("function"==typeof e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,t.getSelectedLayerIndices();case 4:n=r.sent,r.t0=a().keys(n);case 6:if((r.t1=r.t0()).done){r.next=19;break}return i=r.t1.value,r.next=10,t.selectLayerByIndex(n[i]);case 10:return r.prev=10,r.next=13,e();case 13:r.next=17;break;case 15:r.prev=15,r.t2=r.catch(10);case 17:r.next=6;break;case 19:n.length>0&&n.pop(),r.t3=a().keys(n);case 21:if((r.t4=r.t3()).done){r.next=27;break}return i=r.t4.value,r.next=25,t.selectLayerByIndex(n[i],!0);case 25:r.next=21;break;case 27:case"end":return r.stop()}}),r,null,[[10,15]])})))()}setPattern(e,t){var r=this;return c(a().mark((function n(){var i;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i={_obj:"set",_target:[{_enum:"ordinal",_ref:"contentLayer",_value:"targetEnum"}],to:{_obj:"patternLayer",pattern:{ID:e,_obj:"pattern"},scale:{_unit:"percentUnit",_value:t}},_options:{dialogOptions:"display"}},n.next=3,r.executeBatchPlayCommand(i);case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}}),n)})))()}getFileFormats(){var e=this;return c(a().mark((function t(){var r;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getAppProperty(!1,"FileFormats",[{_enum:"ordinal",_ref:"application",_value:"targetEnum"}]);case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})))()}tempFolderPath(){return c(a().mark((function e(){var t,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=window.nodeRequire("photoshop").cclibrariespanel,e.next=3,t.getTempFolder();case 3:return r=e.sent,e.abrupt("return",r.tempPath);case 5:case"end":return e.stop()}}),e)})))()}generateRepresentationAndPreview(e,t,r,n=i.Z.previewMaxWidth,s=i.Z.previewMaxHeight){var l=this;return c(a().mark((function i(){var c,u,d,p,h;return a().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return c={_obj:"export",externalPreviewParams:{_obj:"externalPreviewParams",in:{_kind:"local",_path:r},pixelHeight:s,pixelWidth:n},null:[{_enum:"ordinal",_ref:"layer",_value:"targetEnum"}],representation:{_obj:"representation",in:{_kind:"local",_path:e},name:t},using:{_class:"saveForCCLibrariesElement"}},i.next=3,l.executeBatchPlayCommand(c);case 3:return u=i.sent,d=u[0].in._path,p={width:0,height:0},Object.prototype.hasOwnProperty.call(u[0],o.y8)&&(p.width=u[0][o.y8]),Object.prototype.hasOwnProperty.call(u[0],o.k)&&(p.width=u[0][o.k]),(h={}).dimensions=p,h.repPath=d,i.abrupt("return",h);case 12:case"end":return i.stop()}}),i)})))()}saveAssets(e){var t=this;return c(a().mark((function r(){var i,o,s,c,l,u,d,p,h;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.Z.getNumberOfDocuments();case 2:if(0!==r.sent){r.next=5;break}return r.abrupt("return");case 5:return r.next=7,t.tempFolderPath();case 7:return i=r.sent,o=i+"/"+e.name+"p.png",r.next=11,t.generateRepresentationAndPreview(i,e.name,o,e.maxWidth,e.maxHeight);case 11:return s=r.sent,r.next=14,n.Z.getActiveDocumentId();case 14:return c=r.sent,r.next=17,n.Z.getActiveLayerId(c);case 17:return l=r.sent,u=s.repPath,r.next=21,n.Z.getLayerName(c,l);case 21:return d=r.sent,p={layerName:d,files:[{path:u,relationship:"primary",dimensions:s.dimensions}],rendition:o,documentId:c},r.next=25,t.getSelectedLayerIndices(!0,c);case 25:return(h=r.sent)&&(p.layerIds=h),r.abrupt("return",p);case 28:case"end":return r.stop()}}),r)})))()}}},41498:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n=r(75067),i=r(99386),o=r(53849),a=r(46903),s=r(87876),c=r(61738),l=r(42334),u=r(19429);function d(){d=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function h(){}function f(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(O([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=f,s(y,"constructor",f),s(f,"constructor",h),h.displayName=s(f,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function p(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function h(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){p(o,n,i,a,s,"next",e)}function s(e){p(o,n,i,a,s,"throw",e)}a(void 0)}))}}const f=new class{constructor(){this.psRGBMode="RGBColor",this.psHSBMode="HSBColorClass",this.psCMYKMode="CMYKColorClass",this.psGrayscaleMode="grayscale",this.psLABMode="labColor",this.textApplyOverrideOperation=3,this.psBlackColor={_obj:"RGBColor",red:0,grain:0,blue:0}}isModeSupported(e){return e&&!!["RGB","CMYK","Gray","Lab","HSB"].find((t=>t===e.mode))}findRepWithMode(e,t){return e.find((e=>e.mode===t))}getBestColorRepresentation(e){const t=e[0];return this.isModeSupported(t)?t:this.findRepWithMode(e,"RGB")}psSolidColorToLibraryColorWithRGB(e,t){var r=this;return h(d().mark((function n(){var i,o;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if((i=[]).push(r.psSolidColorToLibraryColor(e,t)),e._obj===r.psRGBMode){n.next=7;break}return n.next=5,r.convertColorToRGB(e);case 5:o=n.sent,i.push(r.psSolidColorToLibraryColor(o[0].color,t));case 7:return n.abrupt("return",i);case 8:case"end":return n.stop()}}),n)})))()}psSolidColorToLibraryColor(e,t){let r;switch(e._obj){case this.psCMYKMode:r={mode:"CMYK",value:{c:e.cyan,m:e.magenta,y:e.yellowColor,k:e.black},type:"process"};break;case this.psRGBMode:r={mode:"RGB",value:{r:e.red,g:e.grain,b:e.blue},type:"process"};break;case this.psLABMode:r={mode:"Lab",value:{l:e.luminance,a:e.a,b:e.b},type:"process"};break;case this.psGrayscaleMode:r={mode:"Gray",value:e.gray,type:"process"};break;case this.psHSBMode:r={mode:"HSB",value:{h:e.hue._value,s:e.saturation,b:e.brightness},type:"process"}}return r.profileName=t||e.profileName||i.Z.DEFAULT_SRGB_PROFILE,r}libraryColorToPSSolidColor(e){let t;if(Array.isArray(e)&&(e=this.getBestColorRepresentation(e)),e)switch(t=new Object,e.mode){case"RGB":t._obj=this.psRGBMode,t.red=e.value.r,t.green=e.value.g,t.blue=e.value.b;break;case"CMYK":t._obj=this.psCMYKMode,t.cyan=e.value.c,t.magenta=e.value.m,t.yellowColor=e.value.y,t.black=e.value.k;break;case"Lab":t._obj=this.psLABMode,t.luminance=e.value.l,t.a=e.value.a,t.b=e.value.b;break;case"Gray":t._obj=this.psGrayscaleMode,t.gray=e.value;break;case"HSB":t._obj=this.psHSBMode,t.hue=e.value.h,t.saturation=e.value.s,t.brightness=e.value.b}return t}addUnitToHSBModeSolidColor(e){let t;return e._obj===this.psHSBMode?(t=new Object,t._obj=e._obj,t.saturation=e.saturation,t.brightness=e.brightness,t.hue={_unit:"angleUnit",_value:e.hue}):t=e,t}showColorPicker(){return h(d().mark((function e(){var t;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={_obj:"showColorPicker",to:!0},e.next=3,l.Z.executeBatchPlayCommand(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))()}setStrokeColorForShapeLayer(e){var t=this;return h(d().mark((function r(){var n,i;return d().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.addUnitToHSBModeSolidColor(e),i={_obj:"set",_target:[{_enum:"ordinal",_ref:"contentLayer",_value:"targetEnum"}],to:{_obj:"shapeStyle",strokeStyle:{_obj:"strokeStyle",strokeEnabled:!0,strokeStyleContent:{_obj:"solidColorLayer",color:n},strokeStyleVersion:2}}},r.next=4,l.Z.executeBatchPlayCommand(i);case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)})))()}setStrokeColor(e){var t=this;return h(d().mark((function r(){var n;return d().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,s.Z.getNumberOfDocuments();case 2:if(0!==r.sent){r.next=5;break}return r.abrupt("return");case 5:return n=t.libraryColorToPSSolidColor(e),r.next=8,l.Z.setForegroundColor(n);case 8:return r.next=10,t.setStrokeColorForShapeLayer(n);case 10:return r.abrupt("return",r.sent);case 11:case"end":return r.stop()}}),r)})))()}setColorOverlayForSinglySelectedLayer(e){var t=this;return h(d().mark((function r(){var n,i;return d().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.addUnitToHSBModeSolidColor(e),i={_obj:"set",_target:[{_property:"layerEffects",_ref:"property"},{_enum:"ordinal",_ref:"layer",_value:"targetEnum"}],merge:!0,to:{_obj:"layerEffects",scale:{_unit:"percentUnit",_value:100},solidFill:{_obj:"solidFill",color:n,enabled:!0,mode:{_enum:u.OC,_value:u.Ii},opacity:{_unit:"percentUnit",_value:100}}}},r.next=4,l.Z.executeBatchPlayCommand(i);case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)})))()}setColorOverlay(e,t){var r=this;return h(d().mark((function n(){var i,o,a,c;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,s.Z.getNumberOfDocuments();case 2:if(0!==n.sent){n.next=5;break}return n.abrupt("return");case 5:return i=r.libraryColorToPSSolidColor(e),n.next=8,l.Z.setForegroundColor(i);case 8:return o=function(){var e=h(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setColorOverlayForSinglySelectedLayer(i);case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),a=function(){var e=h(d().mark((function e(r){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.suspendHistory({historyStateInfo:{name:t,target:[{_ref:"document",_enum:"ordinal",_value:"targetEnum"},{_ref:"application",_enum:"ordinal",_value:"targetEnum"}]}});case 2:return n=e.sent,e.next=5,l.Z.forEachSelectedLayer(o.bind(this));case 5:return e.next=7,r.resumeHistory(n);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),c=window.nodeRequire("photoshop").core,n.next=13,c.executeAsModal(a.bind(r),{commandName:t});case 13:return n.abrupt("return",n.sent);case 14:case"end":return n.stop()}}),n)})))()}setTextColor(e){var t=this;return h(d().mark((function r(){var n,i;return d().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.addUnitToHSBModeSolidColor(e),i={_obj:"set",_target:[{_property:"textStyle",_ref:"property"},{_enum:"ordinal",_ref:"textLayer",_value:"targetEnum"}],to:{_obj:"textStyle",color:n,textOverrideFeatureName:808466226,typeStyleOperationType:t.textApplyOverrideOperation}},r.next=4,l.Z.executeBatchPlayCommand(i);case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)})))()}setCurrentSolidFillOrShapeLayerColor(e){var t=this;return h(d().mark((function r(){var n,i;return d().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.addUnitToHSBModeSolidColor(e),i={_obj:"set",_target:[{_enum:"ordinal",_ref:"contentLayer",_value:"targetEnum"}],to:{_obj:"solidColorLayer",color:n}},r.next=4,l.Z.executeBatchPlayCommand(i);case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)})))()}setColorForSinglySelectedLayer(e){var t=this;return h(d().mark((function r(){var n,i,o;return d().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,s.Z.getActiveDocumentId();case 2:return n=r.sent,r.next=5,s.Z.getActiveLayerId(n);case 5:return i=r.sent,r.next=8,s.Z.getLayerKind(n,i);case 8:if((o=r.sent)!==s.Z.layerKindMap["LayerKind.SOLIDFILL"]&&o!==s.Z.layerKindMap["LayerKind.VECTOR"]){r.next=14;break}return r.next=12,t.setCurrentSolidFillOrShapeLayerColor(e);case 12:r.next=17;break;case 14:if(o!==s.Z.layerKindMap["LayerKind.TEXT"]){r.next=17;break}return r.next=17,t.setTextColor(e);case 17:case"end":return r.stop()}}),r)})))()}setColor(e,t){var r=this;return h(d().mark((function n(){var i,o,a,c;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=r.libraryColorToPSSolidColor(e),n.next=3,l.Z.setForegroundColor(i);case 3:return n.next=5,s.Z.getNumberOfDocuments();case 5:if(0!==n.sent){n.next=8;break}return n.abrupt("return");case 8:return o=function(){var e=h(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setColorForSinglySelectedLayer(i);case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),a=function(){var e=h(d().mark((function e(r){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.suspendHistory({historyStateInfo:{name:t,target:[{_ref:"document",_enum:"ordinal",_value:"targetEnum"},{_ref:"application",_enum:"ordinal",_value:"targetEnum"}]}});case 2:return n=e.sent,e.next=5,l.Z.forEachSelectedLayer(o.bind(this));case 5:return e.next=7,r.resumeHistory(n);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),c=window.nodeRequire("photoshop").core,n.next=13,c.executeAsModal(a.bind(r),{commandName:t});case 13:case"end":return n.stop()}}),n)})))()}convertColorToRGB(e){return h(d().mark((function t(){var r;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={_obj:"convertColorToSpace",_target:{_ref:"application"},color:e},c.Z.putEnumerationValueInDescriptor(r,"colorSpace","colorSpace","RGB"),t.next=4,l.Z.executeBatchPlayCommand(r);case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)})))()}getSolidFillColor(e,t,r){var n=this;return h(d().mark((function i(){var o,a;return d().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=[],i.next=3,l.Z.getAppProperty(!1,u.kY,[{_id:t,_ref:"layer"},{_id:e,_ref:"document"}]);case 3:if(a=i.sent,!(Array.isArray(a)&&a.length>0&&a[0].color)){i.next=8;break}return i.next=7,n.psSolidColorToLibraryColorWithRGB(a[0].color,r);case 7:o=i.sent;case 8:return i.abrupt("return",o);case 9:case"end":return i.stop()}}),i)})))()}getSolidStrokeColor(e,t,r){var n=this;return h(d().mark((function i(){var o,a;return d().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=[],i.next=3,l.Z.getAppProperty(!1,u.Ng,[{_id:t,_ref:"layer"},{_id:e,_ref:"document"}]);case 3:if(!((a=i.sent)&&a.strokeStyleContent&&a.strokeStyleContent.color)){i.next=8;break}return i.next=7,n.psSolidColorToLibraryColorWithRGB(a.strokeStyleContent.color,r);case 7:o=i.sent;case 8:return i.abrupt("return",o);case 9:case"end":return i.stop()}}),i)})))()}getLayerEffectColor(e,t,r){var n=this;return h(d().mark((function i(){var o;return d().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(o=[],!(e&&Object.prototype.hasOwnProperty.call(e,r)&&e[r].color)){i.next=5;break}return i.next=4,n.psSolidColorToLibraryColorWithRGB(e[r].color,t);case 4:o=i.sent;case 5:return i.abrupt("return",o);case 6:case"end":return i.stop()}}),i)})))()}replaceColor(e){var t=this;return h(d().mark((function r(){var n,i,o,a,c;return d().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.libraryColorToPSSolidColor(e),r.next=3,l.Z.setForegroundColor(n);case 3:return i=[],r.next=6,t.showColorPicker();case 6:if(o=r.sent,!Array.isArray(o)||!o[0].value){r.next=17;break}return r.next=10,s.Z.getActiveDocumentId();case 10:if(!(c=r.sent)){r.next=15;break}return r.next=14,l.Z.getAppProperty(!1,"profile",[{_id:c,_ref:"document"}]);case 14:a=r.sent;case 15:i.push(t.psSolidColorToLibraryColor(o[0].color,a)),i.push(t.psSolidColorToLibraryColor(o[0].RGBFloatColor,a));case 17:return r.abrupt("return",i);case 18:case"end":return r.stop()}}),r)})))()}addPSColor(e,t,r,s,c){var l=this;return h(d().mark((function u(){var p;return d().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(e=e||"",c=c||n.ZP.getDefaultLibrary()){u.next=4;break}return u.abrupt("return",Promise.reject("Could not add color: No library"));case 4:if((0,a.oY)(c)){u.next=6;break}return u.abrupt("return",Promise.reject("Could not add color: Library not writable"));case 6:if(p=(0,a.MN)(c,e,i.Z.COLOR_ELEMENT_TYPE,{opType:s}),t&&p.createRepresentation(i.Z.COLOR_REPRESENTATION_TYPE,"primary").setValue("color","data",l.psSolidColorToLibraryColor(t)),r&&p.createRepresentation(i.Z.COLOR_REPRESENTATION_TYPE,"rendition").setValue("color","data",l.psSolidColorToLibraryColor(r)),p.endOperation(),n.ZP.currentLibrary!==c){u.next=13;break}return u.next=13,o.Z.revealElement(p);case 13:return u.abrupt("return",p);case 14:case"end":return u.stop()}}),u)})))()}}},19429:(e,t,r)=>{"use strict";r.d(t,{$6:()=>ye,$V:()=>o,$h:()=>re,Bn:()=>R,Ds:()=>Ee,ES:()=>ie,Fh:()=>Z,G$:()=>w,GS:()=>i,HJ:()=>f,HX:()=>p,Hj:()=>y,Ii:()=>le,Ip:()=>de,J3:()=>se,JF:()=>l,LS:()=>z,M_:()=>pe,Ng:()=>W,OC:()=>ce,OD:()=>D,OF:()=>he,OQ:()=>_,PT:()=>L,Pw:()=>Q,Ri:()=>oe,Rs:()=>A,S5:()=>ve,So:()=>H,St:()=>C,T7:()=>b,Tk:()=>s,US:()=>a,Um:()=>ue,WI:()=>E,XV:()=>S,YQ:()=>ee,Zd:()=>k,Zy:()=>T,_z:()=>V,aK:()=>x,ab:()=>ae,af:()=>me,ah:()=>j,c4:()=>v,df:()=>c,dy:()=>G,fO:()=>I,g4:()=>_e,gd:()=>K,hK:()=>q,hf:()=>ne,jl:()=>N,ju:()=>O,k:()=>J,kY:()=>Y,l7:()=>n,lY:()=>M,lq:()=>$,oE:()=>h,oy:()=>g,s$:()=>U,se:()=>P,si:()=>be,tv:()=>ge,ur:()=>d,wh:()=>m,wm:()=>fe,ww:()=>te,xX:()=>u,xd:()=>F,y8:()=>X,yG:()=>B});const n="textStyleRange",i="textStyle",o="textLayer",a="textKey",s="color",c="fontCaps",l="altligature",u="fractions",d="leading",p="ligature",h="impliedLeading",f="noBreak",m="oldStyle",g="ordinals",v="ornaments",y="titling",b="tracking",_="horizontalScale",E="verticalScale",w="size",x="impliedFontSize",L="subScript",O="superScript",S="normal",T="stylisticAlternates",P="contextualLigatures",I="swash",A="syntheticBold",C="syntheticItalic",k="textClickPoint",D="textShape",N="underline",R="autoKern",M="transform",j="warp",F="autoLeading",Z="strikethrough",B="fontPostScriptName",G="baseline",U="impliedBaselineShift",H="$CCLc",z="smartObject",V="ccLibrariesElement",Y="adjustment",W="AGMStrokeStyleInfo",K="orientation",$="antiAlias",q="antiAliasType",X="pixelWidth",J="pixelHeight",Q="underlineOff",ee="underlineOnLeftInVertical",te="strikethroughOff",re="xHeightStrikethroughOn",ne="allCaps",ie="normal",oe="smallCaps",ae="RGBColor",se="colorLookup",ce="blendMode",le="normal",ue=248,de=32,pe="Aa",he="eventRecord",fe="eventName",me="libraryID",ge="libraryElemCount",ve="elementID",ye="elementType",be="representationType",_e="opType",Ee="details"},61738:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=new class{putEnumerationValueInDescriptor(e,t,r,n){e[t]={_enum:r,_value:n}}putUnitValueInDescriptor(e,t,r,n){e[t]={_unit:r,_value:n}}getEnumerationValueFromDescriptor(e,t){return e[t]?e[t]._value:void 0}}},87876:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p});var n=r(25585),i=r(28059),o=r(42334),a=r(70593),s=r(19429),c=r(41498);function l(){l=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function p(){}function h(){}function f(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(O([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=f,s(y,"constructor",f),s(f,"constructor",h),h.displayName=s(f,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function u(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function d(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){u(o,n,i,a,s,"next",e)}function s(e){u(o,n,i,a,s,"throw",e)}a(void 0)}))}}const p=new class{constructor(){this.layerKindMap={"LayerKind.PIXEL":1,"LayerKind.ADJUSTMENT":2,"LayerKind.TEXT":3,"LayerKind.VECTOR":4,"LayerKind.SMARTOBJECT":5,"LayerKind.VIDEO":6,"LayerKind.LAYERGROUP":7,"LayerKind.3DSHEET":8,"LayerKind.GRADIENT":9,"LayerKind.PATTERN":10,"LayerKind.SOLIDFILL":11,"LayerKind.BACKGROUND":12}}getLayerKindString(e){return a.Z.getKeyFromMap(this.layerKindMap,e)||""}getNumberOfDocuments(){return d(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.Z.getAppProperty(!1,"numberOfDocuments",[{_ref:"application"}]);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})))()}frontDocIsRGB(){var e=this;return d(l().mark((function t(){var r,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=!1,t.next=3,e.getActiveDocumentId();case 3:return n=t.sent,t.next=6,e.getDocumentMode(n);case 6:return t.sent._value===s.ab&&(r=!0),t.abrupt("return",r);case 9:case"end":return t.stop()}}),t)})))()}getDocumentMode(e){return d(l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.Z.getAppProperty(!1,"mode",[{_id:e,_ref:"document"}]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}getSpecificLayerAdjustment(e,t){return d(l().mark((function r(){return l().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,o.Z.getAppProperty(!1,"adjustment",[{_id:t,_ref:"layer"},{_id:e,_ref:"document"}]);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}getActiveDocumentId(){return d(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.Z.getAppProperty(!1,"documentID",[{_enum:"ordinal",_ref:"document",_value:"targetEnum"}]);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()}getActiveLayerId(e){return d(l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.Z.getAppProperty(!1,"layerID",[{_enum:"ordinal",_ref:"layer",_value:"targetEnum"},{_id:e,_ref:"document"}]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}getLayerKind(e,t){return d(l().mark((function r(){return l().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,o.Z.getAppProperty(!1,"layerKind",[{_id:t,_ref:"layer"},{_id:e,_ref:"document"}]);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}getLayerName(e,t){return d(l().mark((function r(){return l().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,o.Z.getAppProperty(!1,"name",[{_id:t,_ref:"layer"},{_id:e,_ref:"document"}]);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}getNumberOfLayers(e){var t=this;return d(l().mark((function r(){var n;return l().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,o.Z.getAppProperty(!1,"numberOfLayers",[{_id:e,_ref:"document"}]);case 2:return n=r.sent,r.next=5,t.hasBackgroundLayer(e);case 5:return!0===r.sent&&(n+=1),r.abrupt("return",n);case 8:case"end":return r.stop()}}),r)})))()}moveLayer(e,t){return d(l().mark((function r(){var n;return l().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={_obj:"move",_target:[{_id:e,_ref:"layer"}],to:{_index:t,_ref:"layer"},adjustment:!1},r.next=3,o.Z.executeBatchPlayCommand(n);case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}}),r)})))()}getActiveLayerName(){var e=this;return d(l().mark((function t(){var r,n,i;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r="",t.next=3,e.getActiveDocumentId();case 3:return n=t.sent,t.next=6,o.Z.getSelectedLayerIndices(!0,n);case 6:if(1!==(i=t.sent).length){t.next=11;break}return t.next=10,e.getLayerName(n,i[0]);case 10:r=t.sent;case 11:return t.abrupt("return",r);case 12:case"end":return t.stop()}}),t)})))()}getLayerProperty(e,t,r){return d(l().mark((function n(){return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,o.Z.getAppProperty(!1,e,[{_id:r,_ref:"layer"},{_id:t,_ref:"document"}]);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()}getLayerInfo(){var e=this;return d(l().mark((function t(){var r,a,u,d,p,h,f,m,g,v,y,b,_,E,w,x,L,O,S,T,P,I;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(r=new Object).enableApplyStyle=!1,r.enableApplyLook=!1,r.enableApplyText=!1,r.enableShapeLayerApplyOperations=!1,r.isAppliedParaStyleSupported=!1,r.libraryLinked=!1,r.selectionExists=!1,r.hasLayerStyles=!1,r.colors=[],r.kind="",a=[],u=function(e,t){let r;if(e&&t)for(r in e[0].value)if(Object.prototype.hasOwnProperty.call(e[0].value,r)&&(!Object.prototype.hasOwnProperty.call(t[0].value,r)||Math.round(e[0].value[r])!==Math.round(t[0].value[r])))return!1;return!0},d=function(e,t){if(void 0===e)return;let r;for(r=0;r<a.length;r++)if(u(a[r].data,e))return;a.push({colorType:t,data:e})},t.next=16,e.getNumberOfDocuments();case 16:if(0!==t.sent){t.next=19;break}return t.abrupt("return",r);case 19:return t.next=21,e.getActiveDocumentId();case 21:return p=t.sent,t.next=24,o.Z.getSelectedLayerIndices(!0,p);case 24:if(!((h=t.sent).length>0)){t.next=37;break}if(1!==h.length){t.next=30;break}t.t0=h[0],t.next=33;break;case 30:return t.next=32,e.getActiveLayerId(p);case 32:t.t0=t.sent;case 33:return f=t.t0,t.next=36,e.getLayerKind(p,f);case 36:m=t.sent;case 37:return t.next=39,o.Z.getAppProperty(!1,"profile",[{_id:p,_ref:"document"}]);case 39:if(g=t.sent,1!==h.length){t.next=92;break}if(r.kind=e.getLayerKindString(m),m!==e.layerKindMap["LayerKind.TEXT"]){t.next=59;break}return t.next=45,i.Z.getTextKeyById(f);case 45:if(v=t.sent,!((y=v.textKey)&&y.length>0)){t.next=57;break}return r.enableApplyText=!0,r.text=(0,n.aS)(y,10,!1),b=i.Z.getOrientationInLibrariesFormat(v),_=i.Z.getAntiAliasInLibrariesFormat(v),t.next=55,i.Z.getLibrariesTextItemObject(v.textStyleRange[0].textStyle,b,_,g);case 55:r.fontInfo=t.sent,d(r.fontInfo.color,"PS_TEXT");case 57:t.next=64;break;case 59:if(m!==e.layerKindMap["LayerKind.SMARTOBJECT"]){t.next=64;break}return t.next=62,e.getLayerProperty(s.LS,p,f);case 62:(E=t.sent)&&E.link&&E.link._obj===s._z&&(r.libraryLinked=!0);case 64:return m!==e.layerKindMap["LayerKind.BACKGROUND"]&&(r.enableApplyStyle=!0),t.next=67,c.Z.getSolidFillColor(p,f,g);case 67:return(w=t.sent).length>0&&d(w,"FILL"),t.next=71,c.Z.getSolidStrokeColor(p,f,g);case 71:return(x=t.sent).length>0&&d(x,"STROKE"),t.next=75,e.getLayerProperty("layerEffects",p,f);case 75:return L=t.sent,t.next=78,c.Z.getLayerEffectColor(L,g,"solidFill");case 78:return(O=t.sent).length>0&&d(O,"PS_EFFECT_FILL"),t.next=82,c.Z.getLayerEffectColor(L,g,"frameFX");case 82:return(S=t.sent).length>0&&d(S,"PS_EFFECT_STROKE"),t.next=86,e.getLayerName(p,f);case 86:T=t.sent,r.name=(0,n.aS)(T,s.Um,!1),r.fullName=T,r.hasLayerStyles=void 0!==L,t.next=93;break;case 92:h.length>1&&(r.enableApplyStyle=!0,m===e.layerKindMap["LayerKind.TEXT"]&&(r.enableApplyText=!0));case 93:return t.next=95,o.Z.getForegroundColor();case 95:return(P=t.sent)&&(I=c.Z.psSolidColorToLibraryColor(P,g),d([I],"PS_FOREGROUND")),r.colors=a,h.length>0&&(r.selectionExists=!0,m===e.layerKindMap["LayerKind.VECTOR"]&&(r.enableShapeLayerApplyOperations=!0)),t.next=101,e.getDocumentMode(p);case 101:return t.sent._value===s.ab&&(r.enableApplyLook=!0),t.abrupt("return",r);case 104:case"end":return t.stop()}}),t)})))()}hasBackgroundLayer(e){return d(l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.Z.getAppProperty(!1,"hasBackgroundLayer",[{_id:e,_ref:"document"}]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}isBackgroundLayer(e,t){return d(l().mark((function r(){return l().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,o.Z.getAppProperty(!1,"background",[{_id:t,_ref:"layer"},{_id:e,_ref:"document"}]);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}getFontList(){return d(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.Z.getAppProperty(!1,"fontList",[{_enum:"ordinal",_ref:"application",_value:"targetEnum"}]);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()}getLayerAdjustment(){return d(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.Z.getAppProperty(!1,"adjustment",[{_enum:"ordinal",_ref:"layer",_value:"targetEnum"}]);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()}getDocumentTitle(e){return d(l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.Z.getAppProperty(!1,"title",[{_id:e,_ref:"document"}]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}isMatchingDocOpen(e){return d(l().mark((function t(){var r,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(r=new Map).set("file",{_kind:"local",_path:e}),t.next=4,o.Z.getAppProperty(!1,"hasMatchingOpenDoc",[{_enum:"ordinal",_ref:"application",_value:"targetEnum"}],r);case 4:return n=t.sent,t.abrupt("return",n);case 6:case"end":return t.stop()}}),t)})))()}}},70593:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=new class{constructor(){this.psUnitMap={pointsUnit:"pt",millimetersUnit:"mm",angleUnit:"ang",percentUnit:"%",pixelsUnit:"px"}}unitToString(e){return Object.prototype.hasOwnProperty.call(this.psUnitMap,e)?this.psUnitMap[e]:"pt"}stringToUnit(e){return this.getKeyFromMap(this.psUnitMap,e)||"pixelsUnit"}getKeyFromMap(e,t){let r;for(r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&e[r]===t)return r}}},53337:(e,t,r)=>{"use strict";r.d(t,{Z:()=>E});var n=r(47320),i=r(99386),o=r(75067),a=r(53849),s=r(76485),c=r(15909),l=r(31870),u=r(34038),d=r(9494),p=r(46903),h=r(84824),f=r(92098),m=r(80804),g=r(42334),v=r(87876);function y(){y=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function b(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function _(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){b(o,n,i,a,s,"next",e)}function s(e){b(o,n,i,a,s,"throw",e)}a(void 0)}))}}const E=new class{constructor(){this.previewMaxWidth=248,this.previewMaxHeight=188}placeAsset(e,t,r,n,i,o,a,s){return _(y().mark((function c(){var l;return y().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return l={_obj:"placeEvent",ccLibrariesElement:{_obj:"ccLibrariesElement",adobeStockId:o,adobeStockLicenseState:{_enum:"adobeStockLicenseState",_value:a?"licensed":"unlicensed"},dateModified:i,elementReference:n,libraryName:t,name:r},layerName:r,null:{_kind:"local",_path:e},_options:{dialogOptions:"dontDisplay"}},s?l.linked=!0:l.unwrapLayers=!0,c.next=4,g.Z.executeBatchPlayCommand(l);case 4:return c.abrupt("return",c.sent);case 5:case"end":return c.stop()}}),c)})))()}openAssetForEdit(e,t,r){var n=this;return _(y().mark((function i(){var o;return y().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o={_obj:"open",ccLibrariesElement:{_obj:"ccLibrariesElement",elementReference:r},externalPreviewParams:{_obj:"externalPreviewParams",in:{_kind:"local",_path:t},pixelHeight:n.previewMaxHeight,pixelWidth:n.previewMaxWidth},fileOpenContext:{_enum:"ordinal",_value:"fileOpenContextCCLibrariesAsset"},null:{_kind:"local",_path:e},overrideOpen:!0,_options:{dialogOptions:"display"}},i.next=3,g.Z.executeBatchPlayCommand(o);case 3:return i.abrupt("return",i.sent);case 4:case"end":return i.stop()}}),i)})))()}primaryRepIsTemplateFormat(e){const t=e.getPrimaryRepresentation(),r=u.ku(i.Z.TEMPLATE_ELEMENT_TYPE);return!(!t||!r.includes(t.type)&&"application/x-adobe-libraries-psdt"!==t.type)}openImageForEditInPS(e){var t=this;return _(y().mark((function r(){var i,g,b,_,E,w,x,L,O,S;return y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=e.getPrimaryRepresentation(),g=!1,b=!1,_="documentLock_"+e.id,E=e.library&&e.library.name,r.next=7,f.Z.getTempFile(i);case 7:return w=r.sent,x=u.K3(w)+"p.png",r.next=11,t.openAssetForEdit(w,x,e.getLegacyReference());case 11:return r.next=13,v.Z.getActiveDocumentId();case 13:return L=r.sent,r.next=16,v.Z.isMatchingDocOpen(w);case 16:if(r.sent){r.next=21;break}return f.Z.deleteTempFile(w),c.Z.elementEditCompleted(e),r.abrupt("return");case 21:return r.next=23,v.Z.getDocumentTitle(L);case 23:O=r.sent,S=m.Z.startListening(O,w,(t=>{if("closed"===t)d.Z.obtainLock(_,(function(){m.Z.stopListening(S),g=!0,!1===b&&f.Z.deleteTempFile(w),c.Z.elementEditCompleted(e),d.Z.releaseLock(_)}));else if("saved"===t){if(!(0,p.ii)(w))return;b=!0;let t=e.library;const r=!t||t.isDeletedLocally;let i;if(r||!t.isWritable){if(t=o.ZP.getRecoveryLibrary(E),!t)return;i=!0}d.Z.obtainLock(_,(()=>{const o=l.si(e);e.isDeletedLocally||i?e=t.createElement(e.name,e.type):(e.beginOperation(),e.removeAllRepresentations());const m=u.pH(w,e.type),v=e.createRepresentation(m,"primary");o&&l.i2(v,o);const y=[];y.push(v.setContentFromPath(w)),x&&u.xW(x)&&y.push((0,p.bf)(e,n.Z.getThumbnailSize(e),x));const L=()=>{const n=e.endOperation();d.Z.releaseLock(_),i&&(a.Z.revealElement(e),r?s.Z.showError((0,h.Iu)("DL_WARNING_RECOVERED_FROM_DELETED",{recoveryLibraryName:t.name})):s.Z.showError((0,h.Iu)("DL_WARNING_RECOVERED_FROM_READONLY",{recoveryLibraryName:t.name,originalLibraryName:E}))),n.then((()=>{g?f.Z.deleteTempFile(w):f.Z.updateTempFile(v,w),b=!1,c.Z.sendElementUpdated(v)}))};Promise.all(y).then(L,L)}))}}));case 25:case"end":return r.stop()}}),r)})))()}editImageOr3DElement(e){return!this.primaryRepIsTemplateFormat(e)&&!!n.Z.isEditable(e)&&this.openImageForEditInPS(e)}}},71971:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAppConfiguration:()=>ke});var n=r(99386),i=r(75067),o=r(84074),a=r(8733),s=r(51461),c=r(34038),l=r(26964),u=r(16993),d=r(57613),p=r(50265),h=r(42334),f=r(41498);function m(){m=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(O([])));v&&v!==t&&r.call(v,i)&&(f=v);var y=h.prototype=d.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=h,s(y,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function g(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function v(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){g(o,n,i,a,s,"next",e)}function s(e){g(o,n,i,a,s,"throw",e)}a(void 0)}))}}const y=new class{addBrushToDocument(e,t,r){var n=this;return v(m().mark((function t(){var i,o,a;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r||!r.tool){t.next=3;break}return t.next=3,h.Z.setCurrentTool(r.tool);case 3:return t.next=5,h.Z.currentToolSupportsBrushes();case 5:if(t.sent){t.next=9;break}return t.next=9,h.Z.setCurrentTool("paintbrushTool");case 9:return t.next=11,n.applyBrushFile(e);case 11:if(!r){t.next=26;break}if(!(r.blendMode||r.opacity||r.flow)){t.next=22;break}return t.next=15,h.Z.getAppProperty(!0,"tool",[{_enum:"ordinal",_ref:"application",_value:"targetEnum"}]);case 15:return i=t.sent,o=i[0].currentToolOptions,r.blendMode&&(o.mode={_enum:"blendMode",_value:r.blendMode}),r.opacity&&(o.opacity={_unit:"percentUnit",_value:100*r.opacity}),r.flow&&(o.flow={_unit:"percentUnit",_value:100*r.flow}),t.next=22,h.Z.setToolOptions(i[0].tool._enum,o);case 22:if(!r.color){t.next=26;break}return a=f.Z.libraryColorToPSSolidColor(r.color),t.next=26,h.Z.setForegroundColor(a);case 26:case"end":return t.stop()}}),t)})))()}applyBrushFile(e){return v(m().mark((function t(){var r;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={_obj:"applyBrushFile",from:{_kind:"local",_path:e}},t.next=3,h.Z.executeBatchPlayCommand(r);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})))()}saveBrushByIndex(e){return v(m().mark((function t(){var r,n,i,o,a;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,h.Z.tempFolderPath();case 2:return r=t.sent,n=c.Rl(),a={_obj:"save",_target:[{_ref:"brush",_index:e}],to:{_kind:"local",_path:i=r+"/Brush"+n+".abr"},thumbnail:{_kind:"local",_path:o=r+"/Brush"+n+".png"}},t.next=9,h.Z.executeBatchPlayCommand(a);case 9:return t.abrupt("return",{abrPath:i,previewPath:o});case 10:case"end":return t.stop()}}),t)})))()}};var b=r(53849),_=r(46903);function E(){E=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function w(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function x(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){w(o,n,i,a,s,"next",e)}function s(e){w(o,n,i,a,s,"throw",e)}a(void 0)}))}}const L=new class{addPSGradient(e="",t,r,o,a){return x(E().mark((function s(){var l;return E().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(t){s.next=2;break}return s.abrupt("return",Promise.reject("Could not add gradient: No gradient information provided"));case 2:if(a=a||i.ZP.getDefaultLibrary(),(0,_.oY)(a)){s.next=5;break}return s.abrupt("return",Promise.reject("Could not add gradient: Library not writable"));case 5:return void 0===t.angle&&(t.angle=90),(l=(0,_.MN)(a,e,n.Z.GRADIENT_ELEMENT_TYPE,{opType:o})).createRepresentation(n.Z.GRADIENT_REPRESENTATION_TYPE,"primary").setValue(n.Z.GRADIENT_NAMESPACE,n.Z.GRADIENT_DATA_KEY,t),r&&c.xW(r)&&l.createRepresentation("image/png","rendition").setContentFromPath(r),l.endOperation(),i.ZP.currentLibrary===a&&b.Z.revealElement(l),s.abrupt("return",l);case 12:case"end":return s.stop()}}),s)})))()}applyGradientOperation(e,t){return x(E().mark((function r(){var n;return E().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={_obj:e,textKey:JSON.stringify(t),_options:{dialogOptions:"dontDisplay"}},r.next=3,h.Z.executeBatchPlayCommand(n);case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}}),r)})))()}saveGradientByIndex(e){return x(E().mark((function t(){var r,n,i,o;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e){t.next=2;break}return t.abrupt("return",null);case 2:return t.next=4,h.Z.tempFolderPath();case 4:return r=t.sent,n=c.Rl(),o={_obj:"save",_target:[{_ref:"gradientClassEvent",_index:e}],thumbnail:{_kind:"local",_path:i=r+"/Gradient"+n+".png"}},t.next=10,h.Z.executeBatchPlayCommand(o);case 10:return t.abrupt("return",i);case 11:case"end":return t.stop()}}),t)})))()}};var O=r(87876);function S(){S=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function T(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function P(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){T(o,n,i,a,s,"next",e)}function s(e){T(o,n,i,a,s,"throw",e)}a(void 0)}))}}const I=new class{applyStyleFile(e){return P(S().mark((function t(){var r;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={_obj:"applyStyleFile",_target:[{_enum:"ordinal",_ref:"layer",_value:"targetEnum"}],from:{_kind:"local",_path:e}},t.next=3,h.Z.executeBatchPlayCommand(r);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})))()}applyLayerStyle(e){var t=this;return P(S().mark((function r(){return S().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,O.Z.getNumberOfDocuments();case 2:if(0!==r.sent){r.next=5;break}return r.abrupt("return");case 5:return r.next=7,t.applyStyleFile(e);case 7:case"end":return r.stop()}}),r)})))()}saveStyleFile(){var e=this;return P(S().mark((function t(){var r,n,i,o,a,s,l,u;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O.Z.getNumberOfDocuments();case 2:if(0!==t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,O.Z.getActiveDocumentId();case 7:return r=t.sent,t.next=10,O.Z.getActiveLayerId(r);case 10:return n=t.sent,t.next=13,O.Z.getLayerName(r,n);case 13:return i=t.sent,o={layerName:i,files:[]},t.next=17,h.Z.tempFolderPath();case 17:return a=t.sent,s=c.Rl(),l=a+"/LayerStyle"+s+".asl",u=a+"/LayerStyle"+s+".png",t.next=23,e.saveStyleAndThumbnailToFile(l,u);case 23:return o.files.push(l),o.rendition=u,t.abrupt("return",o);case 26:case"end":return t.stop()}}),t)})))()}saveStyleAndThumbnailToFile(e,t){return P(S().mark((function r(){var n,i;return S().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={_obj:"saveStyleFile",_target:[{_enum:"ordinal",_ref:"layer",_value:"targetEnum"}],to:{_kind:"local",_path:e}},i={_obj:"thumbnailStyleFile",from:{_kind:"local",_path:e},thumbnail:{_kind:"local",_path:t}},r.next=4,h.Z.executeMultipleBatchPlayCommand([n,i]);case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)})))()}saveLayerStyleByIndex(e){return P(S().mark((function t(){var r,n,i,o,a;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,h.Z.tempFolderPath();case 2:return r=t.sent,n=c.Rl(),a={_obj:"save",_target:[{_ref:"style",_index:e}],to:{_kind:"local",_path:i=r+"/LayerStyle"+n+".asl"},thumbnail:{_kind:"local",_path:o=r+"/LayerStyle"+n+".png"}},t.next=9,h.Z.executeBatchPlayCommand(a);case 9:return t.abrupt("return",{aslPath:i,previewPath:o});case 10:case"end":return t.stop()}}),t)})))()}};var A=r(74149),C=r(46931),k=r(76485),D=r(28059);const N=[{type:"characterStyle",callback:e=>D.Z.addPSCharacterStyleWithDesc(e.name,e.characterStyle,e.profile,e.previewPath,e.opType).then((e=>b.Z.revealElement(e)))},{type:"color",callback:e=>f.Z.addPSColor(e.name,e.primary,e.secondary,e.opType)},{type:"layerStyle",callback:e=>{const t={};return t.path=e.aslPath,(0,A.nA)(e.name,t,e.pngPath,i.ZP.getDefaultLibrary(),e.opType).then((function(e){return b.Z.revealElement(e)}))}},{type:"graphic",callback:(e,t)=>{const r=e.assetPath;if(!(0,_.ii)(r,!e.moveFile))return Promise.reject("Could not create element: one or more files exceed 1GB limit");const n={path:r,relationship:"primary",dimensions:{width:e.exportInfo.pixelWidth,height:e.exportInfo.pixelHeight}},o={};return o.layerIds=e.exportInfo.layerIDs,o.documentId=e.exportInfo.documentID,o.pushEventMetadata=t,(0,A.Bm)(e.name,[n],e.previewPath,i.ZP.getDefaultLibrary(),e.opType,o).then((e=>b.Z.revealElement(e)))}},{type:"gradient",callback:e=>L.addPSGradient(e.name,e.primary,e.previewPath,e.opType)}],R=new class{constructor(){this.lastDocID=void 0,this.onDocInfoChangedEvent=(e,t)=>(a.Z.handleSelectionChange(),t.documentID!==this.lastDocID&&(n.Z.currentProduct.handleActiveDocChanged(t.documentID),this.lastDocID=t.documentID),!1),this.onForegroundColorChangedEvent=()=>(a.Z.handleSelectionChange(),!1),this.onConvertModeEvent=()=>(a.Z.handleSelectionChange(),!1),this.onFontListChanged=()=>{n.Z.currentProduct.fontManager.invalidateFontList()},this.onPreferenceChanged=()=>{h.Z.getShowTooltips().then((e=>n.Z.showTooltips=e))},this.PS_EVENTS=[{name:"dlDocInfoChanged",callback:this.onDocInfoChangedEvent},{name:"foregroundColorChanged",callback:this.onForegroundColorChangedEvent},{name:"fontListChanged",callback:this.onFontListChanged},{name:"convertMode",callback:this.onConvertModeEvent},{name:"preferencesChanged",callback:this.onPreferenceChanged}],this.PUSH_ASSET_TO_LIBRARY_EVENT="pushAssetToLibrary",this.handlePushAssetToLibrary=(e,t)=>{if(t)return function(e){const t=e.event_metadata,r=function(e){const r={appMetadata:{pushEventMetadata:t},response:e};window.nodeRequire("photoshop").cclibrariespanel.pushAssetToLibraryResponse(r)},i=e=>{var t;r({status:"ok"}),t=(e=>{if(!e)return{};const t=e.type&&e.type.match(/application\/vnd\.adobe\.element\.(.*)\+dcx/),r=t&&2===t.length?t[1]:e.type,n={elementID:e.id,elementType:r},i=e.library;return i&&(n.libraryID=i.id,n.libraryElementCount=i.elements.length,i.collaboration&&(n.libraryShared=i.collaboration)),n})(e),n.Z.currentProduct.reportEvent?n.Z.currentProduct.reportEvent("pushAssetToLibrary",t,!0):console.error("Highbeam analytics not available.")},o=e=>r({status:"error",details:e});if(!e||!t)return Promise.reject("pushAssetToLibrary failed: parameter error");const a=e.assetType;if(!a)return Promise.reject("pushAssetToLibrary failed: asset type not defined");const s=N.filter((e=>a===e.type));return 0===s.length?Promise.reject("pushAssetToLibrary failed: No asset handler found for "+a):Promise.all(s.map((r=>r.callback(e,t).then(i,o))))}(t)}}listen(){this.PS_EVENTS.forEach((e=>{k.Z.addEventListener(e.name,e.callback)})),C.Z.panel.libraryManager.waitForInitialLoad().then((()=>{window.nodeRequire("photoshop").cclibrariespanel.librariesExtensionReady()})),k.Z.addEventListener(this.PUSH_ASSET_TO_LIBRARY_EVENT,this.handlePushAssetToLibrary),this.onPreferenceChanged()}stop(){this.PS_EVENTS.forEach((e=>{k.Z.removeEventListener(e.name,e.callback)})),k.Z.removeEventListener(this.PUSH_ASSET_TO_LIBRARY_EVENT,this.handlePushAssetToLibrary)}};var M=r(19429);function j(){j=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function F(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Z=new class{logHighbeam(e,t,r){return(n=j().mark((function n(){var i,o;return j().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("createElement"!==e&&"useElement"!==e&&"createLink"!==e&&!r){n.next=16;break}return(i=function(e,t,r){e[t]=r||"N/A"})(o={_obj:"headlightsInfo"},M.OF,"Design Library"),i(o,M.wm,e),i(o,M.af,t.libraryID),i(o,M.tv,t.libraryElementCount),i(o,M.S5,t.elementID),i(o,M.$6,t.elementType),"useElement"===e&&(i(o,M.si,t.representationType),i(o,M.g4,t.opType),i(o,M.Ds,t.details)),"createElement"===e&&i(o,M.g4,t.opType),"createLink"===e&&i(o,M.g4,t.opType),n.next=15,h.Z.executeBatchPlayCommand(o);case 15:return n.abrupt("return",n.sent);case 16:case"end":return n.stop()}}),n)})),function(){var e=this,t=arguments;return new Promise((function(r,i){var o=n.apply(e,t);function a(e){F(o,r,i,a,s,"next",e)}function s(e){F(o,r,i,a,s,"throw",e)}a(void 0)}))})();var n}};var B=r(86423);class G extends B.Z{_fixGradientData(e){const t=e.getValue(n.Z.GRADIENT_NAMESPACE,n.Z.GRADIENT_DATA_KEY);e.getValue(n.Z.GRADIENT_NAMESPACE,"trackingdata")&&t&&1===t.smoothness&&delete t.smoothness}_defineCustomGradient(e){const t=this._config.findUsableRepresentation(e);if(t){const r=t.getValue(n.Z.GRADIENT_NAMESPACE,n.Z.GRADIENT_DATA_KEY);if(r)return this._fixGradientData(t),r.name=e.name,(0,_.vM)(t,"defineCustomGradient"),L.applyGradientOperation("defineCustomGradient",r)}}_applyCustomGradient(e){const t=this._config.findUsableRepresentation(e);if(t){const r=t.getValue(n.Z.GRADIENT_NAMESPACE,n.Z.GRADIENT_DATA_KEY);if(r)return this._fixGradientData(t),r.name=e.name,(0,_.vM)(t,"applyCustomGradient"),L.applyGradientOperation("applyCustomGradient",r)}}getApplyOperations(e){return n.Z.currentProduct.config.enableGradientContextMenu&&e&&!this.isDisabled(e)?[{name:"DL_ADD_GRADIENT_TO_PRESETS",onClick:!1,apply:()=>this._defineCustomGradient(e),displayInMenu:!0},{name:"DL_SET_FILL_GRADIENT_TOOLTIP",onClick:!0,apply:()=>this._applyCustomGradient(e),displayInMenu:!0}]:[]}isDisabled(e){const t=e.getPrimaryRepresentation(),r=t&&t.getValue("gradient","data");return!!r&&!["radial","linear","noise"].includes(r.type)}}var U=r(84824),H=r(16771);class z extends H.Z{_setColor(e,t,r,i,o){return i||(i=[],e.representations.forEach((e=>{const t=e.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY);"primary"===e.relationship?i.unshift(t):i.push(t)})),e.representations.length>0&&(0,_.vM)(e.representations[0],t)),o&&o(t),"setStrokeColor"===t?f.Z.setStrokeColor(i,r):"setColor"===t||"setFillColor"===t?f.Z.setColor(i,r):"setColorOverlay"===t?f.Z.setColorOverlay(i,r):new Error("Unsupported color operation : "+t)}getApplyOperations(e){const t=a.Z.getLayerInfo(),r={name:"DL_SET_COLOR_TOOLTIP",icon:"paintbucket",apply:(t,r)=>this._setColor(e,"setColor",(0,U.Iu)("DL_SET_COLOR_TOOLTIP"),t,r),displayInMenu:!0},n=[];return t&&t.selectionExists?(t.enableShapeLayerApplyOperations?(n.push({name:"DL_SET_FILL_COLOR_TOOLTIP",icon:"paintbucket",apply:(t,r)=>this._setColor(e,"setFillColor",(0,U.Iu)("DL_SET_FILL_COLOR_TOOLTIP"),t,r),displayInMenu:!0}),n.push({name:"DL_SET_STROKE_COLOR_TOOLTIP",icon:"brush",apply:(t,r)=>this._setColor(e,"setStrokeColor",(0,U.Iu)("DL_SET_STROKE_COLOR_TOOLTIP"),t,r),displayInMenu:!0})):n.push(r),n.push({name:"DL_SET_COLOR_OVERLAY_TOOLTIP",icon:"brush",apply:(t,r)=>this._setColor(e,"setColorOverlay",(0,U.Iu)("DL_SET_COLOR_OVERLAY_TOOLTIP"),t,r),displayInMenu:!0,disableClick:!0})):n.push(r),!0!==n[0].disableClick&&(n[0].onClick=!0),n}defaultEditOperation(e){const t=this._config.findUsableRepresentation(e),r=t&&t.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY);return new Promise((t=>{f.Z.replaceColor(r).then((function(r){Array.isArray(r)&&r.length>0&&(e.beginOperation(),e.removeAllRepresentations(),r.forEach((function(t,r){const i=0===r?"primary":"rendition";e.createRepresentation(n.Z.COLOR_REPRESENTATION_TYPE,i).setValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY,t)})),e.endOperation(),t())}))}))}}var V=r(31870),Y=r(54712);function W(){W=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function K(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const $=new class{openDocumentFromTemplate(e,t,r){return(n=W().mark((function t(){var n;return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={_obj:"open",null:{_path:e,_kind:"local"},fileOpenContext:{_enum:"ordinal",_value:"fileOpenContextCCLibrariesAsset"},overrideOpen:!0,template:!0,_options:{dialogOptions:"display"}},r&&(n.ccLibrariesElement={_obj:"ccLibrariesElement",elementReference:r}),t.next=4,h.Z.executeBatchPlayCommand(n);case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)})),function(){var e=this,t=arguments;return new Promise((function(r,i){var o=n.apply(e,t);function a(e){K(o,r,i,a,s,"next",e)}function s(e){K(o,r,i,a,s,"throw",e)}a(void 0)}))})();var n}};class q extends Y.Z{_openDocumentFromTemplate(e,t){return(0,_.vM)(t,"useTemplate"),t.getContentPath().then((t=>$.openDocumentFromTemplate(t,e.name,e.getLegacyReference())))}getCompatibleRepresentation(e){const t=c.ku(e.type);return e.representations.find((e=>{const r="rendition"===e.relationship,n=this._config.isRepresentationCompatible(e,t);return!r&&n}))}getApplyOperations(e){const t=this.getCompatibleRepresentation(e);let r=()=>this._openDocumentFromTemplate(e,t);if(!t){const t=c.ku(e.type);if(!this._config.isRepresentationCompatible(e.getPrimaryRepresentation(),t,!0))return[];const n=V.hr(e);r=()=>k.Z.showError((0,U.Iu)(n))}return[{name:"DL_OPEN_DOC_FROM_TEMPLATE",icon:"template",onDoubleClick:!0,apply:r,displayInMenu:!0}]}}var X=r(76572);class J extends X.Z{_addBrushToDocument(e,t){return(0,_.vM)(t,"useBrush"),t.getContentPath().then((function(r){const n="photoshop",i={tool:t.getValue(n,"tool"),flow:t.getValue(n,"flow"),opacity:t.getValue(n,"opacity"),blendMode:t.getValue(n,"blendMode"),color:t.getValue(n,"color")};return y.addBrushToDocument(r,e.name,i)}))}getCompatibleRepresentation(e){const t=c.ku(e.type);return e.representations.find((e=>{const r="rendition"===e.relationship,n=this._config.isRepresentationCompatible(e,t);return!r&&n}))}getApplyOperations(e){const t=this.getCompatibleRepresentation(e);return t?[{name:"DL_ADD_BRUSH_TO_DOC",icon:"brush",onClick:!0,apply:()=>this._addBrushToDocument(e,t),displayInMenu:!0}]:[]}}var Q=r(54142),ee=r(13293);class te extends Q.Z{constructor(...e){super(...e),this.STYLE_NAMESPACE="characterstyle",this.STYLE_DATA_KEY="data",this._setTextStyle=function(e){const t=this._config.findUsableRepresentation(e);if(t){const r=ee.R(e);r&&r.id?(0,_.vM)(t,"setFont",null,{event:{value:"typekit"}}):(0,_.vM)(t,"setFont");const n=t.getValue(this.STYLE_NAMESPACE,this.STYLE_DATA_KEY);return D.Z.setFont(n,(0,U.Iu)("DL_PHXS_HISTORY_ENTRY_SET_TEXT_STYLE"))}}}_createTextLayer(e){const t=this._config.findUsableRepresentation(e);if(t){(0,_.vM)(t,"createTextLayer");const e=t.getValue(this.STYLE_NAMESPACE,this.STYLE_DATA_KEY);return D.Z.createTextLayerAndApplyFontStyle(e,(0,U.Iu)("DL_PHXS_HISTORY_ENTRY_CREATE_TEXT_LAYER"))}}getApplyOperations(e){const t=a.Z.getLayerInfo();if(!t||t&&!t.selectionExists)return[];const r=[];return t&&t.enableApplyText&&r.push({name:"DL_SET_TEXT_STYLE_TOOLTIP",icon:"text",onClick:!0,apply:()=>this._setTextStyle(e),displayInMenu:!0}),r.push({name:"DL_CREATE_TEXT_LAYER_TOOLTIP",icon:"pastetext",apply:()=>this._createTextLayer(e),displayInMenu:!0}),r}}var re=r(95134);function ne(){ne=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ie(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function oe(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ie(o,n,i,a,s,"next",e)}function s(e){ie(o,n,i,a,s,"throw",e)}a(void 0)}))}}const ae=new class{defineAndMakePattern(e,t,r){return oe(ne().mark((function n(){var i,o;return ne().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i={_obj:"definePatternFile",from:{_kind:"local",_path:e},name:t,addPatternToPresets:!1,_options:{dialogOptions:"dontDisplay"}},o={_obj:"make",_target:{_ref:"contentLayer"},using:{_obj:"contentLayer",type:{_obj:"patternLayer",pattern:{_obj:"pattern",name:t},scale:{_unit:"percentUnit",_value:r}}},_options:{dialogOptions:"dontDisplay"}},n.next=4,h.Z.executeMultipleBatchPlayCommand([i,o]);case 4:return n.abrupt("return",n.sent);case 5:case"end":return n.stop()}}),n)})))()}createPatternPreset(e,t){return oe(ne().mark((function r(){var n;return ne().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={_obj:"definePatternFile",from:{_kind:"local",_path:e},name:t},r.next=3,h.Z.executeBatchPlayCommand(n);case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}}),r)})))()}makePatternLayerFromFile(e,t,r){var n=this;return oe(ne().mark((function i(){var o,a;return ne().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.defineAndMakePattern(e,t,r);case 2:return i.next=4,O.Z.getLayerAdjustment();case 4:return o=i.sent,a=o[0].pattern.ID,i.next=8,h.Z.setPattern(a,r);case 8:return i.abrupt("return",i.sent);case 9:case"end":return i.stop()}}),i)})))()}};class se extends re.Z{constructor(...e){super(...e),this.scalePercent=25,this._applyPatternToDocument=function(e){const t=this._config.findUsableRepresentation(e);if(t)return(0,_.vM)(t,"applyPattern"),t.getContentPath().then((t=>ae.makePatternLayerFromFile(t,e.name,this.scalePercent)))}}_definePatternFile(e){const t=this._config.findUsableRepresentation(e);if(t)return(0,_.vM)(t,"definePatternPreset"),t.getContentPath().then((t=>ae.createPatternPreset(t,e.name)))}getApplyOperations(e){const t=[],r=a.Z.getLayerInfo();return r&&r.selectionExists&&t.push({name:"DL_APPLY_PATTERN",onClick:!0,apply:()=>this._applyPatternToDocument(e),displayInMenu:!0}),t.push({name:"DL_ADD_PATTERN_TO_PRESETS",icon:"brush",onClick:!1,apply:()=>this._definePatternFile(e),displayInMenu:!0}),t}}var ce=r(65944);function le(){le=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ue(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function de(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ue(o,n,i,a,s,"next",e)}function s(e){ue(o,n,i,a,s,"throw",e)}a(void 0)}))}}const pe=new class{isActiveLayerColorLookUp(){return de(le().mark((function e(){var t,r,n,i,o;return le().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=!1,e.next=3,O.Z.getActiveDocumentId();case 3:return r=e.sent,e.next=6,O.Z.getActiveLayerId(r);case 6:return n=e.sent,e.next=9,O.Z.getSpecificLayerAdjustment(r,n);case 9:if(i=e.sent,!Array.isArray(i)){e.next=19;break}o=0;case 12:if(!(o<i.length)){e.next=19;break}if(i[o]._obj!==M.J3){e.next=16;break}return t=!0,e.abrupt("break",19);case 16:o++,e.next=12;break;case 19:return e.abrupt("return",t);case 20:case"end":return e.stop()}}),e)})))()}applylook(e,t){var r=this;return de(le().mark((function n(){var i,o,a;return le().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,O.Z.getNumberOfDocuments();case 2:if(0!==n.sent){n.next=5;break}return n.abrupt("return");case 5:return i=!1,n.next=8,h.Z.getSelectedLayerIndices();case 8:if(o=n.sent,a=!1,1!==o.length){n.next=15;break}return i=!0,n.next=14,r.isActiveLayerColorLookUp();case 14:a=n.sent;case 15:if(!i||!a){n.next=21;break}return n.next=18,r.setColorLookupLayer(e,t);case 18:return n.abrupt("return",n.sent);case 21:return n.next=23,r.makeColorLookupLayerFromFile(e,t);case 23:return n.abrupt("return",n.sent);case 24:case"end":return n.stop()}}),n)})))()}makeColorLookupLayerFromFile(e,t){return de(le().mark((function r(){var n;return le().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={_obj:"makerColorLookupLayerFromFile",from:{_kind:"local",_path:e},name:t,_options:{dialogOptions:"dontDisplay"}},r.next=3,h.Z.executeBatchPlayCommand(n);case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}}),r)})))()}setColorLookupLayer(e,t){return de(le().mark((function r(){var n;return le().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={_obj:"set",_target:[{_enum:"ordinal",_ref:"adjustmentLayer",_value:"targetEnum"}],to:{_obj:"colorLookup",from:{_kind:"local",_path:e},name:t}},r.next=3,h.Z.executeBatchPlayCommand(n);case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}}),r)})))()}};class he extends ce.Z{_applyLook(e){const t=this._config.findUsableRepresentation(e);if(t)return(0,_.vM)(t,"makeColorLookupLayerFromFile"),t.getContentPath().then((t=>pe.applylook(t,e.name)))}_applyLookIfRGBDoc(e,t){return O.Z.frontDocIsRGB().then((r=>{if(!0===r)return this._applyLook(e);t&&k.Z.showError((0,U.Iu)("DL_APPLY_LOOK_REQUIRES_RGB"))}))}getApplyOperations(e){const t=a.Z.getLayerInfo();return!t||(t&&t.enableApplyLook,0)?[]:[{name:"DL_APPLY_LOOK",onClick:!0,isDraggable:!1,apply:()=>this._applyLookIfRGBDoc(e,!1),displayInMenu:!1},{name:"DL_APPLY_LOOK",onClick:!1,isDraggable:!1,apply:()=>this._applyLookIfRGBDoc(e,!0),displayInMenu:!0}]}}var fe=r(48124),me=r(53337);class ge extends fe.Z{_addImageToDocument(e,t){const r=V.wq(e),n=this._config.findUsableRepresentation(e);return n?((0,_.vM)(n,"placeAsset",t),n.getContentPath().then((n=>me.Z.placeAsset(n,e.library.name,e.name,e.getLegacyReference(),(0,_.RW)(e),r,!!r&&V.kv(e),t)))):e.getThumbnailPath().then((function(n){return(0,_.dN)(e,"placeAsset",t),me.Z.placeAsset(n,e.library.name,e.name,e.getLegacyReference(),(0,_.RW)(e),r,!!r&&V.kv(e),t)}))}isRepresentationVectorType(e){let t=!1;return e&&-1!==["application/postscript","application/pdf","application/illustrator"].indexOf(e.type)&&(t=!0),t}getApplyOperations(e){if(!a.Z.hasDocumentOpen())return[];const t=this._config.findUsableRepresentation(e),r=this.isRepresentationVectorType(t),n=[];return me.Z.primaryRepIsTemplateFormat(e)||n.push({name:"DL_ADD_IMAGE_TO_DOC_AS_LINKED",icon:"download",apply:()=>this._addImageToDocument(e,!0),displayInMenu:!0}),n.push({name:r?"DL_ADD_IMAGE_TO_DOC_AS_COPY":"DL_ADD_IMAGE_TO_DOC_AS_LAYERS",icon:"download",apply:()=>this._addImageToDocument(e,!1),displayInMenu:!0}),n}defaultEditOperation(e){return me.Z.editImageOr3DElement(e)}getAddOperations(e){const t=super.getAddOperations(e);return e&&e.libraryLinked?t.filter((e=>"DL_ADD_IMAGE_NAME"!==e.name&&"DL_CAPTURE"!==e.name)):t}isDisabled(e){return!this._config.findUsableRepresentation(e)&&!e.getCachedThumbnailPath()}getStockDragData(){return[]}}var ve=r(82359);class ye extends ve.Z{_add3dObjectToDocument(e){const t=this._config.findUsableRepresentation(e);return t?((0,_.vM)(t,"placeAsset",!1),t.getContentPath().then((t=>me.Z.placeAsset(t,e.library.name,e.name,e.getLegacyReference(),(0,_.RW)(e),null,null,!1)))):e.getThumbnailPath().then((function(t){return(0,_.dN)(e,"placeAsset",!1),me.Z.placeAsset(t,e.library.name,e.name,e.getLegacyReference(),(0,_.RW)(e),null,null,!1)}))}getApplyOperations(e){return a.Z.hasDocumentOpen()?[{name:"DL_ADD_IMAGE_TO_DOC",icon:"download",apply:()=>this._add3dObjectToDocument(e),displayInMenu:!0}]:[]}defaultEditOperation(e){return me.Z.editImageOr3DElement(e)}}var be=r(92106);class _e extends be.Z{_applyLayerStyle(e){const t=this._config.findUsableRepresentation(e);if(t)return(0,_.vM)(t,"applyLayerStyle"),t.getContentPath().then((e=>I.applyLayerStyle(e)))}getApplyOperations(e){const t=a.Z.getLayerInfo();return!t||t&&!t.enableApplyStyle?[]:[{name:"DL_APPLY_LAYER_STYLE",icon:"layerstyle",onClick:!0,apply:()=>this._applyLayerStyle(e),displayInMenu:!0}]}_addLayerStyle(e,t,r){const i=e.layerName||"",o=(0,_.MN)(t,i,n.Z.LAYER_STYLE_ELEMENT_TYPE,{opType:r}),a=[],s=e.files||[];if(s.forEach(((e,t)=>{const r=c.pH(e,n.Z.LAYER_STYLE_ELEMENT_TYPE);if(r){const n=0===t?"primary":"alternate",i=o.createRepresentation(r,n).setContentFromPath(e).then((()=>{a.push(i)}))}else l.Z.log("Could not create representation: path cannot end with '.': "+e)})),e.rendition){const t=o.createRepresentation("image/png","rendition").setContentFromPath(e.rendition);a.push(t)}return Promise.all(a).then((()=>{const t=[];return e.rendition&&t.push(o.setThumbnailCache(n.Z.LAYER_STYLE_THUMBNAIL_SIZE,e.rendition)),t.push(o.endOperation()),Promise.all(t).then((()=>{e.rendition&&c._I(e.rendition),s.forEach((e=>c._I(e)))})),o}),(()=>(t.removeElement(o,!0),Promise.reject("Could not create element."))))}getAddOperations(e){return e&&e.hasLayerStyles?[{name:"DL_ADD_LAYER_STYLE",icon:"AddLayerStyle",order:3,dropSupport:!1,apply:(e,t)=>I.saveStyleFile().then((r=>this._addLayerStyle(r,e,t))).catch((()=>Promise.reject("Could not save layer style.")))}]:[]}}var Ee=r(12894);class we extends Ee.Z{_setFont(e){const t=this._config.findUsableRepresentation(e);if(t){const r=ee.R(e);r&&r.id?(0,_.vM)(t,"setFont",null,{event:{value:"typekit"}}):(0,_.vM)(t,"setFont");const n=this._getStyleData(e,!0);return D.Z.setFont(n,(0,U.Iu)("DL_PHXS_HISTORY_ENTRY_SET_FONT"))}}getApplyOperations(e){const t=a.Z.getLayerInfo();if(!t||t&&!t.selectionExists)return[];const r=[];return t&&t.enableApplyText&&r.push({name:"DL_SET_FONT_TOOLTIP",onClick:!0,apply:()=>this._setFont(e),displayInMenu:!0}),r}}var xe,Le,Oe=r(77560);let Se=(xe=class{constructor(){var e;(e=Le)&&Object.defineProperty(this,"isAddDocContentEnabled",{enumerable:e.enumerable,configurable:e.configurable,writable:e.writable,value:e.initializer?e.initializer.call(this):void 0})}},Te=xe.prototype,Pe="isAddDocContentEnabled",Ie=[p.observable],Ae={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}},Ce={},Object.keys(Ae).forEach((function(e){Ce[e]=Ae[e]})),Ce.enumerable=!!Ce.enumerable,Ce.configurable=!!Ce.configurable,("value"in Ce||Ce.initializer)&&(Ce.writable=!0),Ce=Ie.slice().reverse().reduce((function(e,t){return t(Te,Pe,e)||e}),Ce),void 0===Ce.initializer&&(Object.defineProperty(Te,Pe,Ce),Ce=null),Le=Ce,xe);var Te,Pe,Ie,Ae,Ce;function ke(){const e=new Se;function t(t){return e.isAddDocContentEnabled=i.ZP.areLibrariesLoaded&&t,i.ZP.areLibrariesLoaded&&t}return this.config={},this.config.code="PHXS_UXP",this.config.translationSuffix="PS",this.config.fullName="Photoshop",this.config.dragDropSource="com.adobe.photoshop",this.config.hideDefaultSearchCancelIcon=!0,this.config.customClearSearchIconHeight=12,this.config.applyElementOnNameClick=!0,this.config.getScrollTopPadding=()=>7,this.config.panelWidthAdjustment=-13,this.config.cancelButtonQuiet=!0,this.config.themes={323232:"darker",535353:"dark",b8b8b8:"light",f0f0f0:"lighter"},this.config.legacySpectrumEnabled=!0,this.config.defaultTheme="dark",this.config.deleteIcon="Delete-PS",this.config.elementTypes=[z,Oe.Z.ColorThemeElementConfig,G,te,we,_e,J,ge,ye,se,q,Oe.Z.ComponentElementConfig,he,Oe.Z.VideoElementConfig,Oe.Z.CapsuleElementConfig,Oe.Z.ParagraphStyleElementConfig,Oe.Z.TextElementConfig,Oe.Z.AnimationElementConfig,Oe.Z.LightElementConfig,Oe.Z.MaterialElementConfig,Oe.Z.AudioElementConfig,Oe.Z.ChannelElementConfig,Oe.Z.ImageGuidelineElementConfig,Oe.Z.UnsupportedElementConfig],this.config.collapsedTypes=[n.Z.VIDEO_ELEMENT_TYPE,n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,n.Z.MATERIAL_ELEMENT_TYPE,n.Z.LIGHT_ELEMENT_TYPE,n.Z.TEXT_ELEMENT_TYPE,n.Z.CAPSULE_ELEMENT_TYPE,n.Z.ANIMATION_ELEMENT_TYPE,n.Z.AUDIO_ELEMENT_TYPE,n.Z.CHANNEL_ELEMENT_TYPE,n.Z.IMAGE_GUIDELINE_ELEMENT_TYPE,n.Z.UNSUPPORTED_ELEMENT_TYPE],this.config.isCaptureEnabled=!0,this.config.captureModules=["Patterns","Shapes","Colors","Gradients","Type"],this.config.enablePatternDragging=!1,this.config.useMouseEventToDetectDrop=!0,this.config.hasLibraryManager=!1,this.getFlyoutMenuItems=function(){return[{label:"DL_FLYOUT_ADD_DOC_CONTENT",enableMenu:t(a.Z.hasDocumentOpen()&&!u.Z.isImportExportInProgress),onClick(){n.Z.currentProduct.addDocContent()}}]},this.addDocContent=function(){o.ZP.closeDialog(),u.Z.resetMode(),window.nodeRequire("photoshop").cclibrariespanel.addDocContent()},this.getAddDocContentOperation=function(){if(t(a.Z.hasDocumentOpen()))return{buttonName:u.Z.isNewUserState()?"DL_NEW_USER_ADD_DOC_CONTENT_BUTTON":"DL_ADD_DOC_CONTENT_BUTTON",buttonToolTip:"DL_ADD_DOC_CONTENT_BUTTON_TOOLTIP",iconToolTip:"DL_ADD_DOC_CONTENT_ICON_TOOLTIP",icon:"UploadDocAssets",apply(){n.Z.currentProduct.addDocContent()},enabled:t(a.Z.hasDocumentOpen())}},this.handleActiveDocChanged=function(e){t(0!==e)},this.dropHandlers={color:function(e){const t=[],r=e.library||i.ZP.getDefaultLibrary();return e.assetList.forEach((e=>{const n=e.data[0];t.push(f.Z.addPSColor(e.name,n.primary,n.secondary,"dragToPanel",r))})),Promise.all(t)},gradient:function(e){const t=[];return e.assetList.forEach((r=>{const n=r.data[0];t.push(((t,r)=>L.saveGradientByIndex(t.index).then((n=>{const o=e.library||i.ZP.getDefaultLibrary();return L.addPSGradient(r,t.data,n,"dragToPanel",o)})))(n,r.name))})),Promise.all(t)},style:function(e){const t=(t,r)=>I.saveLayerStyleByIndex(t).then((t=>((t,r,n)=>{const o=e.library||i.ZP.getDefaultLibrary(),a={};return a.path=r,(0,A.nA)(t,a,n,o,"dragToPanel").then((e=>(i.ZP.currentLibrary===o&&b.Z.revealElement(e),e)))})(r,t.aslPath,t.previewPath))),r=[];return e.assetList.forEach((e=>{const n=e.data[0];r.push(t(n,e.name))})),Promise.all(r)},brush:function(e){const t=(t,r)=>y.saveBrushByIndex(t).then((t=>((t,r,n)=>{const o={};o.path=r;const a=e.library||i.ZP.getDefaultLibrary();return(0,A.D5)(t,o,n,a,"dragToPanel").then((e=>(i.ZP.currentLibrary===a&&b.Z.revealElement(e),e)))})(r,t.abrPath,t.previewPath))),r=[];return e.assetList.forEach((e=>{const n=e.data[0];r.push(t(n,e.name))})),Promise.all(r)}},this.dropHandler=function(e){const t=e;if(t&&t.assetList&&t.assetList.length>0){const e=this.dropHandlers[t.assetList[0].type];return e?e(t):Promise.reject()}return Promise.reject()},this.fontManager=new d.Z,this.init=function(){h.Z.getAppProperty(!1,M.So,[{_enum:"ordinal",_ref:"application",_value:"targetEnum"}]).then((function(e){const t=e||{};n.Z.currentProduct.config.enablePatternDragging=t.enablePatternDragging,n.Z.currentProduct.config.enableGradientContextMenu=t.enableGradientContextMenu})),c.Zh(n.Z.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),c.Zh(n.Z.BRUSH_ELEMENT_TYPE,["image/x-adobe-photoshop-brush"]),c.Zh(n.Z.CHARACTER_STYLE_ELEMENT_TYPE,["application/vnd.adobe.characterstyle+json"]),c.Zh(n.Z.FONT_ELEMENT_TYPE,["application/vnd.adobe.font+json"]),c.Zh(n.Z.LAYER_STYLE_ELEMENT_TYPE,["application/vnd.adobe.layerstyle"]),c.Zh(n.Z.THREE_D_ELEMENT_TYPE,["image/vnd.adobe.photoshop"]),c.Zh(n.Z.PATTERN_ELEMENT_TYPE,["image/vnd.adobe.pattern+png"]),c.Zh(n.Z.LOOK_ELEMENT_TYPE,["application/vnd.adobe.cube+txt"]),c.Zh(n.Z.TEMPLATE_ELEMENT_TYPE,["image/vnd.adobe.photoshop.template","application/vnd.adobe.photoshop.template"]),c.Zh(n.Z.GRADIENT_ELEMENT_TYPE,["application/vnd.adobe.gradient.noise+json","application/vnd.adobe.gradient+json"]),c.Zh(n.Z.COMPONENT_ELEMENT_TYPE,["image/svg+xml","image/png"]),c.Dk(n.Z.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),c.Dk(n.Z.THREE_D_ELEMENT_TYPE,["image/vnd.adobe.photoshop"]);const e=h.Z.getFileFormats().then((e=>{let t=[];e&&Array.isArray(e.readableFileExtensions)&&(t=e.readableFileExtensions);const r=t.indexOf("PSDT");-1!==r&&t.splice(r,1),c.Zh(n.Z.IMAGE_ELEMENT_TYPE,["image/vnd.adobe.photoshop.template","application/x-adobe-libraries-psdt"]);const i=["AI","SVG","SVGZ","PDF"];t.length>0?(i.forEach((function(e){const r=t.indexOf(e);-1!==r&&t.splice(r,1)})),c.rx(n.Z.IMAGE_ELEMENT_TYPE,i),c.KU(n.Z.IMAGE_ELEMENT_TYPE,t)):(l.Z.log("Failed to get readable file extensions from PHXS, using short default list."),c.Zh(n.Z.IMAGE_ELEMENT_TYPE,["application/illustrator","image/svg+xml","application/pdf"]),c.Dk(n.Z.IMAGE_ELEMENT_TYPE,["image/png","image/jpeg","image/jpg","image/gif","image/bmp","application/photoshop","image/vnd.adobe.photoshop","application/photoshop.large"]))}));return this.startEventListener(),e},this.startEventListener=function(){R.listen()},this.stopEventListener=function(){R.stop()},this.reportEvent=function(e,t,r){if("createElement"===e&&!t.opType){const r=s.ZP.getExtraEventMetrics(e);r&&(t.opType=r.opType)}Z.logHighbeam(e,t,r).then((function(t){JSON.parse(t)&&l.Z.log(e+" metric reported to PS")}))},this.getUserData=function(e){e({accountStatus:"paid",secondsLeftInTrial:0})},this}},28059:(e,t,r)=>{"use strict";r.d(t,{Z:()=>g});var n=r(99386),i=r(75067),o=r(34038),a=r(46903),s=r(42334),c=r(87876),l=r(61738),u=r(41498),d=r(70593),p=r(19429);function h(){h=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function f(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(O([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=f,s(y,"constructor",f),s(f,"constructor",p),p.displayName=s(f,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function f(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function m(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){f(o,n,i,a,s,"next",e)}function s(e){f(o,n,i,a,s,"throw",e)}a(void 0)}))}}const g=new class{constructor(){this.antiAliasMap={"AntiAlias.NONE":"antiAliasNone","AntiAlias.CRISP":"antiAliasCrisp","AntiAlias.SHARP":"antiAliasSharp","AntiAlias.SMOOTH":"antiAliasSmooth","AntiAlias.STRONG":"antiAliasStrong","AntiAlias.PLATFORMGRAY":"antiAliasPlatformGray","AntiAlias.PLATFORM_LCD":"antiAliasPlatformLCD"},this.orientationMap={"Direction.HORIZONTAL":"horizontal","Direction.VERTICAL":"vertical"},this.underlineMap={"UnderlineType.UNDERLINEOFF":"underlineOff","UnderlineType.UNDERLINERIGHT":"underlineOnRightInVertical","UnderlineType.UNDERLINELEFT":"underlineOnLeftInVertical"},this.strikeThroughMap={"StrikeThruType.STRIKEOFF":"strikethroughOff","StrikeThruType.STRIKEHEIGHT":"xHeightStrikethroughOn","StrikeThruType.STRIKEBOX":"eMBoxStrikethroughOn"},this.textCaseMap={"TextCase.NORMAL":"normal","TextCase.ALLCAPS":"allCaps","TextCase.SMALLCAPS":"smallCaps"},this.autoKernMap={"AutoKernType.MANUAL":"manual","AutoKernType.METRICS":"metricsKern","AutoKernType.OPTICAL":"opticalKern"}}getTextPropertyInPSFormat(e,t){let r=e[Object.keys(e)[0]];return Object.prototype.hasOwnProperty.call(e,t)&&(r=e[t]),r}getTextPropertyInLibrariesFormat(e,t){let r;for(r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&e[r]===t)return r}getAntiAliasInPSFormat(e){return this.getTextPropertyInPSFormat(this.antiAliasMap,e.adbePhxsAntiAliasMethod)}setFont(e,t,r){var n=this;return m(h().mark((function i(){var o,a,l;return h().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(o=function(){var t=m(h().mark((function t(){var r,n,i,o;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c.Z.getFontList();case 2:return(r=t.sent)&&(n=this.getStylePostScriptName(r,e)),t.next=6,s.Z.getSelectedLayerIndices();case 6:i=t.sent,t.t0=h().keys(i);case 8:if((t.t1=t.t0()).done){t.next=14;break}return o=t.t1.value,t.next=12,this.applyStyleToText(i[o],e,n);case 12:t.next=8;break;case 14:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),!r){i.next=7;break}return i.next=4,o.bind(n)();case 4:case 11:return i.abrupt("return",i.sent);case 7:return a=function(){var e=m(h().mark((function e(r){var n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.suspendHistory({historyStateInfo:{name:t,target:[{_ref:"document",_enum:"ordinal",_value:"targetEnum"},{_ref:"application",_enum:"ordinal",_value:"targetEnum"}]}});case 2:return n=e.sent,e.next=5,o.bind(this)();case 5:return e.next=7,r.resumeHistory(n);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),l=window.nodeRequire("photoshop").core,i.next=11,l.executeAsModal(a.bind(n),{commandName:t});case 12:case"end":return i.stop()}}),i)})))()}createTextLayerAndApplyFontStyle(e,t){var r=this;return m(h().mark((function n(){var i,o;return h().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,c.Z.getNumberOfDocuments();case 2:if(0!==n.sent){n.next=5;break}return n.abrupt("return");case 5:return i=function(){var r=m(h().mark((function r(n){var i,o,a,l,u,d,p;return h().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.suspendHistory({historyStateInfo:{name:t,target:[{_ref:"document",_enum:"ordinal",_value:"targetEnum"},{_ref:"application",_enum:"ordinal",_value:"targetEnum"}]}});case 2:return i=r.sent,r.next=5,this.createNormalLayer();case 5:return r.next=7,c.Z.getActiveDocumentId();case 7:return o=r.sent,r.next=10,c.Z.getActiveLayerId(o);case 10:return a=r.sent,r.next=13,c.Z.getNumberOfLayers(o);case 13:return l=r.sent,r.next=16,c.Z.moveLayer(a,l);case 16:return r.next=18,s.Z.getSelectedLayerIndices();case 18:return u=r.sent,d=u[0],r.next=22,s.Z.setLayerName(o,a,e.adbeFont.family);case 22:return r.next=24,this.createTextLayer(e);case 24:return r.next=26,this.getTextKey(d);case 26:return(p=r.sent).textKey=e.adbeFont.family,r.next=30,this.updateTextKey(p,d);case 30:return r.next=32,this.setFont(e,t,!0);case 32:return r.next=34,n.resumeHistory(i);case 34:case"end":return r.stop()}}),r,this)})));return function(e){return r.apply(this,arguments)}}(),o=window.nodeRequire("photoshop").core,n.next=9,o.executeAsModal(i.bind(r),{commandName:t});case 9:return n.abrupt("return",n.sent);case 10:case"end":return n.stop()}}),n)})))()}updateTextKey(e,t){return m(h().mark((function r(){var n;return h().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={_obj:"set",_target:[{_index:t,_ref:"layer"}],to:e},r.next=3,s.Z.executeBatchPlayCommand(n);case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}}),r)})))()}createNormalLayer(){return m(h().mark((function e(){var t;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={_obj:"make",_target:[{_ref:"layer"}],below:!1},e.next=3,s.Z.executeBatchPlayCommand(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))()}createTextLayer(){return m(h().mark((function e(){var t;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={_obj:"make",_target:[{_ref:p.$V}],using:{_obj:p.$V,antiAlias:{_enum:p.hK,_value:"antiAliasCrisp"},orientation:{_enum:p.gd,_value:"horizontal"},paragraphStyleRange:[],textClickPoint:{_obj:"paint",horizontal:{_unit:"percentUnit",_value:10},vertical:{_unit:"percentUnit",_value:10}},textGridding:{_enum:"textGridding",_value:"none"},textKey:" ",textShape:[{_obj:p.OD,char:{_enum:"char",_value:"paint"}}],textStyleRange:[{_obj:p.l7,from:0,textStyle:{_obj:p.GS,color:u.Z.psBlackColor,fill:!0,stroke:!1},to:1}]}},e.next=3,s.Z.executeBatchPlayCommand(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))()}isFontAvailable(e){var t=this;return m(h().mark((function r(){var n,i;return h().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,c.Z.getFontList();case 2:return n=r.sent,i=!!n&&t.getStylePostScriptName(n,e),r.abrupt("return",!!i);case 5:case"end":return r.stop()}}),r)})))()}getStylePostScriptName(e,t){if(t.adbeFont){if(e.fontPostScriptName.includes(t.adbeFont.postScriptName))return t.adbeFont.postScriptName}else if(t.fontFamily){const r=e.fontFamilyName.findIndex((e=>e===t.fontFamily));if(-1!==r)return e.fontPostScriptName[r]}}getTextKey(e){return m(h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.Z.getAppProperty(!1,"textKey",[{_index:e,_ref:"layer"}]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}getTextKeyById(e){return m(h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.Z.getAppProperty(!1,"textKey",[{_id:e,_ref:"layer"}]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}getOrientationInPSFormat(e){return this.getTextPropertyInPSFormat(this.orientationMap,e.adbePhxsDirection)}getAutoKernInPSFormat(e){return this.getTextPropertyInPSFormat(this.autoKernMap,e.adbePhxsAutoKerning)}getUnderlineInPSFormat(e){return this.getTextPropertyInPSFormat(this.underlineMap,e.adbePhxsUnderline)}getStrikeThruInPSFormat(e){return this.getTextPropertyInPSFormat(this.strikeThroughMap,e.adbePhxsStrikethru)}applyStyleToText(e,t,r){var n=this;return m(h().mark((function i(){var o,a,s,c,f,m,g,v,y,b,_,E,w,x,L,O,S,T,P;return h().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.getTextKey(e);case 2:if(o=i.sent,Object.prototype.hasOwnProperty.call(o,p.US)){i.next=5;break}return i.abrupt("return");case 5:if((a=new Object)._obj=p.$V,a.merge=!0,Object.prototype.hasOwnProperty.call(o,p.lY)&&(c=0,f=0,m=o.transform,g=function(e){return e*e},v=Math.atan2(m.yx,m.yy),y=Math.atan2(-m.xy,m.xx),(b=Math.abs(v-y)<1e-4)?(c=Math.sqrt(g(m.xx)+g(m.xy)),f=Math.sqrt(g(m.yx)+g(m.yy))):(c=m.xx,f=m.yy),1!==(s=f)))for(x in c/=s,f=1,b?(m.xx=c*Math.cos(v),m.xy=-c*Math.sin(v),m.yx=f*Math.sin(v),m.yy=f*Math.cos(v)):(_=m.yx/f,E=m.xy/c,m.xx=c,m.xy=c*E,m.yx=f*_,m.yy=f),a.transform=m,Object.prototype.hasOwnProperty.call(o,p.Zd)&&(a.textClickPoint=o.textClickPoint),w=o.textShape,Array.isArray(w)&&w.length>0&&(a.textShape=[]),w)(L=w[x]).char&&"box"===L.char._value&&(L.bounds.bottom=L.bounds.bottom*s,L.bounds.right=L.bounds.right*s),a.textShape.push(L);for(x in Object.prototype.hasOwnProperty.call(o,p.ah)&&(a.warp=o.warp),l.Z.putEnumerationValueInDescriptor(a,p.gd,p.gd,n.getOrientationInPSFormat(t)),t.adbePhxsAntiAliasMethod&&l.Z.putEnumerationValueInDescriptor(a,p.lq,p.hK,n.getAntiAliasInPSFormat(t)),O=o.textStyleRange,a.textStyleRange=[],S=void 0!==t.fontFeatureSettings&&t.fontFeatureSettings.length>0,O)(T=new Object)._obj=p.GS,r&&(T.fontPostScriptName=r),void 0!==t.fontSize&&l.Z.putUnitValueInDescriptor(T,p.G$,d.Z.stringToUnit(t.fontSize.type),t.fontSize.value),void 0!==t.adbeHorizontalScale&&(T.horizontalScale=t.adbeHorizontalScale),void 0!==t.adbeVerticalScale&&(T.verticalScale=t.adbeVerticalScale),void 0!==t.adbePhxsFauxBold&&(T.syntheticBold=!!t.adbePhxsFauxBold),void 0!==t.adbePhxsFauxItalic&&(T.syntheticItalic=!!t.adbePhxsFauxItalic),void 0!==t.adbeAutoLeading&&(T.autoLeading=!!t.adbeAutoLeading),void 0!==t.lineHeight&&(T.autoLeading=!1,l.Z.putUnitValueInDescriptor(T,p.ur,d.Z.stringToUnit(t.lineHeight.type),t.lineHeight.value)),void 0!==t.adbeTracking?T.tracking=t.adbeTracking:t.letterSpacing&&(T.tracking=1e3*t.letterSpacing.value),void 0!==t.baselineShift&&l.Z.putUnitValueInDescriptor(T,p.ur,d.Z.stringToUnit(t.baselineShift.type),t.baselineShift.value),t.adbePhxsAutoKerning&&l.Z.putEnumerationValueInDescriptor(T,p.Bn,p.Bn,n.getAutoKernInPSFormat(t)),t.whiteSpace&&"nowrap"===t.whiteSpace&&(T.noBreak=!1),t.adbePhxsUnderline?l.Z.putEnumerationValueInDescriptor(T,p.jl,p.jl,n.getUnderlineInPSFormat(t)):t.textDecoration&&-1!==t.textDecoration.indexOf("underline")?l.Z.putEnumerationValueInDescriptor(T,p.jl,p.jl,p.YQ):l.Z.putEnumerationValueInDescriptor(T,p.jl,p.jl,p.Pw),t.adbePhxsStrikethru?l.Z.putEnumerationValueInDescriptor(T,p.Fh,p.Fh,n.getStrikeThruInPSFormat(t)):t.textDecoration&&-1!==t.textDecoration.indexOf("line-through")?l.Z.putEnumerationValueInDescriptor(T,p.Fh,p.Fh,p.$h):l.Z.putEnumerationValueInDescriptor(T,p.Fh,p.Fh,p.ww),S&&-1!==t.fontFeatureSettings.indexOf("smcp")?l.Z.putEnumerationValueInDescriptor(T,p.df,p.df,p.Ri):"capitalize"===t.textTransform?l.Z.putEnumerationValueInDescriptor(T,p.df,p.df,p.hf):l.Z.putEnumerationValueInDescriptor(T,p.df,p.df,p.ES),T.oldStyle=S&&-1!==t.fontFeatureSettings.indexOf("onum"),T.altligature=S&&-1!==t.fontFeatureSettings.indexOf("dlig"),T.ligature=S&&-1!==t.fontFeatureSettings.indexOf("liga"),T.stylisticAlternates=S&&-1!==t.fontFeatureSettings.indexOf("salt"),T.swash=S&&-1!==t.fontFeatureSettings.indexOf("swsh"),T.fractions=S&&-1!==t.fontFeatureSettings.indexOf("frac"),T.titling=S&&-1!==t.fontFeatureSettings.indexOf("titl"),T.ordinals=S&&-1!==t.fontFeatureSettings.indexOf("ordn"),T.ornaments=S&&-1!==t.fontFeatureSettings.indexOf("ornm"),T.contextualLigatures=S&&-1!==t.fontFeatureSettings.indexOf("clig"),S&&-1!==t.fontFeatureSettings.indexOf("subs")?l.Z.putEnumerationValueInDescriptor(T,p.dy,p.dy,p.PT):S&&-1!==t.fontFeatureSettings.indexOf("sups")?l.Z.putEnumerationValueInDescriptor(T,p.dy,p.dy,p.ju):l.Z.putEnumerationValueInDescriptor(T,p.dy,p.dy,p.XV),t.color&&(T.color=u.Z.libraryColorToPSSolidColor(t.color)),(P=O[x]).textStyle=T,a.textStyleRange.push(P);return i.abrupt("return",n.updateTextKey(a,e));case 17:case"end":return i.stop()}}),i)})))()}getOrientationInLibrariesFormat(e){const t=l.Z.getEnumerationValueFromDescriptor(e,p.gd);return t?this.getTextPropertyInLibrariesFormat(this.orientationMap,t):void 0}getAntiAliasInLibrariesFormat(e){const t=l.Z.getEnumerationValueFromDescriptor(e,p.lq);return t?this.getTextPropertyInLibrariesFormat(this.antiAliasMap,t):void 0}getFontObject(e,t){const r={},n=t.fontPostScriptName.findIndex((t=>t===e));return-1!==n&&(r.family=t.fontFamilyName[n],r.name=t.fontName[n],r.postScriptName=t.fontPostScriptName[n],r.style=t.fontStyleName[n]),r}getLibrariesTextItemObject(e,t,r,n){var i=this;return m(h().mark((function o(){var a,s,f,m,g,v,y,b,_,E,w,x,L,O,S,T,P;return h().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a={},s=Object.prototype.hasOwnProperty.call(e,p.yG)?e[p.yG]:"MyriadPro-Regular",o.next=4,c.Z.getFontList();case 4:return f=o.sent,m=i.getFontObject(s,f),a.adbeFont={family:m.family,name:m.name,postScriptName:m.postScriptName,style:m.style},a.fontFamily=m.family,-1!==(g=m.style.toLowerCase()).indexOf("italic")?a.fontStyle="italic":-1!==g.indexOf("oblique")&&(a.fontStyle="oblique"),-1!==g.indexOf("bold")?a.fontWeight="bold":-1===g.indexOf("light")&&-1===g.indexOf("thin")||(a.fontWeight="lighter"),Object.prototype.hasOwnProperty.call(e,p.aK)?(v=e[p.aK]._value,y=d.Z.unitToString(e[p.aK]._unit),a.fontSize={type:y,value:v}):a.fontSize={type:"pt",value:12},Object.prototype.hasOwnProperty.call(e,p.xd)&&e[p.xd]&&(a.adbeAutoLeading=!0),Object.prototype.hasOwnProperty.call(e,p.oE)&&(b=e[p.oE]._value,_=d.Z.unitToString(e[p.oE]._unit),a.lineHeight={type:_,value:b}),Object.prototype.hasOwnProperty.call(e,p.s$)&&(E=e[p.s$]._value,w=d.Z.unitToString(e[p.s$]._unit),a.baselineShift={type:w,value:E}),x=u.Z.psBlackColor,Object.prototype.hasOwnProperty.call(e,p.Tk)&&(x=e[p.Tk]),o.next=19,u.Z.psSolidColorToLibraryColorWithRGB(x,n);case 19:return a.color=o.sent,Object.prototype.hasOwnProperty.call(e,p.T7)&&(a.adbeTracking=e[p.T7],a.letterSpacing={type:"em",value:(a.adbeTracking/1e3).toFixed(2)}),Object.prototype.hasOwnProperty.call(e,p.HJ)&&e[p.HJ]&&(a.whiteSpace="nowrap"),Object.prototype.hasOwnProperty.call(e,p.OQ)&&(a.adbeHorizontalScale=e[p.OQ]),Object.prototype.hasOwnProperty.call(e,p.WI)&&(a.adbeVerticalScale=e[p.WI]),Object.prototype.hasOwnProperty.call(e,p.Rs)&&e[p.Rs]?a.adbePhxsFauxBold=!0:a.adbePhxsFauxBold=!1,Object.prototype.hasOwnProperty.call(e,p.St)&&e[p.St]?a.adbePhxsFauxItalic=!0:a.adbePhxsFauxItalic=!1,t&&(a.adbePhxsDirection=t),Object.prototype.hasOwnProperty.call(e,p.jl)&&(L=l.Z.getEnumerationValueFromDescriptor(e,p.jl))!==i.underlineMap["UnderlineType.UNDERLINEOFF"]&&(a.textDecoration?a.textDecoration.push("underline"):a.textDecoration=["underline"],a.adbePhxsUnderline=i.getTextPropertyInLibrariesFormat(i.underlineMap,L)),Object.prototype.hasOwnProperty.call(e,p.Fh)&&(O=l.Z.getEnumerationValueFromDescriptor(e,p.Fh))!==i.strikeThroughMap["StrikeThruType.STRIKEOFF"]&&(a.textDecoration?a.textDecoration.push("line-through"):a.textDecoration=["line-through"],a.adbePhxsStrikethru=i.getTextPropertyInLibrariesFormat(i.strikeThroughMap,O)),a.fontFeatureSettings=[],Object.prototype.hasOwnProperty.call(e,p.wh)&&e[p.wh]&&a.fontFeatureSettings.push("onum"),Object.prototype.hasOwnProperty.call(e,p.JF)&&e[p.JF]&&a.fontFeatureSettings.push("dlig"),Object.prototype.hasOwnProperty.call(e,p.HX)&&e[p.HX]&&a.fontFeatureSettings.push("liga"),Object.prototype.hasOwnProperty.call(e,p.Zy)&&e[p.Zy]&&a.fontFeatureSettings.push("salt"),Object.prototype.hasOwnProperty.call(e,p.fO)&&e[p.fO]&&a.fontFeatureSettings.push("swsh"),Object.prototype.hasOwnProperty.call(e,p.xX)&&e[p.xX]&&a.fontFeatureSettings.push("frac"),Object.prototype.hasOwnProperty.call(e,p.Hj)&&e[p.Hj]&&a.fontFeatureSettings.push("titl"),Object.prototype.hasOwnProperty.call(e,p.se)&&e[p.se]&&a.fontFeatureSettings.push("clig"),Object.prototype.hasOwnProperty.call(e,p.oy)&&e[p.oy]&&a.fontFeatureSettings.push("ordn"),Object.prototype.hasOwnProperty.call(e,p.c4)&&e[p.c4]&&a.fontFeatureSettings.push("ornm"),Object.prototype.hasOwnProperty.call(e,p.df)&&((S=l.Z.getEnumerationValueFromDescriptor(e,p.df))===p.Ri?a.fontFeatureSettings.push("smcp"):S===p.hf&&(a.textTransform="capitalize")),Object.prototype.hasOwnProperty.call(e,p.dy)&&((T=l.Z.getEnumerationValueFromDescriptor(e,p.dy))===p.ju?a.fontFeatureSettings.push("sups"):T===p.PT&&a.fontFeatureSettings.push("subs")),0===a.fontFeatureSettings.length&&delete a.fontFeatureSettings,Object.prototype.hasOwnProperty.call(e,p.Bn)&&(P=l.Z.getEnumerationValueFromDescriptor(e,p.Bn),a.adbePhxsAutoKerning=i.getTextPropertyInLibrariesFormat(i.autoKernMap,P)),r&&(a.adbePhxsAntiAliasMethod=r),o.abrupt("return",a);case 46:case"end":return o.stop()}}),o)})))()}saveTextStylePreview(e){return m(h().mark((function t(){var r,n,i,a,l,d;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c.Z.getNumberOfDocuments();case 2:if(0!==t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,c.Z.getActiveDocumentId();case 7:return r=t.sent,t.next=10,c.Z.getActiveLayerId(r);case 10:if(!(n=t.sent)){t.next=26;break}return t.next=14,c.Z.getLayerKind(r,n);case 14:if(t.sent!==c.Z.layerKindMap["LayerKind.TEXT"]){t.next=26;break}return t.next=18,s.Z.tempFolderPath();case 18:return i=t.sent,a=i+"/TextPreview"+o.Rl()+".png",l="MyriadPro-Regular",e&&e.adbeFont&&e.adbeFont.postScriptName&&(l=e.adbeFont.postScriptName),d={_obj:"textThumbnail",color:u.Z.psBlackColor,fontPostScriptName:l,fontSize:p.Ip,text:p.M_,to:{_kind:"local",_path:a}},t.next=25,s.Z.executeBatchPlayCommand(d);case 25:return t.abrupt("return",a);case 26:case"end":return t.stop()}}),t)})))()}addPSCharacterStyleWithDesc(e,t,r,s,c){var l=this;return m(h().mark((function u(){var d,p,f,m,g,v,y,b,_;return h().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return d=t.textStyle,p=l.getOrientationInLibrariesFormat(t),f=l.getAntiAliasInLibrariesFormat(t),e=e||"",u.next=6,l.getLibrariesTextItemObject(d,p,f,r);case 6:if(m=u.sent,u.prev=7,m){u.next=10;break}throw"getLibrariesTextItemObject returned false";case 10:if(g=i.ZP.getDefaultLibrary()){u.next=13;break}throw"No library";case 13:if((0,a.oY)(g)){u.next=15;break}return u.abrupt("return");case 15:return v=(0,a.MN)(g,e,n.Z.CHARACTER_STYLE_ELEMENT_TYPE,{opType:c}),m&&v.createRepresentation("application/vnd.adobe.characterstyle+json","primary").setValue("characterstyle","data",m),y=[],s&&(b=v.createRepresentation("image/png","rendition"),_=b.setContentFromPath(s),y.push(_)),u.abrupt("return",Promise.all(y).then((function(){const e=[];return s&&e.push(v.setThumbnailCache(n.Z.CHARACTER_STYLE_THUMBNAIL_SIZE,s)),e.push(v.endOperation()),Promise.all(e).then((()=>{s&&o._I(s)})),v}),(function(){return g.removeElement(v,!0),Promise.reject("Could not create element.")})));case 25:return u.prev=25,u.t0=u.catch(7),g&&v&&g.removeElement(v,!0),u.abrupt("return",Promise.reject("Could not add character style: "+u.t0));case 29:case"end":return u.stop()}}),u,null,[[7,25]])})))()}}},10888:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAppConfiguration:()=>A});var n=r(99386),i=r(75067),o=r(53849),a=r(47320),s=r(76485),c=r(76325),l=r(31870),u=r(74379),d=r(8733),p=r(34038),h=r(46903),f=r(85834),m=r(77560),g=r(48124),v=r(89368),y=r.n(v);class b extends g.Z{_addImageToDocument(e){const t=l.wq(e),r=this._config.findUsableRepresentation(e);return r?((0,h.vM)(r,"placeAsset"),r.getContentPath().then((i=>{const o=p.i_(n.Z.IMAGE_ELEMENT_TYPE,r.type),a=o&&"Photoshop"===o.name;return s.Z.execApp("placeAsset",[y().normalize(i),a,e.library.name,e.name,e.getLegacyReference(),(0,h.RW)(e),e.created,t,t?l.kv(e):null,!1])}))):e.getThumbnailPath().then((r=>((0,h.dN)(e,"placeAsset"),s.Z.execApp("placeAsset",[y().normalize(r),!1,e.library.name,e.name,e.getLegacyReference(),(0,h.RW)(e),e.created,t,t?l.kv(e):null,!1]))))}getApplyOperations(e){return d.Z.getLayerInfo()?[{name:"DL_ADD_IMAGE_TO_PROJECT",icon:"download",apply:()=>this._addImageToDocument(e),displayInMenu:!0}]:[]}isDisabled(e){return!this._config.findUsableRepresentation(e)&&!e.getCachedThumbnailPath()}}var _=r(65944);class E extends _.Z{getApplyOperations(e){return[{name:"DL_APPLY_LOOK",onClick:!0,isDraggable:!0,apply:()=>{const t=this._config.findUsableRepresentation(e);if(t)return t.getContentPath().then((function(){}))},displayInMenu:!1}]}_addLookFromData(e,t,r){const i=JSON.parse(e),o=(0,h.MN)(t,i.name,n.Z.LOOK_ELEMENT_TYPE,{opType:r}),a=[];if(i.lookPath){const e=o.createRepresentation("application/vnd.adobe.look+xml","primary").setContentFromPath(i.lookPath);a.push(e)}if(i.cubePath){const e=i.lookPath?"alternate":"primary",t=o.createRepresentation("application/vnd.adobe.cube+txt",e).setContentFromPath(i.cubePath);a.push(t)}if(i.previewPath){const e=o.createRepresentation("image/jpg","rendition"),t=e.setContentFromPath(i.previewPath).then((function(){e.width=n.Z.LOOK_THUMBNAIL_SIZE,e.height=n.Z.LOOK_THUMBNAIL_SIZE}));a.push(t)}return Promise.all(a).then((()=>(o.endOperation().then((()=>{i.lookPath&&p._I(i.lookPath),i.cubePath&&p._I(i.cubePath),i.previewPath&&p._I(i.previewPath)})),o)),(()=>(t.removeElement(o,!0),Promise.reject("Could not create element."))))}getAddOperations(e){return e&&e.look?[{name:"DL_ADD_LOOK_NAME",order:0,icon:"AddLook",apply:(e,t)=>s.Z.execApp("getSelectedLookData").then((r=>this._addLookFromData(r,e,t))).catch((()=>Promise.reject("Could not create element.")))}]:[]}}var w=r(4328);class x extends w.Z{_addVideoToDocument(e){const t=l.wq(e),r=this._config.findUsableRepresentation(e);if(r){if((0,h.vM)(r,"placeAsset"),l.Jw(e)){const r=p.ku(e.type),n=e.representations.filter((e=>this._config.isRepresentationCompatible(e,r))).map((e=>({contentType:e.type,url:e.getContentURL()})));return s.Z.execApp("placeAsset",[n,!1,e.library.name,e.name,e.getLegacyReference(),(0,h.RW)(e),e.created,t,t?l.kv(e):null,!1])}r.getContentPath().then((t=>s.Z.execApp("placeAsset",[y().normalize(t),!1,e.library.name,e.name,e.getLegacyReference(),(0,h.RW)(e),e.created,null,null,!1])))}}getApplyOperations(e){return d.Z.getLayerInfo()?[{name:"DL_ADD_TO_PROJECT",icon:"download",apply:()=>this._addVideoToDocument(e),displayInMenu:!0}]:[]}isStockAssetDraggable(){return!0}}var L=r(70232);class O extends L.Z{_addAudioToDocument(e){const t=l.wq(e),r=this._config.findUsableRepresentation(e);r&&((0,h.vM)(r,"placeAsset"),r.getContentPath().then((r=>s.Z.execApp("placeAsset",[y().normalize(r),!1,e.library.name,e.name,e.getLegacyReference(),(0,h.RW)(e),e.created,t,t?l.kv(e):null,!1]))))}getApplyOperations(e){return d.Z.getLayerInfo()?[{name:"DL_ADD_TO_PROJECT",icon:"download",apply:()=>this._addAudioToDocument(e),displayInMenu:!0}]:[]}}var S=r(54142);class T extends S.Z{getDragData(e){return this._getStyleData(e)||{}}}function P(){P=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function I(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function A(){function e(e){return u.vq(e,e,e).slice(1).toLowerCase()}this.getScaleColor=function(t){return e(.4*t+35)},this.cssThemeBGScale=function(){const t={},r={darker:"darker",dark_v7:"dark-v7",dark:"dark",light:"light"},n=e=>{switch(e){case 0:return r.darker;case 100:return r.dark;default:return"generated/"+e}};for(let e=0;e<=100;e++){const r=this.getScaleColor(e);(!Object.prototype.hasOwnProperty.call(t,r)||Object.prototype.hasOwnProperty.call(t,r)&&n(e)!=="generated/"+e)&&(t[r]=n(e))}return[[29,r.darker],[50,r.dark_v7],[248,r.light]].forEach((r=>{const n=e(r[0]);t[n]=r[1]})),t},this.config={},this.config.code="PPRO",this.config.fullName="Premiere Pro",this.config.translationSuffix="PR",this.config.dragDropSource="com.adobe.premiere",this.config.stockDragFormat="jpeg",this.config.defaultStockSearchOptions=[n.Z.STOCK_SEARCH_OPTION_VIDEO.id],this.config.themes=this.cssThemeBGScale(),this.config.defaultTheme="darker",this.config.addSupportForTextStyle=!0,this.config.elementTypes=[b,x,E,O,T,m.Z.CapsuleElementConfig,m.Z.ColorElementConfig,m.Z.ColorThemeElementConfig,m.Z.ComponentElementConfig,m.Z.BrushElementConfig,m.Z.LayerStyleElementConfig,m.Z.ParagraphStyleElementConfig,m.Z.FontElementConfig,m.Z.ThreeDElementConfig,m.Z.PatternElementConfig,m.Z.TemplateElementConfig,m.Z.TextElementConfig,m.Z.AnimationElementConfig,m.Z.LightElementConfig,m.Z.MaterialElementConfig,m.Z.GradientElementConfig,m.Z.ChannelElementConfig,m.Z.ImageGuidelineElementConfig,m.Z.UnsupportedElementConfig],this.config.collapsedTypes=[n.Z.BRUSH_ELEMENT_TYPE,n.Z.CHANNEL_ELEMENT_TYPE,n.Z.GRADIENT_ELEMENT_TYPE,n.Z.FONT_ELEMENT_TYPE,n.Z.LAYER_STYLE_ELEMENT_TYPE,n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,n.Z.THREE_D_ELEMENT_TYPE,n.Z.PATTERN_ELEMENT_TYPE,n.Z.TEXT_ELEMENT_TYPE,n.Z.TEMPLATE_ELEMENT_TYPE,n.Z.ANIMATION_ELEMENT_TYPE,n.Z.LIGHT_ELEMENT_TYPE,n.Z.MATERIAL_ELEMENT_TYPE,n.Z.IMAGE_GUIDELINE_ELEMENT_TYPE,n.Z.UNSUPPORTED_ELEMENT_TYPE],this.init=function(){p.Zh(n.Z.IMAGE_ELEMENT_TYPE,["application/illustrator","application/photoshop","application/photoshop.large","image/vnd.adobe.photoshop","image/png","image/jpeg","image/jpg","image/heic"]),p.Zh(n.Z.LOOK_ELEMENT_TYPE,["application/vnd.adobe.cube+txt","application/vnd.adobe.look+xml"]),p.Zh(n.Z.VIDEO_ELEMENT_TYPE,["video/mp4","video/quicktime","video/x-quicktime","video/x-ms-wmv","video/x-ms-asf","video/x-msvideo","video/mpeg"]),p.Zh(n.Z.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),p.Zh(n.Z.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),p.Zh(n.Z.AUDIO_ELEMENT_TYPE,["audio/aac","audio/x-aac","audio/aacp","audio/mpeg","audio/mpeg3","audio/m4a","audio/mp3","audio/3gpp","audio/3gpp2","audio/x-aiff","audio/aif","audio/wav","audio/x-wav"]),p.Zh(n.Z.CAPSULE_ELEMENT_TYPE,["application/vnd.adobe.ppro.graphic+zip","application/vnd.adobe.ae.graphic+zip"]),p.Zh(n.Z.COMPONENT_ELEMENT_TYPE,["image/png"]),f.Z.get("enableTextStyle")&&p.Zh(n.Z.CHARACTER_STYLE_ELEMENT_TYPE,["application/vnd.adobe.characterstyle+json"]),s.Z.execApp("getTooltipState").then((function(e){n.Z.showTooltips=e})),this.startEventListener(),i.ZP.waitForInitialLoad().then((function(){const e=s.Z.createEvent("com.adobe.DesignLibraries.events.READY","APPLICATION");s.Z.dispatchEvent(e)}))},this.reportEvent=function(){},this.getUserData=function(e){s.Z.execApp("getUserData").then((function(t){if(!t||"undefined"===t)return e();e(JSON.parse(t))}))};const t=()=>d.Z.handleSelectionChange(),r=()=>{var e;const t=null!==(e=i.ZP.userId)&&void 0!==e?e:"",r={clientId:c.Z.getEnvironment().clientId,imsToken:""},n="com.adobe.DesignLibraries.events.UserAccessToken";return c.Z.getAccessToken(t).then((function(e){r.imsToken=e;const t=s.Z.createEvent(n,"APPLICATION");t.data=JSON.stringify(r),s.Z.dispatchEvent(t)}),(function(){const e=s.Z.createEvent(n,"APPLICATION");e.data=JSON.stringify(r),s.Z.dispatchEvent(e)}))},g=function(){var e,t=(e=P().mark((function e(t){var r,o,c,u,d,h,f;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.data,e.next=3,i.ZP.resolveElementReference(r);case 3:o=e.sent,c={elementRef:r},o?(c.name=o.name,c.id=o.id,c.libraryName=o.library.name,c.reference=o.getLegacyReference(),c.modified=o.modified,c.created=o.created,c.adobeStockId=l.wq(o),c.licensed=c.adobeStockId?l.kv(o):null,(u=a.Z.findUsableRepresentation(o,p.ku(n.Z.VIDEO_ELEMENT_TYPE)))&&(c.width=u.width,c.height=u.height,c.contentLength=u.contentLength,c.url=u.getContentURL(),c.trackingdata=u.getValue("adobestock","trackingdata"),c.contentType=u.type,d=p.vn(u.type),c.extension=d[d.length-1],(h=u.getValue("video","data")||!1)&&(c.framerate=Number(h.framerate),c.duration=h.duration)),(f=s.Z.createEvent("com.adobe.DesignLibraries.events.VideoUpdate","APPLICATION")).data=JSON.stringify(c),s.Z.dispatchEvent(f)):c.name="";case 6:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){I(o,n,i,a,s,"next",e)}function s(e){I(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),v=e=>{const t=s.Z.createEvent("com.adobe.DesignLibraries.events.LibraryReadWriteStatusResponse","APPLICATION"),r={code:0,result:[]},n=e.data.libraryIdList;n.length>0&&n.forEach((function(e){const t={id:e,status:0},n=i.ZP.getLibraryById(e);n?n.isWritable||(t.status=2):t.status=1,r.result.push(t)})),t.data=JSON.stringify(r),s.Z.dispatchEvent(t)},y=e=>{const t=s.Z.createEvent("com.adobe.DesignLibraries.events.UploadCapsuleResponse","APPLICATION"),r={code:0},a=e.data,c=i.ZP.getLibraryById(a.libraryId);let l=0;if(p.xW(a.primaryPath)||(l=2),0!==l||p.xW(a.secondaryPath)||(l=3),0!==l||p.xW(a.thumbnailPath)||(l=4),0!==l||c||(l=5),0!==l||c.isWritable||(l=6),0===l){const e=(e,t)=>{const r=s.Z.createEvent("com.adobe.DesignLibraries.events.UploadCapsuleProgress","APPLICATION");r.data=JSON.stringify({current:e,total:t}),s.Z.dispatchEvent(r)},i=[];let l=3,u=0;a.videoPreviewPath&&p.xW(a.videoPreviewPath)&&(l+=1),e(u,l);const d=(0,h.MN)(c,a.capsuleName,n.Z.CAPSULE_ELEMENT_TYPE,{});if(a.primaryPath){const t="aegraphic"===p.MZ(a.primaryPath)?"application/vnd.adobe.ae.graphic+zip":"application/vnd.adobe.ppro.graphic+zip",r=d.createRepresentation(t,"primary");if(a.metadata){const e=JSON.parse(a.metadata);r.setValue(n.Z.CAPSULE_NAMESPACE,n.Z.CAPSULE_DATA_KEY,e)}const o=r.setContentFromPath(a.primaryPath).then((function(){u+=1,e(u,l)}));i.push(o)}if(a.secondaryPath){const t=d.createRepresentation("application/vnd.adobe.graphic+json","alternate").setContentFromPath(a.secondaryPath).then((function(){u+=1,e(u,l)}));i.push(t)}if(a.thumbnailPath){const t=d.createRepresentation("image/png","rendition").setContentFromPath(a.thumbnailPath).then((function(){u+=1,e(u,l)}));i.push(t)}if(a.videoPreviewPath&&p.xW(a.videoPreviewPath)){const t=d.createRepresentation("video/mp4","rendition").setContentFromPath(a.videoPreviewPath).then((function(){u+=1,e(u,l)}));i.push(t)}const f=()=>{const e=[];e.push(d.setThumbnailCache(n.Z.CAPSULE_THUMBNAIL_SIZE,a.thumbnailPath)),e.push(d.endOperation()),Promise.all(e).then((()=>{a.primaryPath&&p._I(a.primaryPath),a.secondaryPath&&p._I(a.secondaryPath),a.thumbnailPath&&p._I(a.thumbnailPath)})),o.Z.revealElement(d),t.data=JSON.stringify(r),s.Z.dispatchEvent(t)},m=()=>{c.removeElement(d,!0),r.code=1,t.data=JSON.stringify(r),s.Z.dispatchEvent(t)};Promise.all(i).then(f,m)}else r.code=l,t.data=JSON.stringify(r),s.Z.dispatchEvent(t)},_=e=>{const t=s.Z.createEvent("com.adobe.DesignLibraries.events.DeleteCapsuleResponse","APPLICATION"),r={code:0,result:[]},n=e.data.items;n.length>0&&n.forEach((function(e){const t={elementId:e.elementId,libraryId:e.libraryId,status:0},n=i.ZP.getLibraryById(e.libraryId);if(n?n.isWritable||(t.status=3):t.status=2,0===t.status){const r=n.getElementById(e.elementId);if(r)try{n.removeElement(r)}catch(e){t.status=1}else t.status=1}r.result.push(t)})),t.data=JSON.stringify(r),s.Z.dispatchEvent(t)},w=e=>{const t=s.Z.createEvent("com.adobe.DesignLibraries.events.UpdateCapsuleResponse","APPLICATION"),r={code:0},n=e.data;let a=0;p.xW(n.jsonPath)||(a=2);const c=i.ZP.getLibraryById(n.libraryId);0!==a||c||(a=5),0!==a||c.isWritable||(a=6);const l=c.getElementById(n.elementId);0!==a||l||(a=4);const u=l.representations.find((e=>"alternate"===e.relationship));if(0!==a||u||(a=3),0===a){const e=[];let i;if(l.beginOperation(),n.jsonPath){i=l.createRepresentation("application/vnd.adobe.graphic+json","alternate");const t=i.setContentFromPath(n.jsonPath);e.push(t)}const a=()=>{l.removeRepresentation(u),l.endOperation().then((()=>{n.jsonPath&&p._I(n.jsonPath)})),o.Z.revealElement(l),t.data=JSON.stringify(r),s.Z.dispatchEvent(t)},c=()=>{l.removeRepresentation(i),l.endOperation(),r.code=1,t.data=JSON.stringify(r),s.Z.dispatchEvent(t)};Promise.all(e).then(a,c)}else r.code=a,t.data=JSON.stringify(r),s.Z.dispatchEvent(t)};return this.startEventListener=function(){s.Z.addEventListener("lookSelectionChanged",t),s.Z.addEventListener("getIMSAccessToken",r),s.Z.addEventListener("getVideoDownloadData",g),s.Z.addEventListener("getLibraryReadWriteStatus",v),s.Z.addEventListener("uploadCapsuleEvent",y),s.Z.addEventListener("deleteCapsuleEvent",_),s.Z.addEventListener("updateCapsuleJSON",w)},this.stopEventListener=function(){s.Z.removeEventListener("lookSelectionChanged",t),s.Z.removeEventListener("getIMSAccessToken",r),s.Z.removeEventListener("getVideoDownloadData",g),s.Z.removeEventListener("getLibraryReadWriteStatus",v),s.Z.removeEventListener("uploadCapsuleEvent",y),s.Z.removeEventListener("deleteCapsuleEvent",_),s.Z.removeEventListener("updateCapsuleJSON",w)},this}},22063:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});class n{constructor(e,t){this.type=e,this._xdGradient=t}serializeForLibrary(){const e=[],t=this._xdGradient.getColorStops().map((t=>{const r=t.stop,n=t.color.serializeAGC(),i=void 0===n.alpha?1:n.alpha;return delete n.alpha,e.push({offset:r,opacity:i}),{offset:r,color:[n]}})),r=this.type,n=(360-this.nativeAngle)%360,i=this.aspectRatio,o=this.centerPoint,a=this.scale;return{type:r,stops:t,opacities:e,angle:n,aspectRatio:i,scale:a,centerPoint:o}}}},23664:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(76485),i=r(22063);class o extends i.Z{constructor(e){super("linear",e||new n.Z.LinearGradient)}setColorStops(e){this._xdGradient.setColorStops(e)}setEndPoints({selection:e,angle:t,aspectRatio:r,xdEndPoints:i}){if(i){const e=i.startX,t=i.startY,r=i.endX,n=i.endY;return void this._xdGradient.setEndPoints(e,t,r,n)}r=e.localBounds.width/e.localBounds.height;const o=(0,n.Z.psdUtils.PlAgcGradientParams.getLinearGradientParams)(t,100,r),a=o.x1,s=o.y1,c=o.x2,l=o.y2;this._xdGradient.setEndPoints(a,s,c,l)}apply(e,t){n.Z.applyColorToSelection(t,this._xdGradient,e)}get nativeAngle(){let e=Math.atan2(this._xdGradient.endY-this._xdGradient.startY,this._xdGradient.endX-this._xdGradient.startX);return e*=180/Math.PI,e<0&&(e+=360),e}serializeForLibrary(){const e=super.serializeForLibrary();return e.xdEndPoints={startX:this._xdGradient.startX,startY:this._xdGradient.startY,endX:this._xdGradient.endX,endY:this._xdGradient.endY},e}}},61344:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(76485),i=r(22063);class o extends i.Z{constructor(e,t){super("radial",e||new n.Z.RadialGradient),this._bounds=t||{height:1,width:1}}setColorStops(e){this._xdGradient.setColorStops(e)}setEndPoints({angle:e,aspectRatio:t,scale:r,centerX:n,centerY:i}){const o=.5*r;this._xdGradient.setEndPoints(n,i,n+o,i),this._xdGradient.gradientTransform=this._xdGradient.boundingBoxTransform({scaleX:1,scaleY:t,degreeRotation:(360-e)%360})}apply(e,t){n.Z.applyColorToSelection(t,this._xdGradient,e)}get nativeAngle(){return this._xdGradient.scaleFactorsAndRotation().degreeRotation}get aspectRatio(){const e=this._xdGradient.scaleFactorsAndRotation().scaleY;return Math.abs(e/this._transformAspectRatio)}get _transformAspectRatio(){return this._bounds.height/this._bounds.width}get scale(){return this._xdGradient.endR*this._transformAspectRatio*2}get centerPoint(){return{x:this._xdGradient.startX,y:this._xdGradient.startY}}}},31707:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAppConfiguration:()=>it});var n=r(50265),i=r(99386),o=r(34038),a=r(76485),s=r(8733),c=r(84824),l=r(75067),u=r(30131),d=r(77560),p=r(20120),h=r(48124),f=r(82490),m=r(46903);class g extends h.Z{_addImageToDocument(e,t=!0){const r="DL_ADD_IMAGE_TO_DOC_AS_"+(t?"LINKED":"COPY");return a.Z.recordHistory(r,(()=>((0,m.NR)(e)?f.qh:f.jP)(e,t)))}_getImageNodesFromSelection(e){if(!e||0===e.length)return[];if(1===e.length){const t=e[0],r=p.pE(t),n=t.linked;return r||n?[]:[t]}return a.Z.findContainingArtboardsForSelection(e).size>1?[]:e}getAddOperations(e){const t=this._getImageNodesFromSelection(e);return 0===t.length?[]:[{name:"DL_TYPE_IMAGE_SINGULAR",icon:"AddImage",apply:(e,r)=>{const n={guids:t.map((e=>e.guid)),name:t[0].name};return this._createImageElement(n,e,r).then((e=>e.element))}}]}getApplyOperations(e){const t=e.getPrimaryRepresentation();if(!t)return[];const r=[];return t.type!==i.Z.AGC_REPRESENTATION_TYPE&&r.push({name:"DL_ADD_IMAGE_TO_DOC_AS_LINKED",icon:"download",isDraggable:!0,apply:()=>this._addImageToDocument(e,!0),displayInMenu:!0}),r.push({name:"DL_ADD_IMAGE_TO_DOC_AS_COPY",icon:"download",isDraggable:!0,apply:()=>this._addImageToDocument(e,!1),displayInMenu:!0}),r}_createImageElement(e,t,r){return(0,f.dC)(i.Z.IMAGE_ELEMENT_TYPE,e,t,r)}isDisabled(e){return!this._config.findUsableRepresentation(e)&&!e.getCachedThumbnailPath()}getDragData(e){const t=super.getDragData(e),r=e.getPrimaryRepresentation();if(r&&"application/illustrator"===r.type){const n=e.getCachedThumbnailPath(i.Z.IMAGE_THUMBNAIL_SIZE);n&&(t.vectorWidth=r.width,t.vectorHeight=r.height,t.thumbnailPath=a.Z.normalizePath(n))}return t.data=[a.Z.normalizePath(t.data[0])],t}getStockDragData(){return[""]}}var v=r(16771),y=r(74379);class b extends v.Z{constructor(...e){super(...e),this.publishToLibraryLabel="DL_PUBLISH_LIBRARY_IN_SOURCE"}_getColorApplyModes(){const e=[],t=a.Z.getSelection();if(t.length>0){const r=t[0];r instanceof a.Z.Line||e.push("fill"),a.Z.isCanvasTextEditInProgress()||r instanceof a.Z.Artboard||e.push("stroke")}return e}_applyAndLinkColor(e,t,r){const n=(0,p.Ol)(e,t);a.Z.applyColorToSelection(r,n,t);const i=t&&t.getPrimaryRepresentation&&t.getPrimaryRepresentation();i&&(0,m.vM)(i)}getApplyOperations(e,t){const r=this._getColorApplyModes(),n=a.Z.isAltKeyDown,i=r.map((t=>({name:`DL_SET_${"stroke"===t?"BORDER":t.toUpperCase()}_COLOR_TOOLTIP`,apply:r=>this._applyAndLinkColor(r,e,t),onClick:"fill"===t&&!n||"stroke"===t&&n,displayInMenu:!0}))),o=(0,y.m3)(t||(0,y.lP)(e));return i.push({name:(0,c.Iu)("DL_COPY_COLOR_TO_CLIPBOARD",{hex:o}),apply:()=>{a.Z.canvas.writePlainTextClipboard(o)},displayInMenu:!0}),i}_createOrUpdateColorElement(e,t,r,n,o){return o?(o.beginOperation(),o.removeAllRepresentations(),n&&(o.name=n)):o=(0,m.MN)(t,n||"",i.Z.COLOR_ELEMENT_TYPE,{opType:r}),o.createRepresentation(i.Z.COLOR_REPRESENTATION_TYPE,"primary").setValue(i.Z.COLOR_NAMESPACE,i.Z.COLOR_DATA_KEY,e),o.endOperation(),Promise.resolve(o)}getAddOperations(e){const t=this._getElementDataFromSelection(e);return t?t.map((e=>({name:"DL_ADD_COLOR_NAME_"+e.type,style:{backgroundColor:(0,y.m3)(e.data),border:"1px solid",width:"14px",height:"14px",margin:"1px 8px 1px 0px"},apply:(t,r)=>this._createOrUpdateColorElement(e.data,t,r)}))):[]}_getElementDataFromSelection(e){if(a.Z.isCanvasTextEditInProgress()&&a.Z.textEditModel.selection){const e=a.Z.TextPropertyUtils.getTextEditorPropertyValues();if(e.length>0){const t=e[0].fill;if(e.every((e=>{const r=e.fill;return!!r&&r.r===t.r&&r.g===t.g&&r.b===t.b&&r.a===t.a})))return[{data:(0,p.b6)(t),type:"FILL"}]}return[]}if(!e||1!==e.length)return;const t=[];return(0,p.ex)((e=>{if(e.fillEnabled&&e.fill&&e.fill instanceof a.Z.Color){const r=(0,p.b6)(e.fill);t.push({data:r,type:"FILL"})}if(e.strokeEnabled&&e.stroke){const r=(0,p.b6)(e.stroke);t.push({data:r,type:"STROKE"})}}),{visitNonEditable:!0,skipChildren:!0},e),t}createOrUpdateElementFromAsset(e,t,r,n){const i=e.getPrimaryRepresentation().getValue("color","data");return this._createOrUpdateColorElement(i,t,r,e.name,n).then((e=>({element:e})))}defaultEditOperation(e){if(e.library.isDocumentAssets)return a.Z.editColor(e)}}var _,E,w,x,L,O=r(54142),S=r(26964),T=r(89526),P=r(62631),I=r(64403),A=r.n(I),C=r(47320),k=r(16203),D=r(2652),N=r.n(D),R=r(24937),M=r(20290),j=r(33275),F=r(80091);function Z(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function B(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let G=(0,P.Pi)(((L=class extends T.Component{constructor(...e){super(...e),this.updateImageProviderWithColorSpace=e=>{this.imageProvider.colorSpace=e,Promise.resolve().then((()=>{this.imageProvider.updateRendition()}))},Z(this,"debouncedWidth",w,this),this.debounceWidthUpdate=(0,M.Ds)(i.Z.THUMBNAIL_RENDERER_DEBOUNCE,(()=>(this.clearImageProvider(),this.debouncedWidth=this.props.width,Promise.resolve()))),this.updateImageProviderWithTargetColorSpace=e=>{this.shouldHandleScreenColorProfileChange&&this.imageProvider&&(this.imageProvider.targetColorSpace=new Uint8Array(e),Promise.resolve().then((()=>{this.imageProvider.updateRendition()})))},Z(this,"imgStyle",x,this),this._setImageRef=e=>{this.clearReaction(),e&&(this._reaction=(0,n.reaction)((()=>this.imageProvider),(t=>{e.src=t,this.scaleToFit&&(e.onload=()=>{e.naturalWidth>e.naturalHeight?this.imgStyle={width:"100%",height:"auto"}:this.imgStyle={width:"auto",height:"100%"}})}),{fireImmediately:!0}))}}componentDidMount(){this.disposer=(0,n.reaction)((()=>a.Z.colorProfile),(e=>{this.updateImageProviderWithColorSpace(e)})),this.screenColorProfileDisposer=(0,n.reaction)((()=>a.Z.screenColorProfile),(e=>{this.updateImageProviderWithTargetColorSpace(e)}))}componentWillUnmount(){var e,t;this.clearImageProvider(),this.clearReaction(),null===(e=this.disposer)||void 0===e||e.call(this),null===(t=this.screenColorProfileDisposer)||void 0===t||t.call(this)}clearImageProvider(){this._imageProvider&&(this._imageProvider.cancel(),delete this._imageProvider,delete this._imageProviderType)}componentDidUpdate(){this.debouncedWidth!==this.props.width&&this.debounceWidthUpdate()}clearReaction(){this._reaction&&this._reaction()}get width(){return this.shouldDebounceWidthUpdate?this.debouncedWidth:this.props.width}get scaleToFit(){return!1}get shouldDebounceWidthUpdate(){return!1}get shouldHandleScreenColorProfileChange(){return!1}get containerClassName(){return A()("xd-renderer-container",`xd-renderer-container-${this.context.viewState.viewState}-view`)}get imageProvider(){throw new Error("get imageProvider() must be implemented by subclass")}get overlay(){}render(){return T.createElement("div",{className:this.containerClassName,"data-test-id":"xd-renderer-container"},T.createElement("img",{"data-test-id":"xd-renderer",ref:this._setImageRef,style:this.imgStyle}),this.overlays)}}).contextType=R.r,L.defaultProps={viewMode:"grid"},L.propTypes={element:N().oneOfType([N().instanceOf(j.W_),N().instanceOf(F.Z)]).isRequired,viewMode:N().oneOf(i.Z.ELEMENT_VIEW_MODES),height:N().number,width:N().number,gridSizeType:N().oneOf(i.Z.GRID_SIZE_TYPES)},w=B((E=L).prototype,"debouncedWidth",[n.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.width}}),x=B(E.prototype,"imgStyle",[n.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_=E))||_;var U,H;function z(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const V={grid:"Grid",list:"List",thumbnail:"List","thumbnail-large":"Grid"};let Y=(0,P.Pi)((z((H=class extends G{get style(){const e=C.Z.getShortType(this.props.element.type),t=C.Z.findUsableRepresentation(this.props.element,`application/vnd.adobe.${e}+json`);return t&&t.getValue(e,"data")}get imageProvider(){const e=V[this.props.viewMode];if(this._imageProviderType!==e&&this.clearImageProvider(),!this._imageProvider){this._imageProviderType=e;const t=`createCharacterStyle${this._imageProviderType}RenditionProvider`;this._imageProvider=a.Z.renditionService[t](28,28,a.Z.colorProfile,new Uint8Array(a.Z.screenColorProfile))}const t=k.GD(this.style)||"",r=a.Z.fontUtils.getFontFamily(t,k.BN(this.style)),n=a.Z.fontUtils.getFontStyle(t,k.pJ(this.style)),o=this.props.element.name,s=y.bA(this.style&&this.style.color)||4278190080,c=k.O7(this.style),l=k.hR(this.style),u=k.Id(this.style),d=k.nP(this.style,"titlecase")||"none",p=k.cu(this.style)||"none",h="subscript"===p?30:24,f=k.Ac(this.style)||0;if("Grid"===e){const e={width:(this.width||100)-12,height:i.Z.GRID_TYPE_WIDE_SET_HEIGHT};this._imageProvider.setCharacterStyleGridInfo(e.width,e.height,r,o,h,n,t,f,s,d,p,l,c,u)}else{const e=i.Z.LIST_VIEW_ELEMENT_THUMBNAIL_HEIGHT-2;this._imageProvider.setCharacterStyleListInfo(e,e,r,n,t,i.Z.SHORT_FONT_PREVIEW_TEXT,s,d,p,l,u)}return this._imageProvider}get overlays(){if(this.props.gridSizeType===i.Z.GRID_TYPE_WIDE){const e=k.Mr(this.style),t=A()("panel-textstyle-rendition-details","xd-textstyle-renderer-details");return T.createElement("div",{className:t,"data-test-id":"textstyle-font-details"},e)}}get containerClassName(){return A()(super.containerClassName,{contrast:k.DO(this.style)})}get shouldHandleScreenColorProfileChange(){return!0}}).prototype,"style",[n.computed],Object.getOwnPropertyDescriptor(H.prototype,"style"),H.prototype),z(H.prototype,"imageProvider",[n.computed],Object.getOwnPropertyDescriptor(H.prototype,"imageProvider"),H.prototype),U=H))||U;const W="characterstyle",K="data";class $ extends O.Z{constructor(...e){super(...e),this.publishToLibraryLabel="DL_PUBLISH_LIBRARY_IN_SOURCE"}_applyAndLinkTextStyle(e){const t=this._config.findUsableRepresentation(e),r=(0,f.fK)(e);r&&(a.Z.applyCharacterStyleToSelection(r,e),(0,m.vM)(t))}_getApplyMode(){if(a.Z.hasTextEditSelection())return{mode:"textEdit"};const e=[];return(0,p.ex)((t=>{t instanceof a.Z.Text&&e.push(t)})),e.length>0?{mode:"selection"}:{}}getApplyOperations(e){let t=[];return this._getApplyMode().mode&&(t=[{name:"DL_SET_TEXT_STYLE_TOOLTIP",apply:()=>{try{this._applyAndLinkTextStyle(e)}catch(e){S.Z.log(e)}},onClick:!0,displayInMenu:!e.library.isDocumentAssets}]),t}getAddOperations(e){const t=this._getTextStyleFromSelection(e);return t?[{name:"DL_ADD_TEXT_STYLE_NAME",icon:"AddCharacterStyle",apply:(e,r)=>this._createOrUpdateTextStyleElement(t,e,r)}]:[]}_getTextStyleFromSelection(e){if(a.Z.isCanvasTextEditInProgress()&&a.Z.textEditModel.selection){const e=a.Z.TextPropertyUtils.getTextEditorPropertyValues();if(1===e.length){const t=e[0];return(0,p.Qw)(t)}return}if(!e||0===e.length)return;const t=[];return(0,p.ex)((e=>{e instanceof a.Z.Text&&t.push(e)}),{visitNonEditable:!0,skipChildren:!0},e),1===t.length?(0,p.Qw)(t[0]):void 0}_createThumbnail(e){const t={text:"Aa",fill:{r:0,g:0,b:0}};t.fontFamily=e.fontFamily,t.strikethrough=e.strikethrough,t.charSpacing=e.charSpacing,t.underline=e.underline,t.textTransform=e.textTransform,t.textScript=e.textScript,t.fontStyle=e.fontStyle,t.postscriptName=e.postscriptName,t.fontSize=23;const r=`${o.Rl()}.png`;return a.Z.characterStyleToPNG(t,r)}_createOrUpdateTextStyleElement(e,t,r,n="",o){let a;if(o)o.beginOperation(),n&&(o.name=n),a=o;else{const e=(0,m.In)(t,n,"DL_ADD_TEXT_STYLE_NAME");a=(0,m.MN)(t,e,i.Z.CHARACTER_STYLE_ELEMENT_TYPE,{opType:r})}const s=e.nodeOrStyleRange;return delete e.nodeOrStyleRange,this._createThumbnail(s).then((t=>{o&&o.removeAllRepresentations(),a.createRepresentation(i.Z.CHARACTER_STYLE_REPRESENTATION,"primary").setValue(W,K,e);const r=a.createRepresentation("image/png","rendition");return r.setContentFromPath(t,!0).catch((()=>r.setContentFromPath(t)))})).then((()=>a)).catch((e=>(S.Z.log(e),a&&!o&&(t.removeElement(a,!0),a=null),Promise.reject(e)))).finally((()=>{a&&a.endOperation()}))}createOrUpdateElementFromAsset(e,t,r,n){const i=e.getPrimaryRepresentation().getValue(W,K);return this._createOrUpdateTextStyleElement(i,t,r,e.name,n).then((e=>({element:e})))}getCustomRenderer(){if(a.Z.renditionService)return Y}defaultEditOperation(e){if(e.library.isDocumentAssets)return a.Z.editCharacterStyle(e)}searchAdditionalElementData(){return!1}}var q,X,J=r(86423);function Q(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let ee=(0,P.Pi)((Q((X=class extends G{get gradientData(){const e=C.Z.findUsableRepresentation(this.props.element,i.Z.GRADIENT_REPRESENTATION_TYPE);return e&&e.getValue(i.Z.GRADIENT_NAMESPACE,i.Z.GRADIENT_DATA_KEY)}get imageProvider(){if(!this.gradientData)return this._imageProvider;const e=this.props.viewMode,t=this.gradientData,r=t.stops,n=t.opacities,i={width:this.width,height:this.props.height};this._imageProviderType!==e&&this.clearImageProvider(),this._imageProvider||(this._imageProviderType=e,this._imageProvider=a.Z.renditionService.createRadialGradientRenditionProvider(i.width,i.height,a.Z.colorProfile));const o=r.map((e=>e.offset)).join(", "),s=r.map(((e,t)=>{const r=n[t]?n[t].opacity:1;return y.At(e.color,r)})).join(", ");return this._imageProvider.setGradientInfo(s,o),this._imageProvider}get shouldDebounceWidthUpdate(){return"list"!==this.props.viewMode}get containerClassName(){return"xd-renderer-container-transparent"}}).prototype,"gradientData",[n.computed],Object.getOwnPropertyDescriptor(X.prototype,"gradientData"),X.prototype),Q(X.prototype,"imageProvider",[n.computed],Object.getOwnPropertyDescriptor(X.prototype,"imageProvider"),X.prototype),q=X))||q;class te extends J.Z{_canReceiveGradient(e,t){return!("fill"!==t||e instanceof a.Z.Line||e instanceof a.Z.Text)}_getGradientApplyModes(){const e=a.Z.getSelection(),t=[];return e.length>0&&e.some((e=>this._canReceiveGradient(e,"fill")))&&t.push("fill"),t}_setGradient(e,t,r){if(this.isDisabled(e))return;const n=(0,f.D3)(e);a.Z.applyColorToSelection(r,n,e);const i=this._config.findUsableRepresentation(e);(0,m.vM)(i)}_getGradientsFromSelection(e){const t=[];return e&&1===e.length?((0,p.ex)((e=>{if(this._canReceiveGradient(e,"fill")){const r=e.fillEnabled&&e.fill;(r instanceof a.Z.LinearGradient||r instanceof a.Z.RadialGradient)&&t.push((0,p.Ed)(r,e.localBounds))}}),{visitNonEditable:!0,skipChildren:!0},e),t):[]}getApplyOperations(e){return this._getGradientApplyModes().map((t=>({name:`DL_SET_${t.toUpperCase()}_GRADIENT_TOOLTIP`,apply:t=>this._setGradient(e,t,"fill"),onClick:"fill"===t,displayInMenu:!0})))}getAddOperations(e){return this._getGradientsFromSelection(e).map((e=>({name:"DL_TYPE_GRADIENT_SINGULAR",style:Object.assign((0,y.mr)(e,!1,!1),{border:"1px solid",width:"14px",height:"14px",margin:"1px 8px 1px 0px"}),apply:(t,r)=>this._createOrUpdateGradientElement(e,t,r)})))}_createOrUpdateGradientElement(e,t,r,n="",o){o&&(o.beginOperation(),o.removeAllRepresentations(),o.name=n||o.name);const a=n||(0,m.In)(t,n,this.typeNameSingular),s=o||(0,m.MN)(t,a,i.Z.GRADIENT_ELEMENT_TYPE,{opType:r});return s.createRepresentation(i.Z.GRADIENT_REPRESENTATION_TYPE,"primary").setValue(i.Z.GRADIENT_NAMESPACE,i.Z.GRADIENT_DATA_KEY,e),s.endOperation(),Promise.resolve(s)}isDisabled(e){const t=this._config.findUsableRepresentation(e),r=t&&t.getValue(i.Z.GRADIENT_NAMESPACE,i.Z.GRADIENT_DATA_KEY);return!t||!r}createOrUpdateElementFromAsset(e,t,r,n){const i=e.getPrimaryRepresentation().getValue("gradient","data");return this._createOrUpdateGradientElement(i,t,r,e.name,n).then((e=>({element:e})))}getCustomRenderer(e){if(e.library.isDocumentAssets&&a.Z.renditionService){const t=C.Z.findUsableRepresentation(e,i.Z.GRADIENT_REPRESENTATION_TYPE),r=t&&t.getValue(i.Z.GRADIENT_NAMESPACE,i.Z.GRADIENT_DATA_KEY);if(r&&"radial"===r.type)return ee}}defaultEditOperation(e){if(e.library.isDocumentAssets)return a.Z.editColor(e)}}var re,ne,ie=r(53784),oe=r(73306);const ae="backgroundColorChanged",se=[16777215,4294967295];let ce=(0,P.Pi)((le=(ne=class extends G{constructor(...e){super(...e),this._backgroundAtom=new n.Atom("backgroundAtom"),this.onBackgroundColorChange=()=>this._backgroundAtom.reportChanged()}componentDidMount(){super.componentDidMount(),this.screenColorProfileDisposer=(0,n.reaction)((()=>a.Z.screenColorProfile),(e=>{this.updateImageProviderWithTargetColorSpace(e)}))}componentWillUnmount(){var e;null===(e=this.screenColorProfileDisposer)||void 0===e||e.call(this),super.componentWillUnmount()}componentDidUpdate(e){super.componentDidUpdate(),e.element!==this.props.element&&this.clearImageProvider()}get contrastBackground(){this._backgroundAtom.reportObserved();const e=this._imageProvider&&this._imageProvider.backgroundColor;return void 0!==e&&!se.includes(e)}clearImageProvider(){var e,t;null===(e=this._imageProvider)||void 0===e||null===(t=e.events)||void 0===t||t.off(ae,this.onBackgroundColorChange),super.clearImageProvider()}get imageProvider(){const e=this.props.viewMode;let t={width:this.width,height:this.props.height};if("list"===e){const e=i.Z.LIST_VIEW_ELEMENT_THUMBNAIL_HEIGHT;t={width:e,height:e}}t.width-=2*this.padding,t.height-=2*this.padding;const r=this.props.element&&this.props.element.id;return!this._imageProvider||this._imageProvider.id===r&&this._imageProviderType===e||this.clearImageProvider(),this._imageProvider||(this._imageProviderType=e,this._imageProvider=this.props.element.getRenditionProvider(t.width,t.height),this._imageProvider.events.on(ae,this.onBackgroundColorChange),this.onBackgroundColorChange()),this._imageProvider}get scaleToFit(){return"list"!==this.props.viewMode}get shouldDebounceWidthUpdate(){return"list"!==this.props.viewMode}get shouldHandleScreenColorProfileChange(){return!0}get padding(){return"list"===this.props.viewMode?1:6}get containerClassName(){return A()(super.containerClassName,{contrast:this.contrastBackground})}}).prototype,ue="imageProvider",de=[n.computed],pe=Object.getOwnPropertyDescriptor(ne.prototype,"imageProvider"),he=ne.prototype,fe={},Object.keys(pe).forEach((function(e){fe[e]=pe[e]})),fe.enumerable=!!fe.enumerable,fe.configurable=!!fe.configurable,("value"in fe||fe.initializer)&&(fe.writable=!0),fe=de.slice().reverse().reduce((function(e,t){return t(le,ue,e)||e}),fe),he&&void 0!==fe.initializer&&(fe.value=fe.initializer?fe.initializer.call(he):void 0,fe.initializer=void 0),void 0===fe.initializer&&(Object.defineProperty(le,ue,fe),fe=null),re=ne))||re;var le,ue,de,pe,he,fe;class me extends ie.Z{constructor(...e){super(...e),this.editItemLabel="DL_EDIT_COMPONENT",this.editInSourceLabel="DL_EDIT_COMPONENT_IN_SOURCE",this.publishToLibraryLabel="DL_PUBLISH_LIBRARY_IN_SOURCE"}_getDragAndComponentData(e){const t=e.getPrimaryRepresentation();let r=oe.Z.prototype.getDragData.call(this,e);r?r.data=[a.Z.normalizePath(r.data[0])]:t.type!==a.Z.documentLibraryConstants.XD_COMPONENT_CONTAINER_TYPE&&t.type!==a.Z.documentLibraryConstants.NXD_COMPONENT_CONTAINER_TYPE||(r={},r.imageUIDToPathMap=[],t.children.forEach((e=>{const t=e.getCachedContentPath();if(t){const n=a.Z.normalizePath(t);if(e.type===i.Z.AGC_REPRESENTATION_TYPE||e.type===i.Z.NXD_REPRESENTATION_TYPE)r.data=[n];else{const t={uid:e.getValue("xd","uid"),imagePath:n};r.imageUIDToPathMap.push(t)}}}))),r=Object.assign(r||{},{elementRef:e.getReference(),elementId:e.id,libraryId:e.library.id});const n=t&&(t.getValue("symbol","data")||t.getValue("xd","data"));return n&&n.symbolId&&(r=Object.assign(r,{symbolId:n.symbolId})),r}getApplyOperations(e){return e.getPrimaryRepresentation()?[{name:"DL_ADD_COMPONENT_TO_DOC_AS_COPY",icon:"download",isDraggable:!0,apply:()=>{const t=this._getDragAndComponentData(e);return a.Z.addComponentToCanvas(e,t)},displayInMenu:!1}]:[]}_getComponentsFromSelection(e){const t=[];return e&&1===e.length?(p.ex((e=>{p.pE(e)&&t.push(e)}),{visitNonEditable:!0,skipChildren:!0},e),t):[]}getAddOperations(e){return this._getComponentsFromSelection(e).map((e=>({name:"DL_TYPE_COMPONENT_SINGULAR",icon:"AddComponent",apply:(t,r)=>{try{return(0,f.dC)(i.Z.COMPONENT_ELEMENT_TYPE,e,t,r,null,!0)}catch(e){return console.error("Error cloning XD node",e),Promise.reject(e)}}})))}getDragData(e){return this._getDragAndComponentData(e)}isDisabled(e){return!this._config.findUsableRepresentation(e)}createOrUpdateElementFromAsset(e,t,r,n){if(!e||!t)return Promise.reject("Missing DocumentElement or LibraryModel");const o=e.getPrimaryRepresentation();if(!o)return Promise.reject("Element has no AGC representation");const a=o.getValue("symbol","data");return a?(0,f.dC)(i.Z.COMPONENT_ELEMENT_TYPE,a,t,r,n,!0):Promise.reject("Element has no symbol data")}getCustomRenderer(e){if(e.library.isDocumentAssets&&a.Z.renditionService)return ce}defaultEditOperation(e){if(e.library.isDocumentAssets)return a.Z.editMasterComponent(e)}getAdditionalTooltipData(e){if(this.isDisabled(e))return{createdIn:void 0,representationType:void 0,description:(0,c.Iu)("DL_XD_COMPONENT_NOT_SUPPORTED")};if(!e.library.isDocumentAssets)return{};const t=a.Z.getAssetInstanceCount(e),r=t>1?"DL_ASSET_INSTANCES_PLURAL":"DL_ASSET_INSTANCES_SINGULAR";return{createdIn:void 0,representationType:void 0,instances:(0,c.Iu)(t?r:"DL_ASSET_NO_INSTANCES",{instances:t})}}}var ge=r(70232),ve=r(74149);class ye extends ge.Z{_addAudioToDocument(e){const t=e.getPrimaryRepresentation();t.getContentPath().then((r=>{const n={guid:t.getValue("audio","data").guid,displayName:e.name,path:r};a.Z.addAudioToDocument(n,e)})),(0,m.vM)(t)}getApplyOperations(e){return!e.getPrimaryRepresentation()||this.isDisabled(e)?[]:[!e.library.isDocumentAssets&&{name:"DL_PLACE",icon:"download",apply:()=>this._addAudioToDocument(e),displayInMenu:!0}]}createOrUpdateElementFromAsset(e,t,r,n){if(n)return Promise.resolve({element:n});const i=e.getPrimaryRepresentation(),o=i.getValue("audio","data"),a=i._representation.getCachedContentPath(o.guid),s=i._representation.getDisplayName(o.guid),c=[{path:a,relationship:"primary",data:[{namespace:"audio",key:"data",value:{guid:o.guid}}]}];return(0,ve.GT)(s,c,t,r).then((e=>({element:e})))}}var be=r(4328),_e=r(62061);const Ee=26214400;class we extends be.Z{isDisabled(e){const t=e.getPrimaryRepresentation(),r=this._config.findUsableRepresentation(e)||t;return!r||"video/mp4"!==r.type||r.contentLength>Ee}getAdditionalTooltipData(e){const t={};t.type=super.getExtension(e),"mp4"!==t.type&&(t.description=(0,c.Iu)("DL_XD_ADD_VIDEO_FILE_FORMAT_NOT_SUPPORTED_TOOLTIP"));const r=e.getPrimaryRepresentation(),n=this._config.findUsableRepresentation(e)||r;if(n){if(n.contentLength&&(t.filesize=_e.d3(n.contentLength),n.contentLength>Ee)){const e="25",r=(0,c.Iu)("DL_FILESIZE_MB",{size:e});t.description?t.description+="\n"+(0,c.Iu)("DL_XD_ADD_VIDEO_FILE_TOO_BIG_TOOLTIP",{filesize:r}):t.description=(0,c.Iu)("DL_XD_ADD_VIDEO_FILE_TOO_BIG_TOOLTIP",{filesize:r})}const e=n.getValue("video","data")||{};e.duration&&(t.duration=_e.zW(e.duration))}return t}formatTooltipContent(e){const t=e.name,r=e.group,n=e.type,i=e.duration,o=e.filesize,a=e.description;return[t,r,n&&(0,c.Iu)("DL_XD_VIDEO_TYPE_TOOLTIP",{type:n}),i&&(0,c.Iu)("DL_XD_VIDEO_DURATION_TOOLTIP",{duration:i}),o&&(0,c.Iu)("DL_XD_VIDEO_SIZE_TOOLTIP",{filesize:o}),a&&{divider:!0},a]}createOrUpdateElementFromAsset(e,t,r,n){if(n)return n.name=e.name,Promise.resolve({element:n});const i=e.getPrimaryRepresentation(),o=i.getValue("video","data"),a=i._representation.getCachedContentPath(o.guid),s=i._representation.getDisplayName(o.guid),c=[{path:a,relationship:"primary",data:[{namespace:"video",key:"data",value:{guid:o.guid,displayName:s}}]}];return(0,ve.$J)(e.name,c,void 0,t,r).then((e=>({element:e})))}getDragData(e){if(this.isDisabled(e))return;const t=e.getPrimaryRepresentation(),r=t.getValue("video","data");let n=super.getDragData(e);if(n)n.data=[a.Z.normalizePath(n.data[0])],n.isLinked=!0;else{const e=t._representation.getCachedContentPath(r.guid);n=Object.assign({},{data:[a.Z.normalizePath(e)],isLinked:!1})}return n=Object.assign(n||{},{elementRef:e.getReference(),elementId:e.id,libraryId:e.library.id,modifiedTime:(0,m.RW)(e),hasLinkReference:Boolean(e.linkReference),guid:r?r.guid:"",displayName:r?r.displayName:null}),n}}var xe=r(27611),Le=r(99767);class Oe extends T.Component{constructor(...e){super(...e),this._toggleCollapsed=()=>{a.Z.toggleMissingFontsCollapsed()}}get title(){return T.createElement("div",{"data-test-id":"xd-missing-fonts-title",className:"xd-missing-fonts-title"},(0,c.Iu)("ASSETS_PANEL_MISSING_FONT_TITLE",{count:this.props.missingFontsCount}))}get warnIcon(){return T.createElement(Le.Z,{placement:"top-start",content:(0,c.Iu)("DL_FONTS_MISSING_TOOLTIP")},T.createElement("div",{"data-test-id":"xd-missing-fonts-warn-icon",className:"xd-missing-fonts-warn-icon element-badge-warning-missing"},T.createElement(xe.Z,{id:"MissingFontWarning",height:18,width:18})))}get collapseChevron(){return T.createElement("div",{"data-test-id":"xd-missing-fonts-collapse-chevron",className:"xd-missing-fonts-collapse-chevron",onClick:this._toggleCollapsed},T.createElement(xe.Z,{id:this.props.collapsed?"ChevronRightSmall":"ChevronDownSmall",height:8}))}render(){return T.createElement("div",{"data-test-id":"xd-missing-fonts-header",className:"xd-missing-fonts-header"},this.collapseChevron,this.title,this.warnIcon)}}Oe.propTypes={collapsed:N().bool.isRequired,missingFontsCount:N().number.isRequired};var Se,Te,Pe,Ie,Ae=r(99409),Ce=r(93443);function ke(){return ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ke.apply(this,arguments)}function De(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Ne=(0,P.Pi)((Ie=class extends T.Component{constructor(...e){super(...e),function(e,t,r,n){r&&Object.defineProperty(e,"isSelected",{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}(this,0,Pe,this),this._handleContextMenu=e=>{if(a.Z.setContextMenu){e.stopPropagation();const t=[{id:"replaceFont",label:(0,c.Iu)("DL_REPLACE_FONT"),onClick:()=>this.props.missingFont.replace(),enableMenu:this.props.missingFont.replaceFontAllowed},{id:"highlight",label:(0,c.Iu)("DL_HIGHLIGHT_ON_CANVAS"),onClick:()=>this.props.missingFont.highlight(),enableMenu:!0}];Ae.Z.openContextMenu(t,e)}},this._onBlur=()=>{this.isSelected=!1},this._onClick=()=>{this.isSelected=!0}}get contents(){const e=this.props.missingFont.fontFamily||(0,c.Iu)("DL_INFO_UNAVAILABLE_FONT"),t=this.props.missingFont.fontStyle||"",r=this.props.missingFont.numInstances,n=r?r>1?"DL_ASSET_INSTANCES_PLURAL":"DL_ASSET_INSTANCES_SINGULAR":"DL_ASSET_NO_INSTANCES",i=`${e} ${t} — ${(0,c.Iu)(n,{instances:r})}`;return T.createElement("div",{"data-test-id":"xd-missing-font-view-contents",className:"panel-grid-item-multiline-container"},T.createElement("div",{className:"xd-missing-font-view-contents"},i))}get icon(){if("list"===this.context.viewState.viewState)return T.createElement("div",{className:"panel-list-item-thumb"},T.createElement("div",{"data-test-id":"thumbnail-failed-icon",className:"panel-no-rendition-holder-list"},T.createElement("span",{className:"panel-no-rendition-icon panel-list-icon-missing-rendition"},T.createElement(xe.Z,{id:"CreativeCloud",height:20}))))}render(){return T.createElement("div",ke({ref:e=>this.props.missingFont.register(e),"data-test-id":"xd-missing-font-view",className:A()(`xd-missing-font-${this.context.viewState.viewState}-view`,"interactive",{selected:this.isSelected}),onBlur:this._onBlur,tabIndex:"0",onClick:this._onClick},a.Z.contextMenuEventListeners(this._handleContextMenu)),this.icon,this.contents)}},Ie.contextType=R.r,Ie.propTypes={missingFont:N().instanceOf(Ce.Z).isRequired},Pe=De((Te=Ie).prototype,"isSelected",[n.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),De(Te.prototype,"contents",[n.computed],Object.getOwnPropertyDescriptor(Te.prototype,"contents"),Te.prototype),Se=Te))||Se;var Re,Me;let je=(0,P.Pi)(((Me=class extends T.Component{render(){return T.createElement("div",{"data-test-id":"xd-missing-fonts-container",className:`xd-missing-fonts-${this.context.viewState}-container`},this.props.missingFonts.map((e=>T.createElement(Ne,{key:e.id,missingFont:e}))))}}).propTypes={missingFonts:N().array.isRequired},Re=Me))||Re;var Fe,Ze,Be,Ge,Ue=r(6535);function He(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let ze=(0,P.Pi)((Ge=class extends T.Component{constructor(...e){super(...e),function(e,t,r,n){r&&Object.defineProperty(e,"isOverflow",{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}(this,0,Be,this),this.setIsScrollable=()=>{this._missingFontsContainerRef&&(this.isOverflow=this._missingFontsContainerRef._lastChild.scrollHeight>this._missingFontsContainerRef._lastChild.clientHeight)},this.setMissingFontsContainerRef=e=>{this._missingFontsContainerRef=e}}get missingFonts(){return this.props.library&&this.props.library.isDocumentAssets&&a.Z.getMissingFonts?a.Z.getMissingFonts():[]}get collapsed(){return a.Z.getMissingFontsCollapsed()}componentDidMount(){window.addEventListener("resize",this.setIsScrollable)}componentWillUnmount(){window.removeEventListener("resize",this.setIsScrollable)}render(){if(0===this.missingFonts.length)return null;const e=A()("xd-missing-fonts-footer",{"xd-missing-fonts-scroll-line":this.isOverflow});return T.createElement(T.Fragment,null,T.createElement("div",{ref:this.setMissingFontsContainerRef,"data-test-id":"xd-missing-fonts",className:"xd-missing-fonts"},T.createElement(Oe,{collapsed:this.collapsed,missingFontsCount:this.missingFonts.length}),!this.collapsed&&T.createElement(je,{missingFonts:this.missingFonts})),!this.collapsed&&T.createElement("div",{"data-test-id":e,className:e}))}},Ge.propTypes={library:N().oneOfType([N().instanceOf(j.Zu),N().instanceOf(Ue.Z)]).isRequired},Be=He((Ze=Ge).prototype,"isOverflow",[n.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),He(Ze.prototype,"missingFonts",[n.computed],Object.getOwnPropertyDescriptor(Ze.prototype,"missingFonts"),Ze.prototype),Fe=Ze))||Fe;var Ve=r(51461),Ye=r(69233),We=r(46931),Ke=r(69377),$e=r(11437),qe=r(75623),Xe=r(27299);class Je{constructor(e){this._representation=e,this._changeAtom=this.element._changeAtom}get id(){return this._representation.id}get element(){return(0,Ke.gh)(this._representation.element)}get type(){return this._changeAtom.reportObserved(),a.Z.representationTypeMap[this._representation.type]||this._representation.type}get relationship(){return this._changeAtom.reportObserved(),this._representation.relationship}get width(){return this._changeAtom.reportObserved(),this._representation.width}get height(){return this._changeAtom.reportObserved(),this._representation.height}getValues(){return this._representation.getValues?this._representation.getValues():[]}getValue(e,t){this._changeAtom.reportObserved();const r=this._representation.getValue("gradient"===e?"color":e,t);if(r){if("color"===e&&"data"===t)return(0,p.b6)(r);if("gradient"===e&&"data"===t)return(0,p.Ed)(r);if("characterstyle"===e&&"data"===t)return(0,p.Qw)(r)}return r}isCompatibleType(e){return this._changeAtom.reportObserved(),this.type===e}getExternalLinkDownloadProgress(){return 100}getCachedContentPath(){}}var Qe=r(53849),et=r(10440);function tt(){tt=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function rt(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function nt(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){rt(o,n,i,a,s,"next",e)}function s(e){rt(o,n,i,a,s,"throw",e)}a(void 0)}))}}function it(){return this.config={},this.config.APP_NAMESPACE="xd",this.config.code="SPRK",this.config.translationSuffix="XD",this.config.fullName="XD",this.config.dragDropSource="com.adobe.xd",this.config.themes={f5f5f5:"lighter"},this.config.cancelButtonQuiet=!0,this.config.legacySpectrumEnabled=!0,this.config.defaultTheme="lighter",this.config.hideCustomSearchIcon=!0,this.config.hideDefaultSearchCancelIcon=!0,this.config.customClearSearchIconHeight=12,this.config.noFlyoutMenu=!0,this.config.hideHeaderCreateLibraryButton=!0,this.config.hasLibraryManager=!0,this.config.disableRecentLibrariesView=!0,this.config.disableEditOnDoubleClickAsset=!0,this.config.customTextStyleTrackingString="DL_TEXT_ATTRIBUTE_TRACKING_XD",this.config.customTextStyleLeadingString="DL_TEXT_ATTRIBUTE_LEADING_XD",this.config.defaultToDocumentAssets=!0,this.config.defaultViewState="list",this.config.defaultViewByState="group",this.config.hideFooterInRootView=!0,this.config.hideNamesInGridView=!1,this.config.hideListViewMetadata=!0,this.config.applyElementOnNameClick=!0,this.config.enableSAM=!0,this.config.disableOnboarding=!0,this.config.showTeamsOnboarding=!0,this.config.listViewElementHeight=32,this.config.smallColorGridElement=!0,this.config.getScrollTopPadding=()=>7,this.config.getScrollBarPadding=()=>1,this.config.gridRightPadding=4,this.config.AdditionalLibraryHeaderView=ze,this.config.elementTypes=[b,d.Z.ColorThemeElementConfig,te,$,d.Z.FontElementConfig,me,g,we,ye,d.Z.LayerStyleElementConfig,d.Z.BrushElementConfig,d.Z.ThreeDElementConfig,d.Z.PatternElementConfig,d.Z.TemplateElementConfig,d.Z.LookElementConfig,d.Z.CapsuleElementConfig,d.Z.ParagraphStyleElementConfig,d.Z.TextElementConfig,d.Z.AnimationElementConfig,d.Z.LightElementConfig,d.Z.MaterialElementConfig,d.Z.ChannelElementConfig,d.Z.ImageGuidelineElementConfig,d.Z.UnsupportedElementConfig],this.config.hideSearchSelectorOnSearch=!0,this.config.collapsedTypes=[i.Z.BRUSH_ELEMENT_TYPE,i.Z.CHANNEL_ELEMENT_TYPE,i.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,i.Z.LAYER_STYLE_ELEMENT_TYPE,i.Z.LOOK_ELEMENT_TYPE,i.Z.CAPSULE_ELEMENT_TYPE,i.Z.THREE_D_ELEMENT_TYPE,i.Z.LIGHT_ELEMENT_TYPE,i.Z.MATERIAL_ELEMENT_TYPE,i.Z.PATTERN_ELEMENT_TYPE,i.Z.TEMPLATE_ELEMENT_TYPE,i.Z.TEXT_ELEMENT_TYPE,i.Z.ANIMATION_ELEMENT_TYPE,i.Z.IMAGE_GUIDELINE_ELEMENT_TYPE,i.Z.UNSUPPORTED_ELEMENT_TYPE],this.config.STOCK_SEARCH_UI_OPTIONS=[i.Z.STOCK_SEARCH_OPTION_PHOTO,i.Z.STOCK_SEARCH_OPTION_ILLUSTRATION,i.Z.STOCK_SEARCH_OPTION_VECTOR,i.Z.STOCK_SEARCH_OPTION_PREMIUM],this.config.translationOverrides={EMPTY_ROOT_VIEW_MESSAGE:"EMPTY_ROOT_VIEW_MESSAGE_XD",EMPTY_ROOT_VIEW_CTA:"EMPTY_ROOT_VIEW_CTA_XD"},this.config.reportSDMEvent=function(e){a.Z.reportSDMEvent(e)},this.config.requestPublish=nt(tt().mark((function e(){var t,r,n;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=6,r=1;case 2:if(!(r<=t)){e.next=22;break}return e.prev=3,e.next=6,a.Z.requestPublishStart();case 6:if(!(n=e.sent)){e.next=9;break}return e.abrupt("return",n);case 9:e.next=18;break;case 11:if(e.prev=11,e.t0=e.catch(3),r!==t){e.next=15;break}throw e.t0;case 15:return e.next=17,(0,M.gw)(Math.pow(14,r));case 17:return e.abrupt("continue",19);case 18:throw new Error("Request to publish failed due to a coeditor requesting to publish first");case 19:r++,e.next=2;break;case 22:case"end":return e.stop()}}),e,null,[[3,11]])}))),this.config.notifyPublishEnd=()=>a.Z.notifyPublishEnd(),this.config.isElementEditable=function(e){return e.library.isDocumentAssets&&[i.Z.COLOR_ELEMENT_TYPE,i.Z.GRADIENT_ELEMENT_TYPE,i.Z.COMPONENT_ELEMENT_TYPE,i.Z.CHARACTER_STYLE_ELEMENT_TYPE].includes(e.type)},this.config.disableDelete=function(e){const t=e.filter((e=>e.library.isDocumentAssets));return t.length&&!a.Z.canDeleteAssets(t)},this.config.handleDiscoverLibraries=()=>{const e=(0,u.LP)();Ve.ZP.reportOutgoingUrlEvent("Navigation","Root view","click","get-ui-kits",e)},this.config.shouldShowExtensionInSearch=e=>!!e.library.isDocumentAssets,this.config.customCollapseGroupWithModifierKey=(e,t)=>{if(!(a.Z.isWindowsOS()?e.ctrlKey:e.metaKey))return!1;const r=We.Z.panel.viewState,n=r.isGroupCollapsed(t.id);return Ye.GN(t.library).forEach((e=>{Ye.ez(e,{shouldCollapse:!n,expandNonMeaningfulChildren:!1}),r.setGroupCollapsed(e.id,!n)})),!0},this.config.disabledLibraryContextMenuActions=["export"],this.config.customGroupLearnMoreLink=i.Z.XD_GROUP_LEARN_MORE,this.init=function(){(0,Ke.T9)({DocumentAssetsContainer:$e.Z,DocumentGroup:qe.Z,DocumentElement:Xe.Z,DocumentRepresentation:Je}),o.Zh(i.Z.IMAGE_ELEMENT_TYPE,["application/vnd.adobe.element.agc+json","image/png","image/jpeg","image/jpg","image/svg+xml","application/illustrator"]),o.Zh(i.Z.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),o.Zh(i.Z.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),o.Zh(i.Z.CHARACTER_STYLE_ELEMENT_TYPE,["application/vnd.adobe.characterstyle+json"]),o.Zh(i.Z.GRADIENT_ELEMENT_TYPE,["application/vnd.adobe.gradient+json"]),a.Z.isXDFeatureFlagEnabled("newFileFormat")?o.Zh(i.Z.COMPONENT_ELEMENT_TYPE,["application/vnd.adobe.element.agc+json","application/vnd.adobe.xdcomponent+dcx","application/vnd.adobe.nxdcomponent+dcx"]):o.Zh(i.Z.COMPONENT_ELEMENT_TYPE,["application/vnd.adobe.element.agc+json","application/vnd.adobe.xdcomponent+dcx"]),o.Zh(i.Z.AUDIO_ELEMENT_TYPE,["audio/mpeg","audio/mpeg3","audio/mp3","audio/wav"]),o.Zh(i.Z.VIDEO_ELEMENT_TYPE,["video/mp4"]),this.startEventListener()},this.getDocumentAssetsContainer=()=>(0,Ke.GT)(a.Z.getDocumentAssetsContainer()),this.onSelectionChange=()=>{try{s.Z.handleSelectionChange()}catch(e){}},this.onElementDrop=e=>{try{e.items.forEach(function(){var e=nt(tt().mark((function e(t){var r,n,i,o;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t._parsedCCLibraryData,e.next=3,l.ZP.resolveElementReference(r.elementRef);case 3:(n=e.sent)||(i=l.ZP.getLibraryById(r.libraryId),n=i&&i.getElementById(r.elementId)),(o=n&&n.getPrimaryRepresentation())&&(0,m.vM)(o,"dragDrop");case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),a.Z._notifyEventListeners("dlElementDropped",{data:e})}catch(e){}},this.publishStateListenerDisposers=[],this.addPublishStateEventListener=function(e,t){this.publishStateListenerDisposers.push((0,n.reaction)((()=>l.ZP.publishStatus),(r=>r===e&&t())))},this.removeAllPublishStateEventListeners=function(){this.publishStateListenerDisposers.forEach((e=>e()))},this.isPublishingHandler=()=>{a.Z.dismissToastMessage((0,c.Iu)("PENDING_UPDATE_TOAST_MESSAGE"),(0,c.Iu)("PENDING_UPDATE_TOAST_ACTION_LABEL"))},this._upgradeOrUpdateToastAction=e=>{e?a.Z.handleUpgradeButtonClicked():(Ve.ZP.reportEvent("Publish","Toast","click","publish-now",{event:{count:l.ZP.publishedDocumentLibrary.getGroups().length}}),l.ZP.publish(l.ZP.documentAssetsContainer).catch((()=>{})))},this.onPendingUpdate=()=>{if(a.Z.isPreviewing()||!l.ZP.publishState.canPublish)return;const e=l.ZP.publishedDocumentLibrary;if(e&&e.isWritable&&!e.syncError){const e=l.ZP.isStarterPlanUser;a.Z.openApplicationToast(e?(0,c.Iu)("DL_UPGRADE_TOAST_MESSAGE"):(0,c.Iu)("PENDING_UPDATE_TOAST_MESSAGE"),{variant:"info",actionLabel:e?(0,c.Iu)("DL_UPGRADE_TOAST_LABEL"):(0,c.Iu)("PENDING_UPDATE_TOAST_ACTION_LABEL"),onAction:this._upgradeOrUpdateToastAction.bind(this,e)})}},this.addSubscriptionChangeListener=e=>{this.subscriptionListenerDisposer=(0,n.when)((()=>e&&!l.ZP.isStarterPlanUser),(()=>this.onPendingUpdate))},this.removeSubscriptionChangeListener=()=>{this.subscriptionListenerDisposer&&this.subscriptionListenerDisposer()},this.onInviteSent=(e,t)=>{if("inviteSent"===t){const t={event:{pagename:void 0,value:l.ZP.publishedDocumentLibrary&&l.ZP.publishedDocumentLibrary.assetId.includes(e)?"document-library":"library"}};Ve.ZP.reportEvent("Manager","Sharesheet","click","share",t)}},this._onSelectionStateChange=function(){const e=Qe.Z.selection,t=et.Z.groupSelection;a.Z.notifySelectionChange(e,t)},this._selectionStateListenerDisposers=[],this.addSelectionStateEventListener=function(e){this._selectionStateListenerDisposers.push((0,n.reaction)((()=>Qe.Z.selection),e))},this.removeAllSelectionStateEventListeners=function(){this._selectionStateListenerDisposers.forEach((e=>e()))},this.startEventListener=function(){a.Z.addSelectionListener(this.onSelectionChange),a.Z.addTextEditListener(this.onSelectionChange),a.Z.addDropEventListener(this.onElementDrop),this.addPublishStateEventListener(i.Z.DOCUMENT_LIBRARY_STATES.UNPUBLISHED_CHANGES,this.onPendingUpdate),this.addPublishStateEventListener(i.Z.DOCUMENT_LIBRARY_STATES.PUBLISHING,this.isPublishingHandler),a.Z.addInviteEventListener(this.onInviteSent),a.Z.addIsPaidUserListener(this.addSubscriptionChangeListener),this.addSelectionStateEventListener(this._onSelectionStateChange)},this.stopEventListener=function(){a.Z.removeSelectionListener(this.onSelectionChange),a.Z.removeTextEditListener(this.onSelectionChange),a.Z.removeDropEventListener(this.onElementDrop),this.removeAllPublishStateEventListeners(),a.Z.removeInviteEventListener(this.onInviteSent),a.Z.removeIsPaidUserListener(this.removeSubscriptionChangeListener),this.removeAllSelectionStateEventListeners()},this.getUserData=e=>e(),this.getAdditionalMenuItems=e=>{if(e.library.isDocumentAssets&&e.type!==i.Z.AUDIO_ELEMENT_TYPE)return[{label:"DL_HIGHLIGHT_ON_CANVAS",onClick:()=>{Ve.ZP.reportElementEvent("Element Operations","Element","click","highlight-on-canvas",e,{event:{value:"single",count:1},content:{category:"Right Click"}}),a.Z.highlightOnCanvas(e)}}]},this}},93443:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n,i=r(76485),o=r(50265);function a(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let s=(a((n=class{constructor(e){this._element=e;const t=this._element.getPrimaryRepresentation();this._data=t?t.getValue("missingfont","data"):void 0}get id(){return this._element.id}get fontFamily(){return this._data&&this._data.fontFamily?this._data.fontFamily:void 0}get fontStyle(){return this._data&&this._data.fontStyle?this._data.fontStyle:void 0}get replaceFontAllowed(){return i.Z.getAssetInstanceCount&&i.Z.getAssetInstanceCount(this._element,!0)>0}get numInstances(){return i.Z.getAssetInstanceCount&&i.Z.getAssetInstanceCount(this._element)}register(e){i.Z.registerElementNode&&i.Z.registerElementNode(this,e)}highlight(){i.Z.highlightOnCanvas&&i.Z.highlightOnCanvas(this._element)}replace(){i.Z.replaceFont&&i.Z.replaceFont(this._element)}}).prototype,"replaceFontAllowed",[o.computed],Object.getOwnPropertyDescriptor(n.prototype,"replaceFontAllowed"),n.prototype),a(n.prototype,"numInstances",[o.computed],Object.getOwnPropertyDescriptor(n.prototype,"numInstances"),n.prototype),n)},11437:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n,i,o,a=r(50265),s=r(69377),c=r(84824),l=r(6535),u=r(76485),d=r(46931);function p(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let h=(n=a.action.bound,i=a.action.bound,p((o=class extends l.Z{constructor(e){super({}),this.isWritable=!0,this._batchableOperations=["delete","reorder"],this._pendingOperations={},this._operationCount=0,this._xdOperationsInProgress=new Set,this._pendingChangeCallbacks=new Set,this._changeCount=0,this._library=e,this._changeAtom=new a.Atom("documentLibraryChange",(()=>this._isObserved=!0),(()=>this._isObserved=!1)),this._library._ccLibrariesEventListener&&this._library.removeChangeListener(this._library._ccLibrariesEventListener),this._library._ccLibrariesEventListener=this._onChange,this._library.addChangeListener(this._onChange);const t=u.Z.documentLibraryConstants;this._beginOperationEvents={[t.BEGIN_BULK_OPERATION]:"bulk",[t.RESTART_BULK_OPERATION_TO_RENDER]:"bulk",[t.LINKED_ELEMENTS_IMPORT_START]:"import"},this._endOperationEvents={[t.END_BULK_OPERATION]:"bulk",[t.EDIT_BATCH_FINISHED]:"bulk",[t.PAUSE_BULK_OPERATION_TO_RENDER]:"bulk",[t.LINKED_ELEMENTS_IMPORT_END]:"import"},this._ignoreEvents=[t.ASSETS_PANEL_DISMISS_EDITOR,t.ASSETS_PANEL_DISMISS_MISSING_FONTS_EDITOR],this._bulkOperationLabels={GROUP_TOGETHER:(0,c.Iu)("DL_NEW_GROUP"),REORDER:(0,c.Iu)("DL_REORDER"),UNGROUP:(0,c.Iu)("DL_UNGROUP_NESTED_GROUPS")}}on(e,t){var r,n;null===(r=(n=this._library).on)||void 0===r||r.call(n,e,t)}off(e,t){var r,n;null===(r=(n=this._library).off)||void 0===r||r.call(n,e,t)}get changeCount(){return this._changeAtom.reportObserved(),this._changeCount}get linkedLibraryId(){if(this._changeAtom.reportObserved(),u.Z.getLinkedLibraryIdFromDocument)return u.Z.getLinkedLibraryIdFromDocument()}_reportChanged(){this._changeCount++,this._changeAtom.reportChanged(),(0,s.zA)(this._library),(0,s.Ir)(this._library)}_scheduleChangeCallback(e){this._xdOperationsInProgress.size>0?this._pendingChangeCallbacks.add(e):e()}_onChange(e,t){if(this._beginOperationEvents[e])this._xdOperationsInProgress.add(this._beginOperationEvents[e]);else if(this._endOperationEvents[e])this._xdOperationsInProgress.delete(this._endOperationEvents[e]);else if(!this._ignoreEvents.includes(e)){if(t){const i=this._getChangedItemById(t,e);i&&i._onChange(e);const o=u.Z.documentLibraryConstants;if([o.GROUP_REMOVED_EVENT,o.ELEMENT_REMOVED_EVENT].includes(e)){var r,n;const e=d.Z.panel.viewManager;(null===(r=e.renamingItem)||void 0===r?void 0:r.id)===t&&e.stopRename(),(null===(n=e.editPathGroup)||void 0===n?void 0:n.id)===t&&e.stopEditPath()}}this._isObserved&&this._scheduleChangeCallback(this._reportChanged)}if(0===this._xdOperationsInProgress.size&&this._pendingChangeCallbacks.size>0){const e=[...this._pendingChangeCallbacks];this._pendingChangeCallbacks.clear(),e.forEach((e=>e()))}}getFilteredElements(e){return this._changeAtom.reportObserved(),this.elements.filter(e)}get id(){return this._library.documentId}get elements(){return this._changeAtom.reportObserved(),this._library.elements.map((e=>(0,s.gh)(e)))}get elementCount(){return this._changeAtom.reportObserved(),this._library.elements.length}get pathViewMaxDepth(){return 1}_getChangedItemById(e,t){const r=u.Z.documentLibraryConstants,n={[r.ELEMENT_CHANGED_EVENT]:this.getElementById,[r.GROUP_CHANGED_EVENT]:this.getGroupById};return n[t]?n[t].call(this,e):this.getElementById(e)}getElementById(e){return this._changeAtom.reportObserved(),(0,s.gh)(this._library.getElementById(e))}removeGroup(e,t=!1){this._pendingOperations.reorder?(this._pendingOperations.reorder.push({type:"removeGroup",data:{group:e,includeContents:t}}),this._currentBulkOperationLabel=this._bulkOperationLabels.UNGROUP):(u.Z.deleteGroup(e._group,t),(0,s.pQ)(e))}getGroups(){return this._changeAtom.reportObserved(),this._library.getGroups().map((e=>(0,s.M5)(e)))}getGroupById(e){this._changeAtom.reportObserved();const t=this._library.getGroups().find((t=>t.id===e));if(t)return(0,s.M5)(t)}getGroupCount(){return this._library.getGroups().length}updateLinkedAssets(){u.Z.updateAndAddAllLinkedAssets(this.elements.filter((e=>e.isPendingUpdate||e.newLinkedElementRef)))}get newLinkedAssetsExist(){return this._changeAtom.reportObserved(),this._library.hasPendingLinkedElementsToAdd()}get missingLinks(){return this.elements.filter((e=>e.isMissingLink||e.isDeprecatedLegacyDocumentLink))}get resolvableMissingLinks(){return this.missingLinks.filter((e=>e.isPendingInvite||e.isPendingFollow||e.isDeprecatedLegacyDocumentLink))}removeElement(e){this._pendingOperations.delete?this._pendingOperations.delete.push(e):(u.Z.deleteAssets([e]),(0,s._x)(e))}_getOrderInGroup(e,t){return u.Z.getOrderInGroup(e,t)}_setGroupParent(e,t){this._pendingOperations.reorder?this._pendingOperations.reorder.push({type:"groupParent",data:{group:e,parent:t}}):u.Z.reparentGroup(e,t)}_setGroupOrder(e,t){this._pendingOperations.reorder?this._pendingOperations.reorder.push({type:"groupOrder",data:{group:e,order:t}}):u.Z.reorderGroup(e,t)}_setElementOrder(e,t,r){this._pendingOperations.reorder?this._pendingOperations.reorder.push({type:"elementOrder",data:{asset:e,group:t,order:r}}):u.Z.setOrderInGroup(e,t,r)}_createGroupChild(e,t,r){return this._pendingOperations.reorder&&!this._reorderOpInProgress&&(u.Z.beginOperation(this._bulkOperationLabels.GROUP_TOGETHER),this._pendingOperations.reorder.push({type:"createGroup",data:{}}),this._reorderOpInProgress=!0),u.Z.createGroup(e,t,r)}beginOperation(){this._operationCount++,this._batchableOperations.forEach((e=>{this._pendingOperations[e]=this._pendingOperations[e]||[]}))}endOperation(){if(--this._operationCount>0)return;const e=this._currentBulkOperationLabel||this._bulkOperationLabels.REORDER;this._batchableOperations.forEach((t=>{const r=this._pendingOperations[t];if(r&&r.length)switch(t){case"delete":u.Z.deleteAssets(r),r.forEach(s._x);break;case"reorder":this._reorderOpInProgress||u.Z.beginOperation(e),r.forEach((({type:e,data:t})=>{switch(e){case"elementOrder":u.Z.setOrderInGroup(t.asset,t.group,t.order);break;case"groupOrder":u.Z.reorderGroup(t.group,t.order);break;case"groupParent":u.Z.reparentGroup(t.group,t.parent);break;case"removeGroup":u.Z.deleteGroup(t.group._group,t.includeContents),(0,s.pQ)(t.group)}})),u.Z.endOperation(),this._reorderOpInProgress=!1,this._currentBulkOperationLabel=null}})),this._pendingOperations={}}get publishableGroupCount(){return this._library.getGroups().reduce(((e,t)=>{const r=!!t.options,n=!t.children.length&&this._library.elements.every((e=>e.getGroups()[0]!==t));return r&&n&&!t.parent?e:e+1}),0)}}).prototype,"_reportChanged",[n],Object.getOwnPropertyDescriptor(o.prototype,"_reportChanged"),o.prototype),p(o.prototype,"_onChange",[i],Object.getOwnPropertyDescriptor(o.prototype,"_onChange"),o.prototype),p(o.prototype,"missingLinks",[a.computed],Object.getOwnPropertyDescriptor(o.prototype,"missingLinks"),o.prototype),p(o.prototype,"resolvableMissingLinks",[a.computed],Object.getOwnPropertyDescriptor(o.prototype,"resolvableMissingLinks"),o.prototype),o)},27299:(e,t,r)=>{"use strict";r.d(t,{Z:()=>g});var n,i,o,a=r(50265),s=r(69377),c=r(99386),l=r(80091),u=r(76485),d=r(87694),p=r(44914),h=r(46931);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function m(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let g=(n=a.action.bound,i=a.action.bound,m((o=class extends l.Z{constructor(e){super({},(0,s.GT)(e.library)),this._element=e,this._changeAtom=new a.Atom("documentElementChange",(()=>this._isObserved=!0),(()=>this._isObserved=!1)),this._renditionProviders={}}get id(){return this._element.id}get modified(){return this._changeAtom.reportObserved(),this._element.modified}get created(){return this._changeAtom.reportObserved(),this._element.created}_reportChanged(){this._changeAtom.reportChanged(),(0,s.kN)(this._element)}_onChange(e){if(e===u.Z.documentLibraryConstants.REPRESENTATION_CHANGED_EVENT)for(const e in this._renditionProviders){const t=this._renditionProviders[e];t.isActive?t.updateRendition():t.needsUpdate=!0}this._isObserved&&this.library._scheduleChangeCallback(this._reportChanged)}get library(){return(0,s.GT)(this._element.library)}get name(){return this._changeAtom.reportObserved(),this._element.name||this._element.defaultName}set name(e){u.Z.renameAsset(this,e&&e.normalize())}get isAutoNamed(){return this._changeAtom.reportObserved(),!this.name}get type(){return this._changeAtom.reportObserved(),this._element.type}get dependencies(){return this._changeAtom.reportObserved(),[]}getGroups(){return this._changeAtom.reportObserved(),this._element.getGroups().map((e=>(0,s.M5)(e)))}getOrderInGroup(e){return this._changeAtom.reportObserved(),this.library._getOrderInGroup(this,e)}setOrderInGroup(e,t){this.library._setElementOrder(this,e,t)}get disableRename(){return this._changeAtom.reportObserved(),!this._element.canRename}get canRelinkToDocument(){return this._changeAtom.reportObserved(),!!this.isMissingLegacyDocumentLink&&this.hasPermissionToRelink&&!u.Z.isLegacyDocumentLinkDeprecated()}get canRelinkToLibrary(){return this._changeAtom.reportObserved(),!(!this.isMissingElement&&!this.isMissingLibrary||!this.cachedLinkedElementSourceRefString&&!(0,d.lJ)(this))}get hasPermissionToRelink(){return this.isLegacyCloudDocumentLink?u.Z.canSaveDocToCloud:this.isLegacyDocumentLink}get linkReference(){return this._changeAtom.reportObserved(),this._element.linkedElementRefObj||this._element.linkedElementRef}get isLinked(){return!!this.linkReference}get isLegacyCCLibrariesLink(){return this.isLinked&&(0,p.t5)(this.linkReference)===c.Z.XD_ASSET_LINK_REFERENCE_TYPES.LEGACY_CCLIBRARIES_ELEMENT}get isLegacyDocumentLink(){if(!this.isLinked)return!1;const e=(0,p.t5)(this.linkReference);return e===c.Z.XD_ASSET_LINK_REFERENCE_TYPES.LEGACY_DOCUMENT_ASSET||e===c.Z.XD_ASSET_LINK_REFERENCE_TYPES.LEGACY_CLOUD_DOCUMENT_ASSET}get isLegacyCloudDocumentLink(){return this.isLinked&&(0,p.t5)(this.linkReference)===c.Z.XD_ASSET_LINK_REFERENCE_TYPES.LEGACY_CLOUD_DOCUMENT_ASSET}get isDeprecatedLegacyDocumentLink(){return this.isLegacyDocumentLink&&u.Z.isLegacyDocumentLinkDeprecated()}get linkedDocumentName(){return this._changeAtom.reportObserved(),this._element.linkedElementFileName}get cachedLinkedLibraryName(){var e,t;if(this._changeAtom.reportObserved(),!this.isLegacyCloudDocumentLink)return null!==(e=null===(t=this.linkReference)||void 0===t?void 0:t["repo:name"])&&void 0!==e?e:this._element.linkedElementFileName}get cachedLinkedElementInstanceId(){var e;return null===(e=this.linkReference)||void 0===e?void 0:e["stRef:fromPartInstanceID"]}get cachedLinkedElementName(){var e;return null===(e=this.linkReference)||void 0===e?void 0:e["stRef:fromPartName"]}get cachedLinkedLibraryAssetId(){var e;return null===(e=this.linkReference)||void 0===e?void 0:e["repo:assetId"]}get cachedLinkedLibraryId(){var e;return null===(e=this.linkReference)||void 0===e?void 0:e["stRef:documentID"]}get cachedLinkedElementSourceRef(){return this._changeAtom.reportObserved(),(0,p.ds)(this)}get cachedLinkedElementSourceRefString(){const e=this.cachedLinkedElementSourceRef;if(e)return JSON.stringify(e,Object.keys(e).sort())}get linkState(){return this._changeAtom.reportObserved(),this.isLegacyDocumentLink?this._documentLinkState:this._elementLinkState}get linkType(){return this.isLinked?c.Z.LIBRARY_TYPE:void 0}get _documentLinkState(){if(this._changeAtom.reportObserved(),this.isLinked&&this.isLegacyDocumentLink)return this._element.isLinkMissingFile?c.Z.ASSET_LINK_STATES.FILE_MISSING:this._element.isLinkBroken?c.Z.ASSET_LINK_STATES.BROKEN:this._element.doesLinkNeedUpdate?c.Z.ASSET_LINK_STATES.PENDING_UPDATE:c.Z.ASSET_LINK_STATES.NORMAL}get _elementLinkState(){if(this._changeAtom.reportObserved(),!this.isLinked||this.isLegacyDocumentLink)return;if(!h.Z.libraryManager.loaded||this._isLinkStatusLoading)return c.Z.ASSET_LINK_STATES.SYNCING;if(!this.linkedLibrary){if(this.cachedLinkedLibraryAssetId){if(h.Z.libraryManager.invitationsData.has(this.cachedLinkedLibraryAssetId))return c.Z.ASSET_LINK_STATES.PENDING_INVITE;if(h.Z.libraryManager.teamLibrariesData.get(this.cachedLinkedLibraryAssetId))return c.Z.ASSET_LINK_STATES.NEED_TO_FOLLOW}return c.Z.ASSET_LINK_STATES.MISSING_LIBRARY}if(!this.linkedElement)return this.newLinkedElementRef?c.Z.ASSET_LINK_STATES.PENDING_UPDATE:c.Z.ASSET_LINK_STATES.MISSING_ELEMENT;let e,t;return this.isLegacyCCLibrariesLink?(e=this.linkedElement.modified!==this._element.linkedElementLastModified,t=this.linkedElement.name!==this._element.name):(e=this.linkedElement.instanceId!==this.cachedLinkedElementInstanceId,t=this.linkedElement.name!==this.cachedLinkedElementName),e||t?"downloading"===this.linkedLibrary.syncState?c.Z.ASSET_LINK_STATES.SYNCING:c.Z.ASSET_LINK_STATES.PENDING_UPDATE:c.Z.ASSET_LINK_STATES.NORMAL}get isNormalLinkState(){return this.linkState===c.Z.ASSET_LINK_STATES.NORMAL}get isPendingUpdate(){return this.linkState===c.Z.ASSET_LINK_STATES.PENDING_UPDATE}get isSyncing(){return this.linkState===c.Z.ASSET_LINK_STATES.SYNCING}get isMissingLink(){return this.isLegacyDocumentLink?this.isBrokenLegacyDocumentLink||this.isMissingLegacyDocumentLink:this.isMissingElement||this.isMissingLibraryLink}get isMissingLibraryLink(){return this.isMissingLibrary||this.isPendingFollow||this.isPendingInvite}get isMissingLibrary(){return this.linkState===c.Z.ASSET_LINK_STATES.MISSING_LIBRARY}get isMissingElement(){return this.linkState===c.Z.ASSET_LINK_STATES.MISSING_ELEMENT}get isPendingFollow(){return this.linkState===c.Z.ASSET_LINK_STATES.NEED_TO_FOLLOW}get isPendingInvite(){return this.linkState===c.Z.ASSET_LINK_STATES.PENDING_INVITE}get isMissingLegacyDocumentLink(){return this.linkState===c.Z.ASSET_LINK_STATES.FILE_MISSING}get isBrokenLegacyDocumentLink(){return this.linkState===c.Z.ASSET_LINK_STATES.BROKEN}get _isLinkStatusLoading(){return[this.linkedElement,this.linkedLibrary].includes(void 0)}get linkedLibrary(){if(this.isLinked&&!this.isLegacyDocumentLink)return h.Z.libraryManager.resolveCachedElementReferenceToLibrary(this.linkReference)}get linkedElement(){if(this.isLinked&&!this.isLegacyDocumentLink)return h.Z.libraryManager.resolveCachedElementReference(this.linkReference)}get linkedAsset(){if(this.linkedElement)return{name:this.linkedElement.name,modified:new Date(this.linkedElement.modified)}}get newLinkedElementRef(){if(this._changeAtom.reportObserved(),this._newLinkedElementRef)return this._newLinkedElementRef;if(this.linkedLibrary&&!this.linkedElement&&this.cachedLinkedElementSourceRefString){const e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),1!==o.length);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e)||function(e,t){if(e){if("string"==typeof e)return f(e,1);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,1):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.linkedLibrary.getFilteredElements((e=>(0,p.LR)(e)===(0,p.UI)(this))))[0];return e&&e.getReference()}}set newLinkedElementRef(e){this._changeAtom.reportChanged(),this._newLinkedElementRef=e}relinkToDocument(){u.Z.relinkAssetsToDocument(this)}getRenditionProvider(e,t){const r=`${e}-${t}`;let n=this._renditionProviders[r];if(!n){n=u.Z.renditionService.createSymbolRenditionProvider(this.id,e,t,u.Z.colorProfile,new Uint8Array(u.Z.screenColorProfile));const i=n.cancel.bind(n);n.cancel=()=>{n.isActive=!1,i()},this._renditionProviders[r]=n}return(n.needsUpdate||n.isCanceled)&&(n.updateRendition(),n.needsUpdate=!1),n.isActive=!0,n}get representations(){return this._changeAtom.reportObserved(),this._element.representations.map((e=>(0,s.Ar)(e)))}getPrimaryRepresentation(){return this._changeAtom.reportObserved(),(0,s.Ar)(this._element.getPrimaryRepresentation())}get instanceId(){return this.modified}getReference(){const e={"dc:format":u.Z.documentType,"repo:name":this.library.name,"repo:assetId":u.Z.cloudAssetId,"stRef:documentID":this.library.id,"stRef:fromPart":`id=${this.id}`,"stRef:fromPartName":this.name,"stRef:manager":"Adobe Cloud"};return this.instanceId&&(e["stRef:fromPartInstanceID"]=this.instanceId),this.linkedElement&&(e["stRef:fromPartDerivedFrom"]=this.linkedElement.getReference()),e}getReferenceString(){const e=this.getReference();return JSON.stringify(e,Object.keys(e).sort())}getLegacyReference(){return`${u.Z.cloudAssetId}#id=${this.id}`}getCachedThumbnailPath(){}getThumbnailPath(){return this._element.getThumbnailPath?(this._changeAtom.reportObserved(),this._element.getThumbnailPath()):Promise.reject()}getThumbnailContent(){return Promise.reject()}getActions(e){return this.isLinked?"editInSource"===e&&this.isLegacyDocumentLink?[{id:"editInSource",installedVersions:["0.0"],isCompatibleVersionInstalled:!0,invoke:()=>{u.Z.editInSource(this)}}]:this.linkedElement?this.linkedElement.getActions(e):void 0:[]}}).prototype,"_reportChanged",[n],Object.getOwnPropertyDescriptor(o.prototype,"_reportChanged"),o.prototype),m(o.prototype,"_onChange",[i],Object.getOwnPropertyDescriptor(o.prototype,"_onChange"),o.prototype),m(o.prototype,"canRelinkToLibrary",[a.computed],Object.getOwnPropertyDescriptor(o.prototype,"canRelinkToLibrary"),o.prototype),m(o.prototype,"cachedLinkedElementSourceRefString",[a.computed],Object.getOwnPropertyDescriptor(o.prototype,"cachedLinkedElementSourceRefString"),o.prototype),m(o.prototype,"linkedLibrary",[a.computed],Object.getOwnPropertyDescriptor(o.prototype,"linkedLibrary"),o.prototype),m(o.prototype,"linkedElement",[a.computed],Object.getOwnPropertyDescriptor(o.prototype,"linkedElement"),o.prototype),m(o.prototype,"linkedAsset",[a.computed],Object.getOwnPropertyDescriptor(o.prototype,"linkedAsset"),o.prototype),m(o.prototype,"newLinkedElementRef",[a.computed],Object.getOwnPropertyDescriptor(o.prototype,"newLinkedElementRef"),o.prototype),o)},75623:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(50265),i=r(69377),o=r(68169),a=r(76485);class s extends o.Z{constructor(e){super(e),this._changeAtom=new n.Atom("groupChange",(()=>!this._group.isDeletedLocally&&this._group.addChangeListener(this._onChange)),(()=>this._group.removeChangeListener(this._onChange)))}get library(){return(0,i.GT)(this._group.library)}get isAppControlled(){return this._changeAtom.reportObserved(),!!this._group.options}get disableDraggingFromOutside(){return this._changeAtom.reportObserved(),!!this._group.options&&!!this._group.options.disableDraggingFromOutside}get disableEditing(){return this._changeAtom.reportObserved(),!!this._group.options&&!!this._group.options.disableEditing}get hideDefaultTextInEmptyGroup(){return this._changeAtom.reportObserved(),!!this._group.options&&!!this._group.options.hideDefaultTextInEmptyGroup}get excludeFromChildPaths(){return this._changeAtom.reportObserved(),!!this._group.options&&this._group.options.excludeFromChildPaths||!0}get hideWhenEmpty(){return this._changeAtom.reportObserved(),!!this._group.options&&!!this._group.options.hideWhenEmpty}get nameLocalizationKey(){return this._changeAtom.reportObserved(),!!this._group.options&&this._group.options.nameLocalizationKey}get displayAddButton(){return this._changeAtom.reportObserved(),!!this._group.options&&!!this._group.options.displayAddButton}get isAddButtonActive(){return this._changeAtom.reportObserved(),!!this._group.options&&!!this._group.options.isAddButtonActive}get addButtonTooltip(){return this._changeAtom.reportObserved(),this._group.options?this._group.options.addButtonTooltip:void 0}addButtonAction(){this._group.options&&this._group.options.addButtonAction&&this._group.options.addButtonAction()}addChangeListener(e){this._group.addChangeListener(e)}removeChangeListener(e){this._group.removeChangeListener(e)}getReference(){return{"dc:format":a.Z.documentType,"repo:name":this.library.name,"repo:assetId":a.Z.cloudAssetId,"stRef:documentID":this.library.id,"stRef:fromPart":`id=${this.id}`,"stRef:fromPartName":this.name,"stRef:manager":"Adobe Cloud"}}get name(){return this._changeAtom.reportObserved(),this._group.name}set name(e){a.Z.renameGroup(this._group,e)}get parent(){return this._changeAtom.reportObserved(),(0,i.M5)(this._group.parent)}set parent(e){e&&this.library._setGroupParent(this._group,e._group)}get children(){return this._changeAtom.reportObserved(),this._group.children.map((e=>(0,i.M5)(e)))}set order(e){this.library._setGroupOrder(this._group,e)}get order(){return this._changeAtom.reportObserved(),String(this._group.order)}createChild(e,t){return(0,i.M5)(this.library._createGroupChild(e,t,this._group))}getFilteredChildren(e){if(this._changeAtom.reportObserved(),!this._group.children)return[];const t=[];return this._group.children.forEach((r=>{e(r)&&t.push((0,i.M5)(r))})),t}}},20120:(e,t,r)=>{"use strict";r.d(t,{Ed:()=>d,Ol:()=>u,Qw:()=>p,b6:()=>l,ex:()=>s,pE:()=>h});var n=r(76485),i=r(74379),o=r(23664),a=r(61344);function s(e,t,r){(r=r||n.Z.getSelection()).forEach((r=>{c(r,e,t)}))}function c(e,t,r={}){n.Z.editContextModel.context!==n.Z.getContextForNode(e)&&n.Z.isInsideRepeatGridOrSymbolGroup(e)&&n.Z.editContextModel.enterContextForNode(e),t(e)||(e=>!r.skipChildren&&e.children&&e.children.length>0&&(!!r.visitNonEditable||n.Z.containerTypeAllowsEditingContents(e)))(e)&&e.children.forEach((e=>{c(e,t)}))}function l(e){const t={mode:"RGB",type:"process",value:{r:e.r,g:e.g,b:e.b}};return void 0!==e.a&&(t.alpha=e.a/255),t}function u(e,t){const r=(0,i._b)(e||(0,i.lP)(t)),o={r:r.red,g:r.green,b:r.blue};return void 0!==r.alpha&&(o.a=Math.round(255*r.alpha)),new n.Z.Color(o)}function d(e,t){return(e instanceof n.Z.LinearGradient?new o.Z(e):new a.Z(e,t)).serializeForLibrary()}function p(e){const t={nodeOrStyleRange:e};if(e.fill&&(t.color=[l(e.fill)]),e.fontColor&&(t.color=[l(e.fontColor)]),e.lineSpacing&&(t.lineHeight={value:e.lineSpacing,type:"pt"}),e.paragraphSpacing&&(t.paragraphSpacing={value:e.paragraphSpacing,type:"pt"}),void 0!==e.charSpacing&&null!==e.charSpacing&&(t.adbeTracking=e.charSpacing),e.fontSize&&(t.fontSize={type:"pt",value:e.fontSize}),e.fontFamily&&(t.fontFamily=e.fontFamily),e.postscriptName){const r=e.postscriptName,n=e.fontFamily,i=e.fontStyle,o=n&&n+(i?` ${i}`:"");t.adbeFont={postScriptName:r,family:n,style:i,name:o}}return e.fontStyle&&("Bold"===e.fontStyle&&(t.fontWeight="bold"),t.fontStyle=e.fontStyle),"superscript"===e.textScript&&(t.fontFeatureSettings=t.fontFeatureSettings||[],t.fontFeatureSettings.push("sups")),"subscript"===e.textScript&&(t.fontFeatureSettings=t.fontFeatureSettings||[],t.fontFeatureSettings.push("subs")),"uppercase"===e.textTransform?t.fontFeatureSettingsObject={adbeCapitalization:"FontCapsOption.ALLCAPS"}:"titlecase"===e.textTransform?t.textTransform="titlecase":"lowercase"===e.textTransform&&(t.textTransform="lowercase"),e.underline&&(t.textDecoration=t.textDecoration||[],t.textDecoration.push("underline")),e.strikethrough&&(t.textDecoration=t.textDecoration||[],t.textDecoration.push("line-through")),t}function h(){return!1}},82490:(e,t,r)=>{"use strict";r.d(t,{D3:()=>M,dC:()=>R,fK:()=>j,is:()=>N,jP:()=>k,qh:()=>L});var n=r(76485),i=r(26964),o=r(34038),a=r(31870),s=r(62061),c=r(74379),l=r(20120),u=r(2315),d=r(84824),p=r(47320),h=r(99386),f=r(23664),m=r(61344),g=r(46903),v=r(16203);const y=e=>e&&"application/illustrator"===e.type,b=e=>e&&e.type===h.Z.AGC_REPRESENTATION_TYPE;function _(){const e=(0,d.Iu)("DL_OFFICE_IMAGE_APPLY_GENERIC_ERROR");u.Z.openToast("message",{message:e})}function E(e,t){const r=new n.Z.Group;return r.linkVectorGraphic(t.getReference(),void 0,void 0,e,t.name),r}function w(e,t){return e.fill=e.fill.cloneWithOverrides({linkedElementRef:t.getReference()}),e}function x(e,t){const r=e.getPrimaryRepresentation();if(y(r))return O(r,t);if(b(r))return S(r,t,h.Z.IMAGE_ELEMENT_TYPE);const i=e.representations.find((e=>o.kJ(e.type)));return i?i.getContentPath().then((r=>n.Z.SVGToNode(r).then((r=>((r=t?E(r,e):r).name=e.name,r))))):Promise.reject("no vector representation found")}function L(e,t,r=!0){const i=e.getPrimaryRepresentation();return y(i)?function(e,t,r=!0){if(r){const r=n.Z.getSizeforFile(e.getCachedContentPath()||"",n.Z.BitmapFill.create());return P(e.element,t,O(e,t),r).then((r=>((0,g.vM)(e,"placeAsset",t),r)))}return O(e,t).then((r=>((0,g.vM)(e,"placeAsset",t),n.Z.addToCanvas(r),r))).catch((()=>C(e.element,t)))}(i,t,r):b(i)?T(i,t,h.Z.IMAGE_ELEMENT_TYPE):x(e,t).then((r=>{const i=e.representations.find((e=>o.kJ(e.type)));return(0,g.vM)(i,"placeAsset",t),n.Z.addToCanvas(r),r}),(()=>C(e,t)))}function O(e,t){return e.getContentPath().then((r=>n.Z.AIToNode(r).then((r=>((r=t?E(r,e.element):r).name=e.element.name,r)))))}function S(e,t,r){return e?e.getContent().then((e=>e.text())).then((i=>n.Z.parseAGCForImport(i,r===h.Z.COMPONENT_ELEMENT_TYPE).then((r=>{const i=r.node.fill&&r.node.fill instanceof n.Z.BitmapFill,o=t?(i?w:E)(r.node,e.element):r.node;return o.name=e.element.name,{node:o,metadata:r.metadata}})))):Promise.reject("Element has no AGC representation")}function T(e,t,r){return S(e,t,r).then((r=>((0,g.vM)(e,"placeAsset",t),n.Z.addToCanvas(r.node,!1,void 0,r.metadata),r.node))).catch((r=>(i.Z.log(`Failed to create AGC Node from representation: ${r}`),function(e,t){return function(e,t){const r=e.getCachedThumbnailPath("vector");return(r?Promise.resolve(r):e.getThumbnailPath("vector")).then((r=>n.Z.SVGToNode(r).then((r=>(r.name=e.name,t?E(r,e):r)))))}(e,t).then((r=>((0,g.vM)(p.Z.findUsableRepresentation(e),"placeAsset",t),n.Z.addToCanvas(r),r)))}(e.element,t).catch((()=>C(e.element,t))))))}function P(e,t,r,i,o){const a=function(e,t,r){const i=new n.Z.Group,o=w(I(e.getCachedThumbnailPath(p.Z.getThumbnailSize(e))||"",r),e);return o.locked=!0,i.linkVectorGraphic(e.getReference(),void 0,void 0,o,e.name),i.linkedContentReadyState=n.Z.Group.LINKED_CONTENT_LOADING,i.linkedElementWillUnlinkOnLoad=!t,n.Z.assignBlurToNode(o),i}(e,t,i);return n.Z.addToCanvas(a,!0,o),r.then((t=>(t.name=e.name,n.Z.swapNodes(a,t),n.Z.setSelection(t),t))).catch((()=>(a.remove(),C(e,t))))}function I(e,t){const r=n.Z.BitmapFill.create();r.loadFromURL(e);const i=t||n.Z.getSizeforFile(e,r),o=i.width,a=i.height,s=new n.Z.Rectangle;return s.width=o||h.Z.IMAGE_THUMBNAIL_SIZE,s.height=a||h.Z.IMAGE_THUMBNAIL_SIZE,s.fill=r,s}function A(e,t,r){let n=I(e);return n=r?w(n,t):n,n.name=t.name,Promise.resolve(n)}function C(e,t){return a.Jw(e)&&!a.kv(e)?(_(),Promise.reject("Cannot place Full Size Thumbnail for Unlicensed Stock Images")):e.getThumbnailPath().then((r=>A(r,e,t).then((r=>((0,g.dN)(e,"placeAsset",t),n.Z.addToCanvas(r),r))))).catch((()=>{_()}))}function k(e,t){const r=p.Z.findUsableRepresentation(e);return r?r.getContentPath().then((i=>A(i,e,t).then((e=>((0,g.vM)(r,"placeAsset",t),n.Z.addToCanvas(e),e))))):C(e,t)}function D(e,t){const r=e.getPrimaryRepresentation();return r?r.getContentPath().then((r=>A(r,e,t))):Promise.reject("cannot create stock preview - no primary representation")}function N(e,t,r,n){const i=!0,o=(0,g.NR)(e)?x:D,a=t.then((t=>o(t,i).then((t=>((0,g.vM)(e.getPrimaryRepresentation(),"placeAsset",i),t)))));return P(e,i,a,r,n)}function R(e,t,r,a,s,c){let l,u,d,f,m,v;const y=[],b=n.Z.isXDFeatureFlagEnabled("newFileFormat"),_=b?".nxd":".agc",E=c?n.Z.serializeCanonicalComponent(t.symbolId,`${o.Rl()}`+_):n.Z.nodeGuidsToAGC(t.guids,`${o.Rl()}`+_),w=c?n.Z.canonicalComponentToSVG(t.symbolId,`${o.Rl()}.svg`).catch((()=>{})):n.Z.nodeGuidsToSVG(t.guids,`${o.Rl()}.svg`),x=c?n.Z.canonicalComponentToPNG(t.symbolId,`${o.Rl()}.png`):n.Z.nodeGuidsToPNG(t.guids,`${o.Rl()}.png`);return s?(s.beginOperation(),s.name=t.name,l=s):l=(0,g.MN)(r,t.name,e,{opType:a}),Promise.all([E,w,x]).then((e=>{const r=[];u=e[0].dependentAssetIds,f=e[0].filePath,d=e[0].imageData,m=e[1],v=e[2],s&&s.removeAllRepresentations();const i=(e,t)=>e.setContentFromPath(t),o=(e,t)=>e.setContentFromPath(t,!0).catch((()=>i(e,t))),a=c&&(b||n.Z.isXDFeatureFlagEnabled("ccLibrariesGraphicsInComponent")),g=l.createRepresentation((e=>e?e&&b?n.Z.documentLibraryConstants.NXD_COMPONENT_CONTAINER_TYPE:n.Z.documentLibraryConstants.XD_COMPONENT_CONTAINER_TYPE:h.Z.AGC_REPRESENTATION_TYPE)(a),"primary");c&&t.symbolId&&g.setValue("xd","data",{symbolId:t.symbolId});let _=g;if(a){_=b?g.createChild(h.Z.NXD_REPRESENTATION_TYPE):g.createChild(h.Z.AGC_REPRESENTATION_TYPE);const e=e=>{if(!e.imagePath)return Promise.resolve();const t=g.createChild(e.mimeType);t.setValue("xd","uid",e.uid);const r=e.moveFile?o:i;return e.moveFile&&y.push(e.imagePath),r(t,e.imagePath)};r.push(...d.map(e))}const E=o(_,f);if(r.push(E),m){const e=l.createRepresentation("image/svg+xml","rendition"),t=o(e,m);r.push(t)}const w=l.createRepresentation("image/png","rendition");w.isPreferredThumbnail=!0;const x=w.setContentFromPath(v);r.push(x);const L=p.Z.getThumbnailSize(l);return r.push(l.setThumbnailCache(L,v).catch((()=>{}))),Promise.all(r)})).then((()=>({element:l,dependentAssetIds:u}))).catch((e=>(i.Z.log(e),l&&!s&&(r.removeElement(l,!0),l=null),Promise.reject(e)))).finally((()=>{l&&l.endOperation().then((()=>{v&&n.Z.deleteFile(v),f&&n.Z.deleteFile(f),m&&n.Z.deleteFile(m),y.forEach((e=>{n.Z.deleteFile(e)}))}))}))}function M(e){if(e.type===h.Z.COLOR_ELEMENT_TYPE)return(0,l.Ol)(void 0,e);if(e.type===h.Z.GRADIENT_ELEMENT_TYPE){const t=p.Z.findUsableRepresentation(e).getValue(h.Z.GRADIENT_NAMESPACE,h.Z.GRADIENT_DATA_KEY);let r=t.stops,i=t.opacities,o=t.type;r=(0,c.dF)(r,i);const a=[];r.forEach((e=>{const t=e.color.find((e=>"RGB"===e.mode)).value,r={r:t.r,g:t.g,b:t.b};a.push({stop:e.offset,color:new n.Z.Color(r,e.opacity)})}));const s="linear"===o?new f.Z:new m.Z;return s.setColorStops(a),s._xdGradient}}function j(e){const t=e=>null!=e,r=p.Z.findUsableRepresentation(e),n=r&&r.getValue("characterstyle","data");if(!n)return;const i={},o=n.color?(0,l.Ol)(n.color):null;o&&(i.fontColor=o);const a=n.adbeFont&&n.adbeFont.style||n.fontStyle||n.fontWeight;i.fontStyle=!!a&&a.charAt(0).toUpperCase()+a.slice(1);const c=n.fontFamily||n.adbeFont&&n.adbeFont.family;let u,d;c&&(i.fontFamily=c);const h=n.textDecorationObject;h&&(u=h.adbeUnderline,d=h.adbeStrikethrough),u=u||n.adbePhxsUnderline||n.textDecoration&&Array.isArray(n.textDecoration)&&n.textDecoration.includes("underline"),i.underline=!!u,d=d||n.adbePhxsStrikethru||n.textDecoration&&Array.isArray(n.textDecoration)&&n.textDecoration.includes("line-through"),i.strikethrough=!!d;const f=n.adbeFont&&n.adbeFont.postScriptName;f&&(i.postscriptName=f);const m=(0,s.hI)(n.fontSize,"pt");m&&(i.fontSize=m);const g=(0,s.hI)(n.lineHeight,"pt");t(g)&&(i.lineSpacing=g);const y=(0,s.hI)(n.paragraphSpacing,"pt");t(y)&&(i.paragraphSpacing=y);const b=v.Ac(n);t(b)&&(i.charSpacing=b),i.textScript=v.cu(n)||"none";const _=v.nP(n,"titlecase");return i.textTransform=t(_)?_:"none",i}},64922:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAppConfiguration:()=>j});var n=r(99386),i=r(34038),o=r(76485),a=r(75067),s=r(31870),c=r(46903),l=r(8733),u=r(53849),d=r(15909),p=r(74149);function h(e){return null!==e&&"object"==typeof e}function f(e){if(!h(e))return!1;const t=["mode","type","value"].every((t=>Object.prototype.hasOwnProperty.call(e,t))),r=h(e.value)&&"RGB"===e.mode&&["r","g","b"].every((t=>"number"==typeof e.value[t]));return t&&r}function m(e,t,r){if(!f(r))return Promise.reject("Unexpected color data format.");const i=(0,c.MN)(e,"",n.Z.COLOR_ELEMENT_TYPE,{opType:t});return i.createRepresentation(n.Z.COLOR_REPRESENTATION_TYPE,"primary").setValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY,r),i.endOperation(),Promise.resolve(i)}function g(e,t,r){return(0,c.g0)(r).then((n=>{const i={documentId:n.documentId,layerIds:n.layerIds,dragAssetId:r};return(0,p.Bm)(n.layerName,n.files,n.rendition,e,t,i)}),(()=>Promise.reject("Could not extract asset.")))}function v(e,t,r){return(0,c.g0)(r).then((n=>{const i={documentId:n.documentId,layerIds:n.layerIds,dragAssetId:r};return(0,p.e4)(n.layerName,n.files,n.rendition,e,t,i)}),(()=>Promise.reject("Could not extract asset.")))}function y(){y=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function b(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const _=()=>{l.Z.handleSelectionChange()},E=function(){var e,t=(e=y().mark((function e(t){var r,n,i;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.data||void 0===t.data.elementRef){e.next=8;break}return e.next=3,a.ZP.resolveElementReference(t.data.elementRef);case 3:if(r=e.sent,!(n=s.wq(r))){e.next=8;break}return i=r.getPrimaryRepresentation(),e.abrupt("return",i.getContentPath().then((e=>o.Z.execApp("updateAsset",[e,r.library.name,r.name,r.getLegacyReference(),(0,c.RW)(r),r.created,n,n?s.kv(r):null]))));case 8:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){b(o,n,i,a,s,"next",e)}function s(e){b(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),w=e=>{const t=e.data&&e.data.elementRef;if(!t)return;const r=e.data&&e.data.requestRef||e.data.elementRef;d.Z.openElementForEdit({elementRef:t,requestRef:r})},x={process:(e,t)=>m(e,"Presets",t.data),image:e=>g(e,"Presets"),model:e=>v(e,"Presets")},L=e=>{const t=e.data&&x[e.data.type];void 0!==t&&t(a.ZP.currentLibrary,e).then((e=>u.Z.revealElement(e)))};var O=r(77560),S=r(74379),T=r(16771);class P extends T.Z{constructor(...e){super(...e),this.dragType="color"}_getRGBRepresentation(e){const t=[];return e.representations.forEach((e=>{const r=e.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY);"primary"===e.relationship?t.unshift(r):t.push(r)})),S.Nh(t)}_placeColorAsset(e,t,r){const n=t?S.Nh(t):this._getRGBRepresentation(e);if(n)return r&&r(),o.Z.execApp("placeAsset",{name:e.name,type:n.type,value:n.value})}getApplyOperations(e){return[{name:"DL_ADD_GENERIC_TO_DOC",apply:(t,r)=>this._placeColorAsset(e,t,r),displayInMenu:!0,onClick:!0}]}getDragData(e){const t=this._getRGBRepresentation(e);if(t)return{name:e.name,type:t.type,value:t.value}}getAddOperations(e){return e&&e.colors&&0!==e.colors.length?e.colors.filter(f).map((e=>({name:"DL_ADD_COLOR_NAME",style:{backgroundColor:S.m3(e),border:"1px solid",width:"14px",height:"14px",margin:"1px 1px 1px 0px"},apply:(t,r)=>m(t,r,e)}))):[]}}var I=r(48124);class A extends I.Z{_placeImageAsset(e){const t=this._config.findUsableRepresentation(e),r=s.wq(e);return t?((0,c.vM)(t,"placeAsset"),t.getContentPath().then((t=>o.Z.execApp("placeAsset",[t,e.library.name,e.name,e.getLegacyReference(),(0,c.RW)(e),e.created,r,r?s.kv(e):null])))):e.getThumbnailPath().then((t=>((0,c.dN)(e,"placeAsset"),o.Z.execApp("placeAsset",[t,!1,e.library.name,e.name,e.getLegacyReference(),(0,c.RW)(e),e.created,r,r?s.kv(e):null]))))}getApplyOperations(e){return[{name:"DL_ADD_GENERIC_TO_DOC",apply:()=>this._placeImageAsset(e),displayInMenu:!0,onClick:!0}]}getAddOperations(e){return e&&e.images&&0!==e.images.length?[{name:"DL_ADD_IMAGE_NAME",icon:"AddImage",dropSupport:!0,apply:g}]:[]}isDisabled(e){return!this._config.findUsableRepresentation(e)&&!e.getCachedThumbnailPath()}}var C=r(59846);class k extends C.Z{_placeLightAsset(e){const t=this._config.findUsableRepresentation(e);if(t){const r=s.wq(e);return t.getContentPath().then((t=>o.Z.execApp("placeAsset",[t,e.library.name,e.name,e.getLegacyReference(),(0,c.RW)(e),e.created,r,r?s.kv(e):null])))}}getApplyOperations(e){return[{name:"DL_ADD_GENERIC_TO_DOC",apply:()=>this._placeLightAsset(e),displayInMenu:!0,onClick:!0}]}}var D=r(54888);class N extends D.Z{_placeMaterialAsset(e){const t=this._config.findUsableRepresentation(e);if(t){const r=s.wq(e);return t.getContentPath().then((t=>o.Z.execApp("placeAsset",[t,e.library.name,e.name,e.getLegacyReference(),(0,c.RW)(e),e.created,r,r?s.kv(e):null])))}}getApplyOperations(e){return[{name:"DL_ADD_GENERIC_TO_DOC",apply:()=>this._placeMaterialAsset(e),displayInMenu:!0,onClick:!0}]}}var R=r(82359);class M extends R.Z{_placeModelAsset(e){const t=this._config.findUsableRepresentation(e);if(t){const r=s.wq(e);return t.getContentPath().then((t=>o.Z.execApp("placeAsset",[t,e.library.name,e.name,e.getLegacyReference(),(0,c.RW)(e),e.created,r,r?s.kv(e):null])))}}getApplyOperations(e){return[{name:"DL_ADD_GENERIC_TO_DOC",apply:()=>this._placeModelAsset(e),displayInMenu:!0,onClick:!0}]}getAddOperations(e){return e&&e.models&&0!==e.models.length?[{name:"DL_ADD_MODEL_NAME",dropSupport:!0,icon:"AddModel",apply:v}]:[]}}function j(){return this.config={},this.config.code="STGR",this.config.fullName="Stager",this.config.translationSuffix="SG",this.config.dragDropSource="com.adobe.stager",this.config.themes={323232:"darker",f5f5f5:"lighter"},this.config.legacySpectrumEnabled=!0,this.config.defaultTheme="darker",this.config.elementTypes=[M,N,k,A,P,O.Z.ColorThemeElementConfig,O.Z.ComponentElementConfig,O.Z.TextStyleElementConfig,O.Z.FontElementConfig,O.Z.ParagraphStyleElementConfig,O.Z.LayerStyleElementConfig,O.Z.BrushElementConfig,O.Z.VideoElementConfig,O.Z.LookElementConfig,O.Z.CapsuleElementConfig,O.Z.PatternElementConfig,O.Z.TemplateElementConfig,O.Z.AnimationElementConfig,O.Z.TextElementConfig,O.Z.GradientElementConfig,O.Z.AudioElementConfig,O.Z.ChannelElementConfig,O.Z.ImageGuidelineElementConfig,O.Z.UnsupportedElementConfig],this.config.collapsedTypes=[n.Z.CHARACTER_STYLE_ELEMENT_TYPE,n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,n.Z.FONT_ELEMENT_TYPE,n.Z.LAYER_STYLE_ELEMENT_TYPE,n.Z.BRUSH_ELEMENT_TYPE,n.Z.VIDEO_ELEMENT_TYPE,n.Z.LOOK_ELEMENT_TYPE,n.Z.CAPSULE_ELEMENT_TYPE,n.Z.PATTERN_ELEMENT_TYPE,n.Z.TEMPLATE_ELEMENT_TYPE,n.Z.ANIMATION_ELEMENT_TYPE,n.Z.TEXT_ELEMENT_TYPE,n.Z.GRADIENT_ELEMENT_TYPE,n.Z.AUDIO_ELEMENT_TYPE,n.Z.CHANNEL_ELEMENT_TYPE,n.Z.IMAGE_GUIDELINE_ELEMENT_TYPE,n.Z.UNSUPPORTED_ELEMENT_TYPE],this.config.missingDropEventsBug=!0,this.config.STOCK_SEARCH_UI_OPTIONS=[n.Z.STOCK_SEARCH_SUB_FILTER_MODEL,n.Z.STOCK_SEARCH_SUB_FILTER_LIGHT,n.Z.STOCK_SEARCH_SUB_FILTER_MATERIAL,n.Z.STOCK_SEARCH_OPTION_PHOTO],this.config.disabledLibraryContextMenuActions=["export"],this.init=function(){i.Zh(n.Z.THREE_D_ELEMENT_TYPE,["application/vnd.adobe.obj.3d+zip","3d/vnd.adobe.dn+dcxucf","model/vnd.adobe.dn+dcxucf","model/gltf-binary","model/vnd.usdz+zip","application/vnd.adobe.fbx.3d+zip"]),i.Zh(n.Z.LIGHT_ELEMENT_TYPE,["application/vnd.adobe.ibl.light+zip","application/vnd.adobe.sbsar+zip","application/vnd.adobe.exr.light+zip"]),i.Zh(n.Z.MATERIAL_ELEMENT_TYPE,["application/vnd.adobe.mdl.material+zip","application/vnd.adobe.sbsar+zip"]),i.Zh(n.Z.IMAGE_ELEMENT_TYPE,["image/png","image/jpeg","image/jpg","image/gif","image/svg+xml","image/vnd.adobe.photoshop","application/photoshop","application/illustrator"]),i.Zh(n.Z.COLOR_ELEMENT_TYPE,["application/vnd.adobe.color+json"]),i.Zh(n.Z.COLOR_THEME_ELEMENT_TYPE,["application/vnd.adobe.colortheme+json"]),i.Zh(n.Z.COMPONENT_ELEMENT_TYPE,["image/svg+xml","image/png"]),n.Z.showTooltips=!0,this.startEventListener()},this.reportEvent=function(){return!1},this.startEventListener=function(){o.Z.addEventListener("selectionChanged",_),o.Z.addEventListener("dlElementDropped",E),o.Z.addEventListener("addAsset",L),o.Z.addEventListener("dlElementOpenForEdit",w)},this.stopEventListener=function(){o.Z.removeEventListener("selectionChanged",_),o.Z.removeEventListener("dlElementDropped",E),o.Z.removeEventListener("addAsset",L),o.Z.removeEventListener("dlElementOpenForEdit",w)},this.getUserData=e=>e(),this}},18413:(e,t,r)=>{"use strict";r.d(t,{default:()=>T}),r(90543);var n=r(89526),i=r(73961),o=r(46931),a=r(76485),s=r(57806),c=r(75067),l=r(98218),u=r(99386),d=r(47320);const p={};p.PHXS=r(33471),p.PHXS_UXP=r(71971),p.ILST=r(87414),p.ILST_UXP=r(3765),p.IDSN=r(13594),p.AEFT=r(54697),p.PPRO=r(10888),p.FLPR=r(91828),p.DRWV=r(39360),p.KBRG=r(48408),p.SPRK=r(31707),p.ACCC=r(60620),p.STGR=r(64922);const h=new class{init(){const e=a.Z.getAppName(),t=Object.keys(p).map((e=>p[e].getAppConfiguration()));u.Z.initApplication(e,t),d.Z.init(u.Z.currentProduct.config.elementTypes)}};var f=r(87544),m=r(84824),g=r(64705),v=r(72373),y=r(15909),b=r(8733),_=r(99409),E=r(51461),w=r(26964),x=r(17179),L=r(30460),O=r(40953);const S={"com.adobe.cclibraries.manager":r(5425).default,"com.adobe.DesignLibraries.angular":O.Z,"com.adobe.DesignLibraries.touch":O.Z};a.Z.init().then((()=>{window.performance&&(window.performance.mark("ccac:libraries-panel:init:begin"),window.performance.measure("ccac:libraries-panel:eval","ccac:libraries-panel:eval:begin","ccac:libraries-panel:init:begin"));const e=new L.T("Load Panel");m.ZP.setStringMap(a.Z.resourceBundle),v.Z.init(),x.Z.init(),h.init(),_.Z.init(),o.Z.init(),s.ZP.init().then((()=>{if("CEP"===a.Z.type){const e=`${a.Z.getPluginPath()}/jsx`,t=`${e}/shims.jsx`,r=`${e}/core.jsx`,n=`${e}/json2.jsx`,i=`${a.Z.getPluginPath()}/applications/${u.Z.currentProduct.config.code}/jsx/main.jsx`;a.Z.exec(null,"evalFile",[t]),a.Z.exec(null,"evalFile",[r]),a.Z.exec(null,"evalFile",[n]),a.Z.exec(null,"evalFile",[i])}function t(){w.Z.init(),c.ZP.init(),g.Z.init(),u.Z.currentProduct.config.enableSAM&&f.Z.init(),window.alert=a.Z.showError.bind(a.Z),a.Z.isLibrariesPanel()||a.Z.isLibrariesManager()?(w.Z.log("Panel Initialized: v"+l.Z.getPluginVersion()),e.done(),a.Z.isLibrariesPanel()&&(b.Z.startListening(),y.Z.startListening()),a.Z.notifyProductInitialized()):E.ZP.reportError("Initialize","Init","initialize-error"),(()=>{if(!a.Z.shouldRenderPanel())return;const e=S[a.Z.getExtensionID()],t=document.getElementById("content");i.render(n.createElement(e,null),t)})(),window.performance&&(window.performance.mark("ccac:libraries-panel:init:end"),window.performance.measure("ccac:libraries-panel:init","ccac:libraries-panel:init:begin","ccac:libraries-panel:init:end"))}"ccweb"!==a.Z.type&&(a.Z.exec("CORE","getTempFolder",[]).then((e=>{u.Z.strTempFolder=e})).catch((e=>{w.Z.log(`Unable to call getTempFolder: ${e}`)})),a.Z.exec("CORE","getHostAppPathViaBridgeTalk",[]).then((e=>{u.Z.currentProduct.config.debugHostAppPath=e})).catch((e=>{w.Z.log(`Unable to call getHostAppPathViaBridgeTalk: ${e}`)})),a.Z.exec("CORE","getApplicationVersion",[]).then((e=>{u.Z.currentProduct.config.productVersion=e})).catch((e=>{w.Z.log(`Unable to call getApplicationVersion: ${e}`)}))),a.Z.setContextMenuPositionEventHandler&&a.Z.setContextMenuPositionEventHandler(),(u.Z.currentProduct.init()||Promise.resolve()).then(t,t)})).catch((e=>w.Z.log(`Unable to initialize themeManager ${e}`)))}));const T=a.Z.exports},46931:(e,t,r)=>{"use strict";r.d(t,{Z:()=>cd});var n=r(75067),i=r(84074),o=r(50265),a=r(77227);class s{constructor(e){this._context=e,this._rootContext=e?e._rootContext:this}get context(){return this._context}}var c,l,u,d,p=r(99386),h=r(69233),f=r(46903);function m(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function g(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let v=(c=o.observable.ref,u=g((l=class extends s{constructor(...e){super(...e),m(this,"_item",u,this),m(this,"_value",d,this)}startEdit(e){this._item=e,e&&(this._value=e.name)}stopEdit(){this._item=null,this._value=""}setValue(e){this._value=e}get item(){return this._item}get value(){return this._value}get groupsTree(){if(this._item&&!this.item.isLibrary)return(0,h.GI)(this._item.library)}get status(){if(!this._item||!this._value)return p.Z.RENAME_STATES.VALID;const e=this._value.trim();if(this._item.isLibrary)return(0,f.SS)(e,this._item.team);if(this._item.isElement)return(0,f.NB)(e);if(this._item.isGroup){const t=this.groupsTree.branches;return(0,h.PR)(e,this._item,t[this._item.id].parent)}}}).prototype,"_item",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=g(l.prototype,"_value",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),g(l.prototype,"groupsTree",[o.computed],Object.getOwnPropertyDescriptor(l.prototype,"groupsTree"),l.prototype),g(l.prototype,"status",[o.computed],Object.getOwnPropertyDescriptor(l.prototype,"status"),l.prototype),l);var y,b,_,E,w,x=r(97536);function L(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function O(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let S=(y=o.observable.ref,_=O((b=class extends s{constructor(...e){super(...e),L(this,"_editDescriptionElement",_,this),L(this,"isTooltipActive",E,this),L(this,"unlinkingAssets",w,this),this.pathState=new a.Z(this),this.renameState=new v(this),this._resetTooltipActive=()=>{this.isTooltipActive=!1}}setUnlinkingAsset(e,t){e&&(t?this.unlinkingAssets.set(e.id,!0):this.unlinkingAssets.delete(e.id))}getIsUnlinkingAsset(e){return this.unlinkingAssets.get(e.id)}get renamingItem(){return this.renameState.item}get editDescriptionElement(){return this._editDescriptionElement}get editPathGroup(){return this.pathState.group}setRenameValue(e){this.renameState.setValue(e)}get renameValue(){return this.renameState.value}get renameStatus(){return this.renameState.status}startRename(e){this.renameState.startEdit(e)}stopRename(){this.renameState.stopEdit()}startEditDescription(e){this._editDescriptionElement=e}stopEditDescription(){this._editDescriptionElement=null}startEditPath(e,t=!1){(0,x.Zc)(this.pathState.viewByGroupMode),this.pathState.startEdit(e,t)}stopEditPath(){this.pathState.stopEdit()}setTooltipActive(){clearTimeout(this._resetTooltipTimeout),this.isTooltipActive=!0}resetTooltip(){clearTimeout(this._resetTooltipTimeout),this._resetTooltipTimeout=setTimeout(this._resetTooltipActive,1e3)}}).prototype,"_editDescriptionElement",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=O(b.prototype,"isTooltipActive",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),w=O(b.prototype,"unlinkingAssets",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),O(b.prototype,"setUnlinkingAsset",[o.action],Object.getOwnPropertyDescriptor(b.prototype,"setUnlinkingAsset"),b.prototype),O(b.prototype,"startRename",[o.action],Object.getOwnPropertyDescriptor(b.prototype,"startRename"),b.prototype),O(b.prototype,"stopRename",[o.action],Object.getOwnPropertyDescriptor(b.prototype,"stopRename"),b.prototype),O(b.prototype,"startEditDescription",[o.action],Object.getOwnPropertyDescriptor(b.prototype,"startEditDescription"),b.prototype),O(b.prototype,"stopEditDescription",[o.action],Object.getOwnPropertyDescriptor(b.prototype,"stopEditDescription"),b.prototype),O(b.prototype,"startEditPath",[o.action],Object.getOwnPropertyDescriptor(b.prototype,"startEditPath"),b.prototype),O(b.prototype,"stopEditPath",[o.action],Object.getOwnPropertyDescriptor(b.prototype,"stopEditPath"),b.prototype),O(b.prototype,"setTooltipActive",[o.action],Object.getOwnPropertyDescriptor(b.prototype,"setTooltipActive"),b.prototype),O(b.prototype,"resetTooltip",[o.action],Object.getOwnPropertyDescriptor(b.prototype,"resetTooltip"),b.prototype),b);var T,P,I=r(2315),A=r(10441);function C(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let k=(T=class extends s{constructor(...e){var t;super(...e),(t=P)&&Object.defineProperty(this,"_searchText",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0})}setSearchText(e){this._searchText=e}get searchText(){return this._searchText}get filteredLibraries(){const e=this.context.libraryManager.publishedDocumentLibrary||{};let t=this.context.libraryManager.libraries;return this.searchText&&(t=(0,A.GZ)(this.searchText,this.context.libraryManager.libraries)),t.filter((t=>t.id!==e.id))}get isUpgradeView(){return this.context.libraryManager.publishState.canUpgrade}},P=C(T.prototype,"_searchText",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),C(T.prototype,"filteredLibraries",[o.computed],Object.getOwnPropertyDescriptor(T.prototype,"filteredLibraries"),T.prototype),C(T.prototype,"isUpgradeView",[o.computed],Object.getOwnPropertyDescriptor(T.prototype,"isUpgradeView"),T.prototype),T);var D=r(84824),N=r(68895),R=r(30131),M=r(39293),j=r(51461),F=r(76485),Z=r(47320),B=r(85834);function G(){G=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function U(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function H(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){U(o,n,i,a,s,"next",e)}function s(e){U(o,n,i,a,s,"throw",e)}a(void 0)}))}}class z extends s{create(e,t){p.Z.currentProduct.config.showCCDTeamsOnboarding&&(0,x.tf)()?(0,x.zW)(e,t):this.context.dialogManager.openDialog("createLibrary",{onCreate:e},t)}delete(e,t=!1){f.$_(e)?this.context.dialogManager.openDialog("deleteTeamLibrary",{leave:t,library:e}):this.context.dialogManager.openDialog("deleteLibrary",{library:e})}export(e){this.context.dialogManager.openDialog("importExportLibrary",{library:e,mode:"export"})}_openShareSheetWithCollaborators(e,t){const r=[];t.forEach((e=>{"owner"!==e.role&&r.push(e.email)})),r.length&&F.Z.showShareSheet(e,"invite",r)}_isCrossRepoMove(e,t){return e.team?e.team.owner.id!==t.owner.id:e.owner!==t.owner.id}_isActionAllowed(e){return!(p.Z.currentProduct.config.disabledLibraryContextMenuActions||[]).includes(e)}promote(e){const t=B.Z.get("enableProjects");return new Promise(((r,n)=>{if(!t&&f.$_(e))return r(e);this.context.dialogManager.openDialog("promoteLibrary",{library:e,promote:(t,i)=>{if(B.Z.get("enableProjects")&&this._isCrossRepoMove(e,t))return this.context.dialogManager.openDialog("copyTeamLibrary",{library:e,copy:r=>{this.context.toastManager.openToast("message",{variant:"info",message:(0,D.Iu)("DL_TEAM_LIBRARY_COPYING_TOAST_PROJECTS",{libraryName:r||e.name,projectName:t.name})});const n=this.context.libraryManager.copyLibrary(e,t,{permissionInheritance:i,newName:r});(0,o.when)((()=>!n.id.includes("PLACEHOLDER")),(()=>{this.context.toastManager.openToast("action",{variant:"success",message:(0,D.Iu)("DL_TEAM_LIBRARY_COPIED_TOAST_PROJECTS",{libraryName:n.name,projectName:t.name}),action:{label:(0,D.Iu)("DL_OPEN_LIBRARY"),onClick:()=>F.Z.navigateToLibrary(n)}})}))}});j.ZP.reportEvent("Operations","Promote Team Library","click","start"),this.context.toastManager.openToast("message",{variant:"info",message:(0,D.Iu)("DL_TEAM_LIBRARY_MOVING_TOAST",{libraryName:e.name,projectName:t.name})}),this.context.libraryManager.fetchLibraryCollaborations(e).catch((()=>Promise.resolve())).then((()=>{try{this.context.libraryManager.moveLibrary(e,t,{permissionInheritance:this.permission}),j.ZP.reportEvent("Operations","Promote Team Library","click","finish");const n=n=>{if(!this.context.libraryManager.currentLibrary||this.context.libraryManager.currentLibrary.id===e.id){const r=()=>{F.Z.navigateToLibrary(n)};this.context.toastManager.openToast("action",{variant:"success",message:(0,D.Iu)("DL_TEAM_LIBRARY_SAVED_TOAST",{libraryName:e.name,projectName:t.name}),action:{label:(0,D.Iu)("DL_OPEN_LIBRARY"),onClick:r}}),F.Z.navigateToLibrary(n)}if(p.Z.currentProduct.config.showShareSheetAfterPromote){const t=(0,o.when)((()=>n.isPushedToServer),(()=>{this._openShareSheetWithCollaborators(n,e.collaborators)}));setTimeout(t,p.Z.OPEN_SHARESHEET_TIMEOUT)}return r(n)},i=(0,o.when)((()=>this.context.libraryManager.libraries.find((t=>t.id===e.id))),(()=>{const t=this.context.libraryManager.libraries.find((t=>t.id===e.id));n(t)}));setTimeout(i,5e3)}catch(e){return this.context.toastManager.openToast("message",{variant:"error",message:(0,D.Iu)("DL_TEAM_LIBRARY_MOVE_FAILED")}),j.ZP.reportError("Operations","Promote Team Library",e&&e.description,"flyout-menu","promote-library-error",void 0,this.context.libraryManager.currentLibrary),n(e)}}))}})}))}invite(e,t=!1){var r;j.ZP.reportEvent("Library Operations","Collaboration","click","invite",{content:{category:t?"Header":"List"}},e);const n=null!==(r=F.Z.isTeamLibrary)&&void 0!==r?r:f.$_;if(F.Z.showShareSheet)F.Z.showShareSheet(e,n(e)?"share":"invite",this.context.dialogManager);else if(f.u4()){const t=n(e)?"share":"invite";this.context.libraryManager.openInCCD(`/assets/libraries/sharesheet/${t}/${e.id}`)}else R.nd(e)}getLink(e,t=!1){if(F.Z.showShareSheet)return j.ZP.reportEvent("Library Operations","Collaboration","click","share-link",{content:{category:t?"Header":"List"}},e),void F.Z.showShareSheet(e,"getLink");f.u4()?this.context.libraryManager.openInCCD(`/assets/libraries/sharesheet/getLink/${e.id}`):R.Oh(e)}makeTeamPersonalCopy(e){var t=this;return H(G().mark((function r(){var n;return G().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e&&f.$_(e)){n=t.context.libraryManager.copyLibrary(e);try{t.context.libraryManager.currentLibrary=n,t.context.toastManager.openToast("action",{variant:"success",message:(0,D.Iu)("DL_LIBRARY_PERSONAL_COPY_TOAST"),action:{label:(0,D.Iu)("DL_OPEN_LIBRARY_COPY"),id:"personalCopy",onClick:()=>F.Z.navigateToLibrary(n)}}),j.ZP.reportEvent("Operations","Personal Copy Team Library","click","finish")}catch(e){j.ZP.reportError("Operations","Personal Copy Team Library",e&&e.description,"flyout-menu","personal-copy-library-error",void 0,t.context.libraryManager.currentLibrary),t.context.toastManager.openToast("message",{variant:"error",message:(0,D.Iu)("DL_TEAM_LIBRARY_COPY_FAILED")}),t.context.libraryManager.deleteLibrary(n)}}case 1:case"end":return r.stop()}}),r)})))()}duplicateLibrary(e){var t=this;return H(G().mark((function r(){return G().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:try{t.context.libraryManager.copyLibrary(e),t.context.toastManager.openToast("message",{variant:"success",message:(0,D.Iu)("DL_LIBRARY_DUPLICATED_SUCCESS_TOAST")}),j.ZP.reportEvent("Operations","Duplicate Library","click","finish",{},e)}catch(e){t.context.toastManager.openToast("message",{variant:"error",message:(0,D.Iu)("DL_LIBRARY_DUPLICATED_ERROR_TOAST")})}case 3:case"end":return r.stop()}}),r)})))()}getLibraryActions(e,t=!1,r=!1,n=!1){const i=e.collaboration||(f.D3(e)?"bookmarked":"private"),a=M.Ol(e),s=a?"brands":"libraries",c=e.isPushedToServer&&e.isWritable&&!e.toolkitId&&this.context.libraryManager.isSharingEnabled&&this._isActionAllowed("invite"),l=e.isPushedToServer&&e.isWritable&&!e.toolkitId&&this.context.libraryManager.isSharingEnabled&&!f.$_(e)&&this._isActionAllowed("getLink"),u=F.Z.supportsFilePicker&&e.elements.length>0&&!e.isDeletedFromServer&&this._isActionAllowed("export"),d=e.isPushedToServer&&f.iM(e),h=e.isWritable&&p.Z.currentProduct.config.showLibraryActionDuplicate,m=p.Z.currentProduct.config.showReportAbuseOnHost,g=f.D3(e)&&p.Z.currentProduct.config.hideActionsForPublicLibraries?[m&&{id:"reportAbuse",label:(0,D.Iu)("DL_REPORT_ABUSE"),enableMenu:!0,onClick:()=>{var t;return null===(t=F.Z.reportAbuse)||void 0===t?void 0:t.call(F.Z,e)},icon:"Flag",hideIcon:!p.Z.currentProduct.config.showLibraryActionMenuIcons}].filter((e=>e)):[d&&{id:"styleguide",label:f.kg(e),onClick:()=>R.q4(e),enableMenu:!0,hideIcon:!0},c&&{id:"invite",label:(0,D.Iu)("DL_FLYOUT_COLLABORATE"),onClick:()=>this.invite(e,t),enableMenu:!0,icon:"Invite",hideIcon:!0},l&&{id:"getLink",label:(0,D.Iu)("DL_FLYOUT_SHARE_LINK"),onClick:()=>this.getLink(e,t),enableMenu:!0,hideIcon:!0},(c||l)&&{id:"shareDivider",divider:!0},u&&{id:"export",label:(0,D.Iu)("DL_EXPORT"),enableMenu:!0,onClick:()=>this.export(e),hideIcon:!0},(0,N.EZ)(e)&&{id:"editInSource",label:(0,D.Iu)("DL_EDIT_IN_SOURCE"),enableMenu:!0,onClick:()=>(0,N.Fb)(e)},!e.isDocumentAssets&&f.W(e)&&{id:"rename",label:(0,D.Iu)("DL_RENAME"),enableMenu:!0,onClick:()=>{if(j.ZP.reportEvent("Operations",s,"click","rename",{},e),t)F.Z.setHeader(!0,!0);else if(r){const t=new Proxy(e,{get:(e,t)=>"id"===t?`${e.id}${p.Z.RECENT_LIBRARY_ID_FLAG}`:e[t]});this.context.viewManager.startRename(t)}else n?this.context.dialogManager.openDialog("renameLibrary",{library:e}):this.context.viewManager.startRename(e)},icon:"Rename",hideIcon:!p.Z.currentProduct.config.showLibraryActionMenuIcons},h&&{id:"duplicate",label:(0,D.Iu)("DL_DUPLICATE_ITEM"),enableMenu:!0,onClick:()=>this.duplicateLibrary(e),icon:"Duplicate",hideIcon:!p.Z.currentProduct.config.showLibraryActionMenuIcons}].filter((e=>e));var v;p.Z.currentProduct.config.bookmarkAction&&("incoming"===e.ownership||f.D3(e))&&(null!==(v=e.bookmark)&&void 0!==v&&v.id?g.push({id:"remove",label:(0,D.Iu)("DL_UNFOLLOW"),enableMenu:!0,onClick:()=>this.delete(e,!0),icon:"Leave",hideIcon:!p.Z.currentProduct.config.showLibraryActionMenuIcons}):f.hp(e)&&g.push({id:"share",label:(0,D.Iu)("DL_SHARE"),onClick:()=>this.invite(e),enableMenu:!0,icon:"Invite",hideIcon:!p.Z.currentProduct.config.showLibraryActionMenuIcons})),p.Z.currentProduct.config.makePersonalCopyAction&&f.D3(e)&&g.push({id:"copyPublicLibrary",label:(0,D.Iu)("DL_MAKE_COPY"),enableMenu:!0,icon:"S2_Icon_Copy_20_N",onClick:()=>{let t;try{t=this.context.libraryManager.copyLibrary(e),this.context.toastManager.openToast("message",{duration:3e4,message:(0,D.Iu)("DL_LIBRARY_COPYING_TOAST")}),(0,o.when)((()=>t.id&&t.assetId),(()=>{this.context.toastManager.openToast("action",{variant:"success",message:(0,D.Iu)("DL_LIBRARY_PERSONAL_COPY_TOAST"),action:{label:(0,D.Iu)("DL_OPEN_LIBRARY_COPY"),id:"personalCopy",onClick:()=>F.Z.navigateToLibrary(t)},duration:5e3})})),j.ZP.reportEvent("Operations","Personal Copy Public Library","click","finish")}catch(e){j.ZP.reportError("Operations","Personal Copy Public Library",e&&e.description,"flyout-menu","personal-copy-library-error",void 0,this.context.libraryManager.currentLibrary),this.context.toastManager.openToast("message",{variant:"error",message:(0,D.Iu)("DL_TEAM_LIBRARY_COPY_FAILED")}),this.context.libraryManager.deleteLibrary(t)}},hideIcon:!p.Z.currentProduct.config.showLibraryActionMenuIcons}),f.zW(e)||f.$_(e)||!f.pN(e)||e.toolkitId||g.push({id:"leave",label:"bookmarked"===i?(0,D.Iu)(M.Ol(e)?"DL_REMOVE_FROM_YOUR_BRANDS":"DL_REMOVE_FROM_YOUR_LIBRARIES"):(0,D.Iu)("DL_LEAVE"),enableMenu:!0,onClick:()=>this.delete(e,!1),destructive:!0,icon:"Leave",hideIcon:!0}),e.isDocumentAssets||f.$_(e)||!f.GL(e)||g.push({id:"delete",label:(0,D.Iu)("DL_DELETE"),enableMenu:!0,onClick:()=>this.delete(e,!1),destructive:!0,icon:"Delete",hideIcon:!p.Z.currentProduct.config.showLibraryActionMenuIcons}),f.$_(e)&&!p.Z.currentProduct.config.hideTeamLibraryAction&&g.push({id:"personalCopy",label:(0,D.Iu)("DL_LIBRARY_SAVE_PERSONAL_COPY"),enableMenu:!0,onClick:()=>this.makeTeamPersonalCopy(e),hideIcon:!0},e.isPushedToServer&&!e.isDeletedFromServer&&{id:"leaveTeamLibrary",label:(0,D.Iu)(M.Ol(e)?"DL_REMOVE_FROM_YOUR_BRANDS":"DL_REMOVE_FROM_YOUR_LIBRARIES"),enableMenu:!0,onClick:()=>this.delete(e,!0),hideIcon:!0},f.GL(e)&&{id:"delete",label:(0,D.Iu)("DL_DELETE"),enableMenu:!0,onClick:()=>this.delete(e,!1),hideIcon:!0});const y=!p.Z.currentProduct.config.hideLibraryActionPromote&&f.IA()&&this.context.libraryManager.platformFolders.length>0&&!f.$_(e)&&e.isPushedToServer&&e.isWritable&&!e.toolkitId&&f.Wv(e)&&this.context.libraryManager.isOnline,b=this.context.libraryManager.platformFolders.filter((t=>{var r;return t.id!==(null===(r=e.project)||void 0===r?void 0:r.id)})),_=!p.Z.currentProduct.config.hideLibraryActionMoveCopy&&f.IA()&&b.length>0&&e.isPushedToServer&&e.isWritable&&!e.toolkitId&&this.context.libraryManager.isOnline;if((B.Z.get("enableProjects")?_:y)&&g.push({id:"promoteTeamLib",label:(0,D.Iu)("DL_PROMOTE"),enableMenu:!this.context.viewState.isImportExportInProgress,onClick:()=>{this.promote(e)},hideIcon:!0}),B.Z.get("brandFeatureEnabled")&&this.context.viewState.isLibraryWritable(e,!1,!0)){const t=(0,D.Iu)(a?"DL_UNBRAND":"DL_BRAND"),r=a?"unbrand":"brand";g.push({id:"brandDivider",divider:!0},{id:r,label:t,enableMenu:!0,onClick:()=>{j.ZP.reportEvent("Operations",s,"click",r,{},e),a?cd.panel.brandActions.unbrandLibrary(e):cd.panel.brandActions.brandLibrary(e)}})}return g.filter((e=>e))}validateLibraryName(e,t,r=!1){const n=f.QZ(e),i=!t||!f.J3(e,t);return r&&!n?this.context.toastManager.openToast("message",{variant:"error",message:(0,D.Iu)("DL_LIBRARY_NAME_INVALID")}):r&&!i&&this.context.toastManager.openToast("message",{variant:"error",message:(0,D.Iu)("DL_LIBRARY_NAME_DUPLICATE")}),n&&i}autogenerateEmptyLibraryGroups(e){const t={},r=Z.Z.groupElementsByType(e.elements,"name").reduce(((e,t)=>e.concat(t.children)),[]);r.forEach((e=>{const r=Z.Z.getAutoGroupName(e);t[r]||(t[r]=[]),t[r].push(e)}));const n=Object.keys(t),i=e=>p.Z.AUTO_GROUPS_ORDER.indexOf(e);n.sort(((e,t)=>i(t)-i(e))),j.ZP.setExtraEventMetrics("updateElement",{subtype:"add-to-group",content:{category:"Auto Group"}}),e.beginOperation(),n.forEach((r=>{j.ZP.setExtraEventMetrics("createGroup",{content:{category:"Auto Group"},event:{value:"single"}});const n=f.sS(e,(0,D.Iu)(r));f.c_(t[r],n,void 0,!1)})),e.endOperation(),j.ZP.reportEvent("Create Group","Group","click","create",{event:{value:"agg",count:n.length},content:{category:"Auto Group"}}),j.ZP.reportEvent("Element Operations","Element","click","add-to-group",{event:{value:"agg",count:r.length},content:{category:"Auto Group"}})}createBrandLibrary(){this.context.dialogManager.openDialog("createLibrary",{createTitle:"DL_CREATE_NEW_BRAND_LIBRARY",createPlaceholder:"DL_CREATE_NEW_BRAND_PLACEHOLDER",isCreatingBrand:!0})}}class V extends s{constructor(...e){super(...e),this._openShareSheet=e=>{const t=(0,o.when)((()=>e.isPushedToServer),(()=>F.Z.showShareSheet(e)));setTimeout(t,p.Z.OPEN_SHARESHEET_TIMEOUT)}}publish(e){if(!F.Z.isSavedCloudDocument)return new Promise((t=>this.context.dialogManager.openDialog("saveCloudDoc",{onSave:()=>t(this.publish(e))})));if(this.context.libraryManager.publishState.isPublishedLibraryNotFound)return this.relinkDocument(e);if(this.context.libraryManager.publishState.isPublished)return this.context.libraryManager.publish(e);const t=t=>F.Z.waitForCloudAssetId().then((()=>this.context.libraryManager.publish(e,t).then(this._openShareSheet))),r=e.elements.some((e=>e.isLinked))?"local-and-linked":"local";if(!(0,f.IA)()){const n={event:{value:"Private",count:e.getGroups().length},content:{type:r}};return j.ZP.reportEvent("Manager","Manage","click","publish",n),t()}const n=this.context.libraryManager.platformFolders&&this.context.libraryManager.platformFolders.filter((e=>e.isWritable)),i=this.context.libraryManager.publishState.hasAvailableStorage,o=n.length&&n[0]||void 0;return new Promise((t=>{this.context.dialogManager.openDialog("publishLibrary",{assetsContainer:e,defaultTeam:o,showPersonalFolder:i,onPublish:e=>t(e.then(this._openShareSheet))})}))}upgradeSubscription(){F.Z.handleUpgradeButtonClicked()}relinkDocument(e){return new Promise((t=>{this.context.dialogManager.openDialog("relinkDocumentLibrary",{onRelinkChoice:r=>{Promise.resolve().then((()=>"createNew"===r?(F.Z.linkDocumentToLibrary(),j.ZP.reportEvent("Manager","Manage","click","linkToNewDocLibrary"),t(this.publish(e))):F.Z.waitForCloudAssetId().then((()=>(j.ZP.reportEvent("Manager","Manage","click","relinkDocLibraryToDocument"),t(this.context.libraryManager.publish(e)))))))}})}))}relinkAssetToLibrary(e){return e.canRelinkToLibrary?new Promise((t=>{F.Z.openApplicationDialog("relinkDocumentAsset",{element:e,onRelink:e=>{const r=[],n=this.context.libraryManager.documentAssetsContainer.missingLinks.length;return e.forEach((({asset:e,element:t})=>{e.newLinkedElementRef=t.getReference(),r.push(e)})),F.Z.updateLinkedAssets(r).finally((()=>{r.forEach((e=>{e.newLinkedElementRef=null})),j.ZP.reportEvent("RelinkDocumentAssetDialog","Element","click","relinkAssetToLibrary"),t(this._getLinksResolutionStatus(r)),this._showLinksResolutionStatus({elements:r,totalMissingLinksBefore:n})}))},onCancel:()=>t({resolvedLinks:[],unresolvedLinks:[e]})})})):Promise.reject("Asset is not relinkable to a library.")}relinkDocumentToOrphanedLibrary(e){this.context.dialogManager.openDialog("relinkOrphanedDocumentLibrary",{relinkToOrphanLibrary:(0,o.action)((t=>{F.Z.linkDocumentToLibrary(t.id),j.ZP.reportEvent("Manager","Manage","click","relinkToOrphanLibrary"),(F.Z.documentName!==t.name||this.context.libraryManager.publishState.isPendingUpdate)&&this.publish(e)}))})}resolveLinks(e){const t=[],r=new Set,n=new Set;return e.forEach((e=>{const t=e.cachedLinkedLibraryId,i=e.cachedLinkedLibraryAssetId,o=Object.freeze({assetId:i,libraryId:t});e.isPendingInvite&&n.add(o),e.isPendingFollow&&r.add(o)})),r.size||n.size?(n.size&&(j.ZP.reportEvent("ResolveBrokenLinksDialog","resolveLinks","click","acceptLibraryInvites"),t.push(this.context.libraryManager.acceptAllLibraryInvitations())),r.forEach((({assetId:e,libraryId:r})=>{j.ZP.reportEvent("ResolveBrokenLinksDialog","resolveLinks","click","followTeamLibrary"),t.push(this.context.libraryManager.followLibrary(e,r))})),this._showLinkResolutionProgress(Promise.all(t),e)):Promise.reject("No resolvable broken links found")}_showLinkResolutionProgress(e,t){if(!e||!t||!t.length)return;const r=this.context,n=r.libraryManager,i=r.toastManager,a=t[0].library.missingLinks.length;return new Promise((r=>(n.showSyncSpinner(),i.openToast("syncProgress"),e.finally((()=>{(0,o.when)((()=>!["working","syncing"].includes(n.syncStatus.state)),(()=>{r(this._getLinksResolutionStatus(t)),(0,o.when)((()=>!i.toast),(()=>this._showLinksResolutionStatus({elements:t,totalMissingLinksBefore:a})))}))})))))}_getLinksResolutionStatus(e){const t=[],r=[];return e.forEach((e=>{(e.isMissingLink||e.isDeprecatedLegacyDocumentLink?r:t).push(e)})),{resolvedLinks:t,unresolvedLinks:r}}_showLinksResolutionStatus({elements:e,totalMissingLinksBefore:t}){const r=e[0].library,n=this._getLinksResolutionStatus(e),i=n.resolvedLinks,o=n.unresolvedLinks;if(o.length)this._showUnresolvedLinksStatus({unresolvedLinks:o});else{const n=r.missingLinks.length;this._showResolvedLinksStatus({elements:e,resolvedLinks:i,totalMissingLinksBefore:t,totalMissingLinksAfter:n})}}_showResolvedLinksStatus({elements:e,resolvedLinks:t,totalMissingLinksBefore:r,totalMissingLinksAfter:n}){const i=this.context.toastManager;if(e.length>1){const e=r-n;i.openToast("message",{variant:"success",message:(0,D.Iu)("DL_RESOLVE_BROKEN_LINK_TOAST_SUCCESS_NUM",{count:e})})}else{const e=r-(n+t.length);if(!e)return i.openToast("message",{variant:"success",message:(0,D.Iu)("DL_RESOLVE_BROKEN_LINK_TOAST_SUCCESS")});const o=e>1?"DL_RESOLVE_BROKEN_LINK_TOAST_SUCCESS_ADDITIONAL_NUM":"DL_RESOLVE_BROKEN_LINK_TOAST_SUCCESS_ADDITIONAL_SINGULAR";i.openToast("message",{variant:"success",message:(0,D.Iu)(o,{count:e})})}}_showUnresolvedLinksStatus({unresolvedLinks:e}){const t=this.context.toastManager,r={label:(0,D.Iu)("DL_LEARN_MORE"),onClick:()=>(0,R.Az)()};if(e.length>1)t.openToast("action",{variant:"error",message:(0,D.Iu)("DL_RESOLVE_BROKEN_LINK_TOAST_ERROR_NUM",{count:e.length}),action:r});else{var n;const i=e[0],o=null===(n=this.context.libraryManager.relinkableAssetsData.assets)||void 0===n?void 0:n.get(i.id);if(null!=o&&o.length)return t.openToast("action",{variant:"error",message:(0,D.Iu)("DL_RESOLVE_BROKEN_LINK_TOAST_ERROR_MISSING_ELEMENT_MATCH"),action:r});if(i.isMissingElement)return t.openToast("message",{variant:"error",message:(0,D.Iu)("DL_RESOLVE_BROKEN_LINK_TOAST_ERROR_MISSING_ELEMENT_NO_MATCH")});t.openToast("action",{variant:"error",message:(0,D.Iu)("DL_RESOLVE_BROKEN_LINK_TOAST_ERROR"),action:r})}}}var Y=r(89526),W=r(2652),K=r.n(W),$=r(62631),q=r(51385),X=r(27611),J=r(64403),Q=r.n(J),ee=r(24937),te=r(43616);const re={sectionHeader:"ich",currentLabel:"PLe",labelText:"sDg",label:"C0y",dropdownIcon:"VqV",dropdown:"n1f"};var ne,ie,oe,ae,se,ce;function le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?le(Object(r),!0).forEach((function(t){de(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function de(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pe(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function he(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let fe=(ne=o.observable.ref,(0,$.Pi)((ce=class e extends Y.Component{constructor(...e){super(...e),pe(this,"customLabelRef",ae,this),pe(this,"selectedPermission",se,this),this.setCustomLabelRef=e=>{this.customLabelRef=e}}componentDidMount(){const t=e.dropdownOptions.find((e=>e.key===this.props.defaultPermission))||e.dropdownOptions[0];this.onDropdownSelectionHandler(t)}onDropdownSelectionHandler(e){this.selectedPermission=e,this.props.onPermissionChange(e.key)}getLabel(e,t=!1){if(e)return Y.createElement("div",{ref:this.setCustomLabelRef,tabIndex:t?"0":null,className:Q()(re.label,"label",{[re.currentLabel]:t})},e.icon,Y.createElement("div",{className:re.labelText},(0,D.Iu)(e.label)),t&&Y.createElement("div",{className:Q()(re.dropdownIcon,"dropdown-icon")},Y.createElement(X.Z,{id:"ChevronDownSmall",height:p.Z.currentProduct.config.dropdownChevronHeight||8})))}get dropdownData(){return e.dropdownOptions.map((e=>ue(ue({},e),{},{label:e&&this.getLabel(e),onClick:()=>this.onDropdownSelectionHandler(e),isSelected:this.selectedPermission&&this.selectedPermission.key===e.key})))}render(){return Y.createElement("div",{className:re.container},Y.createElement("div",{className:re.sectionHeader,"data-test-id":"team-permissions-dropdown-label"},(0,D.Iu)("DL_PERMISSION_TITLE")),Y.createElement("div",{className:re.dropdown},Y.createElement(te.Z,{data:this.dropdownData,type:"team-permissions",currentLabel:this.getLabel(this.selectedPermission,!0),className:"team-permissions-dropdown",wrapCustomLabel:!1,customLabelRef:this.customLabelRef,locationBasedOnLabel:!0})))}},ce.dropdownOptions=[{label:"DL_CAN_VIEW_AND_USE",id:"visibility",icon:Y.createElement(X.Z,{id:"Visibility",height:18}),key:"read"},{label:"DL_CAN_EDIT",id:"editPermission",icon:Y.createElement(X.Z,{id:"Edit",height:18}),key:"all"}],ce.propTypes={onPermissionChange:K().func.isRequired,defaultPermission:K().oneOf(["read","all"])},ce.defaultProps={defaultPermission:"read"},ae=he((oe=ce).prototype,"customLabelRef",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),se=he(oe.prototype,"selectedPermission",[ne],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ie=oe))||ie);var me=r(30222),ge=r(83377),ve=r(28086),ye=r(94859),be=r(82530);const _e=["renderLabel","label","className","checked","defaultChecked","disabled","children","quiet","onChange"];function Ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function we(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(r),!0).forEach((function(t){xe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ee(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Le(){Le=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Oe(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Se=(0,ye.Z)(r(21504)).default;let Te;be.env.EXCLUDE_SWC||(Te=new ve.t(["sp-switch"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Oe(o,n,i,a,s,"next",e)}function s(e){Oe(o,n,i,a,s,"throw",e)}a(void 0)}))}}(Le().mark((function e(){var t,n;return Le().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(3223)]).then(r.bind(r,5169));case 2:return t=e.sent,n=t.Switch,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const Pe=(0,ge.Z)({displayName:"Switch",fallback:Se,swcLoader:Te,SWCWrapper:e=>{const t=(0,Y.useRef)(null),r=e.renderLabel,n=void 0===r||r,i=e.label,o=e.className,a=e.checked,s=e.defaultChecked,c=e.disabled,l=e.children,u=e.quiet,d=e.onChange,p=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,_e);(0,Y.useEffect)((()=>{const e=t.current,r=e=>{const t=e.target;null==d||d(t.checked,e)};return e&&d&&e.addEventListener("change",r),()=>{e&&d&&e.removeEventListener("change",r)}}),[d]);const h=(0,me.Co)("sp-switch");return Y.createElement(h,we(we(we({},p),(0,me.cd)({checked:null!=a?a:s,disabled:c,emphasized:!u})),{},{class:o,ref:t}),n?i:"",l)},tagName:"sp-switch"});var Ie=r(99767);const Ae={sectionHeader:"u9N",switch:"OiU",helpIconContainer:"upE",helpIconInnerContainer:"eZX",helpIcon:"gs_",disableDropdown:"Gx_"};var Ce,ke,De,Ne,Re,Me;function je(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function Fe(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Ze=(Ce=o.observable.ref,(0,$.Pi)((Me=class e extends Y.Component{constructor(...t){super(...t),je(this,"customLabelRef",Ne,this),je(this,"selectedPermission",Re,this),this.onSwitchChange=t=>{this.onSwitchSelectionHandler(e.switchOptions[t?0:1])}}componentDidMount(){const t=e.switchOptions.find((e=>e.key===this.props.defaultPermission))||e.switchOptions[0];this.onSwitchSelectionHandler(t)}onSwitchSelectionHandler(e){this.selectedPermission=e,this.props.onPermissionChange(e.key)}get showHelp(){return!F.Z.isMobileView}render(){var e;return Y.createElement("div",{className:Ae.container,"data-test-id":"team-permissions-switch-wrapper"},Y.createElement("div",{className:Ae.sectionHeader,"data-test-id":"team-permissions-switch-label"},(0,D.Iu)("DL_PROJECT_PERMISSION_TITLE")),Y.createElement("div",{className:Ae.switch},Y.createElement(Pe,{"data-test-id":"team-permissions-switch",onChange:this.onSwitchChange,checked:null===(e=this.selectedPermission)||void 0===e?void 0:e.switchOn,quiet:!0,label:(0,D.Iu)("DL_PROJECT_PERMISSION_SWITCH_LABEL")}),this.showHelp&&Y.createElement("div",{className:Ae.helpIconContainer,"data-test-id":"switch-help-icon"},Y.createElement(Ie.Z,{content:(0,D.Iu)(this.props.isBrandLibrary?"DL_PROJECT_PERMISSION_SWITCH_INFO_BRAND":"DL_PROJECT_PERMISSION_SWITCH_INFO_LIBRARY"),delay:0},Y.createElement("span",{tabIndex:"0",className:Ae.helpIconInnerContainer},Y.createElement(X.Z,{id:"InfoOutline",className:Ae.helpIcon,height:18}))))))}},Me.switchOptions=[{switchOn:!0,key:"read"},{switchOn:!1,key:"all"}],Me.propTypes={onPermissionChange:K().func.isRequired,defaultPermission:K().oneOf(["read","all"]),isBrandLibrary:K().boolean},Me.defaultProps={defaultPermission:"read"},Ne=Fe((De=Me).prototype,"customLabelRef",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Re=Fe(De.prototype,"selectedPermission",[Ce],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ke=De))||ke);var Be=r(98949),Ge=r(33275);const Ue={teamSelector:"I6b",container:"AKl",sectionHeader:"K_-",label:"vdc",noSubtext:"l02",iconContainer:"Rot",labelTextContainer:"Bps",overflow:"ttK",labelSubText:"xOS",nonDropdownLabel:"q19",dropdownRow:"UK0",dropdown:"ykH",helpIconContainer:"rix",helpIconInnerContainer:"weW",helpIcon:"NI9",permissionSelector:"IH7",alignCenter:"W3d",labelIcon:"V93",smallIcon:"gBt",labelPersonal:"GXj"};var He,ze,Ve,Ye,We;function Ke(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let $e=(He=o.observable.ref,(0,$.Pi)((We=class extends Y.Component{constructor(...e){var t;super(...e),(t=Ye)&&Object.defineProperty(this,"selectedFolder",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0})}componentDidMount(){if(this.context.libraryManager.refreshTeams(),this.props.defaultTeam)this.selectedFolder=this.props.defaultTeam;else if(!this.props.showPersonalFolder&&this.teams.length>0){const e=this.teams.find((e=>!this.props.disabledTeamIds.includes(e.id)));this.selectedFolder=e,this.props.onFolderChange(e)}this.updateSelectedFolderPermission()}get teams(){return this.context.libraryManager.platformFolders&&this.context.libraryManager.platformFolders.filter((e=>{var t,r;return e.isWritable&&e.id!==(null===(t=this.props.library)||void 0===t||null===(r=t.team)||void 0===r?void 0:r.id)}))}get currentLabel(){return this.getLabel(this.selectedFolder)}get projectsEnabled(){return B.Z.get("enableProjects")}get disableProjectsPermissionSwitch(){var e,t;return"user"===(null===(e=this.selectedFolder)||void 0===e||null===(t=e.owner)||void 0===t?void 0:t.type)}getPlainTextLabel(e){return e?e.name:this.projectsEnabled?this.props.personalFolderIsBrands?(0,D.Iu)("DL_BRANDS"):(0,D.Iu)("DL_LIBRARIES"):(0,D.Iu)("DL_PERSONAL_STORAGE")}getLabelIcon(e){if(this.projectsEnabled&&null!=e&&e.gradientData)return Y.createElement(Be.Z,{project:e});let t="User";return this.projectsEnabled&&(t=this.props.personalFolderIsBrands?"CCXCreateLogo":"CCLibrary"),Y.createElement(X.Z,{className:Ue.labelIcon,id:e?"Building":t,height:"M"===this.props.iconSize?18:12})}getLabel(e){return Y.createElement("div",{className:Q()(Ue.label,{[Ue.noSubtext]:!(e&&e.ownerName),[Ue.alignCenter]:"M"===this.props.iconSize})},Y.createElement("div",{className:Q()(Ue.iconContainer,{[Ue.labelPersonal]:!e,[Ue.smallIcon]:"S"===this.props.iconSize})},this.getLabelIcon(e)),Y.createElement("div",{className:Ue.labelTextContainer},Y.createElement("div",{className:Q()(Ue.labelText,Ue.overflow)},this.getPlainTextLabel(e)),!this.projectsEnabled&&(null==e?void 0:e.ownerName)&&Y.createElement("div",{className:Q()(Ue.labelSubText,Ue.overflow)},e.ownerName)))}onClickDropdownItem(e){this.selectedFolder=e,this.updateSelectedFolderPermission(),this.props.onFolderChange(e)}updateSelectedFolderPermission(){this.disableProjectsPermissionSwitch&&this.props.onPermissionChange("all")}get folderMenuData(){const e=this.teams.map((e=>{const t={label:this.getLabel(e),sublabel:this.projectsEnabled?null:null==e?void 0:e.ownerName,onClick:()=>this.onClickDropdownItem(e),isSelected:this.selectedFolder&&this.selectedFolder.id===e.id,disabled:this.props.disabledTeamIds.includes(e.id),key:e.id,id:"teamPermission"};return this.projectsEnabled&&(t.iconContent=this.getLabelIcon(e)),t}));return this.props.showPersonalFolder&&e.unshift({label:this.getLabel(),onClick:()=>this.onClickDropdownItem(null),isSelected:!this.selectedFolder,key:"personal",id:"personalPermission",iconContent:this.projectsEnabled?null:this.getLabelIcon()}),e}get showHelp(){return!F.Z.isMobileView&&this.props.showHelp}get infoTooltipContent(){return this.projectsEnabled?(0,D.Iu)(this.props.personalFolderIsBrands?"DL_PROJECT_BRAND_HELP":"DL_PROJECT_LIBRARY_HELP"):(0,D.Iu)("DL_TEAM_LIBRARY_HELP")}get permissionSelector(){let e=fe;if(this.projectsEnabled){if(this.disableProjectsPermissionSwitch)return null;e=Ze}return Y.createElement(e,{onPermissionChange:this.props.onPermissionChange,defaultPermission:this.props.defaultPermission,isBrandLibrary:this.props.personalFolderIsBrands})}get dropdown(){if(this.projectsEnabled&&(this.props.disableTeamSelection||0===this.teams.length))return Y.createElement("div",{"data-test-id":"team-selector-static-label",className:Ue.nonDropdownLabel},this.currentLabel);const e=Q()(Ue.teamSelector,this.props.className);return Y.createElement(Y.Fragment,null,Y.createElement("div",{className:Q()(Ue.dropdown)},Y.createElement(te.Z,{data:this.folderMenuData,type:this.props.type,className:Q()(e,"team-selector-dropdown"),currentLabel:this.currentLabel,maxHeight:this.props.maxHeight,disabled:this.props.isDisabled,noDropdown:this.props.disableTeamSelection,locationBasedOnLabel:!0,wrapCustomLabel:!0})),this.showHelp&&Y.createElement("div",{"data-test-id":"selector-help-icon",className:Ue.helpIconContainer},Y.createElement(Ie.Z,{content:this.infoTooltipContent,delay:0},Y.createElement("span",{tabIndex:"0",className:Ue.helpIconInnerContainer},Y.createElement(X.Z,{id:"InfoOutline",className:Ue.helpIcon,height:18})))))}render(){const e=0===this.teams.length;return!this.projectsEnabled&&e||this.projectsEnabled&&e&&!this.props.showPersonalFolder?null:Y.createElement("div",{className:Ue.container},Y.createElement("div",{className:Ue.sectionHeader},(0,D.Iu)("DL_TEAM_LIBRARY_SAVE_TO")),Y.createElement("div",{className:Ue.dropdownRow},this.dropdown),this.selectedFolder&&this.permissionSelector&&Y.createElement("div",{className:Ue.permissionSelector},this.permissionSelector))}},We.contextType=ee.r,We.propTypes={onFolderChange:K().func.isRequired,library:K().instanceOf(Ge.Zu),onPermissionChange:K().func,className:K().string,showPersonalFolder:K().bool,personalFolderIsBrands:K().bool,type:K().oneOf(["team-libraries","publish-team-libraries"]),maxHeight:K().number,isDisabled:K().bool,defaultTeam:K().object,defaultPermission:K().oneOf(["read","all"]),disableTeamSelection:K().bool,disabledTeamIds:K().arrayOf(K().string),showHelp:K().bool,iconSize:K().oneOf(["S","M"])},We.defaultProps={type:"team-libraries",showHelp:!1,disabledTeamIds:[],onPermissionChange:()=>{},iconSize:"M"},Ye=Ke((Ve=We).prototype,"selectedFolder",[He],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ke(Ve.prototype,"teams",[o.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"teams"),Ve.prototype),ze=Ve))||ze);var qe,Xe,Je,Qe,et,tt,rt;function nt(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function it(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let ot=(qe=o.observable.ref,(0,$.Pi)(((rt=class extends Y.Component{constructor(...e){super(...e),nt(this,"name",Qe,this),nt(this,"hasPressedKey",et,this),nt(this,"selectedFolder",tt,this),this.teamLibraryPermission=void 0,this.setInputElement=e=>{this.inputElement=e},this.onClickOK=()=>{this.name=this.name.trim(),this.createLibrary("click")},this.onTextChange=e=>{e.stopPropagation(),this.name=e.target.value},this.onKeyDown=e=>(e.stopPropagation(),"Enter"===e.key&&this.isValidName&&!F.Z.isComposingInputEvent(e)?(e.preventDefault(),this.createLibrary("keydown"),this.props.close&&this.props.close(),void(this.props.onClose&&this.props.onClose())):27===e.keyCode?(this.props.close&&this.props.close(),void(this.props.onClose&&this.props.onClose())):void(this.hasPressedKey||(this.hasPressedKey=!0,j.ZP.reportEvent("Create Library","New Library","keydown","input")))),this.handleFolderChange=e=>{this.selectedFolder=e},this.onPermissionChange=e=>{this.teamLibraryPermission=e}}componentDidMount(){this.selectedFolder=this.defaultTeam,j.ZP.reportEvent("Create Library","Library Selector","click","new-library",{"custom.library":{filter:this.isCreatingBrand?"brands":"libraries"}}),j.ZP.reportEvent("Create Library","New Library","render","view"),setTimeout((()=>{var e;null===(e=this.inputElement)||void 0===e||e.focus()}))}get writableFolders(){return this.context.libraryManager.platformFolders.filter((e=>e.isWritable))}get defaultTeam(){if(this.props.defaultTeam)return this.props.defaultTeam;const e=j.ZP.currentUserId,t=e&&!e.includes("@AdobeID");var r;return!this.projectsEnabled||t?null!==(r=this.writableFolders.find((e=>!e.isReadOnly)))&&void 0!==r?r:this.writableFolders[0]:void 0}get warningMessage(){const e=(0,f.SS)(this.name.trim(),this.selectedFolder);return e===p.Z.RENAME_STATES.VALID?this.remainingCharacters<=p.Z.MAX_REMAINING_CHARACTERS_LENGTH?{message:(0,D.Iu)("DL_LIBRARY_NAME_REMAINING_CHARACTERS",{charCount:this.remainingCharacters})}:void 0:{isError:!0,message:(0,D.Iu)(p.Z.RENAME_STATE_ERROR_MESSAGES[e],{charCount:this.remainingCharacters})}}get projectsEnabled(){return B.Z.get("enableProjects")}get disabledFolderIds(){return this.projectsEnabled?this.writableFolders.filter((e=>e.isReadOnly)).map((e=>e.id)):[]}get isDuplicateLibraryName(){return this.selectedFolder&&(0,f.J3)(this.name,this.selectedFolder)}get isOverMaxLength(){return this.name.trim().length>p.Z.MAX_INPUT_STRING_LENGTH}get remainingCharacters(){const e=this.name.trim().length;return p.Z.MAX_INPUT_STRING_LENGTH-e}get isValidName(){return!this.isErrorWarning}get showWarning(){return this.hasPressedKey&&this.name.trim().length>0&&this.warningMessage}get isErrorWarning(){var e;return null===(e=this.warningMessage)||void 0===e?void 0:e.isError}get isCreatingBrand(){return this.props.isCreatingBrand}createLibrary(e){let t;j.ZP.setExtraEventMetrics("createLibrary",{opType:"newLibrary"});const r=this.isCreatingBrand?{roles:[{type:p.Z.ROLE_TYPE_BRAND}]}:{};this.selectedFolder?(r.permissionInheritance=this.teamLibraryPermission,t=this.context.libraryManager.createTeamLibrary(this.selectedFolder.id,this.name,r)):t=this.context.libraryManager.createLibrary(this.name,r),j.ZP.reportEvent("Create Library","New Library",e,"create",void 0,t),j.ZP.clearExtraEventMetrics("createLibrary"),this.props.onCreate?this.props.onCreate(t,this.selectedFolder):F.Z.navigateToLibrary(t)}render(){const e=Q()("panel-dialog-layout-75","panel-dialog-input-container",{"panel-dialog-warning":this.showWarning});let t=(0,D.Iu)(F.Z.customCreateLibraryHeader||this.props.createTitle);return t=F.Z.capitalizeCreateLibraryHeader?t.toLocaleUpperCase(F.Z.getLocale()):t,Y.createElement(q.Z,{className:Q()("panel-dialog-create","panel-dialog-share"),title:t,okButtonText:(0,D.Iu)("DL_CREATE"),onClickOK:this.onClickOK,close:this.props.close,okButtonEnabled:this.isValidName},Y.createElement("div",{className:"panel-dialog-layout-group"},Y.createElement("div",{className:e},Y.createElement("input",{className:"panel-dialog-input",type:"text","data-test-id":"create-library-input",spellCheck:"false",placeholder:(0,D.Iu)(this.props.createPlaceholder),style:{width:"100%"},ref:this.setInputElement,value:this.name,onChange:this.onTextChange,onKeyDown:this.onKeyDown}),this.showWarning&&this.isErrorWarning&&Y.createElement(X.Z,{id:"Alert",height:18}))),this.showWarning&&Y.createElement("div",{"data-test-id":"panel-dialog-name-warning",className:Q()("panel-dialog-input-message",{warning:this.isErrorWarning})},this.warningMessage.message),Y.createElement("div",{className:Q()("panel-dialog-share-select-area",{warning:this.isErrorWarning})},Y.createElement($e,{onFolderChange:this.handleFolderChange,onPermissionChange:this.onPermissionChange,personalFolderIsBrands:this.projectsEnabled&&this.isCreatingBrand,defaultTeam:this.defaultTeam,disabledTeamIds:this.disabledFolderIds,showPersonalFolder:!0,showHelp:!0})))}}).contextType=ee.r,rt.dialogName="createLibrary",rt.defaultProps={createTitle:"DL_CREATE_DESIGN_LIBRARY",createPlaceholder:"DL_NAME_DESC",isCreatingBrand:!1},rt.propTypes={onCreate:K().func,onClose:K().func,close:K().func,defaultTeam:K().object,isCreatingBrand:K().bool,createTitle:K().string,createPlaceholder:K().string},Qe=it((Je=rt).prototype,"name",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),et=it(Je.prototype,"hasPressedKey",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),tt=it(Je.prototype,"selectedFolder",[qe],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),it(Je.prototype,"writableFolders",[o.computed],Object.getOwnPropertyDescriptor(Je.prototype,"writableFolders"),Je.prototype),Xe=Je))||Xe);var at,st,ct,lt,ut,dt=r(25585),pt=r(31408),ht=r(9276),ft=r(33372),mt=r(51993),gt=r(90885),vt=r(39611),yt=r(16203);function bt(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function _t(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Et=(0,$.Pi)(((ut=class extends Y.Component{constructor(e){super(e),bt(this,"name",ct,this),bt(this,"hasPressedKey",lt,this),this.warningMessage="",this.setInputElement=e=>{this.inputElement=e},this.onClickOK=()=>{this.name=this.name.trim(),this.renameLibrary("click")},this.onTextChange=e=>{e.stopPropagation(),this.name=(0,dt.aS)(e.target.value,p.Z.MAX_INPUT_STRING_LENGTH,!1)},this.onKeyDown=e=>{e.stopPropagation(),"Enter"===e.key&&this.isValidName&&!F.Z.isComposingInputEvent(e)&&(this.renameLibrary("keydown"),this.props.close&&this.props.close()),this.hasPressedKey||(this.hasPressedKey=!0)},this.name=this.props.library.name}get title(){return(0,D.Iu)("DL_RENAME_LIBRARY",{name:this.props.library.name})}componentDidMount(){setTimeout((()=>{this.inputElement.focus(),this.inputElement.select()}))}get isValidName(){const e=this.context.libraryManager.platformFolders.find((e=>this.props.library.parentDirectoryId===e.id));return e&&(0,f.J3)(this.name,e)?(this.warningMessage=(0,D.Iu)("DL_LIBRARY_RENAME_DUPLICATE"),!1):(this.warningMessage=(0,D.Iu)("DL_LIBRARY_NAME_INVALID"),this.props.library.isWritable&&(0,f.QZ)(this.name))}get showWarning(){return this.hasPressedKey&&this.name.trim().length>0&&!this.isValidName}renameLibrary(e){if(j.ZP.reportEvent("Library Operations","Library",e,"rename",null,this.props.library),this.props.library.name=this.name,p.Z.currentProduct.config.showElementActionToasts){const e=this.props.library.isLibrary?"DL_RENAME_SUCCESS_TOAST_LIBRARY":"DL_RENAME_SUCCESS_TOAST";this.context.toastManager.openToast("message",{message:(0,D.Iu)(e),variant:"success"})}}getElementThumbnail(e){return e.type===p.Z.COLOR_ELEMENT_TYPE?Y.createElement("div",{className:"panel-rename-thumbnail"},Y.createElement(ht.Z,{element:e,viewMode:"thumbnail-large",disableInteraction:!0})):e.type===p.Z.COLOR_THEME_ELEMENT_TYPE?Y.createElement("div",{className:"panel-rename-thumbnail"},Y.createElement(ft.Z,{element:e,viewMode:"thumbnail-large",isMosaicView:!1,disableInteraction:!0})):e.type===p.Z.GRADIENT_ELEMENT_TYPE?Y.createElement("div",{className:"panel-rename-thumbnail"},Y.createElement(mt.Z,{element:e,viewMode:"thumbnail-medium",disableInteraction:!0})):(0,yt.Hb)(e)?Y.createElement("div",{className:"panel-rename-thumbnail"},Y.createElement(gt.Z,{element:e,viewMode:"thumbnail-medium",mosaicTileSize:"full",disableInteraction:!0})):Y.createElement("div",{className:"panel-rename-thumbnail"},Y.createElement(pt.Z,{element:e,viewMode:"thumbnail-medium",disableInteraction:!0}))}getThumbnail(){return this.props.isElement?Y.createElement("div",{className:"panel-dialog-layout-15"},this.getElementThumbnail(this.props.library)):Y.createElement("div",{className:"panel-dialog-layout-15"},Y.createElement(vt.Z,{className:"panel-rename-thumbnail",viewMode:"grid",library:this.props.library,renditionGrid:this.props.library.renditionGrid}))}render(){const e=Q()("panel-dialog-layout-85","panel-dialog-input-container",{"panel-dialog-warning":this.showWarning});return p.Z.currentProduct.config.newRenameDialogWithThumbnail?Y.createElement(q.Z,{title:this.title,className:"rename-dialog",okButtonText:(0,D.Iu)("DL_SAVE"),onClickOK:this.onClickOK,close:this.props.close,okButtonEnabled:this.isValidName,showMosaicLibrary:!this.props.isElement},Y.createElement("div",{className:"panel-dialog-layout-group"},this.getThumbnail(),Y.createElement("div",{className:e},Y.createElement("input",{className:"rename-library-input","data-test-id":"rename-library-input",type:"text",spellCheck:"false",placeholder:(0,D.Iu)("DL_NAME_DESC"),style:{width:"100%"},ref:this.setInputElement,value:this.name,onChange:this.onTextChange,onKeyDown:this.onKeyDown}),this.showWarning&&Y.createElement(X.Z,{id:"Alert",height:16}))),this.showWarning&&Y.createElement("div",{"data-test-id":"panel-dialog-name-warning",className:"panel-dialog-input-message"},this.warningMessage)):Y.createElement(q.Z,{title:this.title,className:"rename-dialog",okButtonText:(0,D.Iu)("DL_RENAME"),onClickOK:this.onClickOK,close:this.props.close,okButtonEnabled:this.isValidName},Y.createElement("div",{className:"panel-dialog-layout-group"},Y.createElement("div",{className:e},Y.createElement("input",{className:"rename-library-input","data-test-id":"rename-library-input",type:"text",spellCheck:"false",placeholder:(0,D.Iu)("DL_NAME_DESC"),style:{width:"100%"},ref:this.setInputElement,value:this.name,onChange:this.onTextChange,onKeyDown:this.onKeyDown}),this.showWarning&&Y.createElement(X.Z,{id:"Alert",height:16}))),this.showWarning&&Y.createElement("div",{"data-test-id":"panel-dialog-name-warning",className:"panel-dialog-input-message"},this.warningMessage))}}).contextType=ee.r,ut.dialogName="renameLibrary",ut.propTypes={library:K().oneOfType([K().instanceOf(Ge.W_),K().instanceOf(Ge.Zu)]).isRequired,close:K().func,isElement:K().bool},ct=_t((st=ut).prototype,"name",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),lt=_t(st.prototype,"hasPressedKey",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),at=st))||at;var wt,xt;let Lt=(0,$.Pi)(((xt=class extends Y.Component{constructor(...e){super(...e),this.onClickOK=()=>{var e,t;if(this.context.viewState.isOneUpMode&&this.context.viewState.isOneUpMode()&&this.context.viewState.resetMode(),null!==(e=(t=p.Z.currentProduct).isExpandedView)&&void 0!==e&&e.call(t)&&F.Z.navigateToMosaic("libraries"),this.library.documentId&&this.context.libraryManager.publishedDocumentLibrary===this.library)this.context.libraryManager.unpublish(this.library),this.context.toastManager.openToast("message",{variant:"success",message:(0,D.Iu)("DL_UNPUBLISH_TOAST",{libraryName:this.library.name})});else if((0,f.D3)(this.library)||(0,f.wP)(this.library)){var r,n;this.context.libraryManager.unfollowLibrary(this.library),this.context.toastManager.openToast("message",{variant:"success",message:(0,D.Iu)("DL_UNFOLLOW_TOAST",{libraryName:this.library.name})}),null===(r=(n=p.Z.currentProduct).handleRemoveLibrary)||void 0===r||r.call(n)}else this._defaultDeleteLibrary(this.library)},this._defaultDeleteLibrary=(e,t=!0)=>{this.context.libraryManager.deleteLibrary(e);const r="discard"===e.removeType?"DL_DELETE_TOAST":"DL_LIBRARY_PERMANENTLY_DELETED";t&&this.context.toastManager.openToast("message",{variant:"success",message:(0,D.Iu)(r,{libraryName:this.library.name})})},this.onClickCancel=()=>{j.ZP.reportEvent("Operations","Delete Library","click","cancel")}}get library(){return this.props.library}get deleteType(){return this.library.documentId&&this.context.libraryManager.publishedDocumentLibrary===this.library?"documentLibrary":(0,f.wP)(this.library)?"incoming":"outgoing"===this.library.collaboration?"outgoing":(0,f.D3)(this.library)?"bookmarked":"private"}get title(){return(0,D.Iu)({private:"DL_DELETE_LIBRARY",outgoing:"DL_DELETE_LIBRARY",incoming:"DL_LEAVE_LIBRARY",bookmarked:"DL_REMOVE_FROM_YOUR_LIBRARIES",documentLibrary:"DL_UNPUBLISH_LIBRARY"}[this.deleteType],{name:this.library.name})}get message(){return this.library.documentId&&this.context.libraryManager.publishedDocumentLibrary===this.library?Y.createElement("div",{className:Q()({"uxp-bullet-list":!F.Z.supportsCSSListItem})},Y.createElement("div",{className:"dialog-bullet-item"},` ${(0,D.Iu)("DL_UNPUBLISH_MESSAGE_SHARING")}`),Y.createElement("div",{className:"dialog-bullet-item"},` ${(0,D.Iu)("DL_UNPUBLISH_MESSAGE_ELEMENTS")}`)):(0,D.Iu)({private:"DL_DELETE_MESSAGE",outgoing:"DL_DELETE_MESSAGE_SHARED",incoming:"DL_LEAVE_MESSAGE",bookmarked:"DL_UNFOLLOW_MESSAGE"}[this.deleteType],{name:(0,dt.aS)(this.library.name,48)})}get okButtonText(){return(0,D.Iu)({private:"DL_DELETE",outgoing:"DL_DELETE",incoming:"DL_LEAVE",bookmarked:"DL_UNFOLLOW",documentLibrary:"DL_UNPUBLISH"}[this.deleteType])}render(){return Y.createElement(q.Z,{mode:"warning",title:this.title,className:Q()("wide","delete-dialog"),okButtonText:this.okButtonText,onClickOK:this.onClickOK,onClickCancel:this.onClickCancel,close:this.props.close},Y.createElement("div",{className:"panel-dialog-layout-group"},Y.createElement("div",{"data-test-id":"delete-library-message",className:"panel-dialog-layout-100"},this.message)))}}).contextType=ee.r,xt.dialogName="deleteLibrary",xt.propTypes={library:K().instanceOf(Ge.Zu).isRequired,close:K().func},wt=xt))||wt;var Ot,St,Tt,Pt,It=r(44853);function At(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Ct=(0,$.Pi)((Pt=class extends Y.Component{constructor(e){var t;super(e),(t=Tt)&&Object.defineProperty(this,"val",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0}),this.componentDidMount=()=>{this.noteInput.focus(),this.noteInput.select()},this.onTextChange=e=>{(this.charactersLeft>0||(0,dt.NJ)(e.target.value)<this.count)&&(this.val=(0,dt.aS)(e.target.value,p.Z.NOTES_MAX_CHARACTER_COUNT,!1))},this.onClickOK=()=>{const e=this.val.trim();this.props.element.description!==e&&(this.props.element.description=e)},this.setInputRef=e=>{this.noteInput=e},this.val=this.props.element.description||"",this.title=this.val?(0,D.Iu)("DL_EDIT_NOTE"):(0,D.Iu)("DL_ADD_NOTE")}get count(){return(0,dt.NJ)(this.val)}get charactersLeft(){return p.Z.NOTES_MAX_CHARACTER_COUNT-this.count}get thumbnail(){const e=Z.Z.getComponent(this.props.element.type),t=p.Z.LIST_VIEW_ELEMENT_THUMBNAIL_HEIGHT;return Y.createElement("div",{"data-test-id":"note-dialog-thumbnail-container",className:"note-dialog-thumbnail-container"},Y.createElement(e,{element:this.props.element,viewMode:"thumbnail",width:t}),Y.createElement("div",{className:"panel-dialog-note-element-name-container"},Y.createElement("div",{className:"panel-dialog-note-element-name","data-test-id":"thumbnail-viewmode-name"},this.props.element.name)))}get okButtonEnabled(){return this.count>0||""!==this.props.element.description}render(){return Y.createElement(q.Z,{title:this.title,onClickOK:this.onClickOK,close:this.props.close,okButtonEnabled:this.okButtonEnabled},this.thumbnail,Y.createElement("div",{"data-test-id":"note-dialog-character-count",className:"panel-note-dialog-character-count"},this.charactersLeft),Y.createElement("textarea",{"data-test-id":"note-dialog-textarea",className:"panel-dialog-note-textarea",value:this.val,onChange:this.onTextChange,ref:this.setInputRef,placeholder:(0,D.Iu)("DL_NOTE_DIALOG_PLACEHOLDER")}))}},Pt.dialogName="addNote",Pt.propTypes={element:K().instanceOf(It.Z).isRequired,close:K().func},Tt=At((St=Pt).prototype,"val",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),At(St.prototype,"count",[o.computed],Object.getOwnPropertyDescriptor(St.prototype,"count"),St.prototype),Ot=St))||Ot;var kt,Dt,Nt,Rt,Mt=r(52422);let jt=(0,$.Pi)((Rt=class extends Y.Component{constructor(...e){var t;super(...e),(t=Nt)&&Object.defineProperty(this,"doNotShowAgain",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0}),this.handleClickOK=()=>{this.doNotShowAgain&&(0,x.y6)(this.props.hasDismissCheckbox),this.props.onClickOK()}}render(){return Y.createElement(q.Z,{mode:"warning",title:this.props.title,okButtonText:this.props.okText,onClickOK:this.handleClickOK,close:this.props.close},Y.createElement("div",{"data-test-id":"confirm-message",className:"panel-dialog-layout-100"},this.props.message),this.props.hasDismissCheckbox&&Y.createElement("div",{"data-test-id":"confirm-message-checkbox",className:"confirm-checkbox-wrapper"},Y.createElement(Mt.Z,{onChange:()=>this.doNotShowAgain=!this.doNotShowAgain,checked:this.doNotShowAgain,label:(0,D.Iu)("DL_DISMISS_PERMANENTLY")})))}},Rt.dialogName="confirm",Rt.propTypes={title:K().string.isRequired,message:K().string.isRequired,okText:K().string.isRequired,onClickOK:K().func.isRequired,hasDismissCheckbox:K().string,close:K().func},Ft=(Dt=Rt).prototype,Zt="doNotShowAgain",Bt=[o.observable],Gt={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}},Ut={},Object.keys(Gt).forEach((function(e){Ut[e]=Gt[e]})),Ut.enumerable=!!Ut.enumerable,Ut.configurable=!!Ut.configurable,("value"in Ut||Ut.initializer)&&(Ut.writable=!0),Ut=Bt.slice().reverse().reduce((function(e,t){return t(Ft,Zt,e)||e}),Ut),void 0===Ut.initializer&&(Object.defineProperty(Ft,Zt,Ut),Ut=null),Nt=Ut,kt=Dt))||kt;var Ft,Zt,Bt,Gt,Ut;const Ht={3.11:["DL_WHATS_NEW_XD_IMPROVEMENTS"],3.12:["DL_WHATS_NEW_ONE_UP","DL_WHATS_NEW_RESPONSIVE_LAYOUT","DL_WHATS_NEW_CCD_DRAG_OUT"],3.13:["DL_WHATS_NEW_QUOTA","DL_WHATS_NEW_PUBLISH"],3.14:["DL_WHATS_NEW_NESTED_GROUPS","DL_WHATS_NEW_QUOTA_2"],3.18:["DL_WHATS_NEW_TRANSPARENCY","DL_WHATS_NEW_COLLAPSE_GROUPS"],3.19:["DL_WHATS_NEW_PATH_VIEW","DL_WHATS_NEW_RELINK"],3.22:["DL_WHATS_NEW_GENERAL"],4.4:["DL_WHATS_NEW_COLORS"],4.5:["DL_WHATS_NEW_FONTS","DL_WHATS_NEW_BACKGROUND_SYNC","DL_WHATS_NEW_GENERAL"],4.6:["DL_WHATS_NEW_GENERAL"],4.8:["DL_WHATS_NEW_FONTS","DL_WHATS_NEW_LIBRARY_DELETE","DL_WHATS_NEW_GENERAL"],4.9:["DL_WHATS_NEW_GRADIENTS_PATTERNS","DL_WHATS_NEW_PROJECTS","DL_WHATS_NEW_GENERAL"],4.11:["DL_WHATS_NEW_GENERAL"]},zt=Object.keys(Ht);Ht.latest=Ht[zt[zt.length-1]];const Vt=new class{get whatsNew(){return Ht.latest}};var Yt,Wt,Kt=r(98218);let $t=(0,$.Pi)(((Wt=class extends Y.Component{constructor(...e){super(...e),this.closeClick=()=>{j.ZP.reportEvent("Navigation","Whats New","click","close"),this.props.close&&this.props.close()}}onLearnMoreClick(){(0,R.Pi)()}get featureList(){const e=Vt.whatsNew;return e&&e.map((e=>Y.createElement("div",{className:"panel-dialog-whats-new-list-item",key:e},(0,D.Iu)(e))))}get panelVersion(){return Kt.Z.getPluginVersion()}render(){return Y.createElement(q.Z,{title:(0,D.Iu)("DL_WHATS_NEW_TITLE"),okButtonText:(0,D.Iu)("DL_OK"),cancelButtonText:null,close:this.closeClick},Y.createElement("div",{className:"panel-dialog-layout-group"},Y.createElement("div",{className:"panel-dialog-whats-new"},Y.createElement("div",{className:"date-version"},`${(0,D.Iu)("DL_WHATS_NEW_DATE")} - ${(0,D.Iu)("DL_WHATS_NEW_VERSION",{num:this.panelVersion})}`),Y.createElement("div",null,this.featureList),Y.createElement("div",{className:"panel-dialog-whats-new-learn-more"},Y.createElement("a",{"data-test-id":"whats-new-learn-more",onClick:this.onLearnMoreClick},(0,D.Iu)("DL_LEARN_MORE"))))))}}).dialogName="whatsNew",Wt.propTypes={close:K().func},Yt=Wt))||Yt;var qt,Xt,Jt,Qt,er=r(17552);const tr=new RegExp('^[\\s\\\\<>:/"|?*]+$',"g");let rr=(0,$.Pi)((Qt=class extends Y.Component{constructor(...e){super(...e),function(e,t,r,n){r&&Object.defineProperty(e,"_location",{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}(this,0,Jt,this),this._getTranslatedString=e=>(0,D.Iu)(`DL_${this.props.mode.toUpperCase()}${e?"_"+e.toUpperCase():""}`),this._chooseFile=()=>{if("export"===this.props.mode){const e=!this.props.library.name.match(tr);er.vs(this._location,e?this.props.library.name:(0,D.Iu)("DL_DEFAULT_LIBRARY_NAME")).then(this._parseLocation)}else er.Ue(this._location).then(this._parseLocation)},this._parseLocation=e=>{if("export"===this.props.mode){const t=F.Z.isWindowsOS()?e:e.replace(":.cclibs",":");this._location=F.Z.isWindowsOS()?t:t.replace(":","/")}else this._location=e},this._handleStart=()=>{this.props.onStart(this._location)},this._handleKeyDown=e=>{e.stopPropagation(),"Enter"===e.key&&this._chooseFile()}}get isOkEnabled(){return null!==this._location}get title(){return this._getTranslatedString("library")}get defaultBrowseText(){return this._getTranslatedString("browse_default")}render(){return Y.createElement(q.Z,{title:this.title,okButtonText:this._getTranslatedString(),onClickOK:this._handleStart,cancelButtonText:(0,D.Iu)("DL_CANCEL"),onClickCancel:this.props.close,okButtonEnabled:this.isOkEnabled},Y.createElement("div",{className:"panel-importExport"},Y.createElement("div",{"data-test-id":"description",className:"panel-importExportDescription"},this._getTranslatedString("description")),Y.createElement("div",{className:"panel-importExportLocation"},Y.createElement("div",{"data-test-id":"locationHeader",className:"panel-importExportLocationHeader"},(0,D.Iu)("DL_IMPORT_EXPORT_LOCATION")),Y.createElement("div",{tabIndex:"0","data-test-id":"locationBrowse",className:"panel-importExportBrowse",onClick:this._chooseFile,onKeyDown:this._handleKeyDown},Y.createElement("div",{className:"panel-importExportBrowseButton"},Y.createElement(X.Z,{id:"FolderOpen",height:16})),Y.createElement("div",{"data-test-id":"locationBrowseText",className:"panel-importExportBrowseLocation"},this._location?this._location:this.defaultBrowseText)))))}},Qt.propTypes={library:K().instanceOf(Ge.Zu),mode:K().oneOf(["import","export"]).isRequired,onStart:K().func.isRequired,close:K().func},Jt=function(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}((Xt=Qt).prototype,"_location",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),qt=Xt))||qt;var nr,ir,or,ar,sr,cr,lr=r(82606),ur=r(26964);function dr(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function pr(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const hr={OUT_OF_SPACE:"OutOfSpace",INVALID_DATA:"InvalidData",ACCESS_ERROR:"Access"};let fr=(0,$.Pi)(((cr=class extends Y.Component{constructor(...e){super(...e),dr(this,"_importExportOperation",or,this),dr(this,"_locationCounter",ar,this),dr(this,"progress",sr,this),this.handleProgressUpdate=()=>{this.progress=this._importExportOperation.progress},this._getTranslatedString=(e,t)=>(0,D.Iu)(`DL_${this.props.mode.toUpperCase()}${e?"_"+e.toUpperCase():""}`,t),this._startOperation=()=>{"export"===this.props.mode?(ur.Z.log("Start Export Library"),this._importExportOperation=er.iO(this.props.library,this.props.locations[0],this._handleOperation)):(ur.Z.log("Start Import Library"),this._importExportOperation=er.Lg(this.props.locations[this._locationCounter],this._handleOperation)),this._importExportOperation.addListener("change",this.handleProgressUpdate)},this._handleOperation=(e,t)=>{if(ur.Z.log("Finish Import/Export Library: "+(e?e.code:"export"===this.props.mode?"":t&&t.id)),e){j.ZP.clearExtraEventMetrics(`${this.props.mode}Library`),ur.Z.log("Import Export Error: "+JSON.stringify(e));let t=e&&e.code;"FS_ERROR"!==t||!e.underlyingError||"EACCES"!==e.underlyingError.code&&"ENOENT"!==e.underlyingError.code||(t="ACCESS_ERROR"),"OPERATION_CANCELLED"!==t&&this.props.onError(t);const r="Library Operations",n="export"===this.props.mode?"Export Library":"Import Library",i="export"===this.props.mode?this.props.library:null,o={event:{value:"export"===this.props.mode?this.props.library.elements.value:null}},a=e&&e._message,s=hr[t]||"Generic";j.ZP.reportError(r,n,a,t,s,o,i)}else{this._locationCounter++;const e=this._locationCounter>=this.props.locations.length,r="export"===this.props.mode?this.props.library:t;if(e?this.props.onSuccess(t):this._startOperation(),"import"===this.props.mode){const e={event:{value:"agg",count:r.elements&&r.elements.length},ui:{sequence:"import"},content:{category:"Library Import"}};j.ZP.reportEvent("Add Assets","Element","click","add",e,r),r.elements.length&&(e.event.value="single",r.elements.forEach((t=>{j.ZP.reportElementEvent("Add Assets","Element","click","add",t,e)})))}const n=j.ZP.getExtraEventMetrics(`${this.props.mode}Library`),i=n&&n.content&&n.content.category||"Flyout Menu";j.ZP.reportEvent("Library Operations","export"===this.props.mode?"Export Library":"Import Library","render","success",{event:{value:r.elements.length},content:{category:i}},r),e&&j.ZP.clearExtraEventMetrics(`${this.props.mode}Library`)}},this._handleCancel=()=>{const e=this._locationCounter>=this.props.locations.length;if(this.props.locations.length>1&&!e){const e=this.props.locations.slice(this._locationCounter);this.props.onCancel(e)}else this.props.close()}}get title(){return this._getTranslatedString("library")}componentWillUnmount(){this.context.viewState.setImportExportInProgress(!1),this._importExportOperation&&this._importExportOperation.cancel()}componentDidMount(){this._startOperation(),this.context.viewState.setImportExportInProgress(!0)}get progressTitle(){const e="export"===this.props.mode?"exporting":"importing",t=Math.min(this._locationCounter+1,this.props.locations.length),r=this.props.locations.length;return this.props.locations.length>1?this._getTranslatedString(`${e}_plural`,{completed:t,total:r}):this._getTranslatedString(e)}render(){return Y.createElement(q.Z,{title:this.title,okButtonText:this._getTranslatedString(),okButtonEnabled:!1,cancelButtonText:(0,D.Iu)("DL_CANCEL"),onClickCancel:this._handleCancel,closeOnOutsideClick:!1},Y.createElement("div",{className:"panel-importExport"},Y.createElement(lr.Z,{title:this.progressTitle,progress:this.progress})))}}).contextType=ee.r,cr.propTypes={library:K().instanceOf(Ge.Zu),locations:K().arrayOf(K().string).isRequired,mode:K().oneOf(["import","export"]).isRequired,onSuccess:K().func.isRequired,onError:K().func.isRequired,close:K().func.isRequired,onCancel:K().func.isRequired},or=pr((ir=cr).prototype,"_importExportOperation",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),ar=pr(ir.prototype,"_locationCounter",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),sr=pr(ir.prototype,"progress",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),nr=ir))||nr;var mr,gr;let vr=(0,$.Pi)(((gr=class extends Y.Component{constructor(...e){super(...e),this._getTranslatedString=e=>(0,D.Iu)(`DL_${this.props.mode.toUpperCase()}${e?"_"+e.toUpperCase():""}`)}get title(){return this._getTranslatedString("library_success_title")}render(){return Y.createElement(q.Z,{title:this.title,okButtonText:(0,D.Iu)("DL_OK"),onClickOK:this.props.close,cancelButtonText:null},Y.createElement("div",{className:"panel-importExport"},Y.createElement("div",{"data-test-id":"complete",className:"panel-importExportDescription"},this._getTranslatedString("library_success"))))}}).propTypes={mode:K().oneOf(["import","export"]).isRequired,close:K().func},mr=gr))||mr;var yr,br;let _r=(0,$.Pi)(((br=class extends Y.Component{constructor(...e){super(...e),this._handleOk=()=>{"OUT_OF_SPACE"===this.props.errorCode||"ACCESS_ERROR"===this.props.errorCode||"ENOENT"===this.props.errorCode?this.props.close():R.kX()}}get errorMessage(){const e={OUT_OF_SPACE:`DL_${this.props.mode.toUpperCase()}_ERROR_DISK_SPACE_BODY`,INVALID_DATA:`DL_${this.props.mode.toUpperCase()}_ERROR_INVALID_DATA_BODY`,ACCESS_ERROR:`DL_${this.props.mode.toUpperCase()}_ERROR_ACCESS_BODY`,ENOENT:`DL_${this.props.mode.toUpperCase()}_ERROR_DESTINATION_PATH`};return(0,D.Iu)(e[this.props.errorCode]||"DL_IMPORT_EXPORT_ERROR_CATCH_ALL_BODY")}get okText(){return"OUT_OF_SPACE"===this.props.errorCode||"ACCESS_ERROR"===this.props.errorCode||"ENOENT"===this.props.errorCode?(0,D.Iu)("DL_OK"):(0,D.Iu)("DL_IMPORT_EXPORT_CONTACT_SUPPORT")}get cancelText(){return"OUT_OF_SPACE"===this.props.errorCode||"ACCESS_ERROR"===this.props.errorCode||"ENOENT"===this.props.errorCode?null:(0,D.Iu)("DL_CANCEL")}get title(){return"OUT_OF_SPACE"===this.props.errorCode?(0,D.Iu)(`DL_${this.props.mode.toUpperCase()}_ERROR_DISK_SPACE_HEADER`):"ACCESS_ERROR"===this.props.errorCode?(0,D.Iu)(`DL_${this.props.mode.toUpperCase()}_ERROR_ACCESS_HEADER`):"INVALID_DATA"===this.props.errorCode?(0,D.Iu)(`DL_${this.props.mode.toUpperCase()}_ERROR_INVALID_DATA_HEADER`):"ENOENT"===this.props.errorCode?(0,D.Iu)(`DL_${this.props.mode.toUpperCase()}_ERROR_DESTINATION_PATH_HEADER`):(0,D.Iu)("DL_IMPORT_EXPORT_ERROR_CATCH_ALL_HEADER")}render(){return Y.createElement(q.Z,{title:this.title,mode:"error",okButtonText:this.okText,onClickOK:this._handleOk,cancelButtonText:this.cancelText,onClickCancel:this.props.close},Y.createElement("div",{className:"panel-importExport"},Y.createElement("div",{"data-test-id":"error",className:"panel-importExportDescription"},this.errorMessage)))}}).propTypes={errorCode:K().string,mode:K().oneOf(["import","export"]).isRequired,close:K().func},yr=br))||yr;var Er,wr,xr=r(34038);let Lr=(0,$.Pi)(((wr=class extends Y.Component{constructor(...e){super(...e),this._handleOk=()=>{this.props.close()}}get body(){return Y.createElement("div",{className:"panel-importExport"},Y.createElement("div",{"data-test-id":"cancel",className:"panel-importExportDescription"},Y.createElement("div",{className:"panel-importExport-list-title"},(0,D.Iu)(`DL_${this.props.mode.toUpperCase()}_CANCEL_BODY`)),this.cancelledList))}get cancelledList(){return this.props.cancelledPaths.map((e=>{const t=xr.K3(xr.Bc(e));return Y.createElement("div",{className:"panel-importExport-list-item",key:t},t)}))}get title(){return(0,D.Iu)(`DL_${this.props.mode.toUpperCase()}_CANCEL_HEADER`)}render(){return Y.createElement(q.Z,{title:(0,D.Iu)(`DL_${this.props.mode.toUpperCase()}_CANCEL_HEADER`),onClickOK:this._handleOk,cancelButtonText:null},this.body)}}).propTypes={cancelledPaths:K().arrayOf(K().string).isRequired,mode:K().oneOf(["import"]).isRequired,close:K().func},Er=wr))||Er;var Or,Sr,Tr,Pr,Ir,Ar,Cr;function kr(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function Dr(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Nr=(Or=o.observable.ref,(0,$.Pi)(((Cr=class extends Y.Component{constructor(e){super(e),kr(this,"_errorCode",Pr,this),kr(this,"_locations",Ir,this),kr(this,"_uiState",Ar,this),this._handleStart=e=>{"string"==typeof e&&(e=[e]),this._locations=e,this._uiState="progress"},this._handleSuccess=e=>{this._library=e,this._uiState="complete"},this._handleError=e=>{this._uiState="error",this._errorCode=e},this._handleCancel=e=>{this._locations=e,this._uiState="cancelled"},this._handleCloseAfterCompleteState=()=>{this.props.close(),this._library&&"import"===this.props.mode&&(F.Z.navigateToLibrary(this._library),this._library=null)},this.props.paths&&"import"===this.props.mode&&this._handleStart(this.props.paths)}get initialState(){return Y.createElement(rr,{mode:this.props.mode,library:this.props.library,onStart:this._handleStart,close:this.props.close})}get progressState(){return Y.createElement(fr,{mode:this.props.mode,library:this.props.library,locations:this._locations,onSuccess:this._handleSuccess,onError:this._handleError,onCancel:this._handleCancel,close:this.props.close})}get cancelledState(){return Y.createElement(Lr,{mode:this.props.mode,cancelledPaths:this._locations,close:this.props.close})}get completeState(){return Y.createElement(vr,{mode:this.props.mode,close:this._handleCloseAfterCompleteState})}get errorState(){return Y.createElement(_r,{mode:this.props.mode,errorCode:this._errorCode,close:this.props.close})}render(){return Y.createElement("div",{className:`panel-${this.props.mode}-container`},this[`${this._uiState}State`])}}).dialogName="importExportLibrary",Cr.propTypes={library:K().instanceOf(Ge.Zu),mode:K().oneOf(["import","export"]).isRequired,close:K().func,paths:K().arrayOf(K().string)},Pr=Dr((Tr=Cr).prototype,"_errorCode",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ir=Dr(Tr.prototype,"_locations",[Or],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ar=Dr(Tr.prototype,"_uiState",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"initial"}}),Sr=Tr))||Sr);var Rr,Mr,jr,Fr=r(74149);let Zr=(0,$.Pi)(((jr=class extends Y.Component{constructor(...e){super(...e),this.onContinue=()=>{(0,Fr.uP)(this.props.files,this.props.library)}}get canContinue(){return this.props.files.length>0}get contents(){const e=this.props.messages;if(1===e.length)return Y.createElement("div",{"data-test-id":"drop-files-message",className:"panel-dialog-layout-100"},e[0]);const t=e.map(((e,t)=>Y.createElement("li",{key:t},e)));return Y.createElement("ul",{"data-test-id":"drop-files-bullets",className:"panel-drop-files-dialog-bullet"},t)}render(){return Y.createElement(q.Z,{title:this.props.title,mode:this.canContinue?"info":"error",okButtonText:this.canContinue?(0,D.Iu)("DL_CONTINUE"):null,onClickOK:this.onContinue,close:this.props.close,okButtonEnabled:this.canContinue},this.contents)}}).dialogName="dropFiles",jr.propTypes={title:K().string.isRequired,messages:K().arrayOf(K().string).isRequired,files:K().arrayOf(K().object).isRequired,library:K().instanceOf(Ge.Zu).isRequired,close:K().func},function(e,t,r,n,i){var o={};Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}((Mr=jr).prototype,"contents",[o.computed],Object.getOwnPropertyDescriptor(Mr.prototype,"contents"),Mr.prototype),Rr=Mr))||Rr;var Br,Gr,Ur,Hr=r(72373);let zr=(0,$.Pi)(((Ur=class extends Y.Component{constructor(...e){super(...e),this.toggleRecording=()=>{Hr.Z.setDebugValue("recordMetrics",!this.isRecording)},this.clearRecording=()=>{j.ZP.clearRecordedEvents()}}getDetailsButton(e){return Y.createElement("div",{"data-test-id":"details",className:"panel-analytics-details-button",onClick:()=>alert(`Analytics Event\n${e.details}`)},Y.createElement(X.Z,{id:"Info",height:10}))}get messages(){return j.ZP.recordedEvents.map(((e,t)=>Y.createElement("div",{className:"panel-analytics-log",key:t,"data-test-id":`analytics-log-message-${t}`},Y.createElement("div",{className:"panel-analytics-message","data-test-id":"message"},e.message),this.getDetailsButton(e))))}get isRecording(){return Hr.Z.getDebugValue("recordMetrics")}get recordButton(){const e=Q()("panel-analytics-record-button",{on:this.isRecording});return Y.createElement("div",{className:"panel-analytics-record-button-container"},Y.createElement("div",{"data-test-id":"analytics-record-button",className:e,onClick:this.toggleRecording}),Y.createElement("div",{"data-test-id":"analytics-record-text",className:"panel-analytics-record-text"},this.isRecording?"Recording":"Not Recording"))}get clearButton(){return Y.createElement("button",{"data-test-id":"analytics-clear-button",onClick:this.clearRecording},"Clear Events")}get overrideButton(){if(j.ZP.isEnabled(!0))return;const e=j.ZP.isEnabled()?"Stop using the Force":"Use the Force";return Y.createElement("div",{"data-test-id":"analytics-force-button",className:"panel-analytics-force-button",onClick:()=>j.ZP.setForceEnableAnalytics(!j.ZP.isEnabled())},e)}get enabledState(){return j.ZP.isEnabled(!0)?"enabled":j.ZP.isEnabled()?"forcibly enabled":"disabled"}render(){return Y.createElement(q.Z,{title:"Panel Analytics Events",cancelButtonText:"",close:this.props.close},Y.createElement("div",{className:"panel-analytics-description"},"Record metrics as they are reported (doesn't wait for upload to Ingest)"),Y.createElement("div",{className:"panel-analytics-buttons"},this.recordButton,this.clearButton),Y.createElement("div",{className:"panel-analytics-logs"},this.messages),Y.createElement("div",{"data-test-id":"analytics-state",className:"panel-analytics-state"},"Analytics are ",Y.createElement("b",null,this.enabledState)," for this account"),this.overrideButton)}}).dialogName="analytics",Ur.propTypes={close:K().func},function(e,t,r,n,i){var o={};Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}((Gr=Ur).prototype,"messages",[o.computed],Object.getOwnPropertyDescriptor(Gr.prototype,"messages"),Gr.prototype),Br=Gr))||Br;var Vr,Yr,Wr,Kr,$r,qr,Xr,Jr,Qr,en,tn=r(74379);function rn(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function nn(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let on=(0,$.Pi)(((en=class extends Y.Component{constructor(...e){super(...e),rn(this,"theme",Wr,this),rn(this,"locale",Kr,this),rn(this,"color",$r,this),rn(this,"currentTheme",qr,this),rn(this,"currentLocale",Xr,this),this.themeMap={lighter:"F0F0F0",light:"B8B8B8",dark:"535353",darker:"323232"},rn(this,"switchTheme",Jr,this),rn(this,"switchLocale",Qr,this),this.onClickOK=()=>{F.Z.updateHostInfo(this.locale,this.theme)},this.onClickSecondary=()=>{const e={panelBackgroundColor:{color:tn.E9("535353")}};F.Z.updateHostInfo("en_US",e)}}listItem(e,t,r=!1){const n=e===(r?this.currentTheme:this.currentLocale),i=n?{icon:"Checkmark"}:{},o=Q()("panel-select-menu-item",{"is-selected":n}),a=`${r?"theme":"locale"}-item-${t}`,s=r?this.switchTheme(e):this.switchLocale(e);return Y.createElement("div",{key:a,className:o,onClick:s,tabIndex:"0","data-test-id":`panel-dropdown-menu-item-${a}`},Y.createElement("div",{"data-test-id":"panel-dropdown-menu-item-text",className:"panel-menu-label"},e),Y.createElement("div",{"data-test-id":"panel-dropdown-menu-item-icon",className:"panel-menu-icon"},i.icon?Y.createElement(X.Z,{id:i.icon,height:12}):null))}get themeList(){return Object.keys(this.themeMap).map(((e,t)=>this.listItem(e,t,!0)))}get localeList(){return F.Z.supportedLocales.map(((e,t)=>this.listItem(e,t)))}getThemeName({panelBackgroundColor:e}){const t=e.color,r=tn.vq(t.red,t.green,t.blue);return Object.keys(this.themeMap).find((e=>r.includes(this.themeMap[e])))}render(){return Y.createElement(q.Z,{title:"Panel Color Theme & Locale",okButtonText:"Apply Changes",onClickOK:this.onClickOK,cancelButtonText:"Cancel",close:this.props.close,secondaryButtonText:"Reset",onClickSecondary:this.onClickSecondary},Y.createElement("div",{className:"panel-theme-locale-description"},"Select Panel Color Theme"),Y.createElement("div",{"data-test-id":"theme-list",className:"theme-list"},this.themeList),Y.createElement("div",{"data-test-id":"theme-locale-separator",className:"panel-theme-locale-border"}),Y.createElement("div",{className:"panel-theme-locale-description"},"Select Panel Locale"),Y.createElement("div",{"data-test-id":"locale-list",className:"locale-list"},this.localeList))}}).dialogName="appThemeDebug",en.propTypes={close:K().func},Wr=nn((Yr=en).prototype,"theme",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Kr=nn(Yr.prototype,"locale",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),$r=nn(Yr.prototype,"color",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return tn.E9("535353")}}),qr=nn(Yr.prototype,"currentTheme",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.getThemeName(F.Z.getHostEnvironment().appSkinInfo)}}),Xr=nn(Yr.prototype,"currentLocale",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return F.Z.getLocale(!0)}}),Jr=nn(Yr.prototype,"switchTheme",[o.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>()=>{this.color=tn.$W(this.themeMap[e]),this.theme={panelBackgroundColor:{color:this.color}},this.currentTheme=e}}}),Qr=nn(Yr.prototype,"switchLocale",[o.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>()=>{this.locale=e,this.currentLocale=e}}}),Vr=Yr))||Vr;var an,sn,cn;let ln=(0,$.Pi)(((cn=class extends Y.Component{constructor(...e){super(...e),this.closeOverlay=()=>{this.props.close()}}static canDisplay(){return cd.panel.viewState.isRelinkLayerMode()}get message(){const e=cd.panel.viewState.getState(),t=e&&e.modeParams.overlayMessage;return Y.createElement("div",{"data-test-id":"panel-relink-overlay-message",className:"panel-relink-overlay-message"},t)}render(){return Y.createElement("div",{"data-test-id":"panel-relink-overlay",className:"panel-relink-overlay",onMouseOver:this.closeOverlay,style:{top:cd.panel.viewState.panelHeaderHeight}},this.message)}}).dialogName="relinkLayerOverlay",cn.propTypes={close:K().func.isRequired},function(e,t,r,n,i){var o={};Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}((sn=cn).prototype,"message",[o.computed],Object.getOwnPropertyDescriptor(sn.prototype,"message"),sn.prototype),an=sn))||an;var un,dn;let pn=(0,$.Pi)(((dn=class extends Y.Component{render(){return Y.createElement(q.Z,{title:(0,D.Iu)(this.props.title),okButtonText:(0,D.Iu)("DL_OK"),cancelButtonText:null,close:this.props.close},Y.createElement("div",{"data-test-id":"stock-error-message",className:"panel-dialog-layout-100"},(0,D.Iu)(this.props.message)))}}).dialogName="stockError",dn.propTypes={title:K().string.isRequired,message:K().string.isRequired,close:K().func},un=dn))||un;var hn,fn;let mn=(0,$.Pi)(((fn=class extends Y.Component{constructor(...e){super(...e),this.onClickCancel=()=>this.props.onClickCancel(),this.onClickA=()=>this.props.onClickOK(this.props.licenseA),this.onClickB=()=>this.props.onClickOK(this.props.licenseB)}render(){const e=(0,D.Iu)("DL_STOCK_PURCHASE_DIALOG_TITLE_SAVE_VIDEO"),t=(0,D.Iu)("DL_STOCK_PURCHASE_DIALOG_VIDEO_SAVE_TYPE_MESSAGE"),r=e=>`${e.label} : ${e.resolution}`;return Y.createElement(q.Z,{title:e,okButtonText:this.props.licenseA.label,secondaryButtonText:this.props.licenseB.label,onClickOK:this.onClickA,onClickSecondary:this.onClickB,onClickCancel:this.onClickCancel,close:this.props.close},Y.createElement("div",{"data-test-id":"stock-video-comp-picker-message",className:"panel-dialog-layout-100"},t),Y.createElement("div",{className:"stock-video-comp-picker-description","data-test-id":"stock-video-comp-picker-description"},Y.createElement("span",{className:"panel-video-license-option","data-test-id":"stock-video-comp-picker-description-license-A"},r(this.props.licenseA)),Y.createElement("span",{className:"panel-video-license-option","data-test-id":"stock-video-comp-picker-description-license-B"},r(this.props.licenseB))))}}).dialogName="stockVideoCompPicker",fn.propTypes={licenseA:K().object.isRequired,licenseB:K().object.isRequired,onClickOK:K().func.isRequired,onClickCancel:K().func.isRequired,close:K().func},hn=fn))||hn;var gn=r(33054),vn=r(85080),yn=r(91489),bn=r(82038),_n=r(82530);const En=["className"];function wn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ln(){Ln=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function On(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}let Sn;_n.env.EXCLUDE_SWC||(Sn=new ve.t(["sp-tray"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){On(o,n,i,a,s,"next",e)}function s(e){On(o,n,i,a,s,"throw",e)}a(void 0)}))}}(Ln().mark((function e(){var t,n;return Ln().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(188)]).then(r.bind(r,95638));case 2:return t=e.sent,n=t.Tray,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const Tn=(0,ge.Z)({displayName:"Tray",swcLoader:Sn,fallback:void 0,swcProps:e=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wn(Object(r),!0).forEach((function(t){xn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({class:e.className},function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,En)),tagName:"sp-tray"});var Pn,In;function An(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Cn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?An(Object(r),!0).forEach((function(t){kn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):An(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function kn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let Dn=(0,$.Pi)(((In=class extends Y.Component{constructor(...e){super(...e),this.getDefaultParams=()=>{const e={isOpen:!0,onClose:()=>this.props.close(),hideEvent:"mousedown",ignoreFocus:p.Z.currentProduct.config.ignoreFocusContextMenu};return p.Z.currentProduct.config.ignoreAllContextMenuEvents&&F.Z.isMobileView&&(e.ignoreAllEvents=!0),e},this.overlayState=new vn.Z(this.getDefaultParams()),this.close=()=>{this.overlayState.hideOverlay()},this.setParentRef=e=>{this.overlayState.setParentElement([e,this.props.parentElement])}}get style(){const e=F.Z.getPanelWidth(),t=F.Z.getPanelHeight(),r=this.props.x,n=this.props.y,i=p.Z.MAX_CONTEXT_MENU_WIDTH;let o;o="right"===this.props.position?e-r<i?{left:e-r}:{right:r}:e-r<i?r-i>0?{right:e-r}:{left:e-i}:{left:r};const a=t-n<150?{top:"auto",bottom:t-n}:{top:n};return Object.assign(o,a)}get trayComponent(){const e=["delete","duplicate","copyPublicLibrary","download"],t=this.props.menuItems.map((t=>Cn(Cn({},t),{},{onClick:()=>{t.onClick(),e.includes(t.id)&&this.close()}})));return Y.createElement(Tn,{style:{display:"flex"},ref:this.setParentRef,open:this.overlayState.isOpen,onClose:this.close,items:t},Y.createElement("div",{className:"tray-menu-items","data-test-id":"tray-menu-items"},Y.createElement(bn.Z,{menuData:t})))}get defaultContextMenu(){const e=this.props.menuItems.filter((e=>!e.divider)),t=Math.min(e.length,4);return F.Z.isMobileView&&p.Z.currentProduct.config.useTrayContextMenu?this.trayComponent:Y.createElement("div",{ref:this.setParentRef},Y.createElement(gn.Z,{clientY:this.props.y,menuItems:this.props.menuItems,maxMenuItemsVisible:this.props.maxMenuItemsVisible,minMenuItemsVisible:t,maxWidth:this.props.maxWidth,style:this.style,close:this.close,className:"panel-search-types",triggerRef:this.props.triggerRef}))}get spectrumWrapperContextMenu(){const e=this.props.menuItems.map((e=>Cn(Cn({},e),{},{onClick:()=>{e.onClick(),this.close()}})));return Y.createElement(yn.v2,{style:Cn({maxHeight:"500px",overflowY:"auto"},this.style),ref:this.setParentRef,open:this.overlayState.isOpen,onClose:this.close},Y.createElement(bn.Z,{menuData:e,hideDividers:p.Z.currentProduct.config.hideLibraryActionMenuDivider}))}render(){return p.Z.currentProduct.config.useSpectrumWrapperContextMenu?this.spectrumWrapperContextMenu:this.defaultContextMenu}}).defaultProps={maxMenuItemsVisible:10,triggerRef:void 0},In.propTypes={menuItems:K().array.isRequired,x:K().number.isRequired,y:K().number.isRequired,maxMenuItemsVisible:K().number,maxWidth:K().oneOfType([K().string,K().number]),close:K().func,position:K().string,parentElement:K().object,triggerRef:K().oneOfType([K().func,K().shape({current:K().instanceOf(Element)})])},In.dialogName="contextMenu",Pn=In))||Pn;var Nn,Rn,Mn=r(52844),jn=r(73435),Fn=r(2169);class Zn extends Y.Component{render(){let e;const t={fill:"currentColor",stroke:"#e1e1e1",position:"absolute",width:this.props.size,height:this.props.size,[this.props.horizontalPlacement]:this.props.offset},r=`-${this.props.size}`;return"down"===this.props.direction?(t.bottom=r,e="M 100,0 L 50,50 L 0,0"):(t.top=r,e="M 0,100 L 50,50 L 100,100"),Y.createElement("div",{"data-test-id":"popover-triangle",className:this.props.classes},Y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",style:t},Y.createElement("path",{strokeWidth:"5px",d:e})))}}Zn.defaultProps={offset:"25px",size:"18px",classes:"popover-triangle",horizontalPlacement:"left"},Zn.propTypes={horizontalPlacement:K().oneOf(["left","right"]),offset:K().string,direction:K().oneOf(["up","down"]).isRequired,size:K().string,classes:K().string};let Bn=(0,$.Pi)(((Rn=class extends Y.Component{constructor(...e){super(...e),this.overlayState=new vn.Z({ignoreAllEvents:!this.props.closeOnOverlayEvent,ignoreClickOutsideEvent:!this.props.closeOnWindowClick,ignoreScrollEvents:!0,ignoreResizeEvents:!this.props.closeOnResize,ignoreFocus:!0,onClose:this.props.close,isOpen:!0}),this.onClickOK=()=>{this.props.closeOnButtonClick&&this.props.close(),this.props.onClickOK&&this.props.onClickOK()},this.onClickCancel=()=>{this.props.closeOnButtonClick&&this.props.close(),this.props.onClickCancel&&this.props.onClickCancel()},this._setPopoverParent=e=>{this.overlayState.setParentElement(e),this._popoverParent=e},this.handleWindowClick=e=>{e.stopPropagation(),!this.props.closeOnWindowClick||this._popoverParent&&(0,Fn.rP)(e,this._popoverParent)||this.props.close()}}get popoverPositionStyle(){const e={[this.props.placement]:this.props.y,[this.props.horizontalPlacement]:this.props.x,width:this.props.width};return this.props.minHeight&&(e.height=Math.min(window.innerHeight,this.props.minHeight)+"px",e.overflowY="auto"),e}get popoverTriangle(){if(this.props.showPopoverTriangle)return Y.createElement(Zn,{direction:"bottom"===this.props.placement?"down":"up",horizontalPlacement:this.props.horizontalPlacement,offset:this.props.triangleOffset+"px"})}get okButton(){return this.props.okButtonText&&Y.createElement(Mn.Z,{uxpUseNative:!1,size:this.props.buttonSize,className:Q()({disabled:this.props.isDisabled},"popover-ok-button"),disabled:this.props.isDisabled,"data-test-id":"popover-ok-button",variant:"cta",onClick:()=>{!this.props.isDisabled&&this.onClickOK()}},this.props.okButtonText)}get cancelButton(){return this.props.cancelButtonText&&Y.createElement(Mn.Z,{uxpUseNative:!1,size:this.props.buttonSize,quiet:this.props.cancelButtonQuiet,variant:"secondary","data-test-id":"popover-cancel-button",className:"popover-cancel-button",onClick:this.onClickCancel},this.props.cancelButtonText)}get footer(){if(this.props.hideFooter)return;const e=F.Z.isWindowsOS(),t=Q()("popover-footer",{"popover-footer-vertical":this.props.verticalButtonGroup});return Y.createElement("div",{"data-test-id":"popover-footer",className:t},this.props.additionalFooterContent,Y.createElement(jn.Z,{className:"popover-footer-buttons",preferSpectrumFallback:!0,orientation:this.props.verticalButtonGroup?"vertical":"horizontal"},!e&&Y.createElement(Y.Fragment,null,this.props.additionalFooterButtons,this.cancelButton,this.okButton),e&&Y.createElement(Y.Fragment,null,this.okButton,this.cancelButton,this.props.additionalFooterButtons)))}render(){return Y.createElement("div",{"data-test-id":"popover-wrapper",className:Q()("popover-wrapper",this.props.className),onClick:this.handleWindowClick,onDragEnter:this.props.onDragEnter},Y.createElement("div",{"data-test-id":"popover-layout",ref:this._setPopoverParent,className:"popover-layout",style:this.popoverPositionStyle},this.popoverTriangle,this.props.children,this.footer),this.props.indicators)}}).defaultProps={triangleOffset:25,showPopoverTriangle:!0,closeOnWindowClick:!0,closeOnButtonClick:!0,closeOnOverlayEvent:!0,closeOnResize:!0,horizontalPlacement:"left",hideFooter:!1,onDragEnter:()=>{},verticalButtonGroup:!1,buttonSize:"M"},Rn.propTypes={className:K().string,okButtonText:K().string,cancelButtonText:K().string,cancelButtonQuiet:K().bool,buttonSize:K().string,onClickOK:K().func,onClickCancel:K().func,close:K().func.isRequired,children:K().node,hideFooter:K().bool,indicators:K().node,x:K().oneOfType([K().string,K().number]).isRequired,y:K().number.isRequired,width:K().number,triangleOffset:K().number,placement:K().oneOf(["top","bottom"]).isRequired,horizontalPlacement:K().oneOf(["right","left"]),showPopoverTriangle:K().bool,closeOnWindowClick:K().bool,isDisabled:K().bool,onDragEnter:K().func,closeOnButtonClick:K().bool,closeOnOverlayEvent:K().bool,closeOnResize:K().bool,additionalFooterButtons:K().node,additionalFooterContent:K().node,minHeight:K().number,verticalButtonGroup:K().bool},Nn=Rn))||Nn;const Gn=r.p+"resources/unlock_coachmark.png";var Un,Hn;let zn=(0,$.Pi)(((Hn=class extends Y.Component{constructor(...e){super(...e),this.onClickOK=()=>{this.context.viewState.unlock(this.context.libraryManager.currentLibrary)},this.onClose=()=>{this.props.close()}}get toolkitType(){const e=this.context.libraryManager.currentLibrary&&this.context.libraryManager.currentLibrary.toolkitId;return p.Z.TOOLKIT_TYPES.includes(e)?e.toUpperCase():"GENERIC"}get title(){return Y.createElement("div",{"data-test-id":"popover-title",className:"popover-title"},(0,D.Iu)("DL_TOOLKIT_UNLOCK_POPOVER_TITLE",{toolkitName:this.context.libraryManager.currentLibrary.name}))}get body(){return Y.createElement("div",{"data-test-id":"popover-body",className:"popover-body"},(0,D.Iu)(`DL_${this.toolkitType}_TOOLKIT_UNLOCK_POPOVER_BODY`))}get graphic(){return Y.createElement("img",{"data-test-id":"popover-graphic",className:"popover-graphic",src:Gn})}get y(){return this.context.viewState.panelHeaderHeight}render(){return Y.createElement("div",{className:"coach-mark-with-image"},Y.createElement(Bn,{okButtonText:(0,D.Iu)("DL_MY_TOOLKIT_UNLOCK_POPOVER_UNLOCK_BUTTON"),onClickOK:this.onClickOK,cancelButtonText:(0,D.Iu)("DL_CANCEL"),close:this.onClose,showPopoverTriangle:!1,x:5,y:this.y,placement:"top"},this.graphic,this.title,this.body))}}).contextType=ee.r,Hn.dialogName="unlockToolkit",Hn.propTypes={close:K().func.isRequired},Un=Hn))||Un;var Vn,Yn,Wn;const Kn=p.Z.STORED_RECENT_SEARCH_LIBRARIES_KEY,$n=p.Z.STORED_RECENT_SEARCH_STOCK_KEY;let qn=(0,$.Pi)((Wn=class extends Y.Component{constructor(...e){super(...e),this.onClickOutsideDialog=e=>{this._dialogElement&&(0,Fn.rP)(e,this._dialogElement)||this.onClose()},this.onClearAllClick=()=>{this.context.viewState.clearAllRecentSearches(),this.onClose()},this.onClearItemClick=(e,t)=>{this.context.viewState.clearRecentSearch(e,t),this.context.viewState.hasRecentSearches()?this.forceUpdate():this.onClose()},this.onRecentSearchClick=(e,t)=>{const r=this.context.viewState;"stock"===e?r.setSearchType(e):"stock"===r.getSearchType()&&r.setSearchType("library");const n=r.getSearchText()||"";if(r.setSearchText(t),p.Z.currentProduct.config.reportSearchSDMEvents){const e={"content.category":"brands&libraries","ui.search_keyword":t,"custom.ui.location":"editor","custom.ui.search_type":"recents","custom.ui.keyword_rank":this.recentLibrarySearches.indexOf(t)+1,"custom.search.id":r.getSearchId(),"custom.search.prefix_query":n,"custom.search.suggestion_list_shown":this.recentLibrarySearches},i={"content.category":"brands&libraries","ui.search_keyword":t,"custom.ui.location":"editor","custom.search.id":r.getSearchId(),"custom.search.result_count":r.librariesInViewOrder.length};p.Z.currentProduct.config.reportSearchSDMEvents(e),p.Z.currentProduct.config.reportSearchSDMEvents(i)}this.onClose()},this.onClose=()=>this.props.close(),this.setOverlayElement=e=>{this._dialogElement=e}}get recentStockSearches(){return this.context.viewState.getRecentSearches()[$n].slice(0,p.Z.STORED_RECENT_SEARCH_DISPLAY_LIMIT)}get recentLibrarySearches(){return this.context.viewState.getRecentSearches()[Kn].slice(0,p.Z.STORED_RECENT_SEARCH_DISPLAY_LIMIT)}getListItem(e,t){return Y.createElement("div",{"data-test-id":`list-item-${e}`,className:"panel-recent-search-overlay-list-item",key:e},p.Z.currentProduct.config.enableRecentSearchClockIcons&&Y.createElement(X.Z,{height:18,id:"Clock"}),Y.createElement("div",{className:"recent-search-text-wrapper"},Y.createElement("div",{"data-test-id":"list-item-text",className:"recent-search-text",onClick:()=>this.onRecentSearchClick(t,e)},e)),Y.createElement("div",{"data-test-id":"close-icon",className:"clear-recent-search-icon",onClick:()=>this.onClearItemClick(t,e)},Y.createElement(X.Z,{height:16,id:"Close"})))}get clearAllButton(){return Y.createElement("div",{"data-test-id":"clear-all",className:"panel-recent-search-overlay-header-clear-all",onClick:this.onClearAllClick},(0,D.Iu)("DL_RECENT_SEARCH_OVERLAY_CLEAR_ALL"))}getSearchTypeList(e){const t=e===$n,r=t?this.recentStockSearches:this.recentLibrarySearches,n=p.Z.currentProduct.config.customRecentSearchTitle||"DL_RECENT_SEARCH_OVERLAY_LIBRARY_HEADER",i=t?"DL_RECENT_SEARCH_OVERLAY_STOCK_HEADER":n,o=!p.Z.currentProduct.config.disableClearAllSearches&&(t&&0===this.recentLibrarySearches.length||!t);return Y.createElement(Y.Fragment,null,Y.createElement("div",{"data-test-id":`${e}-header`,className:"panel-recent-search-overlay-header"},Y.createElement("div",{"data-test-id":`${e}-header-text`,className:"panel-recent-search-overlay-header-text"},(0,D.Iu)(i)),o&&this.clearAllButton),r.map((t=>this.getListItem(t,e))))}get recentLibrarySearchList(){if(this.recentLibrarySearches.length)return this.getSearchTypeList(Kn)}get recentStockSearchList(){const e=this.recentLibrarySearches.length>0;if(this.recentStockSearches.length)return Y.createElement(Y.Fragment,null,e&&Y.createElement("div",{"data-test-id":"divider",className:"panel-recent-search-overlay-subdivider"}),this.getSearchTypeList($n))}get topDistance(){return this.context.viewState.searchBarBottom+8}get shouldShowStockList(){return!this.context.viewState.isRootView()&&!this.context.libraryManager.currentLibrary.isDocumentAssets&&!p.Z.currentProduct.config.disableStockSearch}render(){return Y.createElement("div",{"data-test-id":"panel-recent-search-overlay",className:"panel-recent-search-overlay",onClick:this.onClickOutsideDialog,style:{top:this.topDistance}},Y.createElement("div",{className:"panel-recent-search-overlay-content",ref:this.setOverlayElement},this.recentLibrarySearchList,this.shouldShowStockList&&this.recentStockSearchList))}},Wn.contextType=ee.r,Wn.dialogName="recentSearchesOverlay",Wn.propTypes={close:K().func.isRequired},function(e,t,r,n,i){var o={};Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}((Yn=Wn).prototype,"shouldShowStockList",[o.computed],Object.getOwnPropertyDescriptor(Yn.prototype,"shouldShowStockList"),Yn.prototype),Vn=Yn))||Vn;var Xn,Jn,Qn,ei,ti,ri=r(5849);function ni(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let ii=(Xn=o.observable.ref,(0,$.Pi)((ti=class extends Y.Component{constructor(...e){super(...e),function(e,t,r,n){r&&Object.defineProperty(e,"selectedFolder",{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}(this,0,ei,this),this.permission="none",this.handleClickOK=()=>{this.props.promote(this.selectedFolder,this.permission)},this.handleClickCancel=()=>{j.ZP.reportEvent("Operations","Delete Team Library","click","cancel")},this.handleFolderChange=e=>{this.selectedFolder=e,"personal"===(null==e?void 0:e.key)&&(this.permission="none")},this.onPermissionChange=e=>{this.permission=e}}get writableFolders(){return this.props.library.team?this.context.libraryManager.platformFolders.filter((e=>e.id!==this.props.library.team.id)):this.context.libraryManager.platformFolders}componentDidMount(){this.context.libraryManager.refreshTeams(),this.context.libraryManager.fetchLibraryCollaborations(this.props.library,p.Z.FETCH_COLLABORATIONS_THROTTLE)}get projectsEnabled(){return B.Z.get("enableProjects")}get library(){return this.props.library}get disabledFolderIds(){return this.projectsEnabled?this.writableFolders.filter((e=>e.isReadOnly)).map((e=>e.id)):[]}get title(){return(0,D.Iu)("DL_TEAM_LIBRARY_PROMOTE_TITLE")}get message(){return(0,D.Iu)("DL_PROMOTE_TEAM_MESSAGE")}get okButtonText(){return(0,D.Iu)("DL_MOVE")}get dropdown(){return this.writableFolders.length>0&&Y.createElement("div",{className:"panel-dialog-share-select-area promote"},Y.createElement($e,{onFolderChange:this.handleFolderChange,library:this.props.library,onPermissionChange:this.onPermissionChange,selectedFolder:this.selectedFolder,disabledTeamIds:this.disabledFolderIds}))}get warningMessageAndButton(){return Y.createElement("div",{className:"panel-dialog-layout-100 promote-team-message-wrapper"},Y.createElement("div",{className:"dialog-warning"},Y.createElement("div",{className:"promote-team-message-title"},(0,D.Iu)("DL_PROMOTE_TEAM_WARN"))),Y.createElement("div",{"data-test-id":"make-team-library-dialog",className:"make-team-library-dialog"},this.message))}get loadingSpinnerMessage(){return Y.createElement("div",{className:"panel-dialog-collaborator-loading"},Y.createElement("div",{className:"panel-loader"},Y.createElement(ri.Z,{size:"small",indeterminate:!0})),Y.createElement("div",{className:"panel-loading-message"},(0,D.Iu)("DL_LOADING_LIBRARY_COLLABORATORS")))}render(){return Y.createElement(q.Z,{className:Q()("panel-dialog-promote","panel-dialog-share"),title:this.title,okButtonText:this.okButtonText,onClickOK:this.handleClickOK,onClickCancel:this.handleClickCancel,close:this.props.close},Y.createElement("div",{className:"promote-team-dialog"},this.dropdown,(0,f.R3)(this.props.library)&&this.warningMessageAndButton))}},ti.contextType=ee.r,ti.dialogName="promoteLibrary",ti.propTypes={library:K().instanceOf(Ge.Zu).isRequired,close:K().func,promote:K().func.isRequired},ni((Qn=ti).prototype,"writableFolders",[o.computed],Object.getOwnPropertyDescriptor(Qn.prototype,"writableFolders"),Qn.prototype),ei=ni(Qn.prototype,"selectedFolder",[Xn],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.writableFolders[0]}}),Jn=Qn))||Jn);var oi,ai,si,ci,li,ui=r(85878),di=r(5837);function pi(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function hi(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let fi=(0,$.Pi)(((li=class extends Y.Component{constructor(...e){super(...e),pi(this,"name",si,this),pi(this,"hasPressedKey",ci,this),this.handleClickOK=()=>{this.copy()},this.handleClickCancel=()=>{j.ZP.reportEvent("Operations","Copy Team Library","click","cancel")},this.setInputElement=e=>{this.inputElement=e},this.onTextChange=e=>{e.stopPropagation(),this.name=e.target.value},this.onKeyDown=e=>{if(e.stopPropagation(),"Enter"===e.key&&this.isValidName&&!F.Z.isComposingInputEvent(e))return e.preventDefault(),this.copy(),void(this.props.close&&this.props.close());27!==e.keyCode?this.hasPressedKey||(this.hasPressedKey=!0):this.props.close&&this.props.close()}}componentDidMount(){setTimeout((()=>{var e;null===(e=this.inputElement)||void 0===e||e.focus()}))}get library(){return this.props.library}get isBrandLibrary(){return(0,M.Ol)(this.library)}get title(){return(0,D.Iu)(this.isBrandLibrary?"DL_TEAM_BRAND_COPY_TITLE":"DL_TEAM_LIBRARY_COPY_TITLE")}get message(){return Y.createElement("div",{"data-test-id":"copy-dialog-message"},Y.createElement(di.Z,{html:(0,D.Iu)(this.isBrandLibrary?"DL_TEAM_BRAND_COPY_BODY":"DL_TEAM_LIBRARY_COPY_BODY")}))}get okButtonText(){return(0,D.Iu)("DL_SAVE_COPY")}copy(){this.props.copy(this.name)}get warningMessage(){const e=(0,f.SS)(this.name.trim(),this.props.project);return e===p.Z.RENAME_STATES.VALID?this.remainingCharacters<=p.Z.MAX_REMAINING_CHARACTERS_LENGTH?{message:(0,D.Iu)("DL_LIBRARY_NAME_REMAINING_CHARACTERS",{charCount:this.remainingCharacters})}:void 0:{isError:!0,message:(0,D.Iu)(p.Z.RENAME_STATE_ERROR_MESSAGES[e],{charCount:this.remainingCharacters})}}get isOverMaxLength(){return this.name.trim().length>p.Z.MAX_INPUT_STRING_LENGTH}get remainingCharacters(){const e=this.name.trim().length;return p.Z.MAX_INPUT_STRING_LENGTH-e}get isValidName(){return!this.isErrorWarning}get showWarning(){return this.hasPressedKey&&this.name.trim().length>0&&this.warningMessage}get isErrorWarning(){var e;return null===(e=this.warningMessage)||void 0===e?void 0:e.isError}render(){const e=Q()("panel-dialog-layout-75","panel-dialog-input-container",{"panel-dialog-warning":this.showWarning});return Y.createElement(q.Z,{className:Q()("panel-dialog-promote","panel-dialog-share"),title:this.title,okButtonText:this.okButtonText,onClickOK:this.handleClickOK,onClickCancel:this.handleClickCancel,close:this.props.close,okButtonEnabled:this.isValidName},Y.createElement("div",{className:"promote-team-dialog"},Y.createElement("div",{className:"panel-dialog-layout-group"},Y.createElement("div",{className:e},Y.createElement("input",{className:"panel-dialog-input",type:"text","data-test-id":"copy-library-input",spellCheck:"false",placeholder:(0,D.Iu)(this.isBrandLibrary?"DL_CREATE_NEW_BRAND_PLACEHOLDER":"DL_CREATE_NEW_LIBRARY_PLACEHOLDER"),style:{width:"100%"},ref:this.setInputElement,value:this.name,onChange:this.onTextChange,onKeyDown:this.onKeyDown}),this.showWarning&&this.isErrorWarning&&Y.createElement(X.Z,{id:"Alert",height:18}))),this.showWarning&&Y.createElement("div",{"data-test-id":"panel-dialog-name-warning",className:Q()("panel-dialog-input-message",{warning:this.isErrorWarning})},this.warningMessage.message),this.message))}}).contextType=ee.r,li.dialogName="copyTeamLibrary",li.propTypes={library:K().instanceOf(Ge.Zu).isRequired,project:K().instanceOf(ui.SZ).isRequired,permission:K().string,close:K().func,copy:K().func.isRequired},li.defaultProps={permission:"none"},si=hi((ai=li).prototype,"name",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.library.name}}),ci=hi(ai.prototype,"hasPressedKey",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),oi=ai))||oi;var mi,gi;let vi=(0,$.Pi)(((gi=class extends Y.Component{constructor(...e){super(...e),this.onClickOK=()=>{var e,t;if(this.context.viewState.isOneUpMode&&this.context.viewState.isOneUpMode()&&this.context.viewState.resetMode(),null!==(e=(t=p.Z.currentProduct).isExpandedView)&&void 0!==e&&e.call(t)&&F.Z.navigateToMosaic((0,M.Ol)(this.library)?"brands":"libraries"),this.library.documentId&&this.context.libraryManager.publishedDocumentLibrary===this.library)this.context.libraryManager.unpublish(this.library),this.context.toastManager.openToast("message",{variant:"success",message:(0,D.Iu)("DL_UNPUBLISH_TOAST",{libraryName:this.library.name})});else if(this.props.leave){var r,n;this.context.libraryManager.unfollowLibrary(this.library),this.context.toastManager.openToast("message",{variant:"success",message:(0,D.Iu)("DL_UNFOLLOW_TOAST",{libraryName:this.library.name})}),null===(r=(n=p.Z.currentProduct).navigateBackOnDelete)||void 0===r||r.call(n)}else j.ZP.reportEvent("Operations","Delete Team Library","click","ok"),this.context.libraryManager.deleteLibrary(this.library),this.context.toastManager.openToast("message",{variant:"success",message:(0,D.Iu)("DL_DELETE_TOAST",{libraryName:this.library.name})})},this.onClickCancel=()=>{j.ZP.reportEvent("Operations","Delete Team Library","click","cancel")}}get library(){return this.props.library}get deleteType(){return this.props.leave?"leave":this.library.documentId&&this.context.libraryManager.publishedDocumentLibrary===this.library?"unpublish":"delete"}get title(){return(0,D.Iu)({delete:"DL_DELETE_LIBRARY",leave:(0,M.Ol)(this.library)?"DL_REMOVE_FROM_YOUR_BRANDS":"DL_REMOVE_FROM_YOUR_LIBRARIES",unpublish:"DL_UNPUBLISH_LIBRARY"}[this.deleteType],{name:this.library.name})}get message(){return this.props.leave?Y.createElement(Y.Fragment,null,Y.createElement("div",{className:"dialog-bullet-item"},` ${(0,D.Iu)("DL_DELETE_LIBRARY_LINK")}`),Y.createElement("div",{className:"dialog-bullet-item"},` ${(0,D.Iu)((0,M.Ol)(this.library)?"DL_LEAVE_TEAM_BRAND_ACCESS":"DL_LEAVE_TEAM_LIBRARY_ACCESS")}`),Y.createElement("div",{className:"dialog-bullet-item"},` ${(0,D.Iu)((0,M.Ol)(this.library)?"DL_LEAVE_TEAM_REJOIN_BRAND":"DL_LEAVE_TEAM_REJOIN")}`)):this.library.documentId&&this.context.libraryManager.publishedDocumentLibrary===this.library?Y.createElement(Y.Fragment,null,Y.createElement("div",{className:"dialog-bullet-item"},` ${(0,D.Iu)("DL_UNPUBLISH_MESSAGE_SHARING")}`),Y.createElement("div",{className:"dialog-bullet-item"},` ${(0,D.Iu)("DL_UNPUBLISH_MESSAGE_ELEMENTS")}`)):Y.createElement(Y.Fragment,null,Y.createElement("div",{className:"dialog-warning destructive"},Y.createElement(X.Z,{id:"Alert",height:14}),Y.createElement("div",{className:"warning-message-title"},(0,D.Iu)("DL_CANNOT_UNDO_WARNING"))),Y.createElement(Y.Fragment,null,Y.createElement("div",{className:"dialog-bullet-item"},` ${(0,D.Iu)("DL_DELETE_TEAM_LIBRARY_ACCESS")}`),Y.createElement("div",{className:"dialog-bullet-item"},` ${(0,D.Iu)("DL_DELETE_LIBRARY_LINK")}`)))}get okButtonText(){return(0,D.Iu)({delete:"DL_DELETE",leave:"DL_UNFOLLOW",unpublish:"DL_UNPUBLISH"}[this.deleteType])}render(){const e=this.props.leave?"leave-team-library-message":"delete-team-library-message";return Y.createElement(q.Z,{mode:"warning",title:this.title,className:"delete-dialog",okButtonText:this.okButtonText,onClickOK:this.onClickOK,onClickCancel:this.onClickCancel,close:this.props.close},Y.createElement("div",{className:"panel-dialog-layout-group"},Y.createElement("div",{"data-test-id":e,className:Q()("panel-dialog-layout-100",{"uxp-bullet-list":!F.Z.supportsCSSListItem})},this.message)))}}).contextType=ee.r,gi.dialogName="deleteTeamLibrary",gi.propTypes={library:K().instanceOf(Ge.Zu).isRequired,leave:K().bool,close:K().func},mi=gi))||mi;var yi,bi,_i,Ei,wi,xi=r(11437);let Li=(yi=o.observable.ref,(0,$.Pi)((wi=class extends Y.Component{constructor(...e){super(...e),function(e,t,r,n){r&&Object.defineProperty(e,"selectedFolder",{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}(this,0,Ei,this),this.permission=void 0,this.clickOk=()=>{const e=this.props.assetsContainer.elements.some((e=>e.isLinked)),t={event:{value:this.selectedFolder?"Shared":"Private",count:this.props.assetsContainer.getGroups().length},content:{type:e?"local-and-linked":"local"}};j.ZP.reportEvent("Manager","Publish Library","click","publish",t),this.publish()},this.clickCancel=()=>j.ZP.reportEvent("Manager","Publish Library","click","cancel"),this.handleFolderChange=e=>{e&&j.ZP.reportEvent("Manager","Publish Library","click","add-org"),this.selectedFolder=e},this.onPermissionChange=e=>{this.permission=e}}publish(){const e=F.Z.waitForCloudAssetId().then((()=>{const e=this.context.libraryManager;return e.publish(e.documentAssetsContainer,this.selectedFolder,{permissionInheritance:this.permission})}));this.props.onPublish(e)}render(){return Y.createElement(q.Z,{className:"panel-dialog-share",title:(0,D.Iu)("DL_PUBLISH_LIBRARY_TITLE"),okButtonText:(0,D.Iu)("DL_PUBLISH_LIBRARY_CONFIRM"),onClickOK:this.clickOk,onClickCancel:this.clickCancel,close:this.props.close},Y.createElement("div",{className:"panel-dialog-share-select-area"},Y.createElement($e,{onFolderChange:this.handleFolderChange,onPermissionChange:this.onPermissionChange,type:"publish-team-libraries",defaultTeam:this.props.defaultTeam,showPersonalFolder:this.props.showPersonalFolder,showHelp:!0}),Y.createElement("div",{className:"panel-dialog-share-learn-more"},Y.createElement("div",{className:"panel-dialog-share-learn-more-icon"},Y.createElement(X.Z,{id:"Link",height:10})),Y.createElement("a",{tabIndex:"0","data-test-id":"panel-dialog-learn-more-team",onClick:()=>(0,R.Pi)()},(0,D.Iu)("DL_LEARN_MORE")))))}},wi.contextType=ee.r,wi.dialogName="publishLibrary",wi.propTypes={assetsContainer:K().instanceOf(xi.Z),defaultTeam:K().object,showPersonalFolder:K().bool,close:K().func,onPublish:K().func},wi.defaultProps={onPublish:()=>{},showPersonalFolder:!0},Ei=function(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}((_i=wi).prototype,"selectedFolder",[yi],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.defaultTeam}}),bi=_i))||bi);var Oi,Si,Ti=r(62061);let Pi=(0,$.Pi)(((Si=class extends Y.Component{constructor(...e){super(...e),this.onClose=()=>{(0,x.y6)("quotaUpdate"),this.props.close()},this.onClickManage=()=>{(0,x.y6)("quotaUpdate"),(0,R.uF)(this.context.libraryManager.currentLibrary,"Quota Message"),this.props.close()}}get title(){return Y.createElement("div",{"data-test-id":"popover-title",className:"popover-title"},(0,D.Iu)("DL_QUOTA_WARNING_DIALOG_TITLE"))}get body(){const e=(0,Ti.d3)(this.context.libraryManager.userQuota.storage_used,1),t=(0,Ti.d3)(this.context.libraryManager.userQuota.storage_quota,1),r=(0,Ti.d3)(this.context.libraryManager.storageUsed,1);return Y.createElement("div",{"data-test-id":"popover-body",className:"popover-body"},(0,D.Iu)("DL_QUOTA_WARNING_DIALOG_BODY",{usedStorage:e,totalStorage:t,librariesSize:r}))}render(){return Y.createElement("div",null,Y.createElement(Bn,{okButtonText:(0,D.Iu)("DL_LIBRARY_MANAGER_MANAGE"),onClickOK:this.onClickManage,close:this.onClose,x:5,y:31,triangleOffset:10,placement:"bottom"},this.title,this.body))}}).contextType=ee.r,Si.dialogName="quotaWarningPopover",Si.isAlwaysInline=!0,Si.propTypes={close:K().func.isRequired},Oi=Si))||Oi;const Ii="owned",Ai="shared";class Ci extends Y.Component{constructor(...e){super(...e),this.onClose=()=>this.props.close(),this.onClickOK=()=>{this.props.errorType===Ii&&(0,R.uF)(),this.onClose()}}shouldComponentUpdate(){return!1}get title(){return Y.createElement("div",{"data-test-id":"popover-title",className:"popover-title"},(0,D.Iu)(`DL_OVER_QUOTA_${1===this.libraries.length?"LIBRARY":"LIBRARIES"}_ERROR_TITLE`,{libraryName:this.libraries[0]&&this.libraries[0].name}))}get body(){let e="DL_OVER_QUOTA_LIBRARY_ERROR_BODY";return this.props.errorType===Ai&&(e=`DL_OVER_QUOTA_SHARED_${1===this.libraries.length?"LIBRARY":"LIBRARIES"}_ERROR_BODY`),Y.createElement("div",{"data-test-id":"popover-body",className:"popover-body"},(0,D.Iu)(e))}get sharedQuotaErrorLibraries(){return(0,f.cm)()}get ownedQuotaErrorLibraries(){return(0,f.Iu)()}get libraries(){return this.props.errorType===Ii?this.ownedQuotaErrorLibraries:this.sharedQuotaErrorLibraries}render(){return Y.createElement("div",null,Y.createElement(Bn,{okButtonText:(0,D.Iu)("owned"===this.props.errorType?"DL_LIBRARY_MANAGER_MANAGE":"DL_OK"),onClickOK:this.onClickOK,close:this.onClose,x:5,y:31,triangleOffset:10,placement:"bottom"},this.title,this.body))}}var ki,Di;Ci.contextType=ee.r,Ci.dialogName="overQuotaError",Ci.isAlwaysInline=!0,Ci.defaultProps={errorType:Ii},Ci.propTypes={close:K().func.isRequired,errorType:K().oneOf([Ii,Ai]).isRequired};let Ni=(0,$.Pi)(((Di=class extends Y.Component{constructor(...e){super(...e),this.onClickOK=()=>F.Z.openSaveAs().then((e=>{e&&this.props.onSave&&this.props.onSave()}))}get message(){return Y.createElement("div",{className:"panel-dialog-illustrated-message"},Y.createElement("div",{"data-test-id":"save-cloud-doc-illustration",className:`panel-dialog-illustrated-message-image ${F.Z.getAppName()}`}),Y.createElement("div",{"data-test-id":"save-cloud-doc-heading",className:"panel-dialog-illustrated-message-heading"},(0,D.Iu)(`DL_SAVE_CLOUD_DOC_HEADING_${F.Z.getAppName()}`)),Y.createElement("div",{"data-test-id":"save-cloud-doc-message",className:"panel-dialog-illustrated-message-description"},(0,D.Iu)("DL_SAVE_CLOUD_DOC_MESSAGE")))}render(){return Y.createElement(q.Z,{className:"panel-dialog-save-cloud-doc",okButtonText:(0,D.Iu)("DL_SAVE_CLOUD_DOC_CONFIRM"),onClickOK:this.onClickOK,close:this.props.close},Y.createElement("div",{className:"panel-dialog-layout-100"},this.message))}}).dialogName="saveCloudDoc",Di.propTypes={onSave:K().func,close:K().func},ki=Di))||ki;var Ri,Mi;let ji=(0,$.Pi)(((Mi=class extends Y.Component{constructor(...e){super(...e),this.onClose=()=>{this.props.close()},this.enableSync=()=>{this.onClose(),this.context.libraryManager.enableSyncing()}}get title(){return Y.createElement("div",{"data-test-id":"popover-title",className:"popover-title"},(0,D.Iu)("DL_LAUNCH_CC_APP_TITLE"))}get body(){return Y.createElement("div",{"data-test-id":"popover-body",className:"popover-body"},(0,D.Iu)("DL_LAUNCH_CC_APP_MESSAGE"))}render(){return Y.createElement("div",null,Y.createElement(Bn,{okButtonText:(0,D.Iu)("DL_LAUNCH_CC_APP_ENABLE_BUTTON"),onClickOK:this.enableSync,close:this.onClose,x:5,y:31,triangleOffset:10,placement:"bottom"},this.title,this.body))}}).contextType=ee.r,Mi.dialogName="enableSyncPopup",Mi.isAlwaysInline=!0,Mi.propTypes={close:K().func.isRequired},Ri=Mi))||Ri;var Fi=r(6535),Zi=r(82530);const Bi=["className","renderLabel","readOnly","label","checked","disabled","invalid","indeterminate","emphasized","children","onChange"];function Gi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ui(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gi(Object(r),!0).forEach((function(t){Hi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Hi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zi(){zi=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Vi(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Yi=(0,ye.Z)(r(82701)).default;let Wi;Zi.env.EXCLUDE_SWC||(Wi=new ve.t(["sp-checkbox"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Vi(o,n,i,a,s,"next",e)}function s(e){Vi(o,n,i,a,s,"throw",e)}a(void 0)}))}}(zi().mark((function e(){var t,n;return zi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(5987),r.e(2261)]).then(r.bind(r,88399));case 2:return t=e.sent,n=t.Checkbox,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const Ki=(0,ge.Z)({displayName:"Checkbox",fallback:Yi,swcLoader:Wi,SWCWrapper:e=>{const t=(0,Y.useRef)(null),r=e.className,n=e.renderLabel,i=void 0===n||n,o=e.readOnly,a=e.label,s=e.checked,c=e.disabled,l=e.invalid,u=e.indeterminate,d=e.emphasized,p=e.children,h=e.onChange,f=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,Bi);(0,Y.useEffect)((()=>{const e=t.current,r=e=>{const t=e.target;null==h||h(t.checked,e)};return e&&h&&e.addEventListener("change",r),()=>{e&&h&&e.removeEventListener("change",r)}}),[h]);const m=(0,me.Co)("sp-checkbox");return Y.createElement(m,Ui(Ui(Ui({},f),(0,me.cd)({checked:s,disabled:c,emphasized:d,indeterminate:u,invalid:l,readonly:o})),{},{class:r,ref:t}),i?a:"",p)},tagName:"sp-checkbox"});var $i,qi,Xi,Ji,Qi,eo,to,ro,no,io,oo,ao,so=r(68548);function co(){return co=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},co.apply(this,arguments)}function lo(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function uo(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}window.setImmediate=window.setImmediate||window.setTimeout;const po={BRAND:"brand",LIBRARY:"library",GROUP:"group"},ho={[po.BRAND]:{tooltip:"DL_ADD_BRAND_TOOLTIP",icon:"CCXCreateBrandPlus",inputHeader:"DL_CREATE_BRAND_HEADER_TITLE",title:"DL_CREATE_NEW_BRAND_LIBRARY",getInputPlaceholder:()=>(0,D.Iu)("DL_CREATE_NEW_BRAND_PLACEHOLDER")},[po.LIBRARY]:{tooltip:"DL_ADD_LIBRARY_TOOLTIP",icon:"AddCCLibrary",inputHeader:"DL_CREATE_LIBRARY_HEADER_TITLE",title:"DL_CREATE_DESIGN_LIBRARY",getInputPlaceholder:()=>(0,D.Iu)("DL_CREATE_NEW_LIBRARY_PLACEHOLDER")},[po.GROUP]:{tooltip:"DL_ADD_GROUP_TOOLTIP",icon:"AddGroup",inputHeader:"DL_CREATE_GROUP_HEADER_TITLE",title:"DL_CREATE_NEW_GROUP",getInputPlaceholder:e=>(0,h.xr)(e)}};let fo=($i=o.observable.ref,qi=o.observable.ref,Xi=o.observable.ref,(0,$.Pi)(((ao=class extends Y.Component{constructor(...e){super(...e),lo(this,"createModeType",eo,this),lo(this,"name",to,this),lo(this,"_selectedLibrary",ro,this),lo(this,"selectedGroup",no,this),lo(this,"selectedFolder",io,this),lo(this,"_makeCurrentLibraryDefault",oo,this),this.disposeZeroLibrariesReaction=void 0,this.setSelectedLibrary=e=>{var t,r;this._selectedLibrary=e,null===(t=(r=this.props).onChange)||void 0===t||t.call(r,{library:e,group:this.selectedGroup})},this.setSelectedGroup=e=>{var t,r;this.selectedGroup=e,null===(t=(r=this.props).onChange)||void 0===t||t.call(r,{library:this.selectedLibrary,group:e})},this.clearSelectedLibrary=()=>{var e,t;this._selectedLibrary=null,null===(e=(t=this.props).onChange)||void 0===e||e.call(t,{library:void 0,group:this.selectedGroup})},this.shouldDisableSubmission=()=>!this.selectedLibrary&&!this.createData||!(!this.isDocumentAssets||this.selectedGroup)||!(!this.createData||this.nameStatus===p.Z.RENAME_STATES.VALID)||!(this.createData||!this.selectedLibrary||this.validateTarget({library:this.selectedLibrary}))||void 0,this.shouldAllowBack=e=>e&&(!this.isDocumentAssets||this.selectedGroup),this.shouldHideFooterIcon=e=>!(!this.showGroupPicker||e===po.GROUP)||!this.showGroupPicker&&e===po.GROUP||e===po.BRAND&&!B.Z.get("brandFeatureEnabled")||!!this.createData,this.shouldDisableFooterIcon=()=>{if(this.selectedGroup&&!this.validateTarget({group:this.selectedGroup,library:this.selectedLibrary}))return!0},this.setSelectedGroupToParent=()=>{var e,t;this.selectedGroup=this.selectedGroup.parent,null===(e=(t=this.props).onChange)||void 0===e||e.call(t,{library:this.selectedLibrary,group:this.selectedGroup})},this.onClickBack=()=>this.selectedGroup?this.setSelectedGroupToParent():this.clearSelectedLibrary(),this.getHeader=(e,t)=>{const r=Q()("popover-title","select-target-title-container",{"select-target-header-border":!this.createData,"popover-title-empty":this.showLoading});return Y.createElement("div",{"data-test-id":"popover-title",className:r},Y.createElement("div",{className:"select-target-operation-row","data-test-id":"select-target-operation-row"},Y.createElement("div",{className:"select-target-operation","data-test-id":"select-target-operation"},this.operationTitle),this.props.enableSetAsDefault&&!this.showLoading&&Y.createElement("div",{className:"select-target-header-icons"},this.createIcons),Y.createElement("div",{className:"select-target-close","data-test-id":"select-target-close",onClick:this.props.close},Y.createElement(X.Z,{id:"Close",height:20,width:20}))),e&&Y.createElement("div",{className:"select-target-name-row","data-test-id":"select-target-name-row"},this.shouldAllowBack(t)&&Y.createElement("div",{className:"select-target-back","data-test-id":"select-target-back-arrow",onClick:this.onClickBack},Y.createElement(X.Z,{id:"BackArrow",height:16,width:16})),Y.createElement("div",{"data-test-id":"select-target-item-name",className:"select-target-name"},t?t.name:(0,D.Iu)("DL_SELECT_LIBRARY"))))},this.onClickFooterIcon=e=>{this.shouldDisableFooterIcon()||(this.createModeType=e,this.name=this.createData.getInputPlaceholder(this.currentGroupBranch),this.selectedFolder=void 0)},this.getFooterIcon=e=>{var t;if(this.shouldHideFooterIcon(e))return;const r=ho[e],n=r.icon,i=r.tooltip,o=Q()("select-target-footer-icon",{disabled:this.shouldDisableFooterIcon()}),a=null!==(t=p.Z.currentProduct.config.copyMoveFooterIconSize)&&void 0!==t?t:14;return Y.createElement(Ie.Z,{content:(0,D.Iu)(i),key:e},Y.createElement("div",{className:o,"data-test-id":`select-target-footer-icon-${e}`,onClick:()=>this.onClickFooterIcon(e)},Y.createElement(X.Z,{id:n,width:a,height:a})))},this.onClickCell=(e,t)=>{e||(t.isGroup?this.setSelectedGroup(t):(t===this.selectedLibrary?this.clearSelectedLibrary():this.setSelectedLibrary(t),this._makeCurrentLibraryDefault=!1))},this.getTargetItem=e=>{const t=e.isGroup?"group":"library";if(e&&e.isGroup&&e.hideWhenEmpty&&0===e.children.length)return;const r=e.isLibrary&&e===this.selectedLibrary,n=!this.validateTarget("group"===t?{group:e}:{library:e}),i=this.props.getTargetProps(e).className,o=Q()("select-target-cell",`copymove-${t}`,{"select-target-cell-disabled":n},{"select-target-cell-selected":r},i),a=this.getCellIcons(e);return p.Z.currentProduct.config.showMosaicViewInSelectLibraryPicker?Y.createElement("div",{key:e.id,"data-test-id":`${this.props.id}-${t}-${e.id}`,className:o,onClick:()=>this.onClickCell(n,e)},a.left,Y.createElement(vt.Z,{className:"select-target-cell-mosaic",viewMode:"grid",library:e,renditionGrid:e.renditionGrid}),Y.createElement(Ie.Z,{content:e.name},Y.createElement("div",{className:"select-target-cell-text","data-test-id":`${this.props.id}-${t}-${e.id}-text`},e.name)),a.right):Y.createElement("div",{key:e.id,"data-test-id":`${this.props.id}-${t}-${e.id}`,className:o,onClick:()=>this.onClickCell(n,e)},a.left,Y.createElement(Ie.Z,{content:e.name},Y.createElement("div",{className:"select-target-cell-text","data-test-id":`${this.props.id}-${t}-${e.id}-text`},e.name)),a.right)},this.getCellIcons=e=>{const t={left:void 0,right:void 0};return null!=e&&e.documentId&&(t.left=this.getCellIconElement("LinkedLibrary","left")),e.isLibrary&&(0,M.Ol)(e)&&(t.left=this.getCellIconElement("CCXCreateLogo","left")),this.props.disableGroupSelection||(t.right=this.getCellIconElement("ChevronRightSmall","right")),e===this.selectedLibrary&&(t.right=this.getCellIconElement("Checkmark","right")),t},this.getCellIconElement=(e,t)=>{var r;const n=null!==(r=p.Z.currentProduct.config.copyMoveListItemIconSize)&&void 0!==r?r:8;return Y.createElement("div",{className:`select-target-cell-icon-${t}`,"data-test-id":`select-target-cell-icon-${t}-${e}`},Y.createElement(X.Z,{id:e,width:n,height:n}))},this.setInputElement=e=>{this.inputElement=e,setImmediate((()=>{this.inputElement&&(this.inputElement.select(),this.inputElement.focus())}))},this.validateTarget=e=>{const t=e.library;if(this.props.validateTarget)return this.props.validateTarget(e);if(!t)return!1;const r=t!==this.context.libraryManager.currentLibrary;return!!this.context.viewState.isLibraryWritable(t,!1,r)},this.onTextChange=e=>{this.name=(0,dt.aS)(e.target.value,p.Z.MAX_INPUT_STRING_LENGTH,!1),this.itemName.length||(this.name="")},this.onKeyDown=e=>{"Enter"!==e.key||F.Z.isComposingInputEvent(e)?"Escape"===e.key&&this.cancelCreateMode():this.shouldDisableSubmission()||this.submitAction(e),e.stopPropagation()},this.onSubmit=()=>{const e={};this.makeCurrentLibraryDefault&&(e.ccl={set_as_default:!0}),this.props.onSubmit({library:this.selectedLibrary,group:this.selectedGroup,extraMetrics:e})},this.cancelCreateMode=()=>{this.createModeType=null},this.createGroupAction=()=>{var e,t;const r=this.selectedGroup?(0,h.yF)(this.selectedGroup,this.itemName,!1):(0,f.sS)(this.selectedLibrary,this.itemName);return null===(e=(t=this.props).onCreateGroup)||void 0===e||e.call(t,r),this.setSelectedGroup(r),r},this._createTeamLibrary=()=>this.context.libraryManager.createTeamLibrary(this.selectedFolder.id,this.itemName,{permissionInheritance:this.permission}),this._createPersonalLibrary=()=>this.context.libraryManager.createLibrary(this.itemName),this.createLibraryAction=e=>{const t=this.context.libraryManager,r=t.areLibrariesLoaded&&!t.libraries.length,n=this.selectedFolder?this._createTeamLibrary():this._createPersonalLibrary();return this.setSelectedLibrary(n),j.ZP.reportEvent("Create Library","New Library",e,"create",{ccl:{is_creating_first_library:r}},n),n},this.createBrandAction=()=>{const e=this.createLibraryAction();return cd.panel.brandActions.brandLibrary(e),e},this._createActions={[po.GROUP]:this.createGroupAction,[po.LIBRARY]:this.createLibraryAction,[po.BRAND]:this.createBrandAction},this.submitAction=e=>{const t="keydown"===(null==e?void 0:e.type)?e.type:"click",r=this._createActions[this.createModeType];return r?(this.cancelCreateMode(),r(t)):this.selectedLibrary?(this.makeCurrentLibraryDefault&&this.context.libraryManager.setDefaultLibrary(this.selectedLibrary),this.onSubmit()):void 0},this.handleFolderChange=e=>{this.selectedFolder=e},this.handleDragEnter=e=>{e.preventDefault(),this.props.close()},this.onPermissionChange=e=>{this.permission=e},this.onClickCancel=()=>{this.shouldCloseOnCancel&&this.props.close(),this.cancelCreateMode()}}get groupsTree(){if(!this.showGroupPicker)return;const e=this.context.viewState.elementSortState,t="modified"===e?"order":e;return(0,h.Oi)([],this.selectedLibrary.getGroups(),{sortBy:t,includeUngrouped:!1})}componentDidMount(){this.disposeZeroLibrariesReaction=(0,o.when)((()=>this.areLibrariesLoaded&&this.zeroLoadedLibraries),(()=>this.createModeType="library"))}componentWillUnmount(){this.disposeZeroLibrariesReaction()}get selectedLibrary(){return void 0===this._selectedLibrary?this.props.startingLibrary:this._selectedLibrary}get makeCurrentLibraryDefault(){return this.selectedLibrary===this.defaultLibrary||this._makeCurrentLibraryDefault}get defaultLibrary(){if(this.props.enableSetAsDefault)return this.context.libraryManager.getDefaultLibrary()}get areLibrariesLoaded(){return this.context.libraryManager.areLibrariesLoaded}get areLibrariesLoading(){return this.context.libraryManager.areLibrariesLoading}get zeroLoadedLibraries(){return!this.context.libraryManager.activeLibraries.length}get showLoading(){return this.zeroLoadedLibraries&&this.areLibrariesLoading}get showCreateActionsInHeader(){return this.props.enableSetAsDefault}get isDocumentAssets(){return this.props.isDocumentAssets}get operationTitle(){return this.showLoading?"":this.createData?(0,D.Iu)(this.createData.title):(0,D.Iu)(this.props.title)}get showGroupPicker(){return this.selectedLibrary&&!this.props.disableGroupSelection}get header(){return this.createData?this.getHeader(!1):this.selectedGroup||this.showGroupPicker?this.selectedGroup?this.getHeader(!0,this.selectedGroup):this.getHeader(!0,this.selectedLibrary):this.getHeader(!this.props.disableGroupSelection)}get x(){var e;const t=p.Z.currentProduct.config.panelWidthAdjustment||0,r=F.Z.getHostContainerWidth()+t,n=null!==(e=this.props.width)&&void 0!==e?e:p.Z.DEFAULT_SELECT_TARGET_POPOVER_WIDTH;if(r<n)return 0;const i=this.props.x+n-r;return this.props.x-Math.max(0,i)}get y(){var e;const t=F.Z.getHostContainerHeight(),r=null!==(e=this.props.height)&&void 0!==e?e:p.Z.DEFAULT_SELECT_TARGET_POPOVER_HEIGHT;if(t<r)return 0;const n=this.props.y+r-t;return this.props.y-Math.max(0,n)}get nameStatus(){return this.showGroupPicker?(0,h.PR)(this.itemName,null,this.currentGroupBranch):(0,f.SS)(this.itemName,this.selectedFolder)}get itemName(){return this.name.trim()}get currentGroupBranch(){if(!this.showGroupPicker)return;const e=this.groupsTree,t=e.branches,r=e.root;return this.selectedGroup?t[this.selectedGroup.id]:r}get groupItems(){if(this.showGroupPicker)return this.currentGroupBranch.children.map((e=>e.item))}get emptyGroupMessageLabel(){return this.props.emptyGroupMessageLabel}get defaultPickerBody(){if(this.showLoading)return this.loadingSpinner;if(this.showGroupPicker){const e=this.groupItems;return e&&0!==e.length?e.map((e=>this.getTargetItem(e))):Y.createElement("div",{"data-test-id":"select-target-empty-group-message",className:"select-target-empty-group-message"},this.emptyGroupMessageLabel)}return this.context.libraryManager.activeLibraries.map((e=>this.getTargetItem(e)))}get createInputHeader(){if(p.Z.currentProduct.config.enableCopyMovePickerCreateInputHeader)return Y.createElement("div",{className:"select-target-create-input-header","data-test-id":"select-target-create-input-header"},(0,D.Iu)(this.createData.inputHeader))}get createGroupOrLibPickerBody(){const e=this.nameStatus!==p.Z.RENAME_STATES.VALID&&this.name.trim().length>0;return Y.createElement("div",{className:Q()("select-target-create-container","panel-dialog-share",{invalid:e})},this.createInputHeader,Y.createElement("div",{className:"select-target-create-input-wrapper"},Y.createElement("input",{className:"panel-dialog-input",type:"text","data-test-id":`${this.props.id}-create-input`,spellCheck:"false",placeholder:(0,D.Iu)(this.showGroupPicker?"DL_EDIT_GROUP_NAME_PLACEHOLDER":"DL_CREATE_NEW_LIBRARY_PLACEHOLDER"),ref:this.setInputElement,value:this.name,onChange:this.onTextChange,onKeyDown:this.onKeyDown}),e&&Y.createElement("div",{"data-test-id":"select-target-alert-tooltip"},Y.createElement(Ie.Z,{className:"select-target-alert-tooltip",placement:"top",content:(0,D.Iu)(p.Z.RENAME_STATE_ERROR_MESSAGES[this.nameStatus])},Y.createElement(X.Z,{className:"select-target-alert-icon","data-test-id":"select-target-alert-icon",id:"Alert",height:12})))),!this.showGroupPicker&&Y.createElement($e,{onFolderChange:this.handleFolderChange,onPermissionChange:this.onPermissionChange,showPersonalFolder:!0,personalFolderIsBrands:this.createModeType===po.BRAND,iconSize:p.Z.currentProduct.config.copyMoveTeamSelectorIconSize||"S"}))}get okButtonLabel(){return this.createData?(0,D.Iu)("DL_CREATE"):(0,D.Iu)(this.props.okButtonText)}get createData(){if(this.createModeType)return ho[this.createModeType]}get inputPlaceholder(){if(this.createData)return this.createData.getInputPlaceholder()}get createIcons(){return Y.createElement(Y.Fragment,null,p.Z.currentProduct.config.showSyncIconInSelectLibraryPicker&&Y.createElement(so.Z,null),!p.Z.currentProduct.config.hideIconsInSelectLibraryPicker&&Object.values(po).map((e=>this.getFooterIcon(e))))}get additionalFooterContent(){return this.props.additionalFooterContent}get disableSetAsDefaultLibraryCheckbox(){var e;return!this.selectedLibrary||!(null!==(e=this.selectedLibrary)&&void 0!==e&&e.isWritable)||!this.validateTarget({library:this.selectedLibrary})}get footer(){if(!this.createData||this.mergeInfo)return!this.showGroupPicker&&this.props.enableSetAsDefault?Y.createElement("div",{className:"select-target-footer"},Y.createElement(Ki,{"data-test-id":"select-target-set-as-default-checkbox",onChange:e=>this._makeCurrentLibraryDefault=e,checked:this.makeCurrentLibraryDefault,disabled:this.disableSetAsDefaultLibraryCheckbox,label:(0,D.Iu)("DL_SET_AS_DEFAULT_LIBRARY")})):Y.createElement("div",{"data-test-id":"select-target-footer",className:"select-target-footer"},this.createIcons,this.additionalFooterContent)}get loadingSpinner(){return Y.createElement("div",null,Y.createElement(ri.Z,{size:"large","data-test-id":"select-target-loading-spinner",indeterminate:!0}))}get cancelButtonText(){if(this.createData||p.Z.currentProduct.config.showCancelInSelectLibraryPicker)return(0,D.Iu)("DL_CANCEL")}get shouldCloseOnCancel(){return!this.createData||this.zeroLoadedLibraries&&this.areLibrariesLoaded}render(){const e=Q()("select-target-body",{"select-target-creating-body":this.createData,"select-target-loading":this.showLoading});return Y.createElement(Bn,co({},this.props,{okButtonText:this.okButtonLabel,cancelButtonText:this.cancelButtonText,cancelButtonQuiet:p.Z.currentProduct.config.cancelButtonQuiet,onClickOK:this.submitAction,onClickCancel:this.onClickCancel,onDragEnter:this.handleDragEnter,closeOnButtonClick:!this.createData,close:this.props.close,hideFooter:this.showLoading,x:this.x,y:this.y,placement:"top",showPopoverTriangle:!1,isDisabled:this.shouldDisableSubmission(),additionalFooterContent:this.footer,className:"select-target-container"}),this.header,Y.createElement("div",{"data-test-id":"select-target-body",className:e},this.createData?this.createGroupOrLibPickerBody:this.defaultPickerBody))}}).contextType=ee.r,ao.dialogName="selectLibrary",ao.isAlwaysInline=!0,ao.defaultProps={id:"select",disableSearch:!1,enableSetAsDefault:!1,getTargetProps:()=>({className:""}),x:0,y:0,isDocumentAssets:!1,onSubmit:()=>{},okButtonText:"DL_SAVE",title:"DL_SAVE_TO"},ao.propTypes={id:K().string,additionalFooterContent:K().node,close:K().func.isRequired,cancelButtonQuiet:K().bool,emptyGroupMessageLabel:K().string,getTargetProps:K().func.isRequired,onSubmit:K().func.isRequired,closeOnResize:K().bool,title:K().string.isRequired,okButtonText:K().string,validateTarget:K().func,disableGroupSelection:K().bool,disableSearch:K().bool,enableSetAsDefault:K().bool,height:K().number,onChange:K().func,onCreateGroup:K().func,isDocumentAssets:K().bool,isGroupOp:K().bool,startingLibrary:K().oneOfType([K().instanceOf(Ge.Zu),K().instanceOf(Fi.Z)]),startingGroup:K().instanceOf(Ge.ZA),width:K().number,x:K().number.isRequired,y:K().number.isRequired},uo((Qi=ao).prototype,"groupsTree",[o.computed],Object.getOwnPropertyDescriptor(Qi.prototype,"groupsTree"),Qi.prototype),eo=uo(Qi.prototype,"createModeType",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),to=uo(Qi.prototype,"name",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),ro=uo(Qi.prototype,"_selectedLibrary",[$i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),no=uo(Qi.prototype,"selectedGroup",[qi],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.startingGroup}}),io=uo(Qi.prototype,"selectedFolder",[Xi],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),oo=uo(Qi.prototype,"_makeCurrentLibraryDefault",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),uo(Qi.prototype,"areLibrariesLoaded",[o.computed],Object.getOwnPropertyDescriptor(Qi.prototype,"areLibrariesLoaded"),Qi.prototype),uo(Qi.prototype,"areLibrariesLoading",[o.computed],Object.getOwnPropertyDescriptor(Qi.prototype,"areLibrariesLoading"),Qi.prototype),uo(Qi.prototype,"zeroLoadedLibraries",[o.computed],Object.getOwnPropertyDescriptor(Qi.prototype,"zeroLoadedLibraries"),Qi.prototype),uo(Qi.prototype,"showLoading",[o.computed],Object.getOwnPropertyDescriptor(Qi.prototype,"showLoading"),Qi.prototype),uo(Qi.prototype,"itemName",[o.computed],Object.getOwnPropertyDescriptor(Qi.prototype,"itemName"),Qi.prototype),uo(Qi.prototype,"currentGroupBranch",[o.computed],Object.getOwnPropertyDescriptor(Qi.prototype,"currentGroupBranch"),Qi.prototype),uo(Qi.prototype,"groupItems",[o.computed],Object.getOwnPropertyDescriptor(Qi.prototype,"groupItems"),Qi.prototype),uo(Qi.prototype,"createData",[o.computed],Object.getOwnPropertyDescriptor(Qi.prototype,"createData"),Qi.prototype),uo(Qi.prototype,"inputPlaceholder",[o.computed],Object.getOwnPropertyDescriptor(Qi.prototype,"inputPlaceholder"),Qi.prototype),uo(Qi.prototype,"disableSetAsDefaultLibraryCheckbox",[o.computed],Object.getOwnPropertyDescriptor(Qi.prototype,"disableSetAsDefaultLibraryCheckbox"),Qi.prototype),uo(Qi.prototype,"footer",[o.computed],Object.getOwnPropertyDescriptor(Qi.prototype,"footer"),Qi.prototype),Ji=Qi))||Ji);var mo,go,vo,yo,bo,_o,Eo,wo=r(75623),xo=r(80091);function Lo(){Lo=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Oo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function So(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Oo(Object(r),!0).forEach((function(t){To(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function To(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Po(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Io(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function Ao(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Co=(mo=o.observable.ref,go=o.observable.ref,(0,$.Pi)(((Eo=class extends Y.Component{constructor(...e){var t;super(...e),t=this,Io(this,"selectedLibrary",bo,this),Io(this,"selectedGroup",_o,this),this._handleChange=({group:e,library:t})=>{this.selectedLibrary=t,this.selectedGroup=e},this._validateTarget=({group:e,library:t})=>{if(e){if(this.isGroupsOp&&(0,h.zA)(e,this.items[0]))return!1;if(this.isDocumentAssets&&!(0,h.mB)(this.groups,e))return!1}else{if(this.props.isMove&&this.disableGroupSelection&&this.items.find((e=>e.library===t)))return!1;const e=t!==this.context.libraryManager.currentLibrary;if(!this.context.viewState.isLibraryWritable(t,!1,e))return!1}return!0},this._handleSubmit=function(){var e,r=(e=Lo().mark((function e({library:r,group:n,extraMetrics:i}){return Lo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.isGroupsOp||(t.props.isMove?j.ZP.reportEvent("Element Operations","Element","move","element",So({event:{value:"agg",count:t.items.length},content:{category:"Right Click"}},i),t.context.libraryManager.currentLibrary):(j.ZP.reportEvent("Add Assets","Element","click","add",{event:{value:"agg",count:t.items.length},content:{category:"Element Copy"}},t.context.libraryManager.currentLibrary),j.ZP.setExtraEventMetrics("copyElement",{content:{category:"Element Copy"}}))),t.props.copyMoveAction(t.props.isMove,t.isGroupsOp?t.items[0]:t.items,r,n);case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Po(o,n,i,a,s,"next",e)}function s(e){Po(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}(),this._onCreateGroup=()=>{j.ZP.setExtraEventMetrics("createGroup",{content:{category:(this.props.isMove?"Move":"Copy")+" Picker"}})},this.getTargetProps=e=>{var t;return{className:Q()({mergeable:null===(t=this.mergeableGroups)||void 0===t?void 0:t.includes(e)})}}}get groupsTree(){var e;const t=this.context.viewState.elementSortState,r="modified"===t?"order":t;return(0,h.Oi)([],null===(e=this.selectedLibrary)||void 0===e?void 0:e.getGroups(),{sortBy:r,includeUngrouped:!1})}get currentGroupBranch(){const e=this.groupsTree,t=e.branches,r=e.root;return this.selectedGroup?t[this.selectedGroup.id]:r}get mergeableGroups(){if(!this.isGroupsOp)return;if(this.items.length>1)return;const e=this.items[0];return(0,h.Nt)(e,this.currentGroupBranch)}get items(){return this.props.items}get groups(){return this.isGroupsOp?this.items:[...new Set(this.items.map((e=>e.getGroups()[0])))]}get startingLibrary(){const e=this.context.libraryManager.currentLibrary;return this.props.startingLibrary?this.props.startingLibrary:this.context.viewState.isLibraryWritable(e)&&!p.Z.currentProduct.config.readOnlyGroups?e:void 0}get startingGroup(){return this.groups[0]&&[this.groups[0],...(0,h._y)(this.groups[0])].find((e=>e.disableDraggingFromOutside))}get isGroupsOp(){return this.items[0].isGroup}get isDocumentAssets(){return this.items[0].library.isDocumentAssets}get emptyGroupMessageLabel(){var e;return null!==(e=this.mergeableGroups)&&void 0!==e&&e.length?(0,D.Iu)("DL_MERGE_EMPTY_GROUP"):(0,D.Iu)(this.props.isMove?"DL_MOVE_EMPTY_GROUP":"DL_COPY_EMPTY_GROUP")}get okButtonText(){var e;if(null!==(e=this.mergeableGroups)&&void 0!==e&&e.length)return(0,D.Iu)("DL_MERGE");const t=this.props.isMove?p.Z.currentProduct.config.overrideMoveText||"DL_MOVE":p.Z.currentProduct.config.overrideCopyText||"DL_COPY";return(0,D.Iu)(t)}get headerTitle(){const e=this.props.isMove?p.Z.currentProduct.config.overrideMoveHeaderText||"DL_MOVE_TO":p.Z.currentProduct.config.overrideCopyHeaderText||"DL_COPY_TO";return(0,D.Iu)(e)}get mergeInfo(){var e;if(null!==(e=this.mergeableGroups)&&void 0!==e&&e.length)return Y.createElement("div",{className:"select-target-footer-icon select-target-merge-info-icon"},Y.createElement(Ie.Z,{placement:"top-start",className:"select-target-merge-info-tooltip",content:(0,D.Iu)("DL_MERGE_HELP_TOOLTIP")},Y.createElement(X.Z,{id:"HelpOutline","data-test-id":"select-target-merge-info-icon",height:14,width:14})))}get disableGroupSelection(){var e;return null!==(e=this.props.disableGroupSelection)&&void 0!==e?e:p.Z.currentProduct.config.readOnlyGroups}render(){return Y.createElement(fo,{id:"copymove",additionalFooterContent:this.mergeInfo,close:this.props.close,disableGroupSelection:this.disableGroupSelection,enableSetAsDefault:this.props.enableSetAsDefault,disableSearch:!0,emptyGroupMessageLabel:this.emptyGroupMessageLabel,getTargetProps:this.getTargetProps,height:p.Z.currentProduct.config.copyMovePickerHeightOverride,isGroupsOp:this.isGroupsOp,isDocumentAssets:this.isDocumentAssets,isMove:this.props.isMove,onChange:this._handleChange,onCreateGroup:this._onCreateGroup,onSubmit:this._handleSubmit,okButtonText:this.okButtonText,startingGroup:this.startingGroup,startingLibrary:this.startingLibrary,title:this.headerTitle,validateTarget:this._validateTarget,width:p.Z.currentProduct.config.copyMovePickerWidthOverride,x:this.props.x,y:this.props.y})}}).contextType=ee.r,Eo.dialogName="copyOrMove",Eo.isAlwaysInline=!0,Eo.propTypes={items:K().arrayOf(K().oneOfType([K().instanceOf(Ge.W_),K().instanceOf(xo.Z),K().instanceOf(Ge.ZA),K().instanceOf(wo.Z)])).isRequired,close:K().func.isRequired,copyMoveAction:K().func.isRequired,isMove:K().bool.isRequired,x:K().number.isRequired,y:K().number.isRequired,isDocumentAssets:K().bool,enableSetAsDefault:K().bool,disableGroupSelection:K().bool,startingLibrary:K().oneOfType([K().instanceOf(Ge.Zu),K().instanceOf(Fi.Z)])},bo=Ao((yo=Eo).prototype,"selectedLibrary",[mo],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.startingLibrary}}),_o=Ao(yo.prototype,"selectedGroup",[go],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.startingGroup}}),Ao(yo.prototype,"groupsTree",[o.computed],Object.getOwnPropertyDescriptor(yo.prototype,"groupsTree"),yo.prototype),Ao(yo.prototype,"currentGroupBranch",[o.computed],Object.getOwnPropertyDescriptor(yo.prototype,"currentGroupBranch"),yo.prototype),Ao(yo.prototype,"mergeableGroups",[o.computed],Object.getOwnPropertyDescriptor(yo.prototype,"mergeableGroups"),yo.prototype),Ao(yo.prototype,"mergeInfo",[o.computed],Object.getOwnPropertyDescriptor(yo.prototype,"mergeInfo"),yo.prototype),vo=yo))||vo);const ko=r.p+"resources/Onboarding_Nested-Groups.png";var Do,No;function Ro(){Ro=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Mo(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const jo=5e3;let Fo=(0,$.Pi)(((No=class extends Y.Component{constructor(...e){var t;super(...e),t=this,this.handleClickReplaceSlashes=()=>{try{(0,h.JO)(this.props.library),this.context.toastManager.openToast("message",{duration:jo,closable:!1,variant:"success",message:Y.createElement(di.Z,{linkClickMethods:{learnMore:()=>(0,R.UK)()},html:(0,D.Iu)("DL_MIGRATE_LIBRARY_POPOVER_SUCCESS_TOAST_REPLACE")})})}catch(e){this.showErrorToast()}this.props.close()},this.handleConvertDelimitedNamesToGroups=function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Mo(o,n,i,a,s,"next",e)}function s(e){Mo(o,n,i,a,s,"throw",e)}a(void 0)}))}}(Ro().mark((function e(){return Ro().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,h.M_)(t.props.library);case 3:(0,x.XI)()?(t.context.viewState.setViewByState(p.Z.VIEW_BY_MODES.GROUP),(0,x.UK)()):t.context.toastManager.openToast("message",{duration:jo,closable:!1,variant:"success",message:Y.createElement(di.Z,{linkClickMethods:{learnMore:()=>(0,R.UK)()},html:(0,D.Iu)("DL_MIGRATE_LIBRARY_POPOVER_SUCCESS_TOAST_GROUP")})}),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),t.showErrorToast();case 9:t.props.close();case 10:case"end":return e.stop()}}),e,null,[[0,6]])}))),this.handleClickBackToRoot=()=>{var e;F.Z.navigateToAllLibraries&&F.Z.navigateToAllLibraries(),this.context.libraryManager.currentLibrary=null,null===(e=F.Z.navigateToAllLibraries)||void 0===e||e.call(F.Z),this.props.close()}}get title(){return Y.createElement("div",{"data-test-id":"popover-title",className:"popover-title"},(0,D.Iu)("DL_MIGRATE_LIBRARY_POPOVER_TITLE"))}get body(){return Y.createElement("div",{"data-test-id":"popover-body",className:"popover-body"},Y.createElement(di.Z,{linkClickMethods:{learnMore:()=>(0,R.UK)()},html:(0,D.Iu)("DL_MIGRATE_LIBRARY_POPOVER_BODY")}))}get graphic(){return Y.createElement("img",{"data-test-id":"popover-graphic",className:"popover-graphic",src:ko})}showErrorToast(){this.context.toastManager.openToast("message",{duration:jo,variant:"error",message:Y.createElement(di.Z,{html:(0,D.Iu)("DL_MIGRATE_LIBRARY_POPOVER_ERROR_TOAST")})})}render(){const e=Y.createElement(Y.Fragment,null,Y.createElement(Mn.Z,{"data-test-id":"popover-migrate-button",variant:"secondary",onClick:this.handleConvertDelimitedNamesToGroups},(0,D.Iu)("DL_MIGRATE_LIBRARY_POPOVER_CONVERT_TO_GROUPS")),Y.createElement(Mn.Z,{"data-test-id":"popover-back-button",variant:"secondary",onClick:this.handleClickBackToRoot},(0,D.Iu)("DL_BACK_BUTTON_ROOT")));return Y.createElement(Bn,{className:"migrate-slashes-library-popover",okButtonText:(0,D.Iu)("DL_MIGRATE_LIBRARY_POPOVER_REPLACE_SLASHES"),onClickOK:this.handleClickReplaceSlashes,additionalFooterButtons:e,close:this.props.close,x:0,y:10,placement:"top",verticalButtonGroup:!0,closeOnWindowClick:!1,showPopoverTriangle:!1,closeOnOverlayEvent:!1,minHeight:540},this.graphic,this.title,this.body)}}).dialogName="migrateLibraryWithSlashes",No.isAlwaysInline=!0,No.contextType=ee.r,No.isAlwaysInline=!0,No.propTypes={library:K().oneOfType([K().instanceOf(Ge.Zu),K().instanceOf(Fi.Z)]),close:K().func.isRequired},Do=No))||Do;var Zo,Bo;function Go(){return Go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Go.apply(this,arguments)}const Uo="owned",Ho="shared";let zo=(0,$.Pi)(((Bo=class extends Y.Component{constructor(...e){super(...e),this.handleUpgrade=()=>{(0,R.tD)()},this.handleFreeUpSpace=()=>{(0,R.uF)()}}get dialogData(){return this.props.isFirstTimePublishing?{title:(0,D.Iu)("DL_PUBLISH_QUOTA_ERROR_HEADING"),okButtonText:(0,D.Iu)("DL_PUBLISH_QUOTA_ERROR_UPGRADE"),message:Y.createElement(di.Z,{html:(0,D.Iu)("DL_PUBLISH_QUOTA_ERROR_BODY"),onClick:this.handleFreeUpSpace}),onClickOK:this.handleUpgrade}:{[Uo]:{title:(0,D.Iu)("DL_PUBLISH_UPDATES_QUOTA_ERROR_HEADING"),okButtonText:(0,D.Iu)("DL_PUBLISH_QUOTA_ERROR_UPGRADE"),message:(0,D.Iu)("DL_PUBLISH_UPDATES_QUOTA_ERROR_BODY"),onClickOK:this.handleUpgrade},[Ho]:{title:(0,D.Iu)("DL_PUBLISH_UPDATES_QUOTA_ERROR_HEADING"),message:(0,D.Iu)("DL_PUBLISH_UPDATES_SHARED_QUOTA_ERROR_BODY")}}[this.props.errorType]}render(){return Y.createElement(q.Z,Go({mode:"error",className:"panel-dialog-publish-quota-error",close:this.props.close},this.dialogData),Y.createElement("div",{"data-test-id":"publish-quota-error-message",className:"panel-dialog-layout-100"},this.dialogData.message))}}).dialogName="publishQuotaError",Bo.propTypes={isFirstTimePublishing:K().bool,errorType:K().oneOf([Uo,Ho]).isRequired,close:K().func},Zo=Bo))||Zo;var Vo,Yo;let Wo=(0,$.Pi)(((Yo=class extends Y.Component{get title(){return Y.createElement("div",{"data-test-id":"popover-title",className:"popover-title"},(0,D.Iu)("DL_VIEW_BY_GROUP_POPOVER_TITLE"))}get body(){return Y.createElement("div",{"data-test-id":"popover-body",className:"popover-body"},(0,D.Iu)("DL_VIEW_BY_GROUP_POPOVER_BODY"))}render(){return Y.createElement("div",{className:"view-by-group-popover"},Y.createElement(Bn,{okButtonText:(0,D.Iu)("DL_OK"),close:this.props.close,x:10,y:this.context.viewState.panelHeaderHeight,placement:"top",horizontalPlacement:"left"},this.title,this.body))}}).dialogName="viewByGroupPopover",Yo.contextType=ee.r,Yo.propTypes={close:K().func.isRequired},Vo=Yo))||Vo;var Ko,$o,qo,Xo;let Jo=(0,$.Pi)((Xo=class extends Y.Component{constructor(...e){super(...e),function(e,t,r,n){r&&Object.defineProperty(e,"assetId",{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}(this,0,qo,this),this.handleClickOK=()=>{this.loadLibrary()},this.handleChange=e=>{this.assetId=e.target.value},this.handleKeyDown=e=>{"Enter"===e.key&&this.loadLibrary()}}loadLibrary(){this.context.libraryManager.loadLibraryByAssetId(this.assetId.trim()).then((e=>{var t,r;this.context.libraryManager.currentLibrary=e,null===(t=(r=this.props).close)||void 0===t||t.call(r)}))}render(){return Y.createElement(q.Z,{title:"Load library by asset ID",className:"rename-dialog",okButtonText:"Load",onClickOK:this.handleClickOK,close:this.props.close},Y.createElement("div",{className:"panel-dialog-layout-group"},Y.createElement("div",{className:Q()("panel-dialog-layout-75","panel-dialog-input-container")},Y.createElement("input",{className:"rename-library-input",type:"text",spellCheck:"false",placeholder:"Asset ID",style:{width:"100%"},value:this.name,onKeyDown:this.handleKeyDown,onChange:this.handleChange}))))}},Xo.contextType=ee.r,Xo.dialogName="loadLibraryByAssetId",Xo.propTypes={close:K().func},qo=function(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}(($o=Xo).prototype,"assetId",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Ko=$o))||Ko;var Qo=r(74911),ea=r(96195),ta=r.n(ea),ra=r(47115),na=r(78905);const ia={statusText:"CZe",actionGrid:"sxx",libraryHeader:"FBl",executeLine:"FWe",executeText:"f0O",operation:"dPa",linkedAction:"x6t",action:"nz1",insert:"npQ",update:"fhm",remove:"Bn6"};var oa,aa,sa,ca,la;function ua(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||pa(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function da(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=pa(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function pa(e,t){if(e){if("string"==typeof e)return ha(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ha(e,t):void 0}}function ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fa(){fa=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ma(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function ga(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function va(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let ya=(0,$.Pi)(((la=class extends Y.Component{constructor(...e){super(...e),ga(this,"isSyncing",sa,this),ga(this,"displayState",ca,this),this.pushDisplayState=()=>{this.displayState.push([...this.libraryHeaders,...this.libraryActions,...this.libraryOperations])}}componentDidMount(){var e,t;this.isSyncing=this.context.libraryManager.syncingEnabled(),null===(e=(t=this.context.libraryManager.dangerouslyAccessCCLibraries()).on)||void 0===e||e.call(t,"report",this.pushDisplayState),this.tickInterval=setInterval((()=>{this.displayState.length>1&&this.displayState.shift()}),750),this.pushDisplayState()}componentWillUnmount(){var e,t;null===(e=(t=this.context.libraryManager.dangerouslyAccessCCLibraries()).off)||void 0===e||e.call(t,"report",this.pushDisplayState),clearInterval(this.tickInterval)}handleSyncClick(e){var t,r=this;return(t=fa().mark((function t(){return fa().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=5;break}return t.next=3,r.context.libraryManager.enableSyncing();case 3:t.next=6;break;case 5:r.context.libraryManager.disableSyncing();case 6:r.isSyncing=r.context.libraryManager.syncingEnabled();case 7:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){ma(o,n,i,a,s,"next",e)}function s(e){ma(o,n,i,a,s,"throw",e)}a(void 0)}))})()}get libraries(){return this.context.libraryManager.libraries.filter((e=>e.actions.length>0)).slice(0,6)}get libraryHeaders(){return this.libraries.map(((e,t)=>Y.createElement("div",{key:e.id,className:ia.libraryHeader,style:{gridColumn:`${t+1} / span 1`}},e.name))).concat([Y.createElement("div",{key:"exec-line",className:ia.executeLine},Y.createElement("div",{className:ia.executeText},"Execute"))])}get libraryActions(){const e=new Map,t=new Map,r=[];for(let t=0;t<this.libraries.length;t+=1){const n=this.libraries[t],i=[];r.push(i);const o=n.actions.slice(0,8);for(let r=0;r<o.length;r+=1){const a=o[r],s={library:n,action:a,column:t,row:r};e.set(a,i),i.push(s)}}let n,i=0;do{n=!1;var o,a=da(r);try{for(a.s();!(o=a.n()).done;){const r=o.value.find((e=>e.row===i));if(!r)continue;if(n=!0,!r.action.link||"dependent"===r.action.name)continue;const a=r.action.link,s=e.get(a),c=s.find((e=>e.action===a)),l=s.indexOf(c);if(c.library!==r.library){for(let e=l;e<s.length;e+=1)s[e].row=r.row+e-l;t.set(r,c)}}}catch(e){a.e(e)}finally{a.f()}i+=1}while(n);const s=[];var c,l=da(t.entries());try{for(l.s();!(c=l.n()).done;){const e=ua(c.value,2),t=e[0],r=e[1],n=Math.max(t.column,r.column)+1,i=Math.min(t.column,r.column);s.push(Y.createElement("div",{key:`${t.type}-${r.type}-link-${t.row}`,className:Q()(ia.linkedAction),style:{gridColumn:`${i+1} / ${n+1}`,gridRow:`${t.row+3} / span 1`}}))}}catch(e){l.e(e)}finally{l.f()}const u=r.flat().map((({library:e,action:t,column:r,row:n})=>Y.createElement("div",{key:`${e.name}-${t.type}-${r}-${n}`,className:Q()(ia.action,ia[t.type]),style:{gridColumn:`${r+1} / span 1`,gridRow:`${n+3} / span 1`}},t.name)));return[...s,...u]}get libraryOperations(){return this.libraries.map(((e,t)=>{if(e.operation&&"symbol"!==(e.operation,!1)){const r=e.operation.actions.length;return Y.createElement("div",{key:`op-${e.name}-${t}`,className:ia.operation,style:{gridColumn:`${t+1} / span 1`,gridRow:`3 / span ${r}`}})}})).filter(Boolean)}get currentDisplayState(){return this.displayState[0]}render(){return Y.createElement(q.Z,{title:"JS API 2.0 Dashboard",close:this.props.close},Y.createElement("div",null,Y.createElement("div",{className:ia.statusText},"Syncing: ",this.isSyncing?"Enabled":"Disabled"),Y.createElement(Qo.default,null,Y.createElement(ta(),{icon:Y.createElement(na.Z,null),onClick:()=>this.handleSyncClick(!0),disabled:this.isSyncing},"Start Syncing"),Y.createElement(ta(),{icon:Y.createElement(ra.Z,null),onClick:()=>this.handleSyncClick(!1),disabled:!this.isSyncing},"Stop Syncing")),Y.createElement("div",{className:ia.actionGrid},this.currentDisplayState)))}}).contextType=ee.r,la.dialogName="jsApi2Dashboard",la.propTypes={close:K().func},sa=va((aa=la).prototype,"isSyncing",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ca=va(aa.prototype,"displayState",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[[]]}}),oa=aa))||oa;var ba,_a,Ea=r(45236);let wa=(0,$.Pi)(((_a=class extends Y.Component{constructor(...e){super(...e),this.onClickCancel=e=>{var t,r,n;null==e||e.stopPropagation(),null===(t=this.props)||void 0===t||t.close(),null===(r=this.props)||void 0===r||null===(n=r.onClickCancel)||void 0===n||n.call(r)},this.onClickOK=e=>{var t,r,n,i;null==e||e.stopPropagation(),(null===(t=this.props)||void 0===t?void 0:t.closeOnClickOK)&&(null===(r=this.props)||void 0===r||r.close()),null===(n=this.props)||void 0===n||null===(i=n.onClickOK)||void 0===i||i.call(n)},this.onClickSecondary=e=>{var t,r,n;null==e||e.stopPropagation(),null===(t=this.props)||void 0===t||t.close(),null===(r=this.props)||void 0===r||null===(n=r.onClickSecondary)||void 0===n||n.call(r)},this.onClickOutsideDialog=e=>{this._dialogElement&&(0,Fn.rP)(e,this._dialogElement)||this.onClickCancel()},this.setDialogElement=e=>{this._dialogElement=e,setTimeout((()=>{var e,t;return null===(e=this._dialogElement)||void 0===e||null===(t=e.focus)||void 0===t?void 0:t.call(e)}))},this.onKeyDown=e=>{"Tab"===e.key&&e.stopPropagation()}}get okButtonContent(){return this.props.okButtonContent?this.props.okButtonContent:(0,D.Iu)("DL_OK")}get okButton(){return Y.createElement(Mn.Z,{"data-test-id":this.props.okButtonDataTestId,disabled:!this.props.okButtonEnabled,onClick:this.onClickOK,variant:this.props.variant,treatment:"fill"},this.okButtonContent)}get cancelButtonContent(){return this.props.cancelButtonContent?this.props.cancelButtonContent:(0,D.Iu)("DL_CANCEL")}get cancelButton(){return Y.createElement(Mn.Z,{"data-test-id":this.props.cancelButtonDataTestId,disabled:!this.props.cancelButtonEnabled,onClick:this.onClickCancel,variant:"secondary"},this.cancelButtonContent)}get secondaryButtonContent(){return this.props.secondaryButtonContent}get secondaryButton(){if(this.secondaryButtonContent)return Y.createElement(Mn.Z,{"data-test-id":this.props.secondaryButtonDataTestId,disabled:!this.props.secondaryButtonEnabled,onClick:this.onClickSecondary,variant:"secondary"},this.secondaryButtonContent)}render(){return Y.createElement("div",{"data-test-id":"dialog-wrapper",className:Q()("leR",this.props.className),onClick:this.onClickOutsideDialog},Y.createElement("div",{"data-test-id":"dialog-window",className:"GYT",ref:this.setDialogElement,tabIndex:"-1",onKeyDown:this.onKeyDown},this.props.banner,this.props.title&&Y.createElement("div",{className:"iEM"},Y.createElement("div",{"data-test-id":"dialog-title",className:"YBv"},this.props.title)),Y.createElement("div",{className:"u8v"},this.props.children),this.props.showFooter&&Y.createElement("div",{"data-test-id":"dialog-footer",className:"x3Z"},Y.createElement(Ea.Z,{"data-test-id":"button-group"},this.cancelButton,this.secondaryButton,this.okButton))))}}).defaultProps={variant:"cta",okButtonEnabled:!0,okButtonDataTestId:"dialog-ok-button",closeOnClickOK:!0,cancelButtonEnabled:!0,cancelButtonDataTestId:"dialog-cancel-button",secondaryButtonEnabled:!0,secondaryButtonDataTestId:"dialog-secondary-button",showFooter:!0},_a.propTypes={title:K().string,okButtonContent:K().node,okButtonEnabled:K().bool,okButtonDataTestId:K().string,onClickOK:K().func,closeOnClickOK:K().bool,cancelButtonContent:K().node,cancelButtonEnabled:K().bool,cancelButtonDataTestId:K().string,onClickCancel:K().func,secondaryButtonContent:K().node,secondaryButtonEnabled:K().bool,secondaryButtonDataTestId:K().string,onClickSecondary:K().func,close:K().func.isRequired,children:K().node,variant:K().oneOf(["cta","primary","secondary","warning"]),showFooter:K().bool,banner:K().node,className:K().string},ba=_a))||ba;const xa={publishBrandDialog:"LWd",dialogContentsWrapper:"wX0",panelOrganizationBox:"TNA",panelOrganizationTop:"xWb",panelOrganizationTitle:"dbv",ghostLoading:"oxH",panelOrganizationSubtitle:"eTM",publishSuccessContent:"GZf",successHeader:"n1s",successFooter:"C2W",statusLightAnimation:"kL-",statusLightAnimationContainer:"j2R",statusLightCheck:"W3N","scale-in-fade-out":"Bvm",statusLightText:"lj0","scale-horizontal":"fkB",dialogBanner:"dLu",dialogBannerButton:"fJ7",publishDialogBody:"AFu",publishSuccessDialogBody:"jdo",confetti:"LnA"};var La=r(34954),Oa=r.n(La),Sa=r(87544);const Ta=JSON.parse('{"v":"5.12.1","fr":30,"ip":0,"op":61,"w":400,"h":400,"nm":"Toast_GenStudio 2","ddd":0,"assets":[{"id":"comp_0","nm":"Shapes","fr":30,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"cube: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":48,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[493.344,347.844,0],"to":[0.656,-1.344,0],"ti":[39.406,-86.094,0]},{"t":49,"s":[506.844,490.344,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[80,80,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":10,"ct":1,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"cube: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.25]},"t":47,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[495.344,347.344,0],"to":[-32.844,-1.844,0],"ti":[27.906,15.906,0]},{"t":49,"s":[339.844,334.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[60,60,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":10,"ct":1,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"cube: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":48,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[484.309,340.39,0],"to":[138.156,-61.844,0],"ti":[0,0,0]},{"t":52,"s":[606.309,160.39,0]}],"ix":2,"l":2},"a":{"a":0,"k":[155,53.057,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[100,100,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"cube: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.25]},"t":47,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[-720]},{"t":50,"s":[90]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[477.924,353.652,0],"to":[111.156,-42.844,0],"ti":[0,0,0]},{"t":52,"s":[646.924,403.652,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,68.688,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[100,100,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":10,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"cube: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":48,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[493.344,347.844,0],"to":[0.656,-1.344,0],"ti":[-13.094,77.406,0]},{"t":49,"s":[614.844,222.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[80,80,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":10,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":10,"ct":1,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"cube: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.25]},"t":47,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[486.991,337.233,0],"to":[-14.844,-17.844,0],"ti":[33.656,15.656,0]},{"t":49,"s":[336.491,238.733,0]}],"ix":2,"l":2},"a":{"a":0,"k":[155,50,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[80,80,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"cube: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":48,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[495.344,347.344,0],"to":[1.156,5.156,0],"ti":[-66.094,-13.094,0]},{"t":49,"s":[596.844,410.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[60,60,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":10,"ct":1,"bm":0},{"ddd":0,"ind":8,"ty":4,"nm":"cube: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.25]},"t":47,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[495.344,347.344,0],"to":[29.156,-48.844,0],"ti":[-67.094,-2.594,0]},{"t":49,"s":[669.344,243.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[60,60,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":10,"ct":1,"bm":0},{"ddd":0,"ind":9,"ty":4,"nm":"circle: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":48,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[-73.344,-85.844,0],"ti":[1.156,2.656,0]},{"t":52,"s":[396.594,197.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[60,60,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":10,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":10,"ty":4,"nm":"circle: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":48,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[495.344,347.344,0],"to":[-126.844,-42.844,0],"ti":[0,0,0]},{"t":49,"s":[350.844,402.594,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[80,80,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":10,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":15,"ct":1,"bm":0},{"ddd":0,"ind":11,"ty":4,"nm":"circle: : outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.25]},"t":47,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[495.344,347.344,0],"to":[-39.844,-9.844,0],"ti":[17.406,23.906,0]},{"t":49,"s":[393.344,258.344,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[60,60,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":10,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":10,"ct":1,"bm":0},{"ddd":0,"ind":12,"ty":4,"nm":"circle: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":48,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[495.344,347.344,0],"to":[-39.344,-135.344,0],"ti":[0,0,0]},{"t":49,"s":[498.094,144.094,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[80,80,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":10,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":15,"ct":1,"bm":0},{"ddd":0,"ind":13,"ty":4,"nm":"half: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.25]},"t":47,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[0]},{"t":50,"s":[360]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[494.369,340.789,0],"to":[102.156,27.156,0],"ti":[0,0,0]},{"t":49,"s":[604.369,446.289,0]}],"ix":2,"l":2},"a":{"a":0,"k":[-16,-16,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[80,80,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[8.837,0],[0,8.837],[-8.837,0]],"o":[[-8.837,0],[0,-8.837],[0.672,0]],"v":[[0,16],[-16,0],[0,-16]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gs","o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":7,"ix":10},"g":{"p":3,"k":{"a":0,"k":[0,0,0,0,0.5,0,0,0,1,0,0,0],"ix":8}},"s":{"a":0,"k":[0,0],"ix":4},"e":{"a":0,"k":[100,0],"ix":5},"t":1,"lc":2,"lj":1,"ml":4,"ml2":{"a":0,"k":4,"ix":13},"bm":0,"nm":"Gradient Stroke 1","mn":"ADBE Vector Graphic - G-Stroke","hd":false}],"ip":15,"op":150,"st":-2,"ct":1,"bm":0},{"ddd":0,"ind":14,"ty":4,"nm":"half: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":47,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[-1080]},{"t":50,"s":[-198]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[75.156,-25.844,0],"ti":[0,0,0]},{"t":52,"s":[616.594,359.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[65,65,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[8.837,0],[0,8.837],[-8.837,0]],"o":[[-8.837,0],[0,-8.837],[0.672,0]],"v":[[0,16],[-16,0],[0,-16]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gs","o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":7,"ix":10},"g":{"p":3,"k":{"a":0,"k":[0,0,0,0,0.5,0,0,0,1,0,0,0],"ix":8}},"s":{"a":0,"k":[0,0],"ix":4},"e":{"a":0,"k":[0,0],"ix":5},"t":1,"lc":2,"lj":1,"ml":4,"ml2":{"a":0,"k":4,"ix":13},"bm":0,"nm":"Gradient Stroke 1","mn":"ADBE Vector Graphic - G-Stroke","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":15,"ty":4,"nm":"rectangle: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":46,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":15,"s":[-720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.167,"y":0.167},"t":15,"s":[494.196,345.62,0],"to":[0,0,0],"ti":[38.804,93.88,0]},{"t":49,"s":[500.696,195.62,0]}],"ix":2,"l":2},"a":{"a":0,"k":[44.348,18.31,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.01,0.01,0.01],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[200,200,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.015,0.115],[0,0],[-0.115,-1.016],[0,0],[1.015,-0.115],[0,0],[0.115,1.015],[0,0]],"o":[[0,0],[1.015,-0.115],[0,0],[0.115,1.016],[0,0],[-1.015,0.115],[0,0],[-0.115,-1.015]],"v":[[-3.31,-2.041],[2.77,-2.729],[4.817,-1.099],[4.94,-0.006],[3.31,2.041],[-2.77,2.729],[-4.816,1.099],[-4.94,0.005]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[44.348,18.31],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":4,"ct":1,"bm":0},{"ddd":0,"ind":16,"ty":4,"nm":"rectangle: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":47,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":9,"s":[540]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.167,"y":0.167},"t":9,"s":[494.196,345.62,0],"to":[0,0,0],"ti":[4.971,-89.12,0]},{"t":52,"s":[405.904,431.329,0]}],"ix":2,"l":2},"a":{"a":0,"k":[44.348,18.31,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[199,199,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.015,0.115],[0,0],[-0.115,-1.016],[0,0],[1.015,-0.115],[0,0],[0.115,1.015],[0,0]],"o":[[0,0],[1.015,-0.115],[0,0],[0.115,1.016],[0,0],[-1.015,0.115],[0,0],[-0.115,-1.015]],"v":[[-3.31,-2.041],[2.77,-2.729],[4.817,-1.099],[4.94,-0.006],[3.31,2.041],[-2.77,2.729],[-4.816,1.099],[-4.94,0.005]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[44.348,18.31],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":-2,"ct":1,"bm":0},{"ddd":0,"ind":17,"ty":4,"nm":"rectangle: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":46,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.167,"y":0.167},"t":9,"s":[494.196,345.62,0],"to":[0,0,0],"ti":[9.304,-87.62,0]},{"t":52,"s":[561.196,472.62,0]}],"ix":2,"l":2},"a":{"a":0,"k":[44.348,18.31,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[250,250,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.015,0.115],[0,0],[-0.115,-1.016],[0,0],[1.015,-0.115],[0,0],[0.115,1.015],[0,0]],"o":[[0,0],[1.015,-0.115],[0,0],[0.115,1.016],[0,0],[-1.015,0.115],[0,0],[-0.115,-1.015]],"v":[[-3.31,-2.041],[2.77,-2.729],[4.817,-1.099],[4.94,-0.006],[3.31,2.041],[-2.77,2.729],[-4.816,1.099],[-4.94,0.005]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[44.348,18.31],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":-2,"ct":1,"bm":0},{"ddd":0,"ind":18,"ty":4,"nm":"rectangle: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":47,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.167,"y":0.167},"t":9,"s":[494.196,345.62,0],"to":[-8.196,-115.62,0],"ti":[0,0,0]},{"t":52,"s":[422.696,174.62,0]}],"ix":2,"l":2},"a":{"a":0,"k":[44.348,18.31,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,4.167]},"t":9,"s":[0,0,100]},{"t":50,"s":[250,250,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.015,0.115],[0,0],[-0.115,-1.016],[0,0],[1.015,-0.115],[0,0],[0.115,1.015],[0,0]],"o":[[0,0],[1.015,-0.115],[0,0],[0.115,1.016],[0,0],[-1.015,0.115],[0,0],[-0.115,-1.015]],"v":[[-3.31,-2.041],[2.77,-2.729],[4.817,-1.099],[4.94,-0.006],[3.31,2.041],[-2.77,2.729],[-4.816,1.099],[-4.94,0.005]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[44.348,18.31],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":-2,"ct":1,"bm":0},{"ddd":0,"ind":19,"ty":4,"nm":"cube: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":46,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[486.991,337.233,0],"to":[58.156,-29.844,0],"ti":[-50.844,-54.844,0]},{"t":49,"s":[670.491,338.983,0]}],"ix":2,"l":2},"a":{"a":0,"k":[155,50,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[80,80,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":20,"ty":4,"nm":"half: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":48,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[0]},{"t":50,"s":[360]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[495.344,347.344,0],"to":[41.656,-118.844,0],"ti":[0,0,0]},{"t":49,"s":[457.344,191.344,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[60,60,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[8.837,0],[0,8.837],[-8.837,0]],"o":[[-8.837,0],[0,-8.837],[0.672,0]],"v":[[0,16],[-16,0],[0,-16]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gs","o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":7,"ix":10},"g":{"p":3,"k":{"a":0,"k":[0,0,0,0,0.5,0,0,0,1,0,0,0],"ix":8}},"s":{"a":0,"k":[0,0],"ix":4},"e":{"a":0,"k":[100,0],"ix":5},"t":1,"lc":2,"lj":1,"ml":4,"ml2":{"a":0,"k":4,"ix":13},"bm":0,"nm":"Gradient Stroke 1","mn":"ADBE Vector Graphic - G-Stroke","hd":false}],"ip":15,"op":150,"st":-2,"ct":1,"bm":0},{"ddd":0,"ind":21,"ty":4,"nm":"half: outside","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":46,"s":[100]},{"t":52,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[106.656,-81.844,0],"ti":[0,0,0]},{"t":52,"s":[552.344,164.344,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[80,80,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[8.837,0],[0,8.837],[-8.837,0]],"o":[[-8.837,0],[0,-8.837],[0.672,0]],"v":[[0,16],[-16,0],[0,-16]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gs","o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":7,"ix":10},"g":{"p":3,"k":{"a":0,"k":[0,0,0,0,0.5,0,0,0,1,0,0,0],"ix":8}},"s":{"a":0,"k":[0,0],"ix":4},"e":{"a":0,"k":[100,0],"ix":5},"t":1,"lc":2,"lj":1,"ml":4,"ml2":{"a":0,"k":4,"ix":13},"bm":0,"nm":"Gradient Stroke 1","mn":"ADBE Vector Graphic - G-Stroke","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":22,"ty":4,"nm":"cube: middle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":44,"s":[100]},{"t":49,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[495.344,347.344,0],"to":[-56.344,-12.344,0],"ti":[10.906,-19.594,0]},{"t":49,"s":[384.844,371.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[60,60,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":10,"ct":1,"bm":0},{"ddd":0,"ind":23,"ty":4,"nm":"circle: middle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":43,"s":[100]},{"t":49,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[495.344,347.344,0],"to":[-2.844,13.156,0],"ti":[-32.594,-22.094,0]},{"t":49,"s":[534.344,441.344,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[60,60,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":10,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":10,"ct":1,"bm":0},{"ddd":0,"ind":24,"ty":4,"nm":"circle: middle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":44,"s":[100]},{"t":49,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[495.344,347.344,0],"to":[38.656,-58.344,0],"ti":[-68.594,-39.094,0]},{"t":49,"s":[668.844,301.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[60,60,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":10,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":150,"st":10,"ct":1,"bm":0},{"ddd":0,"ind":25,"ty":4,"nm":"half: middle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":43,"s":[100]},{"t":49,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[0]},{"t":50,"s":[360]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[495.344,347.344,0],"to":[39.656,80.406,0],"ti":[0,0,0]},{"t":49,"s":[460.469,456.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[60,60,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[8.837,0],[0,8.837],[-8.837,0]],"o":[[-8.837,0],[0,-8.837],[0.672,0]],"v":[[0,16],[-16,0],[0,-16]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gs","o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":7,"ix":10},"g":{"p":3,"k":{"a":0,"k":[0.736,0,0,0,0.833,0,0,0,0.93,0,0,0],"ix":8}},"s":{"a":0,"k":[0,0],"ix":4},"e":{"a":0,"k":[100,0],"ix":5},"t":1,"lc":2,"lj":1,"ml":4,"ml2":{"a":0,"k":4,"ix":13},"bm":0,"nm":"Gradient Stroke 1","mn":"ADBE Vector Graphic - G-Stroke","hd":false}],"ip":15,"op":150,"st":-2,"ct":1,"bm":0},{"ddd":0,"ind":26,"ty":4,"nm":"half: middle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":44,"s":[100]},{"t":49,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":15,"s":[1440]},{"t":50,"s":[90]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":15,"s":[495.344,347.344,0],"to":[-91.844,10.156,0],"ti":[0,0,0]},{"t":49,"s":[358.844,296.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":15,"s":[0,0,100]},{"t":50,"s":[80,80,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[8.837,0],[0,8.837],[-8.837,0]],"o":[[-8.837,0],[0,-8.837],[0.672,0]],"v":[[0,16],[-16,0],[0,-16]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gs","o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":7,"ix":10},"g":{"p":3,"k":{"a":0,"k":[0.736,0,0,0,0.833,0,0,0,0.93,0,0,0],"ix":8}},"s":{"a":0,"k":[0,0],"ix":4},"e":{"a":0,"k":[100,0],"ix":5},"t":1,"lc":2,"lj":1,"ml":4,"ml2":{"a":0,"k":4,"ix":13},"bm":0,"nm":"Gradient Stroke 1","mn":"ADBE Vector Graphic - G-Stroke","hd":false}],"ip":15,"op":150,"st":8,"ct":1,"bm":0},{"ddd":0,"ind":27,"ty":4,"nm":"rectangle: middle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":43,"s":[100]},{"t":49,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.167,"y":0.167},"t":9,"s":[494.196,345.62,0],"to":[37.804,-80.62,0],"ti":[0,0,0]},{"t":52,"s":[529.696,228.62,0]}],"ix":2,"l":2},"a":{"a":0,"k":[44.348,18.31,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,-2.222]},"t":9,"s":[0,0,100]},{"t":52,"s":[130,130,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.015,0.115],[0,0],[-0.115,-1.016],[0,0],[1.015,-0.115],[0,0],[0.115,1.015],[0,0]],"o":[[0,0],[1.015,-0.115],[0,0],[0.115,1.016],[0,0],[-1.015,0.115],[0,0],[-0.115,-1.015]],"v":[[-3.31,-2.041],[2.77,-2.729],[4.817,-1.099],[4.94,-0.006],[3.31,2.041],[-2.77,2.729],[-4.816,1.099],[-4.94,0.005]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[44.348,18.31],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":-2,"ct":1,"bm":0},{"ddd":0,"ind":28,"ty":4,"nm":"cube: middle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":44,"s":[100]},{"t":49,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[-64.844,-66.594,0],"ti":[0,0,0]},{"t":52,"s":[434.844,227.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[50,50,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":29,"ty":4,"nm":"rectangle: middle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":43,"s":[100]},{"t":49,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.167,"y":0.167},"t":9,"s":[494.196,345.62,0],"to":[-40.196,-38.62,0],"ti":[0,0,0]},{"t":52,"s":[398.196,316.62,0]}],"ix":2,"l":2},"a":{"a":0,"k":[44.348,18.31,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,2.564]},"t":9,"s":[0,0,100]},{"t":52,"s":[150,150,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.015,0.115],[0,0],[-0.115,-1.016],[0,0],[1.015,-0.115],[0,0],[0.115,1.015],[0,0]],"o":[[0,0],[1.015,-0.115],[0,0],[0.115,1.016],[0,0],[-1.015,0.115],[0,0],[-0.115,-1.015]],"v":[[-3.31,-2.041],[2.77,-2.729],[4.817,-1.099],[4.94,-0.006],[3.31,2.041],[-2.77,2.729],[-4.816,1.099],[-4.94,0.005]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[44.348,18.31],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":-2,"ct":1,"bm":0},{"ddd":0,"ind":30,"ty":4,"nm":"small circle: center","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":40,"s":[100]},{"t":46,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[-0.344,2.156,0],"ti":[-30.344,-8.844,0]},{"t":52,"s":[531.594,390.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[30,30,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":10,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":31,"ty":4,"nm":"small circle: center 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":41,"s":[100]},{"t":46,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[26.656,-32.844,0],"ti":[-20.844,33.156,0]},{"t":52,"s":[577.094,245.344,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[30,30,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":10,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":32,"ty":4,"nm":"small circle: center","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":40,"s":[100]},{"t":46,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[-22.844,7.156,0],"ti":[17.656,2.656,0]},{"t":52,"s":[428.094,357.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[30,30,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":10,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":33,"ty":4,"nm":"small circle: center","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":41,"s":[100]},{"t":46,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[12.156,-16.844,0],"ti":[-45.344,-9.344,0]},{"t":52,"s":[618.094,321.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[30,30,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":10,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":34,"ty":4,"nm":"small cube: center","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":40,"s":[100]},{"t":46,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[-65.344,-44.844,0],"ti":[0,0,0]},{"t":52,"s":[473.344,246.344,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[30,30,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":35,"ty":4,"nm":"small cube: center","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":41,"s":[100]},{"t":46,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[-0.844,-62.844,0],"ti":[0,0,0]},{"t":52,"s":[432.594,281.094,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[60,60,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":36,"ty":4,"nm":"small cube: center 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":40,"s":[100]},{"t":46,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[-17.344,-10.344,0],"ti":[0,0,0]},{"t":52,"s":[443.094,315.844,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[30,30,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":37,"ty":4,"nm":"small cube: center","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":41,"s":[100]},{"t":46,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[50.156,2.656,0],"ti":[0,0,0]},{"t":52,"s":[572.594,381.344,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[30,30,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":38,"ty":4,"nm":"small cube: center 3","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":40,"s":[100]},{"t":46,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[-38.844,10.406,0],"ti":[0,0,0]},{"t":52,"s":[432.844,403.094,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[30,30,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":39,"ty":4,"nm":"small cube: center","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":41,"s":[100]},{"t":46,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.183],"y":[0]},"t":9,"s":[720]},{"t":50,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.183,"y":0},"t":9,"s":[495.344,347.344,0],"to":[51.656,-48.094,0],"ti":[0,0,0]},{"t":52,"s":[595.844,283.594,0]}],"ix":2,"l":2},"a":{"a":0,"k":[164.344,59.344,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.009,0.009,0.009],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":50,"s":[30,30,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[18.688,18.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":4,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[164.344,59.344],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":40,"ty":4,"nm":"small rectangle: center","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":40,"s":[100]},{"t":46,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.009],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":17,"s":[-720]},{"t":52,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.01,"y":1},"o":{"x":0.167,"y":0.167},"t":17,"s":[494.196,345.62,0],"to":[0,0,0],"ti":[13.804,-24.62,0]},{"t":51,"s":[482.196,411.12,0]}],"ix":2,"l":2},"a":{"a":0,"k":[44.348,18.31,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.01,0.01,0.01],"y":[1,1,1]},"o":{"x":[0.183,0.183,0.183],"y":[0,0,0]},"t":9,"s":[0,0,100]},{"t":52,"s":[130,130,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.015,0.115],[0,0],[-0.115,-1.016],[0,0],[1.015,-0.115],[0,0],[0.115,1.015],[0,0]],"o":[[0,0],[1.015,-0.115],[0,0],[0.115,1.016],[0,0],[-1.015,0.115],[0,0],[-0.115,-1.015]],"v":[[-3.31,-2.041],[2.77,-2.729],[4.817,-1.099],[4.94,-0.006],[3.31,2.041],[-2.77,2.729],[-4.816,1.099],[-4.94,0.005]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[44.348,18.31],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":9,"op":150,"st":6,"ct":1,"bm":0},{"ddd":0,"ind":41,"ty":4,"nm":"squiggle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":42,"s":[100]},{"t":48,"s":[0]}],"ix":11},"r":{"a":0,"k":122,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":9,"s":[478.5,365,0],"to":[0,0,0],"ti":[0,0,0]},{"t":14,"s":[557.5,306,0]}],"ix":2,"l":2},"a":{"a":0,"k":[119.601,126.337,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.78,0.78,0.78],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,16.667]},"t":9,"s":[0,0,100]},{"t":19,"s":[-190.247,190.247,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.847,0.956],[0.788,1.005],[0.726,1.051],[0.662,1.093],[0.595,1.132],[0.526,1.166],[0.454,1.197],[0.38,1.223],[0.305,1.245],[0.23,1.262],[0.153,1.274],[0.076,1.282]],"o":[[-0.847,-0.955],[-0.787,-1.003],[-0.726,-1.049],[-0.661,-1.09],[-0.593,-1.128],[-0.523,-1.161],[-0.452,-1.19],[-0.378,-1.215],[-0.304,-1.234],[-0.227,-1.249],[-0.151,-1.261],[-0.076,-1.266]],"v":[[-28.535,42.696],[-29.453,38.475],[-33.334,36.579],[-33.738,32.278],[-37.363,29.928],[-37.245,25.61],[-40.558,22.838],[-39.917,18.567],[-42.869,15.413],[-41.715,11.25],[-44.263,7.763],[-42.614,3.769]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gs","o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":1.3,"ix":10},"g":{"p":3,"k":{"a":0,"k":[0,0,0,0,0.657,0,0,0,0.999,0,0,0],"ix":8}},"s":{"a":0,"k":[-66.39,-27.978],"ix":4},"e":{"a":0,"k":[0.981,77.423],"ix":5},"t":1,"lc":2,"lj":1,"ml":4,"ml2":{"a":0,"k":4,"ix":13},"bm":0,"nm":"Gradient Stroke 1","mn":"ADBE Vector Graphic - G-Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[67.203,68.242],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[183.94,184.556],"ix":3},"r":{"a":0,"k":-127.103,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.39],"y":[1]},"o":{"x":[0.078],"y":[0]},"t":13,"s":[100]},{"t":52,"s":[0]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.38],"y":[1]},"o":{"x":[0.084],"y":[0]},"t":9,"s":[100]},{"t":47,"s":[0]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":42,"ty":4,"nm":"squiggle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":42,"s":[100]},{"t":48,"s":[0]}],"ix":11},"r":{"a":0,"k":35,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":9,"s":[482.5,354,0],"to":[0,0,0],"ti":[0,0,0]},{"t":14,"s":[493.25,304.75,0]}],"ix":2,"l":2},"a":{"a":0,"k":[121.398,126.066,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.703,0.703,0.703],"y":[1.169,0.831,-10.499]},"o":{"x":[0.162,0.162,0.162],"y":[-0.151,0.151,10.31]},"t":9,"s":[0,0,100]},{"t":18,"s":[-183.292,183.292,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.954,0.846],[0.903,0.902],[0.847,0.956],[0.788,1.005],[0.726,1.051],[0.662,1.093],[0.595,1.132],[0.526,1.166],[0.454,1.197],[0.38,1.223],[0.305,1.245],[0.23,1.262],[0.153,1.274],[0.076,1.282]],"o":[[-0.956,-0.848],[-0.902,-0.903],[-0.847,-0.955],[-0.787,-1.003],[-0.726,-1.049],[-0.661,-1.09],[-0.593,-1.128],[-0.523,-1.161],[-0.452,-1.19],[-0.378,-1.215],[-0.304,-1.234],[-0.227,-1.249],[-0.151,-1.261],[-0.076,-1.266]],"v":[[-23.037,48.195],[-24.455,44.114],[-28.535,42.696],[-29.453,38.475],[-33.334,36.579],[-33.738,32.278],[-37.363,29.928],[-37.245,25.61],[-40.558,22.838],[-39.917,18.567],[-42.869,15.413],[-41.715,11.25],[-44.263,7.763],[-42.614,3.769]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gs","o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":1.3,"ix":10},"g":{"p":3,"k":{"a":0,"k":[0,0,0,0,0.657,0,0,0,0.999,0,0,0],"ix":8}},"s":{"a":0,"k":[-51.334,-3.368],"ix":4},"e":{"a":0,"k":[-5.664,63.387],"ix":5},"t":1,"lc":2,"lj":1,"ml":4,"ml2":{"a":0,"k":4,"ix":13},"bm":0,"nm":"Gradient Stroke 1","mn":"ADBE Vector Graphic - G-Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[67.203,68.242],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[183.94,184.556],"ix":3},"r":{"a":0,"k":-127.103,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.08],"y":[0]},"t":14,"s":[100]},{"t":52,"s":[0]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.08],"y":[0]},"t":9,"s":[100]},{"t":47,"s":[0]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0},{"ddd":0,"ind":43,"ty":4,"nm":"squiggle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.999],"y":[1]},"o":{"x":[0.35],"y":[0.3]},"t":42,"s":[100]},{"t":48,"s":[0]}],"ix":11},"r":{"a":0,"k":-111,"ix":10},"p":{"a":0,"k":[489.5,346,0],"ix":2,"l":2},"a":{"a":0,"k":[110.531,134.174,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.78,0.78,0.78],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,16.667]},"t":9,"s":[0,0,100]},{"t":19,"s":[-190.2,190.2,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.726,1.051],[0.662,1.093],[0.595,1.132],[0.526,1.166],[0.454,1.197],[0.38,1.223],[0.305,1.245],[0.23,1.262],[0.153,1.274],[0.076,1.282],[0,1.286],[-0.076,1.266]],"o":[[-0.726,-1.049],[-0.661,-1.09],[-0.593,-1.128],[-0.523,-1.161],[-0.452,-1.19],[-0.378,-1.215],[-0.304,-1.234],[-0.227,-1.249],[-0.151,-1.261],[-0.076,-1.266],[0,-1.285],[0.076,-1.282]],"v":[[-33.334,36.579],[-33.738,32.278],[-37.363,29.928],[-37.245,25.61],[-40.558,22.838],[-39.917,18.567],[-42.869,15.413],[-41.715,11.25],[-44.263,7.763],[-42.614,3.769],[-44.726,0],[-42.614,-3.769]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gs","o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":1.3,"ix":10},"g":{"p":3,"k":{"a":0,"k":[0,0,0,0,0.657,0,0,0,0.999,0,0,0],"ix":8}},"s":{"a":0,"k":[-51.334,-3.368],"ix":4},"e":{"a":0,"k":[-19.907,57.199],"ix":5},"t":1,"lc":2,"lj":1,"ml":4,"ml2":{"a":0,"k":4,"ix":13},"bm":0,"nm":"Gradient Stroke 1","mn":"ADBE Vector Graphic - G-Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[67.203,68.242],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[188.25,184.565],"ix":3},"r":{"a":0,"k":-127.103,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.08],"y":[0]},"t":15,"s":[100]},{"t":52,"s":[0]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.08],"y":[0]},"t":9,"s":[100]},{"t":47,"s":[0]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":9,"op":150,"st":2,"ct":1,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Fill","tt":1,"tp":2,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[214.5,256,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[204,204,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[15.761,0],[0.014,0],[-0.022,-14.891],[-15.762,0],[-0.014,0],[0.022,14.891]],"o":[[-0.014,0],[-15.78,0.021],[0.022,14.878],[0.014,0],[15.78,-0.021],[-0.022,-14.878]],"v":[[-24.999,-109.962],[-25.04,-109.962],[-53.572,-82.962],[-25.001,-56.037],[-24.96,-56.037],[3.572,-83.038]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,1,0.945,0.592,0.5,1,0.945,0.592,1,1,0.945,0.592,0,1,0.5,0.51,1,0.02],"ix":9}},"s":{"a":0,"k":[-25.862,-83.289],"ix":5},"e":{"a":0,"k":[-13.548,-61.401],"ix":6},"t":2,"h":{"a":0,"k":0,"ix":7},"a":{"a":0,"k":0,"ix":8},"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-6.993,-53.863],"ix":2},"a":{"a":0,"k":[-25.977,-84.863],"ix":1},"s":{"a":0,"k":[132.543,132.543],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"gradient","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[15.761,0],[0.014,0],[-0.022,-14.891],[-15.762,0],[-0.014,0],[0.022,14.891]],"o":[[-0.014,0],[-15.78,0.021],[0.022,14.878],[0.014,0],[15.78,-0.021],[-0.022,-14.878]],"v":[[-24.999,-109.962],[-25.04,-109.962],[-53.572,-82.962],[-25.001,-56.037],[-24.96,-56.037],[3.572,-83.038]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,1,0.945,0.592,0.5,1,0.945,0.592,1,1,0.945,0.592,0,1,0.5,0.51,1,0.02],"ix":9}},"s":{"a":0,"k":[-24.561,-84.795],"ix":5},"e":{"a":0,"k":[-39.523,-67.039],"ix":6},"t":2,"h":{"a":0,"k":0,"ix":7},"a":{"a":0,"k":0,"ix":8},"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[30.441,-51.809],"ix":2},"a":{"a":0,"k":[-25.977,-84.863],"ix":1},"s":{"a":0,"k":[121.525,121.525],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"gradient","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[14.899,0],[4.925,-1.98],[3.663,-8.609],[9.791,0],[5.499,2.077],[4.93,0],[4.924,-1.982],[-8.293,-18.344],[-14.89,0],[-4.923,1.982],[-3.672,8.588],[-9.801,-0.001],[-5.469,-2.058],[-4.959,0],[-4.924,1.982],[8.298,18.354]],"o":[[-5.031,0],[-9.757,3.928],[-5.135,11.979],[-4.231,0],[-4.505,-1.698],[-5.035,0],[-19.492,7.847],[6.198,13.711],[5.031,0],[9.746,-3.924],[5.137,-12.014],[4.212,0],[4.528,1.719],[5.029,0],[19.503,-7.851],[-6.203,-13.721]],"v":[[43.103,-53.477],[28.028,-50.559],[7.456,-30.732],[-14.187,-13.063],[-28.723,-16.203],[-43.007,-18.8],[-58.087,-15.88],[-78.359,31.551],[-43.127,53.477],[-28.053,50.556],[-7.484,30.778],[14.172,13.064],[28.636,16.176],[42.997,18.806],[58.067,15.886],[78.354,-31.538]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":7,"k":{"a":0,"k":[0,0.443,0.333,0.98,0.215,0.443,0.333,0.98,0.431,0.443,0.333,0.98,0.52,0.443,0.333,0.98,0.61,0.443,0.333,0.98,0.805,0.443,0.333,0.98,1,0.443,0.333,0.98,0,0,0.215,0.5,0.43,1,0.52,1,0.61,1,0.805,0.5,0.999,0],"ix":9}},"s":{"a":0,"k":[-19.95,7.46],"ix":5},"e":{"a":0,"k":[81.007,-34.696],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-11,3],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"wave","np":2,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.687,0],[1.091,-22.483],[-24.519,-1.059],[-0.686,0],[-1.091,22.483],[24.518,1.059]],"o":[[-23.608,0.001],[-1.122,23.137],[0.693,0.03],[23.608,0],[1.122,-23.137],[-0.693,-0.03]],"v":[[-0.034,-41.938],[-44.394,-1.918],[-2.032,41.893],[0.035,41.938],[44.395,1.918],[2.033,-41.893]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,0.933,0.984,0.984,0.5,0.933,0.984,0.984,1,0.933,0.984,0.984,0.001,1,0.5,0.5,0.999,0],"ix":9}},"s":{"a":0,"k":[43.24,0.915],"ix":5},"e":{"a":0,"k":[-45.157,1.44],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[13.182,-25.413],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[99.365,99.365],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"circle","np":2,"cix":2,"bm":0,"ix":4,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[2.877,0],[2.517,-1.45],[0,0],[-4.952,-2.868],[0,0],[-2.857,0],[-2.528,1.469],[0,0],[4.92,2.873],[0,0]],"o":[[-2.845,0],[0,0],[-4.959,2.857],[0,0],[2.524,1.462],[2.864,0],[0,0],[4.926,-2.862],[0,0],[-2.536,-1.481]],"v":[[-24.63,-64.572],[-32.838,-62.397],[-83.473,-33.223],[-83.488,-20.753],[-33.188,8.379],[-24.948,10.572],[-16.692,8.369],[33.505,-20.791],[33.52,-33.232],[-16.341,-62.35]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,1,0.404,0.8,0.5,1,0.404,0.8,1,1,0.404,0.8,0,1,0.5,0.5,0.999,0],"ix":9}},"s":{"a":0,"k":[-66.255,-15.301],"ix":5},"e":{"a":0,"k":[62.6,-27.527],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-4.727,-6.867],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[96.773,96.773],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"diamond","np":2,"cix":2,"bm":0,"ix":5,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[210.543,166.086],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0.168,0.922,0.063,0,0.584,0.922,0.063,0,1,0.922,0.063,0,0.17,1,0.585,0.5,1,0],"ix":9}},"s":{"a":0,"k":[-64.785,-0.012],"ix":5},"e":{"a":0,"k":[-63.68,182.348],"ix":6},"t":2,"h":{"a":0,"k":0,"ix":7},"a":{"a":0,"k":0,"ix":8},"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0.17,0.933,0.984,0.984,0.585,0.933,0.984,0.984,1,0.933,0.984,0.984,0.17,1,0.585,0.5,1,0],"ix":9}},"s":{"a":0,"k":[56.645,1.152],"ix":5},"e":{"a":0,"k":[-63.68,182.348],"ix":6},"t":2,"h":{"a":0,"k":0,"ix":7},"a":{"a":0,"k":0,"ix":8},"nm":"Gradient Fill 2","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-24.729,-31.957],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":4,"cix":2,"bm":0,"ix":6,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":150,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"horn","td":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[144,257.297,0],"ix":2,"l":2},"a":{"a":0,"k":[0,57.649,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.64,0.64,0.639],"y":[1,1,-95.256]},"o":{"x":[1,1,1],"y":[0,0,0]},"t":0,"s":[0,0,100]},{"i":{"x":[0.613,0.613,1],"y":[1,1,1]},"o":{"x":[0.224,0.224,0.566],"y":[0,0,129.431]},"t":14,"s":[225,225,100]},{"t":26,"s":[200,200,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.151,"y":0.421},"o":{"x":1,"y":0},"t":0,"s":[{"i":[[1.438,2.729],[-0.901,0.476],[0,0],[-0.476,-0.902],[1.18,-1.179],[0.693,-0.204],[0,0],[0.624,0],[1.064,1.064],[-0.721,2.039],[0,0],[0,0],[-0.106,0.222],[-0.315,0.315],[-5.083,-2.706],[0.481,-0.902],[0.902,0.481],[0.227,-0.116],[0,0],[0,0],[-7.09,-7.09],[-2.46,-0.819],[-0.342,0.046]],"o":[[-0.476,-0.902],[0,0],[0.902,-0.477],[2.651,5.023],[-0.384,0.384],[0,0],[-0.62,0.222],[-1.439,0],[-1.526,-1.526],[0,0],[0,0],[0.065,-0.241],[0.209,-0.518],[1.188,-1.188],[0.902,0.481],[-0.481,0.902],[-2.863,-1.521],[0,0],[0,0],[-0.185,1.406],[5.375,5.375],[0.953,0.194],[0.088,-0.254]],"v":[[37.14,38.071],[37.912,35.574],[37.917,35.574],[40.414,36.346],[41.034,45.008],[39.439,45.943],[7.411,57.32],[5.533,57.649],[1.629,56.016],[0.325,50.235],[0.369,50.111],[11.573,18.54],[11.827,17.846],[12.637,16.606],[21.392,17.277],[22.155,19.779],[19.653,20.542],[15.25,19.229],[15.25,19.238],[15.167,19.474],[24.199,33.441],[36.474,42.155],[38.444,42.349]],"c":true}]},{"i":{"x":0.74,"y":1},"o":{"x":0.167,"y":0.114},"t":16,"s":[{"i":[[1.438,2.729],[-0.901,0.476],[0,0],[-0.476,-0.902],[1.18,-1.179],[0.693,-0.204],[10.478,-6.192],[0.624,0],[1.064,1.064],[-0.721,2.039],[-0.649,2.227],[0,0],[-0.106,0.222],[-0.315,0.315],[-5.083,-2.706],[0.481,-0.902],[0.902,0.481],[0.227,-0.116],[0,0],[0,0],[-7.09,-7.09],[-2.46,-0.819],[-0.342,0.046]],"o":[[-0.476,-0.902],[0,0],[0.902,-0.477],[2.651,5.023],[-0.384,0.384],[0,0],[-0.633,0.197],[-1.439,0],[-1.526,-1.526],[0,0],[8.604,-13.533],[0.065,-0.241],[0.209,-0.518],[1.188,-1.188],[0.902,0.481],[-0.481,0.902],[-2.863,-1.521],[0,0],[0,0],[-0.185,1.406],[5.375,5.375],[0.953,0.194],[0.088,-0.254]],"v":[[38.844,39.775],[39.616,37.278],[39.621,37.278],[42.118,38.05],[42.738,46.712],[41.143,47.647],[7.411,57.32],[5.533,57.649],[1.629,56.016],[0.325,50.235],[0.714,49.058],[9.868,16.835],[10.122,16.141],[10.932,14.901],[19.687,15.572],[20.45,18.074],[17.948,18.837],[13.545,17.524],[13.545,17.533],[13.462,17.769],[24.199,33.441],[38.178,43.859],[40.148,44.053]],"c":true}]},{"t":24,"s":[{"i":[[1.438,2.729],[-0.901,0.476],[0,0],[-0.476,-0.902],[1.18,-1.179],[0.693,-0.204],[0,0],[0.624,0],[1.064,1.064],[-0.721,2.039],[0,0],[0,0],[-0.106,0.222],[-0.315,0.315],[-5.083,-2.706],[0.481,-0.902],[0.902,0.481],[0.227,-0.116],[0,0],[0,0],[-7.09,-7.09],[-2.46,-0.819],[-0.342,0.046]],"o":[[-0.476,-0.902],[0,0],[0.902,-0.477],[2.651,5.023],[-0.384,0.384],[0,0],[-0.62,0.222],[-1.439,0],[-1.526,-1.526],[0,0],[0,0],[0.065,-0.241],[0.209,-0.518],[1.188,-1.188],[0.902,0.481],[-0.481,0.902],[-2.863,-1.521],[0,0],[0,0],[-0.185,1.406],[5.375,5.375],[0.953,0.194],[0.088,-0.254]],"v":[[37.14,38.071],[37.912,35.574],[37.917,35.574],[40.414,36.346],[41.034,45.008],[39.439,45.943],[7.411,57.32],[5.533,57.649],[1.629,56.016],[0.325,50.235],[0.369,50.111],[11.573,18.54],[11.827,17.846],[12.637,16.606],[21.392,17.277],[22.155,19.779],[19.653,20.542],[15.25,19.229],[15.25,19.238],[15.167,19.474],[24.199,33.441],[36.474,42.155],[38.444,42.349]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.925490196078,0.811764705882,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false}],"ip":0,"op":150,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":3,"ty":0,"nm":"Shapes","td":1,"refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[200,200,0],"ix":2,"l":2},"a":{"a":0,"k":[519,322,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"w":1038,"h":644,"ip":0,"op":150,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Gradient","tt":1,"tp":3,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[194,202,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[85.896,85.896,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[125.517,0],[0,-125.518],[-125.518,0],[0,125.517]],"o":[[-125.518,0],[0,125.517],[125.517,0],[0,-125.518]],"v":[[0,-227.27],[-227.27,0],[0,227.27],[227.27,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":9,"k":{"a":0,"k":[0.313,0.98,0.733,0.62,0.4,0.939,0.549,0.647,0.517,0.898,0.365,0.675,0.542,0.892,0.363,0.678,0.611,0.886,0.361,0.682,0.714,0.733,0.365,0.79,0.899,0.58,0.369,0.898,0.945,0.58,0.369,0.898,1,0.58,0.369,0.898,0.315,1,0.395,1,0.512,1,0.539,1,0.622,1,0.711,1,0.888,1,0.942,0.5,1,0],"ix":9}},"s":{"a":0,"k":[6.72,-0.759],"ix":5},"e":{"a":0,"k":[2.394,226.941],"ix":6},"t":2,"h":{"a":0,"k":0,"ix":7},"a":{"a":0,"k":0,"ix":8},"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-2.505,-5.298],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[111.394,111.394],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":150,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Fill 3","tt":1,"tp":6,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[235,231,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[204,204,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[15.761,0],[0.014,0],[-0.022,-14.891],[-15.762,0],[-0.014,0],[0.022,14.891]],"o":[[-0.014,0],[-15.78,0.021],[0.022,14.878],[0.014,0],[15.78,-0.021],[-0.022,-14.878]],"v":[[-24.999,-109.962],[-25.04,-109.962],[-53.572,-82.962],[-25.001,-56.037],[-24.96,-56.037],[3.572,-83.038]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,1,0.945,0.592,0.5,1,0.945,0.592,1,1,0.945,0.592,0,1,0.5,0.51,1,0.02],"ix":9}},"s":{"a":0,"k":[-25.862,-83.289],"ix":5},"e":{"a":0,"k":[-33.607,-72.987],"ix":6},"t":2,"h":{"a":0,"k":0,"ix":7},"a":{"a":0,"k":0,"ix":8},"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-6.993,-53.863],"ix":2},"a":{"a":0,"k":[-25.977,-84.863],"ix":1},"s":{"a":0,"k":[132.543,132.543],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"gradient","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[15.761,0],[0.014,0],[-0.022,-14.891],[-15.762,0],[-0.014,0],[0.022,14.891]],"o":[[-0.014,0],[-15.78,0.021],[0.022,14.878],[0.014,0],[15.78,-0.021],[-0.022,-14.878]],"v":[[-24.999,-109.962],[-25.04,-109.962],[-53.572,-82.962],[-25.001,-56.037],[-24.96,-56.037],[3.572,-83.038]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,1,0.945,0.592,0.5,1,0.945,0.592,1,1,0.945,0.592,0,1,0.5,0.51,1,0.02],"ix":9}},"s":{"a":0,"k":[-24.561,-84.795],"ix":5},"e":{"a":0,"k":[-39.523,-67.039],"ix":6},"t":2,"h":{"a":0,"k":0,"ix":7},"a":{"a":0,"k":0,"ix":8},"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[30.441,-51.809],"ix":2},"a":{"a":0,"k":[-25.977,-84.863],"ix":1},"s":{"a":0,"k":[121.525,121.525],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"gradient","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[14.899,0],[4.925,-1.98],[3.663,-8.609],[9.791,0],[5.499,2.077],[4.93,0],[4.924,-1.982],[-8.293,-18.344],[-14.89,0],[-4.923,1.982],[-3.672,8.588],[-9.801,-0.001],[-5.469,-2.058],[-4.959,0],[-4.924,1.982],[8.298,18.354]],"o":[[-5.031,0],[-9.757,3.928],[-5.135,11.979],[-4.231,0],[-4.505,-1.698],[-5.035,0],[-19.492,7.847],[6.198,13.711],[5.031,0],[9.746,-3.924],[5.137,-12.014],[4.212,0],[4.528,1.719],[5.029,0],[19.503,-7.851],[-6.203,-13.721]],"v":[[43.103,-53.477],[28.028,-50.559],[7.456,-30.732],[-14.187,-13.063],[-28.723,-16.203],[-43.007,-18.8],[-58.087,-15.88],[-78.359,31.551],[-43.127,53.477],[-28.053,50.556],[-7.484,30.778],[14.172,13.064],[28.636,16.176],[42.997,18.806],[58.067,15.886],[78.354,-31.538]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":7,"k":{"a":0,"k":[0,0.443,0.333,0.98,0.215,0.443,0.333,0.98,0.431,0.443,0.333,0.98,0.52,0.443,0.333,0.98,0.61,0.443,0.333,0.98,0.805,0.443,0.333,0.98,1,0.443,0.333,0.98,0,0,0.215,0.5,0.43,1,0.52,1,0.61,1,0.805,0.5,0.999,0],"ix":9}},"s":{"a":0,"k":[-19.95,7.46],"ix":5},"e":{"a":0,"k":[81.007,-34.696],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-11,3],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"wave","np":2,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.687,0],[1.091,-22.483],[-24.519,-1.059],[-0.686,0],[-1.091,22.483],[24.518,1.059]],"o":[[-23.608,0.001],[-1.122,23.137],[0.693,0.03],[23.608,0],[1.122,-23.137],[-0.693,-0.03]],"v":[[-0.034,-41.938],[-44.394,-1.918],[-2.032,41.893],[0.035,41.938],[44.395,1.918],[2.033,-41.893]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,0.933,0.984,0.984,0.5,0.933,0.984,0.984,1,0.933,0.984,0.984,0.001,1,0.5,0.5,0.999,0],"ix":9}},"s":{"a":0,"k":[17.278,-17.255],"ix":5},"e":{"a":0,"k":[-29.447,28.861],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[11.182,-25.413],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[99.365,99.365],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"circle","np":2,"cix":2,"bm":0,"ix":4,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[2.877,0],[2.517,-1.45],[0,0],[-4.952,-2.868],[0,0],[-2.857,0],[-2.528,1.469],[0,0],[4.92,2.873],[0,0]],"o":[[-2.845,0],[0,0],[-4.959,2.857],[0,0],[2.524,1.462],[2.864,0],[0,0],[4.926,-2.862],[0,0],[-2.536,-1.481]],"v":[[-24.63,-64.572],[-32.838,-62.397],[-83.473,-33.223],[-83.488,-20.753],[-33.188,8.379],[-24.948,10.572],[-16.692,8.369],[33.505,-20.791],[33.52,-33.232],[-16.341,-62.35]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,1,0.404,0.8,0.5,1,0.404,0.8,1,1,0.404,0.8,0,1,0.5,0.5,0.999,0],"ix":9}},"s":{"a":0,"k":[-66.255,-15.301],"ix":5},"e":{"a":0,"k":[62.6,-27.527],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-4.727,-6.867],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[96.773,96.773],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"diamond","np":2,"cix":2,"bm":0,"ix":5,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[210.543,166.086],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0.168,0.922,0.063,0,0.584,0.922,0.063,0,1,0.922,0.063,0,0.17,1,0.585,0.5,1,0],"ix":9}},"s":{"a":0,"k":[-64.785,-0.012],"ix":5},"e":{"a":0,"k":[-63.68,182.348],"ix":6},"t":2,"h":{"a":0,"k":0,"ix":7},"a":{"a":0,"k":0,"ix":8},"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0.17,0.933,0.984,0.984,0.585,0.933,0.984,0.984,1,0.933,0.984,0.984,0.17,1,0.585,0.5,1,0],"ix":9}},"s":{"a":0,"k":[56.645,1.152],"ix":5},"e":{"a":0,"k":[-63.68,182.348],"ix":6},"t":2,"h":{"a":0,"k":0,"ix":7},"a":{"a":0,"k":0,"ix":8},"nm":"Gradient Fill 2","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-24.729,-31.957],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":4,"cix":2,"bm":0,"ix":6,"mn":"ADBE Vector Group","hd":false}],"ip":-3,"op":150,"st":-3,"ct":1,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"Strokes","td":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[144,257.297,0],"ix":2,"l":2},"a":{"a":0,"k":[-56,57.297,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.42,0.42,0.658],"y":[1,1,-23.764]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,18.628]},"t":19,"s":[0,0,100]},{"i":{"x":[0.925,0.925,0.796],"y":[1,1,1]},"o":{"x":[0.489,0.489,0.435],"y":[0,0,17.989]},"t":26,"s":[108.171,108.171,100]},{"t":30,"s":[100,100,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-16.75,0.25]],"o":[[0,0],[15.322,-0.229]],"v":[[7.75,12],[34.25,-3.25]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.988235294819,0.929411768913,0.823529422283,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":7,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.925490196078,0.811764705882,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 3","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.25,0],[0,0]],"o":[[0.25,0],[0,0]],"v":[[-1.75,3],[13.75,-12.25]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.988235294819,0.929411768913,0.823529422283,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":7,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.925490196078,0.811764705882,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 2","np":3,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-1,17.5]],"o":[[0,0],[1,-17.5]],"v":[[-11,-6.75],[4.5,-33.5]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.988235294819,0.929411768913,0.823529422283,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":7,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.925490196078,0.811764705882,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[1],"y":[0]},"t":19,"s":[0]},{"t":31,"s":[99]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":4,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":19,"op":150,"st":19,"ct":1,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"circle 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.21],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":20,"s":[0]},{"t":29,"s":[360]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.83,"y":1},"o":{"x":0.167,"y":0.167},"t":10,"s":[181.159,228.767,0],"to":[32.091,-27.267,0],"ti":[0,0,0]},{"t":28,"s":[247.409,213.767,0]}],"ix":2,"l":2},"a":{"a":0,"k":[39.892,3.383,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.21,0.21,0.21],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,33.333]},"t":20,"s":[0,0,100]},{"t":29,"s":[200,200,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.323,1.323],[1.323,1.322],[1.322,-1.323],[-1.323,-1.323]],"o":[[1.323,-1.323],[-1.323,-1.323],[-1.323,1.322],[1.322,1.323]],"v":[[2.391,2.226],[2.391,-2.556],[-2.391,-2.556],[-2.391,2.226]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,0.486,0.369,0.961,0.5,0.706,0.367,0.814,1,0.925,0.365,0.667],"ix":9}},"s":{"a":0,"k":[4.284,0.371],"ix":5},"e":{"a":0,"k":[-11.611,-2.699],"ix":6},"t":1,"nm":"Gradient Fill blue 01","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[39.892,3.383],"ix":2},"a":{"a":0,"k":[0,-0.165],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"circle","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":10,"op":150,"st":4,"ct":1,"bm":0},{"ddd":0,"ind":8,"ty":4,"nm":"circle 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.21],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":20,"s":[0]},{"t":29,"s":[360]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.83,"y":1},"o":{"x":0.167,"y":0.167},"t":10,"s":[166.534,213.767,0],"to":[62.216,-12.517,0],"ti":[0,0,0]},{"t":28,"s":[223.784,148.767,0]}],"ix":2,"l":2},"a":{"a":0,"k":[39.892,3.383,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.21,0.21,0.21],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,33.333]},"t":20,"s":[0,0,100]},{"t":29,"s":[200,200,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.323,1.323],[1.323,1.322],[1.322,-1.323],[-1.323,-1.323]],"o":[[1.323,-1.323],[-1.323,-1.323],[-1.323,1.322],[1.322,1.323]],"v":[[2.391,2.226],[2.391,-2.556],[-2.391,-2.556],[-2.391,2.226]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0.326,0.976,0.816,0.678,0.663,0.953,0.586,0.673,1,0.929,0.357,0.667],"ix":9}},"s":{"a":0,"k":[8.464,-12.438],"ix":5},"e":{"a":0,"k":[-2.952,2.827],"ix":6},"t":1,"nm":"Gradient Fill blue 02","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[39.892,3.383],"ix":2},"a":{"a":0,"k":[0,-0.165],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"circle","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":10,"op":150,"st":4,"ct":1,"bm":0},{"ddd":0,"ind":9,"ty":4,"nm":"rectangle 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.21],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":20,"s":[0]},{"t":29,"s":[360]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.83,"y":1},"o":{"x":0.167,"y":0.167},"t":10,"s":[182.196,234.62,0],"to":[13.554,-41.87,0],"ti":[0,0,0]},{"t":28,"s":[232.696,178.62,0]}],"ix":2,"l":2},"a":{"a":0,"k":[44.348,18.31,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.21,0.21,0.21],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,33.333]},"t":20,"s":[0,0,100]},{"t":29,"s":[200,200,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.015,0.115],[0,0],[-0.115,-1.016],[0,0],[1.015,-0.115],[0,0],[0.115,1.015],[0,0]],"o":[[0,0],[1.015,-0.115],[0,0],[0.115,1.016],[0,0],[-1.015,0.115],[0,0],[-0.115,-1.015]],"v":[[-3.31,-2.041],[2.77,-2.729],[4.817,-1.099],[4.94,-0.006],[3.31,2.041],[-2.77,2.729],[-4.816,1.099],[-4.94,0.005]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0.343,0.976,0.384,0.631,0.671,0.935,0.375,0.655,1,0.894,0.365,0.678],"ix":9}},"s":{"a":0,"k":[-7.602,-3.289],"ix":5},"e":{"a":0,"k":[9.432,4.159],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[44.348,18.31],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":10,"op":150,"st":4,"ct":1,"bm":0},{"ddd":0,"ind":10,"ty":4,"nm":"rectangle ","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.21],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":20,"s":[0]},{"t":29,"s":[360]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.83,"y":1},"o":{"x":0.167,"y":0.167},"t":10,"s":[172.675,222.955,0],"to":[44.075,-39.705,0],"ti":[0,0,0]},{"t":28,"s":[183.925,158.455,0]}],"ix":2,"l":2},"a":{"a":0,"k":[19.963,8.228,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.21,0.21,0.21],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,33.333]},"t":20,"s":[0,0,100]},{"t":29,"s":[200,200,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.824,-0.603],[0,0],[-0.604,-0.825],[0,0],[-0.825,0.603],[0,0],[0.604,0.824],[0,0]],"o":[[0,0],[-0.825,0.604],[0,0],[0.604,0.825],[0,0],[0.825,-0.603],[0,0],[-0.603,-0.824]],"v":[[-2.456,-4.287],[-3.344,-3.637],[-3.743,-1.051],[-0.13,3.886],[2.456,4.287],[3.344,3.636],[3.743,1.051],[0.13,-3.887]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,0.922,0.361,0.667,0.5,0.949,0.588,0.673,1,0.976,0.816,0.678],"ix":9}},"s":{"a":0,"k":[-0.736,-2.33],"ix":5},"e":{"a":0,"k":[2.635,9.532],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[19.963,8.228],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":10,"op":150,"st":4,"ct":1,"bm":0}],"markers":[{"tm":9,"cm":"1st wave\\r","dr":0},{"tm":17,"cm":"2nd wave","dr":0}],"props":{}}');var Pa=r(82530);const Ia=["className","variant","value","indeterminate","size"];function Aa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ca(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Aa(Object(r),!0).forEach((function(t){ka(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Aa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ka(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Da(){Da=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Na(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Ra=(0,ye.Z)(r(88166)).default;let Ma;Pa.env.EXCLUDE_SWC||(Ma=new ve.t(["sp-progress-circle"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Na(o,n,i,a,s,"next",e)}function s(e){Na(o,n,i,a,s,"throw",e)}a(void 0)}))}}(Da().mark((function e(){var t,n;return Da().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(669)]).then(r.bind(r,82556));case 2:return t=e.sent,n=t.ProgressCircle,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const ja={S:"s",M:"m",L:"l"},Fa=(0,ge.Z)({displayName:"Wait",fallback:Ra,swcLoader:Ma,swcProps:e=>{const t=e.className,r=e.variant,n=e.value,i=e.indeterminate,o=e.size,a=void 0===o?"M":o;return Ca(Ca(Ca({},function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,Ia)),(0,me.cd)({indeterminate:void 0===n||i})),{},{class:t,progress:n,size:ja[a],static:r&&"overBackground"===r?"white":void 0})},tagName:"sp-progress-circle"});var Za,Ba;let Ga=(0,$.Pi)(((Ba=class extends Y.Component{render(){return Y.createElement("div",{"data-test-id":this.props["data-test-id"],className:"pj7"},Y.createElement(Fa,{size:"S",indeterminate:!0}),Y.createElement("div",{style:{opacity:0}},this.props.buttonText))}}).defaultProps={"data-test-id":"button-action-spinner"},Ba.propTypes={buttonText:K().string.isRequired,"data-test-id":K().string},Za=Ba))||Za;var Ua,Ha,za,Va,Ya,Wa=r(98675),Ka=r(21360);function $a(){$a=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function qa(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Xa(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){qa(o,n,i,a,s,"next",e)}function s(e){qa(o,n,i,a,s,"throw",e)}a(void 0)}))}}function Ja(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function Qa(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let es=((Ya=class extends wa{constructor(e){var t;super(e),t=this,Ja(this,"orgName",Ha,this),Ja(this,"currPage",za,this),Ja(this,"isActionLoading",Va,this),this.handlePublish=function(){var e=Xa($a().mark((function e(r){return $a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,Ka._q)(Ka.bC.BRAND_PUBLISH.start),null==r||r.stopPropagation(),t.isActionLoading=!0,e.next=5,t.context.brandActions.publishBrand(t.props.brand);case 5:1===e.sent&&((0,Ka._q)(Ka.bC.BRAND_PUBLISH.end),(0,Ka.L8)(Ka.bC.BRAND_PUBLISH.measure),t.triggerConfetti()),t.isActionLoading=!1;case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.triggerConfetti=Xa($a().mark((function e(){return $a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.currPage="publishConfetti",Oa().loadAnimation({container:t.confettiCanvasRef.current,renderer:"svg",loop:!1,autoplay:!0,animationData:Ta}).addEventListener("complete",t.onCompleteAnimation);case 3:case"end":return e.stop()}}),e)}))),this.onCompleteAnimation=()=>{Oa().destroy(),this.currPage="publish1"},this.onClickCancel=e=>{var t,r;null==e||e.stopPropagation(),null===(t=(r=this.props).close)||void 0===t||t.call(r)},this.confettiCanvasRef=Y.createRef()}get showPublishBrandBanner(){return this.props.needsReview&&"publish0"===this.currPage}get isOrgLoading(){return null===this.orgName}componentDidMount(){Sa.Z.getAssetWithCloudID(this.props.brand.assetId).then((e=>{(0,o.when)((()=>!!e.repositoryName),(()=>{this.orgName=e.repositoryName}))})).catch((e=>Promise.reject(e)))}get actionSpinner(){return Y.createElement(Ga,{"data-test-id":"publish-dialog-action-spinner",buttonText:(0,D.Iu)("BRAND_PUBLISH_ACTION")})}get publishContent(){return Y.createElement("div",{"data-test-id":"publish-content"},Y.createElement("div",{className:xa.panelOrganizationBox},Y.createElement("div",{className:xa.panelOrganizationTop},Y.createElement(X.Z,{id:"Building",height:18}),Y.createElement("div",{className:Q()(xa.panelOrganizationTitle,{[xa.ghostLoading]:this.isOrgLoading})},this.orgName?(0,D.Iu)("BRAND_PUBLISH_DIALOG_INFO_ORG",{organization:this.orgName}):(0,D.Iu)("BRAND_PUBLISH_DIALOG_INFO_ORG_GENERIC")),Y.createElement("div",{className:xa.panelOrganizationPermission},(0,D.Iu)("BRAND_PUBLISH_DIALOG_INFO_ROLE")))),Y.createElement("div",{className:Q()(xa.publishDialogBody)},Y.createElement(di.Z,{"data-test-id":"publish-dialog-body",onClick:()=>(0,R.rb)(),html:(0,D.Iu)("BRAND_PUBLISH_DIALOG_PERMISSIONS")})),Y.createElement("div",{className:xa.publishDialogBody,"data-test-id":"publish-dialog-review-info"},(0,D.Iu)("BRAND_PUBLISH_DIALOG_REVIEW_INFO")))}get publishConfetti(){return Y.createElement(Y.Fragment,null,Y.createElement("div",{className:xa.confetti,ref:this.confettiCanvasRef,id:"extraction-dialog-canvas"}))}get publishSuccessContent(){return Y.createElement("div",{className:xa.publishSuccessContent,"data-test-id":"publish-success-content"},Y.createElement("div",{className:xa.statusLightAnimationContainer},Y.createElement("div",{className:xa.statusLightAnimation},Y.createElement("div",{className:xa.statusLightText},Y.createElement(Wa.Z,{id:"brand-publish-status","data-test-id":"publish-status-light",variant:"positive",size:"xl"},(0,D.Iu)("BRAND_PUBLISHED_BADGE"))),Y.createElement("div",{className:xa.statusLightCheck},Y.createElement(X.Z,{id:"Checkmark",height:20})))),Y.createElement("div",{className:xa.successHeader},(0,D.Iu)("BRAND_PUBLISH_SUCCESS_TITLE",{brand:this.props.brand.name})),Y.createElement("div",{className:xa.publishSuccessDialogBody},(0,D.Iu)("BRAND_PUBLISH_SUCCESS_BODY")),Y.createElement("div",{className:xa.successFooter},Y.createElement(Mn.Z,{"data-test-id":"publish-done-button",onClick:e=>{e&&e.stopPropagation(),Oa().destroy("publish-pill"),this.props.close()},variant:"cta"},(0,D.Iu)("BRAND_PUBLISH_SUCCESS_DONE"))))}get publishBrandBanner(){return this.showPublishBrandBanner&&Y.createElement("div",{className:xa.dialogBanner},Y.createElement("div",null,(0,D.Iu)("BRAND_PUBLISH_DIALOG_REVIEW_BANNER")),Y.createElement(Mn.Z,{className:xa.dialogBannerButton,"data-test-id":"dialog-cancel-button",onClick:()=>{this.props.close()},variant:"secondary",treatment:"outline"},(0,D.Iu)("BRAND_PUBLISH_DIALOG_REVIEW_BUTTON")))}render(){let e,t="";switch(this.currPage){case"publish0":default:t=this.publishContent,e=(0,D.Iu)("BRAND_PUBLISH_ACTION_LONG");break;case"publish1":t=this.publishSuccessContent;break;case"publishConfetti":t=this.publishConfetti}return Y.createElement(wa,{title:e,className:xa.publishBrandDialog,close:this.props.close,banner:this.publishBrandBanner,showFooter:"publish0"===this.currPage,okButtonContent:this.isActionLoading?this.actionSpinner:(0,D.Iu)("BRAND_PUBLISH_ACTION"),okButtonEnabled:!this.isActionLoading,okButtonDataTestId:"publish-ok-button",onClickOK:this.handlePublish,closeOnClickOK:!1,cancelButtonDataTestId:"publish-cancel-button",cancelButtonEnabled:!this.isActionLoading},Y.createElement("div",{className:xa.dialogContentsWrapper},t))}}).dialogName="publishBrand",Ya.contextType=ee.r,Ya.propTypes={brand:K().instanceOf(Ge.Zu),close:K().func.isRequired,needsReview:K().bool,onPublish:K().func},Qa((Ua=Ya).prototype,"showPublishBrandBanner",[o.computed],Object.getOwnPropertyDescriptor(Ua.prototype,"showPublishBrandBanner"),Ua.prototype),Ha=Qa(Ua.prototype,"orgName",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),za=Qa(Ua.prototype,"currPage",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"publish0"}}),Va=Qa(Ua.prototype,"isActionLoading",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ua);const ts={publishChangesDialog:"sEr",dialogContentsWrapper:"ZXP",contentParagraph:"t2I",dialogBody:"yew"};var rs,ns,is;function os(){os=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function as(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}let ss=(is=class extends wa{constructor(e){var t;super(e),t=this,function(e,t,r,n){r&&Object.defineProperty(e,"isActionLoading",{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}(this,0,ns,this),this.handlePublishChanges=function(){var e,r=(e=os().mark((function e(r){return os().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return null==r||r.stopPropagation(),t.isActionLoading=!0,e.next=4,t.context.brandActions.publishBrand(t.props.brand,"BRAND_PUBLISH_CHANGES_SUCCESS_TOAST");case 4:1===e.sent?t.props.close():t.isActionLoading=!1;case 6:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){as(o,n,i,a,s,"next",e)}function s(e){as(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}(),this.onClickCancel=this.props.close}get actionSpinner(){return Y.createElement(Ga,{"data-test-id":"publish-changes-dialog-action-spinner",buttonText:(0,D.Iu)("BRAND_PUBLISH_CHANGES_ACTION")})}get dialogContent(){return Y.createElement("div",{"data-test-id":"publish-changes-content",className:ts.dialogBody},Y.createElement("div",{className:ts.contentParagraph},(0,D.Iu)("BRAND_PUBLISH_CHANGES_DIALOG_BODY")),Y.createElement("div",{className:ts.contentParagraph,"data-test-id":"publish-changes-info"},Y.createElement(di.Z,{html:(0,D.Iu)("BRAND_PUBLISH_CHANGES_DIALOG_INFO")})))}render(){return Y.createElement(wa,{title:(0,D.Iu)("BRAND_PUBLISH_CHANGES_ACTION"),className:ts.publishChangesBrandDialog,close:this.props.close,okButtonContent:this.isActionLoading?this.actionSpinner:(0,D.Iu)("BRAND_PUBLISH_CHANGES_ACTION"),okButtonEnabled:!this.isActionLoading,okButtonDataTestId:"publish-changes-ok-button",onClickOK:this.handlePublishChanges,closeOnClickOK:!1,cancelButtonEnabled:!this.isActionLoading,cancelButtonDataTestId:"publish-changes-cancel-button"},Y.createElement("div",{className:ts.dialogContentsWrapper},this.dialogContent))}},is.dialogName="publishChanges",is.contextType=ee.r,is.propTypes={brand:K().instanceOf(Ge.Zu),close:K().func.isRequired},ns=function(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}((rs=is).prototype,"isActionLoading",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),rs);var cs,ls,us;function ds(){ds=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ps(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}let hs=(us=class extends wa{constructor(e){var t;super(e),t=this,function(e,t,r,n){r&&Object.defineProperty(e,"isActionLoading",{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}(this,0,ls,this),this.handleUnpublish=function(){var e,r=(e=ds().mark((function e(r){return ds().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,Ka._q)(Ka.bC.BRAND_UNPUBLISH.start),null==r||r.stopPropagation(),t.isActionLoading=!0,e.next=5,t.context.brandActions.unpublishBrand(t.props.brand);case 5:1===e.sent?((0,Ka._q)(Ka.bC.BRAND_UNPUBLISH.end),(0,Ka.L8)(Ka.bC.BRAND_UNPUBLISH.measure),t.props.close()):t.isActionLoading=!1;case 7:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ps(o,n,i,a,s,"next",e)}function s(e){ps(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}(),this.onClickCancel=()=>{var e,t;return null===(e=(t=this.props).close)||void 0===e?void 0:e.call(t)}}get actionSpinner(){return Y.createElement(Ga,{"data-test-id":"unpublish-dialog-action-spinner",buttonText:(0,D.Iu)("BRAND_UNPUBLISH_ACTION")})}get unpublishContent(){return Y.createElement("div",{"data-test-id":"unpublish-content",className:"BTH"},(0,D.Iu)("BRAND_UNPUBLISH_DIALOG_BODY_PROJECTS"))}render(){return Y.createElement(wa,{title:(0,D.Iu)("BRAND_UNPUBLISH_ACTION_LONG"),className:"Ipe",close:this.props.close,okButtonContent:this.isActionLoading?this.actionSpinner:(0,D.Iu)("BRAND_UNPUBLISH_ACTION"),okButtonEnabled:!this.isActionLoading,okButtonDataTestId:"unpublish-ok-button",onClickOK:this.handleUnpublish,closeOnClickOK:!1,cancelButtonEnabled:!this.isActionLoading,cancelButtonDataTestId:"unpublish-cancel-button"},Y.createElement("div",{className:"voU"},this.unpublishContent))}},us.dialogName="unpublishBrand",us.contextType=ee.r,us.propTypes={brand:K().instanceOf(Ge.Zu),close:K().func.isRequired},ls=function(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}((cs=us).prototype,"isActionLoading",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),cs);class fs extends wa{constructor(...e){super(...e),this._performDelete=(e,t=!0)=>{this.context.libraryManager.deleteLibrary(e),t&&this.context.toastManager.openToast("message",{variant:"success",message:(0,D.Iu)("BRAND_DELETED_SHORT",{libraryName:this.brand.name})})},this.onClickOK=()=>{F.Z.navigateToMosaic("brands"),this.brand.publishedFrom?((0,Ka._q)(Ka.bC.BRAND_DELETE_PUBLISHED.start),this._performDelete(this.context.libraryManager.getLibraryByAssetId(this.brand.publishedFrom)),this._performDelete(this.brand,!1),(0,Ka._q)(Ka.bC.BRAND_DELETE_PUBLISHED.end),(0,Ka.L8)(Ka.bC.BRAND_DELETE_PUBLISHED.measure)):((0,Ka._q)(Ka.bC.BRAND_DELETE_DRAFT.start),this._performDelete(this.brand),(0,Ka._q)(Ka.bC.BRAND_DELETE_DRAFT.end),(0,Ka.L8)(Ka.bC.BRAND_DELETE_DRAFT.measure))}}get brand(){return this.props.brand}get deleteType(){return(0,M.Hc)(this.brand)||this.brand.publishedTo?"publishedBrand":"private"}get message(){const e=this.brand.visibleCollaborators.length,t=(0,D.Iu)({private:"DELETE_BRAND_DRAFT",publishedBrand:"DELETE_BRAND_PUBLISHED"}[this.deleteType],{name:(0,dt.aS)(this.brand.name,48),numUsers:e});return Y.createElement("div",null,Y.createElement("div",{className:"eH3"},t),Y.createElement(di.Z,{"data-test-id":"delete-brand-recover-message",className:"aVz",onClick:()=>(0,R.jg)(),html:(0,D.Iu)("DELETE_BRAND_RECOVER_MESSAGE")}))}render(){return Y.createElement(wa,{title:(0,D.Iu)("DELETE_BRAND"),okButtonContent:(0,D.Iu)("DL_DELETE"),onClickOK:this.onClickOK,onClickCancel:()=>j.ZP.reportEvent("Operations","Delete Library","click","cancel"),close:this.props.close,variant:"warning"},Y.createElement("div",{"data-test-id":"delete-library-message"},this.message))}}fs.dialogName="deleteBrand",fs.contextType=ee.r,fs.propTypes={brand:K().instanceOf(Ge.Zu),close:K().func.isRequired};var ms=r(31910),gs=r(82530);const vs=["autoFocus","className","disabled","invalid","maxLength","multiLine","quiet","readOnly","required","spellCheck","disableOnOverlay","validationState","onChange"];function ys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ys(Object(r),!0).forEach((function(t){_s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Es(){Es=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ws(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}let xs;gs.env.EXCLUDE_SWC||(xs=new ve.t(["sp-textfield"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ws(o,n,i,a,s,"next",e)}function s(e){ws(o,n,i,a,s,"throw",e)}a(void 0)}))}}(Es().mark((function e(){var t,n;return Es().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(8885)]).then(r.bind(r,75015));case 2:return t=e.sent,n=t.Textfield,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const Ls=(0,ye.Z)(r(77057)).default,Os=(0,Y.forwardRef)((function(e,t){const r=(0,Y.useRef)(null),n=e.onChange;(0,Y.useEffect)((()=>{const e=r.current,t=e=>{const t=e.target;null==n||n(t.value,e)};return e&&n&&e.addEventListener("input",t),()=>{e&&n&&e.removeEventListener("input",t)}}),[n]);const i=(0,me.Co)("sp-textfield");return Y.createElement(i,bs({ref:(0,ms.Z)([t,r])},function(e){const t=e.autoFocus,r=e.className,n=e.disabled,i=e.invalid,o=e.maxLength,a=e.multiLine,s=e.quiet,c=e.readOnly,l=e.required,u=e.spellCheck,d=(e.disableOnOverlay,e.validationState);return e.onChange,bs(bs(bs({},function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,vs)),(0,me.cd)({autofocus:t,disabled:n,invalid:"invalid"===d||i,multiline:a,quiet:s,readonly:c,required:l,valid:"valid"===d})),{},{class:r,maxlength:o,spellcheck:"false"!==u})}(e)))})),Ss=(0,ge.Z)({displayName:"Textfield",fallback:Ls,swcLoader:xs,SWCWrapper:(0,Y.forwardRef)((function(e,t){return Y.createElement(Os,bs(bs({},e),{},{ref:t}))})),tagName:"sp-textfield"}),Ts="brand",Ps="logo",Is="thumbnail",As="application/vnd.adobe.element.image+dcx",Cs="application/vnd.adobe.element.color+dcx",ks="VALID";var Ds,Ns,Rs,Ms,js,Fs,Zs;function Bs(){Bs=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Gs(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Us(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function Hs(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.freeze({MODIFIED:"modified",CREATED:"created",NAME:"name"}),Object.freeze({ALL:"all",CREATED:"created",DRAFTS:"drafts",PUBLISHED:"published"});let zs=(Ds=o.observable.ref,(Zs=class extends wa{constructor(...e){var t;super(...e),t=this,Us(this,"isActionLoading",Rs,this),Us(this,"name",Ms,this),Us(this,"finishedEditing",js,this),Us(this,"nameInput",Fs,this),this.setName=e=>{this.name=e},this.setFinishedEditing=()=>{this.finishedEditing=!0},this.handleOnChange=e=>{this.setName(e)},this.handleDuplicate=function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Gs(o,n,i,a,s,"next",e)}function s(e){Gs(o,n,i,a,s,"throw",e)}a(void 0)}))}}(Bs().mark((function e(){return Bs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,Ka._q)(Ka.bC.BRAND_DUPLICATE.start),t.setFinishedEditing(),j.ZP.reportDuplicateBrand(t.props.brand,{"event.subtype":"duplicate-brand"}),t.isActionLoading=!0,e.next=6,t.context.brandActions.duplicateBrand(t.props.brand,t.name.trim());case 6:e.sent?((0,Ka._q)(Ka.bC.BRAND_DUPLICATE.end),(0,Ka.L8)(Ka.bC.BRAND_DUPLICATE.measure),t.props.close()):t.isActionLoading=!1;case 8:case"end":return e.stop()}}),e)}))),this.handleCancelDuplicate=()=>{j.ZP.reportDuplicateBrand(this.props.brand,{"event.subtype":"cancel"})},this.setInputRef=e=>{this.nameInput=e}}componentDidMount(){setTimeout((()=>{this.nameInput&&this.nameInput.focus()}))}get brand(){return this.props.brand}get folder(){return this.context.libraryManager.platformFolders.find((e=>this.brand.project.id===e.id))}get validStatus(){return(0,f.SS)(this.name.trim(),this.folder)}get isValidName(){return this.validStatus===ks}get isEmptyName(){return 0===this.name.trim().length}get warningMessage(){if(!this.isValidName&&!this.finishedEditing)switch(this.validStatus){case"DUPLICATE_LIBRARY":return(0,D.Iu)("BRAND_RENAME_DUPLICATE");case"INVALID_LIBRARY_LENGTH":return(0,D.Iu)("BRAND_RENAME_OVER_MAX_LENGTH",{charCount:248});case"INVALID_LIBRARY_PERIOD":return(0,D.Iu)("BRAND_NAME_PERIOD_END");case"INVALID_CHARACTER":return this.isEmptyName?"":(0,D.Iu)("BRAND_NAME_INVALID_CHARACTERS")}}get actionSpinner(){return Y.createElement(Ga,{"data-test-id":"duplicate-dialog-action-spinner",buttonText:(0,D.Iu)("BRAND_DUPLICATE_ACTION")})}get duplicateContent(){return Y.createElement("div",{"data-test-id":"duplicate-content",className:"FtZ"},Y.createElement("div",{"data-test-id":"duplicate-description",className:"h8i"},(0,D.Iu)("BRAND_DUPLICATE_BODY")),Y.createElement("div",{"data-test-id":"duplicate-input-container",className:"CCo"},Y.createElement("div",{"data-test-id":"duplicate-label",className:"RqC"},(0,D.Iu)("BRAND_DUPLICATE_INPUT_LABEL")+" *"),Y.createElement(Ss,{autoFocus:!0,className:Q()("hM9",{RgM:!this.isValidName}),"data-test-id":"duplicate-textfield",label:(0,D.Iu)("BRAND_DUPLICATE_INPUT_LABEL"),value:this.name,onChange:this.handleOnChange,ref:this.setInputRef,invalid:!this.isValidName&&!this.finishedEditing&&!this.isEmptyName}),!this.isValidName&&Y.createElement("div",{"data-test-id":"duplicate-warning-message",className:"hbF"},this.warningMessage)))}render(){return Y.createElement(wa,{title:(0,D.Iu)("BRAND_DUPLICATE_ACTION_LONG"),className:"VjH",close:this.props.close,okButtonContent:this.isActionLoading?this.actionSpinner:(0,D.Iu)("BRAND_DUPLICATE_ACTION_LONG"),okButtonEnabled:!this.isActionLoading&&this.isValidName,okButtonDataTestId:"duplicate-ok-button",onClickOK:this.handleDuplicate,closeOnClickOK:!1,cancelButtonDataTestId:"duplicate-cancel-button",cancelButtonEnabled:!this.isActionLoading,onClickCancel:this.handleCancelDuplicate},Y.createElement("div",{className:"twl",tabIndex:"0"},this.duplicateContent))}}).contextType=ee.r,Zs.dialogName="duplicateBrand",Zs.propTypes={brand:K().instanceOf(Ge.Zu),close:K().func.isRequired},Rs=Hs((Ns=Zs).prototype,"isActionLoading",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ms=Hs(Ns.prototype,"name",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(0,D.Iu)("BRAND_DUPLICATE_NAME",{name:this.brand.name})}}),js=Hs(Ns.prototype,"finishedEditing",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Fs=Hs(Ns.prototype,"nameInput",[Ds],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ns);var Vs,Ys,Ws,Ks,$s,qs=r(8502);function Xs(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function Js(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Qs=(Vs=o.observable.ref,($s=class extends wa{constructor(e){super(e),this.DIALOG_STRINGS={[Cs]:{title:"BRAND_RENAME_ELEMENT_DIALOG_TITLE_COLOR",successToast:"BRAND_RENAME_ELEMENT_SUCCESS_COLOR"},LOGO:{title:"BRAND_RENAME_ELEMENT_DIALOG_TITLE_LOGO",successToast:"BRAND_RENAME_ELEMENT_SUCCESS_LOGO"}},Xs(this,"nameInput",Ws,this),Xs(this,"name",Ks,this),this.handleOnChange=e=>{e.stopPropagation(),this.name=e.target.value},this.setInputRef=e=>{this.nameInput=e},this.onClickOK=()=>{if(this.isNameValid){var e,t;const r=null===(e=this.name)||void 0===e?void 0:e.trim();this.element.name=r;const n=(0,D.Iu)(null===(t=this.dialogStrings)||void 0===t?void 0:t.successToast);j.ZP.setExtraEventMetrics("updateElement",{content:{category:"Right Click"}}),qs.ZP.sendUpdateElementEvent(this.element),this.context.toastManager.openToast("message",{variant:"success",message:n})}},this.name=this.props.element.name}componentDidMount(){setTimeout((()=>{this.nameInput&&this.nameInput.focus()}))}get element(){return this.props.element}get isLogo(){var e;return this.element.type===As&&(null===(e=this.element.roles)||void 0===e?void 0:e.some((e=>e.usage===Ps)))}get thumbnail(){if(this.element.type===Cs){const e=(0,tn.m3)((0,tn.lP)(this.element));return Y.createElement("div",{"data-test-id":"brand-color-rename-thumbnail",className:"jzP",style:{backgroundColor:e}})}return Y.createElement(pt.Z,{className:"jzP",element:this.props.element})}get shortTypeName(){return Z.Z.getShortType(this.element.type).toUpperCase()}get inputLabel(){let e="";return this.element.type===Cs?e=(0,D.Iu)("BRAND_RENAME_ELEMENT_DIALOG_BODY_COLOR"):this.isLogo&&(e=(0,D.Iu)("BRAND_RENAME_ELEMENT_DIALOG_BODY_LOGO")),Y.createElement("div",{"data-test-id":"brand-element-rename-input-label",className:"ACD"},e)}get renameInput(){return Y.createElement("input",{className:"e8W",spellCheck:"false",defaultValue:this.element.name,onChange:this.handleOnChange,ref:this.setInputRef,"data-test-id":"brand-element-rename-input",autoFocus:!0})}get invalidNameWarning(){return!this.isNameValid&&this.name?Y.createElement("div",{"data-test-id":"brand-element-rename-invalid-warning",className:"gkw"},(0,D.Iu)("BRAND_RENAME_ELEMENT_INVALID_CHARS")):Y.createElement("div",{"data-test-id":"brand-element-rename-invalid-placeholder",className:"jPs"})}get content(){return Y.createElement("div",{"data-test-id":"rename-content",className:"QI1"},Y.createElement("div",{className:"yYr"},this.thumbnail),Y.createElement("div",{className:"AnV"},this.inputLabel,this.renameInput,this.invalidNameWarning))}get isNameValid(){var e;const t=null===(e=this.name)||void 0===e?void 0:e.trim();return!(!t||(0,f.NB)(t)!==ks)}get dialogStrings(){return this.DIALOG_STRINGS[this.isLogo?"LOGO":this.element.type]||{title:"Rename",successToast:"Element renamed"}}get title(){var e;return(0,D.Iu)(null===(e=this.dialogStrings)||void 0===e?void 0:e.title)}render(){return Y.createElement(wa,{title:this.title,className:"YYV",close:this.props.close,okButtonContent:(0,D.Iu)("BRAND_RENAME_ELEMENT_SAVE_BUTTON"),okButtonEnabled:this.isNameValid&&this.name!==this.element.name,okButtonDataTestId:"brand-element-rename-ok-button",onClickOK:this.onClickOK,closeOnClickOK:!0,cancelButtonDataTestId:"brand-element-rename-cancel-button"},Y.createElement("div",{className:"ekx"},this.content))}}).dialogName="renameElement",$s.contextType=ee.r,$s.propTypes={element:K().instanceOf(Ge.W_),close:K().func.isRequired},Ws=Js((Ys=$s).prototype,"nameInput",[Vs],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ks=Js(Ys.prototype,"name",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ys);const ec={editColorDialog:"AZf",invalid:"Rky",dialogContentsWrapper:"r31",contentParagraph:"Cip",colorNameLabel:"MQp",colorNameTextfield:"cfx",colorArea:"zYh",colorSlider:"Kyv",colorModeDropdown:"AQa",colorValueTextfield:"oUG",eyedropperButton:"QEq",colorDialogRow:"Gln",footer:"FOG",invalidNameWarning:"C2B",invalidNameWarningPlaceholder:"dqp",invalidColorWarning:"EjM",invalidColorWarningPlaceholder:"Gq3"};var tc=r(82530);const rc=["children"],nc=["defaultValue","className","value","quiet","disabled","placeholder","placement","invalid","options","alignRight","flexible","menuClassName","onChange","onClose","onOpen","renderItem"];function ic(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function oc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ic(Object(r),!0).forEach((function(t){ac(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ic(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ac(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sc(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function cc(){cc=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function lc(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const uc=(0,ye.Z)(r(64990)).default;let dc;tc.env.EXCLUDE_SWC||(dc=new ve.t(["sp-picker"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){lc(o,n,i,a,s,"next",e)}function s(e){lc(o,n,i,a,s,"throw",e)}a(void 0)}))}}(cc().mark((function e(){var t,n;return cc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(6533),r.e(2185),r.e(3764)]).then(r.bind(r,6166));case 2:return t=e.sent,n=t.Picker,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)}))),yn.bg?[yn.bg]:void 0));const pc=(0,ge.Z)({displayName:"Select",fallback:(0,Y.forwardRef)((function(e,t){const r=e.children,n=sc(e,rc);return uc?Y.createElement(uc,oc(oc({},n),{},{ref:t}),Y.Children.map(r,(e=>Y.isValidElement(e)?Y.cloneElement(e,{forceFallback:!0}):e))):null})),swcLoader:dc,SWCWrapper:function(e){const t=(0,Y.useRef)(null),r=e.defaultValue,n=e.className,i=e.value,o=e.quiet,a=e.disabled,s=e.placeholder,c=e.placement,l=e.invalid,u=e.options,d=e.alignRight,p=(e.flexible,e.menuClassName,e.onChange),h=e.onClose,f=e.onOpen,m=e.renderItem,g=sc(e,nc);(0,Y.useEffect)((()=>{const e=t.current,r=e=>{const t=e.target;p&&p(t.value)};return e&&p&&e.addEventListener("change",r),()=>{e&&p&&e.removeEventListener("change",r)}}),[p]),(0,Y.useEffect)((()=>{const e=t.current,r=e=>{h&&h(e)};return e&&h&&e.addEventListener("sp-closed",r),()=>{e&&h&&e.removeEventListener("sp-closed",r)}}),[h]),(0,Y.useEffect)((()=>{const e=t.current,r=e=>{f&&f(e)};return e&&f&&e.addEventListener("sp-opened",r),()=>{e&&f&&e.removeEventListener("sp-opened",r)}}),[f]);const v=oc({label:s,value:r||i,placement:d?"bottom-end":c},g),y=(0,me.cd)({invalid:l,disabled:a,quiet:o}),b=u&&u.map(((e,t)=>"divider"===e?Y.createElement(yn.R,{key:`divider-${t}`}):Y.createElement(yn.sN,{description:e.description,icon:e.icon,key:e.value,value:e.value,valueContent:e.valueContent},m?m(e):e.label))),_=(0,me.Co)("sp-picker");return Y.createElement(_,oc(oc({ref:t,class:n},v),y),b)},tagName:"sp-picker"});var hc=r(82530);const fc=["className","disabled","focused","onChange","onInput"];function mc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function gc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mc(Object(r),!0).forEach((function(t){vc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yc(){yc=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function bc(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}let _c;hc.env.EXCLUDE_SWC||(_c=new ve.t(["sp-color-area"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){bc(o,n,i,a,s,"next",e)}function s(e){bc(o,n,i,a,s,"throw",e)}a(void 0)}))}}(yc().mark((function e(){var t,n;return yc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(2234),r.e(5660)]).then(r.bind(r,67494));case 2:return t=e.sent,n=t.ColorArea,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const Ec=(0,ge.Z)({displayName:"ColorArea",fallback:void 0,swcLoader:_c,SWCWrapper:(0,Y.forwardRef)((function(e,t){const r=e.className,n=e.disabled,i=e.focused,o=e.onChange,a=e.onInput,s=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,fc),c=(0,Y.useRef)();(0,Y.useEffect)((()=>{const e=c.current;return e&&o&&e.addEventListener("change",o),()=>{e&&o&&e.removeEventListener("change",o)}}),[o]),(0,Y.useEffect)((()=>{const e=c.current;return e&&a&&e.addEventListener("input",a),()=>{e&&a&&e.removeEventListener("input",a)}}),[a]);const l=gc(gc({},(0,me.cd)({disabled:n,focused:i})),{},{class:r},s),u=(0,me.Co)("sp-color-area");return Y.createElement(u,gc(gc({},l),{},{ref:(0,ms.Z)([c,t])}))})),tagName:"sp-color-area"});var wc=r(82530);const xc=["className","disabled","vertical","onChange","onInput"];function Lc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Oc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lc(Object(r),!0).forEach((function(t){Sc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Sc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tc(){Tc=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Pc(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}let Ic;wc.env.EXCLUDE_SWC||(Ic=new ve.t(["sp-color-slider"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Pc(o,n,i,a,s,"next",e)}function s(e){Pc(o,n,i,a,s,"throw",e)}a(void 0)}))}}(Tc().mark((function e(){var t,n;return Tc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(2234),r.e(9198)]).then(r.bind(r,9729));case 2:return t=e.sent,n=t.ColorSlider,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const Ac=(0,ge.Z)({displayName:"ColorSlider",fallback:void 0,swcLoader:Ic,SWCWrapper:(0,Y.forwardRef)((function(e,t){const r=e.className,n=e.disabled,i=e.vertical,o=e.onChange,a=e.onInput,s=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,xc),c=(0,Y.useRef)();(0,Y.useEffect)((()=>{const e=c.current;return e&&o&&e.addEventListener("change",o),()=>{e&&o&&e.removeEventListener("change",o)}}),[o]),(0,Y.useEffect)((()=>{const e=c.current;return e&&a&&e.addEventListener("input",a),()=>{e&&a&&e.removeEventListener("input",a)}}),[a]);const l=Oc(Oc({},(0,me.cd)({disabled:n,vertical:i})),{},{class:r},s),u=(0,me.Co)("sp-color-slider");return Y.createElement(u,Oc(Oc({},l),{},{ref:(0,ms.Z)([c,t])}))})),tagName:"sp-color-slider"});var Cc,kc,Dc,Nc,Rc,Mc,jc,Fc,Zc,Bc,Gc,Uc,Hc,zc,Vc,Yc,Wc,Kc,$c,qc,Xc=r(72279);function Jc(){Jc=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Qc(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function el(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function tl(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let rl=(Cc=o.observable.ref,kc=o.observable.ref,Dc=o.observable.ref,Nc=o.observable.ref,(qc=class extends wa{constructor(e){var t;super(e),t=this,el(this,"color",Mc,this),el(this,"hexValue",jc,this),el(this,"red",Fc,this),el(this,"green",Zc,this),el(this,"blue",Bc,this),el(this,"isValidHex",Gc,this),el(this,"invalidRgb",Uc,this),el(this,"colorArea",Hc,this),el(this,"colorField",zc,this),el(this,"colorSlider",Vc,this),el(this,"colorAreaGradient",Yc,this),this.setHexValue=(e,t)=>{e.startsWith("#")?this.hexValue=e:this.hexValue=`#${e}`,this.verifyHex(e)?(4===e.length&&(e=`#${e.replace(/^#/,"").split("").map((e=>e+e)).join("")}`),t&&this.setColor(e,"hexInput"),this.isValidHex=!0):this.isValidHex=!1},this.setRed=(e,t)=>{this.red=e,t&&this.verifyRgb()},this.setGreen=(e,t)=>{this.green=e,t&&this.verifyRgb()},this.setBlue=(e,t)=>{this.blue=e,t&&this.verifyRgb()},this.setColor=(e,t)=>{const r=this.color;if(this.color=e.replace(/^#/,"").toUpperCase(),"hexInput"!==t&&(this.setHexValue(this.color,!1),this.isValidHex=!0),"rgbInput"!==t){const e=(0,tn.$W)(this.color);this.setRed(e.red,!1),this.setGreen(e.green,!1),this.setBlue(e.blue,!1),this.invalidRgb=[]}"colorArea"!==t&&(this.colorArea.color=this.color,this.setAreaGradientHue((0,tn.Lo)(this.color))),"colorSlider"!==t&&"colorArea"!==t&&(this.colorSlider.color=this.color);const n="init"===t&&!this.element&&!this.name,i=this.name===`${r}`;(n||i)&&this.setName(`${this.color}`)},this.verifyHex=e=>/^#?([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6})$/i.test(e),this.verifyRgb=()=>{const e=[];if(this.verifyByte(this.red)||e.push("r"),this.verifyByte(this.green)||e.push("g"),this.verifyByte(this.blue)||e.push("b"),this.invalidRgb=e,0===e.length){const e=(0,tn.vq)(this.red,this.green,this.blue).replace(/^#/,"").toUpperCase();this.setColor(e,"rgbInput")}},this.verifyByte=e=>{const t=Number(e);return/^\d+$/.test(e)&&t>=0&&t<=255},this.areaGradientString=e=>`linear-gradient(to top, black 0%, hsla(${e}, 100%, 0.01%, 0) 100%),linear-gradient(to right, white 0%, hsla(${e}, 100%, 0.01%, 0) 100%), hsl(${e}, 100%, 50%)`,this.onColorAreaChange=e=>{const t=e.target.color;this.setColor(t,"colorArea")},this.onColorSliderChange=e=>{const t=e.target.value;this.colorArea.hue=t,this.setColor(this.colorArea.value,"colorSlider")},this.onEyedropperClick=()=>{(new EyeDropper).open().then((e=>{this.setColor(e.sRGBHex,"eyedropper")}))},el(this,"dropdownMode",Wc,this),this.onInputDropdownChange=e=>{this.isValidHex=!0,this.invalidRgb=[],this.dropdownMode=e},el(this,"name",Kc,this),this.setName=e=>{this.name=e},this.handleOnNameChange=e=>{this.setName(e.target.value)},el(this,"isActionLoading",$c,this),this.handleSaveColor=function(){var e,r=(e=Jc().mark((function e(r){var n,i;return Jc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,Ka._q)(Ka.bC.COLOR_ADD.start),null==r||r.stopPropagation(),t.isActionLoading=!0,n=t.name?t.name.trim():"#"+t.color,!t.brand){e.next=11;break}return e.next=7,t.context.brandElementActions.createColor(t.brand,n,"primary",t.representationData);case 7:(i=e.sent)?((0,Ka._q)(Ka.bC.COLOR_ADD.end),(0,Ka.L8)(Ka.bC.COLOR_ADD.measure),j.ZP.setExtraEventMetrics("createElement",{content:{category:"Right Click"}}),qs.ZP.sendCreateElementEvent(i),t.props.close()):t.isActionLoading=!1,e.next=12;break;case 11:t.element&&(j.ZP.setExtraEventMetrics("updateElement",{content:{category:"Right Click"}}),qs.ZP.sendUpdateElementEvent(t.element),t.context.brandElementActions.editColor(t.element,n,"primary",t.representationData),t.props.close());case 12:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Qc(o,n,i,a,s,"next",e)}function s(e){Qc(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}(),this.onClickCancel=this.props.close}componentDidMount(){this.setColor((0,tn.m3)((0,tn.lP)(this.element))||"FF0000","init")}get brand(){return this.props.brand}get element(){return this.props.element}get eyedropperEnabled(){return!!window.EyeDropper}setAreaGradientHue(e){this.colorArea.hue=e,this.colorAreaGradient.style.background=this.areaGradientString(e)}get isNameValid(){var e;const t=null===(e=this.name)||void 0===e?void 0:e.trim();return!t||(0,f.NB)(t)===ks}get dialogType(){return this.element?"Edit":"Add"}get title(){return"Add"===this.dialogType?(0,D.Iu)("BRAND_COLORS_ADD_BUTTON"):(0,D.Iu)("BRAND_COLORS_EDIT_TITLE")}get okButtonText(){return"Add"===this.dialogType?(0,D.Iu)("DL_INSERT_ADD"):(0,D.Iu)("DL_SAVE")}get representationData(){const e=(0,tn.$W)(this.color);return{type:"process",mode:"RGB",value:{r:e.red,g:e.green,b:e.blue}}}get actionSpinner(){return Y.createElement(Ga,{"data-test-id":"edit-color-dialog-action-spinner",buttonText:this.okButtonText})}get invalidNameWarning(){return this.name&&!this.isNameValid?Y.createElement("div",{"data-test-id":"color-name-invalid-warning",className:ec.invalidNameWarning},(0,D.Iu)("BRAND_RENAME_ELEMENT_INVALID_CHARS")):Y.createElement("div",{"data-test-id":"color-name-invalid-placeholder",className:ec.invalidNameWarningPlaceholder})}get dialogContent(){return Y.createElement("div",{"data-test-id":"edit-color-content",className:ec.dialogBody},Y.createElement("div",{"data-test-id":"color-name-label",className:ec.colorNameLabel},(0,D.Iu)("BRAND_COLORS_NAME_LABEL")),Y.createElement("input",{className:Q()(ec.colorNameTextfield,{[ec.invalid]:!this.isNameValid}),"data-test-id":"color-name-textfield",label:(0,D.Iu)("BRAND_COLORS_NAME_LABEL"),value:this.name,onChange:this.handleOnNameChange,invalid:(!this.isNameValid).toString()}),this.invalidNameWarning,Y.createElement(Ec,{style:{width:"336px"},"data-test-id":"color-area",className:ec.colorArea,onChange:this.onColorAreaChange,onInput:this.onColorAreaChange,ref:e=>this.colorArea=e},Y.createElement("div",{slot:"gradient"},Y.createElement("div",{id:"area-gradient",ref:e=>this.colorAreaGradient=e,style:{height:"100%",width:"100%"}}))),Y.createElement(Ac,{style:{width:"336px"},className:ec.colorSlider,"data-test-id":"color-slider",onChange:this.onColorSliderChange,onInput:this.onColorSliderChange,ref:e=>this.colorSlider=e}),Y.createElement("div",{className:ec.colorDialogRow},this.eyedropperEnabled&&Y.createElement(Xc.Z,{"data-test-id":"eyedropper-button",className:ec.eyedropperButton,variant:"action",quiet:!0,onClick:this.onEyedropperClick,icon:Y.createElement(X.Z,{id:"Eyedropper",height:20,width:20})}),Y.createElement(pc,{options:[{label:(0,D.Iu)("BRAND_COLORS_HEX"),value:"hex"},{label:(0,D.Iu)("BRAND_COLORS_RGB"),value:"rgb"}],value:this.dropdownMode,"data-test-id":"color-mode-selector",className:ec.colorModeDropdown,onChange:this.onInputDropdownChange}),"hex"===this.dropdownMode?Y.createElement("input",{className:Q()(ec.colorValueTextfield,{[ec.invalid]:!this.isValidHex}),"data-test-id":"color-value-textfield-hex",value:this.hexValue,onChange:e=>this.setHexValue(e.target.value,!0),invalid:(!this.isValidHex).toString()}):Y.createElement(Y.Fragment,null,Y.createElement("input",{className:Q()(ec.colorValueTextfield,{[ec.invalid]:this.invalidRgb.includes("r")}),"data-test-id":"color-value-textfield-r",value:this.red,onChange:e=>this.setRed(e.target.value,!0),invalid:this.invalidRgb.includes("r").toString()}),Y.createElement("input",{className:Q()(ec.colorValueTextfield,{[ec.invalid]:this.invalidRgb.includes("g")}),"data-test-id":"color-value-textfield-g",value:this.green,onChange:e=>this.setGreen(e.target.value,!0),invalid:this.invalidRgb.includes("g").toString()}),Y.createElement("input",{className:Q()(ec.colorValueTextfield,{[ec.invalid]:this.invalidRgb.includes("b")}),"data-test-id":"color-value-textfield-b",value:this.blue,onChange:e=>this.setBlue(e.target.value,!0),invalid:this.invalidRgb.includes("b").toString()}))),Y.createElement("div",null,this.invalidRgb.length>0||!this.isValidHex?Y.createElement("div",{className:ec.invalidColorWarning},"hex"===this.dropdownMode?(0,D.Iu)("BRAND_COLORS_HEX_ERROR"):(0,D.Iu)("BRAND_COLORS_RGB_ERROR")):Y.createElement("div",{className:ec.invalidColorWarningPlaceholder})))}render(){return Y.createElement(wa,{title:this.title,className:ec.editColorDialog,close:this.props.close,okButtonContent:this.isActionLoading?this.actionSpinner:this.okButtonText,okButtonEnabled:!this.isActionLoading&&this.isNameValid&&0===this.invalidRgb.length&&this.isValidHex&&!!this.name,okButtonDataTestId:"edit-color-ok-button",onClickOK:this.handleSaveColor,closeOnClickOK:!1,cancelButtonEnabled:!this.isActionLoading,cancelButtonDataTestId:"edit-color-cancel-button"},Y.createElement("div",{className:ec.dialogContentsWrapper},this.dialogContent))}}).dialogName="editColor",qc.contextType=ee.r,qc.propTypes={brand:K().instanceOf(Ge.Zu),element:K().instanceOf(Element),close:K().func.isRequired},Mc=tl((Rc=qc).prototype,"color",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(0,tn.m3)((0,tn.lP)(this.element))||"FF0000"}}),jc=tl(Rc.prototype,"hexValue",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.color}}),Fc=tl(Rc.prototype,"red",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(0,tn.$W)(this.color).red||255}}),Zc=tl(Rc.prototype,"green",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(0,tn.$W)(this.color).green||0}}),Bc=tl(Rc.prototype,"blue",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(0,tn.$W)(this.color).blue||0}}),Gc=tl(Rc.prototype,"isValidHex",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Uc=tl(Rc.prototype,"invalidRgb",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Hc=tl(Rc.prototype,"colorArea",[Cc],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),zc=tl(Rc.prototype,"colorField",[kc],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vc=tl(Rc.prototype,"colorSlider",[Dc],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Yc=tl(Rc.prototype,"colorAreaGradient",[Nc],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Wc=tl(Rc.prototype,"dropdownMode",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"hex"}}),Kc=tl(Rc.prototype,"name",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e;return(null===(e=this.element)||void 0===e?void 0:e.name)||""}}),$c=tl(Rc.prototype,"isActionLoading",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Rc);var nl=r(82530);const il=["className","shouldAccept"];function ol(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function al(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sl(){sl=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function cl(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const ll=(0,ye.Z)(r(43990)).default;let ul;nl.env.EXCLUDE_SWC||(ul=new ve.t(["sp-dropzone"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){cl(o,n,i,a,s,"next",e)}function s(e){cl(o,n,i,a,s,"throw",e)}a(void 0)}))}}(sl().mark((function e(){var t,n;return sl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(1861)]).then(r.bind(r,39010));case 2:return t=e.sent,n=t.Dropzone,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const dl=(0,ge.Z)({displayName:"DropZone",fallback:ll,swcLoader:ul,SWCWrapper:(0,Y.forwardRef)((function(e,t){const r=(0,Y.useRef)(null),n=e.className,i=e.shouldAccept,o=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,il);(0,Y.useEffect)((()=>{const e=r.current,t=e=>{(null==i?void 0:i(e))||e.preventDefault()};return e&&i&&e.addEventListener("sp-dropzone-should-accept",t),()=>{e&&i&&e.removeEventListener("sp-dropzone-should-accept",t)}}),[i]);const a=(0,me.Co)("sp-dropzone");return Y.createElement(a,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ol(Object(r),!0).forEach((function(t){al(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ol(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({ref:(0,ms.Z)([r,t]),class:n},o))})),tagName:"sp-dropzone"});var pl=r(82530);const hl=["ariaLevel","className","illustration"];function fl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ml(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fl(Object(r),!0).forEach((function(t){gl(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function gl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vl(){vl=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function yl(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const bl=(0,ye.Z)(r(95485)).default;let _l;pl.env.EXCLUDE_SWC||(_l=new ve.t(["sp-illustrated-message"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){yl(o,n,i,a,s,"next",e)}function s(e){yl(o,n,i,a,s,"throw",e)}a(void 0)}))}}(vl().mark((function e(){var t,n;return vl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(2249),r.e(2360)]).then(r.bind(r,83385));case 2:return t=e.sent,n=t.IllustratedMessage,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const El=(0,ge.Z)({displayName:"IllustratedMessage",fallback:bl,swcLoader:_l,swcProps:e=>{const t=e.ariaLevel,r=e.className,n=e.illustration;return ml(ml({},function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,hl)),{},{ariaLevel:null==t?void 0:t.toString(),class:r,children:n})},tagName:"sp-illustrated-message"});var wl,xl;function Ll(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Ol=(0,$.Pi)((Ll((xl=class extends Y.Component{constructor(...e){super(...e),this.onDrop=e=>{e.stopPropagation(),e.preventDefault(),this.props.disabled||this.addValidFiles(e.dataTransfer.files)},this.onDragOver=e=>{e.stopPropagation(),e.preventDefault()},this.onClickBrowse=()=>{console.log("this.uploadExtensions = ",this.uploadExtensions),(0,xr.fz)({fileTypes:this.uploadExtensions,multiple:!0}).then((e=>{this.addValidFiles(Array.from(e))}))}}get usableTypes(){return(0,xr.ku)(this.props.elementType)}get uploadExtensions(){return(0,xr.Fe)(this.props.elementType,!0)}addValidFiles(e){if(null==e||!e.length)return;const t=[],r=[];for(let a=0;a<e.length;a++)if(this.usableTypes.includes(e[a].type))t.push(e[a]);else{var n,i,o;const t=(null===(n=(0,xr.vn)(e[a].type))||void 0===n||null===(i=n[0])||void 0===i?void 0:i.toUpperCase())||(null===(o=(0,xr._2)(e[a].name))||void 0===o?void 0:o.toUpperCase())||(0,D.Iu)("BRANDS_UNKNOWN_FILE_TYPE");r.includes(t)||r.push(t)}if(r.length){let e=(0,D.Iu)("BRAND_INVALID_FILE_TOAST",{fileExtension:r[0]});if(r.length>1){const t=r.pop(),n=r.join(`${(0,D.Iu)("BRAND_LOCALIZED_COMMA")} `);e=(0,D.Iu)("BRAND_INVALID_FILES_TOAST",{fileExtensionList:n,lastFileExtension:t})}I.Z.openToast("message",{variant:"error",message:e})}t.length&&this.props.onFilesAdded(t)}get dropIllustration(){const e=r(33976);return Y.createElement("img",{src:e,"data-test-id":"add-file-drop-zone-illustration"})}render(){return Y.createElement(dl,{onDragOver:this.onDragOver,onDrop:this.onDrop,"data-test-id":"add-file-drop-zone",className:Q()("lTc",{gtR:this.props.includeIllustraton})},Y.createElement("div",{className:"aQ8"},Y.createElement(El,{illustration:this.props.includeIllustraton&&this.dropIllustration,heading:this.props.heading,description:this.props.description}),Y.createElement(Mn.Z,{variant:"primary",treatment:"fill",onClick:this.onClickBrowse,"data-test-id":"add-file-drop-zone-button",disabled:this.props.disabled},(0,D.Iu)("BRAND_ADD_DROP_ZONE_BUTTON"))))}}).prototype,"usableTypes",[o.computed],Object.getOwnPropertyDescriptor(xl.prototype,"usableTypes"),xl.prototype),Ll(xl.prototype,"uploadExtensions",[o.computed],Object.getOwnPropertyDescriptor(xl.prototype,"uploadExtensions"),xl.prototype),Ll(xl.prototype,"dropIllustration",[o.computed],Object.getOwnPropertyDescriptor(xl.prototype,"dropIllustration"),xl.prototype),wl=xl))||wl;const Sl={container:"NJ_",fileInfo:"jZD",fileIconContainer:"psU",name:"Gg8",size:"iib",greenCheckmark:"Kw5",remove:"Jzq",disabled:"PG1"};var Tl,Pl;function Il(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Al=(0,$.Pi)((Il((Pl=class extends Y.Component{constructor(...e){super(...e),this.onKeyDown=e=>{"Enter"===e.key&&this.remove()},this.remove=()=>{this.props.disabled||this.props.onClickRemove(this.file)}}get file(){return this.props.file}get fileIcon(){return r(26871)}get greenCheckmark(){return r(22479)}get fileSize(){return(0,Ti.d3)(this.file.size)}render(){return Y.createElement("div",{"data-test-id":"file-row-entry",className:Q()(Sl.container,{[Sl.disabled]:this.props.disabled}),tabIndex:-1},Y.createElement("div",{className:Sl.fileInfo},Y.createElement("div",{className:Sl.fileIconContainer},Y.createElement("img",{className:Sl.file,src:this.fileIcon}),this.props.includeCheckmark&&Y.createElement("img",{"data-test-id":"file-row-entry-checkmark",className:Sl.greenCheckmark,src:this.greenCheckmark})),Y.createElement("div",{"data-test-id":"file-row-entry-name",className:Sl.name},this.file.name),Y.createElement("div",{"data-test-id":"file-row-entry-size",className:Sl.size},this.fileSize)),Y.createElement("div",{"data-test-id":"file-row-entry-remove",className:Sl.remove,onClick:this.remove,onKeyDown:this.onKeyDown,tabIndex:0},Y.createElement(X.Z,{id:"Close",width:16,height:16})))}}).prototype,"fileIcon",[o.computed],Object.getOwnPropertyDescriptor(Pl.prototype,"fileIcon"),Pl.prototype),Il(Pl.prototype,"greenCheckmark",[o.computed],Object.getOwnPropertyDescriptor(Pl.prototype,"greenCheckmark"),Pl.prototype),Il(Pl.prototype,"fileSize",[o.computed],Object.getOwnPropertyDescriptor(Pl.prototype,"fileSize"),Pl.prototype),Tl=Pl))||Tl;var Cl,kl,Dl,Nl,Rl;function Ml(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function jl(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const Fl={start:"brands-logo_add:start",end:"brands-logo_add:end",measure:"brands:brands-logo_add"};Ka.bC.LOGO_ADD=Fl;const Zl={title:"DL_ADD_LOGOS",okButton:"DL_ADD_LOGOS",dropZoneHeading:"BRAND_ADD_DROP_ZONE_TITLE_LOGOS",dropZoneDescription:"BRAND_ADD_DROP_ZONE_SUBTITLE_LOGOS",successToastSingle:"BRAND_LOGO_ADD_SUCCESS",successToastMany:"BRAND_LOGOS_ADD_SUCCESS"};let Bl=(0,$.Pi)(((Rl=class extends Y.Component{constructor(...e){super(...e),Ml(this,"files",Dl,this),Ml(this,"isCreatingElements",Nl,this),this.onFilesAdded=e=>{"logo"===this.props.role&&e.forEach((e=>{e.role={type:Ts,usage:Ps,priority:"primary"}})),this.files.push(...e)},this.removeFile=e=>{const t=this.files.indexOf(e);t>-1&&this.files.splice(t,1)},this.addFiles=()=>{(0,Ka._q)(Fl.start),this.isCreatingElements=!0,(0,Fr.uP)(this.files,this.props.brand,"addFileElementsDialog",!0).then((e=>{Promise.all(e.map((e=>e.committed))).then((()=>{(0,Ka._q)(Fl.end),(0,Ka.L8)(Fl.measure);const e=1===this.files.length?this.dialogStrings.successToastSingle:this.dialogStrings.successToastMany;I.Z.openToast("message",{message:(0,D.Iu)(e),variant:"success"}),this.props.close()}))}))}}get fileList(){return 0===this.files.length?null:Y.createElement("div",{className:"kdW"},this.files.map((e=>Y.createElement(Al,{key:e.name,file:e,includeCheckmark:!0,onClickRemove:this.removeFile,disabled:this.isCreatingElements}))))}get dialogStrings(){return Zl}get actionSpinner(){return Y.createElement(Ga,{buttonText:(0,D.Iu)(this.dialogStrings.okButton)})}render(){return Y.createElement(wa,{title:(0,D.Iu)(this.dialogStrings.title),className:"wxX",close:this.props.close,okButtonContent:this.isCreatingElements?this.actionSpinner:(0,D.Iu)(this.dialogStrings.okButton),okButtonEnabled:!this.isCreatingElements&&this.files.length>0,onClickOK:this.addFiles,closeOnClickOK:!1,cancelButtonEnabled:!this.isCreatingElements},Y.createElement(Ol,{heading:(0,D.Iu)(this.dialogStrings.dropZoneHeading),description:(0,D.Iu)(this.dialogStrings.dropZoneDescription),includeIllustraton:0===this.files.length,onFilesAdded:this.onFilesAdded,elementType:this.props.type,disabled:this.isCreatingElements}),this.fileList)}}).dialogName="addFileElements",Dl=jl((kl=Rl).prototype,"files",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Nl=jl(kl.prototype,"isCreatingElements",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),jl(kl.prototype,"dialogStrings",[o.computed],Object.getOwnPropertyDescriptor(kl.prototype,"dialogStrings"),kl.prototype),Cl=kl))||Cl;const Gl={uploadThumbnailDialog:"z0I",thumbnailPreviewWrapper:"IXV",thumbnailPreview:"MIh",thumbnailPreviewImage:"rhb",publishWarning:"QNU",publishWarningIcon:"sMT",publishWarningMessage:"Box",publishWarningTitle:"lg9",publishWarningTitleText:"Cag",changeButton:"B3S",changeButtonIcon:"jxi",changeButtonContent:"c_c"};var Ul,Hl,zl;function Vl(){Vl=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Yl(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Wl(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Yl(o,n,i,a,s,"next",e)}function s(e){Yl(o,n,i,a,s,"throw",e)}a(void 0)}))}}let Kl=(zl=class extends wa{constructor(...e){var t;super(...e),t=this,function(e,t,r,n){r&&Object.defineProperty(e,"updatedUrl",{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}(this,0,Hl,this),this.saveDraftAndPublish=Wl(Vl().mark((function e(){return Vl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.saveDraft().then(Wl(Vl().mark((function e(){var r;return Vl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.context.libraryManager.getLibraryByAssetId(t.props.brand.publishedFrom);case 2:r=e.sent,t.context.brandActions.publishBrand(r,"BRAND_PUBLISH_CHANGES_SUCCESS_TOAST",!1);case 4:case"end":return e.stop()}}),e)}))));case 1:case"end":return e.stop()}}),e)}))),this.saveDraft=Wl(Vl().mark((function e(r=!1){return Vl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r&&t.context.toastManager.openToast("message",{variant:"success",message:(0,D.Iu)("BRAND_THUMBNAIL_UPDATED_TOAST")}),e.abrupt("return",Promise.resolve());case 2:case"end":return e.stop()}}),e)}))),this.onClickOK=Wl(Vl().mark((function e(){return Vl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.isPublishedBrand){e.next=7;break}return(0,Ka._q)(Ka.bC.UPLOAD_THUMBNAIL_PUBLISHED.start),e.next=4,t.saveDraftAndPublish();case 4:return(0,Ka._q)(Ka.bC.UPLOAD_THUMBNAIL_PUBLISHED.end),(0,Ka.L8)(Ka.bC.UPLOAD_THUMBNAIL_PUBLISHED.measure),e.abrupt("return");case 7:(0,Ka._q)(Ka.bC.UPLOAD_THUMBNAIL_DRAFT.start),t.saveDraft(!0),(0,Ka._q)(Ka.bC.UPLOAD_THUMBNAIL_DRAFT.end),(0,Ka.L8)(Ka.bC.UPLOAD_THUMBNAIL_DRAFT.measure);case 11:case"end":return e.stop()}}),e)}))),this.onClickSecondary=()=>{this.isPublishedBrand&&((0,Ka._q)(Ka.bC.UPLOAD_THUMBNAIL_DRAFT.start),this.saveDraft(!0),(0,Ka._q)(Ka.bC.UPLOAD_THUMBNAIL_DRAFT.end),(0,Ka.L8)(Ka.bC.UPLOAD_THUMBNAIL_DRAFT.measure))},this.onClickChange=Wl(Vl().mark((function e(){var r;return Vl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.context.brandActions.thumbnailFilePicker();case 2:(r=e.sent)&&(t.updatedUrl=r);case 4:case"end":return e.stop()}}),e)})))}get brand(){return this.props.brand}get okButtonContent(){return this.isPublishedBrand?(0,D.Iu)("BRAND_PUBLISH_CHANGES_ACTION"):(0,D.Iu)("BRAND_THUMBNAIL_UPDATE")}get secondaryButtonText(){if(this.isPublishedBrand)return(0,D.Iu)("BRAND_THUMBNAIL_SAVE_DRAFT")}get isPublishedBrand(){return(0,M.Hc)(this.brand)}get publishWarningMessage(){return Y.createElement("div",{"data-test-id":"thumbnail-upload-publish-warning",className:Gl.publishWarning},Y.createElement("div",{className:Gl.publishWarningTitle},Y.createElement("div",{className:Gl.publishWarningTitleText},(0,D.Iu)("BRAND_THUMBNAIL_PUBLISH_WARNING_TITLE")),Y.createElement(X.Z,{className:Gl.publishWarningIcon,id:"InfoS2",height:18})),Y.createElement("div",{className:Gl.publishWarningMessage},(0,D.Iu)("BRAND_THUMBNAIL_PUBLISH_WARNING")))}get changeButton(){return Y.createElement(Xc.Z,{variant:"action",className:Gl.changeButton,"aria-label":(0,D.Iu)("BRAND_THUMBNAIL_CHANGE_BUTTON"),"data-test-id":"change-thumbnail-button",onClick:this.onClickChange,size:"S"},Y.createElement("div",{className:Gl.changeButtonContent},Y.createElement(X.Z,{className:Gl.changeButtonIcon,id:"Edit",height:16}),(0,D.Iu)("BRAND_THUMBNAIL_CHANGE_BUTTON")))}get thumbnailPreview(){return Y.createElement("div",{className:Gl.thumbnailPreviewWrapper},Y.createElement("div",{className:Gl.thumbnailPreview},this.changeButton,Y.createElement("img",{"data-test-id":"thumbnail-preview-image",className:Gl.thumbnailPreviewImage,src:this.updatedUrl||this.props.fileUrl})))}render(){return Y.createElement(wa,{title:(0,D.Iu)("BRAND_CHANGE_THUMBNAIL"),okButtonContent:this.okButtonContent,secondaryButtonContent:this.secondaryButtonText,onClickOK:this.onClickOK,onClickSecondary:this.onClickSecondary,close:this.props.close,className:Gl.UploadThumbnailDialog},this.thumbnailPreview,this.isPublishedBrand&&this.publishWarningMessage)}},zl.dialogName="uploadThumbnail",zl.contextType=ee.r,zl.propTypes={brand:K().instanceOf(Ge.Zu),fileUrl:K().instanceOf(String),close:K().func.isRequired},Hl=function(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}((Ul=zl).prototype,"updatedUrl",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ul);const $l=r.p+"resources/captureCoachMark.png";var ql=r(50777),Xl=r(68370);class Jl extends Y.Component{constructor(...e){super(...e),this.onClickOK=()=>{ql.RI(!0),j.ZP.reportEvent("Onboarding","Capture","click","view"),this.props.close()},this.onClose=()=>{(0,x.y6)("capture"),j.ZP.reportEvent("Onboarding","Capture","click","close"),this.props.close()}}componentDidMount(){j.ZP.reportEvent("Onboarding","Capture","render","modal")}componentWillUnmount(){this.context.viewState.setCurrentWorkflow()}get title(){return Y.createElement("div",{"data-test-id":"popover-title",className:"popover-title"},(0,D.Iu)("DL_CAPTURE_ONBOARDING_POPOVER_TITLE"))}get body(){return Y.createElement("div",{"data-test-id":"popover-body",className:"popover-body"},(0,D.Iu)("DL_CAPTURE_ONBOARDING_POPOVER_BODY"))}get graphic(){return Y.createElement("img",{"data-test-id":"popover-graphic",className:"capture-popover-graphic",src:$l})}get y(){return 44+27*(0,Xl.o)().filter((e=>!e.divider)).length}render(){return Y.createElement("div",{className:"coach-mark-with-image"},Y.createElement(Bn,{okButtonText:(0,D.Iu)("DL_CAPTURE_TOUR"),onClickOK:this.onClickOK,cancelButtonText:(0,D.Iu)("DL_CANCEL"),close:this.onClose,x:5,y:this.y,triangleOffset:163,horizontalPlacement:"right",placement:"bottom"},this.graphic,this.title,this.body))}}Jl.dialogName="captureOnboardingPopover",Jl.contextType=ee.r,Jl.isAlwaysInline=!0,Jl.propTypes={close:K().func.isRequired};const Ql=r.p+"resources/NewUserOnboarding.png",eu=r.p+"resources/teamLibrariesOnboarding.png";var tu,ru,nu,iu;let ou=(0,$.Pi)((iu=class extends Y.Component{constructor(...e){super(...e),function(e,t,r,n){r&&Object.defineProperty(e,"currentStepId",{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}(this,0,nu,this),this.onClickSkip=()=>{this.closeDialog()},this.onClose=e=>{e&&e.preventDefault(),this.isLastStep?this.closeDialog():this.currentStepId++},this.getCoachmarkIndicatorRings=()=>Y.createElement("div",{"data-test-id":"root-view-overlay-highlight",className:Q()("delightful-performant-coachmark-indicator-ring","root-view-onboarding-coachmarks")}),this.onLearnMoreClick=()=>{(0,R.Hu)()}}get isNewUser(){return this.context.viewState.isNewUserState()}markViewed(){this.isNewUser&&(0,x.y6)("newUserRoot"),(0,x.y6)("panelRootOnboarding")}closeDialog(){this.markViewed(),this.props.close()}get title(){return this.isNewUser?Y.createElement("div",{"data-test-id":"popover-title",className:"popover-title"},(0,D.Iu)(this.currentStep.title)):Y.createElement("div",{className:"popover-title-row"},Y.createElement("div",{"data-test-id":"popover-title",className:"popover-title"},(0,D.Iu)(this.currentStep.title)),Y.createElement("div",{"data-test-id":"popover-page-number",className:"popover-page-number"},(0,D.Iu)("DL_INFO_PAGINATION_COUNT",{currentPage:this.currentStepId+1,totalPages:this.isNewUser?this.allStepsNewUser.length:this.allStepsReturningUser.length})))}get body(){return this.currentStep.htmlBody?Y.createElement(di.Z,{"data-test-id":"popover-body",onClick:this.onLearnMoreClick,className:"popover-body",html:(0,D.Iu)(this.currentStep.htmlBody)}):Y.createElement("div",{"data-test-id":"popover-body",className:"popover-body"},(0,D.Iu)(this.currentStep.body))}get graphic(){return Y.createElement("img",{"data-test-id":"popover-graphic",className:"popover-graphic",src:this.currentStep.onboardingImage})}get y(){const e=F.Z.getCustomHeaderView();return(e&&e.height||0)+12}get currentStep(){return this.isNewUser?this.allStepsNewUser[this.currentStepId]:this.allStepsReturningUser[this.currentStepId]}get allStepsNewUser(){return[{x:12,y:this.y,verticalPlacement:"top",horizontalPlacement:"left",onboardingImage:Ql,title:"DL_PANEL_NEW_USER_ONBOARDING_TITLE1",body:"DL_PANEL_NEW_USER_ONBOARDING_DESCRIPTION1",okButtonText:"DL_ONBOARDING_TOUR_NEXT"},{x:2,y:40,verticalPlacement:"bottom",horizontalPlacement:"right",title:"DL_PANEL_NEW_USER_ONBOARDING_TITLE2",body:"DL_PANEL_NEW_USER_ONBOARDING_DESCRIPTION2",okButtonText:"DL_ONBOARDING_TOUR_FINISH",indicator:this.getCoachmarkIndicatorRings()}]}get allStepsReturningUser(){return[{x:12,y:this.y,verticalPlacement:"top",horizontalPlacement:"left",onboardingImage:eu,title:"DL_EXISTING_USER_PANEL_ONBOARDING_TITLE1",htmlBody:"DL_EXISTING_USER_PANEL_ONBOARDING_DESCRIPTION1",okButtonText:"DL_ONBOARDING_TOUR_NEXT",cancelButtonText:"DL_ONBOARDING_TOUR_SKIP"},{x:2,y:40,verticalPlacement:"bottom",horizontalPlacement:"right",title:"DL_EXISTING_USER_PANEL_ONBOARDING_TITLE2",body:"DL_EXISTING_USER_PANEL_ONBOARDING_DESCRIPTION2",okButtonText:"DL_ONBOARDING_TOUR_FINISH",indicator:this.getCoachmarkIndicatorRings()}]}get isLastStep(){return this.currentStepId===(this.isNewUser?this.allStepsNewUser.length-1:this.allStepsReturningUser.length-1)}render(){return Y.createElement("div",{className:Q()("coach-mark-with-image","panel-root-view-onboarding")},Y.createElement(Bn,{okButtonText:(0,D.Iu)(this.currentStep.okButtonText),cancelButtonText:this.currentStep.cancelButtonText?(0,D.Iu)(this.currentStep.cancelButtonText):null,close:this.onClose,onClickCancel:this.onClickSkip,x:this.currentStep.x,y:this.currentStep.y,indicators:this.currentStep.indicator,showPopoverTriangle:!1,closeOnWindowClick:this.isLastStep,horizontalPlacement:this.currentStep.horizontalPlacement,placement:this.currentStep.verticalPlacement},this.graphic,this.title,this.body))}},iu.contextType=ee.r,iu.dialogName="rootViewOnboardingPopover",iu.propTypes={close:K().func.isRequired},nu=function(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}((ru=iu).prototype,"currentStepId",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),tu=ru))||tu;class au extends Y.Component{constructor(...e){super(...e),this.onClickOK=()=>{j.ZP.reportEvent("Onboarding","Path view","click","view"),this.props.close()},this.onClose=()=>{(0,x.y6)("groupsPathView"),j.ZP.reportEvent("Onboarding","Path view","click","close"),this.props.close()},this.handleLearnMoreClick=()=>{(0,x.y6)("groupsPathView"),j.ZP.reportEvent("Onboarding","Path view","click","learnmore"),(0,R.UK)(),this.props.close()}}componentDidMount(){j.ZP.reportEvent("Onboarding","Path view","render","modal")}get title(){return Y.createElement("div",{"data-test-id":"popover-title",className:"popover-title"},(0,D.Iu)("DL_GROUP_ONBOARDING_POPOVER_TITLE"))}get body(){return Y.createElement("div",{"data-test-id":"popover-body",className:"popover-body"},(0,D.Iu)("DL_GROUP_ONBOARDING_POPOVER_BODY"))}get indicators(){return Y.createElement("div",{"data-test-id":"path-view-overlay-highlight",className:Q()("delightful-performant-coachmark-indicator-ring","path-view-onboarding")})}get y(){const e=F.Z.getCustomHeaderView();return(e&&e.height||0)+112}get learnMoreButton(){return Y.createElement(Mn.Z,{"data-test-id":"popover-learn-more-button",className:"popover-cancel-button",variant:"secondary",onClick:this.handleLearnMoreClick},(0,D.Iu)("DL_LEARN_MORE"))}render(){return Y.createElement("div",{className:"coach-mark-with-image"},Y.createElement(Bn,{okButtonText:(0,D.Iu)("DL_OK"),onClickOK:this.onClickOK,additionalFooterButtons:this.learnMoreButton,close:this.onClose,x:10,y:this.y,triangleOffset:32,horizontalPlacement:"right",placement:"top",indicators:this.indicators},this.title,this.body))}}var su,cu,lu,uu;au.dialogName="pathViewOnboarding",au.contextType=ee.r,au.isAlwaysInline=!0,au.propTypes={close:K().func.isRequired};let du=(0,$.Pi)((uu=class extends Y.Component{constructor(...e){super(...e),function(e,t,r,n){r&&Object.defineProperty(e,"currentStepId",{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}(this,0,lu,this),this.onClickSkip=()=>{this.closeDialog()},this.onClose=e=>{e&&e.preventDefault(),this.isLastStep?this.closeDialog():this.currentStepId++}}closeDialog(){(0,x.y6)("teamLibraryOneUpPanel"),this.props.close()}get title(){return Y.createElement("div",{className:"popover-title-row"},Y.createElement("div",{"data-test-id":"popover-title",className:"popover-title"},Y.createElement(di.Z,{html:(0,D.Iu)(this.currentStep.title)})),Y.createElement("div",{"data-test-id":"popover-page-number",className:"popover-page-number"},(0,D.Iu)("DL_INFO_PAGINATION_COUNT",{currentPage:this.currentStepId+1,totalPages:this.allSteps.length})))}get body(){return Y.createElement("div",{"data-test-id":"popover-body",className:"popover-body"},(0,D.Iu)(this.currentStep.body))}get y(){const e=F.Z.getCustomHeaderView();return(e&&e.height||0)+40}get currentStep(){return this.allSteps[this.currentStepId]}get allSteps(){return[{x:6,y:this.y,verticalPlacement:"top",horizontalPlacement:"right",title:"DL_PANEL_TEAM_LIBRARY_ONBOARDING_TITLE1",body:"DL_PANEL_TEAM_LIBRARY_ONBOARDING_DESCRIPTION1",okButtonText:"DL_ONBOARDING_TOUR_NEXT",cancelButtonText:"DL_ONBOARDING_TOUR_SKIP"},{x:12,y:this.y,verticalPlacement:"top",horizontalPlacement:"left",title:"DL_PANEL_TEAM_LIBRARY_ONBOARDING_TITLE2",body:"DL_PANEL_TEAM_LIBRARY_ONBOARDING_DESCRIPTION2",okButtonText:"DL_ONBOARDING_TOUR_FINISH"}]}get isLastStep(){return this.currentStepId===this.allSteps.length-1}render(){return this.currentStep?Y.createElement("div",{className:"lSG"},Y.createElement(Bn,{okButtonText:(0,D.Iu)(this.currentStep.okButtonText),cancelButtonText:this.currentStep.cancelButtonText?(0,D.Iu)(this.currentStep.cancelButtonText):null,onClickCancel:this.onClickSkip,close:this.onClose,x:this.currentStep.x,y:this.currentStep.y,showPopoverTriangle:!0,triangleOffset:10,closeOnWindowClick:this.isLastStep,horizontalPlacement:this.currentStep.horizontalPlacement,placement:this.currentStep.verticalPlacement},this.title,this.body)):null}},uu.contextType=ee.r,uu.dialogName="panelTeamLibraryOneUpOnboardingPopover",uu.propTypes={close:K().func.isRequired},lu=function(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}((cu=uu).prototype,"currentStepId",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),su=cu))||su;var pu,hu,fu,mu;let gu=(0,$.Pi)((mu=class extends Y.Component{constructor(...e){super(...e),function(e,t,r,n){r&&Object.defineProperty(e,"currentStepId",{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}(this,0,fu,this),this.onClickCancel=()=>{this.closeDialog()},this.onClose=()=>{this.isLastStep?this.closeDialog():this.currentStepId++}}closeDialog(){this.context.viewState.setTourInProgress(!1),(0,x.y6)("firstEnteredLibrary"),this.props.close()}get title(){return Y.createElement("div",{className:"popover-title-row"},Y.createElement("div",{"data-test-id":"popover-title",className:"popover-title"},(0,D.Iu)(this.currentStep.title)),this.props.isNewUserTour&&Y.createElement("div",{"data-test-id":"popover-page-number",className:"popover-page-number"},(0,D.Iu)("DL_INFO_PAGINATION_COUNT",{currentPage:this.currentStepId+1,totalPages:this.allSteps.length})))}get body(){return Y.createElement("div",{"data-test-id":"popover-body",className:"popover-body"},(0,D.Iu)(this.currentStep.body))}get y(){return this.context.viewState.panelHeaderHeight}get currentStep(){return this.allSteps[this.currentStepId]}get allSteps(){const e=p.Z.currentProduct.config.hideAddControls?33:57,t=F.Z.getCustomHeaderView(),r=42+(t&&t.height||0);return[{x:5,y:30,triangleOffset:33,title:"DL_NEW_USER_TOUR_ADD_TITLE",body:"DL_NEW_USER_TOUR_ADD_BODY",verticalPlacement:"bottom",isDisabled:!this.props.isNewUserTour||p.Z.currentProduct.config.hideAddControls},{x:5,y:30,triangleOffset:e,title:"DL_NEW_USER_TOUR_GROUP_TITLE",body:"DL_NEW_USER_TOUR_GROUP_BODY",verticalPlacement:"bottom",isDisabled:!this.props.isNewUserTour},{x:5,y:r,triangleOffset:9,title:"DL_NEW_USER_TOUR_INVITE_TITLE",body:"DL_NEW_USER_TOUR_INVITE_BODY",verticalPlacement:"top",isDisabled:!(0,f.hp)(this.context.libraryManager.currentLibrary)}].filter((e=>!e.isDisabled))}get isLastStep(){return this.currentStepId===this.allSteps.length-1}get okButtonText(){const e=this.props.isNewUserTour?"DL_ONBOARDING_TOUR_FINISH":"DL_OK";return(0,D.Iu)(this.isLastStep?e:"DL_ONBOARDING_TOUR_NEXT")}get cancelButtonText(){return(0,D.Iu)(this.isLastStep?"":"DL_ONBOARDING_TOUR_SKIP")}render(){return this.currentStep?Y.createElement("div",{className:"coach-mark-with-image popover-tour-transparent-overlay"},Y.createElement(Bn,{okButtonText:this.okButtonText,onClickCancel:this.onClickCancel,triangleOffset:this.currentStep.triangleOffset,cancelButtonText:this.cancelButtonText,close:this.onClose,x:this.currentStep.x,y:this.currentStep.y,closeOnWindowClick:this.isLastStep,horizontalPlacement:"right",placement:this.currentStep.verticalPlacement},this.title,this.body)):null}},mu.contextType=ee.r,mu.isTour=!0,mu.dialogName="firstEnteredLibraryOnboardingPopoverTour",mu.propTypes={close:K().func.isRequired,isNewUserTour:K().bool},fu=function(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}((hu=mu).prototype,"currentStepId",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),pu=hu))||pu;var vu,yu,bu,_u;let Eu=(0,$.Pi)((_u=class extends Y.Component{constructor(...e){super(...e),function(e,t,r,n){r&&Object.defineProperty(e,"currentStepId",{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}(this,0,bu,this),this.onClickSkip=()=>{this.closeDialog()},this.onClose=()=>{F.Z.isLibraryManagerWindowOpen()&&(this.isLastStep?this.closeDialog():this.currentStepId++)}}closeDialog(){(0,x.y6)("librariesManager"),this.props.close()}get title(){return Y.createElement("div",{className:"popover-title-row"},Y.createElement("div",{"data-test-id":"popover-title",className:"popover-title"},(0,D.Iu)(this.currentStep.title)),this.allSteps.length>1&&Y.createElement("div",{"data-test-id":"popover-page-number",className:"popover-page-number"},(0,D.Iu)("DL_INFO_PAGINATION_COUNT",{currentPage:this.currentStepId+1,totalPages:this.allSteps.length})))}get body(){return Y.createElement("div",{"data-test-id":"popover-body",className:"popover-body"},(0,D.Iu)(this.currentStep.body))}get currentStep(){return this.allSteps[this.currentStepId]}get allSteps(){return[{x:70,y:205,triangleOffset:25,verticalPlacement:"top",horizontalPlacement:"right",title:"MANAGER_TOUR_TITLE_1",body:"MANAGER_TOUR_BODY_1",okButtonText:"DL_ONBOARDING_TOUR_NEXT",cancelButtonText:"DL_ONBOARDING_TOUR_SKIP",disable:this.context.libraryManager.isRestrictedAccount},{x:210,y:335,triangleOffset:17,verticalPlacement:"top",horizontalPlacement:"left",title:"MANAGER_TOUR_TITLE_2",body:"MANAGER_TOUR_BODY_2",okButtonText:"DL_ONBOARDING_TOUR_FINISH"}].filter((e=>!e.disable))}get isLastStep(){return this.currentStepId===this.allSteps.length-1}render(){return this.currentStep?Y.createElement("div",{className:"coach-mark-with-image popover-tour-transparent-overlay"},Y.createElement(Bn,{okButtonText:(0,D.Iu)(this.currentStep.okButtonText),cancelButtonText:this.currentStep.cancelButtonText&&(0,D.Iu)(this.currentStep.cancelButtonText),onClickCancel:this.onClickSkip,triangleOffset:this.currentStep.triangleOffset,close:this.onClose,x:this.currentStep.x,y:this.currentStep.y,closeOnWindowClick:this.isLastStep,horizontalPlacement:this.currentStep.horizontalPlacement,placement:this.currentStep.verticalPlacement},this.title,this.body)):null}},_u.dialogName="managerOnboardingPopoverTour",_u.contextType=ee.r,_u.isTour=!0,_u.propTypes={close:K().func.isRequired},bu=function(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}((yu=_u).prototype,"currentStepId",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),vu=yu))||vu;class wu extends Y.Component{componentDidMount(){j.ZP.reportEvent("Onboarding","Teams Library One up Intro","render","modal")}constructor(e){super(e),this.onClickOK=()=>{(0,x.y6)("teamsLibraryOpen"),j.ZP.reportEvent("Onboarding","Teams Library One up Intro","click","close"),this.props.close()},this.onLearnMoreClick=()=>{(0,R.Hu)()}}render(){const e=Q()("panel-dialog-layout-75","panel-dialog-input-container",{"panel-dialog-warning":this.showWarning});return Y.createElement(q.Z,{title:(0,D.Iu)("DL_TEAM_LIBRARY_ONBOARDING_HEADING"),okButtonText:(0,D.Iu)("DL_OK"),onClickOK:this.onClickOK,onClickCancel:this.onLearnMoreClick,close:this.props.close,cancelButtonText:(0,D.Iu)("DL_LEARN_MORE"),className:"team-library-one-up-onboarding"},Y.createElement("div",{className:e},Y.createElement("span",{className:"team-library-onboarding-browse-icon-container"},Y.createElement(X.Z,{id:"Browse","data-test-id":"onboarding-browse-icon",height:18})),Y.createElement("span",{"data-test-id":"onboarding-first-message",className:"team-library-onboarding-message-container"},(0,D.Iu)("DL_TEAM_LIBRARY_ONBOARDING_FIRST_MESSAGE"))),Y.createElement("div",{className:e},Y.createElement("span",{className:"team-library-onboarding-invite-icon-container"},Y.createElement(X.Z,{id:"Invite","data-test-id":"onboarding-invite-icon",height:18})),Y.createElement("span",{"data-test-id":"onboarding-second-message",className:"team-library-onboarding-message-container"},(0,D.Iu)("DL_TEAM_LIBRARY_ONBOARDING_SECOND_MESSAGE"))),Y.createElement("div",{className:e},Y.createElement("span",{className:"team-library-onboarding-organisations-icon-container"},Y.createElement(X.Z,{id:"Organisations","data-test-id":"onboarding-organisation-icon",height:18})),Y.createElement("span",{"data-test-id":"onboarding-third-message",className:"team-library-onboarding-message-container"},(0,D.Iu)("DL_TEAM_LIBRARY_ONBOARDING_THIRD_MESSAGE"))))}}var xu,Lu;wu.contextType=ee.r,wu.dialogName="teamsLibraryCCDOneUpOnboardingDialog",wu.propTypes={close:K().func.isRequired};let Ou=(0,$.Pi)(((Lu=class extends Y.Component{constructor(...e){super(...e),this.closeClick=()=>{j.ZP.reportEvent("Onboarding","Teams Library Create Intro","click","close"),this.props.close&&this.props.close(),this.context.viewState.setRemoveDialogPadding(!1),this.context.dialogManager.openDialog("createLibrary",{defaultTeam:this.props.defaultTeam})},this.onLearnMoreClick=()=>{(0,R.Hu)()}}componentDidMount(){j.ZP.reportEvent("Onboarding","Teams Library Create Intro","render","modal")}render(){return Y.createElement(q.Z,{"data-test-id":"team-libraries-create-onboarding",okButtonText:(0,D.Iu)("DL_OK"),close:this.closeClick,cancelButtonText:null},Y.createElement("div",{className:"panel-dialog-layout-group"},Y.createElement("div",{className:"Hen"},Y.createElement("img",{"data-test-id":"team-libraries-create-onboarding-graphic",className:"iKS",src:eu}),Y.createElement(di.Z,{className:"TrK","data-test-id":"team-libraries-create-onboarding-heading",html:(0,D.Iu)("DL_TEAM_LIBRARIES_CREATE_DIALOG_TITLE")}),Y.createElement(di.Z,{className:"eQY","data-test-id":"team-libraries-create-onboarding-description",html:(0,D.Iu)("DL_TEAM_LIBRARIES_CREATE_DIALOG_DESCRIPTION"),onClick:this.onLearnMoreClick}))))}}).dialogName="teamsLibraryCreateCCDOnboardingDialog",Lu.contextType=ee.r,Lu.propTypes={close:K().func,defaultTeam:K().object},xu=Lu))||xu;const Su=[ot,Et,Lt,Ct,jt,$t,Nr,Zr,zr,on,ln,pn,mn,Dn,zn,qn,ii,fi,vi,Li,Ni,Pi,ji,Ci,Co,fo,Fo,zo,Wo,Jo,ya,es,ss,hs,rl,fs,Kl,zs,Qs,Bl,Jl,ou,gu,Eu,wu,du,Ou,au,r(11507).Z,r(37182).Z,r(67116).Z,r(145).Z,r(99525).Z];class Tu extends s{get libraryManager(){return this._rootContext.libraryManager}}class Pu extends Tu{constructor(e){super(e),this.dialogManager=new i.aS(this),this.viewManager=new S(this),this.toastManager=new I.y(this),this.viewState=new k(this),this.libraryActions=new z(this),this.documentActions=new V(this)}init(){this.dialogManager.init(Su)}reset(){this.dialogManager.closeDialog(),this.toastManager.closeToast(),this.viewState.setSearchText(""),this.viewManager.stopRename()}}var Iu=r(16993),Au=r(58620),Cu=r.n(Au);const ku={},Du="click",Nu="button";function Ru(e,t){const r={};return t.forEach(((t,n)=>{Object.keys(t).forEach((i=>{r[`${e}_${i}${n}`]=t[i]}))})),r}function Mu(e){const{applicationName:t,eventData:r}=e,n={...r};e.attributes&&(n.attributes=function(e){let t={};for(const r in e){const n=e[r];Array.isArray(n)?t={...t,...Ru(r,n)}:("boolean"==typeof n||"string"==typeof n||"number"==typeof n)&&(t[r]=e[r])}return t}(e.attributes)),e.search&&(n.search=function(e){const t={term:e.term,resultCount:e.resultCount};return e.facets&&(t.facets=e.facets?.map((e=>Array.isArray(e)?e.map((e=>`${e.name}:${e.value}`)):`${e.name}:${e.value}`))),t}(e.search)),function(e){return ku[e]||(ku[e]=new(Cu())(e)),ku[e]}(t).analytics.trackEvent(n)}const ju="GenStudio-app",Fu="brands",Zu=new class{sendPublishBrandOmegaEvent(e){Mu({applicationName:ju,eventData:{feature:Fu,action:Du,widget:{name:"publish-brand-dialog",type:"dialog"},element:"publish-button",elementId:"publish-button-id",type:Nu},attributes:{brandId:e}})}sendUnpublishBrandOmegaEvent(e){Mu({applicationName:ju,eventData:{feature:Fu,action:Du,widget:{name:"unpublish-brand-dialog",type:"dialog"},element:"unpublish-button",elementId:"unpublish-button-id",type:Nu},attributes:{brandId:e}})}};var Bu=r(18580);function Gu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Uu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Uu(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Uu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Hu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function zu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hu(Object(r),!0).forEach((function(t){Vu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Vu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yu(){Yu=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Wu(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Ku(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Wu(o,n,i,a,s,"next",e)}function s(e){Wu(o,n,i,a,s,"throw",e)}a(void 0)}))}}const $u=3e4;class qu extends s{rename(e,t){return j.ZP.reportEvent("Operations","brand","click","rename",{},e),e.name=t,e}invite(e,t=!1){var r;j.ZP.reportEvent("Library Operations","Collaboration","click","invite",{content:{category:t?"Header":"List"}},e),null===(r=F.Z.showShareSheet)||void 0===r||r.call(F.Z,e,"invite")}getBrandActions(e){var t=this;if(!F.Z.isBrandCreator)return[];const r=(0,M.F)(e),n=(0,M.re)(e)&&!(0,M.lv)(F.Z.brandLocation),i=e.publishedTo||e.publishedFrom,o=e.isWritable,a=!(0,M.lv)(F.Z.brandLocation)&&e.isWritable&&Bu.Z.isBrandThumbnailsEnabled();return[n&&{id:"edit",label:(0,D.Iu)("DL_EDIT_ITEM"),onClick:()=>this.editBrand(e),enableMenu:!0,icon:"Edit"},i&&{id:"unpublish",label:(0,D.Iu)("DL_UNPUBLISH"),enableMenu:!0,onClick:()=>this.context.dialogManager.openDialog("unpublishBrand",{brand:e}),icon:"PublishRemove"},o&&{id:"duplicate",label:(0,D.Iu)("BRAND_DUPLICATE_ACTION"),enableMenu:!0,onClick:()=>{this.context.dialogManager.openDialog("duplicateBrand",{brand:e}),j.ZP.reportDuplicateBrand(e)},icon:"Duplicate"},a&&{id:"changeThumbnail",label:(0,D.Iu)("BRAND_CHANGE_THUMBNAIL"),enableMenu:!0,onClick:(s=Ku(Yu().mark((function r(){var n;return Yu().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.thumbnailFilePicker();case 2:(n=r.sent)&&t.context.dialogManager.openDialog("uploadThumbnail",{brand:e,fileUrl:n});case 4:case"end":return r.stop()}}),r)}))),function(){return s.apply(this,arguments)}),icon:"Image"},r&&{id:"delete",label:(0,D.Iu)("DL_DELETE"),enableMenu:!0,onClick:()=>this.context.dialogManager.openDialog("deleteBrand",{library:e}),destructive:!0,icon:"Delete"}].filter((e=>e));var s}publishBrand(e,t,r=!0){var n=this;return Ku(Yu().mark((function i(){var o;return Yu().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,e.committed;case 3:return i.next=5,Sa.Z.getAssetWithCloudID(e.assetId);case 5:return o=i.sent,i.next=8,o.patchAppMetadata([{op:"add",path:"/library:roles",value:e.roles}]);case 8:return i.next=10,(0,M.GR)($u,cd.libraryManager.publishBrand(e));case 10:return i.next=12,(0,M.GR)($u,new Promise((i=>{o.appMetadata.once("change",(()=>{var a;const s=null===(a=o.appMetadata.data)||void 0===a?void 0:a["brand:publishedTo"];e.load().then((()=>{s&&r&&F.Z.navigateToLibrary(zu(zu({},e),{},{id:s["repo:assetId"]})),t&&n.context.toastManager.openToast("message",{variant:"success",message:(0,D.Iu)(t)}),j.ZP.reportPublishBrand(e),Zu.sendPublishBrandOmegaEvent(e.id),i()}))}))})).catch((e=>{throw e})));case 12:return i.abrupt("return",1);case 15:return i.prev=15,i.t0=i.catch(0),"timeout"===i.t0.message?n.context.toastManager.openToast("message",{variant:"error",message:(0,D.Iu)("BRAND_PUBLISH_TIMEOUT_TOAST")}):n.context.toastManager.openToast("message",{variant:"error",message:(0,D.Iu)("BRAND_PUBLISH_ERROR_TOAST")}),j.ZP.reportPublishBrand(e,{"event.subtype":"error","event.error_code":null===i.t0||void 0===i.t0?void 0:i.t0.statusCode,"event.error_desc":null===i.t0||void 0===i.t0?void 0:i.t0.message}),i.abrupt("return",0);case 20:case"end":return i.stop()}}),i,null,[[0,15]])})))()}thumbnailFilePicker(){var e=this;return Ku(Yu().mark((function t(){var r,n;return Yu().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=(0,xr.Fe)(As,!0),n=(0,xr.ku)(As),t.abrupt("return",(0,xr.fz)({fileTypes:r,multiple:!1}).then((t=>{if(n.includes(t[0].type))return URL.createObjectURL(t[0]);{var r,i,o;const n=(null===(r=(0,xr.vn)(t[0].type))||void 0===r||null===(i=r[0])||void 0===i?void 0:i.toUpperCase())||(null===(o=(0,xr._2)(t[0].name))||void 0===o?void 0:o.toUpperCase())||(0,D.Iu)("BRANDS_UNKNOWN_FILE_TYPE");e.context.toastManager.openToast("message",{variant:"error",message:(0,D.Iu)("BRAND_INVALID_FILE_TOAST",{fileExtension:n})})}})));case 3:case"end":return t.stop()}}),t)})))()}unpublishBrand(e){var t=this;return Ku(Yu().mark((function r(){var n,i;return Yu().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!e.publishedTo&&!e.publishedFrom){r.next=18;break}return n=e.publishedFrom||e.assetId,r.prev=2,r.next=5,Sa.Z.getAssetWithCloudID(n);case 5:return i=r.sent,r.next=8,(0,M.GR)($u,cd.libraryManager.unpublishBrand(e));case 8:return r.next=10,(0,M.GR)($u,new Promise((r=>{i.appMetadata.once("change",(()=>{var n;!(null===(n=i.appMetadata.data)||void 0===n?void 0:n["brand:publishedTo"])&&e.publishedFrom&&(0,M.lv)(F.Z.brandLocation)&&F.Z.navigateToLibrary(zu(zu({},e),{},{id:e.publishedFrom})),t.context.toastManager.openToast("message",{variant:"success",message:(0,D.Iu)("BRAND_UNPUBLISHED_SUCCESS_TOAST")}),j.ZP.reportUnpublishBrand(e),Zu.sendUnpublishBrandOmegaEvent(e.id),r(1)}))})));case 10:return r.abrupt("return",1);case 13:return r.prev=13,r.t0=r.catch(2),"timeout"===r.t0.message?t.context.toastManager.openToast("message",{variant:"error",message:(0,D.Iu)("BRAND_UNPUBLISH_TIMEOUT_TOAST")}):t.context.toastManager.openToast("message",{variant:"error",message:(0,D.Iu)("BRAND_UNPUBLISH_ERROR_TOAST")}),j.ZP.reportUnpublishBrand(e,{"event.subtype":"error","event.error_code":null===r.t0||void 0===r.t0?void 0:r.t0.statusCode,"event.error_desc":null===r.t0||void 0===r.t0?void 0:r.t0.message}),r.abrupt("return",0);case 18:case"end":return r.stop()}}),r,null,[[2,13]])})))()}duplicateBrand(e,t){var r=this;return Ku(Yu().mark((function n(){var i,o,a,s,c,l;return Yu().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,i=e.publishedFrom||e.assetId,n.next=4,(0,M.GR)($u,Promise.all([Sa.Z.getAssetWithCloudID(i),Sa.Z.resolveProjectByName("Adobe GenStudio Brands")]));case 4:return o=n.sent,a=Gu(o,2),s=a[0],c=a[1],n.next=10,(0,M.GR)($u,Sa.Z.copyBrand(s,c,t));case 10:return l=n.sent,r.context.toastManager.openToast("message",{variant:"success",message:(0,D.Iu)("BRAND_DUPLICATE_SUCCESS_TOAST")}),F.Z.navigateToLibrary(l),j.ZP.reportDuplicateBrand(e,{"event.type":"success","event.subtype":"duplicate"}),n.abrupt("return",1);case 17:return n.prev=17,n.t0=n.catch(0),"timeout"===n.t0.message?r.context.toastManager.openToast("message",{variant:"error",message:(0,D.Iu)("BRAND_DUPLICATE_TIMEOUT_TOAST")}):r.context.toastManager.openToast("message",{variant:"error",message:(0,D.Iu)("BRAND_DUPLICATE_ERROR_TOAST")}),j.ZP.reportDuplicateBrand(e,{"event.type":"failure","event.subtype":"duplicate","event.error_code":null===n.t0||void 0===n.t0?void 0:n.t0.statusCode,"event.error_desc":null===n.t0||void 0===n.t0?void 0:n.t0.message}),n.abrupt("return",0);case 22:case"end":return n.stop()}}),n,null,[[0,17]])})))()}editBrand(e){return Ku(Yu().mark((function t(){return Yu().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.publishedFrom&&F.Z.navigateToLibrary(zu(zu({},e),{},{id:e.publishedFrom}));case 1:case"end":return t.stop()}}),t)})))()}closeDraft(e){return Ku(Yu().mark((function t(){return Yu().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.publishedTo&&F.Z.navigateToLibrary(zu(zu({},e),{},{id:e.publishedTo}));case 1:case"end":return t.stop()}}),t)})))()}brandLibrary(e){e.roles=[{type:Ts}]}unbrandLibrary(e){e.roles=[]}}var Xu=r(53849);function Ju(){Ju=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Qu(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function ed(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Qu(o,n,i,a,s,"next",e)}function s(e){Qu(o,n,i,a,s,"throw",e)}a(void 0)}))}}const td="application/vnd.adobe.color+json",rd="color",nd="data";class id extends s{getMenuItems(e){var t;const r=[];if(e.type===As&&(Bu.Z.isAssetPreviewEnabled()&&r.push({label:"BRAND_VIEW_ASSET_DETAILS",id:"preview",icon:"InfoOutline",enableMenu:!0,onClick:()=>{var t;j.ZP.reportElementEvent("Element Operations","Element","open","asset-preview",e),null===(t=F.Z.requestAction)||void 0===t||t.call(F.Z,"openAssetPreview",{libraryElement:e})}}),r.push({label:"DL_DOWNLOAD",id:"download",icon:"SX_Download",enableMenu:!0,onClick:()=>{this.downloadElement(e)}})),!e.library.isWritable||(0,M.Hc)(e.library))return r;const i=null===(t=e.roles)||void 0===t?void 0:t.some((e=>e.usage===Ps));if(Bu.Z.isBrandThumbnailsEnabled()&&i){var o;const t=null===(o=e.roles)||void 0===o?void 0:o.some((e=>e.type===Is));r.push({label:"BRAND_SET_LOGO_THUMBNAIL",id:"setThumbnail",icon:"Image",destructive:!1,enableMenu:!t,tooltip:t?(0,D.Iu)("BRAND_SET_LOGO_THUMBNAIL_IN_USE"):void 0,onClick:()=>{(0,Ka._q)(Ka.bC.SET_THUMBNAIL_LOGO.start),e.roles.push({type:Is}),(0,Ka._q)(Ka.bC.SET_THUMBNAIL_LOGO.end),(0,Ka.L8)(Ka.bC.SET_THUMBNAIL_LOGO.measure)}})}return Z.Z.getEditOperations(e).forEach((e=>{e.disabled||r.push({enableMenu:!0,label:e.name,id:"edit",icon:"Edit",onClick:()=>{e.apply()}})})),r.push({label:"DL_RENAME",id:"rename",icon:"Rename",enableMenu:!0,onClick:()=>{j.ZP.reportElementEvent("Element Operations","Element","open","rename",e),this.context.dialogManager.openDialog("renameElement",{element:e})}},{label:"DL_DELETE",id:"delete",icon:"Delete",destructive:!0,enableMenu:!0,onClick:()=>{Xu.Z.clearSelection([e]),j.ZP.reportEvent("Element Operations","Element","click","delete",{event:{value:"agg",count:1},content:{category:"Right Click"}},e.library),j.ZP.setExtraEventMetrics("removeElement",{content:{category:"Right Click"}}),n.ZP.deleteElements([e])}}),r}downloadElement(e){var t=this;return ed(Ju().mark((function r(){var n,i,o,a;return Ju().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,n=e.getPrimaryRepresentation(),r.next=4,n.getContent();case 4:if(i=r.sent){r.next=7;break}throw new Error("No content found for element");case 7:o=URL.createObjectURL(i),(a=document.createElement("a")).href=o,a.download=`${e.name}.${Z.Z.getExtension(e)}`,document.body.appendChild(a),a.click(),URL.revokeObjectURL(o),document.body.removeChild(a),j.ZP.reportEvent("Element Operations","Download Element","click","finish",{},e.library),r.next=23;break;case 18:throw r.prev=18,r.t0=r.catch(0),j.ZP.reportError("Element Operations","Download Element",null===r.t0||void 0===r.t0?void 0:r.t0.message,null,null===r.t0||void 0===r.t0?void 0:r.t0.type,{},e.library),t.context.toastManager.openToast("message",{message:(0,D.Iu)("BRAND_DOWNLOAD_FAILED"),variant:"error"}),r.t0;case 23:case"end":return r.stop()}}),r,null,[[0,18]])})))()}createColor(e,t,r,i){var a=this;return ed(Ju().mark((function s(){var c,l;return Ju().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,e.createElement(t,"application/vnd.adobe.element.color+dcx");case 2:return c=s.sent,s.next=5,c.createRepresentation(td,r);case 5:return l=s.sent,s.next=8,l.setValue(rd,nd,i);case 8:return c.endOperation(),s.abrupt("return",new Promise((e=>{(0,o.when)((()=>c.isCommitted||"error"===n.ZP.syncStatus.state),(()=>{c.isCommitted?(a.context.toastManager.openToast("message",{variant:"success",message:(0,D.Iu)("BRAND_COLORS_ADD_SUCCESS")}),e(c)):(a.context.toastManager.openToast("message",{variant:"error",message:(0,D.Iu)("BRAND_COLORS_ADD_ERROR")}),e(0))}))})));case 10:case"end":return s.stop()}}),s)})))()}editColor(e,t,r,i){var a=this;return ed(Ju().mark((function s(){var c;return Ju().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return e.beginOperation(),e.name=t,s.next=4,e.removeAllRepresentations();case 4:return s.next=6,e.createRepresentation(td,r);case 6:return c=s.sent,s.next=9,c.setValue(rd,nd,i);case 9:return e.endOperation(),a.context.toastManager.openToast("message",{variant:"success",message:(0,D.Iu)("BRAND_COLORS_EDIT_SUCCESS")}),s.abrupt("return",new Promise((e=>{(0,o.when)((()=>["error","ok"].includes(n.ZP.syncStatus.state)),(()=>{"ok"===n.ZP.syncStatus.state?e(1):(a.context.toastManager.openToast("message",{variant:"error",message:(0,D.Iu)("BRAND_COLORS_EDIT_ERROR")}),e(0))}))})));case 12:case"end":return s.stop()}}),s)})))()}}var od=r(10440);class ad extends s{createGroupFromSet(e){if(this.context.viewState.isLibrariesSearchMode())return;const t=e.length&&e[0].isGroup?e:[],r=e.length&&e[0].library||this.context.libraryManager.currentLibrary;if("group"!==this.context.viewState.viewByState&&this.context.viewState.setViewByState("group"),"group"===this.context.viewState.viewByState){let n;r.beginOperation();const i=t.filter((e=>!e.parent||e.parent&&!t.includes(e.parent)));if(i&&1===i.length)n=(0,h.yF)(i[0]);else{const o=(0,h.Q_)(e);n=o&&o!==p.Z.UNGROUPED_GROUP?(0,h.yF)(o):(0,f.sS)(r),t.length>=1?i.forEach((e=>e.parent=n)):((0,f.c_)(e,n),j.ZP.reportEvent("Element Operations","Element","click","add-to-group",{event:{value:"agg",count:e.length},content:{category:"Click"}},r),j.ZP.setExtraEventMetrics("updateElement",{subtype:"add-to-group",content:{category:"Click"}}))}r.endOperation(),this.context.viewState.clearAllSelections(),od.Z.setSelection(n),this.context.viewState.resetMode(),this._onNewGroup(n)}}_onNewGroup(e){Xu.Z.revealGroup(e),p.Z.currentProduct.config.disableEditPathOperation?this.context.viewManager.startRename(e):this.context.viewManager.startEditPath(e,!0)}createSubgroup(e){const t=(0,h.yF)(e);return this._onNewGroup(t),t}}class sd extends Tu{constructor(e){super(e),this.dialogManager=i.ZP,this.viewManager=new S(this),this.toastManager=I.Z,this.viewState=Iu.Z,this.libraryActions=new z(this),this.brandActions=new qu(this),this.brandElementActions=new id(this),this.documentActions=new V(this),this.groupActions=new ad(this)}init(){this.dialogManager.init(Su),this.viewState.init()}reset(){this.dialogManager.closeDialog(),this.toastManager.closeToast(),this.viewState.setSearchText(""),this.viewManager.stopRename()}}const cd=new class extends s{constructor(){super(),this.libraryManager=n.ZP,this.panel=new sd(this),this.manager=new Pu(this)}init(){this.panel.init(),this.manager.init()}reset(){this.panel.reset(),this.manager.reset()}}},41765:(e,t,r)=>{"use strict";r.d(t,{Z:()=>w});var n,i,o,a=r(89526),s=r(50265),c=r(62631),l=r(2652),u=r.n(l),d=r(27611),p=r(16993),h=r(84824),f=r(64403),m=r.n(f),g=r(2169),v=r(43616),y=r(99386),b=r(72279),_=r(85080);function E(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let w=(0,c.Pi)(((o=class extends a.Component{constructor(...e){super(...e),this.overlayState=new _.Z({ignoreScrollEvents:!0,ignoreFocus:!0}),this.handleFocusVisibility=e=>{const t=(0,g.j6)(e);t&&t.blur()},this.handleClick=()=>{this.overlayState.toggleOverlay()},this.setCustomLabelRef=e=>{this.customLabelRef=e}}get currentLibrariesFilter(){return p.Z.currentLibrariesFilter}get filterData(){const e=p.Z.getLibraryListFilterOptions().map((e=>{if(this.props.disabledFilters.includes(e))return null;const t={id:e};return t.label=(0,h.Iu)(`DL_LIBRARY_LIST_FILTER_${e.toUpperCase()}`),t.isSelected=this.currentLibrariesFilter===e,t.key=e,t.onClick=()=>{p.Z.setCurrentLibrariesFilter(e),this.props.onFilterChange()},t})).filter((e=>e));return[{label:(0,h.Iu)("DL_LIBRARY_LIST_FILTER_BY"),isTitle:!0,onClick:()=>{},id:"title"}].concat(e)}get labelIcon(){var e,t;const r=y.Z.currentProduct.config.iconHeight||16,n=y.Z.currentProduct.config.iconWidth||16,i=null===(e=(t=y.Z.currentProduct).isExpandedBrandsView)||void 0===e?void 0:e.call(t);return a.createElement("div",{ref:this.setCustomLabelRef},a.createElement(b.Z,{selected:this.overlayState.isOpen,quiet:!0,variant:"action","data-test-id":"library-list-filter-button",disabled:this.props.disabled,"aria-label":(0,h.Iu)(i?"DL_LIBRARY_LIST_FILTER_BRANDS":"DL_LIBRARY_LIST_FILTER_LIBS"),onClick:this.handleClick,className:m()("view-toggle-button","keypress-suppression",{"is-disabled":this.props.disabled,selected:this.overlayState.isOpen})},a.createElement(d.Z,{id:"Filter","data-test-id":"panel-dropdown-icon",height:r,width:n}),"all"!==this.currentLibrariesFilter&&a.createElement("div",{className:"filter-applied-badge","data-test-id":"library-list-filter-button-badge"})))}render(){var e,t;const r=null===(e=(t=y.Z.currentProduct).isExpandedBrandsView)||void 0===e?void 0:e.call(t);return a.createElement(v.Z,{"data-test-id":"filter-libraries-dropdown",tooltip:(0,h.Iu)(r?"DL_LIBRARY_LIST_FILTER_BRANDS":"DL_LIBRARY_LIST_FILTER_LIBS"),data:this.filterData,className:"panel-select-library-filter",type:"filter",currentLabel:this.labelIcon,locationBasedOnLabel:!0,customLabelRef:this.customLabelRef})}}).defaultProps={onFilterChange:()=>{},disabledFilters:[],disabled:!1},o.propTypes={onFilterChange:u().func,disabledFilters:u().arrayOf(u().string),disabled:u().bool},E((i=o).prototype,"currentLibrariesFilter",[s.computed],Object.getOwnPropertyDescriptor(i.prototype,"currentLibrariesFilter"),i.prototype),E(i.prototype,"labelIcon",[s.computed],Object.getOwnPropertyDescriptor(i.prototype,"labelIcon"),i.prototype),n=i))||n},54048:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p});var n=r(89526),i=r(2652),o=r.n(i),a=r(16993),s=r(84824),c=r(2169),l=r(51461),u=r(75067),d=r(99386);class p extends n.Component{constructor(...e){super(...e),this.onStockSearchClick=()=>{l.ZP.reportEvent("Search","Search","click","try-stock",{ui:{filter:a.Z.getSearchType()}}),a.Z.setSearchType("stock")},this.onLibrariesSearchClick=()=>{l.ZP.reportEvent("Search","Search","click","try-all-libraries",{ui:{filter:a.Z.getSearchType()}}),a.Z.setSearchType("libraries")}}static getHeight(e){return(0,c.fk)((0,s.Iu)("DL_SEARCH_SCOPE_SUGGESTION_TITLE"),"panel-contents-bottom-message-text",e)+(0,c.fk)((0,s.Iu)("DL_SEARCH_SCOPE_SUGGESTION_ALL_LIBRARIES"),"panel-contents-bottom-message-link",e)+(!a.Z.isDocumentSearchMode()&&(0,c.fk)((0,s.Iu)("DL_SEARCH_SCOPE_SUGGESTION_STOCK"),"panel-contents-bottom-message-link",e)||0)+72}get searchStockLink(){if(!(d.Z.currentProduct.config.disableStockSearch||a.Z.isDocumentSearchType()||a.Z.isStockSearchMode()))return n.createElement("div",{className:"panel-contents-bottom-message-link","data-test-id":"search-result-bottom-message-stock-search",onClick:this.onStockSearchClick},(0,s.Iu)("DL_SEARCH_SCOPE_SUGGESTION_STOCK"))}render(){return a.Z.isLibrariesSearchMode()||u.ZP.disableCCLibraries||d.Z.currentProduct.config.disableSearchSourceSelection?null:n.createElement("div",{className:"panel-contents-bottom-message","data-test-id":"search-result-bottom-message"},!this.props.hidePromptText&&n.createElement("div",{className:"panel-contents-bottom-message-text","data-test-id":"search-result-bottom-message-title"},(0,s.Iu)("DL_SEARCH_SCOPE_SUGGESTION_TITLE")),!d.Z.currentProduct.config.disableAllLibrariesElementSearch&&n.createElement("div",{className:"panel-contents-bottom-message-link","data-test-id":"search-result-bottom-message-libraries-search",onClick:this.onLibrariesSearchClick},(0,s.Iu)("DL_SEARCH_SCOPE_SUGGESTION_ALL_LIBRARIES")),this.searchStockLink)}}p.defaultProps={hidePromptText:!1},p.propTypes={hidePromptText:o().bool}},85080:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d});var n,i,o=r(50265),a=r(99409),s=r(16993),c=r(2169),l=r(76485),u=r(99386);let d=(n=class{constructor(e={}){var t;(t=i)&&Object.defineProperty(this,"_isOpen",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0}),this._prevDimensions=null,this._globalHide=e=>{let t=!1;l.Z.flyoutMenuClickEvent&&(t=(null==e?void 0:e.type)===l.Z.flyoutMenuClickEvent);const r=!e||!this._parentElements||this._parentElements.every((t=>!t||!(0,c.rP)(e,t)));!t&&r&&this.hideOverlay()},this._resizeHide=()=>{l.Z.hasUXPResizeBug||this._globalHide();const e={width:l.Z.getPanelWidth(),height:l.Z.getPanelHeight()};this._prevDimensions&&JSON.stringify(this._prevDimensions)!==JSON.stringify(e)?this.hideOverlay():this._prevDimensions=e},this.setParentElement=e=>{this._parentElements=Array.isArray(e)?e:[e]},this._hideOnEscapeKey=e=>{"Escape"===e.key&&this._globalHide()},this._doHideOverlay=()=>this.hideOverlay(),this._options=e,this._hideEvent=e.hideEvent||"click",this._options.ignoreWheelEvents=!u.Z.currentProduct.config.observeWheelEvents,e.isOpen&&this._openOverlay()}get _focusEvent(){const e=this._parentElements&&this._parentElements.find((e=>e));return e&&e.shadowRoot?"keyup":"focusin"}getParentElement(){return this._parentElements}get isOpen(){return this._isOpen}_openOverlay(){this._options.ignoreAllEvents||(this._options.ignoreClickOutsideEvent||window.addEventListener(this._hideEvent,this._globalHide,!0),window.addEventListener("contextmenu",this._globalHide,!0),window.addEventListener("dragstart",this._globalHide,!0),a.Z.addListener("flyoutMenuClicked",this._globalHide),a.Z.addListener("flyoutMenuOpened",this._globalHide),l.Z.addEventListener("canvasClick",this._globalHide),this._options.ignoreResizeEvents||window.addEventListener("resize",this._resizeHide,!0),this._options.ignoreScrollEvents||window.addEventListener("scroll",this._globalHide,!0),this._options.ignoreViewState||s.Z.addListener("resetMode",this._doHideOverlay),this._options.ignoreFocus||window.addEventListener(this._focusEvent,this._globalHide,!0),this._options.ignoreEscape||window.addEventListener("keydown",this._hideOnEscapeKey,!0),this._options.ignoreWheelEvents||window.addEventListener("wheel",this._globalHide,!0)),this._isOpen=!0}hideOverlay(){this.isOpen&&(this._options.ignoreAllEvents||(this._options.ignoreClickOutsideEvent||window.removeEventListener(this._hideEvent,this._globalHide,!0),window.removeEventListener("contextmenu",this._globalHide,!0),window.removeEventListener("dragstart",this._globalHide,!0),a.Z.removeListener("flyoutMenuClicked",this._globalHide),a.Z.removeListener("flyoutMenuOpened",this._globalHide),l.Z.removeEventListener("canvasClick",this._globalHide),this._options.ignoreResizeEvents||window.removeEventListener("resize",this._resizeHide,!0),this._options.ignoreScrollEvents||window.removeEventListener("scroll",this._globalHide,!0),this._options.ignoreViewState||s.Z.removeListener("resetMode",this._doHideOverlay),this._options.ignoreFocus||window.removeEventListener(this._focusEvent,this._globalHide,!0),this._options.ignoreEscape||window.removeEventListener("keydown",this._hideOnEscapeKey,!0),this._options.ignoreWheelEvents||window.removeEventListener("wheel",this._globalHide,!0)),this._isOpen=!1,this._prevDimensions=null,this._options.onClose&&this._options.onClose())}toggleOverlay(){if(this.isOpen)return this.hideOverlay();this._openOverlay(),this._options.onOpen&&this._options.onOpen()}},p=n.prototype,h="_isOpen",f=[o.observable],m={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}},g={},Object.keys(m).forEach((function(e){g[e]=m[e]})),g.enumerable=!!g.enumerable,g.configurable=!!g.configurable,("value"in g||g.initializer)&&(g.writable=!0),g=f.slice().reverse().reduce((function(e,t){return t(p,h,e)||e}),g),void 0===g.initializer&&(Object.defineProperty(p,h,g),g=null),i=g,n);var p,h,f,m,g},77227:(e,t,r)=>{"use strict";r.d(t,{Z:()=>_});var n,i,o,a,s,c,l,u=r(50265),d=r(69233),p=r(46931),h=r(99386);function f(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function m(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const g=h.Z.VIEW_BY_GROUP_MODES,v=/^ /,y=/ {2}/,b=/ \//;let _=(n=u.observable.ref,i=u.observable.ref,o=u.observable.ref,s=m((a=class{constructor(){f(this,"_group",s,this),f(this,"_inputElement",c,this),this._isNewGroup=!1,f(this,"_livePath",l,this),this.setInputElement=e=>{this._inputElement=e}}get group(){return this._group}get viewByGroupMode(){return p.Z.panel.viewState.viewByGroupMode}get maxDepth(){return this.group?this.viewByGroupMode===g.TREE?this._groupPath.length-1:this.group.library.pathViewMaxDepth||0:0}get inputElement(){return this._inputElement}get isNewGroup(){return this._isNewGroup}get _groupPath(){return[...(0,d._y)(this.group),this.group]}get groupPath(){return this.group?this._groupPath.slice(this.maxDepth):[]}get changesToCommit(){return!(!this._commitPath.length||this._groupPath.length===this._commitPath.length&&!this._commitPath.filter(((e,t)=>e!==this._groupPath[t])).length)}get _commitPath(){return this.matchedPath.filter((e=>e.name))}get matchedPath(){return this.isEditing?(0,d.aX)(this.group.library,this._groupPath,this.livePath,this.maxDepth):[]}get headIndex(){return this.livePath.length-1}get head(){return this.livePath[this.headIndex]}getAutocompleteResultsForPath(e){const t=e.length-1,r=!e.length||!e[t].name.length,n=e[t-1];if(n&&!n.isGroup)return[];if(r)return n?n.children:(0,d.GN)(this.group.library);const i=e[t],o=(e,t)=>e.toLowerCase().includes(t.toLowerCase());return n?i.name?n.getFilteredChildren((e=>o(e.name,i.name.trim()))):[]:this.group.library.getFilteredGroups(void 0,(e=>!e.parent&&o(e.name,i.name.trim())))}get autocompleteResults(){return this.isEditing?this.getAutocompleteResultsForPath(this.matchedPath):[]}get livePath(){return this._livePath}get isEditing(){return!(!this._group||!this._livePath.length)}startEdit(e,t=!1){this._group=e,this._isNewGroup=t,this.reset()}stopEdit(){this._group=null,this._isNewGroup=!1,this._livePath=[],this.setInputElement(null)}commitEdit(){if(this.changesToCommit){const e=this._commitPath[this._commitPath.length-1].isGroup&&this.viewByGroupMode===h.Z.VIEW_BY_GROUP_MODES.TREE,t=e&&(0,d.GI)(this.group.library);if(p.Z.panel.viewState.clearAllSelections(),(0,d.eV)(this.group,this._commitPath,{deleteEmpty:!0}),e){const e=()=>(0,d.r5)(t);p.Z.panel.toastManager.openToast("undoMergeGroups",{undo:e})}}this.stopEdit()}reset(){this._livePath=this.groupPath.slice()}getNewGroupEntry(e){return{name:e||""}}_escapeName(e){return(e=(e=(e=e.replace(b,"")).replace(y," ")).replace(v,"")).replace("/"," ")}addEntry(e){this._livePath.push(this.getNewGroupEntry(e)),this._livePath=this._livePath.slice()}updateEntry(e,t){if(this._livePath[e].disableEditing)return;const r=this._livePath[e].isGroup?this.getNewGroupEntry():this._livePath[e];r.name=this._escapeName(t),this._livePath[e]=r,this._livePath=this._livePath.slice(0,e+1)}deleteEntry(e){this._livePath[e].disableEditing||(this._livePath=this._livePath.slice(0,e))}}).prototype,"_group",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),c=m(a.prototype,"_inputElement",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),l=m(a.prototype,"_livePath",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),m(a.prototype,"_groupPath",[u.computed],Object.getOwnPropertyDescriptor(a.prototype,"_groupPath"),a.prototype),m(a.prototype,"groupPath",[u.computed],Object.getOwnPropertyDescriptor(a.prototype,"groupPath"),a.prototype),m(a.prototype,"changesToCommit",[u.computed],Object.getOwnPropertyDescriptor(a.prototype,"changesToCommit"),a.prototype),m(a.prototype,"_commitPath",[u.computed],Object.getOwnPropertyDescriptor(a.prototype,"_commitPath"),a.prototype),m(a.prototype,"matchedPath",[u.computed],Object.getOwnPropertyDescriptor(a.prototype,"matchedPath"),a.prototype),m(a.prototype,"headIndex",[u.computed],Object.getOwnPropertyDescriptor(a.prototype,"headIndex"),a.prototype),m(a.prototype,"head",[u.computed],Object.getOwnPropertyDescriptor(a.prototype,"head"),a.prototype),m(a.prototype,"autocompleteResults",[u.computed],Object.getOwnPropertyDescriptor(a.prototype,"autocompleteResults"),a.prototype),a)},99386:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=new class{constructor(){this.EXTENSION_ID="com.adobe.DesignLibraries.angular",this.MANAGER_EXTENSION_ID="com.adobe.cclibraries.manager",this.STOCK_PURCHASE_EXTENSION_ID="com.adobe.stock.panel.licensing-embedded",this.PROFILE_CHANGE_EVENT_ID="com.adobe.csxs.events.ProfileChanged",this.strTempFolder="",this.showTooltips=!0,this.DRAGDROP_SOURCE="com.adobe.designlibrary",this.UNGROUPED_GROUP={id:"*",isGroup:!0},this.MAX_DRAG_DISPLAY_COUNT=99,this.DRAG_COUNT_TRIGGER_MAX=3,this.PATH_VIEW_GROUP_SEPARATOR=" / ",this.nativeProxy=void 0,this.SYNC_NOTIFICATIONS_AVAILABLE=!1,this.APP_NAME="",this.SUPPORTED_PRODUCTS=[],this.currentProduct=void 0,this.SHARE_LINK_HOST_TYPE_PARAM="cclibrariespanel",this.LEARN_MORE_URL_ROOT="https://www.adobe.com/go/cclibraries_help",this.LIBRARY_MANAGEMENT_URL_ROOT="https://www.adobe.com/go/library-management",this.PATH_VIEW_URL_ROOT="https://www.adobe.com/go/learn-more-path-view",this.SERVICE_ERROR_URL_ROOT="https://www.adobe.com/go/process_error",this.INSTALL_CC_APP_URL_ROOT="https://www.adobe.com/go/cc_install",this.UPDATE_CC_APP_URL_ROOT="https://www.adobe.com/go/process_update",this.UPDATE_CC_LIBRARIES_URL_ROOT="https://www.adobe.com/go/panel_update",this.WHATS_NEW_URL_ROOT="https://www.adobe.com/go/cclibs-whats-new",this.STOCK_LICENSE_INFORMATION_URL_ROOT="https://www.adobe.com/go/stock-license-terms",this.FEEDBACK_URL_ROOT="https://www.adobe.com/go/libraries-feedback",this.TEAM_LIBRARIES_URL_ROOT="https://www.adobe.com/go/learn_more_team_libraries",this.BUSINESS_STORAGE_URL_ROOT="https://helpx.adobe.com/enterprise/using/libraries-in-business-storage.html",this.LEARN_MORE_QUOTA_URL_ROOT="https://www.adobe.com/go/learn_more_quota",this.LEARN_MORE_TEAMS_URL_ROOT="https://www.adobe.com/go/cclibraries_teams_learn_more",this.LEARN_MORE_COLLABORATION_URL_ROOT="https://www.adobe.com/go/creative-cloud-collaboration",this.OFFICE_INSTRUCTIONS_URL_ROOT="https://www.adobe.com/go/libraries-microsoft-add-in",this.DELETE_HELPX_ROOT="https://www.adobe.com/go/cc-delete-files",this.PUBLISH_LEARN_MORE_ROOT="https://www.adobe.com/go/brandspublishing",this.XD_UI_KITS_ROOT="http://www.adobe.com/go/xd_ui_kits_more",this.XD_MISSING_LINKS_ASK_FOR_ACCESS_LEARN_MORE="http://www.adobe.com/go/xd_missinglinks",this.XD_MIGRATE_TO_CCLIBRARIES_LEARN_MORE="http://www.adobe.com/go/xd_designsys_migration_libraries_learnmore",this.XD_GROUP_LEARN_MORE="https://www.adobe.com/go/xd_pt_pathview",this.LIBRARIES_VIEW_STATES={GRID:"grid",LIST:"list"},this.ELEMENTS_VIEW_STATES={GRID:"grid",LIST:"list"},this.AVAILABLE_HELP_LANGUAGES={ae:!0,br:!0,cn:!0,cz:!0,dk:!0,de:!0,en:!0,es:!0,fi:!0,fr:!0,hu:!0,il:!0,it:!0,jp:!0,mx:!0,kr:!0,no:!0,nl:!0,pl:!0,ru:!0,se:!0,tr:!0,tw:!0,ua:!0},this.DEFAULT_HELP_LANGUAGE="en",this.TEST_LOCALE="zz_ZZ",this.FLOODGATE_CLIENT_ID="CCXWeb1",this.FLOODGATE_URL="https://ZZZZ/fg/api/v3/feature",this.FLOODGATE_LIBRARIES_CLIENT_ID="CCLibraries",this.FLOODGATE_BRANDS_CLIENT_ID="unified_brand_service",this.ASSETS_WEB_SPECIALTY_LANGUAGE_MAP={"zh-CN":"zh-Hans","zh-TW":"zh-Hant"},this.CCWEB_ELEMENT_URL="https://ZZZZ/libraries/YYYY/XXXX",this.CCWEB_LIBRARIES_URL="https://ZZZZ/libraries/YYYY",this.CCWEB_LIBRARY_ARCHIVE_URL="https://ZZZZ/assets/libraries/YYYY?filter=archive",this.CCWEB_LIBRARIES_ARCHIVE_URL="https://ZZZZ/deleted",this.CCWEB_TEAM_LIBRARIES_URL="https://www.adobe.com/go/browse-more-libraries",this.CCWEB_BROWSE_ALL_URL="https://ZZZZ/more-libraries",this.CCWEB_MARKETPLACE_STAGE="https://stage.creativecloud.adobe.com/cc/libraries/?locale=ZZZZ",this.CCWEB_MARKETPLACE_PROD="https://creativecloud.adobe.com/cc/libraries/?locale=ZZZZ",this.EXPRESS_STAGE="https://stage.projectx.corp.adobe.com/your-stuff/ZZZZ/XXXX",this.EXPRESS_PROD="https://new.express.adobe.com/your-stuff/ZZZZ/XXXX",this.CCWEB_LIBRARIES_ROUTE_SELECTOR=/^\/(?:libraries|brands)[/]?([^/]+)?$/,this.ASSET_ID_SELECTOR=new RegExp("^urn:aaid:sc:([a-z]{2}.*):[a-z0-9]{8}-([a-z0-9]{4}-){3}[a-z0-9]{12}$","i"),this.LIBRARY_ID_SELECTOR=new RegExp("^[a-z0-9]{8}-([a-z0-9]{4}-){3}[a-z0-9]{12}$","i"),this.PUBLIC_LIBRARY_URL="https://ZZZZ/link/YYYY",this.CREATIVE_CLOUD_ID="creative_cloud",this.FIREFLY_RECIPE_TYPE="application/vnd.adobe.firefly-recipe+dcx",this.IMAGE_ELEMENT_TYPE="application/vnd.adobe.element.image+dcx",this.CHANNEL_ELEMENT_TYPE="application/vnd.adobe.element.channel+dcx",this.COLOR_ELEMENT_TYPE="application/vnd.adobe.element.color+dcx",this.COLOR_THEME_ELEMENT_TYPE="application/vnd.adobe.element.colortheme+dcx",this.BRUSH_ELEMENT_TYPE="application/vnd.adobe.element.brush+dcx",this.CHARACTER_STYLE_ELEMENT_TYPE="application/vnd.adobe.element.characterstyle+dcx",this.PARAGRAPH_STYLE_ELEMENT_TYPE="application/vnd.adobe.element.paragraphstyle+dcx",this.FONT_ELEMENT_TYPE="application/vnd.adobe.element.font+dcx",this.LAYER_STYLE_ELEMENT_TYPE="application/vnd.adobe.element.layerstyle+dcx",this.LOOK_ELEMENT_TYPE="application/vnd.adobe.element.look+dcx",this.CAPSULE_ELEMENT_TYPE="application/vnd.adobe.element.graphic+dcx",this.VIDEO_ELEMENT_TYPE="application/vnd.adobe.element.video+dcx",this.THREE_D_ELEMENT_TYPE="application/vnd.adobe.element.3d+dcx",this.LIGHT_ELEMENT_TYPE="application/vnd.adobe.element.light+dcx",this.MATERIAL_ELEMENT_TYPE="application/vnd.adobe.element.material+dcx",this.PATTERN_ELEMENT_TYPE="application/vnd.adobe.element.pattern+dcx",this.TEMPLATE_ELEMENT_TYPE="application/vnd.adobe.element.template+dcx",this.TEXT_ELEMENT_TYPE="application/vnd.adobe.element.text+dcx",this.ANIMATION_ELEMENT_TYPE="application/vnd.adobe.element.animation+dcx",this.LIBRARY_TYPE="application/vnd.adobe.library+dcx",this.GRADIENT_ELEMENT_TYPE="application/vnd.adobe.element.gradient+dcx",this.COMPONENT_ELEMENT_TYPE="application/vnd.adobe.element.component+dcx",this.AUDIO_ELEMENT_TYPE="application/vnd.adobe.element.audio+dcx",this.IMAGE_GUIDELINE_ELEMENT_TYPE="application/vnd.adobe.element.imageguideline+dcx",this.ROLE_TYPE_BRAND="brand",this.ROLE_LOGO="logo",this.ROLE_HEADER="header",this.ROLE_BODY="body",this.ROLE_PRIORITY_PRIMARY="primary",this.ROLE_PRIORITY_SECONDARY="secondary",this.FETCH_COLLABORATIONS_THROTTLE=18e5,this.FETCH_INVITATIONS_THROTTLE=3e5,this.FETCH_TEAM_LIBS_THROTTLE=18e4,this.IMAGE_THUMBNAIL_SIZE=202,this.LOOK_THUMBNAIL_SIZE=this.IMAGE_THUMBNAIL_SIZE,this.CAPSULE_THUMBNAIL_SIZE=this.IMAGE_THUMBNAIL_SIZE,this.VIDEO_THUMBNAIL_SIZE=this.IMAGE_THUMBNAIL_SIZE,this.THREE_D_THUMBNAIL_SIZE=this.IMAGE_THUMBNAIL_SIZE,this.LIGHT_THUMBNAIL_SIZE=this.IMAGE_THUMBNAIL_SIZE,this.MATERIAL_THUMBNAIL_SIZE=this.IMAGE_THUMBNAIL_SIZE,this.BRUSH_THUMBNAIL_SIZE=124,this.CHARACTER_STYLE_THUMBNAIL_SIZE=104,this.PARAGRAPH_STYLE_THUMBNAIL_SIZE=this.CHARACTER_STYLE_THUMBNAIL_SIZE,this.FONT_THUMBNAIL_SIZE=this.CHARACTER_STYLE_THUMBNAIL_SIZE,this.LAYER_STYLE_THUMBNAIL_SIZE=108,this.PATTERN_THUMBNAIL_SIZE=this.IMAGE_THUMBNAIL_SIZE,this.TEMPLATE_THUMBNAIL_SIZE=this.IMAGE_THUMBNAIL_SIZE,this.TEXT_THUMBNAIL_SIZE=this.IMAGE_THUMBNAIL_SIZE,this.ANIMATION_THUMBNAIL_SIZE=this.IMAGE_THUMBNAIL_SIZE,this.COMPONENT_THUMBNAIL_SIZE=this.IMAGE_THUMBNAIL_SIZE,this.AUDIO_THUMBNAIL_SIZE=this.IMAGE_THUMBNAIL_SIZE,this.LARGE_THUMBNAIL_SIZE=400,this.MAX_INPUT_STRING_LENGTH=248,this.MAX_REMAINING_CHARACTERS_LENGTH=50,this.GROUP_GRID_WIDTH=95,this.GROUP_GRID_HEIGHT=60,this.QUOTA_WARNING_THRESHOLD=70,this.BYTE_MULTIPLIER=1024,this.MEGABYTE_MULTIPLIER=1048576,this.WARN_EXTENDED_UPLOAD_TIME=3e4,this.GRID_MINIMUM_BREAKPOINT=290,this.GRID_VIEW_BREAKPOINT_SIZE=110,this.GRID_TYPE_LARGE="large",this.GRID_TYPE_MEDIUM="medium",this.GRID_TYPE_SMALL="small",this.GRID_TYPE_WIDE="wide",this.GRID_TYPE_WIDE_SET_HEIGHT=54,this.MAX_CONTEXT_MENU_WIDTH=200,this.GRID_VIEW_NAME_HEIGHT=16,this.EXPANDED_GRID_VIEW_NAME_HEIGHT=28,this.GRID_SIZE_TYPES=[this.GRID_TYPE_LARGE,this.GRID_TYPE_MEDIUM,this.GRID_TYPE_SMALL,this.GRID_TYPE_WIDE],this.ELEMENT_BACKGROUNDS={CHECKERED:"checkered",SOLID:"solid"},this.THUMBNAIL_RENDERER_DEBOUNCE=300,this.OPEN_SHARESHEET_TIMEOUT=1e4,this.MAX_LIBRARIES_ONBOARDING=3,this.SUBGROUP_INDENT_PERCENT=.15,this.MAX_SUBGROUP_INDENT=16,this.SHORT_FONT_PREVIEW_TEXT="Ag",this.DEFAULT_MAX_PREVIEW_FONT_SIZE=20,this.DEFAULT_MIN_PREVIEW_FONT_SIZE=11,this.DEFAULT_PREVIEW_FONT_SIZE=12,this.ONE_UP_ELEMENT_VIEW_MAX_PREVIEW_FONT_SIZE=60,this.LIST_VIEW_PREVIEW_FONT_SIZE=20,this.MOSAIC_VIEW_QUARTER_PREVIEW_FONT_SIZE=45,this.MOSAIC_VIEW_FULL_PREVIEW_FONT_SIZE=80,this.GRID_MEDIUM_PREVIEW_FONT_SIZE=27,this.GRID_LARGE_PREVIEW_FONT_SIZE=45,this.MANAGER_CEP_EVENTS={INIT:"com.adobe.cclibraries.manager.init",CLOSE:"com.adobe.csxs.events.ExtensionUnloaded",OPEN_DIALOG:"com.adobe.cclibraries.manager.openDialog"},this.RECENT_SEARCH_TIMER=3e3,this.STORED_RECENT_LIBRARIES_SEARCH_LIMIT=15,this.STORED_RECENT_STOCK_SEARCH_LIMIT=5,this.STORED_RECENT_SEARCH_DISPLAY_LIMIT=5,this.STORED_RECENT_SEARCH_LIBRARIES_KEY="libraries",this.STORED_RECENT_SEARCH_STOCK_KEY="stock",this.STOCK_NAMESPACE="adobestock",this.STOCK_DATA_KEY="trackingdata",this.STOCK_CLIENT_ID="AdobeStockClient2",this.STOCK_TARGET_SCOPE="AdobeID,openid,creative_cloud,creative_sdk,cc_private,gnav,sao.stock,additional_info.address.mail_to,additional_info.dob,read_organizations,read_pc.stock,read_pc.stock_credits,additional_info.roles,sao.cce_private,account_cluster.read",this.STOCK_GET_USER_PROFILE_PATH="/Rest/Libraries/1/Member/Profile?locale=ZZZZ&content_id=YYYY&license=LLLL&format=message_ccx",this.STOCK_LICENSE_PATH="/Rest/Libraries/1/Content/License?content_id=ZZZZ&license=LLLL",this.STOCK_METADATA_PATH="/Rest/Media/1/Files",this.STOCK_INFO_PATH="/Rest/Libraries/1/Content/Info?content_id=ZZZZ",this.STOCK_SEARCH_PATH="/Search",this.STOCK_SEARCH_API_PATH="/Rest/Media/1/Search/Files",this.STOCK_ABANDON_TRANSACTION_PATH="/Rest/Libraries/1/Member/Abandon?&state=ZZZZ&content_id=YYYY&license=LLLL",this.INVITATIONS_COLLABORATIONS_API_PATH="/api/v4/share",this.INVITATIONS_CAPABILITIES_API_PATH="/api/v4/capabilities",this.INVITATIONS_PENDING_API_PATH="/api/v4/invitations",this.INVITATIONS_ACCEPT_API_PATH="/api/v4/invitations/id",this.STOCK_LICENSE_TYPE_STANDARD="Standard",this.STOCK_LICENSE_TYPE_EXTENDED="Extended",this.STOCK_LICENSE_TYPE_SMALL="Standard_M",this.STOCK_IMAGE_LICENSE_TYPE_SMALL={label:"DL_STOCK_LICENSE_TYPE_SMALL",field:"Standard_M"},this.STOCK_IMAGE_LICENSE_TYPE_FULL={label:"DL_STOCK_LICENSE_TYPE_FULL",field:"Standard"},this.STOCK_IMAGE_LICENSE_TYPES=[this.STOCK_IMAGE_LICENSE_TYPE_FULL,this.STOCK_IMAGE_LICENSE_TYPE_SMALL],this.STOCK_VIDEO_LICENSE_TYPE_HD={label:"HD",field:"Video_HD"},this.STOCK_VIDEO_LICENSE_TYPE_4K={label:"4K",field:"Video_4K"},this.STOCK_VIDEO_LICENSE_TYPES=[this.STOCK_VIDEO_LICENSE_TYPE_4K,this.STOCK_VIDEO_LICENSE_TYPE_HD],this.STOCK_STATE_PURCHASED="purchased",this.STOCK_STATE_NOT_PURCHASED="not_purchased",this.STOCK_STATE_CANCELLED="cancelled",this.STOCK_SEARCH_RESULT_SIZE=50,this.NOTES_MAX_CHARACTER_COUNT=130,this.STOCK_SEARCH_TIMEOUT=3e4,this.STOCK_SIMILARITY_THUMBNAIL_SIZE=640,this.STOCK_SEARCH_OPTION_PHOTO={label:"DL_STOCK_SEARCH_OPTION_PHOTO",id:"photo",param:"photo"},this.STOCK_SEARCH_OPTION_ILLUSTRATION={label:"DL_STOCK_SEARCH_OPTION_ILLUSTRATION",id:"illustration",param:"illustration"},this.STOCK_SEARCH_OPTION_VECTOR={label:"DL_STOCK_SEARCH_OPTION_VECTOR",id:"vector",param:"vector"},this.STOCK_SEARCH_OPTION_VIDEO={label:"DL_STOCK_SEARCH_OPTION_VIDEO",id:"video",param:"video"},this.STOCK_SEARCH_OPTION_TEMPLATE={label:"DL_STOCK_SEARCH_OPTION_TEMPLATE",id:"template",param:"template"},this.STOCK_SEARCH_OPTION_3D={label:"DL_STOCK_SEARCH_OPTION_3D",id:"3d",param:"3d"},this.STOCK_SEARCH_SUB_FILTER_MODEL={label:"DL_TYPE_3D",id:"3d_1",param:"3d",filterKey:"3d_type_id",filterValue:1,isArray:!0},this.STOCK_SEARCH_SUB_FILTER_LIGHT={label:"DL_TYPE_LIGHT",id:"3d_2",param:"3d",filterKey:"3d_type_id",filterValue:2,isArray:!0},this.STOCK_SEARCH_SUB_FILTER_MATERIAL={label:"DL_TYPE_MATERIAL",id:"3d_3",param:"3d",filterKey:"3d_type_id",filterValue:3,isArray:!0},this.STOCK_SEARCH_OPTION_PREMIUM={label:"DL_STOCK_SEARCH_OPTION_PREMIUM",id:"premium",filterKey:"premium",filterValue:"true"},this.STOCK_SEARCH_OPTIONS=[this.STOCK_SEARCH_OPTION_PHOTO,this.STOCK_SEARCH_OPTION_ILLUSTRATION,this.STOCK_SEARCH_OPTION_VECTOR,this.STOCK_SEARCH_OPTION_VIDEO,this.STOCK_SEARCH_OPTION_TEMPLATE,this.STOCK_SEARCH_OPTION_3D,this.STOCK_SEARCH_OPTION_PREMIUM,this.STOCK_SEARCH_SUB_FILTER_MODEL,this.STOCK_SEARCH_SUB_FILTER_LIGHT,this.STOCK_SEARCH_SUB_FILTER_MATERIAL],this.STOCK_SEARCH_UI_OPTIONS=[this.STOCK_SEARCH_OPTION_PHOTO,this.STOCK_SEARCH_OPTION_ILLUSTRATION,this.STOCK_SEARCH_OPTION_VECTOR,this.STOCK_SEARCH_OPTION_VIDEO,this.STOCK_SEARCH_OPTION_TEMPLATE,this.STOCK_SEARCH_OPTION_3D,this.STOCK_SEARCH_OPTION_PREMIUM],this.STOCK_SEARCH_PRODUCT_TEMPLATE_ID_MAP={PHXS:[1],ILST:[2],IDSN:[3],PPRO:[5]},this.STOCK_SEARCH_PRODUCT_MOGRT_VERSION_MAP={PPRO:{"13.1.0":"1.5","13.0.0":"1.4","12.0.0":"1.3"}},this.STOCK_CORE_CONTENT_LEVEL_ID=0,this.STOCK_FREE_CONTENT_LEVEL_ID=1,this.STOCK_PREMIUM_CONTENT_LEVEL_IDS=[2,3,4],this.STOCK_TEMPLATES_SUPPORTED_PRODUCTS=["PHXS","PHXS_UXP","ILST","IDSN","PPRO","KBRG"],this.AGC_REPRESENTATION_TYPE="application/vnd.adobe.element.agc+json",this.NXD_REPRESENTATION_TYPE="application/vnd.adobe.element.nxd+json",this.COLOR_NAMESPACE="color",this.COLOR_DATA_KEY="data",this.COLOR_REPRESENTATION_TYPE="application/vnd.adobe.color+json",this.DEFAULT_SRGB_PROFILE="sRGB IEC61966-2.1",this.COLOR_THEME_DATA_KEY="data",this.COLOR_THEME_NAMESPACE="colortheme",this.COLOR_THEME_REPRESENTATION_TYPE="application/vnd.adobe.colortheme+json",this.GRADIENT_NAMESPACE="gradient",this.GRADIENT_DATA_KEY="data",this.GRADIENT_REPRESENTATION_TYPE="application/vnd.adobe.gradient+json",this.CHARACTER_STYLE_REPRESENTATION="application/vnd.adobe.characterstyle+json",this.PATTERN_NAMESPACE="pattern",this.PATTERN_DATA_KEY="data",this.FONT_NAMESPACE="font",this.FONT_DATA_KEY="data",this.FONT_REPRESENTATION_TYPE="application/vnd.adobe.font+json",this.THREE_D_NAMESPACE="3d",this.THREE_D_DATA_KEY="data",this.TEXT_REPRESENTATION_ID_SNIPPET_TYPE="application/vnd.adobe.indesign-idms-text",this.TEXT_REPRESENTATION_JSON_TYPE="application/vnd.adobe.text+json",this.TEXT_NAMESPACE="text",this.TEXT_DATA_KEY="data",this.CAPSULE_DEFINITION_REPRESENTATION_TYPE="application/vnd.adobe.graphic+json",this.CAPSULE_NAMESPACE="graphic",this.CAPSULE_DATA_KEY="data",this.VIDEO_NAMESPACE="video",this.AUDIO_NAMESPACE="audio",this.PUBLIC_LINK_CLIENT_ID="CCXPublicLinks1",this.PUBLIC_LINK_TARGET_SCOPE="AdobeID,openid,gnav,sao.cce_private,sao.ccprivate,creative_cloud,sao.ccpublish,additional_info.roles",this.LIBRARY_SNAPSHOT_EXTENSION="cclibs",this.LIBRARY_CLOUD_EXTENSION="cclibc",this.LIBRARY_ALLOWED_EXTENSIONS=[this.LIBRARY_SNAPSHOT_EXTENSION,this.LIBRARY_CLOUD_EXTENSION],this.NATIVE_DROP_ALLOWED_FILE_EXTENSIONS=["ai","png","bmp","psd","svg","gif","jpg","jpeg","tif","tiff","pdf","heic","heif","dng","psdt","ait","indt","fla","mp4","mov","wmv","mpeg","mpg","wav","aac","mp3","mp2","m4a","aiff","aif","aifc","mdl","sbsar","glb","gltf","obj","dn","usdz","ibl","fbx","exr","hdr",this.LIBRARY_SNAPSHOT_EXTENSION,this.LIBRARY_CLOUD_EXTENSION],this.NATIVE_DROP_FILES_SLOW_PERFORMANCE_THRESHOLD=500,this.NATIVE_DROP_MAX_FILE_COUNT=1e3,this.DEFAULT_ELEMENTS_PER_CATEGORY=50,this.SHOW_MORE_STAGGER_INTERVAL=3,this.THEME_COLOR_CHANGED_EVENT="com.adobe.csxs.events.ThemeColorChanged",this.THEME_COLOR_CHANGED_EVENT_UXP="themechanged",this.CONTEXT_MENUS_ENABLED=!0,this.IS_APP_IN_TOUCH_MODE=!1,this.RECENTS_LIST_LIMIT=5,this.RECENTS_LIST_LIBRARY_MIN=8,this.RECENT_LIBRARY_ID_FLAG="-recent",this.DEFAULT_TOAST_TIMEOUT=3e3,this.UNDO_TOAST_TIMEOUT=5e3,this.TOAST_FADEOUT=500,this.IMPORT_EXPORT_DEFAULT_FOLDER="CC Library",this.SLOW_COPY_MOVE_THRESHOLD=200,this.CONTRAST_THRESHOLD=10,this.MAX_ONEUP_ELEMENT_CONTEXT_MENU_ITEMS=30,this.SELECTION_CHANGE_THROTTLE=100,this.AUTO_SCROLL_GROUP_SELECT_DEBOUNCE=300,this.WINDOW_RESIZE_DEBOUNCE=200,this.ANALYTICS_PROJECT="cclib-panel",this.ANALYTICS_INGEST_TYPE="dunamis",this.ANALYTICS_MAX_QUEUED_EVENTS=50,this.ANALYTICS_DEBOUNCE=15e3,this.DISABLE_CREATE_ELEMENT_METRIC_OPTYPES=["publish"],this.GROUPS_TREE_CACHE_KEEPALIVE_TIME=3e5,this.THUMBNAIL_CACHE_KEEPALIVE_TIME=3e5,this.AUTO_GROUPS_ORDER=["DL_AUTOGROUP_COLORS","DL_AUTOGROUP_TYPOGRAPHY","DL_AUTOGROUP_STYLES","DL_AUTOGROUP_BRUSHES","DL_AUTOGROUP_VECTORS","DL_AUTOGROUP_IMAGES","DL_AUTOGROUP_MOTION","DL_AUTOGROUP_3D","DL_AUTOGROUP_TEMPLATES","DL_AUTOGROUP_UNKNOWN"],this.EXPORTABLE_ELEMENT_TYPES=[this.IMAGE_ELEMENT_TYPE,this.ANIMATION_ELEMENT_TYPE,this.VIDEO_ELEMENT_TYPE,this.THREE_D_ELEMENT_TYPE,this.AUDIO_ELEMENT_TYPE],this.DRAGOUT_ELEMENT_TYPES=[this.ANIMATION_ELEMENT_TYPE,this.IMAGE_ELEMENT_TYPE,this.TEMPLATE_ELEMENT_TYPE,this.VIDEO_ELEMENT_TYPE,this.THREE_D_ELEMENT_TYPE],this.TOOLKIT_TYPES=["photoshop_swatches","photoshop_brushes","photoshop_gradients","photoshop_patterns","photoshop_styles","photoshop_shapes"],this.WINDOWS_RESERVED_NAMES=["CON","PRN","AUX","NUL","COM1","COM2","COM3","COM4","COM5","COM6","COM7","COM8","COM9","LPT1","LPT2","LPT3","LPT4","LPT5","LPT6","LPT7","LPT8","LPT9"],this.RENAME_STATES={VALID:"VALID",SLASH_ELEMENT:"SLASH_ELEMENT",SLASH_GROUP:"SLASH_GROUP",INVALID_CHARACTER:"INVALID_CHARACTER",INVALID_LIBRARY_PERIOD:"INVALID_LIBRARY_PERIOD",INVALID_LIBRARY_LENGTH:"INVALID_LIBRARY_LENGTH",DUPLICATE_LIBRARY:"DUPLICATE_LIBRARY",DUPLICATE_GROUP:"DUPLICATE_GROUP"},this.RENAME_STATE_ERROR_MESSAGES={[`${this.RENAME_STATES.SLASH_ELEMENT}`]:"DL_EDIT_NAME_INVALID_SLASH",[`${this.RENAME_STATES.SLASH_GROUP}`]:this.currentProduct&&this.currentProduct.config.invalidGroupNameSlashMessage||"DL_GROUP_NAME_INVALID_SLASHES",[`${this.RENAME_STATES.INVALID_CHARACTER}`]:"DL_LIBRARY_NAME_INVALID",[`${this.RENAME_STATES.DUPLICATE_LIBRARY}`]:"DL_LIBRARY_NAME_DUPLICATE",[`${this.RENAME_STATES.INVALID_LIBRARY_LENGTH}`]:"DL_LIBRARY_NAME_REMAINING_CHARACTERS",[`${this.RENAME_STATES.INVALID_LIBRARY_PERIOD}`]:"DL_LIBRARY_NAME_PERIOD_END",[`${this.RENAME_STATES.DUPLICATE_GROUP}`]:"DL_GROUP_NAME_DUPLICATE"},this.ASSET_LINK_STATES={NORMAL:"NORMAL",PENDING_UPDATE:"PENDING_UPDATE",MISSING_ELEMENT:"MISSING_ELEMENT",MISSING_LIBRARY:"MISSING_LIBRARY",NEED_TO_FOLLOW:"NEED_TO_FOLLOW",SYNCING:"SYNCING",PENDING_INVITE:"PENDING_INVITE",BROKEN:"BROKEN",FILE_MISSING:"FILE_MISSING"},this.XD_ASSET_LINK_REFERENCE_TYPES={CCLIBRARIES_ELEMENT:"CCLIBRARIES_ELEMENT",LEGACY_CCLIBRARIES_ELEMENT:"LEGACY_CCLIBRARIES_ELEMENT",LEGACY_DOCUMENT_ASSET:"LEGACY_DOCUMENT_ASSET",LEGACY_CLOUD_DOCUMENT_ASSET:"LEGACY_CLOUD_DOCUMENT_ASSET"},this.SAM_LINK_STATES={NORMAL:"UpToDate",PENDING_METADATA_UPDATE:"MetadataOutOfDate",PENDING_UPDATE:"OutOfDate",RESTRICTED:"Restricted",DISCARDED:"Discarded",BROKEN:"Broken"},this.SAM_PERMISSIONS={READ:"Read",WRITE:"Write",DELETE:"Delete",SHARE:"Share",MOVE:"Move",RENAME:"Rename",ALL:"All",ACK:"Ack",NONE:"None",EDIT:"Edit",VIEW:"View"},this.SAM_LEGACY_PERMISSIONS_MAP={Edit:this.SAM_PERMISSIONS.WRITE,View:this.SAM_PERMISSIONS.READ},this.DOCUMENT_LIBRARY_STATES={LOADING:"LOADING",NOT_PUBLISHED:"NOT_PUBLISHED",PUBLISHED:"PUBLISHED",PUBLISHING:"PUBLISHING",COEDITOR_PUBLISHING:"COEDITOR_PUBLISHING",UNPUBLISHED_CHANGES:"UNPUBLISHED_CHANGES",NOT_FOUND:"NOT_FOUND"},this.DOCUMENT_ASSETS_MESSAGES={RECEIVE_ASSETS:"ccac.dap.in.notify.assets",RECEIVE_CONFIG:"ccac.dap.in.notify.config",SEND_UPDATE:"ccac.dap.out.notify.update"},this.LIBRARIES_MESSAGES={APPLY_ELEMENTS:"ccac.libraries.out.request.apply",REQUEST_ACTION:"ccac.libraries.out.request.action",SEND_UPDATE:"ccac.libraries.out.notify.update",RECEIVE_UPDATE:"ccac.libraries.in.request.update",RECEIVE_ACTION:"ccac.libraries.in.request.action"},this.CCX_ACTIONS={OPEN_PICKER:"openPicker",OPEN_SHARE_SHEET:"openShareSheet",OPEN_TEMPLATE_PREVIEW:"openPreview"},this.DISABLED_PUBLISH_STATES={OFFLINE:"OFFLINE",READ_ONLY:"READ_ONLY",QUOTA:"QUOTA",EMPTY:"EMPTY",MISSING_STORAGE:"MISSING_STORAGE",UPGRADE:"UPGRADE",COEDITOR_PUBLISHING:"COEDITOR_PUBLISHING",MAX_ELEMENTS:"MAX_ELEMENTS"},this.ELEMENT_CHANGE_TYPE={CONTENT:"CONTENT",GROUP:"GROUP"},this.GROUP_CHANGE_TYPE={CONTENT:"CONTENT",GROUP:"GROUP"},this.VIEW_BY_GROUP_MODES={TREE:"tree",PATH:"path"},this.VIEW_BY_MODES={TYPE:"type",GROUP:"group"},this.LIBRARY_CONTENTS_VIEW_TABS={ELEMENTS:"elements",PREVIEW:"preview"},this.BRANDS_FILTER_OPTIONS=Object.freeze({ALL:"all",CREATED:"created",DRAFTS:"drafts",PUBLISHED:"published"}),this.BRANDS_SORT_OPTIONS=Object.freeze({MODIFIED:"modified",CREATED:"created",NAME:"name"}),this.MAX_ASSET_UPDATE_COUNT=99,this.ELEMENT_VIEW_MODES=["grid","list","thumbnail","thumbnail-large"],this.DISPLAY_TIME_PER_CHARACTER={"en-US":50,"ja-JP":75,"ko-KR":100,"zh-CN":150,"zh-TW":150},this.PREFERRED_EXPORT_TYPES={"image/vnd.adobe.shape+svg":["image/svg+xml"]},this.DEFAULT_SELECT_TARGET_POPOVER_WIDTH=200,this.DEFAULT_SELECT_TARGET_POPOVER_HEIGHT=226,this.COPYMOVE_TL_DROPDOWN_MAXHEIGHT=80,this.MAX_COLLABORATORS=15,this.TOOLTIP_MAX_WIDTH=190,this.MIN_CEP_VULCAN_7_VERSION=11.5,this.PROGRESS_LOG={PUBLISHING:"Publishing",COEDITOR_PUBLISHING:"Coeditor Publishing"},this.CONSTANT_KEY_IDS=["*","autocomplete"],this.SPECTRUM_ICONS_MAP={SyncDefault:"Cloud",LinkedLibrary:"Link",ChevronLeftMedium:"ChevronLeft",ChevronDownSmall:"ChevronDown",ChevronRightSmall:"ChevronRight"}}get LIST_VIEW_ELEMENT_HEIGHT(){return this.currentProduct.config.listViewElementHeight||44}get LIST_VIEW_ELEMENT_THUMBNAIL_HEIGHT(){return this.LIST_VIEW_ELEMENT_HEIGHT-8}get SCROLLBAR_WIDTH(){var e,t,r;return null!==(e=null===(t=(r=this.currentProduct.config).getScrollBarPadding)||void 0===t?void 0:t.call(r))&&void 0!==e?e:16}initApplication(e,t){this.APP_NAME=e,this.SUPPORTED_PRODUCTS=t.map((e=>e.config)),this.currentProduct=t.find((t=>t.config.code===e))}getElementType(e){return"application/vnd.adobe.element."+e+"+dcx"}}},47320:(e,t,r)=>{"use strict";r.d(t,{Z:()=>E});var n=r(4784),i=r(31870),o=r(34038),a=r(62061),s=r(46903),c=r(68895),l=r(16993),u=r(17179),d=r(84824),p=r(76485),h=r(99386),f=r(69233),m=r(73306),g=r(77560),v=r(75067),y=r(53849),b=r(51461),_=r(29219);const E=new class{_getConfiguration(e){if(!this._configurations)throw"Error: element configuration is not initialized.";return this._configurations[e]||this._configurations["*"]}init(e=[]){if(this._configurations)throw"Error: Can only register element type configurations once.";this._configurations={},this._elementTypes=[],e.forEach((e=>{const t=new e(this),r=t&&t.type;if(!(t instanceof m.Z))throw`Error: Element type configuration ${t.constructor.name} is not an instance of BaseElementConfig.`;if(this._configurations[r])throw`Error: Attempting to register element type ${r} more than once.`;this._configurations[r]=t,this._elementTypes.push(r)}));const t=Object.keys(g.Z).map((e=>(new g.Z[e]).type));t.forEach((e=>{if(!this._elementTypes.includes(e))throw`No configuration for element type ${e} - you must provide a configuration.`})),this._elementTypes.forEach((e=>{if(!t.includes(e))throw`Unexpected element type ${e} - no default configuration exists.`}))}getElementTypes(){return this._elementTypes}getElementRole(e){var t;if(null==e||null===(t=e.roles)||void 0===t||!t.length)return;const r=e.roles.find((e=>e.type===h.Z.currentProduct.config.roleType));return null==r?void 0:r.usage}getElementPriority(e){var t;if(null==e||null===(t=e.roles)||void 0===t||!t.length)return;const r=e.roles.find((e=>e.type===h.Z.currentProduct.config.roleType));return null==r?void 0:r.priority}getThumbnailSizes(){const e={};return this.getElementTypes().forEach((t=>{const r=this._getConfiguration(t);r.thumbnailSize&&(e[t]=[r.thumbnailSize])})),e}getFullRenditionConfig(){const e={};return this.getElementTypes().forEach((t=>{const r=this._getConfiguration(t);r.fullRenditionConfig&&(e[t]=r.fullRenditionConfig())})),e}getComponent(e){return this._getConfiguration(e).component}getCustomRenderer(e){return this._getConfiguration(e.type).getCustomRenderer(e)}getInfoControlComponent(e){return this._getConfiguration(e.type).getInfoControlComponent(e)}getStockComponent(e){return this._getConfiguration(e).stockComponent}getGridSizeByType(e){return h.Z.currentProduct.config.uniformElementSize?l.Z.gridZoomFactor:this._getConfiguration(e).gridSizeType}getElementSearchFunction(e){const t=this._getConfiguration(e);return t._elementSearchFunctionClosure||(t._elementSearchFunctionClosure=t.search.bind(t)),t._elementSearchFunctionClosure}getTypeName(e,t=!1){return this._getConfiguration(e)[t?"typeNameSingular":"typeName"]}getShortType(e=""){const t=this._getConfiguration(e).type.match(/application\/vnd\.adobe\.element\.(.*)\+dcx/);return t?t[1]:"unsupported"}isStockAssetDraggable(e){return this._getConfiguration(e).isStockAssetDraggable()}isStockMultiLicense(e,t,r){return this._getConfiguration(e).isStockMultiLicense(t,r)}getStockCompKeyForLicenseType(e,t){return this._getConfiguration(e).getStockCompKeyForLicenseType(t)}getAutoGroupName(e){return this._getConfiguration(e.type).getAutoGroupName(e)}allowBlankName(e){return e&&!0===this._getConfiguration(e.type).allowBlankName}getThumbnailSize(e){return e&&this._getConfiguration(e.type).thumbnailSize}getLocalThumbnailURL(e,t=!1){var r;const n=this._getConfiguration(e.type),i=t?h.Z.LARGE_THUMBNAIL_SIZE:(null===(r=n.getThumbnailSize)||void 0===r?void 0:r.call(n,e))||n.thumbnailSize;return h.Z.currentProduct.config.usesThumbnailDataURLs?e.getThumbnailContent(i).then(_.n5):p.Z.supportsFileURLs?e.getThumbnailPath(i).then((e=>e&&`file://${e}`)):Promise.resolve(e.getThumbnailURL(i))}getBadgeText(e){return this._getConfiguration(e.type).getBadgeText(e)}getCustomPanelInfoPrimaryProperties(e){return this._getConfiguration(e.type).getCustomPanelInfoPrimaryProperties(e)}getCustomPanelInfoSubProperties(e){return this._getConfiguration(e.type).getCustomPanelInfoSubProperties(e)}getCustomServiceProperties(e){return this._getConfiguration(e.type).getCustomServiceProperties(e)}getExtension(e){return this._getConfiguration(e.type).getExtension(e)}getApplyOperations(e,t,r){const n=this._getConfiguration(r||e.type),i={index:1,length:1,uuid:o.Rl()};return n.getApplyOperations(e,t,i)}getMultiApplyOperations(e=[]){if(1===e.length)return this.getApplyOperations(e[0]);const t=o.Rl();if(0===e.length||!e.every((t=>t.type===e[0].type)))return[];const r={};e.forEach(((n,i)=>{const o=this._getConfiguration(n.type),a={index:i+1,length:e.length,uuid:t};o.getApplyOperations(n,void 0,a).filter((e=>e.allowMultiple)).forEach((e=>{r[e.name]?r[e.name].apply.push(e.apply):(e.apply=[e.apply],r[e.name]=e)}))}));const n=Object.keys(r).map((e=>r[e])).filter((t=>t.apply.length===e.length));return n.forEach((e=>{const t=e.apply;e.apply=()=>t.map((e=>e()))})),n}getOnClickApplyOperation(e,t){const r=this.getApplyOperations(e,t);return r.reverse(),r.find((e=>e.onClick))}getOnEditApplyOperation(e,t){const r=this.getApplyOperations(e,t);return r.reverse(),r.find((e=>e.onEditItem))}editElement(e){const t=this.getOnEditApplyOperation(e);if(t)return void t.apply();const r=this.getEditOperations(e),n=r.find((e=>e.onEditItem)),i=r.find((e=>e.onEditItem&&!e.disabled));n&&(0,s.ix)(e)&&(this.isDownloadInProgress(e)?p.Z.showError((0,d.Iu)("DL_ERROR_EDIT_ELEMENT_DOWNLOADING")):null==i||i.apply())}getEditOperations(e){const t=this._getConfiguration(e.type),r=(e,t)=>{b.ZP.reportElementEvent("Element Operations","Element","click",e,t,{event:{value:"single",count:1},content:{category:"Right Click"}})};if(e.isLegacyDocumentLink){const n=e.isDeprecatedLegacyDocumentLink,i=n?t.publishToLibraryLabel:"DL_EDIT_IN_SOURCE",o=n?"publish-to-source-library":"edit-in-source-document";return[{name:i,disabled:e.isLinked&&e.isMissingLink,apply:()=>{r(o,e),(0,c.Fb)(e)},onEditItem:!0}]}if((0,c.EZ)(e))return[{name:t.editInSourceLabel||"DL_EDIT_IN_SOURCE",disabled:e.isLinked&&e.isMissingLink,apply:()=>{r(t.editInSourceLabel?"edit-in-source-document":"view-in-source-document",e),(0,c.Fb)(e)},onEditItem:!0}];if(e.isLinked){const t=v.ZP.resolveCachedElementReference(e.linkReference);return t?[{name:"DL_REVEAL_LINKED_ITEM",apply:()=>{r("reveal-in-library",e),v.ZP.setLibraryActiveState(t.library,!0),y.Z.revealElement(t)}}]:[]}return t.defaultEditOperation||(0,c.tw)(e)?[{name:t.editItemLabel||"DL_EDIT_ITEM",disabled:!this.isEditable(e,!0),apply:()=>{if(t.defaultEditOperation)return Promise.resolve(t.defaultEditOperation(e)).then((t=>{!1===t&&(0,c.VH)(e,this.isEditable(e,!0,!0))}));(0,c.VH)(e)},onEditItem:!0}]:[]}isDisabled(e){const t=this._getConfiguration(e.type).isDisabled(e)||!e.isCommitted&&!e.library.isDocumentAssets;return!h.Z.currentProduct.config.enableUnusableElements&&t}isThumbnailTiled(e){return this._getConfiguration(e.type).isThumbnailTiled}showCheckeredBackground(e){return this._getConfiguration(e.type).showCheckeredBackground}isEditable(e,t=!1,r=!1){const n=e.getPrimaryRepresentation();if(!n||!l.Z.isLibraryWritable(e.library,!1,!0))return!1;const i=o.PX(e.type);let a=this.isRepresentationCompatible(n,i,r);return t&&!a&&(a=(0,c.tw)(e)),!a&&h.Z.currentProduct.config.isElementEditable&&(a=h.Z.currentProduct.config.isElementEditable(e)),a}getAddOperations(e,t){return t&&!n.Z.canAddElements(t)?[]:this.getElementTypes().map((t=>{const r=this._getConfiguration(t).getAddOperations(e);return r.forEach((e=>e.type=t)),r})).reduce(((e,t)=>e.concat(t)),[])}getOpenPickerOperation(e){return this._getConfiguration(e).openPicker}openElementPreview(e){this._getConfiguration(e.type).openPreview(e)}getTooltipData(e,t){const r=this._getConfiguration(e.type);if(t)return r.getAdditionalTooltipData(e,t);const n=i.Jw(e),c=e.getPrimaryRepresentation()||{},l=c&&o.i_(e.type,c.type),u=e.getGroups()[0],p={name:(0,s.vo)(e),group:u&&(0,f.DB)(u),isStockAsset:n,stockId:n?i.wq(e):void 0,isLicensed:n?i.kv(e):void 0,createdIn:l&&l.createdIn,representationType:l&&(l.displayName?(0,d.Iu)(l.displayName):l.badge),filesize:c.contentLength&&a.d3(c.contentLength),dimensions:c.width&&c.height&&a.Ny(c.width,c.height),description:e.description,isDisabled:this.isDisabled(e)};Object.assign(p,r.getAdditionalTooltipData(e,t));for(var h=0,m=Object.keys(p);h<m.length;h++){const e=m[h];void 0===p[e]&&delete p[e]}return p}getTooltipContent(e,t){if(!e)return;const r=this._getConfiguration(e.type);let n=this.getTooltipData(e,t);if(h.Z.currentProduct.config.enabledElementTooltipData){const e={};h.Z.currentProduct.config.enabledElementTooltipData.forEach((t=>{e[t]=n[t]})),n=e}const i=r.formatTooltipContent(n).filter((e=>e)),o=[];return l.Z.isLibrariesSearchMode()&&o.push((0,d.Iu)("DL_ITEM_LIBRARY_TOOLTIP",{libraryName:e.library.name})),o.length>0&&(i.push({divider:!0}),i.push.apply(i,o)),i}getDragData(e,t=!0,r){const n=this._getConfiguration(r||e.type);let o={name:e.name,libraryName:e.library.name,type:n.dragType||e.type,elementRef:e.getLegacyReference(),modifiedTime:(0,s.RW)(e),creationTime:e.created};if(i.Jw(e)&&(o.adobeStock={id:i.wq(e),license:i.kv(e),premiumLevel:i.Tw(e)}),t){const t=n.getDragData(e);if(!t)return;o=Object.assign(o,t)}return o}getStockDragData(e,t,r){const n=e.type;if(!this.isStockAssetDraggable(n))return{};const i=this._getConfiguration(n),o=this.getDragData(e,!1),a=i.getStockDragData(t,r);return o.data=a,o}setStockMetadata(e,t){this._getConfiguration(e.element.type).setStockMetadata(e,t)}isRepresentationCompatible(e,t,r=!1){if(!e)return!1;if(!r&&e.isExternalLink){if(e.getCachedExternalLinkError())return!1;if(!1!==this._getConfiguration(e.element.type).autoDownloadExternalLinks&&!e.getCachedContentPath())return!1}return t.some((t=>e.isCompatibleType(t)))}findUsableRepresentation(e,t,r=!1){t=t||o.ku(e.type),t=Array.isArray(t)?t:[t];const n=e.getPrimaryRepresentation();return n&&this.isRepresentationCompatible(n,t,r)?n:e.representations.find((e=>this.isRepresentationCompatible(e,t,r)))}getEmbeddedData(e){return e?this._getConfiguration(e.type).getEmbeddedData(e):{}}isDownloadInProgress(e){const t=e.getPrimaryRepresentation();if(t&&t.isExternalLink){if(t.getCachedExternalLinkError())return!1;if(!1!==this._getConfiguration(e.type).autoDownloadExternalLinks&&!t.getCachedContentPath())return!0}return!1}groupElementsByType(e,t,r=!1){const n="modified"===t?e=>u.Z.sortByModified(e):e=>u.Z.sortByName(e),i=h.Z.currentProduct.config.elementRolesInViewByRole,o={};this.getElementTypes().forEach((e=>o[e]={type:e,children:[]}));const a="role"===l.Z.viewByState,s={};a&&i.forEach((e=>s[e]={type:e,isRole:!0,children:[]})),e.forEach((e=>{var t;const r=(null===(t=e.roles)||void 0===t?void 0:t.length)>0&&this.getElementRole(e);if(a&&r&&i.includes(r))s[r]=s[r]||{type:r,isRole:!0,children:[]},s[r].children.push(e);else{const t=o[e.type]?e.type:"*";o[t].children.push(e)}}));let c=Object.keys(o).map((e=>o[e]));return a&&(c=Object.keys(s).map((e=>s[e])).concat(c)),c.forEach((e=>{const t=n(e.children);return r?t.reverse():t})),c}groupElementsByCustomGroup(e,t,r,n){return(0,f.Oi)(e,t,{maxDepth:r,sortBy:n,includeEmpty:!1}).root.children}groupElementsByTopLevelGroup(e,t,r){const n=h.Z.currentProduct.config.allowNestedGroupFiltering?0:1,i=(0,f.Oi)(e,t,{maxDepth:n,sortBy:r}).root,o=e=>{const t=[];return e.children.forEach((e=>{e.item.isGroup?t.push(...o(e)):t.push(e)})),t};return i.children.forEach((e=>{e.children=o(e)})),i.children}groupElementsByTime(e,t){const r={};e.forEach((e=>{const n=6e4*Math.round(e[t]/6e4);r[n]=r[n]||{time:n,children:[]},r[n].children.push(e)}));const n=Object.keys(r).map((e=>r[e]));return n.sort(((e,t)=>t.time-e.time)),n.forEach((e=>u.Z.sortByName(e.children))),n}getAdditionalElementDetails(e){return this._getConfiguration(e.type).getAdditionalElementDetails(e)}getGridElementDetails(e,t){const r=this._getConfiguration(t.type).getGridElementDetails(e,t);return h.Z.currentProduct.config.enableUppercaseGridDetails?r.toLocaleUpperCase(p.Z.getLocale()):r}canFindSimilar(e){return this._getConfiguration(e.type).canFindSimilar(e)}getAdditionalClasses(e){return this._getConfiguration(e.type).getAdditionalClasses(e)}getBackupThumbnail(e,t){return this._getConfiguration(e.type).getBackupThumbnail(e,t)}getReplaceableExtensions(e){return this._getConfiguration(e.type).getReplaceableExtensions(e)}getRepresentationForExport(e){const t=e.getPrimaryRepresentation(),r=h.Z.PREFERRED_EXPORT_TYPES[t.type]||[t.type];return this.findUsableRepresentation(e,r)}}},71923:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(99386),i=r(34038),o=r(73306),a=r(46903),s=r(87694),c=r(86357);class l extends o.Z{constructor(...e){super(...e),this.type=n.Z.ANIMATION_ELEMENT_TYPE,this.typeName="DL_TYPE_ANIMATION",this.typeNameSingular="DL_TYPE_ANIMATION_SINGULAR",this.thumbnailSize=n.Z.ANIMATION_THUMBNAIL_SIZE,this.dragType="animation",this.component=c.Z,this.allowDragWithoutUsableRepresentation=!0}getAutoGroupName(){return"DL_AUTOGROUP_MOTION"}fullRenditionConfig(){const e=i.ku(this.type);return 0===e.length?[]:[{id:n.Z.currentProduct.config.code,condition:"IF_NO_MATCHING_REPRESENTATION",types:e}]}getBadgeText(e){return(0,a.Q1)(e)}getExtension(e){return(0,a.VI)(e)}getCustomPanelInfoSubProperties(e){return(0,s.zw)(e,[s.IS.dimensions])}}},70232:(e,t,r)=>{"use strict";r.d(t,{Z:()=>L});var n,i,o=r(99386),a=r(73306),s=r(62061),c=r(34038),l=r(46903),u=r(89526),d=r(62631),p=r(49004),h=r(18135);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},g.apply(this,arguments)}let v=(0,d.Pi)(((i=class extends u.Component{render(){return u.createElement(p.Z,g({"data-test-id":"audio-view"},this.props))}}).defaultProps={viewMode:"grid"},i.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},h.Z.propTypes),n=i))||n;var y=r(84824),b=r(64403),_=r.n(b),E=r(31870),w=r(89526);const x=r(90305);class L extends a.Z{constructor(...e){super(...e),this.type=o.Z.AUDIO_ELEMENT_TYPE,this.typeName="DL_TYPE_AUDIO",this.typeNameSingular="DL_TYPE_AUDIO_SINGULAR",this.thumbnailSize=o.Z.AUDIO_THUMBNAIL_SIZE,this.autoDownloadExternalLinks=!0,this.component=v}getAutoGroupName(){return"DL_AUTOGROUP_MOTION"}getDragData(e){if(!E.Jw(e))return super.getDragData(e);const t=c.ku(e.type),r=e.representations.filter((e=>this._config.isRepresentationCompatible(e,t))),n=r.map((e=>({contentType:e.type,url:e.getContentURL(),contentLength:e.contentLength})));return n.length>0?{data:n,usedRepresentationForAnalytics:r[0]}:void 0}getExtension(e){return(0,l.VI)(e)}getAdditionalTooltipData(e){const t={},r=e.getPrimaryRepresentation(),n=this._config.findUsableRepresentation(e),i=n||r;n||(t.disabledMessage=`DL_ERROR_UNSUPPORTED_${o.Z.currentProduct.config.translationSuffix}`);const a=i&&i.getValue("audio","data")||{},c=E.Xz(i)||{};return i&&(i.contentLength&&(t.filesize=s.d3(i.contentLength)),a.duration&&(t.duration=s.zW(a.duration)),c.artist&&(t.artist=c.artist),a.tempo&&(t.tempo=s.ME(a.tempo))),t}formatTooltipContent(e){const t=e.name,r=e.group,n=e.duration,i=e.tempo,o=e.artist,a=e.filesize,s=e.disabledMessage,c=e.isStockAsset,l=e.stockId,u=e.isLicensed,d=e.description;return[t,r,n,i,o,a,s&&(0,y.Iu)(s),c&&`${(0,y.Iu)("DL_ADOBE_STOCK_AUDIO")}: ${l}`,c&&(u?(0,y.Iu)("DL_LICENSED"):(0,y.Iu)("DL_UNLICENSED")),d&&{divider:!0},d]}getBadgeText(e){return(0,l.Q1)(e)}getCustomPanelInfoSubProperties(e){const t=e.getPrimaryRepresentation(),r=t.getValue("audio","data")||{},n=E.Xz(t)||{},i=[];return r.duration&&i.push({label:(0,y.Iu)("DL_INFO_DURATION"),value:s.zW(r.duration)}),r.tempo&&i.push({label:(0,y.Iu)("DL_AUDIO_TEMPO"),value:r.tempo}),n.artist&&i.push({label:(0,y.Iu)("DL_AUDIO_ARTIST"),value:n.artist}),n.album&&i.push({label:(0,y.Iu)("DL_AUDIO_ALBUM"),value:n.album}),i}getBackupThumbnail(e,t){var r,n;const i=e.getPrimaryRepresentation();if(!i)return;const a=i.type,s=(0,c.i_)(o.Z.AUDIO_ELEMENT_TYPE,a),l=s&&s.badge.toLowerCase(),u=this._config.isDisabled(e)&&!t.startsWith("thumbnail")&&!(null!==(r=(n=o.Z.currentProduct).isExpandedView)&&void 0!==r&&r.call(n));if(!l)return;const d=x(`./${l}_filetype_64.svg`);return w.createElement("div",{"data-test-id":"thumbnail-failed-icon-audio",className:_()(`panel-no-rendition-holder-${t}`,{"panel-thumbnail-disabled":u},`panel-${t}-element-fallback`)},w.createElement("img",{src:d,className:`panel-${t}-element-fallback`}))}}},73306:(e,t,r)=>{"use strict";r.d(t,{Z:()=>O});var n,i,o=r(99386),a=r(31870),s=r(89526),c=r(2652),l=r.n(c),u=r(62631),d=r(58925),p=r(84824),h=r(76485);class f extends s.Component{_getIsEditorial(){return this.props.asset.is_editorial}_getIsIllustrative(){return this.props.asset.is_illustrative}_getIsFree(){return a.U(this.props.asset)}_getIsPremium(){return this.props.asset.is_premium}_getFreeChin(){if(this._getIsFree())return s.createElement("div",{className:"panel-dl-stock-content-footer-bar-text","data-test-id":"free-chin"},(0,p.Iu)("DL_STOCK_FOOTER_BAR_FREE").toLocaleUpperCase(h.Z.getLocale()))}_getPremiumChin(){if(!this._getIsPremium())return;const e=this.props.asset.price;return s.createElement("div",{className:"panel-dl-stock-content-footer-bar-text","data-test-id":"premium-chin"},s.createElement("span",null,(0,p.Iu)("DL_STOCK_FOOTER_BAR_PREMIUM").toLocaleUpperCase(h.Z.getLocale())),s.createElement("span",{"data-test-id":"price"},e||null))}_getEditorialChin(){if(this._getIsEditorial()||this._getIsIllustrative())return s.createElement("div",{className:"panel-dl-stock-content-footer-bar-text panel-dl-stock-content-footer-bar-text-editorial","data-test-id":"editorial-chin"},s.createElement("span",null,(0,p.Iu)("DL_STOCK_SEARCH_RESULT_EDITORIAL_LABEL").toLocaleUpperCase(h.Z.getLocale())))}_getChin(){if(this._getIsFree()||this._getIsEditorial()||this._getIsPremium()||this._getIsIllustrative())return s.createElement("div",{className:"panel-dl-stock-content-footer-bar-rect","data-test-id":"chin-background"},this._getFreeChin(),this._getPremiumChin(),this._getEditorialChin())}render(){const e=(this.props.asset.media_type_id,"panel-dl-stock-content-footer-bar");return s.createElement("div",{className:e,"data-test-id":"asset-chin"},this._getChin())}}f.propTypes={asset:l().object.isRequired};let m=(0,u.Pi)(((i=class extends s.Component{render(){return s.createElement(d.Z,this.props,s.createElement(f,{asset:this.props.asset}))}}).propTypes={asset:l().object.isRequired,layout:l().shape({width:l().number.isRequired,height:l().number.isRequired}).isRequired},n=i))||n;var g=r(87694),v=r(34038),y=r(69233),b=r(64403),_=r.n(b),E=r(89368),w=r.n(E),x=r(89526);const L=r(50238);class O{constructor(e){this.type=void 0,this.typeName=void 0,this.typeNameSingular=void 0,this.thumbnailSize=void 0,this.dragType=void 0,this.allowBlankName=!1,this.allowDragWithoutUsableRepresentation=!1,this.autoDownloadExternalLinks=!0,this.component=void 0,this.stockComponent=m,this.gridSizeType=o.Z.GRID_TYPE_LARGE,this._config=e}getAutoGroupName(){return"DL_AUTOGROUP_UNKNOWN"}getAdditionalTooltipData(e){if(this.isDisabled(e))return{disabledMessage:"DL_ERROR_UNSUPPORTED_"+o.Z.currentProduct.config.translationSuffix}}formatTooltipContent(e){const t=e.name,r=e.group,n=e.createdIn,i=e.representationType,o=e.dimensions,a=e.filesize,s=e.disabledMessage,c=e.isStockAsset,l=e.stockId,u=e.isLicensed,d=e.description;return[t,r,n&&`${(0,p.Iu)("DL_CREATED_IN")} ${(0,p.Iu)(n)}`,i&&`${(0,p.Iu)("DL_TYPE")} ${i}`,s&&(0,p.Iu)(s),o,a,c&&`${(0,p.Iu)("DL_ADOBE_STOCK_PHOTO")}: ${l}`,c&&(u?(0,p.Iu)("DL_LICENSED"):(0,p.Iu)("DL_UNLICENSED")),d&&{divider:!0},d]}search(e,t){const r=e.name&&e.name.toLowerCase(),n=e.description&&e.description.toLowerCase(),i=e.getGroups()[0],o=i&&[i,...(0,y._y)(i)].map((e=>e.name.toLowerCase())),s=(0,a.wq)(e);let c=(0,a.Ht)(e);c=c&&c.toLowerCase();for(let i=0;i<t.length;i++){const a=t[i];if(!(r&&r.includes(a)||n&&n.includes(a)||o&&o.find((e=>e.includes(a)))||s&&s.includes(a)||c&&c.includes(a)||this.searchAdditionalElementData&&this.searchAdditionalElementData(e,a)))return!1}return!0}getDragData(e){let t,r=this._config.findUsableRepresentation(e);if(r)t=r.getCachedContentPath();else if(e&&this.allowDragWithoutUsableRepresentation){const n=e.getCachedThumbnailPath();n&&(t=n,r={type:"image/png",element:e})}if(t){const e={},n=t&&!t.startsWith("http")?w().normalize(t):t;return e.data=[n],e.usedRepresentationForAnalytics=r,e}}getApplyOperations(){return[]}getAddOperations(){return[]}getAdditionalElementDetails(){}getGridElementDetails(e,t){if("type"===e)return a.Jw(t)?`${(0,p.Iu)(this.typeNameSingular)}, ${(0,p.Iu)(a.kv(t)?"DL_LICENSED_ADOBE_STOCK":"DL_UNLICENSED_ADOBE_STOCK")}`:(0,p.Iu)(this.typeNameSingular)}getBadgeText(){}getCustomPanelInfoPrimaryProperties(e){return(0,g.zw)(e,[g.IS.elementType,g.IS.elementSize])}getInfoControlComponent(){}getCustomPanelInfoSubProperties(){return[]}getCustomServiceProperties(e){return a.S5(e)}getReplaceableExtensions(){return!1}getExtension(){}canFindSimilar(e){return(0,a.Jw)(e)}isDisabled(e){return!this._config.findUsableRepresentation(e)}getAdditionalClasses(){return[]}isStockAssetDraggable(){return!1}isStockMultiLicense(){return!1}getStockCompKeyForLicenseType(e){return e}getStockDragData(){return[]}setStockMetadata(){}getBackupThumbnail(e,t){const r=e.getPrimaryRepresentation();if(!r)return;const n=r.type,i=(0,v.i_)(e.type,n),o=i&&i.exts[0].toLowerCase(),a=this._config.isDisabled(e)&&!t.startsWith("thumbnail");if(!o)return;let s;try{s=L(`./${o}_filetype_1024.svg`)}catch(e){return}return x.createElement("div",{"data-test-id":"thumbnail-failed-icon-fallback",className:_()(`panel-no-rendition-holder-${t}`,{"panel-thumbnail-disabled":a},`panel-${t}-element-fallback`)},x.createElement("img",{src:s,className:`panel-${t}-element-fallback`}))}getCustomRenderer(){}getEmbeddedData(){return{}}getFilename(e,t){return`${e.replace(/ +/g,"-")}.${t}`}}},76572:(e,t,r)=>{"use strict";r.d(t,{Z:()=>b});var n,i,o=r(99386),a=r(73306),s=r(84824),c=r(89526),l=r(62631),u=r(18135),d=r(31408),p=r(64403),h=r.n(p),f=r(24937);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let v=(0,l.Pi)(((i=class extends c.Component{get isInteractive(){return"thumbnail"!==this.props.viewMode}render(){const e=h()({"thumbnail-view":!this.isInteractive,interactive:this.isInteractive},"panel-list-brush-item-thumb");return c.createElement(u.Z,this.props,["list","thumbnail"].includes(this.props.viewMode)?c.createElement("div",{className:e},c.createElement(d.Z,{element:this.props.element,viewMode:this.props.viewMode,className:"panel-list-brush-item",thumbnailType:this.context.viewState.thumbnailType})):c.createElement(d.Z,{className:`panel-${this.props.viewMode}-item-background`,element:this.props.element,viewMode:this.props.viewMode,thumbnailType:this.context.viewState.thumbnailType}))}}).contextType=f.r,i.defaultProps={viewMode:"grid"},i.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},u.Z.propTypes),n=i))||n;const y={"application/vnd.adobe.scatter.brush+zip":"DL_BRUSHTYPE_SCATTER","application/vnd.adobe.vector.brush+zip":"DL_BRUSHTYPE_VECTOR","application/vnd.adobe.ribbon.brush+zip":"DL_BRUSHTYPE_RIBBON","image/x-adobe-photoshop-brush":"DL_BRUSHTYPE_SCATTER"};class b extends a.Z{constructor(...e){super(...e),this.type=o.Z.BRUSH_ELEMENT_TYPE,this.typeName="DL_TYPE_BRUSH",this.typeNameSingular="DL_TYPE_BRUSH_SINGULAR",this.thumbnailSize=o.Z.BRUSH_THUMBNAIL_SIZE,this.gridSizeType=o.Z.GRID_TYPE_MEDIUM,this.component=v}getAutoGroupName(){return"DL_AUTOGROUP_BRUSHES"}getAdditionalTooltipData(e){const t={},r=e.getPrimaryRepresentation();return r&&r.type&&(t.brushType=y[r.type]),this._config.findUsableRepresentation(e)||(t.disabledMessage="DL_ERROR_BRUSH_NOT_SUPPORTED_"+o.Z.currentProduct.config.translationSuffix),t}formatTooltipContent(e){const t=e.name,r=e.group,n=e.brushType,i=e.disabledMessage,o=e.description;return[t,r,n&&(0,s.Iu)(n),i&&(0,s.Iu)(i),o&&{divider:!0},o]}}},16771:(e,t,r)=>{"use strict";r.d(t,{Z:()=>m});var n=r(99386),i=r(73306),o=r(74379),a=r(46903),s=r(84824),c=r(76485),l=r(74149),u=r(9276);const d=["type","content"];function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class m extends i.Z{constructor(...e){super(...e),this.type=n.Z.COLOR_ELEMENT_TYPE,this.typeName="DL_TYPE_COLOR",this.typeNameSingular="DL_TYPE_COLOR_SINGULAR",this.allowBlankName=!0,this.gridSizeType=n.Z.GRID_TYPE_SMALL,this.component=u.Z}getAutoGroupName(){return"DL_AUTOGROUP_COLORS"}_createColor(e,t,r){let i=e.name;!i&&e.data[0]&&e.data[0].type&&"spot"===e.data[0].type&&(i=e.data[0].spotColorName),i=i||"";const o=(0,a.MN)(t,i,n.Z.COLOR_ELEMENT_TYPE,{opType:r});return e.data.forEach(((e,t)=>{const r=0===t?"primary":"rendition";o.createRepresentation(n.Z.COLOR_REPRESENTATION_TYPE,r).setValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY,e)})),o.endOperation(),Promise.resolve(o)}_getColorData(e){const t=e.getPrimaryRepresentation();return null==t?void 0:t.getValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY)}getAddOperations(e){return e&&e.colors&&0!==e.colors.length?e.colors.filter((e=>e.data)).map((e=>{const t=e.data;return{name:"DL_ADD_COLOR_NAME_"+e.colorType,style:{backgroundColor:o.m3(t),border:"1px solid",width:"14px",height:"14px",margin:"1px 6px 1px 0px"},apply:(t,r)=>this._createColor(e,t,r)}})):[]}searchAdditionalElementData(e,t){let r=o.lP(e);return r=r&&o.m3(r).toLowerCase(),r&&r.includes(t)}getAdditionalTooltipData(e){const t={},r=this._getColorData(e);r&&(t.primaryValue=o.hx(r),t.opacity=r.alpha,t.spotColorName=r.spotColorName);const n=o.lP(e);return n&&(t.hexValue=o.m3(n).toUpperCase()),t}getCustomPanelInfoSubProperties(e){const t=e.representations.filter((e=>"application/vnd.adobe.color+json"===e.type)).map((e=>e?e.getValue("color","data"):null));return o.Zi(t)}formatTooltipContent(e){const t=void 0!==e.opacity&&(0,s.Iu)("DL_PERCENTAGE",{percent:Math.round(100*e.opacity)}),r=e.name,n=e.group,i=e.spotColorName,o=e.hexValue,a=e.primaryValue,c=e.description;return[!(o===r)&&r,i&&`${(0,s.Iu)("DL_SPOT_COLOR")} ${i}`,o,n,a,t&&`${(0,s.Iu)("DL_OPACITY")} ${t}`,c&&{divider:!0},c]}getAdditionalClasses(e){const t=c.Z.getHostEnvironment().appSkinInfo.panelBackgroundColor.color,r=o.lP(e);return r&&o.mj(o.su(r),t)<=n.Z.CONTRAST_THRESHOLD?["contrast"]:[]}getEmbeddedData(e){return{primary:this._getColorData(e),rendition:o.lP(e)}}createElement(e,t,r){const i=e.representations.map((e=>{let t=e.type,r=e.content,i=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,d);return h({type:t||n.Z.COLOR_REPRESENTATION_TYPE,customData:[{namespace:n.Z.COLOR_NAMESPACE,key:n.Z.COLOR_DATA_KEY,value:r}]},i)}));return(0,l.wS)(h(h({},e),{},{representations:i}),t,r)}updateElement(e,t){const r=t.getElementById(e.id);return r.beginOperation(),e.representations&&(r.removeAllRepresentations(),e.representations.forEach((e=>{const t=e.type,i=e.content,o=e.relationship;r.createRepresentation(t,o).setValue(n.Z.COLOR_NAMESPACE,n.Z.COLOR_DATA_KEY,i)}))),r.endOperation(),Promise.resolve(r)}}},38122:(e,t,r)=>{"use strict";r.d(t,{Z:()=>O});var n,i,o,a,s=r(99386),c=r(73306),l=r(74379),u=r(46903),d=r(84824),p=r(33372),h=r(89526),f=r(50265),m=r(62631),g=r(64403),v=r.n(g),y=r(44853),b=r(9142),_=r(2652),E=r.n(_),w=r(24937);function x(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let L=(0,m.Pi)(((a=class extends h.Component{constructor(...e){var t;super(...e),this.componentDidMount=()=>{this.context.viewState.isOneUpMode()&&this.context.viewState.setOneUpSubElement(this.controllerData[this.currentColorIndex].swatch)},(t=o)&&Object.defineProperty(this,"currentColorIndex",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0}),this.onColorChange=e=>{this.currentColorIndex=e,this.context.viewState.isOneUpMode()&&this.context.viewState.setOneUpSubElement(this.controllerData[e].swatch)}}get displayBar(){const e=this.controllerData.map(((e,t)=>{const r=v()("info-panel-controller-nav-item",{selected:this.currentColorIndex===t});return h.createElement("div",{className:"info-panel-controller-nav-item-wrapper",onClick:()=>this.onColorChange(t),"data-test-id":`info-panel-controller-color-theme-block-button-${t}`,key:`color-${t.toString()}`},h.createElement("div",{className:r,"data-test-id":`info-panel-controller-color-theme-block-${t}`,style:{backgroundColor:e.hex}}))}));return h.createElement("div",{className:"info-panel-controller-nav"},e)}get controllerData(){return l.xc(this.props.element)}render(){return h.createElement(b.Z,{currentStopIndex:this.controllerData.length<this.currentColorIndex?0:this.currentColorIndex,onChange:e=>this.onColorChange(e-1),displayBar:this.displayBar,controllerData:this.controllerData,stopLabel:"DL_INFO_COLOR_STOP"})}}).contextType=w.r,a.propTypes={element:E().instanceOf(y.Z).isRequired},o=x((i=a).prototype,"currentColorIndex",[f.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),x(i.prototype,"controllerData",[f.computed],Object.getOwnPropertyDescriptor(i.prototype,"controllerData"),i.prototype),n=i))||n;class O extends c.Z{constructor(...e){super(...e),this.type=s.Z.COLOR_THEME_ELEMENT_TYPE,this.typeName="DL_TYPE_COLOR_THEME",this.typeNameSingular="DL_TYPE_COLOR_THEME_SINGULAR",this.gridSizeType=s.Z.GRID_TYPE_WIDE,this.component=p.Z}getAutoGroupName(){return"DL_AUTOGROUP_COLORS"}getApplyOperations(e,t){return e&&t?this._config.getApplyOperations({type:s.Z.COLOR_ELEMENT_TYPE,library:e.library,getPrimaryRepresentation:()=>e.getPrimaryRepresentation()},t).map((r=>({name:r.name,icon:r.icon,displayInMenu:r.displayInMenu,onClick:r.onClick,apply:()=>r.apply(t,(t=>{const r=this._config.findUsableRepresentation(e);r&&(0,u.vM)(r,t)}))}))):[]}searchAdditionalElementData(e,t){const r=this._config.findUsableRepresentation(e),n=r&&r.getValue("colortheme","data");if(n&&Array.isArray(n.swatches))for(let e=0;e<n.swatches.length;e++){const r=n.swatches[e];if(l.m3(r).toLowerCase().includes(t))return!0}return!1}getAdditionalTooltipData(e,t){if(!t)return{};const r={};return r.spotColorName=t[0]&&t[0].spotColorName,r.hexValue=l.m3(t).toUpperCase(),r.primaryValue=l.hx(t[0]),r.description=e.description,this._config.findUsableRepresentation(e)||(r.disabledMessage="DL_ERROR_UNSUPPORTED_"+s.Z.currentProduct.config.translationSuffix),r}getInfoControlComponent(){return L}formatTooltipContent(e){return[e.name,e.group,e.spotColorName&&`${(0,d.Iu)("DL_SPOT_COLOR")} ${e.spotColorName}`,e.hexValue,e.primaryValue,e.disabledMessage&&(0,d.Iu)(e.disabledMessage),e.description&&{divider:!0},e.description]}}},53784:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(99386),i=r(73306),o=r(84824),a=r(46903),s=r(86357);class c extends i.Z{constructor(...e){super(...e),this.type=n.Z.COMPONENT_ELEMENT_TYPE,this.typeName="DL_TYPE_COMPONENT",this.typeNameSingular="DL_TYPE_COMPONENT_SINGULAR",this.thumbnailSize=n.Z.COMPONENT_THUMBNAIL_SIZE,this.component=s.Z}getAutoGroupName(e){return(0,a.NR)(e)?"DL_AUTOGROUP_VECTORS":"DL_AUTOGROUP_IMAGES"}formatTooltipContent(e){const t=e.name,r=e.group,n=e.createdIn,i=e.representationType,a=e.filesize,s=e.disabledMessage,c=e.description,l=e.instances;return[t,r,n&&`${(0,o.Iu)("DL_CREATED_IN")} ${(0,o.Iu)(n)}`,i&&`${(0,o.Iu)("DL_TYPE")} ${i}`,a,s&&(0,o.Iu)(s),c&&{divider:!0},c,l]}getBadgeText(e){return(0,a.Q1)(e)}getExtension(e){return(0,a.VI)(e)}canFindSimilar(){return!1}getAdditionalTooltipData(e){const t={};return this._config.findUsableRepresentation(e)||(t.disabledMessage="DL_ERROR_UNSUPPORTED_"+n.Z.currentProduct.config.translationSuffix),t}getApplyOperations(e){return e?this._config.getApplyOperations(e,void 0,n.Z.IMAGE_ELEMENT_TYPE):[]}getDragData(e){return this._config.getDragData(e,!0,n.Z.IMAGE_ELEMENT_TYPE)}}},77560:(e,t,r)=>{"use strict";r.d(t,{Z:()=>M});var n=r(71923),i=r(76572),o=r(99386),a=r(73306),s=r(84824),c=r(49004),l=r(87694),u=r(89368),d=r.n(u);class p extends a.Z{constructor(...e){super(...e),this.type=o.Z.CAPSULE_ELEMENT_TYPE,this.typeName="DL_TYPE_CAPSULE",this.typeNameSingular="DL_TYPE_CAPSULE_SINGULAR",this.thumbnailSize=o.Z.CAPSULE_THUMBNAIL_SIZE,this.dragType="capsule",this.component=c.Z}getAutoGroupName(){return"DL_AUTOGROUP_TEMPLATES"}getAdditionalTooltipData(e){const t={};return this._config.findUsableRepresentation(e)||(t.disabledMessage="DL_ERROR_CAPSULE_NOT_SUPPORTED_"+o.Z.currentProduct.config.translationSuffix),t}getDragData(e){const t=super.getDragData(e);if(!t)return;const r=this._config.findUsableRepresentation(e,o.Z.CAPSULE_DEFINITION_REPRESENTATION_TYPE);if(r){const e=r.getCachedContentPath(),n=e.startsWith&&!e.startsWith("http")?d().normalize(e):e;n&&(t.json=[n])}return t}formatTooltipContent(e){const t=e.name,r=e.group,n=e.createdIn,i=e.duration,o=e.filesize,a=e.isStockAsset,c=e.stockId,l=e.isLicensed,u=e.disabledMessage,d=e.description;return[t,r,n&&`${(0,s.Iu)("DL_CREATED_IN")} ${(0,s.Iu)(n)}`,i,o,a&&`${(0,s.Iu)("DL_ADOBE_STOCK_CAPSULE")}: ${c}`,a&&(l?(0,s.Iu)("DL_LICENSED"):(0,s.Iu)("DL_UNLICENSED")),u&&(0,s.Iu)(u),d&&{divider:!0},d]}canFindSimilar(){return!1}setStockMetadata(e,t){(t.duration||t.filesize)&&e.setValue(o.Z.CAPSULE_NAMESPACE,o.Z.CAPSULE_DATA_KEY,{duration:t.duration,contentLength:t.filesize})}getCustomPanelInfoSubProperties(e){return(0,l.zw)(e,[l.IS.dimensions,l.IS.capsuleFramesPerSecond,l.IS.capsuleDuration])}}var h=r(56649);class f extends a.Z{constructor(...e){super(...e),this.type=o.Z.CHANNEL_ELEMENT_TYPE,this.typeName="DL_TYPE_CHANNEL",this.typeNameSingular="DL_TYPE_CHANNEL_SINGULAR",this.gridSizeType=o.Z.GRID_TYPE_SMALL,this.thumbnailSize=o.Z.AUDIO_THUMBNAIL_SIZE,this.component=h.Z}getAutoGroupName(){return"DL_AUTOGROUP_UNKNOWN"}}var m=r(16771),g=r(38122),v=r(86423),y=r(48124);class b extends a.Z{constructor(...e){super(...e),this.type=o.Z.IMAGE_GUIDELINE_ELEMENT_TYPE,this.typeName="DL_TYPE_IMAGE_GUIDELINE",this.typeNameSingular="DL_TYPE_IMAGE_GUIDELINE_SINGULAR",this.gridSizeType=o.Z.GRID_TYPE_SMALL,this.thumbnailSize=o.Z.AUDIO_THUMBNAIL_SIZE,this.component=h.Z}getAutoGroupName(){return"DL_AUTOGROUP_UNKNOWN"}}var _=r(92106),E=r(59846),w=r(65944),x=r(54888),L=r(74244),O=r(95134),S=r(54712),T=r(91696),P=r(54142),I=r(82359),A=r(86357);class C extends a.Z{constructor(...e){super(...e),this.type="*",this.typeName="DL_TYPE_UNKNOWN",this.typeNameSingular="DL_TYPE_UNKNOWN",this.thumbnailSize=82,this.gridSizeType=o.Z.GRID_TYPE_LARGE,this.component=A.Z}getAdditionalTooltipData(){return{disabledMessage:"DL_ERROR_UNSUPPORTED_"+o.Z.currentProduct.config.translationSuffix}}formatTooltipContent(e){return[(0,s.Iu)(e.disabledMessage),e.description&&{divider:!0},e.description]}}var k=r(4328),D=r(53784),N=r(70232),R=r(12894);const M={AnimationElementConfig:n.Z,AudioElementConfig:N.Z,BrushElementConfig:i.Z,CapsuleElementConfig:p,ChannelElementConfig:f,ColorElementConfig:m.Z,ColorThemeElementConfig:g.Z,ComponentElementConfig:D.Z,GradientElementConfig:v.Z,ImageElementConfig:y.Z,ImageGuidelineElementConfig:b,LayerStyleElementConfig:_.Z,LightElementConfig:E.Z,LookElementConfig:w.Z,MaterialElementConfig:x.Z,ParagraphStyleElementConfig:L.Z,PatternElementConfig:O.Z,TemplateElementConfig:S.Z,TextElementConfig:T.Z,TextStyleElementConfig:P.Z,FontElementConfig:R.Z,ThreeDElementConfig:I.Z,UnsupportedElementConfig:C,VideoElementConfig:k.Z}},12894:(e,t,r)=>{"use strict";r.d(t,{Z:()=>v});var n=r(99386),i=r(73306),o=r(16203),a=r(90885),s=r(13293),c=r(87694),l=r(74149);const u=["type","content"];function d(){d=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function h(){}function f(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(O([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=f,s(y,"constructor",f),s(f,"constructor",h),h.displayName=s(f,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function p(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function h(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){p(o,n,i,a,s,"next",e)}function s(e){p(o,n,i,a,s,"throw",e)}a(void 0)}))}}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class v extends i.Z{constructor(...e){super(...e),this.type=n.Z.FONT_ELEMENT_TYPE,this.typeName="DL_TYPE_FONT",this.typeNameSingular="DL_TYPE_FONT_SINGULAR",this.thumbnailSize=n.Z.FONT_THUMBNAIL_SIZE,this.gridSizeType=n.Z.GRID_TYPE_MEDIUM,this.component=a.Z}getAutoGroupName(){return"DL_AUTOGROUP_TYPOGRAPHY"}getAddOperations(e){return e&&e.text&&e.fontInfo,[]}_getStyleData(e,t){const r=this._config.findUsableRepresentation(e,"application/vnd.adobe.font+json"),n=r&&r.getValue("font","data");return n&&t?{adbeFont:n}:n}searchAdditionalElementData(e,t){const r=this._getStyleData(e),n=r&&r.family&&r.family.toLowerCase(),i=r&&r.style&&r.style.toLowerCase();return n&&n.includes(t)||i&&i.includes(t)}getAdditionalTooltipData(e){const t=this._getStyleData(e,!0);return o.xO(t)}getAdditionalElementDetails(e){const t=this._getStyleData(e,!0);if(t)return o.zH(t).join(", ")}formatTooltipContent(e){return o.Aj(e)}getCustomServiceProperties(e){return(0,s.h)(e)}getCustomPanelInfoSubProperties(e){return(0,c.zw)(e,[c.IS.fontFamily,c.IS.fontStyle])}getEmbeddedData(e){return{primary:this._getStyleData(e)}}_formatRepresentationDataFromPicker(e){return e.representations=e.representations||[],e.representations.map((e=>{let t,r=e.type,i=e.content,o=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,u);return r===n.Z.FONT_REPRESENTATION_TYPE&&(t=[{namespace:n.Z.FONT_NAMESPACE,key:n.Z.FONT_DATA_KEY,value:i}]),m({type:r||n.Z.FONT_REPRESENTATION_TYPE,customData:t,content:t?void 0:i},o)}))}createElement(e,t,r){e.name=void 0;const n=this._formatRepresentationDataFromPicker(e);return(0,l.wS)(m(m({},e),{},{representations:n}),t,r)}updateElement(e,t){var r=this;return h(d().mark((function i(){var o;return d().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(o=t.getElementById(e.id),e.representations=r._formatRepresentationDataFromPicker(e),!e.representations.length){i.next=12;break}return i.next=5,Promise.all(e.representations.map(function(){var e=h(d().mark((function e(r){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.oC)(r);case 2:if(!(n=e.sent)){e.next=7;break}return e.next=6,t.stageRepresentationForCommit(n,r.type);case 6:r.stagedData=e.sent;case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 5:return o.beginOperation(),o.removeAllRepresentations(),e.roles&&(o.roles=e.roles),e.customData&&e.customData.forEach((({namespace:e,key:t,value:r})=>o.setValue(e,t,r))),i.next=11,Promise.all(e.representations.map(function(){var e=h(d().mark((function e(t){var r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=o.createRepresentation(t.type||n.Z.FONT_REPRESENTATION_TYPE,t.relationship),!t.stagedData){e.next=4;break}return e.next=4,r.setStagedContent(t.stagedData);case 4:t.customData&&t.customData.forEach((({namespace:e,key:t,value:n})=>r.setValue(e,t,n)));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 11:o.endOperation();case 12:return i.abrupt("return",o);case 13:case"end":return i.stop()}}),i)})))()}}},86423:(e,t,r)=>{"use strict";r.d(t,{Z:()=>w});var n,i,o,a,s=r(99386),c=r(73306),l=r(84824),u=r(51993),d=r(89526),p=r(50265),h=r(62631),f=r(74379),m=r(44853),g=r(9142),v=r(2652),y=r.n(v);function b(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let _=(0,h.Pi)(((a=class extends d.Component{constructor(...e){var t;super(...e),this.resetCurrentStopIndex=()=>{this.currentStopIndex=0},(t=o)&&Object.defineProperty(this,"currentStopIndex",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0}),this.onStopChange=e=>{this.currentStopIndex=e-1}}componentDidMount(){this.disposeElementReaction=(0,p.reaction)((()=>this.props.element),(()=>this.resetCurrentStopIndex()))}componentWillUnmount(){this.disposeElementReaction()}get displayBar(){const e=f.Zw(this.props.element,!1,!1,!0),t=this.controllerData[this.currentStopIndex],r=t.offset>.5?Math.min(.94,t.offset):Math.max(.05,t.offset);return d.createElement("div",{className:"info-panel-controller-nav info-panel-controller-gradient"},d.createElement("div",{"data-test-id":"info-panel-controller-gradient-bar",className:"info-panel-controller-gradient-bar",style:e},d.createElement("div",{"data-test-id":"info-panel-controller-gradient-bar-circle",className:"info-panel-controller-gradient-bar-circle",style:{left:100*r+"%"}})))}get controllerData(){return f.ds(this.props.element)}render(){return this.controllerData.length?d.createElement(g.Z,{currentStopIndex:this.currentStopIndex,onChange:this.onStopChange,displayBar:this.displayBar,controllerData:this.controllerData}):null}}).propTypes={element:y().instanceOf(m.Z).isRequired},o=b((i=a).prototype,"currentStopIndex",[p.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),b(i.prototype,"controllerData",[p.computed],Object.getOwnPropertyDescriptor(i.prototype,"controllerData"),i.prototype),n=i))||n;var E=r(62061);class w extends c.Z{constructor(...e){super(...e),this.type=s.Z.GRADIENT_ELEMENT_TYPE,this.typeName="DL_TYPE_GRADIENT",this.typeNameSingular="DL_TYPE_GRADIENT_SINGULAR",this.gridSizeType=s.Z.GRID_TYPE_SMALL,this.component=u.Z}getAutoGroupName(){return"DL_AUTOGROUP_COLORS"}searchAdditionalElementData(e,t){const r=e.getPrimaryRepresentation(),n=r&&r.getValue("gradient","data");return n&&n.stops&&n.stops.some((e=>{let r=e.color||[];return r=f.Nh(r),r=r&&f.m3(r).toLowerCase(),r&&r.includes(t)}))}getAdditionalTooltipData(e){const t={},r=e.getPrimaryRepresentation(),n=r&&r.getValue("gradient","data");return n&&(t.type=n.type,t.stopCount=n.stops&&n.stops.length),this._config.findUsableRepresentation(e)||(t.disabledMessage=`DL_ERROR_GRADIENT_NOT_SUPPORTED_${s.Z.currentProduct.config.translationSuffix}`),t}formatTooltipContent(e){const t={linear:"DL_GRADIENT_TYPE_LINEAR",radial:"DL_GRADIENT_TYPE_RADIAL",noise:"DL_GRADIENT_TYPE_NOISE"},r=e.name,n=e.group,i=e.type,o=e.disabledMessage;return[r,n,t[i]&&(0,l.Iu)(t[i]),o&&(0,l.Iu)(o),e.description&&{divider:!0},e.description]}getInfoControlComponent(e){const t=e.getPrimaryRepresentation(),r=t&&t.getValue("gradient","data");if(r&&["radial","linear"].includes(r.type))return _}getCustomPanelInfoSubProperties(e){const t=e.getPrimaryRepresentation(),r=t&&t.getValue("gradient","data"),n=[];return r.type&&n.push({label:(0,l.Iu)("DL_INFO_GRADIENT_TYPE"),value:(0,l.Iu)(`DL_GRADIENT_TYPE_${r.type.toUpperCase()}`)}),"linear"===r.type&&r.angle&&n.push({label:(0,l.Iu)("DL_INFO_GRADIENT_ANGLE"),value:(0,l.Iu)("DL_DEGREE",{degree:(0,E.Eq)(r.angle,2)})}),"radial"===r.type&&(n.push({label:(0,l.Iu)("DL_INFO_GRADIENT_ASPECT_RATIO"),value:(0,E.Eq)(r.aspectRatio,2)}),n.push({label:(0,l.Iu)("DL_INFO_GRADIENT_CENTER_POINT"),value:`${(0,E.Eq)(r.centerPoint.x,2)}, ${(0,E.Eq)(r.centerPoint.y,2)}`})),n}}},48124:(e,t,r)=>{"use strict";r.d(t,{Z:()=>g});var n=r(99386),i=r(73306),o=r(34038),a=r(74149),s=r(84824),c=r(49004),l=r(46903),u=r(50777),d=r(87694),p=r(31870);function h(){h=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function f(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(O([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=f,s(y,"constructor",f),s(f,"constructor",p),p.displayName=s(f,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function f(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const m=[["jpg","jpeg","png","tif","tiff","bmp"],["svg"],["pdf"],["ai"],["psd"]];class g extends i.Z{constructor(...e){super(...e),this.type=n.Z.IMAGE_ELEMENT_TYPE,this.typeName="DL_TYPE_IMAGE",this.typeNameSingular="DL_TYPE_IMAGE_SINGULAR",this.thumbnailSize=n.Z.IMAGE_THUMBNAIL_SIZE,this.dragType="image",this.allowDragWithoutUsableRepresentation=!0,this.component=c.Z}getReplaceableExtensions(e){const t=(0,l.VI)(e);return t&&m.find((e=>e.includes(t)))||[]}getAutoGroupName(e){return(0,l.NR)(e)?"DL_AUTOGROUP_VECTORS":"DL_AUTOGROUP_IMAGES"}fullRenditionConfig(){const e=o.ku(n.Z.IMAGE_ELEMENT_TYPE);return 0===e.length?[]:[{id:n.Z.currentProduct.config.code,condition:"IF_NO_MATCHING_REPRESENTATION",types:e}]}getAddOperations(e){const t=[];if(u.BQ()){const e=e=>Promise.resolve(u.RI(null,e));t.push({interactive:!0,name:"DL_CAPTURE",icon:"Capture",dropSupport:!1,apply:e})}return e&&e.selectionExists?(t.unshift({name:"DL_ADD_IMAGE_NAME",icon:"AddImage",dropSupport:!0,apply:(e,t,r)=>(0,l.g0)(r).then((n=>{const i={documentId:n.documentId,layerIds:n.layerIds,dragAssetId:r};return(0,a.Bm)(n.layerName,n.files,n.rendition,e,t,i)}),(()=>Promise.reject("Could not extract asset.")))}),t):t}formatTooltipContent(e){const t=e.name,r=e.group,n=e.createdIn,i=e.representationType,o=e.dimensions,a=e.filesize,c=e.disabledMessage,l=e.isStockAsset,u=e.stockId,d=e.isLicensed,p=e.description;return[t,r,n&&`${(0,s.Iu)("DL_CREATED_IN")} ${(0,s.Iu)(n)}`,i&&`${(0,s.Iu)("DL_TYPE")} ${i}`,c&&(0,s.Iu)(c),o,a,l&&`${(0,s.Iu)("DL_ADOBE_STOCK_PHOTO")}: ${u}`,l&&(d?(0,s.Iu)("DL_LICENSED"):(0,s.Iu)("DL_UNLICENSED")),p&&{divider:!0},p]}getBadgeText(e){return(0,l.Q1)(e)}getExtension(e){return(0,l.VI)(e)}canFindSimilar(){return!0}isStockAssetDraggable(){return!0}isStockMultiLicense(e,t){return e||t}getStockCompKeyForLicenseType(){return n.Z.STOCK_LICENSE_TYPE_STANDARD}getStockDragData(e,t){return[t.path]}getCustomPanelInfoSubProperties(e){return(0,d.zw)(e,[d.IS.dimensions])}getCustomServiceProperties(e){return(0,p.S5)(e)}createElement(e,t,r){return(n=h().mark((function n(){return h().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,a.wS)(e,t,r));case 1:case"end":return n.stop()}}),n)})),function(){var e=this,t=arguments;return new Promise((function(r,i){var o=n.apply(e,t);function a(e){f(o,r,i,a,s,"next",e)}function s(e){f(o,r,i,a,s,"throw",e)}a(void 0)}))})();var n}}},92106:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(99386),i=r(73306),o=r(56649),a=r(84824);class s extends i.Z{constructor(...e){super(...e),this.type=n.Z.LAYER_STYLE_ELEMENT_TYPE,this.typeName="DL_TYPE_LAYER_STYLE",this.typeNameSingular="DL_TYPE_LAYER_STYLE_SINGULAR",this.thumbnailSize=n.Z.LAYER_STYLE_THUMBNAIL_SIZE,this.gridSizeType=n.Z.GRID_TYPE_MEDIUM,this.component=o.Z}getAutoGroupName(){return"DL_AUTOGROUP_STYLES"}getAdditionalTooltipData(e){const t={};return this._config.findUsableRepresentation(e)||(t.disabledMessage="DL_ERROR_LAYER_STYLE_NOT_SUPPORTED_"+n.Z.currentProduct.config.translationSuffix),t}formatTooltipContent(e){return[e.name,e.group,e.disabledMessage&&(0,a.Iu)(e.disabledMessage),e.description&&{divider:!0},e.description]}}},59846:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(99386),i=r(73306),o=r(84824),a=r(49004),s=r(87694);class c extends i.Z{constructor(...e){super(...e),this.type=n.Z.LIGHT_ELEMENT_TYPE,this.typeName="DL_TYPE_LIGHT",this.typeNameSingular="DL_TYPE_LIGHT_SINGULAR",this.thumbnailSize=n.Z.LIGHT_THUMBNAIL_SIZE,this.dragType="light",this.component=a.Z,this.gridSizeType=n.Z.GRID_TYPE_MEDIUM}getAutoGroupName(){return"DL_AUTOGROUP_3D"}formatTooltipContent(e){const t=e.name,r=e.group,n=e.createdIn,i=e.representationType,a=e.isStockAsset,s=e.stockId,c=e.isLicensed,l=e.description,u=e.disabledMessage;return[t,r,n&&`${(0,o.Iu)("DL_CREATED_IN")} ${(0,o.Iu)(n)}`,i&&`${(0,o.Iu)("DL_TYPE")} ${i}`,u&&(0,o.Iu)(u),a&&`${(0,o.Iu)("DL_ADOBE_STOCK_LIGHT")}: ${s}`,a&&(c?(0,o.Iu)("DL_LICENSED"):(0,o.Iu)("DL_UNLICENSED")),l&&{divider:!0},l]}setStockMetadata(e,t){t["3d_metadata"]&&e.setValue("3d","data",t["3d_metadata"])}getCustomPanelInfo(e){return(0,s.zw)(e,[s.IS.dimensions])}}},65944:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(84824),i=r(99386),o=r(73306),a=r(86357);class s extends o.Z{constructor(...e){super(...e),this.type=i.Z.LOOK_ELEMENT_TYPE,this.typeName="DL_TYPE_LOOK",this.typeNameSingular="DL_TYPE_LOOK_SINGULAR",this.thumbnailSize=i.Z.LOOK_THUMBNAIL_SIZE,this.component=a.Z}getAutoGroupName(){return"DL_AUTOGROUP_STYLES"}formatTooltipContent(e){return[e.name,e.group,e.disabledMessage&&(0,n.Iu)(e.disabledMessage),e.description&&{divider:!0},e.description]}}},54888:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(99386),i=r(73306),o=r(84824),a=r(49004);const s="data";class c extends i.Z{constructor(...e){super(...e),this.type=n.Z.MATERIAL_ELEMENT_TYPE,this.typeName="DL_TYPE_MATERIAL",this.typeNameSingular="DL_TYPE_MATERIAL_SINGULAR",this.thumbnailSize=n.Z.MATERIAL_THUMBNAIL_SIZE,this.dragType="material",this.component=a.Z,this.gridSizeType=n.Z.GRID_TYPE_MEDIUM}getAutoGroupName(){return"DL_AUTOGROUP_3D"}formatTooltipContent(e){const t=e.name,r=e.group,n=e.createdIn,i=e.representationType,a=e.isStockAsset,s=e.stockId,c=e.isLicensed,l=e.description,u=e.disabledMessage;return[t,r,n&&`${(0,o.Iu)("DL_CREATED_IN")} ${(0,o.Iu)(n)}`,i&&`${(0,o.Iu)("DL_TYPE")} ${i}`,u&&(0,o.Iu)(u),a&&`${(0,o.Iu)("DL_ADOBE_STOCK_MATERIAL")}: ${s}`,a&&(c?(0,o.Iu)("DL_LICENSED"):(0,o.Iu)("DL_UNLICENSED")),l&&{divider:!0},l]}setStockMetadata(e,t){t["3d_metadata"]&&e.setValue("3d",s,t["3d_metadata"])}getCustomPanelInfoSubProperties(e){const t=[],r=e.getPrimaryRepresentation().getValue("3d",s),n=r&&r.materials&&r.materials[0];return n&&(void 0!==n.tileable&&t.push({label:(0,o.Iu)("DL_INFO_TILEABLE"),value:(0,o.Iu)("DL_INFO_"+(n.tileable?"YES":"NO"))}),void 0!==n.procedural&&t.push({label:(0,o.Iu)("DL_INFO_PROCEDURAL"),value:(0,o.Iu)("DL_INFO_"+(n.procedural?"YES":"NO"))})),t}}},74244:(e,t,r)=>{"use strict";r.d(t,{Z:()=>v});var n=r(99386),i=r(73306),o=r(76485),a=r(16203),s=r(8733),c=r(34038),l=r(46903),u=r(84824),d=r(87694),p=r(13293),h=r(90885);const f="paragraphstyle",m="data",g="application/vnd.adobe.paragraphstyle+json";class v extends i.Z{constructor(...e){super(...e),this.type=n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,this.typeName="DL_TYPE_PARA_STYLE",this.typeNameSingular="DL_TYPE_PARA_STYLE_SINGULAR",this.thumbnailSize=n.Z.PARAGRAPH_STYLE_THUMBNAIL_SIZE,this.gridSizeType=n.Z.GRID_TYPE_WIDE,this.component=h.Z}_addParaStyleImpl(e,t,r){return e&&"LayerKind.TEXT"===e.kind?o.Z.execApp("getParaStyleInfo").then((e=>{var i;const o=JSON.parse(e);null!==(i=n.Z.currentProduct.config)&&void 0!==i&&i.copyTempFileIfNecessary&&(o.idmsPath=o.idmsPath&&n.Z.currentProduct.config.copyTempFileIfNecessary(o.idmsPath),o.previewPath=o.previewPath&&n.Z.currentProduct.config.copyTempFileIfNecessary(o.previewPath)),o.styleName||(o.styleName=(0,u.Iu)("DL_TYPE_NEW_PARA_STYLE"));const a=(0,l.MN)(t,o.styleName,n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE,{opType:r}),s=[];if(o.idmsPath){const e=a.createRepresentation("application/vnd.adobe.paragraphstyle+snippet","primary").setContentFromPath(o.idmsPath);s.push(e),a.createRepresentation(g,"rendition").setValue(f,m,o.styleInfo)}else a.createRepresentation(g,"primary").setValue(f,m,o.styleInfo);if(o.previewPath){const e=a.createRepresentation("image/png","rendition").setContentFromPath(o.previewPath);s.push(e)}return Promise.all(s).then((()=>{const e=[];return o.previewPath&&e.push(a.setThumbnailCache(n.Z.PARAGRAPH_STYLE_THUMBNAIL_SIZE,o.previewPath)),e.push(a.endOperation()),Promise.all(e).then((()=>{o.previewPath&&c._I(o.previewPath),o.idmsPath&&c._I(o.idmsPath)})),a}),(()=>(t.removeElement(a,!0),Promise.reject("Could not create element."))))}),(()=>Promise.reject("Could not save paragraph style preview."))):Promise.reject("Not a text layer")}getAutoGroupName(){return"DL_AUTOGROUP_TYPOGRAPHY"}getAddOperations(e){return e&&e.text&&!1!==e.isAppliedParaStyleSupported?[{name:"DL_ADD_PARA_STYLE_NAME",order:3,icon:"AddParagraphStyle",apply:(t,r)=>new Promise((n=>{s.Z.updateLayerInfo().then((()=>n(this._addParaStyleImpl(e,t,r))))}))}]:[]}_getStyleData(e){const t=this._config.findUsableRepresentation(e,g);return t&&t.getValue(f,m)}searchAdditionalElementData(e,t){const r=this._getStyleData(e),n=r&&r.fontFamily&&r.fontFamily.toLowerCase(),i=r&&r.adbeFont&&r.adbeFont.style&&r.adbeFont.style.toLowerCase(),o=r&&r.fontSize&&r.fontSize.value&&r.fontSize.value.toString().toLowerCase();return n&&n.includes(t)||i&&i.includes(t)||o&&o.includes(t)}getAdditionalTooltipData(e){const t=this._getStyleData(e),r=this._config.isDisabled(e);return a.xO(t,r)}formatTooltipContent(e){return a.Aj(e)}getAdditionalElementDetails(e){const t=this._getStyleData(e);if(t)return a.zH(t).join(", ")}getCustomServiceProperties(e){return(0,p.h)(e)}getCustomPanelInfoSubProperties(e){return(0,d.zw)(e,[d.IS.fontFamily,d.IS.fontStyle,d.IS.fontSize,d.IS.fontDecoration,d.IS.alignment,d.IS.paragraphLeftIndent,d.IS.paragraphRightIndent,d.IS.paragraphFirstLineIndent,d.IS.paragraphSpaceBefore,d.IS.paragraphSpaceAfter,d.IS.fontColorType,d.IS.fontHexColor,d.IS.fontRgbColor,d.IS.fontCmykColor,d.IS.fontLabColor,d.IS.fontHsbColor,d.IS.fontGrayColor,d.IS.fontSpotColor,d.IS.fontOpacity])}}},95134:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(99386),i=r(73306),o=r(84824),a=r(46903),s=r(86357);class c extends i.Z{constructor(...e){super(...e),this.type=n.Z.PATTERN_ELEMENT_TYPE,this.typeName="DL_TYPE_PATTERN",this.typeNameSingular="DL_TYPE_PATTERN_SINGULAR",this.thumbnailSize=n.Z.PATTERN_THUMBNAIL_SIZE,this.component=s.Z,this.isThumbnailTiled=!0,this.gridSizeType=n.Z.GRID_TYPE_MEDIUM}getAutoGroupName(e){return(0,a.NR)(e)?"DL_AUTOGROUP_VECTORS":"DL_AUTOGROUP_IMAGES"}getAdditionalTooltipData(e){const t={patternType:(0,a.NR)(e)?"DL_VECTOR_PATTERN_TYPE":"DL_BITMAP_PATTERN_TYPE"};return this._config.findUsableRepresentation(e)||(t.disabledMessage="DL_ERROR_UNSUPPORTED_"+n.Z.currentProduct.config.translationSuffix),t}formatTooltipContent(e){const t=e.name,r=e.group,n=e.patternType,i=e.disabledMessage,a=e.description;return[t,r,n&&`${(0,o.Iu)("DL_TYPE")} ${(0,o.Iu)(n)}`,i&&(0,o.Iu)(i),a&&{divider:!0},a]}getBadgeText(e){return(0,a.NR)(e)?"SVG":"PNG"}getExtension(e){return this.getBadgeText(e)}}},54712:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(99386),i=r(73306),o=r(84824),a=r(49004),s=r(46903),c=r(87694);class l extends i.Z{constructor(...e){super(...e),this.type=n.Z.TEMPLATE_ELEMENT_TYPE,this.typeName="DL_TYPE_TEMPLATE",this.typeNameSingular="DL_TYPE_TEMPLATE_SINGULAR",this.thumbnailSize=n.Z.IMAGE_THUMBNAIL_SIZE,this.component=a.Z}getAutoGroupName(){return"DL_AUTOGROUP_TEMPLATES"}getAdditionalTooltipData(e){const t={};return this.isDisabled(e)&&(t.disabledMessage="DL_ERROR_TEMPLATE_NOT_SUPPORTED_"+n.Z.currentProduct.config.translationSuffix),t}isDisabled(e){return!this._config.findUsableRepresentation(e,null,!0)}formatTooltipContent(e){const t=e.name,r=e.group,n=e.representationType,i=e.isStockAsset,a=e.stockId,s=e.isLicensed,c=e.filesize,l=e.disabledMessage,u=e.description;return[t,r,n&&`${(0,o.Iu)("DL_TYPE")} ${n}`,c,i&&`${(0,o.Iu)("DL_ADOBE_STOCK_TEMPLATE")}: ${a}`,i&&(s?(0,o.Iu)("DL_LICENSED"):(0,o.Iu)("DL_UNLICENSED")),l&&(0,o.Iu)(l),u&&{divider:!0},u]}getBadgeText(e){return(0,s.Q1)(e)}getExtension(e){return(0,s.VI)(e)}canFindSimilar(){return!1}getCustomPanelInfoSubProperties(e){return(0,c.zw)(e,[c.IS.dimensions])}}},91696:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(99386),i=r(73306),o=r(76485),a=r(8733),s=r(34038),c=r(46903),l=r(25585),u=r(84824),d=r(74379),p=r(56649);class h extends i.Z{constructor(...e){super(...e),this.type=n.Z.TEXT_ELEMENT_TYPE,this.typeName="DL_TYPE_TEXT",this.typeNameSingular="DL_TYPE_TEXT_SINGULAR",this.thumbnailSize=n.Z.TEXT_THUMBNAIL_SIZE,this.dragType="text",this.component=p.Z,this.gridSizeType=n.Z.GRID_TYPE_MEDIUM}_addTextImpl(e,t,r){return e&&e.canAddTextAsset?o.Z.execApp("getTextInfo").then((i=>{var o;const a=JSON.parse(i);if(!a||!a.textInfo)return Promise.reject("Could not create element.");null!==(o=n.Z.currentProduct.config)&&void 0!==o&&o.copyTempFileIfNecessary&&(a.previewPath=n.Z.currentProduct.config.copyTempFileIfNecessary(a.previewPath),a.primaryRepresentation.filePath=n.Z.currentProduct.config.copyTempFileIfNecessary(a.primaryRepresentation.filePath));const l=e.textAssetName||a.name,u=(0,c.In)(t,l,"DL_TEXT_LABEL");let d="textFrame";!0===e.textSelectionExists?d="textSelection":!0===e.insertionPointExists&&(d="insertionPoint");const p=(0,c.MN)(t,u,n.Z.TEXT_ELEMENT_TYPE,{opType:r,selectionType:d}),h=[];if(a.primaryRepresentation){const e=p.createRepresentation(a.primaryRepresentation.representationType,"primary");if(a.primaryRepresentation.isFile){const t=e.setContentFromPath(a.primaryRepresentation.filePath).then((()=>{h.push(t)}))}else e.setValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY,a.primaryRepresentation.data);p.createRepresentation(n.Z.TEXT_REPRESENTATION_JSON_TYPE,"rendition").setValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY,a.textInfo)}else p.createRepresentation(n.Z.TEXT_REPRESENTATION_JSON_TYPE,"primary").setValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY,a.textInfo);if(a.previewPath){const e=p.createRepresentation("image/png","rendition");e.isPreferredThumbnail=!0,h.push(e.setContentFromPath(a.previewPath))}return Promise.all(h).then((()=>{const e=[];return a.previewPath&&e.push(p.setThumbnailCache(n.Z.TEXT_THUMBNAIL_SIZE,a.previewPath)),e.push(p.endOperation()),Promise.all(e).then((()=>{a.previewPath&&s._I(a.previewPath),a.primaryRepresentation.isFile&&s._I(a.primaryRepresentation.filePath)})),p}),(()=>(t.removeElement(p),Promise.reject("Could not create element."))))}),(()=>Promise.reject("Could not save text preview."))):Promise.reject("no text in layer")}getAutoGroupName(){return"DL_AUTOGROUP_TYPOGRAPHY"}getAddOperations(e){return e&&e.canAddTextAsset?[{name:"DL_ADD_TEXT_NAME",icon:"AddText",dropSupport:!0,getDropLabel:(t,r)=>(0,c.In)(r,e.textAssetName,"DL_TEXT_LABEL"),apply:(t,r)=>new Promise((n=>{a.Z.updateLayerInfo().then((()=>n(this._addTextImpl(e,t,r))))}))}]:[]}searchAdditionalElementData(e,t){const r=this._config.findUsableRepresentation(e,n.Z.TEXT_REPRESENTATION_JSON_TYPE),i=r&&r.getValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY);if(!i||!i.paragraphs)return!1;let o=0;for(let e=0;e<i.paragraphs.length&&!(o>=6e3);e++){const r=(0,l.aS)(i.paragraphs[e].text,6e3-o).toLowerCase();if(r.includes(t))return!0;o+=r.length}return!1}getDragData(e){if(this._config.findUsableRepresentation(e))return{}}_getTooltipTextData(e){const t=this._config.findUsableRepresentation(e,n.Z.TEXT_REPRESENTATION_JSON_TYPE);return t&&t.getValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY)}getAdditionalTooltipData(e){const t={},r=this._getTooltipTextData(e);if(t.description=e.description,this._config.findUsableRepresentation(e)||(t.disabledMessage="DL_ERROR_UNSUPPORTED_"+n.Z.currentProduct.config.translationSuffix),r&&r.paragraphs&&r.paragraphs[0]&&r.paragraphs[0].text){t.paragraphText={},t.paragraphText.firstPara=(0,l.aS)(r.paragraphs[0].text,160);const e=r.paragraphs[0].text.length;e<=160&&r.paragraphs[1]&&r.paragraphs[1].text&&(t.paragraphText.secondPara=(0,l.aS)(r.paragraphs[1].text,160-e))}return t}getAdditionalElementDetails(e){const t=this._getTooltipTextData(e);let r="";return t&&t.paragraphs&&t.paragraphs.forEach((e=>{r+=e.text,r+=" "})),r.length>=500&&(r=(0,l.aS)(r,500)),r}formatTooltipContent({paragraphText:e={},description:t}){const r=e.firstPara,n=e.secondPara,i=e.disabledMessage;return[!r&&!n&&(0,u.Iu)("DL_TEXT_EMPTY_CONTENT_TOOLTIP"),r,n,i&&(0,u.Iu)(i),t&&{divider:!0},t]}getBadgeText(e){return(0,c.Q1)(e)}getExtension(e){return(0,c.VI)(e)}getAdditionalClasses(e){const t=this._config.findUsableRepresentation(e,n.Z.TEXT_REPRESENTATION_JSON_TYPE),r=t&&t.getValue(n.Z.TEXT_NAMESPACE,n.Z.TEXT_DATA_KEY);if(r&&r.paragraphs)for(let e=0;e<r.paragraphs.length;e++){const t=r.paragraphs[e].runs||[];for(let e=0;e<t.length;e++)for(let n=0;n<t[e].styles.length;n++){const i=t[e].styles[n],a=r.styles[i]||{},s=a.value&&a.value.color;if(o.Z.recolorLightTextElements&&s&&(0,d.eO)(s))return["light-text"]}}return[]}}},54142:(e,t,r)=>{"use strict";r.d(t,{Z:()=>g});var n=r(99386),i=r(73306),o=r(76485),a=r(16203),s=r(8733),c=r(34038),l=r(13293),u=r(46903),d=r(90885),p=r(87694);const h="characterstyle",f="data",m="application/vnd.adobe.characterstyle+json";class g extends i.Z{constructor(...e){super(...e),this.type=n.Z.CHARACTER_STYLE_ELEMENT_TYPE,this.typeName="DL_TYPE_TEXT_STYLE",this.typeNameSingular="DL_TYPE_TEXT_STYLE_SINGULAR",this.thumbnailSize=n.Z.CHARACTER_STYLE_THUMBNAIL_SIZE,this.gridSizeType=n.Z.GRID_TYPE_WIDE,this.component=d.Z}_addTextStyleImpl(e,t,r){return e&&"LayerKind.TEXT"===e.kind?o.Z.execApp("saveTextStylePreview",[e.fontInfo]).then((i=>{if(void 0===i||"undefined"===i)return Promise.reject("Unable to generate preview");const o=(0,u.MN)(t,"",n.Z.CHARACTER_STYLE_ELEMENT_TYPE,{opType:r});return o.createRepresentation(m,"primary").setValue(h,f,e.fontInfo),o.createRepresentation("image/png","rendition").setContentFromPath(i).then((()=>(Promise.all([o.setThumbnailCache(n.Z.CHARACTER_STYLE_THUMBNAIL_SIZE,i),o.endOperation()]).then((()=>{c._I(i)})),o)),(()=>(t.removeElement(o,!0),Promise.reject("Could not create element."))))}),(()=>Promise.reject("Could not save text style preview."))):Promise.reject("Not a text layer")}getAutoGroupName(){return"DL_AUTOGROUP_TYPOGRAPHY"}getAddOperations(e){return e&&e.text&&e.fontInfo?[{name:"DL_ADD_TEXT_STYLE_NAME",icon:"AddCharacterStyle",apply:(t,r)=>new Promise((n=>{s.Z.updateLayerInfo().then((()=>n(this._addTextStyleImpl(e,t,r))))}))}]:[]}_getStyleData(e){const t=this._config.findUsableRepresentation(e,m),r=t&&t.getValue(h,f);return null!=r&&r.adbeFont?r:{adbeFont:r}}searchAdditionalElementData(e,t){const r=this._getStyleData(e),n=r&&r.fontFamily&&r.fontFamily.toLowerCase(),i=r&&r.adbeFont&&r.adbeFont.style&&r.adbeFont.style.toLowerCase(),o=r&&r.fontSize&&r.fontSize.value&&r.fontSize.value.toString().toLowerCase();return n&&n.includes(t)||i&&i.includes(t)||o&&o.includes(t)}getAdditionalElementDetails(e){const t=this._getStyleData(e);if(t)return a.zH(t).join(", ")}getAdditionalTooltipData(e){const t=this._getStyleData(e),r=this._config.isDisabled(e);return a.xO(t,r)}formatTooltipContent(e){return a.Aj(e)}getCustomServiceProperties(e){return(0,l.h)(e)}getCustomPanelInfoSubProperties(e){return(0,p.zw)(e,[p.IS.fontFamily,p.IS.fontStyle,p.IS.fontSize,p.IS.fontDecoration,p.IS.alignment,p.IS.fontColorType,p.IS.fontHexColor,p.IS.fontRgbColor,p.IS.fontCmykColor,p.IS.fontLabColor,p.IS.fontHsbColor,p.IS.fontGrayColor,p.IS.fontSpotColor,p.IS.fontOpacity])}}},82359:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(99386),i=r(73306),o=r(84824),a=r(49004);class s extends i.Z{constructor(...e){super(...e),this.type=n.Z.THREE_D_ELEMENT_TYPE,this.typeName="DL_TYPE_3D",this.typeNameSingular="DL_TYPE_3D_SINGULAR",this.thumbnailSize=n.Z.THREE_D_THUMBNAIL_SIZE,this.dragType="3d",this.component=a.Z,this.gridSizeType=n.Z.GRID_TYPE_MEDIUM}getAutoGroupName(){return"DL_AUTOGROUP_3D"}formatTooltipContent(e){const t=e.name,r=e.group,n=e.createdIn,i=e.representationType,a=e.filesize,s=e.disabledMessage,c=e.isStockAsset,l=e.stockId,u=e.isLicensed,d=e.description;return[t,r,n&&`${(0,o.Iu)("DL_CREATED_IN")} ${(0,o.Iu)(n)}`,i&&`${(0,o.Iu)("DL_TYPE")} ${i}`,a,s&&(0,o.Iu)(s),c&&`${(0,o.Iu)("DL_ADOBE_STOCK_MODEL")}: ${l}`,c&&(u?(0,o.Iu)("DL_LICENSED"):(0,o.Iu)("DL_UNLICENSED")),d&&{divider:!0},d]}setStockMetadata(e,t){t["3d_metadata"]&&e.setValue("3d","data",t["3d_metadata"])}}},4328:(e,t,r)=>{"use strict";r.d(t,{Z:()=>k});var n,i,o,a=r(99386),s=r(73306),c=r(62061),l=r(34038),u=r(84824),d=r(31870),p=r(89526),h=r(50265),f=r(62631),m=r(49004),g=r(47320),v=r(18135);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let E=(0,f.Pi)(((o=class extends p.Component{get disabled(){var e,t;return g.Z.isDisabled(this.props.element)&&!this.props.viewMode.startsWith("thumbnail")&&!(null!==(e=(t=a.Z.currentProduct).isExpandedView)&&void 0!==e&&e.call(t))}get videoDuration(){const e=this.props.element.getPrimaryRepresentation(),t=e&&e.getValue("video","data");return t&&t.duration&&c.zW(t.duration)}get videoBadge(){if(["grid","thumbnail-large"].includes(this.props.viewMode)&&this.videoDuration)return p.createElement("div",{className:"panel-video-badge","data-test-id":"video-view-badge"},p.createElement("div",{className:"panel-video-badge-duration","data-test-id":"video-view-duration"},this.videoDuration))}render(){return p.createElement(m.Z,this.props,this.videoBadge)}}).defaultProps={viewMode:"grid"},o.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},v.Z.propTypes),_((i=o).prototype,"disabled",[h.computed],Object.getOwnPropertyDescriptor(i.prototype,"disabled"),i.prototype),_(i.prototype,"videoDuration",[h.computed],Object.getOwnPropertyDescriptor(i.prototype,"videoDuration"),i.prototype),_(i.prototype,"videoBadge",[h.computed],Object.getOwnPropertyDescriptor(i.prototype,"videoBadge"),i.prototype),n=i))||n;var w,x,L=r(2652),O=r.n(L),S=r(58925),T=r(26964),P=r(76485);let I=(0,f.Pi)(((x=class extends p.Component{constructor(...e){super(...e),this._playing=!1,this.handleMouseOver=e=>{this._playing||(this._playing=!0,e.target.play().catch((e=>{const t=e||{},r=t.name,n=t.message;T.Z.log(`Could not play video at ${this.props.asset.video_small_preview_url}. Encountered error ${r} with details ${n}`)})))},this.handleMouseOut=e=>{this._playing=!1,e.target.pause()}}getLicenseLabels(){const e=this.props.asset.is_licensed;if(e){const t=a.Z.STOCK_VIDEO_LICENSE_TYPES.find((({field:t})=>e===t));return t?[t.label]:[]}return(0,d.ST)(this.props.asset).map((({label:e})=>e))}get videoFooter(){const e=this.getLicenseLabels().map((e=>p.createElement("div",{key:e,className:"panel-stock-search-result-video-footer-license","data-test-id":`video-license-${e}`},e)));return p.createElement("div",{className:"panel-stock-search-result-video-footer","data-test-id":"video-footer"},p.createElement("div",{className:"panel-stock-search-result-video-footer-container"},p.createElement("div",{className:"panel-stock-search-result-video-footer-duration","data-test-id":"video-duration"},(0,c.zW)(this.props.asset.duration)),e))}render(){const e=this.props.asset.video_small_preview_url;return p.createElement(S.Z,this.props,!P.Z.hasVideoRenderingBug&&p.createElement("video",{className:"panel-stock-search-result-video",loop:!0,muted:!0,preload:"auto",onMouseOver:this.handleMouseOver,onMouseOut:this.handleMouseOut,"data-test-id":"video"},p.createElement("source",{src:e,type:"video/mp4"})),this.videoFooter)}}).propTypes={asset:O().object.isRequired,layout:O().shape({width:O().number.isRequired,height:O().number.isRequired}).isRequired},w=x))||w;var A=r(46903),C=r(87694);class k extends s.Z{constructor(...e){super(...e),this.type=a.Z.VIDEO_ELEMENT_TYPE,this.typeName="DL_TYPE_VIDEO",this.typeNameSingular="DL_TYPE_VIDEO_SINGULAR",this.thumbnailSize=a.Z.VIDEO_THUMBNAIL_SIZE,this.autoDownloadExternalLinks=!1,this.component=E,this.stockComponent=I}getAutoGroupName(){return"DL_AUTOGROUP_MOTION"}getDragData(e){if(!d.Jw(e))return super.getDragData(e);const t=[],r=l.ku(e.type);let n;return e.representations.forEach((e=>{if(this._config.isRepresentationCompatible(e,r)){n=n||e;const r=e.getValue("video","data")||{};t.push({contentType:e.type,url:e.getContentURL(),width:e.width,height:e.height,contentLength:e.contentLength,framerate:r.framerate,duration:r.duration})}})),t.length>0?{data:t,usedRepresentationForAnalytics:n}:void 0}getAdditionalTooltipData(e){const t={},r=e.getPrimaryRepresentation(),n=this._config.findUsableRepresentation(e);t.description=e.description,n||(t.disabledMessage=`DL_ERROR_UNSUPPORTED_${a.Z.currentProduct.config.translationSuffix}`);const i=n||r;if(i){i.width&&i.height&&(t.dimensions=c.Ny(i.width,i.height)),i.contentLength&&(t.filesize=c.d3(i.contentLength));const e=i.getValue("video","data")||{};e.framerate&&(t.framerate=c.Mb(e.framerate)),e.duration&&(t.duration=c.zW(e.duration))}return t}formatTooltipContent(e){const t=e.name,r=e.group,n=e.dimensions,i=e.duration,o=e.framerate,a=e.filesize,s=e.isStockAsset,c=e.stockId,l=e.isLicensed,d=e.description,p=e.disabledMessage;return[t,r,n,i,o,a,p&&(0,u.Iu)(p),s&&`${(0,u.Iu)("DL_ADOBE_STOCK_VIDEO")}: ${c}`,s&&(l?(0,u.Iu)("DL_LICENSED"):(0,u.Iu)("DL_UNLICENSED")),d&&{divider:!0},d]}isStockAssetDraggable(){return!1}isStockMultiLicense(){return!0}getExtension(e){return(0,A.VI)(e)}getStockCompKeyForLicenseType(e){const t=a.Z.STOCK_VIDEO_LICENSE_TYPES.find((({label:t})=>t===e));return t&&t.field||e}getStockDragData(e){const t=d.ST(e),r=e.comps[t[0].field],n=r.url,i=r.width,o=r.height;return[{content_type:e.content_type,framerate:e.framerate,duration:e.duration,url:n,width:i,height:o}]}setStockMetadata(e,t){(t.framerate||t.duration)&&e.setValue("video","data",{framerate:t.framerate,duration:t.duration})}getBadgeText(e){return(0,A.Q1)(e)}getCustomPanelInfoSubProperties(e){return(0,C.zw)(e,[C.IS.dimensions,C.IS.videoFramesPerSecond,C.IS.videoDuration])}getAdditionalElementDetails(e){const t=(0,C.zw)(e,[C.IS.videoDuration]);return t[0]&&t[0].value}}},85834:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(72373),i=r(50777),o=r(26981),a=r(76485),s=r(99386);const c=new class{_addBool(e,t,r=(()=>!0),n=(()=>{}),i=!1){this._config[e]={label:t,shouldShowInMenu:r,afterHook:n,defaultValue:i}}_addEnum(e,t,r=(()=>!0),n=(()=>{}),i=!1){this._config[e]={enums:t,shouldShowInMenu:r,afterHook:n,defaultValue:i}}constructor(){this._config={},this._addBool("dropZoneIndicators","Enable Drop-Zone Indicators"),this._addEnum("localeDebug",{keys:"Enable Localization Keys",test:"Enable Test Locale"}),this._addBool("recordMetrics","Enable Analytics Recording"),this._addBool("logIngestAPI","Enable Ingest API Logging"),this._addBool("apiLogging","Enable Libraries API Logging",(()=>a.Z.disableAPILoggingByDefault)),this._addBool("publishDiffLogging","Enable Document Library Diff Logging"),this._addBool("showToolkitLibraries","Enable Showing Toolkit Libraries"),this._addBool("ccdDarkestTheme","Enable CCD Darkest Theme",(()=>a.Z.ccdAPI),(()=>{a.Z.ccdAPI.updateTheme({panelBackgroundColor:{color:{alpha:255,green:245,blue:245,red:245}}})})),this._addBool("capture","Enable Capture",i.jK),this._addBool("showDebugHUD","Show Debug HUD"),this._addBool("brandFeatureEnabled","Enable Brands [CCX]",(()=>s.Z.currentProduct.config.showBrandFeatureFlag)),this._addBool("globalSearchBoxEnabled","Enable global searchbar [CCX]",(()=>s.Z.currentProduct.config.showGlobalSearchbarFeatureFlag)),this._addBool("librariesCCLColorThemeEnabled","Enable Color Themes [CCX]",(()=>s.Z.currentProduct.config.showColorThemeFeatureFlag)),this._addBool("enableProjects","Enable Projects experience",(()=>!0),(()=>{}),!0),this._addBool("disableExpandedNavigationLabel","Disable Expanded View Navigation Label [CCX]",(()=>s.Z.currentProduct.config.showDisableExpandedNavigationLabelFeatureFlag)),this._addBool("forceEnableCCLibraries","Force Enable CC Libraries",void 0,(()=>setTimeout((()=>window.location.reload()),2e3))),this._addBool("enableTextStyle","Enable Text Styles",o.jY),this._addBool("enableOpenInAppMenu","Enable Open in App Menu for 3D elements in CCD"),this._addBool("ubeDesignEnabled","Enable new design based on UBE designs [AW]",(()=>s.Z.currentProduct.config.ubeDesignEnabled)),this._addBool("useFakeProjectName","Use Fake Project Name [GenStudio]",(()=>s.Z.currentProduct.config.useFakeProjectName)),this._addBool("enableMockEmptyState","Enable Mock Empty State [GenStudio]",(()=>s.Z.currentProduct.config.enableMockEmptyState))}get(e){if(!this._config[e])throw new Error(`Feature flag ${e} not found`);return n.Z.getDebugValue(e)||a.Z.getFeatureFlag(e)||this._config[e].defaultValue}getMenuItems(){const e=[];return Object.keys(this._config).map((t=>{const r=this._config[t];if(!r.shouldShowInMenu())return;const i=n.Z.getDebugValue(t);r.enums?Object.keys(r.enums).forEach((o=>{const a=r.enums[o],s="string"==typeof a?a:a.label;("string"==typeof a||!a.shouldShowInMenu||a.shouldShowInMenu())&&e.push({label:s,checked:i===o,onClick:()=>{n.Z.setDebugValue(t,i===o?void 0:o),r.afterHook()}})})):e.push({label:this._config[t].label,checked:!0===i,onClick:()=>{n.Z.setDebugValue(t,!i),r.afterHook()}})})),e}}},72373:(e,t,r)=>{"use strict";r.d(t,{Z:()=>E});var n,i,o,a=r(50265),s=r(76485),c=r(34038),l=r(86351),u=r(26964);const d=()=>window.nodeRequire("fs");class p{constructor(e,t){this._settings=a.observable.map(),this._writing=!1,this._pendingWrite=!1,this._path=e,this._fileName=t,this._listenerManager=(0,l.N)(this,["flushed"]);try{this._settings.replace(JSON.parse(d().readFileSync(e+t)))}catch(e){}}_write(){if(this._writing)return void(this._pendingWrite=!0);this._writing=!0;const e=()=>{this._writing=!1,this._pendingWrite?(this._pendingWrite=!1,this._write()):this._listenerManager.notify("flushed")};c.u2(this._path,(()=>{d().writeFile(this._path+this._fileName,JSON.stringify(this._settings.toJSON(),void 0,2),(t=>{t&&(u.Z.log(t),this._pendingWrite=!1),e()}))}))}get(e){return this._settings.get(e)}set(e,t){this._settings.set(e,t),this._write()}}class h{constructor(e){this._settings=a.observable.map(),this._localStorageKey=s.Z.getLocalStorageKey(e);try{let e=s.Z.localStorage.getItem(this._localStorageKey);if("{"!==e[0]){const t=e.split(",");e=t.map((e=>s.Z.localStorage.getItem(e))).join("")}this._settings.replace(JSON.parse(e))}catch(e){}}rebind(e){this._localStorageKey=s.Z.getLocalStorageKey(e),this._save()}get(e){return this._settings.get(e)}_setItem(e,t){try{s.Z.localStorage.setItem(e,t)}catch(e){u.Z.log(`Error - Unable to write to localStorage: ${e}`)}}set(e,t){this._settings.set(e,t),this._save()}_save(){const e=JSON.stringify(this._settings.toJSON()),t=s.Z.maxLocalStorageLength;if(t&&e.length>t){const r=Math.ceil(e.length/t),n=[];for(let i=0;i<r;i++){const r=this._localStorageKey+i;n.push(r),this._setItem(r,e.substr(i*t,t))}this._setItem(this._localStorageKey,n.join(","))}else this._setItem(this._localStorageKey,e)}}const f=e=>s.Z.documentId?`${s.Z.documentId}#${e}-docAssets`:e;let m=(n=a.observable.ref,i=class{constructor(){var e;(e=o)&&Object.defineProperty(this,"_settings",{enumerable:e.enumerable,configurable:e.configurable,writable:e.writable,value:e.initializer?e.initializer.call(this):void 0})}init(e="settings.json",t="debug"){const r=()=>this.load(f(e),f(t));r(),(0,a.reaction)((()=>s.Z.documentId),(()=>{var r;u.Z.log(`Rebinding settings: ${f(e)}`),this._settings.rebind(f(e)),null===(r=this._debugSettings)||void 0===r||r.rebind(f(t))})),(0,a.reaction)((()=>s.Z.localSettingsKey),r)}load(e,t){if(u.Z.log(`Loading settings: ${e}`),!s.Z.supportsFileSystem)return this._settings=new h(e),void(s.Z.hideDebugFlyoutMenu(t)||(this._debugSettings=new h(t)));this._settings=new p(s.Z.getLocalRoot(),e),d().existsSync(s.Z.getGlobalRoot()+t)&&(this._debugSettings=new p(s.Z.getGlobalRoot(),t))}setValue(e,t){this._settings.set(e,t)}clearMap(){var e,t;null===(e=this._settings)||void 0===e||e._settings.clear(),null===(t=this._debugSettings)||void 0===t||t._settings.clear()}getValue(e){return this._settings.get(e)}setDebugValue(e,t){this.hasDebugSettings()&&this._debugSettings.set(e,t)}getDebugValue(e){if(this.hasDebugSettings())return this._debugSettings.get(e)}hasDebugSettings(){return void 0!==this._debugSettings}showDebugMenu(){return this.hasDebugSettings()}addListener(e,t){this._settings.addListener(e,t)}removeListener(e,t){this._settings.removeListener(e,t)}},g=i.prototype,v="_settings",y=[n],b={configurable:!0,enumerable:!0,writable:!0,initializer:null},_={},Object.keys(b).forEach((function(e){_[e]=b[e]})),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=y.slice().reverse().reduce((function(e,t){return t(g,v,e)||e}),_),void 0===_.initializer&&(Object.defineProperty(g,v,_),_=null),o=_,i);var g,v,y,b,_;const E=new m},76485:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=new([r(46916),r(41477),!1,!1,r(3458),r(36881),r(47764),r(63890),!1,!1,!1].filter((e=>e)).map((e=>e.default||e)).find((e=>e.check())))},47764:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>A});class n{constructor(e,t){this.number=e,this.message=t}toString(){return"Error "+this.number+": "+this.message}}class i{constructor(e,t){this._enumName=e,this._enumId=t,this._kind="enum"}toString(){return this._enumName}}class o{constructor(e,t,r,n){this._enumValueName=e,this._enumValueId=t,this._enumId=r,this._enumName=n,this._kind="enumValue"}toString(){return this._enumName+"."+this._enumValueName}}function a(e){return Object.prototype.hasOwnProperty.call(e,"_target")&&"nonCreatable"===e._target._kind}function s(e){if(null===e)return null;if(Array.isArray(e))for(const[t,r]of Object.entries(e))e[t]=s(r);else if(t=e,Object.prototype.hasOwnProperty.call(t,"_kind")&&"creatable"===t._kind)for(const[t,r]of Object.entries(e))a(r)&&(e[t]=s(r));else{if(!a(e))return e;if(Object.prototype.hasOwnProperty.call(e,"_target")&&"nonCreatable"===e._target._kind)return e._target}var t;return e}function c(...e){let t,r;const i=e[0],o=e[1],a=[...e].slice(2);let c=[];c.push(...a[0]),"object"==typeof c&&(c=s(c));try{t=0===a.length?dom.action("call",i,o):dom.action("call",i,o,c)}catch(e){r=e}if(r){if(!r.domain||"ExtendScript"!==r.domain)throw r;throw new n(r.number,r.message)}return d(t)}function l(...e){let t,r;const i=e[0],o=e[1];try{t=dom.action("get",i,o)}catch(e){r=e}if(r){if(!r.domain||"ExtendScript"!==r.domain)throw r;throw new n(r.number,r.message)}return d(t)}function u(){return{get:(e,t,...r)=>e._properties.indexOf(t)>-1||e._collections.indexOf(t)>-1?l(e._target,t):e._methods.indexOf(t)>-1?function(...r){return c(e._target,t,r)}:Reflect.get(e,t,...r),set:(e,t,r,...i)=>e._properties.indexOf(t)>-1?(function(...e){let t,r;const i=e[0],o=e[1];let a=e[2];"object"==typeof a&&(a=s(a));try{t=dom.action("put",i,o,a)}catch(e){r=e}if(r){if(!r.domain||"ExtendScript"!==r.domain)throw r;throw new n(r.number,r.message)}d(t)}(e._target,t,r),!0):Reflect.set(e,t,r,...i)}}function d(e){switch(typeof e){case"undefined":case"number":case"string":case"boolean":return e;case"object":if(Array.isArray(e)){let t;for(t=0;t<e.length;t++)e[t]=d(e[t]);return e}return function(e){if(e._className)return p(e);if(e._enumId){const t=e._enumId,r=e._enumValueId;return window.liveObjectAPI.getEnumerationValue(t,r)}return e}(e)}throw"Unknown type: "+typeof e}function p(e){if(!e._className)throw Error("missing _className");const t=e._kind;if(!t)throw Error("missing _kind");const r=window.liveObjectAPI.getClassInfo(e),n={};let i;if(Object.defineProperty(n,"_target",{value:e,enumerable:!1}),Object.defineProperty(n,"_properties",{value:r._properties,enumerable:!1}),Object.defineProperty(n,"_methods",{value:r._methods,enumerable:!1}),Object.defineProperty(n,"_collections",{value:r._collections,enumerable:!1}),"nonCreatable"===t)r._properties.forEach((e=>{n[e]=null})),i=new Proxy(n,u());else if("collection"===t)r._properties.forEach((e=>{n[e]=null})),i=new Proxy(n,{get(e,t){const r=parseInt(t);return isNaN(r)?e._properties.indexOf(t)>-1?l(e._target,t):e._methods.indexOf(t)>-1?function(...r){return c(e._target,t,r)}:d(dom.action("call",e._target,"getElement",t)):d(dom.action("call",e._target,"getElement",r))},set:(...e)=>Reflect.set(...e)});else if("creatable"===t){for(const t in e)"object"==typeof e[t]&&"nonCreatable"===e[t]._kind&&(e[t]=p(e[t]));i=e}return i}window.liveObjectAPI=new class{getClassInfo(e){this.classInfoCache||(this.classInfoCache=new Map);const t=e._className;let r=this.classInfoCache.get(t);return r&&!this.disableCache||(r=dom.action("getClassInfo",e),this.classInfoCache.set(t,r)),r}setDisableCache(e){this.disableCache=e}addEnumValue(e,t){this.enumValueCache||(this.enumValueCache=new Map);const r=e._enumId;this.enumValueCache[r]||(this.enumValueCache[r]=new Map),this.enumValueCache[r][t._enumValueId]=t}getEnumerationValue(e,t){const r=this.enumValueCache[e];if(r)return r[t]}},window.liveObjectAPI.setDisableCache(!1);try{window.app=p({_className:"Application",_kind:"nonCreatable"}),dom.action("getCreatableClasses").forEach((e=>{r.g[e]=class extends class{constructor(e){this._className=e,this._kind="creatable"}}{constructor(){super(e);const t=dom.action("instantiateProxy",{_className:e});for(const e in t)Object.hasOwnProperty.call(t,e)&&(this[e]=t[e])}}})),dom.action("getEnumerations").forEach((e=>{const t=e._enumName,n=e._enumId,a=new i(t,n);r.g[t]=a,e._values.forEach((e=>{const r=e._enumValueName,i=e._enumValueId,s=new o(r,i,n,t);a[r]=s,window.liveObjectAPI.addEnumValue(a,s)}))}))}catch(e){}const h=window.app;var f=r(7218),m=r(76485),g=r(15577),v=r(26964);function y(){y=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function b(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function _(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){b(o,n,i,a,s,"next",e)}function s(e){b(o,n,i,a,s,"throw",e)}a(void 0)}))}}class E{constructor(){this.previewMaxWidth=248,this.previewMaxHeight=188}getThumbnailOptions(e,t){const n=new r.g.ExportOptionsPNG24;n.antiAliasing=!0,n.transparency=!0;const i=new r.g.Dimensions;return i.width=e||this.previewMaxWidth,i.height=t||this.previewMaxHeight,n.dimensions=i,n}static shortenString(e,t,r){return r=r||10,(e=e.replace(/(<|>|:|"|\/|\\|\||\?|\*|[\x00-\x1F])|\(|\)|\{|\}|,/g,"")).length>r&&(e=e.substr(0,r-1),t&&(e+="...")),e}saveAsPNG(e,t,r,n){const i=window.app,o=this.getThumbnailOptions(r,n);t?i.activeDocument.exportFile(e,ExportType.PNG24,o):i.activeDocument.exportSelectionAsPNG(e,o)}placeAsset(e){return _(y().mark((function t(){var r,n,i,o,a,s,c,l;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r=window.app,n=m.Z.fs,i=window.nodeRequire("uxp").storage.localFileSystem,t.next=6,i.getTemporaryFolder();case 6:if(o=t.sent,a={_path:e.filePath},r&&0!==r.documents.length&&r.activeDocument){t.next=17;break}if(!0!==e.isOpenIn){t.next=13;break}r.documents.add(),t.next=17;break;case 13:return s=e.filePath.substr(e.filePath.lastIndexOf(".")+1).toLowerCase(),c=o.nativePath+"/"+(new Date).valueOf()+"."+s,n.copyFile(e.filePath,c),t.abrupt("return");case 17:l=!e.isOpenIn,r.activeDocument.importFile(a,e.isLinked,e.libraryName,e.itemName,e.elementRef,e.modifiedTime,e.creationTime,e.adobeStockId,e.adobeStockLicense,l),t.next=24;break;case 21:t.prev=21,t.t0=t.catch(0),v.Z.log(t.t0);case 24:case"end":return t.stop()}}),t,null,[[0,21]])})))()}saveAssets(e){var t=this;return _(y().mark((function r(){var n,i,o,a,s,c,l,u;return y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=window.app,i={files:[]},o=window.nodeRequire("uxp").storage.localFileSystem,r.next=5,o.getTemporaryFolder();case 5:return a=r.sent,s=e.name+".png",r.next=9,a.createFile(s,{overwrite:!0});case 9:return c=r.sent,t.saveAsPNG({_path:c.nativePath},!1,e.maxWidth,e.maxHeight),i.rendition="/private/"+c.nativePath,l=e.name+".ai",r.next=15,a.createFile(l,{overwrite:!0});case 15:return u=r.sent,n.activeDocument.exportSelectionAsAi({_path:u.nativePath}),i.files.push({path:u.nativePath,relationship:"primary"}),i.layerName=n.activeDocument.activeLayer.name,r.abrupt("return",JSON.stringify(i));case 20:case"end":return r.stop()}}),r)})))()}static pushUnique(e,t,r){if(void 0===e)return;let n;for(n=0;n<r.length;n++)if(r[n].data===e)return;r.push({colorType:t,data:e})}static populateTextOptionsInLayerObject(e,t,r,n,i){const o=window.app;if(e.kind="LayerKind.TEXT",""===t.contents)e.text="Random Text";else{e.text=t.contents;const r=100;e.text.length>r&&(e.text=e.text.substr(0,r-1))}if(r.fillTooltip="AI_TEXT_FILL",n.strokeTooltip="AI_TEXT_STROKE",e.canAddTextAsset=!0,t&&t.length>0&&t.characterAttributes&&t.characterAttributes.textFont)i.isFontAvailableinAI=o.textFonts.isFontAvailable(t.characterAttributes.textFont.name);else if(t&&0===t.length){const t=o.textFonts.getCurrentFont();i.isFontAvailableinAI=o.textFonts.isFontAvailable(t),e.canAddTextAsset=!0,e.insertionPointExists=!0}}getLayerName(){const e=window.app;return new Promise((function(t){t(e.activeDocument.activeLayer.name)}))}getLayerInfo(){const e=window.app;return new Promise((function(t){try{const r={},n=[],i={fillTooltip:"FILL"},o={strokeTooltip:"STROKE"},a={isFontAvailableinAI:!0},s=e.selection;if(s){let t=s;r.kind="",t&&(1===t.length&&t[0]&&t[0]._target&&"TextFrame"===t[0]._target._className?(t=t[0].textRange,E.populateTextOptionsInLayerObject(r,t,i,o,a)):t._target&&"TextRange"===t._target._className&&E.populateTextOptionsInLayerObject(r,t,i,o,a));try{const t=e.activeDocument.defaultFillColor;E.pushUnique(g.Z.solidColorToData(t),i.fillTooltip,n)}catch(e){v.Z.log(e)}try{const t=e.activeDocument.defaultStrokeColor;E.pushUnique(g.Z.solidColorToData(t),o.strokeTooltip,n)}catch(e){v.Z.log(e)}r.colors=n,r.name="None",t[0]&&t[0].name&&""!==t[0].name?(r.name=t[0].name,r.fullName=t[0].name):e.activeDocument.activeLayer&&(r.name=e.activeDocument.activeLayer.name,r.fullName=e.activeDocument.activeLayer.name),r.name=E.shortenString(r.name,!1,248),r.selectionExists=s&&s.length>0,r.isAppliedCharStyleSupported=!1,r.isAppliedParaStyleSupported=!1,"LayerKind.TEXT"===r.kind&&a.isFontAvailableinAI&&(r.isAppliedCharStyleSupported=!0,r.isAppliedParaStyleSupported=!0),s&&s._target&&"TextRange"===s._target._className&&(r.selectionExists=!1,s.length>0&&(r.textSelectionExists=!0))}t(r)}catch(e){v.Z.log(e)}}))}openAsset(e){try{return h.open({_path:e}).name}catch(e){v.Z.log(e)}}openAssetForEdit(e,t,r){if(!t)return Promise.resolve(this.openAsset(e));try{const n=new OpenOptions;n.addToRecentFiles=!1;const i=h.openCloudLibraryAssetForEditing({_path:e},{_path:t},r,n);return Promise.resolve(i.name)}catch(e){v.Z.log(e)}}loadAndSelectBrush(e,t){try{h.activeDocument.brushes.add({_path:e},t)}catch(e){}}openDocumentFromTemplate(e){try{h.open({_path:e})}catch(e){}}}const w=new E;function x(){x=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function L(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function O(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){L(o,n,i,a,s,"next",e)}function s(e){L(o,n,i,a,s,"throw",e)}a(void 0)}))}}const S=new class{constructor(){this.PARASTYLE_REPRESENTATION_JSON_TYPE="application/vnd.adobe.paragraphstyle+json",this.CHARSTYLE_REPRESENTATION_JSON_TYPE="application/vnd.adobe.characterstyle+json",this.GET_CHARACTER_STYLE="Get Character Style",this.GET_PARAGRAPH_STYLE="Get Paragraph Style",this.GET_CHARACTER_STYLE_BY_ID="Get Character Style By Id",this.GET_PARAGRAPH_STYLE_BY_ID="Get Paragraph Style By Id",this.GET_COLLISION_RESPONCE="Get Collision Response",this.MAX_STYLE_NAME_SIZE=255,this.TypographyArray=[],this.GlobalConflictResolutionStrategy={},this.ConflictResolutionStrategy={wasNotOk:1,useExisting:2,useIncoming:3}}isEmptyObject(e){let t;for(t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}collectCharacterAttributes(e,t){const r={};let n,i;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n))try{r[n]=t[n]}catch(e){v.Z.log(e)}if(void 0!==r.fillColor&&("String"===r.fillColor.__class__?e.color=r.fillColor:g.Z.isColorSupported(r.fillColor)&&(e.color=g.Z.solidColorToData(r.fillColor))),void 0!==r.strokeColor&&("String"===r.strokeColor.__class__?e.adbeIlstStrokeColor=r.strokeColor:g.Z.isColorSupported(r.strokeColor)&&(e.adbeIlstStrokeColor=g.Z.solidColorToData(r.strokeColor))),void 0!==r.textFont&&null!==r.textFont&&(e.adbeFont={family:r.textFont.family,name:r.textFont.name,postScriptName:r.textFont.name,style:r.textFont.style},e.fontFamily=r.textFont.family),void 0!==r.size&&(e.fontSize={type:"pt",value:r.size}),void 0!==r.textFont&&null!==r.textFont&&void 0!==r.textFont.style){const t=r.textFont.style.toLowerCase();-1!==t.indexOf("italic")?e.fontStyle="italic":-1!==t.indexOf("oblique")&&(e.fontStyle="oblique"),-1!==t.indexOf("bold")&&(e.fontWeight="bold"),-1===t.indexOf("light")&&-1===t.indexOf("thin")||(e.fontWeight="lighter")}if(void 0!==r.alignment&&(e.adbeIlstAlignment=r.alignment),void 0!==r.alternateGlyphs)try{e.adbeIlstAlternateGlyphs=r.alternateGlyphs}catch(t){e.adbeIlstAlternateGlyphs=AlternateGlyphsForm.DEFAULTFORM.toString()}if(void 0!==r.baselineDirection&&(e.adbeIlstBaselineDirection=r.baselineDirection,"BaselineDirectionType.TateChuYoko"===e.adbeIlstBaselineDirection&&(e.adbeIdsnTatechuyoko=!0)),void 0!==r.figureStyle&&(e.adbeIlstFigureStyle=r.figureStyle),void 0!==r.kerningMethod)try{e.adbeIlstKerningMethod=r.kerningMethod}catch(t){e.adbeIlstKerningMethod=AutoKernType.AUTO.toString()}return void 0!==r.openTypePosition&&(e.adbeIlstOpenTypePosition=r.openTypePosition),void 0!==r.wariChuJustification&&(e.adbeIlstWariChuJustification=r.wariChuJustification),void 0!==r.akiLeft&&(e.adbeIlstAkiLeft=r.akiLeft),void 0!==r.akiRight&&(e.adbeIlstAkiRight=r.akiRight),void 0!==r.autoLeading&&r.autoLeading&&(e.adbeAutoLeading=!0),void 0!==r.baselineShift&&(e.baselineShift={type:"pt",value:r.baselineShift}),void 0!==r.connectionForms&&(e.adbeIlstConnectionForms=r.connectionForms),void 0!==r.horizontalScale&&(e.adbeHorizontalScale=r.horizontalScale),void 0!==r.leading&&(e.lineHeight={type:"pt",value:r.leading}),void 0!==r.language&&(e.adbeIdsnAppliedLanguageName=r.language),void 0!==r.noBreak&&r.noBreak&&(e.whiteSpace="nowrap"),void 0!==r.overprintFill&&(e.adbeIlstOverprintFill=r.overprintFill),void 0!==r.overprintStroke&&(e.adbeIlstOverprintStroke=r.overprintStroke),void 0!==r.proportionalMetrics&&(e.adbeIlstProportionalMetrics=r.proportionalMetrics),void 0!==r.rotation&&(e.adbeIlstRotation=r.rotation),void 0!==r.strokeWeight&&e.adbeIlstStrokeColor&&(e.adbeIlstStrokeWeight=r.strokeWeight),void 0!==r.tateChuYokoHorizontal&&(e.adbeIlstTateChuYokoHorizontal=r.tateChuYokoHorizontal),void 0!==r.tateChuYokoVertical&&(e.adbeIlstTateChuYokoVertical=r.tateChuYokoVertical),e.fontFeatureSettings=[],e.fontFeatureSettingsObject={},void 0!==r.swash&&(e.fontFeatureSettingsObject.adbeOTFSwash=r.swash,r.swash&&e.fontFeatureSettings.push("swsh")),void 0!==r.justificationAlternates&&(e.fontFeatureSettingsObject.adbeOTFJustificationAlternates=r.justificationAlternates,r.justificationAlternates&&e.fontFeatureSettings.push("jalt")),void 0!==r.stylisticSets&&(e.adbeIdsnOtfStylisticSets=2*r.stylisticSets),void 0!==r.ordinals&&(e.fontFeatureSettingsObject.adbeOTFOrdinals=r.ordinals,r.ordinals&&e.fontFeatureSettings.push("ordn")),void 0!==r.ornaments&&(e.fontFeatureSettingsObject.adbeOTFOrnaments=r.ordinals,r.ornaments&&e.fontFeatureSettings.push("ornm")),void 0!==r.kana&&(e.fontFeatureSettingsObject.adbeOTFHVKana=r.kana,r.kana&&e.fontFeatureSettings.push("hvkn")),void 0!==r.discretionaryLigature&&(e.fontFeatureSettingsObject.adbeOTFDiscretionaryLigatures=r.discretionaryLigature,r.discretionaryLigature&&e.fontFeatureSettings.push("dlig")),void 0!==r.contextualLigature&&(e.fontFeatureSettingsObject.adbeOTFContextualAlternates=r.contextualLigature,r.contextualLigature&&e.fontFeatureSettings.push("clig")),void 0!==r.ligature&&(e.fontFeatureSettingsObject.adbeLigatures=r.ligature,r.ligature&&e.fontFeatureSettings.push("liga")),void 0!==r.fractions&&(e.fontFeatureSettingsObject.adbeOTFFractions=r.fractions,r.fractions&&e.fontFeatureSettings.push("frac")),void 0!==r.titling&&(e.fontFeatureSettingsObject.adbeOTFTitlingAlternates=r.titling,r.titling&&e.fontFeatureSettings.push("titl")),void 0!==r.stylisticAlternates&&(e.fontFeatureSettingsObject.adbeOTFStylisticAlternates=r.stylisticAlternates,r.stylisticAlternates&&e.fontFeatureSettings.push("salt")),void 0!==r.italics&&(e.fontFeatureSettingsObject.adbeOTFRomanItalics=r.italics,r.italics&&e.fontFeatureSettings.push("rita")),r.baselinePosition===FontBaselineOption.SUPERSCRIPT.toString()?(e.fontFeatureSettingsObject.adbePosition="Position.SUPERSCRIPT",e.fontFeatureSettings.push("sups")):r.baselinePosition===FontBaselineOption.SUBSCRIPT.toString()?(e.fontFeatureSettingsObject.adbePosition="Position.SUBSCRIPT",e.fontFeatureSettings.push("subs")):r.baselinePosition===FontBaselineOption.NORMALBASELINE.toString()&&(e.fontFeatureSettingsObject.adbePosition="Position.NORMAL"),void 0!==r.capitalization&&(r.capitalization===FontCapsOption.NORMALCAPS.toString()?e.fontFeatureSettingsObject.adbeCapitalization="FontCapsOption.NORMAL":e.fontFeatureSettingsObject.adbeCapitalization=r.capitalization),r.capitalization===FontCapsOption.ALLSMALLCAPS.toString()?e.fontFeatureSettings.push("c2sc"):r.capitalization===FontCapsOption.SMALLCAPS.toString()?e.fontFeatureSettings.push("smcp"):r.capitalization===FontCapsOption.ALLCAPS.toString()&&(e.textTransform="capitalize"),this.isEmptyObject(e.fontFeatureSettingsObject)&&delete e.fontFeatureSettingsObject,0===e.fontFeatureSettings.length&&delete e.fontFeatureSettings,void 0!==r.tracking&&(e.adbeTracking=r.tracking),e.adbeTracking&&(e.letterSpacing={type:"em",value:(e.adbeTracking/1e3).toFixed(2)}),void 0!==r.Tsume&&(e.adbeIlstTsume=r.Tsume),e.textDecorationObject={},void 0!==r.underline&&(e.textDecorationObject.adbeUnderline=r.underline,r.underline&&(e.textDecoration?e.textDecoration.push("underline"):e.textDecoration=["underline"])),void 0!==r.strikeThrough&&(e.textDecorationObject.adbeStrikethrough=r.strikeThrough,r.strikeThrough&&(e.textDecoration?e.textDecoration.push("line-through"):e.textDecoration=["line-through"])),void 0!==r.verticalScale&&(e.adbeVerticalScale=r.verticalScale),void 0!==r.wariChuCharactersAfterBreak&&(e.adbeIlstWariChuCharactersAfterBreak=r.wariChuCharactersAfterBreak),void 0!==r.wariChuCharactersBeforeBreak&&(e.adbeIlstWariChuCharactersBeforeBreak=r.wariChuCharactersBeforeBreak),void 0!==r.wariChuEnabled&&(e.adbeIlstWariChuEnabled=r.wariChuEnabled),void 0!==r.wariChuLineGap&&(e.adbeIlstWariChuLineGap=r.wariChuLineGap),void 0!==r.wariChuLines&&(e.adbeIlstWariChuLines=r.wariChuLines),void 0!==r.wariChuScale&&(e.adbeIlstWariChuScale=r.wariChuScale),void 0!==r.kashidas&&(e.adbeIdsnKashidas=r.kashidas),void 0!==r.dirOverride&&(i=r.dirOverride.split(".",2)[1],e.adbeIdsnCharacterDirection="CharacterDirectionOptions."+i),void 0!==r.digitSet&&(e.adbeIdsnDigitsType=r.digitSet),void 0!==r.diacVPos&&(e.adbeIdsnDiacriticPosition=r.diacVPos),void 0!==r.diacXOffset&&(e.adbeIdsnXOffsetDiacritic=r.diacXOffset),void 0!==r.diacYOffset&&(e.adbeIdsnYOffsetDiacritic=r.diacYOffset),e}collectParagraphAttributes(e,t){this.getJustificationAttributes(e,t),this.getScalingAttributes(e,t),this.getSpacingAttributes(e,t),this.getHyphenationAttributes(e,t),this.getIndentationAttributes(e,t),this.getOtherAttributes(e,t),this.getTabAttributes(e,t)}convertJustificationString(e,t){let r="Alignment.";switch(t&&(r="Justification."),e){case"Alignment.LEFT_ALIGN":case"Justification.LEFT_ALIGN":return"LEFT";case"Alignment.CENTER_ALIGN":case"Justification.CENTER_ALIGN":return"CENTER";case"Alignment.RIGHT_ALIGN":case"Justification.RIGHT_ALIGN":return"RIGHT";case"Alignment.LEFT_JUSTIFIED":case"Justification.LEFT_JUSTIFIED":return"FULLJUSTIFYLASTLINELEFT";case"Alignment.CENTER_JUSTIFIED":case"Justification.CENTER_JUSTIFIED":return"FULLJUSTIFYLASTLINECENTER";case"Alignment.RIGHT_JUSTIFIED":case"Justification.RIGHT_JUSTIFIED":return"FULLJUSTIFYLASTLINERIGHT";case"Alignment.FULLY_JUSTIFIED":case"Justification.FULLY_JUSTIFIED":return"FULLJUSTIFY";case"Justification.LEFT":return r+"LEFT_ALIGN";case"Justification.CENTER":return r+"CENTER_ALIGN";case"Justification.RIGHT":return r+"RIGHT_ALIGN";case"Justification.FULLJUSTIFYLASTLINELEFT":return r+"LEFT_JUSTIFIED";case"Justification.FULLJUSTIFYLASTLINECENTER":return r+"CENTER_JUSTIFIED";case"Justification.FULLJUSTIFYLASTLINERIGHT":return r+"RIGHT_JUSTIFIED";case"Justification.FULLJUSTIFY":return r+"FULLY_JUSTIFIED";default:return""}}convertKinsokuTypeString(e){switch(e){case"KinsokuType.KINSOKU_PUSH_IN_FIRST":return"KinsokuOrderEnum.PUSHIN";case"KinsokuType.KINSOKU_PUSH_OUT_FIRST":return"KinsokuOrderEnum.PUSHOUTFIRST";case"KinsokuType.KINSOKU_PUSH_OUT_ONLY":return"KinsokuOrderEnum.PUSHOUTONLY";case"KinsokuOrderEnum.PUSHIN":return"KinsokuType.KINSOKU_PUSH_IN_FIRST";case"KinsokuOrderEnum.PUSHOUTONLY":return"KinsokuType.KINSOKU_PUSH_OUT_ONLY";case"KinsokuOrderEnum.PUSHOUTFIRST":return"KinsokuType.KINSOKU_PUSH_OUT_FIRST";default:return""}}convertTabAlignmentTypeString(e){const t="TabStopAlignment.";switch(e){case"TabStopAlignment.LEFT_ALIGN":return TabStopAlignment.Left;case"TabStopAlignment.RIGHT_ALIGN":return TabStopAlignment.Right;case"TabStopAlignment.CENTER_ALIGN":return TabStopAlignment.Center;case"TabStopAlignment.CHARACTER_ALIGN":return TabStopAlignment.Decimal;case"TabType.Left":return t+"LEFT_ALIGN";case"TabType.Right":return t+"RIGHT_ALIGN";case"TabType.Center":return t+"CENTER_ALIGN";case"TabType.Decimal":return t+"CHARACTER_ALIGN";default:return""}}convertComposerEngineTypeString(e){const t="ComposerType.";switch(e){case"ComposerType.WorldReady":return ComposerEngineType.optycaComposer;case"ComposerType.Japanese":case"ComposerType.Adobe":return ComposerEngineType.latinCJKComposer;case"ComposerEngineType.optycaComposer":return t+"WorldReady";case"ComposerEngineType.latinCJKComposer":return!0===h.preferences.getBooleanPreference("showAsianTextOptions")?t+"Japanese":t+"Adobe";default:return""}}getJustificationAttributes(e,t){try{void 0!==t.justification&&(e.adbeParaAlignment=this.convertJustificationString(t.justification,!1))}catch(e){v.Z.log(e)}try{if(void 0!==t.singleWordJustification){const r=t.singleWordJustification;e.adbeSingleWordJustification=this.convertJustificationString(r,!0)}}catch(e){v.Z.log(e)}}getSpacingAttributes(e,t){try{void 0!==t.minimumWordSpacing&&(e.adbeMinimumWordSpacing=t.minimumWordSpacing)}catch(e){v.Z.log(e)}try{void 0!==t.desiredWordSpacing&&(e.adbeDesiredWordSpacing=t.desiredWordSpacing)}catch(e){v.Z.log(e)}try{void 0!==t.maximumWordSpacing&&(e.adbeMaximumWordSpacing=t.maximumWordSpacing)}catch(e){v.Z.log(e)}try{void 0!==t.minimumLetterSpacing&&(e.adbeMinimumLetterSpacing=t.minimumLetterSpacing)}catch(e){v.Z.log(e)}try{void 0!==t.desiredLetterSpacing&&(e.adbeDesiredLetterSpacing=t.desiredLetterSpacing)}catch(e){v.Z.log(e)}try{void 0!==t.maximumLetterSpacing&&(e.adbeMaximumLetterSpacing=t.maximumLetterSpacing)}catch(e){v.Z.log(e)}try{void 0!==t.spaceAfter&&(e.adbeSpaceAfter={type:"pt",value:t.spaceAfter})}catch(e){v.Z.log(e)}try{void 0!==t.spaceBefore&&(e.adbeSpaceBefore={type:"pt",value:t.spaceBefore})}catch(e){v.Z.log(e)}}getScalingAttributes(e,t){try{void 0!==t.minimumGlyphScaling&&(e.adbeMinimumGlyphScaling=t.minimumGlyphScaling)}catch(e){v.Z.log(e)}try{void 0!==t.desiredGlyphScaling&&(e.adbeDesiredGlyphScaling=t.desiredGlyphScaling)}catch(e){v.Z.log(e)}try{void 0!==t.maximumGlyphScaling&&(e.adbeMaximumGlyphScaling=t.maximumGlyphScaling)}catch(e){v.Z.log(e)}}getHyphenationAttributes(e,t){try{void 0!==t.hyphenation&&(e.adbeHyphenation=t.hyphenation)}catch(e){v.Z.log(e)}void 0!==t.hyphenationZone&&(e.adbeHyphenationZone={type:"pt",value:t.hyphenationZone}),void 0!==t.hyphenateCapitalizedWords&&(e.adbeHyphenateCapitalizedWords=t.hyphenateCapitalizedWords);try{void 0!==t.hyphenationPreference&&(e.adbeHyphenWeight=100*t.hyphenationPreference)}catch(e){v.Z.log(e)}try{void 0!==t.maximumConsecutiveHyphens&&(e.adbeHyphenateLimit=t.maximumConsecutiveHyphens)}catch(e){v.Z.log(e)}try{void 0!==t.minimumAfterHyphen&&(e.adbeHyphenateAfterFirst=t.minimumAfterHyphen)}catch(e){v.Z.log(e)}try{void 0!==t.minimumBeforeHyphen&&(e.adbeHyphenateBeforeLast=t.minimumBeforeHyphen)}catch(e){v.Z.log(e)}try{void 0!==t.minimumHyphenatedWordSize&&(e.adbeHyphenateWordsLongerThan=t.minimumHyphenatedWordSize)}catch(e){v.Z.log(e)}}getIndentationAttributes(e,t){try{void 0!==t.firstLineIndent&&(e.adbeFirstLineIndent={type:"pt",value:t.firstLineIndent})}catch(e){v.Z.log(e)}try{void 0!==t.leftIndent&&(e.adbeLeftIndent={type:"pt",value:t.leftIndent})}catch(e){v.Z.log(e)}try{void 0!==t.rightIndent&&(e.adbeRightIndent={type:"pt",value:t.rightIndent})}catch(e){v.Z.log(e)}}getOtherAttributes(e,t){try{void 0!==t.paragraphDirection&&(e.adbeIdsnParagraphDirection=t.paragraphDirection)}catch(e){v.Z.log(e)}try{void 0!==t.kashidaWidth&&(e.adbeIdsnKashidaWidth=t.kashidaWidth)}catch(e){v.Z.log(e)}try{void 0!==t.composerEngine&&(e.adbeIlstComposerEngine=this.convertComposerEngineTypeString(t.composerEngine))}catch(e){v.Z.log(e)}try{void 0!==t.bunriKinshi&&(e.adbeBunriKinshi=t.bunriKinshi)}catch(e){v.Z.log(e)}try{void 0!==t.kinsokuOrder&&(e.adbeKinsokuType=this.convertKinsokuTypeString(t.kinsokuOrder))}catch(e){v.Z.log(e)}try{void 0!==t.autoLeadingAmount&&(e.adbeParaAutoLeading=t.autoLeadingAmount)}catch(e){v.Z.log(e)}try{if(void 0!==t.burasagariType)switch(t.burasagariType){case BurasagariTypeEnum.Forced.toString():e.adbeIlstBurasagariType="BurasagariTypeEnum.Forced";break;case BurasagariTypeEnum.Standard.toString():e.adbeIlstBurasagariType="BurasagariTypeEnum.Standard";break;case BurasagariTypeEnum.None.toString():e.adbeIlstBurasagariType="BurasagariTypeEnum.None"}}catch(e){v.Z.log(e)}try{void 0!==t.everyLineComposer&&(e.adbeIlstEveryLineComposer=t.everyLineComposer)}catch(e){v.Z.log(e)}try{void 0!==t.leadingType&&(e.adbeLeadingModel=t.leadingType)}catch(e){v.Z.log(e)}try{void 0!==t.kurikaeshiMojiShori&&(e.adbeIlstKurikaeshiMojiShori=t.kurikaeshiMojiShori)}catch(e){v.Z.log(e)}if(void 0!==t.mojikumi&&(e.adbeIlstMojikumi=t.mojikumi),void 0!==t.kinsoku)switch(t.kinsoku){case"Hard":e.adbeKinsokuSet="KinsokuSet.HARD_KINSOKU";break;case"Soft":e.adbeKinsokuSet="KinsokuSet.SOFT_KINSOKU";break;case"None":e.adbeKinsokuSet="KinsokuSet.NOTHING"}try{void 0!==t.romanHanging&&(e.adbeIlstRomanHanging=t.romanHanging)}catch(e){v.Z.log(e)}}getTabAttributes(e,t){try{if(void 0!==t.tabStops){e.adbeTabStops=[];const r=t.tabStops;let n,i,o={};for(i=0;i<r.length;++i)n=r[i],o={},o.adbeTabAlignment=this.convertTabAlignmentTypeString(n.alignment),o.adbeTabAlignmentChar=n.alignmentCharacter,o.adbeTabLeader=n.leader,o.adbeTabPosition={type:"pt",value:n.position},e.adbeTabStops.push(o);0===e.adbeTabStops.length&&delete e.adbeTabStops}}catch(e){v.Z.log(e)}}captureText(e){let t={};t=JSON.parse(e);const r=t.styles;let n,i,o,a,s;for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n=r[i],a={},s=n.type,o=n.value,delete o.styleName,this.collectCharacterAttributes(a,o),"application/vnd.adobe.paragraphstyle+json"===s&&this.collectParagraphAttributes(a,o),n.value=a);return t}getTextInfo(){var e=this;return O(x().mark((function t(){var r,n,i,o,a,s,c,l,u,d;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r={},(i=h.activeDocument.selection)&&i._target&&"TextRange"===i._target._className?n=i:Array.isArray(i)&&1===i.length&&i[0]&&i[0]._target&&"TextFrame"===i[0]._target._className&&(n=i[0].textRange),!n){t.next=14;break}return o=window.nodeRequire("uxp").storage.localFileSystem,t.next=7,o.getTemporaryFolder();case 7:a=t.sent,s=a.nativePath+"TextPreview"+(new Date).valueOf(),c=s+".ai",l=s+".png",u=h.sendScriptMessage("Design Library","Get Add Text JSON",s),d=e.captureText(u),e.isEmptyObject(d)?v.Z.log("this.getTextInfo->failed creating text info"):(r.primaryRepresentation={},r.primaryRepresentation.filePath=c,r.primaryRepresentation.isFile=!0,r.primaryRepresentation.representationType="application/illustrator-text",r.textInfo=d,r.previewPath=l);case 14:return t.abrupt("return",JSON.stringify(r));case 15:case"end":return t.stop()}}),t)})))()}getParagraphStyle(){var e=this;return O(x().mark((function t(){var r,n,i,o,a,s,c;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={},n={},i=window.nodeRequire("uxp").storage.localFileSystem,t.next=5,i.getTemporaryFolder();case 5:o=t.sent,a=o.nativePath+"TextStylePreview"+(new Date).valueOf()+".png";try{if((c=h.sendScriptMessage("Design Library",e.GET_PARAGRAPH_STYLE,a))&&(s=JSON.parse(c)),s.styleName&&(r.styleName=s.styleName),s){try{e.collectParagraphAttributes(n,s)}catch(e){v.Z.log("Error ILST->this.getCharacterStyle()->collectParagraphAttributes() ",e)}try{e.collectCharacterAttributes(n,s)}catch(e){v.Z.log("Error ILST->this.getCharacterStyle()->collectCharacterAttributes() ",e)}}r.styleInfo=n,r.previewPath=a}catch(e){v.Z.log("Error ILST->this.getParagraphStyle()",e)}return t.abrupt("return",r);case 9:case"end":return t.stop()}}),t)})))()}getCharacterStyle(){var e=this;return O(x().mark((function t(){var r,n,i,o,a,s,c;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=window.nodeRequire("uxp").storage.localFileSystem,t.next=3,r.getTemporaryFolder();case 3:n=t.sent,i=n.nativePath+"TextStylePreview"+(new Date).valueOf()+".png",o={};try{if((s=h.sendScriptMessage("Design Library",e.GET_CHARACTER_STYLE,i))&&(a=JSON.parse(s)),c={},a.styleName&&(o.styleName=a.styleName),a)try{e.collectCharacterAttributes(c,a)}catch(e){v.Z.log("Error ILST->this.getCharacterStyle()->collectCharacterAttributes() ",e)}o.styleInfo=c,o.previewPath=i}catch(e){v.Z.log("Error ILST->this.getCharacterStyle()",e)}return t.abrupt("return",o);case 8:case"end":return t.stop()}}),t)})))()}getParaStyleInfo(){var e=this;return O(x().mark((function t(){var r;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.getParagraphStyle();case 3:return r=t.sent,t.abrupt("return",JSON.stringify(r));case 7:t.prev=7,t.t0=t.catch(0),v.Z.log("ILST.jsx-getParaStyleInfo()",t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()}getCharStyleInfo(){var e=this;return O(x().mark((function t(){var r;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.getCharacterStyle();case 3:return r=t.sent,t.abrupt("return",JSON.stringify(r));case 7:t.prev=7,t.t0=t.catch(0),v.Z.log("ILST.jsx-getParaStyleInfo()",t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()}processStyleName(e){return e.length>=this.MAX_STYLE_NAME_SIZE&&(e=e.substring(0,this.MAX_STYLE_NAME_SIZE)),e}getParagraphStyleJSONStringfromAI(e,t){const r={};return r.styleName=e,r.previewPath=t||"null",h.sendScriptMessage("Design Library",this.GET_PARAGRAPH_STYLE_BY_ID,JSON.stringify(r))}getCharacterStyleJSONStringfromAI(e,t){const r={};return r.styleName=e,r.previewPath=t||"null",h.sendScriptMessage("Design Library",this.GET_CHARACTER_STYLE_BY_ID,JSON.stringify(r))}removeParagraphStyle(e){const t=h.activeDocument.paragraphStyles.getByName(e);t&&t.remove()}removeCharacterStyle(e){const t=h.activeDocument.characterStyles.getByName(e);t&&t.remove()}updateRegistrationColor(){try{const e=h.activeDocument,t=e.spots,r=t.length;let n;for(n=0;n<r;n++)if(t[n].colorType===ColorModel.REGISTRATION)return void(this.RegistrationColor=e.swatches.getByName(t[n].name).color)}catch(e){v.Z.log("Error while reading registration color",e)}}addCharacterAttributesToStyle(e,t,r){let n,i,o=0;if(!h.activeDocument)return;if(t.adbeFont&&""!==t.adbeFont.postScriptName)try{i=h.textFonts.getFontByName(t.adbeFont.postScriptName),e.characterAttributes.textFont=i}catch(e){v.Z.log(e)}else if(t.fontFamily)for(o=0;o<h.textFonts.length;o++)if(i=h.textFonts[o],i.family===t.fontFamily){e.characterAttributes.textFont=i;break}try{t.color&&("String"===t.color.__class__?"None"===t.color?e.characterAttributes.fillColor=NoColor:"Registration"===t.color&&(void 0===this.RegistrationColor&&this.updateRegistrationColor(),e.characterAttributes.fillColor=this.RegistrationColor):e.characterAttributes.fillColor=g.Z.dataToSolidColor(t.color))}catch(e){v.Z.log(e)}try{t.adbeIlstStrokeColor&&("String"===t.adbeIlstStrokeColor.__class__?"None"===t.adbeIlstStrokeColor?e.characterAttributes.strokeColor=NoColor:"Registration"===t.adbeIlstStrokeColor&&(void 0===this.RegistrationColor&&this.updateRegistrationColor(),e.characterAttributes.strokeColor=this.RegistrationColor):e.characterAttributes.strokeColor=g.Z.dataToSolidColor(t.adbeIlstStrokeColor))}catch(e){v.Z.log(e)}void 0!==t.fontSize&&(e.characterAttributes.size=t.fontSize.value),t.adbeIlstAlignment&&(n=t.adbeIlstAlignment.split(".",2)[1],e.characterAttributes.alignment=StyleRunAlignmentType[n],r===TextOrientation.VERTICAL&&(e.characterAttributes.alignment===StyleRunAlignmentType.ROMANBASELINE?e.characterAttributes.alignment=StyleRunAlignmentType.center:e.characterAttributes.alignment===StyleRunAlignmentType.center&&(e.characterAttributes.alignment=StyleRunAlignmentType.ROMANBASELINE))),t.adbeIlstAlternateGlyphs&&(n=t.adbeIlstAlternateGlyphs.split(".",2)[1],e.characterAttributes.alternateGlyphs=AlternateGlyphsForm[n]),t.adbeIlstBaselineDirection&&(n=t.adbeIlstBaselineDirection.split(".",2)[1],e.characterAttributes.baselineDirection=BaselineDirectionType[n]),!0===t.adbeIdsnTatechuyoko&&(e.characterAttributes.baselineDirection=BaselineDirectionType.TateChuYoko),t.adbeIlstFigureStyle&&(n=t.adbeIlstFigureStyle.split(".",2)[1],e.characterAttributes.figureStyle=FigureStyleType[n]),t.adbeIlstKerningMethod&&(n=t.adbeIlstKerningMethod.split(".",2)[1],e.characterAttributes.kerningMethod=AutoKernType[n]),t.adbeIlstOpenTypePosition&&(n=t.adbeIlstOpenTypePosition.split(".",2)[1],e.characterAttributes.openTypePosition=FontOpenTypePositionOption[n]),t.adbeIlstWariChuJustification&&(n=t.adbeIlstWariChuJustification.split(".",2)[1],e.characterAttributes.wariChuJustification=WariChuJustificationType[n]),void 0!==t.adbeIdsnKashidas&&(n=t.adbeIdsnKashidas.split(".",2)[1],e.characterAttributes.kashidas=KashidasType[n]),void 0!==t.adbeIdsnCharacterDirection&&(n=t.adbeIdsnCharacterDirection.split(".",2)[1],e.characterAttributes.dirOverride=DirOverrideType[n]),void 0!==t.adbeIdsnDigitsType&&(n=t.adbeIdsnDigitsType.split(".",2)[1],e.characterAttributes.digitSet=DigitSetType[n]);try{void 0!==t.adbeIdsnDiacriticPosition&&(n=t.adbeIdsnDiacriticPosition.split(".",2)[1],e.characterAttributes.diacVPos=DiacVPosType[n])}catch(e){v.Z.log(e)}if("italics"===t.fontStyle&&(e.characterAttributes.italics=!0),void 0!==t.adbeIlstAkiLeft&&(e.characterAttributes.akiLeft=t.adbeIlstAkiLeft),void 0!==t.adbeIlstAkiRight&&(e.characterAttributes.akiRight=t.adbeIlstAkiRight),t.adbeAutoLeading&&(e.characterAttributes.autoLeading=!0),void 0!==t.baselineShift){const r=new UnitValue(t.baselineShift.value,t.baselineShift.type);e.characterAttributes.baselineShift=r.as("pt")}if(void 0!==t.adbeIlstConnectionForms&&(e.characterAttributes.connectionForms=t.adbeIlstConnectionForms),void 0!==t.adbeHorizontalScale&&(e.characterAttributes.horizontalScale=t.adbeHorizontalScale),void 0!==t.lineHeight){const r=new UnitValue(t.lineHeight.value,t.lineHeight.type);e.characterAttributes.autoLeading=!1,e.characterAttributes.leading=r.as("pt")}try{void 0!==t.adbeIdsnAppliedLanguageName&&(e.characterAttributes.language=t.adbeIdsnAppliedLanguageName)}catch(e){v.Z.log(e)}t.whiteSpace&&"nowrap"===t.whiteSpace&&(e.characterAttributes.noBreak=!0),void 0!==t.adbeIlstOverprintFill&&(e.characterAttributes.overprintFill=t.adbeIlstOverprintFill),void 0!==t.adbeIlstOverprintStroke&&(e.characterAttributes.overprintStroke=t.adbeIlstOverprintStroke),void 0!==t.adbeIlstProportionalMetrics&&(e.characterAttributes.proportionalMetrics=t.adbeIlstProportionalMetrics),void 0!==t.adbeIlstRotation&&(e.characterAttributes.rotation=t.adbeIlstRotation),void 0!==t.adbeIlstStrokeWeight&&t.adbeIlstStrokeColor&&"NoColor"!==e.characterAttributes.strokeColor.typename&&(e.characterAttributes.strokeWeight=t.adbeIlstStrokeWeight.value),void 0!==t.adbeIlstTateChuYokoHorizontal&&(e.characterAttributes.tateChuYokoHorizontal=t.adbeIlstTateChuYokoHorizontal),void 0!==t.adbeIlstTateChuYokoVertical&&(e.characterAttributes.tateChuYokoVertical=t.adbeIlstTateChuYokoVertical),void 0!==t.adbeTracking?e.characterAttributes.tracking=t.adbeTracking:t.letterSpacing&&(e.characterAttributes.tracking=1e3*t.letterSpacing.value),void 0!==t.textDecorationObject?(void 0!==t.textDecorationObject.adbeUnderline&&(e.characterAttributes.underline=t.textDecorationObject.adbeUnderline),void 0!==t.textDecorationObject.adbeStrikethrough&&(e.characterAttributes.strikeThrough=t.textDecorationObject.adbeStrikethrough)):t.textDecoration&&(-1!==t.textDecoration.indexOf("underline")?e.characterAttributes.underline=!0:e.characterAttributes.underline=!1,-1!==t.textDecoration.indexOf("line-through")?e.characterAttributes.strikeThrough=!0:e.characterAttributes.strikeThrough=!1),void 0!==t.adbeIdsnXOffsetDiacritic&&(e.characterAttributes.diacXOffset=t.adbeIdsnXOffsetDiacritic),void 0!==t.adbeIdsnYOffsetDiacritic&&(e.characterAttributes.diacYOffset=t.adbeIdsnYOffsetDiacritic),void 0!==t.adbeIlstTsume&&(e.characterAttributes.Tsume=t.adbeIlstTsume),void 0!==t.adbeVerticalScale&&(e.characterAttributes.verticalScale=t.adbeVerticalScale),void 0!==t.adbeIlstWariChuCharactersAfterBreak&&(e.characterAttributes.wariChuCharactersAfterBreak=t.adbeIlstWariChuCharactersAfterBreak),void 0!==t.adbeIlstWariChuCharactersBeforeBreak&&(e.characterAttributes.wariChuCharactersBeforeBreak=t.adbeIlstWariChuCharactersBeforeBreak),void 0!==t.adbeIlstWariChuEnabled&&(e.characterAttributes.wariChuEnabled=t.adbeIlstWariChuEnabled),void 0!==t.adbeIlstWariChuLineGap&&(e.characterAttributes.wariChuLineGap=t.adbeIlstWariChuLineGap),void 0!==t.adbeIlstWariChuLines&&(e.characterAttributes.wariChuLines=t.adbeIlstWariChuLines),void 0!==t.adbeIlstWariChuScale&&(e.characterAttributes.wariChuScale=t.adbeIlstWariChuScale),void 0!==t.adbeIdsnOtfStylisticSets&&(e.characterAttributes.stylisticSets=t.adbeIdsnOtfStylisticSets/2);let a=t.fontFeatureSettingsObject;if(a||(a=t.fontFeatureSettings),a)if("Array"===a.__class__&&a.length>0){const r=void 0!==t.fontFeatureSettings&&t.fontFeatureSettings.length>0;e.characterAttributes.discretionaryLigature=r&&-1!==t.fontFeatureSettings.indexOf("dlig"),e.characterAttributes.contextualLigature=r&&-1!==t.fontFeatureSettings.indexOf("clig"),e.characterAttributes.ornaments=r&&-1!==t.fontFeatureSettings.indexOf("ornm"),e.characterAttributes.ordinals=r&&-1!==t.fontFeatureSettings.indexOf("ordn"),e.characterAttributes.swash=r&&-1!==t.fontFeatureSettings.indexOf("swsh"),e.characterAttributes.ligature=r&&-1!==t.fontFeatureSettings.indexOf("liga"),e.characterAttributes.fractions=r&&-1!==t.fontFeatureSettings.indexOf("frac"),e.characterAttributes.titling=r&&-1!==t.fontFeatureSettings.indexOf("titl"),e.characterAttributes.stylisticAlternates=r&&-1!==t.fontFeatureSettings.indexOf("salt"),e.characterAttributes.italics=r&&-1!==t.fontFeatureSettings.indexOf("rita"),r&&-1!==t.fontFeatureSettings.indexOf("sups")?e.characterAttributes.baselinePosition=FontBaselineOption.SUPERSCRIPT:r&&-1!==t.fontFeatureSettings.indexOf("subs")?e.characterAttributes.baselinePosition=FontBaselineOption.SUBSCRIPT:e.characterAttributes.baselinePosition=FontBaselineOption.NORMALBASELINE,r&&-1!==t.fontFeatureSettings.indexOf("c2sc")?e.characterAttributes.capitalization=FontCapsOption.ALLSMALLCAPS:r&&-1!==t.fontFeatureSettings.indexOf("smcp")?e.characterAttributes.capitalization=FontCapsOption.SMALLCAPS:"capitalize"===t.textTransform?e.characterAttributes.capitalization=FontCapsOption.ALLCAPS:e.characterAttributes.capitalization=FontCapsOption.NORMALCAPS}else if("Object"===a.__class__){if(void 0!==a.adbeOTFSwash&&(e.characterAttributes.swash=a.adbeOTFSwash),void 0!==a.adbeOTFOrdinals&&(e.characterAttributes.ordinals=a.adbeOTFOrdinals),void 0!==a.adbeOTFDiscretionaryLigatures&&(e.characterAttributes.discretionaryLigature=a.adbeOTFDiscretionaryLigatures),void 0!==a.adbeOTFContextualAlternates&&(e.characterAttributes.contextualLigature=a.adbeOTFContextualAlternates),void 0!==a.adbeLigatures&&(e.characterAttributes.ligature=a.adbeLigatures),void 0!==a.adbeOTFFractions&&(e.characterAttributes.fractions=a.adbeOTFFractions),void 0!==a.adbeOTFTitlingAlternates&&(e.characterAttributes.titling=a.adbeOTFTitlingAlternates),void 0!==a.adbeOTFStylisticAlternates&&(e.characterAttributes.stylisticAlternates=a.adbeOTFStylisticAlternates),void 0!==a.adbeOTFRomanItalics&&(e.characterAttributes.italics=a.adbeOTFRomanItalics),void 0!==a.adbeOTFOrnaments&&(e.characterAttributes.ornaments=a.adbeOTFOrnaments),void 0!==a.adbeOTFHVKana&&(e.characterAttributes.kana=a.adbeOTFHVKana),a.adbePosition)switch(a.adbePosition){case"Position.NORMAL":e.characterAttributes.baselinePosition=FontBaselineOption.NORMALBASELINE;break;case"Position.SUBSCRIPT":e.characterAttributes.baselinePosition=FontBaselineOption.SUBSCRIPT;break;case"Position.SUPERSCRIPT":e.characterAttributes.baselinePosition=FontBaselineOption.SUPERSCRIPT}if(a.adbeCapitalization)switch(a.adbeCapitalization){case"FontCapsOption.NORMAL":e.characterAttributes.capitalization=FontCapsOption.NORMALCAPS;break;case"FontCapsOption.ALLSMALLCAPS":e.characterAttributes.capitalization=FontCapsOption.ALLSMALLCAPS;break;case"FontCapsOption.SMALLCAPS":e.characterAttributes.capitalization=FontCapsOption.SMALLCAPS;break;case"FontCapsOption.ALLCAPS":e.characterAttributes.capitalization=FontCapsOption.ALLCAPS}void 0!==a.adbeOTFJustificationAlternates&&(e.characterAttributes.justificationAlternates=a.adbeOTFJustificationAlternates)}}setJustificationAttributes(e,t){let r;if(void 0!==t.adbeIdsnParagraphDirection&&(r=t.adbeIdsnParagraphDirection.split(".",2)[1],e.paragraphAttributes.paragraphDirection=ParagraphDirectionType[r]),void 0!==t.adbeParaAlignment)switch(this.convertJustificationString(t.adbeParaAlignment,!1)){case"CENTER":e.paragraphAttributes.justification=Justification.CENTER;break;case"LEFT":e.paragraphAttributes.justification=Justification.LEFT;break;case"RIGHT":e.paragraphAttributes.justification=Justification.RIGHT;break;case"FULLJUSTIFY":e.paragraphAttributes.justification=Justification.FULLJUSTIFY;break;case"FULLJUSTIFYLASTLINECENTER":e.paragraphAttributes.justification=Justification.FULLJUSTIFYLASTLINECENTER;break;case"FULLJUSTIFYLASTLINELEFT":e.paragraphAttributes.justification=Justification.FULLJUSTIFYLASTLINELEFT;break;case"FULLJUSTIFYLASTLINERIGHT":e.paragraphAttributes.justification=Justification.FULLJUSTIFYLASTLINERIGHT}if(void 0!==t.adbeSingleWordJustification)switch(this.convertJustificationString(t.adbeSingleWordJustification,!0)){case"CENTER":e.paragraphAttributes.singleWordJustification=Justification.CENTER;break;case"LEFT":e.paragraphAttributes.singleWordJustification=Justification.LEFT;break;case"RIGHT":e.paragraphAttributes.singleWordJustification=Justification.RIGHT;break;case"FULLJUSTIFY":e.paragraphAttributes.singleWordJustification=Justification.FULLJUSTIFY;break;case"FULLJUSTIFYLASTLINECENTER":e.paragraphAttributes.singleWordJustification=Justification.FULLJUSTIFYLASTLINECENTER;break;case"FULLJUSTIFYLASTLINELEFT":e.paragraphAttributes.singleWordJustification=Justification.FULLJUSTIFYLASTLINELEFT;break;case"FULLJUSTIFYLASTLINERIGHT":e.paragraphAttributes.singleWordJustification=Justification.FULLJUSTIFYLASTLINERIGHT}}setScalingAttributes(e,t){void 0!==t.adbeMinimumGlyphScaling&&(e.paragraphAttributes.minimumGlyphScaling=t.adbeMinimumGlyphScaling),void 0!==t.adbeMaximumGlyphScaling&&(e.paragraphAttributes.maximumGlyphScaling=t.adbeMaximumGlyphScaling),void 0!==t.adbeDesiredGlyphScaling&&(e.paragraphAttributes.desiredGlyphScaling=t.adbeDesiredGlyphScaling)}setSpacingAttributes(e,t){if(void 0!==t.adbeMaximumWordSpacing&&(e.paragraphAttributes.maximumWordSpacing=t.adbeMaximumWordSpacing),void 0!==t.adbeMinimumWordSpacing&&(e.paragraphAttributes.minimumWordSpacing=t.adbeMinimumWordSpacing),void 0!==t.adbeDesiredWordSpacing&&(e.paragraphAttributes.desiredWordSpacing=t.adbeDesiredWordSpacing),void 0!==t.adbeMaximumLetterSpacing&&(e.paragraphAttributes.maximumLetterSpacing=t.adbeMaximumLetterSpacing),void 0!==t.adbeMinimumLetterSpacing&&(e.paragraphAttributes.minimumLetterSpacing=t.adbeMinimumLetterSpacing),void 0!==t.adbeDesiredLetterSpacing&&(e.paragraphAttributes.desiredLetterSpacing=t.adbeDesiredLetterSpacing),void 0!==t.adbeSpaceAfter){const r=new UnitValue(t.adbeSpaceAfter.value,t.adbeSpaceAfter.type);e.paragraphAttributes.spaceAfter=r.as("pt")}if(void 0!==t.adbeSpaceBefore){const r=new UnitValue(t.adbeSpaceBefore.value,t.adbeSpaceBefore.type);e.paragraphAttributes.spaceBefore=r.as("pt")}}setHyphenationAttributes(e,t){if(void 0!==t.adbeHyphenation&&(e.paragraphAttributes.hyphenation=t.adbeHyphenation),void 0!==t.adbeHyphenationZone){const r=new UnitValue(t.adbeHyphenationZone.value,t.adbeHyphenationZone.type);e.paragraphAttributes.hyphenationZone=r.as("pt")}void 0!==t.adbeHyphenateCapitalizedWords&&(e.paragraphAttributes.hyphenateCapitalizedWords=t.adbeHyphenateCapitalizedWords),void 0!==t.adbeHyphenWeight&&(e.paragraphAttributes.hyphenationPreference=t.adbeHyphenWeight/100),void 0!==t.adbeHyphenateLimit&&(e.paragraphAttributes.maximumConsecutiveHyphens=t.adbeHyphenateLimit),void 0!==t.adbeHyphenateAfterFirst&&(e.paragraphAttributes.minimumAfterHyphen=t.adbeHyphenateAfterFirst),void 0!==t.adbeHyphenateBeforeLast&&(e.paragraphAttributes.minimumBeforeHyphen=t.adbeHyphenateBeforeLast),void 0!==t.adbeHyphenateWordsLongerThan&&(e.paragraphAttributes.minimumHyphenatedWordSize=t.adbeHyphenateWordsLongerThan)}setIndentationAttributes(e,t){if(void 0!==t.adbeFirstLineIndent){const r=new UnitValue(t.adbeFirstLineIndent.value,t.adbeFirstLineIndent.type);e.paragraphAttributes.firstLineIndent=r.as("pt")}if(void 0!==t.adbeLeftIndent){const r=new UnitValue(t.adbeLeftIndent.value,t.adbeLeftIndent.type);e.paragraphAttributes.leftIndent=r.as("pt")}if(void 0!==t.adbeRightIndent){const r=new UnitValue(t.adbeRightIndent.value,t.adbeRightIndent.type);e.paragraphAttributes.rightIndent=r.as("pt")}}setOtherAttributes(e,t){let r;if(void 0!==t.adbeBunriKinshi&&(e.paragraphAttributes.bunriKinshi=t.adbeBunriKinshi),void 0!==t.adbeKinsokuType)switch(this.convertKinsokuTypeString(t.adbeKinsokuType)){case"KinsokuOrderEnum.PUSHOUTFIRST":e.paragraphAttributes.kinsokuOrder=KinsokuOrderEnum.PUSHOUTFIRST;break;case"KinsokuOrderEnum.PUSHIN":e.paragraphAttributes.kinsokuOrder=KinsokuOrderEnum.PUSHIN;break;case"KinsokuOrderEnum.PUSHOUTONLY":e.paragraphAttributes.kinsokuOrder=KinsokuOrderEnum.PUSHOUTONLY}if(void 0!==t.adbeParaAutoLeading&&(e.paragraphAttributes.autoLeadingAmount=t.adbeParaAutoLeading),void 0!==t.adbeIlstBurasagariType)switch(t.adbeIlstBurasagariType){case"BurasagariTypeEnum.Forced":e.paragraphAttributes.burasagariType=BurasagariTypeEnum.Forced;break;case"BurasagariTypeEnum.Standard":e.paragraphAttributes.burasagariType=BurasagariTypeEnum.Standard;break;case"BurasagariTypeEnum.None":e.paragraphAttributes.burasagariType=BurasagariTypeEnum.None}if(void 0!==t.adbeLeadingModel)switch(t.adbeLeadingModel){case"AutoLeadingType.BOTTOMTOBOTTOM":e.paragraphAttributes.leadingType=AutoLeadingType.BOTTOMTOBOTTOM;break;case"AutoLeadingType.TOPTOTOP":e.paragraphAttributes.leadingType=AutoLeadingType.TOPTOTOP}if(void 0!==t.adbeIlstKurikaeshiMojiShori&&(e.paragraphAttributes.kurikaeshiMojiShori=t.adbeIlstKurikaeshiMojiShori),void 0!==t.adbeKinsokuSet)switch(t.adbeKinsokuSet){case"KinsokuSet.HARD_KINSOKU":e.paragraphAttributes.kinsoku="Hard";break;case"KinsokuSet.SOFT_KINSOKU":e.paragraphAttributes.kinsoku="Soft";break;case"KinsokuSet.NOTHING":e.paragraphAttributes.kinsoku="None"}void 0!==t.adbeIlstMojikumi&&(e.paragraphAttributes.mojikumi=t.adbeIlstMojikumi),void 0!==t.adbeIlstRomanHanging&&(e.paragraphAttributes.romanHanging=t.adbeIlstRomanHanging),void 0!==t.adbeIdsnKashidaWidth&&(r=t.adbeIdsnKashidaWidth.split(".",2)[1],e.paragraphAttributes.kashidaWidth=KashidaWidthType[r]),void 0!==t.adbeIlstComposerEngine&&(r=this.convertComposerEngineTypeString(t.adbeIlstComposerEngine),e.paragraphAttributes.composerEngine=r),void 0!==t.adbeIlstEveryLineComposer&&(e.paragraphAttributes.everyLineComposer=t.adbeIlstEveryLineComposer)}setTabAttributes(e,t){try{if(void 0!==t.adbeTabStops){const r=t.adbeTabStops,n=[];let i;for(i=0;i<r.length;++i)n[i]=new TabStopInfo,n[i].position=r[i].adbeTabPosition.value,n[i].decimalCharacter=r[i].adbeTabAlignmentChar,n[i].alignment=this.convertTabAlignmentTypeString(r[i].adbeTabAlignment),void 0!==r[i].adbeTabLeader&&""!==r[i].adbeTabLeader&&(n[i].leader=r[i].adbeTabLeader);e.paragraphAttributes.tabStops=n}}catch(e){v.Z.log(e)}}addParagraphStyleToAI(e,t,r){let n;if(e=this.processStyleName(e),n=h.activeDocument.paragraphStyles.add(e),void 0===n){if(h.activeDocument.paragraphStyles&&h.activeDocument.paragraphStyles[0].name===e)return null;const i="Temp"+(new Date).valueOf();if(null==this.addParagraphStyleToAI(i,t,r))return null;const o=this.getParagraphStyleJSONStringfromAI(i),a=this.getParagraphStyleJSONStringfromAI(e);try{this.removeParagraphStyle(i)}catch(e){v.Z.log("ILST-> TEXT-> addParagraphStyleToAI -> removeParagraphStyle",e)}if(!o||!a)return null;if(n=h.activeDocument.paragraphStyles.getByName(e),o===a)return n;const s=h.sendScriptMessage("Design Library",this.GET_COLLISION_RESPONCE,""),c=JSON.parse(s);if(!c)return null;const l=c.ActionOK&&"true"===c.ActionOK,u=c.useExisting&&"true"===c.useExisting;if(!l)return null;if(u)return n}if(n){n.clear();try{this.addCharacterAttributesToStyle(n,t,r)}catch(e){v.Z.log("addParagraphStyleToAI ->addCharacterAttributesToStyle",e)}try{this.setJustificationAttributes(n,t),this.setScalingAttributes(n,t),this.setSpacingAttributes(n,t),this.setHyphenationAttributes(n,t),this.setIndentationAttributes(n,t),this.setOtherAttributes(n,t),this.setTabAttributes(n,t)}catch(e){v.Z.log("addParagraphStyleToAI  ->adding paragraph attributes to style      ",e)}}return n}addCharacterStyleToAI(e,t,r){let n;if(e=this.processStyleName(e),n=h.activeDocument.characterStyles.add(e),void 0===n){if(h.activeDocument.characterStyles&&h.activeDocument.characterStyles[0].name===e)return null;const r="Temp"+(new Date).valueOf();if(null==this.addCharacterStyleToAI(r,t))return null;const i=this.getCharacterStyleJSONStringfromAI(r),o=this.getCharacterStyleJSONStringfromAI(e);try{this.removeCharacterStyle(r)}catch(e){v.Z.log("ILST-> TEXT-> addCharacterStyleToAI -> removeCharacterStyle",e)}if(!i||!o)return null;if(n=h.activeDocument.characterStyles.getByName(e),i===o)return n;let a=!0,s=!1;if(!0!==this.GlobalConflictResolutionStrategy.initialized){const e=h.sendScriptMessage("Design Library",this.GET_COLLISION_RESPONCE,""),t=JSON.parse(e);if(!t)return null;a=t.ActionOK&&"true"===t.ActionOK,s=t.useExisting&&"true"===t.useExisting,this.GlobalConflictResolutionStrategy.initialized=!0,this.GlobalConflictResolutionStrategy.strategy=a?s?this.ConflictResolutionStrategy.useExisting:this.ConflictResolutionStrategy.useIncoming:this.ConflictResolutionStrategy.wasNotOk}else this.GlobalConflictResolutionStrategy.strategy===this.ConflictResolutionStrategy.wasNotOk?a=!1:this.GlobalConflictResolutionStrategy.strategy===this.ConflictResolutionStrategy.useExisting&&(s=!0);if(!a)return null;if(s)return n}try{n&&(n.clear(),this.addCharacterAttributesToStyle(n,t,r))}catch(e){v.Z.log("addCharacterStyleToAI -> addCharacterAttributesToStyle",e)}return n}setParagraphStyle(e){let t;const r=this.addParagraphStyleToAI(e.name,e),n=h.selection;if(n)try{if(r)if(n._target&&"TextRange"===n._target._className)r.applyTo(n,!0);else if(n.length>0&&void 0!==n[0])for(t=0;t<n.length;t++)n[t]._target&&"TextFrame"===n[t]._target._className&&r.applyTo(n[t].textRange,!0)}catch(e){v.Z.log("Ilst.jsx-setParagraphStyle",e)}}setCharacterStyle(e){let t=0;const r=this.addCharacterStyleToAI(e.name,e),n=h.selection;if(n)try{if(r)if(n._target&&"TextRange"===n._target._className)r.applyTo(n,!0);else if(n.length>0&&void 0!==n[0])for(t=0;t<n.length;t++)n[t]._target&&"TextFrame"===n[t]._target._className&&r.applyTo(n[t].textRange,!0)}catch(e){v.Z.log("Ilst.jsx-setCharacterStyle",e)}}setFont(e){try{"parastyle"===e.type?this.setParagraphStyle(e):this.setCharacterStyle(e)}catch(e){v.Z.log("Ilst.jsx-setFont()",e)}}addParagraphStyles(){this.GlobalConflictResolutionStrategy.initialized=!1;const e=this.TypographyArray.length;let t,r;for(t=0;t<e;t++)r=this.TypographyArray[t],this.addParagraphStyle(r);this.GlobalConflictResolutionStrategy.initialized=!1}addCharacterStyles(){this.GlobalConflictResolutionStrategy.initialized=!1;const e=this.TypographyArray.length;let t,r;for(t=0;t<e;t++)r=this.TypographyArray[t],this.addCharacterStyle(r);this.GlobalConflictResolutionStrategy.initialized=!1}addParagraphStyle(e){this.addParagraphStyleToAI(e.name,e)}addCharacterStyle(e){this.addCharacterStyleToAI(e.name,e)}createTextLayer(e,t,r){if(!1!==t&&(this.TypographyArray=[]),this.TypographyArray.push(e),!1!==r){try{"parastyle"===e.type?this.addParagraphStyles():this.addCharacterStyles()}catch(e){v.Z.log("Ilst.jsx-createTextLayer()",e)}this.TypographyArray=[]}}getCharacterStyleById(e){var t=this;return O(x().mark((function r(){var n,i,o,a,s,c,l;return x().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=window.nodeRequire("uxp").storage.localFileSystem,r.next=3,n.getTemporaryFolder();case 3:i=r.sent,o=i.nativePath+"TextStylePreview"+(new Date).valueOf()+".png",a={};try{(s=t.getCharacterStyleJSONStringfromAI(e,o))&&(c=JSON.parse(s),l={},a.styleName=e,h.activeDocument.characterStyles&&h.activeDocument.characterStyles[0].name===e&&"["===e[0]&&"]"===e[e.length-1]&&(a.styleName=e.substring(1,e.length-1)),t.collectCharacterAttributes(l,c),a.styleInfo=l,a.previewPath=o)}catch(e){}return r.abrupt("return",a);case 8:case"end":return r.stop()}}),r)})))()}getParagraphStyleById(e){var t=this;return O(x().mark((function r(){var n,i,o,a,s,c,l;return x().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={},i={},o=window.nodeRequire("uxp").storage.localFileSystem,r.next=5,o.getTemporaryFolder();case 5:a=r.sent,s=a.nativePath+"TextStylePreview"+(new Date).valueOf()+".png";try{c=t.getParagraphStyleJSONStringfromAI(e,s),(l=JSON.parse(c))&&(n.styleName=e,h.activeDocument.paragraphStyles&&h.activeDocument.paragraphStyles[0].name===e&&"["===e[0]&&"]"===e[e.length-1]&&(n.styleName=e.substring(1,e.length-1)),t.collectParagraphAttributes(i,l),t.collectCharacterAttributes(i,l),n.styleInfo=i,n.previewPath=s)}catch(e){}return r.abrupt("return",n);case 9:case"end":return r.stop()}}),r)})))()}addCharStyleById(e){var t=this;return O(x().mark((function r(){var n;return x().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,t.getCharacterStyleById(e);case 3:return n=r.sent,r.abrupt("return",JSON.stringify(n));case 7:r.prev=7,r.t0=r.catch(0);case 9:case"end":return r.stop()}}),r,null,[[0,7]])})))()}addParaStyleById(e){var t=this;return O(x().mark((function r(){var n;return x().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,t.getParagraphStyleById(e);case 3:return n=r.sent,r.abrupt("return",JSON.stringify(n));case 7:r.prev=7,r.t0=r.catch(0);case 9:case"end":return r.stop()}}),r,null,[[0,7]])})))()}};function T(){T=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function P(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function I(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){P(o,n,i,a,s,"next",e)}function s(e){P(o,n,i,a,s,"throw",e)}a(void 0)}))}}class A extends f.Z{static check(){return navigator.userAgent.indexOf("UXP")>-1}constructor(e=window){super(e),this.type="Illustrator",this.pluginId="com.adobe.cclibrariespanel",this.hasUXPStockExtension=!0,this.hasOpacityBug=!0,this.additionalStockLicenseCoreModules=[{name:"dom",type:"window-global"}],this.hasInputZOrderBug=!0;const t=window.nodeRequire("uxp").host,r=this.findLocaleMatch(t.locale);this._hostEnvironment={appName:"ILST_UXP",appId:"ILST",appVersion:t.version,isAppOnline:!0,appLocale:r,appUILocale:r,appSkinInfo:{panelBackgroundColor:{color:{alpha:255,green:83,blue:83,red:83}}}}}debugLog(e){return console.info(e),!0}setPanelFlyoutMenu(e){const t=window.nodeRequire("uxp").entrypoints.getPanel("ccLibrariesPanel").menuItems;if(!t)return;let r=0;this._flyoutMenuClickHandlers={};const n=e.map((e=>e.divider?{id:"DIVIDER_"+r++,label:"-"}:(this._flyoutMenuClickHandlers[e.menuId]=e.onClick,{id:e.menuId,label:e.label,enabled:e.enableMenu,checked:e.checked})));for(let e=t.size;e>0;e--)t.removeAt(e-1);n.forEach(((e,r)=>{t.insertAt(r,e)}))}handleFlyout(e){this._flyoutMenuClickHandlers[e]&&this._flyoutMenuClickHandlers[e]()}get exports(){var e,t=this;return window.nodeRequire("uxp").entrypoints.setup({panels:{ccLibrariesPanel:{show:e=>{this._waitForInit.then((()=>{this._panelMountPoint=this.getMountPoint(e.node),this.renderPanel(this._panelMountPoint)}))},hide:()=>{this._panelMountPoint&&(this.unmountPanel(this._panelMountPoint),this._panelMountPoint.remove(),delete this._panelMountPoint)},menuItems:[],invokeMenu:e=>{this.handleFlyout(e)}}},commands:{adobeStockLicensingPlugin:{run:(e=I(T().mark((function e(r){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.openStockLicenseExtension(JSON.parse(r.data));case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),v.Z.log(e.t0);case 8:case"end":return e.stop()}}),e,null,[[0,5]])}))),function(t){return e.apply(this,arguments)})}}})}get hasVideoRenderingBug(){return!!this.isWindowsOS()}exec(e,t,r=[]){var n=()=>super.exec,i=this;return I(T().mark((function o(){var a,s,c,l,u;return T().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if("getApplicationVersion"!==t){o.next=5;break}return a=h.version,o.abrupt("return",a);case 5:if("getHostAppPathViaBridgeTalk"!==t){o.next=14;break}return s=window.nodeRequire("uxp").storage.localFileSystem,o.next=9,s.getDataFolder();case 9:return c=o.sent,l=c.nativePath,o.abrupt("return",l);case 14:if("getTempFolder"!==t){o.next=21;break}return s=window.nodeRequire("uxp").storage.localFileSystem,o.next=18,s.getTemporaryFolder();case 18:return u=o.sent,l=u.nativePath,o.abrupt("return",l);case 21:n().call(i,e,t,r);case 22:case"end":return o.stop()}}),o)})))()}execApp(e,t){return"saveAssets"===e?w.saveAssets(t[0]):"placeAsset"===e?w.placeAsset(t):"openAssetForEdit"===e?w.openAssetForEdit(...t):"getTextInfo"===e?S.getTextInfo():"getParaStyleInfo"===e?S.getParaStyleInfo():"getCharStyleInfo"===e?S.getCharStyleInfo():"setFont"===e?S.setFont(t[0]):"createTextLayer"===e?S.createTextLayer(...t):"addCharStyleById"===e?S.addCharStyleById(...t):"addParaStyleById"===e?S.addParaStyleById(...t):"loadAndSelectBrush"===e?w.loadAndSelectBrush(...t):"openDocumentFromTemplate"===e?w.openDocumentFromTemplate(...t):super.exec(this._hostEnvironment.appName,e,t)}addEventListener(e,t){super.addEventListener(e,t),dom.addEventListener(e,t,!1)}removeEventListener(e,t){super.removeEventListener(e,t),dom.removeEventListener(e,t,!1)}getLayerName(){return w.getLayerName()}getLayerInfo(){return w.getLayerInfo()}dispatchEvent(e){dom.dispatchEvent(e.type,e.data)}connectProductInterface(e){const t=(t,r=!0,n)=>i=>{let o;r?i&&(o=e[t](JSON.parse(i))):o=e[t](),n&&o&&n(o)};this.disconnectProductInterface(),this._handlers={dragStarted:t("startDragFromProduct"),dragEnded:t("endDragFromProduct",!1)};for(const e in this._handlers)this.addEventListener(e,this._handlers[e])}disconnectProductInterface(){if(this._handlers){for(const e in this._handlers)this.removeEventListener(e,this._handlers[e]);delete this._handlers}}get application(){return h}get core(){return h}}},85062:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>E,nD:()=>b});var n=r(99386),i=r(16993),o=r(75067),a=r(46931);let s;try{s=localStorage}catch(e){console.error(`Unable to access localStorage: ${e}`);const t={};s={getItem:e=>t[e],setItem:(e,r)=>t[e]=r,removeItem:e=>delete t[e]}}const c=s;var l,u,d,p=r(47320),h=r(50265),f=r(20290);function m(){m=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(O([])));v&&v!==t&&r.call(v,i)&&(f=v);var y=h.prototype=d.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=h,s(y,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function g(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function v(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function y(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const b=["cs_CZ","da_DK","de_DE","en_US","es_ES","es_MX","fi_FI","fr_FR","fr_CA","fr_MA","hu_HU","id_ID","it_IT","ja_JP","ko_KR","nb_NO","nl_NL","pl_PL","pt_BR","ru_RU","sv_SE","th_TH","tr_TR","uk_UA","vi_VN","zh_CN","zh_TW"],_={win:"Windows",winarm:"Win-ARM:64",mac:"Mac OS X",macarm:"Mac-ARM:64"};let E=(u=y((l=class{constructor(e){this._listeners={},this.supportsAnimations=!0,this.supportsCSSListItem=!0,this.videoElementsSupported=!0,this.developerMode=!1,this.localStorage=c,this.canPlaceElements=!0,this.isMenuInJson=!0,this.recolorLightTextElements=!0,this.supportsDropFiles=!0,this.supportsFileSystem=!0,this.supportsProcessConnection=!0,this._supportsFileURLs=!0,this.supportsFilePicker=!0,this.supportsImagesInButtons=!0,this.supportsNotes=!0,this.supportsExportElement=!1,this.IMSLib=null,this.SmallSpinner=null,this.ElementDragId="com.adobe.cep.dnd.pasteboardtype",this.GroupDragId="com.adobe.cclibraries.dnd.group",v(this,"isViewMounted",u,this),v(this,"_setIsViewMounted",d,this),this.delayProcessLaunch=!1,this.setIsViewMounted=(0,f.Ds)(100,(e=>(this._setIsViewMounted(e),Promise.resolve()))),this._window=e}init(){return Promise.resolve()}notifyProductInitialized(){}connectProductInterface(){}disconnectProductInterface(){}shouldRenderPanel(){return!0}shouldLoadMainCss(){return!0}shouldConvertColor(){return!1}convertSingleColor(e){return e}getExtensionID(){return this._extensionId}fetchResourceBundle(e){return function(e){const t=new XMLHttpRequest;return new Promise(((n,i)=>{t.open("GET",`${r.p}locale/${e}/messages.properties`,!0),t.onload=()=>n(t.response),t.onerror=i,t.send()}))}(e).then((e=>function(e){const t={},r=e.split(/\n/);for(let e=0;e<r.length;e++)if(r[e]=r[e].replace(/^\s\s*/,"").replace(/\s\s*$/,""),r[e].length>0&&"#"!==r[e].match("^#")){const n=r[e].split("="),i=n[0].replace(/^\s\s*/,"").replace(/\s\s*$/,"");let o=1===n.length?"":n[1];for(;o.match(/\\$/)&&"\\"===o.match(/\\$/).toString();)o=o.substring(0,o.length-1),o+=r[++e].replace(/\s\s*$/,"");for(let e=2;e<n.length;e++)o+="="+n[e];o=o.replace(/^\s\s*/,"").replace(/\s\s*$/,""),t[i]=o}return t}(e)))}_loadResourceBundle(e){return this.fetchResourceBundle(e).then((e=>this._resourceBundle=e))}get resourceBundle(){return this._resourceBundle}clearResourceBundle(){this._resourceBundle=null}get supportedLocales(){return b}getGlobalRoot(){return this.getUserDataPath()+"/Adobe/Creative Cloud Libraries/"}getLocalRoot(){return this.getGlobalRoot()+this.getAppName()+"/"}getLocalStorageKey(e){return`cclibraries#${e}`}debugLog(e){}isLibrariesPanel(){return["com.adobe.DesignLibraries.angular","com.adobe.cclibrariespanel","com.adobe.DesignLibraries.touch"].includes(this._extensionId)}isLibrariesManager(){return this._extensionId===n.Z.MANAGER_EXTENSION_ID}getOSName(){const e=o.ZP.DEVICE_DESCRIPTION,t=e&&e.split("-")[0];return t&&_[t]||this._getClientOSName()}_getClientOSName(){const e=this._window.navigator.userAgent;return/windows|win10|win32/i.test(e)?"Windows":/macintosh|darwin/i.test(e)?"Mac OS X":/CrOS/.test(e)?"Chrome OS":/android/i.test(e)?"Android":/iPad|iPhone|iPod/.test(e)?"iOS":"Unknown Operation System"}getOSVersion(){const e=this._window.navigator.platform,t=this._window.navigator.userAgent;if("Win32"===e||"Windows"===e){let e="";return t.includes("Windows")&&(t.includes("Windows NT 6.1")?e="Windows 7":t.includes("Windows NT 6.2")?e="Windows 8":t.includes("Windows NT 6.3")?e="Windows 8.1":t.includes("Windows NT 10")&&(e="Windows 10"),e+=t.includes("WOW64")?" 64-bit":" 32-bit"),e}if("MacIntel"===e||"Macintosh"===e){const e=/[Apple Silicon | Mac OS X ]([0-9_.]+)/.exec(t);return e&&e[1]?e[1].replace(/_/g,"."):""}return""}getOSInformation(){const e=this.getOSName(),t=this.getOSVersion();return e+(t?" "+t:"")}isWindowsOS(){return this.getOSInformation().includes("Win")}getAppName(){return this.getHostEnvironment().appName}getAppVersion(){return this.getHostEnvironment().appVersion}getLocale(e){var t;const r=(null===(t=this.getHostEnvironment())||void 0===t?void 0:t.appUILocale)||"en_US";return e?r:r.replace("_","-")}getAppDescription(){return this.getAppName()+" "+this.getAppVersion()+" "+this.getLocale()}createEvent(e,t,r,n,i){return{type:e,scope:t,appId:r,extensionId:n,data:i}}addEventListener(e,t){this._listeners[e]=this._listeners[e]||[],this._listeners[e].push(t)}removeEventListener(e,t){this._listeners[e]=this._listeners[e]&&this._listeners[e].filter((e=>e!==t))}_notifyEventListeners(e,t){this._listeners[e]&&this._listeners[e].forEach((e=>e(t)))}getFeatureFlag(){}getAvailableExtensions(){return[]}onContextMenu(){}contextMenuEventListeners(e){return{onContextMenu:e}}getRootPanelElement(){return document.body}getPanelWidth(){return window.innerWidth}getPanelHeight(){return window.innerHeight}getHostContainerWidth(){return this.getPanelWidth()}getHostContainerHeight(){return this.getPanelHeight()}isLoggedIn(){return!0}getLoginState(){return"logged_in"}getCustomPanelView(){}getCustomHeaderView(){}isComposingInputEvent(){}getSavePath(){return Promise.resolve(new Error("getSavePath is not defined"))}getLayerInfo(){return Promise.reject("getLayerInfo is not implemented")}getLayerName(){return Promise.reject("getLayerName is not implemented")}getCurrentDocumentState(){return Promise.resolve({path:void 0,layerID:void 0})}isFontAvailable(){return Promise.resolve(!1)}launchInBrowserAsync(e){e.then((e=>this.launchInBrowser(e)))}hideDebugFlyoutMenu(){return!1}launchInBrowser(){}getProfile(){return{}}get documentLibraryConstants(){return{}}openLibraryManagerWindow(){}isLibraryManagerWindowOpen(){}addManagerInitListener(){}addOpenDialogEventListener(){}getDynamicLayoutBreakpointWidth(){return n.Z.currentProduct.config.getDynamicLayoutBreakpointWidth?n.Z.currentProduct.config.getDynamicLayoutBreakpointWidth():n.Z.GRID_VIEW_BREAKPOINT_SIZE}getDynamicLayoutMinimumBreakpoint(){return n.Z.currentProduct.config.getDynamicLayoutMinimumBreakpoint?n.Z.currentProduct.config.getDynamicLayoutMinimumBreakpoint():n.Z.GRID_MINIMUM_BREAKPOINT}getDynamicLayoutRules(){if(n.Z.currentProduct.config.getDynamicLayoutRules)return n.Z.currentProduct.config.getDynamicLayoutRules();const e="always"===i.Z.nameVisibility?n.Z.GRID_VIEW_NAME_HEIGHT:0;return{[n.Z.GRID_TYPE_LARGE]:{getHeight:t=>Math.floor(.8*t)+e,getColumns:e=>2+e},[n.Z.GRID_TYPE_MEDIUM]:{getHeight:t=>t+e,getColumns:e=>{const t=Math.floor(e/2);return 3+2*t+(t+e%2)}},[n.Z.GRID_TYPE_SMALL]:{getHeight:e=>e,getColumns:e=>4+2*e},[n.Z.GRID_TYPE_WIDE]:{getHeight:()=>n.Z.GRID_TYPE_WIDE_SET_HEIGHT,getColumns:e=>1+Math.floor(e/2)}}}get hasVideoRenderingBug(){return!1}get ignoreFocusOutsideToast(){return!1}navigateToLibrary(e){a.Z.libraryManager.currentLibrary=e}showError(){}showMessage(){}get supportsFileURLs(){return this._supportsFileURLs}set supportsFileURLs(e){this._supportsFileURLs=e}handleDroppedStockElement(e){return(t=m().mark((function t(){var r,n,i,o;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=null==e?void 0:e.currentlyDraggedElement,n=null==e?void 0:e.currentlyDraggedElementPromise,i=null===p.Z||void 0===p.Z?void 0:p.Z.getApplyOperations(r),r&&n&&0!==(null==i?void 0:i.size)){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,n;case 7:return o=i.find((({name:e})=>"DL_ADD_IMAGE_TO_DOC_AS_LINKED"===e))||i[0],t.abrupt("return",o.apply());case 9:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){g(o,n,i,a,s,"next",e)}function s(e){g(o,n,i,a,s,"throw",e)}a(void 0)}))})();var t}get maintainConnectionToProcess(){return this.isViewMounted}get canLaunchProcess(){return!this.delayProcessLaunch||this.isViewMounted}}).prototype,"isViewMounted",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),d=y(l.prototype,"_setIsViewMounted",[h.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.isViewMounted=e}}}),y(l.prototype,"maintainConnectionToProcess",[h.computed],Object.getOwnPropertyDescriptor(l.prototype,"maintainConnectionToProcess"),l.prototype),y(l.prototype,"canLaunchProcess",[h.computed],Object.getOwnPropertyDescriptor(l.prototype,"canLaunchProcess"),l.prototype),l)},63890:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_i});var n=r(85062),i=r(75067),o=r(47320),a=r(2169),s=r(16993),c=r(50265),l=r(89526),u=r(73961),d=r(14241),p=r(57806),h=r(84824),f=r(21271),m=r.n(f),g=r(76485),v=r(99386);const y="cc-libraries-base-template",b=()=>{let e=document.getElementById(y);if(e)return e;e=document.createElement("template"),e.setAttribute("id",y);const t=document.createElement("html"),r=document.createElement("head"),n=document.createElement("body");return n.style.overflow="visible",t.appendChild(r),t.appendChild(n),e.content.appendChild(t),document.head.appendChild(e),p.ZP.addRoot(t),e};function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||E(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){if(e){if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function x(){x=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function L(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class O extends HTMLElement{constructor(e,t=[],r=[]){super(),this.routeHandlers=[],this.node=e,this.shadowDOM=this.attachShadow({mode:"open"});const n=b().content.firstElementChild.cloneNode(!0);this.shadowDOM.appendChild(n),this.shadowBody=n.querySelector("body"),this.shadowDOM.body=this.shadowBody,this.shadowDOM.documentElement=n,m()(this.shadowDOM),this.mountPoint=document.createElement("div"),this.mountPoint.classList.add(...t),this.shadowBody.appendChild(this.mountPoint);const i=g.Z.getLocale(),o=p.ZP.reactSpectrumTheme,a=p.ZP.appCode,s=v.Z.currentProduct.config.legacySpectrumEnabled;this.shadowBody.classList.add(`locale_${i}`,`ccl-App--${a}`,`ccl-Theme--${o}`,s&&"spectrum-enabled",...r),g.Z.isWindowsOS()&&this.shadowBody.classList.add("windows")}connectedCallback(){const e=!!this.shadowDOM.querySelector("style");p.ZP.addRoot(this.shadowDOM,e).then((()=>{this.render()})),this._localeReactionDispose=(0,c.reaction)((()=>(0,h.Iu)("DL_LIBRARIES")),(()=>{this.handleRouteChange(this.getAttribute("route"))}))}disconnectedCallback(){var e;u.unmountComponentAtNode(this.mountPoint),p.ZP.removeRoot(this.shadowDOM),null===(e=this._localeReactionDispose)||void 0===e||e.call(this)}static get observedAttributes(){return[O.isMobileViewAttributeName,O.isCurrentUserBrandCreator,"route"]}attributeChangedCallback(e,t,r){var n,i=this;return(n=x().mark((function n(){var o,a;return x().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r===t){n.next=12;break}n.t0=e,n.next=n.t0===O.isCurrentUserBrandCreator?4:n.t0===O.isMobileViewAttributeName?6:"route"===n.t0?9:12;break;case 4:return null===(o=g.Z.setIsBrandCreator)||void 0===o||o.call(g.Z,"true"===r),n.abrupt("break",12);case 6:return null===(a=g.Z.setIsMobileView)||void 0===a||a.call(g.Z,"true"===r),"true"===r?i.mountPoint.classList.add("mobile"):i.mountPoint.classList.remove("mobile"),n.abrupt("break",12);case 9:return n.next=11,i.handleRouteChange(r);case 11:return n.abrupt("break",12);case 12:case"end":return n.stop()}}),n)})),function(){var e=this,t=arguments;return new Promise((function(r,i){var o=n.apply(e,t);function a(e){L(o,r,i,a,s,"next",e)}function s(e){L(o,r,i,a,s,"throw",e)}a(void 0)}))})()}handleRouteChange(e){var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=E(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(this.routeHandlers);try{for(r.s();!(t=r.n()).done;){const r=_(t.value,2),n=r[0],i=r[1],o=n.exec(e);if(o)return i(...o)}}catch(e){r.e(e)}finally{r.f()}}render(e=this.node){this.node=e,u.render(l.createElement(d.X,{portalNode:this.shadowBody},e),this.mountPoint)}}O.isMobileViewAttributeName="ismobileview",O.isCurrentUserBrandCreator="cancreate";class S extends O{connectedCallback(){super.connectedCallback(),g.Z.setCurrentBaseWebComponent(this)}disconnectedCallback(){super.disconnectedCallback(),g.Z.setCurrentBaseWebComponent(null)}constructor(e,t=[],r=[]){super(e,t,r)}}var T,P,I=r(62631),A=r(17632),C=r(27611),k=r(17179);function D(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let N=(0,I.Pi)((D((P=class extends l.Component{get syncStatus(){return i.ZP.syncStatus}get icon(){return l.createElement("span",{className:"error-icon"},l.createElement(C.Z,{id:"CreativeCloudError",height:130,width:130}))}get contents(){return"error"!==this.syncStatus.state?null:l.createElement("div",{className:"list-nolibs-middle","data-test-id":"no-libraries-list-view-content"},this.icon)}render(){return l.createElement("div",{className:"list-nolibs-container","data-test-id":"no-libraries-list-view"},this.contents)}}).prototype,"syncStatus",[c.computed],Object.getOwnPropertyDescriptor(P.prototype,"syncStatus"),P.prototype),D(P.prototype,"icon",[c.computed],Object.getOwnPropertyDescriptor(P.prototype,"icon"),P.prototype),D(P.prototype,"contents",[c.computed],Object.getOwnPropertyDescriptor(P.prototype,"contents"),P.prototype),T=P))||T;var R,M,j,F=r(72279),Z=r(2652),B=r.n(Z),G=r(30131);let U=(0,I.Pi)(((j=class extends l.Component{get text(){return l.createElement("div",{className:"onboarding-text"},l.createElement("h1",{"data-test-id":"library-list-onboarding-heading",className:"onboarding-header"},(0,h.Iu)("DL_LIBRARY_LIST_ONBOARDING_HEADER")),l.createElement("div",{"data-test-id":"library-list-onboarding-text"},(0,h.Iu)("DL_LIBRARY_LIST_ONBOARDING_BODY")," ",l.createElement("a",{tabIndex:"0",onKeyPress:e=>"Enter"===e.key?(0,G.I0)(e):null,"data-test-id":"library-list-onboarding-link",className:"onboarding-link",onClick:G.I0},(0,h.Iu)("DL_LIBRARY_LIST_ONBOARDING_LINK"))))}get librariesIcon(){return l.createElement("div",{"data-test-id":"library-list-onboarding-cclibrary-icon",className:"cclibrary-onboarding-icon"},l.createElement(C.Z,{id:"OnboardingCCLibrary",height:184,width:184}))}get createLibraryButton(){return l.createElement("div",{className:"onboarding-action-buttons"},l.createElement(F.Z,{"data-test-id":"library-list-onboarding-create-button",className:"onboarding-create-library-button",onClick:this.props.handleCreateLibrary},l.createElement("span",{className:"onboarding-action-buttons-label"},(0,h.Iu)("DL_LIB_LIST_ONBOARDING_CREATE_LIBRARY_BUTTON_TEXT"))))}get followLibraryButton(){return l.createElement("div",{className:"onboarding-action-buttons"},g.Z.getIsStarterKitsAvailable&&g.Z.getIsStarterKitsAvailable()?l.createElement(F.Z,{"data-test-id":"library-list-onboarding-marketplace-button",className:"onboarding-follow-library-button",onClick:this.props.handleMarketplace},l.createElement("span",{className:"onboarding-action-buttons-label"},(0,h.Iu)("DL_GO_MARKETPLACE"))):l.createElement(F.Z,{"data-test-id":"library-list-onboarding-follow-button",className:"onboarding-follow-library-button",onClick:this.props.handleFollowLibrary},l.createElement("span",{className:"onboarding-action-buttons-label"},(0,h.Iu)("DL_LIB_LIST_ONBOARDING_FOLLOW_LIBRARY_BUTTON_TEXT"))))}get content(){return l.createElement("div",{"data-test-id":"library-list-onboarding-content",className:"onboarding-content"},this.librariesIcon,this.text,this.createLibraryButton,i.ZP.isSharingEnabled&&this.followLibraryButton)}render(){return l.createElement("div",{"data-test-id":"library-list-onboarding",className:"library-list-onboarding"},this.content)}}).propTypes={handleCreateLibrary:B().func.isRequired,handleFollowLibrary:B().func.isRequired,handleMarketplace:B().func.isRequired},H=(M=j).prototype,z="content",V=[c.computed],Y=Object.getOwnPropertyDescriptor(M.prototype,"content"),W=M.prototype,K={},Object.keys(Y).forEach((function(e){K[e]=Y[e]})),K.enumerable=!!K.enumerable,K.configurable=!!K.configurable,("value"in K||K.initializer)&&(K.writable=!0),K=V.slice().reverse().reduce((function(e,t){return t(H,z,e)||e}),K),W&&void 0!==K.initializer&&(K.value=K.initializer?K.initializer.call(W):void 0,K.initializer=void 0),void 0===K.initializer&&(Object.defineProperty(H,z,K),K=null),R=M))||R;var H,z,V,Y,W,K,$;let q=(function(e,t,r,n,i){var o={};Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}(($=class extends l.Component{constructor(...e){super(...e),this.resetFilter=()=>{s.Z.resetCurrentLibrariesFilter()}}get text(){return l.createElement("div",{className:"onboarding-text"},l.createElement("div",{"data-test-id":"library-list-empty-filter-view-heading",className:"onboarding-header"},(0,h.Iu)("DL_LIBRARY_LIST_EMPTY_FILTER_VIEW_TITLE")),l.createElement("div",{"data-test-id":"library-list-empty-filter-view-text"},(0,h.Iu)("DL_LIBRARY_LIST_EMPTY_FILTER_VIEW_BODY")))}get librariesIcon(){return l.createElement("div",{"data-test-id":"library-list-empty-filter-view-icon",className:"library-list-empty-filter-icon"},l.createElement(C.Z,{id:"FilterWarning",height:52,width:50}))}get resetFilterLink(){return l.createElement("a",{tabIndex:"0",onKeyPress:e=>"Enter"===e.key&&this.resetFilter(e),"data-test-id":"library-list-empty-filter-view-reset-button",className:"clear-filter-link",onClick:this.resetFilter},(0,h.Iu)("DL_LIBRARY_LIST_EMPTY_FILTER_VIEW_CTA"))}get content(){return l.createElement("div",{"data-test-id":"library-list-empty-filter-view-content",className:"onboarding-content"},this.librariesIcon,this.text,this.resetFilterLink)}render(){return l.createElement("div",{"data-test-id":"library-list-empty-filter-view",className:"library-list-empty-filter"},this.content)}}).prototype,"content",[c.computed],Object.getOwnPropertyDescriptor($.prototype,"content"),$.prototype),$);var X,J,Q,ee=r(99767),te=r(5849),re=r(41765),ne=r(51461),ie=r(72373),oe=r(73675),ae=r(37800),se=r(46903),ce=r(24937);function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},le.apply(this,arguments)}function ue(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let de=(0,I.Pi)(((Q=class extends l.Component{constructor(...e){super(...e),this.onFilterChange=()=>{!this.libraries.includes(this.context.libraryManager.currentLibrary)&&this.libraries.length&&g.Z.navigateToLibrary(this.libraries[0])},this.onContextClickTitle=e=>{if(e.preventDefault(),e.stopPropagation(),ie.Z.showDebugMenu()&&e.shiftKey&&e.altKey){const t=e.target.getBoundingClientRect();this.context.viewState.setContextMenuPositionState({x:t.left,y:t.bottom}),g.Z.setContextMenu((0,oe.I0)())}},this.handleCreateLibrary=e=>{this.context.libraryActions.create((e=>g.Z.navigateToLibrary(e)),(()=>{if("addLibraryListMenu"===(e.path&&e.path[0].id)){const t=e.target.shadowRoot.getElementById("addLibraryListMenu");t&&t.focus()}}))},this.handleFollowLibrary=e=>{ne.ZP.reportEvent("Navigation","Library Panel","click","view-public-libraries",{ui:{sequence:e}}),g.Z.openFollowLibrary()},this.handleMarketplace=e=>{ne.ZP.reportEvent("Navigation","Library Panel","click","view-marketplace",{ui:{sequence:e}}),g.Z.routeToStarterKits()},this.handleBrowseMore=()=>{ne.ZP.reportEvent("Library","Library List","click","browse-more-libraries"),g.Z.openBrowseMore()}}get currentLibrariesFilter(){return this.context.viewState.currentLibrariesFilter}get isLoadingLibraries(){return("working"===this.context.libraryManager.syncStatus.state||"syncing"===this.context.libraryManager.syncStatus.state)&&this.context.libraryManager.getNewLibrarySyncProgress().some((e=>e.progress&&!this.context.libraryManager.libraries.find((({id:t})=>t===e.id))))}get loadingLibraries(){return this.isLoadingLibraries&&l.createElement("div",{className:"library-list-load-more"},l.createElement(te.Z,{size:"small",indeterminate:!0}),l.createElement("div",{className:"library-list-load-more-text"},(0,h.Iu)("DL_LOADING_MORE_LIBRARIES")))}get sortedLibraries(){const e=this.context.libraryManager.getCCLibraries(),t=!this.context.viewState.librarySortOrderDescendingState;return"name"===this.context.viewState.librarySortState?k.Z.sortByName(e,t):k.Z.sortByModified(e,!t)}get libraries(){return(0,se.l8)(this.currentLibrariesFilter,this.sortedLibraries)}get libraryList(){return l.createElement("div",{role:"listbox","aria-label":(0,h.Iu)("DL_ARIA_LIBRARY_LIST_TITLE"),"data-test-id":"library-list-content",className:"library-list-content"},this.libraries.map((e=>{var t,r;const n=`${e.id}${"org"===e.ownerType?"-team":""}`,i=g.Z.isContentViewMounted&&this.context.libraryManager.currentLibrary&&this.context.libraryManager.currentLibrary.id===e.id;return l.createElement(A.Z,{isSelected:i,key:n,library:e,onClick:e=>g.Z.navigateToLibrary(e),showContextMenuButton:null===(t=(r=v.Z.currentProduct.config).showLibraryListItemContextMenuButton)||void 0===t?void 0:t.call(r)})})),this.loadingLibraries)}navigationItem({id:e,icon:t,label:r,onClick:n}){return l.createElement(F.Z,{"data-test-id":`library-list-navigation-item-${e}`,className:"library-list-navigation-item",onClick:n},l.createElement(C.Z,{"data-test-id":`library-list-navigation-item-icon-${e}`,className:"library-list-navigation-item-icon",id:t,height:18}),l.createElement("span",{"data-test-id":`library-list-navigation-item-label-${e}`,className:"library-list-navigation-item-label"},r))}get navigationItems(){const e=g.Z.getIsStarterKitsAvailable&&g.Z.getIsStarterKitsAvailable(),t=this.context.libraryManager.isOnline;return l.createElement("div",{"data-test-id":"navigation",className:"library-list-navigation"},t&&this.navigationItem({id:"browseLibrary",icon:"Browse",label:(0,h.Iu)("DL_MORE_LIBRARY_BROWSE"),onClick:this.handleBrowseMore}),e?this.navigationItem({id:"marketplace",icon:"Shop",label:(0,h.Iu)("DL_GO_MARKETPLACE"),onClick:()=>this.handleMarketplace("add-menu")}):this.navigationItem({id:"followLibrary",icon:"GlobeSearch",label:(0,h.Iu)("DL_LIB_LIST_ONBOARDING_FOLLOW_LIBRARY_BUTTON_TEXT"),onClick:()=>this.handleFollowLibrary("add-menu")}))}get disabledFilters(){return this.context.viewState.getLibraryListFilterOptions().filter((e=>!this.isFilterEnabled(e)))}isFilterEnabled(e){return(0,se.l8)(e,this.sortedLibraries).length>0}get libraryOnboarding(){return this.loadingLibraries||0!==this.libraries.length?1!==this.context.libraryManager.libraries.length||this.isLoadingLibraries?void 0:l.createElement(U,{handleCreateLibrary:this.handleCreateLibrary,handleFollowLibrary:()=>this.handleFollowLibrary("empty-panel"),handleMarketplace:()=>this.handleMarketplace("empty-panel")}):l.createElement(q,null)}get contents(){return!this.context.libraryManager.libraries||this.context.libraryManager.libraries.length<1?l.createElement(N,null):l.createElement(l.Fragment,null,this.navigationItems,l.createElement("div",{"data-test-id":"header",className:"library-list-header"},l.createElement("div",le({"data-test-id":"title",className:"library-list-title"},g.Z.contextMenuEventListeners(this.onContextClickTitle)),(0,h.Iu)(v.Z.currentProduct.config.customPanelTitle||"DL_LIBRARIES_PANEL_NAME")),this.listControls),this.libraryList,this.libraryOnboarding)}get listControls(){return l.createElement("div",{role:"toolbar","aria-label":(0,h.Iu)("DL_ARIA_LIBRARY_LIST_SORT_OPTIONS"),"data-test-id":"controls",className:"library-list-controls"},l.createElement("div",{"data-test-id":"sortControls",className:"library-list-sortControls"},l.createElement(ae.Z,{"data-test-id":"sort-libraries",mode:"libraries",sortOrderControl:!0}),l.createElement(re.Z,{onFilterChange:this.onFilterChange,disabledFilters:this.disabledFilters}),l.createElement(ee.Z,{content:(0,h.Iu)("DL_ADD_LIBRARY_TOOLTIP")},l.createElement("button",{"aria-label":(0,h.Iu)("DL_ADD_LIBRARY_TOOLTIP"),tabIndex:"0","data-test-id":"add-library",className:"library-list-addButton",role:"button",id:"addLibraryListMenu",onClick:this.handleCreateLibrary},l.createElement(C.Z,{id:"Add",height:18})))))}render(){return l.createElement("div",{"data-test-id":"library-list",className:"library-list"},this.contents)}}).contextType=ce.r,ue((J=Q).prototype,"currentLibrariesFilter",[c.computed],Object.getOwnPropertyDescriptor(J.prototype,"currentLibrariesFilter"),J.prototype),ue(J.prototype,"isLoadingLibraries",[c.computed],Object.getOwnPropertyDescriptor(J.prototype,"isLoadingLibraries"),J.prototype),ue(J.prototype,"loadingLibraries",[c.computed],Object.getOwnPropertyDescriptor(J.prototype,"loadingLibraries"),J.prototype),ue(J.prototype,"sortedLibraries",[c.computed],Object.getOwnPropertyDescriptor(J.prototype,"sortedLibraries"),J.prototype),ue(J.prototype,"libraries",[c.computed],Object.getOwnPropertyDescriptor(J.prototype,"libraries"),J.prototype),ue(J.prototype,"libraryList",[c.computed],Object.getOwnPropertyDescriptor(J.prototype,"libraryList"),J.prototype),ue(J.prototype,"libraryOnboarding",[c.computed],Object.getOwnPropertyDescriptor(J.prototype,"libraryOnboarding"),J.prototype),ue(J.prototype,"contents",[c.computed],Object.getOwnPropertyDescriptor(J.prototype,"contents"),J.prototype),X=J))||X;var pe=r(89526);class he extends S{static get observedAttributes(){return["route"]}constructor(){super(pe.createElement(de,null),["ccd-list-container"])}attributeChangedCallback(e,t,r){"route"===e&&g.Z.handleRouteChange(r)}}var fe,me,ge,ve=r(64403),ye=r.n(ve),be=r(64027),_e=r(79012),Ee=r(43616);function we(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let xe=(0,I.Pi)(((ge=class extends l.Component{constructor(...e){super(...e),this.onClick=e=>{this.context.viewState.setViewByState(e),ne.ZP.reportEvent("Navigation","Library Panel","click","filter-change")}}get currentSearchType(){return this.context.viewState.getSearchType()}get selectedOption(){return this.context.viewState.viewByState}get groupLabel(){return v.Z.currentProduct.config.viewBySelectCustomOptionGroup||"DL_VIEW_BY_GROUP"}get typeLabel(){return v.Z.currentProduct.config.viewBySelectCustomOptionType||"DL_VIEW_BY_TYPE"}get menuData(){return this.context.viewState.getViewByStateOptions().map((e=>({label:(0,h.Iu)(this[`${e}Label`]),onClick:()=>this.onClick(e),isSelected:e===this.selectedOption,key:e})))}get currentLabel(){return(0,h.Iu)(this[`${this.selectedOption}Label`])}get title(){return l.createElement("div",{className:"panel-select-view-title","data-test-id":"panel-select-view-title"},(0,h.Iu)("DL_GROUP_BY_TITLE"))}render(){return l.createElement("div",{className:"panel-select-view-wrapper"},this.props.showTitle&&this.title,l.createElement(Ee.Z,{data:this.menuData,tooltip:v.Z.currentProduct.config.disableContentViewTooltips?void 0:(0,h.Iu)("DL_VIEW_BY_TOOLTIP"),className:"panel-select-view no-outline-dropdown view-type-dropdown",type:"select-view",currentLabel:this.currentLabel}))}}).contextType=ce.r,ge.propTypes={showTitle:B().bool},we((me=ge).prototype,"currentSearchType",[c.computed],Object.getOwnPropertyDescriptor(me.prototype,"currentSearchType"),me.prototype),we(me.prototype,"selectedOption",[c.computed],Object.getOwnPropertyDescriptor(me.prototype,"selectedOption"),me.prototype),we(me.prototype,"groupLabel",[c.computed],Object.getOwnPropertyDescriptor(me.prototype,"groupLabel"),me.prototype),we(me.prototype,"typeLabel",[c.computed],Object.getOwnPropertyDescriptor(me.prototype,"typeLabel"),me.prototype),we(me.prototype,"menuData",[c.computed],Object.getOwnPropertyDescriptor(me.prototype,"menuData"),me.prototype),we(me.prototype,"currentLabel",[c.computed],Object.getOwnPropertyDescriptor(me.prototype,"currentLabel"),me.prototype),we(me.prototype,"title",[c.computed],Object.getOwnPropertyDescriptor(me.prototype,"title"),me.prototype),fe=me))||fe;var Le,Oe,Se,Te,Pe,Ie,Ae=r(53849),Ce=r(95372),ke=r(92652),De=r(91854);function Ne(){return Ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ne.apply(this,arguments)}function Re(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function Me(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let je=(0,ke.observer)(((Ie=class extends l.Component{constructor(...e){super(...e),Re(this,"isDraggedOver",Se,this),Re(this,"isDraggedOverBottom",Te,this),Re(this,"isDraggedOverTop",Pe,this),this.handleDragStart=e=>{this.props.isReorderable&&e.dataTransfer.setData(g.Z.GroupDragId,this.props.id),this.props.isCollapsible&&!this.context.viewState.isGroupNavigationCollapsed(this.props.id)&&(this.context.viewState.setCollapsedGroupNavigationToDrag(this.props.id),this.props.onToggleCollapse(e))},this.handleDrop=e=>{if(this.props.isReorderable&&e.dataTransfer.types.includes(g.Z.GroupDragId)){const t=e.dataTransfer.getData(g.Z.GroupDragId);this.props.onReorderDrop(t,this.isDraggedOverBottom),this.context.viewState.collapsedGroupNavigationToDrag(t)&&this.context.viewState.isGroupNavigationCollapsed(t)&&(this.context.viewState.setGroupNavigationCollapsed(t,!1),this.context.viewState.clearCollapsedGroupNavigationToDrag())}else if(this.props.isElementDropTarget&&e.dataTransfer.types.includes(g.Z.ElementDragId)){const t=JSON.parse(e.dataTransfer.getData(g.Z.ElementDragId));this.props.onElementsDrop(t),De.Z.handleDragEnd()}this.isDraggedOver=!1,this.isDraggedOverBottom=!1,this.isDraggedOverTop=!1},this.handleDragOver=e=>{if(e.preventDefault(),e.dataTransfer.dropEffect="move",this.ref)if(this.props.isReorderable&&e.dataTransfer.types.includes(g.Z.GroupDragId)){const t=this.ref.getBoundingClientRect(),r=e.y-t.y;this.isDraggedOverBottom=r>t.height/2,this.isDraggedOverTop=!this.isDraggedOverBottom}else this.props.isElementDropTarget&&e.dataTransfer.types.includes(g.Z.ElementDragId)&&(this.isDraggedOver=!0)},this.handleDragLeave=()=>{this.isDraggedOver=!1,this.isDraggedOverBottom=!1,this.isDraggedOverTop=!1},this.handleKeyDown=e=>{e.stopPropagation(),"Enter"===e.key&&this.props.onToggleCollapse(e)}}get isUngrouped(){return!this.props.id||"*"===this.props.id}get expanderIcon(){if(this.props.expander)return this.props.expander}render(){const e=this.props,t=e.id,r=e.isReorderable,n=e.isElementDropTarget,i=e.onClick,o=e.onContextClick,s=e.children,c=e.requiresFocus,u=e=>{if(c){const t=(0,a.j6)(e);t&&"INPUT"!==t.tagName&&t.blur()}i(e)},d=`section-navigation-${t}`,p=ye()("section-navigation-nav-item",{"is-editing":this.context.viewManager.renamingItem&&this.context.viewManager.renamingItem.id===t,"is-dragged-over-top":this.isDraggedOverTop,"is-dragged-over-bottom":this.isDraggedOverBottom}),h=ye()("section-navigation-nav-item-wrapper",{"is-selected":this.context.viewState.currentSection===t,"is-dragged-over":this.isDraggedOver}),f=this.props.indent+2*v.Z.currentProduct.config.sectionNavIndent,m={onDragStart:this.handleDragStart,onDragOver:this.handleDragOver,onDragEnter:e=>e.preventDefault(),onDragLeave:this.handleDragLeave,onDrop:this.handleDrop,draggable:r},y=c?{tabIndex:"0",onKeyPress:e=>"Enter"===e.key?u(e):null}:{};return l.createElement("div",{"data-test-id":"section-navigation-nav-item-wrapper",className:h,style:{paddingLeft:`${f}px`}},this.expanderIcon,l.createElement("div",Ne({ref:e=>this.ref=e},r||n?m:{},{className:p,key:d,"data-test-id":d,onClick:u,onKeyDown:this.handleKeyDown},y,g.Z.contextMenuEventListeners(o),{style:{width:`calc(100% - ${this.props.indent}px)`}}),l.createElement("div",{className:"section-navigation-nav-item-text"},s)))}}).contextType=ce.r,Ie.propTypes={id:B().string.isRequired,children:B().node.isRequired,isReorderable:B().bool,isElementDropTarget:B().bool,onClick:B().func,onContextClick:B().func,onReorderDrop:B().func,onElementsDrop:B().func,requiresFocus:B().bool,style:B().object,isCollapsible:B().bool,expander:B().node,onToggleCollapse:B().func,indent:B().number},Ie.defaultProps={isCollapsible:!1},Ie.defaultProps={onClick:()=>{},onContextClick:()=>{},onReorderDrop:()=>{},onElementsDrop:()=>{},indent:0},Se=Me((Oe=Ie).prototype,"isDraggedOver",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Te=Me(Oe.prototype,"isDraggedOverBottom",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Pe=Me(Oe.prototype,"isDraggedOverTop",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Le=Oe))||Le;var Fe,Ze,Be=r(69233),Ge=r(3303),Ue=r(33275),He=r(75623);let ze=(0,I.Pi)(((Ze=class extends l.Component{render(){return l.createElement(Ge.Z,{item:this.props.group,placeholder:this.props.placeholder||(0,h.Iu)("DL_EDIT_GROUP_NAME_PLACEHOLDER"),containerClassName:"panel-group-container-text",inputClassName:"panel-group-container-input",onEditStart:this.props.onEditStart,onEditFinish:this.props.onEditFinish,onEditCancel:this.props.onEditCancel,onOverflowChange:this.props.onOverflowChange,isReadOnly:!this.context.viewState.isLibraryWritable(this.props.group.library),isEditDisabled:!this.context.viewState.isLibraryWritable(this.props.group.library)})}}).contextType=ce.r,Ze.propTypes={group:B().oneOfType([B().instanceOf(Ue.ZA),B().instanceOf(He.Z)]),placeholder:B().string,onEditStart:B().func,onEditFinish:B().func,onEditCancel:B().func,onOverflowChange:B().func},Fe=Ze))||Fe;var Ve,Ye,We,Ke,$e=r(48003);function qe(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}class Xe extends l.Component{render(){const e=this.props.group.children&&this.props.group.children.length>0;return e||this.props.group.parent?e?l.createElement("div",{"data-test-id":`section-expander-${this.props.group.id}`,className:"section-expander-icon",onClick:this.props.onToggleCollapse},l.createElement(C.Z,{id:this.props.isCollapsed?"ChevronRightMedium":"ChevronDownMedium",height:16})):l.createElement("div",{className:"section-expander-icon"}):l.createElement("div",null)}}Xe.contextType=ce.r,Xe.propTypes={group:B().object.isRequired,isCollapsed:B().bool,onToggleCollapse:B().func};let Je=(0,I.Pi)((Ke=class extends l.Component{constructor(...e){super(...e),function(e,t,r,n){r&&Object.defineProperty(e,"hasNameTooltip",{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}(this,0,We,this),this.onGroupClick=e=>{var t;const r=null===(t=this.groupsTree.find((t=>t.item===e)))||void 0===t?void 0:t.children[0];r?Ae.Z.setItemPendingScroll(r.item):Ae.Z.revealGroup(e)},this.onGroupContextClick=(e,t)=>{if(g.Z.setContextMenu&&"*"!==t.id){e.preventDefault(),e.stopPropagation();const r=(0,$e.M)(t,"Right Click");r.map((e=>e.label=(0,h.Iu)(e.label))),g.Z.setContextMenu(r)}},this.handleReorderDrop=(e,t,r=!1)=>{if(t===e.id)return;const n=this.orderedGroups.filter((e=>this.context.viewState.isGroupNavigationCollapsed(e.id))),i=[];n.forEach((e=>i.push(...(0,Be.xF)(e,!1))));const o=this.orderedGroups.filter((e=>!i.includes(e))),a=e.library.getGroupById(t),s=o.findIndex((t=>t.id===e.id));ne.ZP.setExtraEventMetrics("updateGroup",{content:{category:"List"}});let c=r?e:o[s-1];const l=r?o[s+1]:e,u=c&&this.context.viewState.isGroupNavigationCollapsed(c.id);a.parent===c&&l&&l.parent===c&&!u&&(c=void 0),!a.parent&&c&&!c.parent&&l&&!l.parent||!c||c.parent!==a.parent||l===a.parent||u||(c=void 0),(0,se.dB)(a,c,l),Ae.Z.setItemPendingScroll(a)},this.handleElementsDrop=(e,t)=>{const r=t.elementIds.map((e=>this.context.libraryManager.currentLibrary.getElementById(e))),n=e.library?e:void 0,i=n&&r.every((e=>!!e.getOrderInGroup(n))),o=n?i?"order":"add-to-group":"ungroup";ne.ZP.reportEvent("Element Operations","Element","click",o,{event:{value:"agg",count:r.length},content:{category:"Drag Drop"}},this.context.libraryManager.currentLibrary),ne.ZP.setExtraEventMetrics("updateElement",{subtype:o,content:{category:"Drag Drop List"}}),(0,se.c_)(r,n,null,void 0,"Drag Drop List")},this.handleOverflowChange=e=>{this.hasNameTooltip=e},this.onToggleCollapse=e=>{e.stopPropagation(),this.context.viewState.setGroupNavigationCollapsed(this.group.id,!this.isCollapsed)}}get group(){return this.props.group}get isRenamingMode(){return this.context.viewManager.renamingItem&&this.context.viewManager.renamingItem.id===this.group.id}get isCollapsed(){return this.context.viewState.isGroupNavigationCollapsed(this.props.group.id)}get groupsTree(){return o.Z.groupElementsByCustomGroup(this.context.libraryManager.currentLibrary.elements,this.context.libraryManager.currentLibrary.getGroups(),0,this.context.viewState.elementSortState)}get orderedGroups(){return this.context.viewState.groupsInViewOrder}render(){return l.createElement(je,{isReorderable:this.context.viewState.isLibraryWritable(this.context.libraryManager.currentLibrary)&&!!this.group.library&&this.context.viewManager.renamingItem!==this.group&&"order"===this.context.viewState.elementSortState,isElementDropTarget:this.context.viewState.isLibraryWritable(this.context.libraryManager.currentLibrary),key:this.group.id,id:this.group.id,onClick:()=>this.onGroupClick(this.group),onContextClick:e=>this.onGroupContextClick(e,this.group),requiresFocus:!0,onReorderDrop:(e,t)=>this.handleReorderDrop(this.group,e,t),onElementsDrop:e=>this.handleElementsDrop(this.group,e),isCollapsible:this.group.children&&this.group.children.length>0,onToggleCollapse:this.onToggleCollapse,expander:l.createElement(Xe,{group:this.group,onToggleCollapse:this.onToggleCollapse,isCollapsed:this.isCollapsed}),indent:this.props.indent},l.createElement(ee.Z,{className:"group-name-tooltip",placement:"top",content:this.group.name,disable:!this.hasNameTooltip||!!this.isRenamingMode},this.group.name&&l.createElement(ze,{onOverflowChange:this.handleOverflowChange,group:this.group,key:this.group.id,placeholder:(0,h.Iu)("DL_EDIT_GROUP_NAME_PLACEHOLDER_ACCC")})||(0,h.Iu)("DL_GROUP_UNGROUPED")))}},Ke.contextType=ce.r,Ke.propTypes={group:B().object.isRequired,indent:B().number},Ke.defaultProps={indent:0},We=qe((Ye=Ke).prototype,"hasNameTooltip",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),qe(Ye.prototype,"groupsTree",[c.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"groupsTree"),Ye.prototype),Ve=Ye))||Ve;var Qe,et,tt,rt=r(46931);function nt(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let it=(0,I.Pi)((et=class extends l.Component{constructor(...e){super(...e),this.MIN_WIDTH=208,this._MAX_WIDTH=3*this.MIN_WIDTH,this.RESIZE_THRESHOLD=25,function(e,t,r,n){r&&Object.defineProperty(e,"_width",{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}(this,0,tt,this),this.handleClick=()=>{rt.Z.panel.viewState.clearAllSelections()},this.adjustNavWidth=()=>{this._width=Math.min(Math.max(this._width,this.MIN_WIDTH),this.MAX_WIDTH)},this.mouseDragHandler=e=>{if(e.preventDefault(),Math.abs(this._xOffset-e.pageX)>this.RESIZE_THRESHOLD){if(1!==e.buttons)return this.adjustNavWidth(),void window.removeEventListener("mousemove",this.mouseDragHandler);const t=-1*(this._xOffset-e.pageX)+this._startingPanelWidth;t<=this.MAX_WIDTH&&t>=this.MIN_WIDTH&&(this._width=t)}},this.handleResizeStart=e=>{e.preventDefault(),this._startingPanelWidth=this._width,this._xOffset=e.pageX,window.addEventListener("mousemove",this.mouseDragHandler)}}setCurrentFirstSection(){const e="group"===s.Z.viewByState?this.orderedGroups[0]:this.typedElements[0]&&this.typedElements[0].type;Ae.Z.revealGroup(e,!0)}componentDidUpdate(){s.Z.currentSection||this.setCurrentFirstSection()}componentDidMount(){s.Z.currentSection||this.setCurrentFirstSection(),window.addEventListener("resize",this.adjustNavWidth)}componentWillUnmount(){window.removeEventListener("resize",this.adjustNavWidth)}get typedElements(){return o.Z.groupElementsByType(i.ZP.currentLibrary.elements,s.Z.elementSortState).filter((e=>e.children.length>0))}get typeList(){const e=e=>{const t=this.typedElements.find((t=>t.type===e)).children[0];Ae.Z.setItemPendingScroll(t)};return this.typedElements.map((t=>l.createElement(je,{key:t.type,id:t.type,requiresFocus:!0,onClick:()=>e(t.type)},(0,h.Iu)(o.Z.getTypeName(t.type)))))}get orderedGroups(){return s.Z.groupsInViewOrder}get tree(){const e=s.Z.elementSortState;return(0,Be.GI)(i.ZP.currentLibrary,{sortBy:e})}get groupedSectionsLevels(){const e=this.tree.branches;return Math.max(...Object.values(e).map((e=>e.item.isGroup?e.depth:0)))+1}get subgroupIndent(){const e=this._width*v.Z.SUBGROUP_INDENT_PERCENT,t=this.groupedSectionsLevels;return Math.min(v.Z.MAX_SUBGROUP_INDENT,Math.ceil(e/t))}get groupList(){if(!i.ZP.currentLibrary.elements.length&&this.orderedGroups.length<=1)return;const e=this.subgroupIndent,t=[],r=(n,i)=>{const o=n.item;(o!==v.Z.UNGROUPED_GROUP||n.children.length)&&(t.push(l.createElement(Je,{key:o.id,group:o,indent:i})),s.Z.isGroupNavigationCollapsed(o.id)||n.children&&n.children.forEach((t=>{t.item.isGroup&&r(t,i+e)})))};return this.tree.root.children.forEach((e=>r(e,0))),t}get list(){return"type"===s.Z.viewByState?this.typeList:this.groupList}get disableGroup(){return!s.Z.isLibraryWritable(i.ZP.currentLibrary)||i.ZP.currentLibrary.documentType&&0===i.ZP.currentLibrary.elementCount}get createGroupButton(){if("type"!==s.Z.viewByState)return l.createElement(je,{isReorderable:!1,isElementDropTarget:!0,key:"newGroupButton",id:"newGroupButton",requiresFocus:!1,onElementsDrop:e=>(e=>{const t=e.elementIds.map((e=>i.ZP.currentLibrary.getElementById(e)));ne.ZP.reportEvent("Element Operations","Element","click","add-to-group",{event:{value:"agg",count:t.length},content:{category:"Drag Drop Group Button"}},i.ZP.currentLibrary),ne.ZP.setExtraEventMetrics("updateElement",{subtype:"add-to-group",content:{category:"Drag Drop Group Button"}}),ne.ZP.setExtraEventMetrics("createGroup",{content:{category:"Drag Drop Group Button"}}),(0,se.V5)(t,"Drag Drop Group Button")})(e)},l.createElement("div",{className:"section-navigation-new-group"},l.createElement(Ce.Z,{disableEmptySubgroups:!0,showLabel:!0,disabled:this.disableGroup})))}get navigation(){return l.createElement("div",{className:"section-navigation-nav-list"},l.createElement("div",{className:"section-navigation-nav-list-contents"},this.list))}get MAX_WIDTH(){const e=window.innerWidth/2-2*v.Z.currentProduct.config.windowGutterPaddingWidth;return Math.min(e,this._MAX_WIDTH)}render(){return l.createElement("div",{onClick:this.handleClick,className:ye()("ccd-view-panel",{"is-open":s.Z.showNavigation}),style:{width:this._width},"data-test-id":"ccd-view-panel"},l.createElement("div",{className:"ccd-view-panel-column"},l.createElement(xe,{showTitle:!0}),l.createElement("div",{className:"ccd-section-nav-divider"}),this.createGroupButton,l.createElement("div",{className:"ccd-section-nav-list-wrapper"},this.navigation)),l.createElement("div",{className:"ccd-side-nav-handle",onMouseDown:this.handleResizeStart}))}},tt=nt(et.prototype,"_width",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.MIN_WIDTH}}),nt(et.prototype,"typedElements",[c.computed],Object.getOwnPropertyDescriptor(et.prototype,"typedElements"),et.prototype),nt(et.prototype,"typeList",[c.computed],Object.getOwnPropertyDescriptor(et.prototype,"typeList"),et.prototype),nt(et.prototype,"tree",[c.computed],Object.getOwnPropertyDescriptor(et.prototype,"tree"),et.prototype),nt(et.prototype,"groupedSectionsLevels",[c.computed],Object.getOwnPropertyDescriptor(et.prototype,"groupedSectionsLevels"),et.prototype),nt(et.prototype,"subgroupIndent",[c.computed],Object.getOwnPropertyDescriptor(et.prototype,"subgroupIndent"),et.prototype),nt(et.prototype,"groupList",[c.computed],Object.getOwnPropertyDescriptor(et.prototype,"groupList"),et.prototype),Qe=et))||Qe;var ot,at,st,ct=r(87757),lt=r(75157),ut=r(85834),dt=r(97536),pt=r(74242);function ht(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}function ft(){const e=!rt.Z.panel.libraryManager.currentLibrary||rt.Z.panel.libraryManager.currentLibrary.elements.length>0,t="grid"===rt.Z.panel.viewState.viewState,r=[{label:(0,h.Iu)("DL_SORT_NAME"),key:"name"},{label:(0,h.Iu)("DL_SORT_DATE"),key:"modified"}],n=[{label:(0,h.Iu)("DL_SEARCH_SORT_BY_OPTION_ORDER"),key:"order"},{label:(0,h.Iu)("DL_SORT_NAME"),key:"name"}],i="type"===rt.Z.panel.viewState.viewByState?r:n;g.Z.setFooter({navigation:{value:[!0,!1],selected:rt.Z.panel.viewState.showNavigation,onChange:e=>{rt.Z.panel.viewState.setShowNavigation(e),ft()}},zoom:e&&t&&{value:[v.Z.GRID_TYPE_SMALL,v.Z.GRID_TYPE_MEDIUM,v.Z.GRID_TYPE_LARGE],selected:rt.Z.panel.viewState.gridZoomFactor,onChange:e=>{rt.Z.panel.viewState.setGridZoomFactor(e),ft()}},sort:e&&{value:i,selected:rt.Z.panel.viewState.elementSortState,reverse:rt.Z.panel.viewState.elementSortDescendingState,onChange:(e,t)=>{rt.Z.panel.viewState.setElementSortState(e),rt.Z.panel.viewState.setElementSortDescendingState(t),ne.ZP.reportEvent("Navigation","Library Panel","click","sort-change",{content:{type:"element"}}),ft()},supportReverseOrder:!1}})}let mt=(0,I.Pi)((st=class extends l.Component{constructor(e,t){super(e),g.Z.setHeader&&(this.disposeHeaderChangeReaction=(0,c.reaction)((()=>t.libraryManager.isSharingEnabled),(()=>g.Z.setHeader()))),g.Z.setFooter&&(this.disposeViewStateReaction=(0,c.reaction)((()=>t.viewState.viewByState),(()=>ft()),{fireImmediately:!0}),this.disposeLibraryElementsReaction=(0,c.reaction)((()=>t.libraryManager.currentLibrary&&t.libraryManager.currentLibrary.elements.length),(()=>ft()),{fireImmediately:!0}))}componentDidMount(){(0,dt.Sy)()}componentDidUpdate(){const e=this.context.viewState.currentSection;if(this.library&&"type"!==this.context.viewState.viewByState&&(!e||"*"!==e)&&e&&!this.library.getGroupById(e)){const e=this.context.viewState.groupsInViewOrder;e.length&&this.context.viewState.setCurrentSection(e[0].id)}}componentWillUnmount(){this.disposeViewStateReaction&&this.disposeViewStateReaction(),this.disposeLibraryElementsReaction&&this.disposeLibraryElementsReaction(),this.disposeHeaderChangeReaction&&this.disposeHeaderChangeReaction()}get library(){return this.context.libraryManager.currentLibrary}get viewPanel(){if(this.library&&this.context.viewState.showNavigation)return l.createElement(it,null)}get stickyHeader(){const e=this.context.viewState.currentSection,t=this.library&&0===this.library.elements.length&&0===this.library.getGroups().length||"type"===this.context.viewState.viewByState&&0===this.library.elements.length,r="group"===this.context.viewState.viewByState&&0===this.library.getGroups().length;if(!e||!this.library||t||r)return;const n="type"===this.context.viewState.viewByState||"*"===e?(()=>{const t="*"===e?(0,h.Iu)("DL_GROUP_UNGROUPED"):(0,h.Iu)(o.Z.getTypeName(e));return l.createElement("span",{className:"panel-group-header root last-of-type"},t)})():(()=>{const t=this.library.getGroupById(e);if(t)return l.createElement(pt.Z,{group:t,disableEditing:!0})})();return l.createElement("div",{"data-test-id":"ccd-sticky-header",className:"ccd-sticky-header"},n)}get libraryContents(){return this.library?l.createElement(l.Fragment,null,this.stickyHeader,l.createElement("div",{className:"ccd-contents-container"},l.createElement(be.Z,null))):l.createElement(_e.Z,{className:"panel-nolibs-container"})}get toolkitUnlock(){const e=()=>{this.context.viewState.unlock(this.library),g.Z.setHeader&&g.Z.setHeader()};if(this.library&&this.library.toolkitId&&this.context.viewState.isLocked(this.library)){const t=v.Z.TOOLKIT_TYPES.includes(this.library.toolkitId)?this.library.toolkitId.toUpperCase():"GENERIC";return l.createElement("div",{className:"toolkit-unlocked-bar","data-test-id":"toolkit-unlocked-bar"},l.createElement("div",{className:"toolkit-unlocked-bar-text"},(0,h.Iu)(`DL_${t}_TOOLKIT_UNLOCK_TOAST_MESSAGE`)),l.createElement("button",{className:"toolkit-unlocked-bar-button","data-test-id":"toolkit-unlocked-bar-button",onClick:e},l.createElement("span",{className:"toolkit-unlocked-bar-button-text"},(0,h.Iu)("DL_MY_TOOLKIT_UNLOCK_TOAST_BUTTON"))))}}render(){const e=ye()("panel-contents-wrapper",`panel-contents-zoom-${this.context.viewState.gridZoomFactor}`);return l.createElement(l.Fragment,null,ut.Z.get("showToolkitLibraries")&&this.toolkitUnlock,l.createElement("div",{className:"ccd-contents-wrapper"},this.viewPanel,l.createElement("div",{className:e},this.libraryContents),l.createElement(lt.Z,null),l.createElement(ct.Z,null)))}},st.contextType=ce.r,ht((at=st).prototype,"viewPanel",[c.computed],Object.getOwnPropertyDescriptor(at.prototype,"viewPanel"),at.prototype),ht(at.prototype,"stickyHeader",[c.computed],Object.getOwnPropertyDescriptor(at.prototype,"stickyHeader"),at.prototype),ht(at.prototype,"libraryContents",[c.computed],Object.getOwnPropertyDescriptor(at.prototype,"libraryContents"),at.prototype),ht(at.prototype,"toolkitUnlock",[c.computed],Object.getOwnPropertyDescriptor(at.prototype,"toolkitUnlock"),at.prototype),ot=at))||ot;var gt=r(89526);class vt extends S{static get observedAttributes(){return["route"]}constructor(){super(gt.createElement(mt,null),["ccd-panel-container"])}connectedCallback(){super.connectedCallback(),g.Z.isContentViewMounted=!0}disconnectedCallback(){super.disconnectedCallback(),g.Z.isContentViewMounted=!1,rt.Z.panel.viewState.showRootView()}attributeChangedCallback(e,t,r){"route"===e&&g.Z.handleRouteChange(r)}}var yt,bt,_t=r(84074);let Et=(0,I.Pi)(((bt=class extends l.Component{render(){const e=_t.ZP.dialog;return e?l.cloneElement(e,{close:()=>{e.props.close(),this.props.onClose()}}):(this.props.onClose(),null)}}).propTypes={onClose:B().func.isRequired},yt=bt))||yt;class wt extends O{constructor(){super(l.createElement(Et,{onClose:()=>(g.Z.hideDialog(),void p.ZP.removeRoot(this.shadowDOM))}),s.Z.getRemovePadding()?["ccd-dialog-container-no-margin"]:[],s.Z.getRemovePadding()?["ccd-dialog-body-no-margin"]:[])}}var xt=r(16154),Lt=r(89526);class Ot extends O{constructor(){super(Lt.createElement(xt.Z,null),["ccd-info-container"])}connectedCallback(){super.connectedCallback(),g.Z.isLibrariesViewMounted=!0}disconnectedCallback(){super.disconnectedCallback(),g.Z.isLibrariesViewMounted=!1}}var St=r(13169),Tt=r(82562),Pt=r(74149),It=r(45079),At=r(96195),Ct=r.n(At),kt=r(32817),Dt=r.n(kt),Nt=r(37642),Rt=r(85080);const Mt={libraryMosaicHeader:"iQ3",libraryMosaicHeaderContainer:"Pve",libraryMosaicTitle:"J9H",libraryMosaicHeaderControls:"pdT",libraryMosaicHeaderButtonContainer:"MNG",libraryMosaicHeaderNewLibrary:"hN8",libraryMosaicHeaderButtonIcon:"p9k",libraryMosaicHeaderSubdivider:"PR-",libraryMosaicToggleButtonContainer:"Ct7",libraryMosaicToggleButton:"PqJ",newButton:"y1R",librarySearchFilter:"n8Y",libraryMosaicHeaderSearch:"gLI",newDropdown:"dfF",libraryMosaicHeaderBrowseAll:"aF4"};var jt,Ft,Zt;const Bt=v.Z.LIBRARIES_VIEW_STATES.GRID,Gt=v.Z.LIBRARIES_VIEW_STATES.LIST;let Ut=(0,I.Pi)(((Zt=class extends l.Component{constructor(...e){super(...e),this.overlayState=new Rt.Z({ignoreScrollEvents:!0,ignoreFocus:!0}),this.onSortChange=()=>{ne.ZP.reportEvent("Navigation","Library Panel","click","sort-change",{content:{type:"library"}})},this.onClickBrowseLibraries=()=>{g.Z.openBrowseMore&&(ne.ZP.reportEvent("Navigation","Navigation","click","browse-all-libraries"),g.Z.openBrowseMore())},this.handleCreateLibrary=()=>this.context.libraryActions.create((e=>g.Z.navigateToLibrary(e))),this.onToggleViewClick=()=>{this.context.viewState.setLibrariesViewState(this.context.viewState.librariesViewState===Gt?Bt:Gt)},this.onSearchChange=e=>{this.context.viewState.setSearchText(e)},this.handleClick=()=>{this.overlayState.toggleOverlay()},this.setCustomLabelRef=e=>{this.customLabelRef=e}}get syncStatus(){return this.context.libraryManager.syncStatus}getHeaderButton({id:e,label:t,className:r,onClick:n,icon:i,disabled:o,tooltip:a}){return l.createElement(ee.Z,{content:a,className:Mt.libraryMosaicHeaderButtonContainer},l.createElement(Ct(),{"data-test-id":`library-mosaic-header-${e}`,label:t,variant:"action",className:ye()(r,Mt.libraryMosaicHeaderButton),disabled:o,icon:i,onClick:n}))}get disableActions(){return!this.context.libraryManager.libraries.length&&"error"===this.syncStatus.state&&!Nt.Cu(this.syncStatus)}get browseAllButton(){const e=!this.context.libraryManager.isOnline||this.disableActions;return this.getHeaderButton({id:e?"browse-all-offline":"browse-all",className:Mt.libraryMosaicHeaderBrowseAll,label:(0,h.Iu)("DL_MORE_LIBRARY_BROWSE_ALL"),onClick:this.onClickBrowseLibraries,disabled:e,icon:l.createElement(C.Z,{id:"Browse",height:14,width:15,className:Mt.libraryMosaicHeaderButtonIcon}),tooltip:e?(0,h.Iu)("DL_MORE_LIBRARY_BROWSE_ALL_OFFLINE"):(0,h.Iu)("DL_MORE_LIBRARY_BROWSE_ALL")})}get newLibraryButton(){return this.getHeaderButton({id:"new-library",label:(0,h.Iu)("DL_NEW_LIBRARY"),className:Mt.libraryMosaicHeaderNewLibrary,onClick:this.handleCreateLibrary,icon:l.createElement(C.Z,{id:"AddCircle",height:14,className:Mt.libraryMosaicHeaderButtonIcon}),tooltip:(0,h.Iu)("DL_NEW_LIBRARY"),disabled:this.disableActions})}get toggleViewButton(){const e=this.context.viewState.librariesViewState===Gt?"GridView":"ListView";return l.createElement(ee.Z,{content:(0,h.Iu)("DL_LIBRARY_TOGGLE_VIEW"),className:Mt.libraryMosaicToggleButtonContainer},l.createElement(Ct(),{"data-test-id":"library-mosaic-header-toggle-view",variant:"action",className:Mt.libraryMosaicToggleButton,disabled:this.disableActions,onClick:this.onToggleViewClick,icon:l.createElement(C.Z,{id:e,height:16})}))}get filterBySearch(){return l.createElement(Dt(),{"data-test-id":"library-mosaic-header-search",className:Mt.libraryMosaicHeaderSearch,onChange:this.onSearchChange,placeholder:(0,h.Iu)("DL_LIBRARY_MANAGER_SEARCH_INPUT_PLACEHOLDER_AW"),quiet:!0,maxLength:100})}get newButton(){return l.createElement("div",{className:Mt.newDropdown},l.createElement(Ee.Z,{tooltip:(0,h.Iu)("DL_NEW"),data:this.newDropdownData,className:"new-dropdown",type:"newButton",locationBasedOnLabel:!0,currentLabel:this.label,customLabelRef:this.customLabelRef}))}get newDropdownData(){return[{label:(0,h.Iu)("DL_NEW_LIBRARY"),onClick:()=>this.context.dialogManager.openDialog("createLibrary",{createTitle:(0,h.Iu)("DL_NEW_LIBRARY"),onCreate:g.Z.navigateToMosaic}),id:"NewLibrary",iconId:"AddCircle",key:"newLibrary"},{label:(0,h.Iu)("DL_MORE_LIBRARY_BROWSE_ALL"),onClick:()=>{var e;return null===(e=g.Z.navigateToBrowseAll)||void 0===e?void 0:e.call(g.Z)},id:"BrowseAll",iconId:"Browse",key:"browseAll"}]}get label(){return l.createElement("div",{ref:this.setCustomLabelRef},l.createElement(Ct(),{variant:"cta",onClick:this.handleClick,selected:this.overlayState.isOpen,"data-test-id":"new-button-dropdown"},l.createElement(C.Z,{id:"AddCircle",height:14,className:Mt.newButton}),(0,h.Iu)("DL_NEW")))}get isEmptyView(){return 0===this.context.libraryManager.libraries.length}get libraryMosiacHeaderControls(){return"assets-web"===this.props.variant?l.createElement(l.Fragment,null,l.createElement(re.Z,null),!this.isEmptyView&&l.createElement(l.Fragment,null,l.createElement(ae.Z,{mode:"libraries",sortOrderControl:!0,onSortChange:this.onSortChange}),this.toggleViewButton,l.createElement("span",{"data-test-id":"libraries-search-filter",className:Mt.librarySearchFilter},(0,h.Iu)("DL_SEARCH_FILTERS_TOOLTIP")),this.filterBySearch),l.createElement("span",{"data-test-id":"mosaic-header-divider",className:Mt.libraryMosaicHeaderSubdivider}),this.newButton):l.createElement(l.Fragment,null,this.newLibraryButton,this.browseAllButton,l.createElement("span",{"data-test-id":"mosaic-header-divider",className:Mt.libraryMosaicHeaderSubdivider}),l.createElement(re.Z,{disabled:this.disableActions}),l.createElement(ae.Z,{disabled:this.disableActions,mode:"libraries",sortOrderControl:!0,onSortChange:this.onSortChange}),this.toggleViewButton)}render(){return l.createElement("div",{"data-test-id":"library-mosaic-header",className:Mt.libraryMosaicHeader},l.createElement("div",{className:Mt.libraryMosaicHeaderContainer},l.createElement(It.default,{variant:"subtitle1","data-test-id":"mosaic-header-title",className:Mt.libraryMosaicTitle,onContextMenu:se.XT},(0,h.Iu)(v.Z.currentProduct.config.customPanelTitle||"DL_LIBRARIES_PANEL_NAME")),l.createElement("div",{className:Mt.libraryMosaicHeaderControls},this.libraryMosiacHeaderControls)))}}).contextType=ce.r,Zt.defaultProps={variant:"default"},Zt.propTypes={variant:B().oneOf(["assets-web","default"])},function(e,t,r,n,i){var o={};Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}((Ft=Zt).prototype,"syncStatus",[c.computed],Object.getOwnPropertyDescriptor(Ft.prototype,"syncStatus"),Ft.prototype),jt=Ft))||jt;var Ht=r(10206),zt=r.n(Ht),Vt=r(83377),Yt=r(28086),Wt=r(30222),Kt=r(94859),$t=r(82530);const qt=["children","className","onSelectionChange","selected","actionMenu"];function Xt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Jt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(r),!0).forEach((function(t){Qt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Qt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function er(){er=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function tr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const rr=(0,Kt.Z)(r(20731));let nr;$t.env.EXCLUDE_SWC||(nr=new Yt.t(["sp-card"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){tr(o,n,i,a,s,"next",e)}function s(e){tr(o,n,i,a,s,"throw",e)}a(void 0)}))}}(er().mark((function e(){var t,n;return er().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(5987),r.e(2249),r.e(5339)]).then(r.bind(r,97412));case 2:return t=e.sent,n=t.Card,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const ir=(0,Vt.Z)({displayName:"Card",fallback:rr.Card,swcLoader:nr,SWCWrapper:function(e){const t=e.children,r=e.className,n=e.onSelectionChange,i=e.selected,o=e.actionMenu,a=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,qt),s=(0,Wt.Co)("sp-card");return l.createElement(s,Jt(Jt(Jt({},a),(0,Wt.cd)({selected:i})),{},{onchange:n,class:r}),t,o&&l.createElement("div",{slot:"actions"},o))},tagName:"sp-card"}),or=(0,Vt.Z)({displayName:"CardBody",fallback:rr.CardBody,swcLoader:nr,SWCWrapper:function(e){const t=e.title,r=e.subtitle,n=e.description,i=t&&l.createElement("div",{slot:"heading"},t),o=r&&l.createElement("div",{slot:"subheading"},r),a=n&&l.createElement("div",{slot:"description"},n);return l.createElement(l.Fragment,null,i,o,a)},tagName:"sp-card"}),ar=(0,Vt.Z)({displayName:"CardPreview",fallback:rr.CardPreview,swcLoader:nr,SWCWrapper:function(e){return e.children?l.createElement("div",{slot:"preview"},e.children):null},tagName:"sp-card"});var sr,cr,lr=r(21694),ur=r(36791),dr=r(39293),pr=r(1149),hr=r(51702),fr=r(39611);function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mr.apply(this,arguments)}let gr=(0,I.Pi)(((cr=class extends l.Component{constructor(...e){super(...e),this.overlayState=new Rt.Z({ignoreScrollEvents:!0,ignoreFocus:!0}),this.handleContextMenuClick=e=>{if(g.Z.setContextMenu){this.overlayState.toggleOverlay();const t=(0,dr.Ol)(this.props.library);ne.ZP.reportEvent("Navigation",t?"brands":"libraries","click",(t?"brand":"library")+"-contextual-menu",{},this.props.library),(0,se.au)(e,this.props.library)}}}get coverImage(){const e=this.props.library;return l.createElement(fr.Z,{viewMode:"grid",renditionGrid:e.renditionGrid,library:e,"data-test-id":"library-grid-mosaic-view"})}get contextMenuButton(){if(!g.Z.isMobileView)return l.createElement("div",{className:ye()("gridContextMenuButton",{open:this.overlayState.isOpen})},l.createElement(hr.Z,{quiet:!0,"data-test-id":"mosaic-context-menu",onContextMenuClick:this.handleContextMenuClick}))}render(){return l.createElement("div",mr({},g.Z.contextMenuEventListeners(this.handleContextMenuClick),{className:ye()("WKb","TKs"),"data-test-id":"mosaic-card-component"}),this.contextMenuButton,this.coverImage)}}).contextType=ce.r,cr.propTypes={library:B().instanceOf(Ue.Zu).isRequired},sr=cr))||sr;var vr=r(98405),yr=r(6535),br=r(59299),_r=r(98675),Er=r(82530);const wr=["children"],xr=["className","children","icon","label","onSelect","disabled","focused","invalid","open","quiet","readonly","alignRight","placement","aria-label"];function Lr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Or(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lr(Object(r),!0).forEach((function(t){Sr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Sr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tr(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Pr(){Pr=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ir(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Ar=r(94801).default;let Cr;Er.env.EXCLUDE_SWC||(Cr=new Yt.t(["sp-action-menu"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ir(o,n,i,a,s,"next",e)}function s(e){Ir(o,n,i,a,s,"throw",e)}a(void 0)}))}}(Pr().mark((function e(){var t,n;return Pr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(6526),r.e(6533),r.e(2185),r.e(1692),r.e(2668)]).then(r.bind(r,1640));case 2:return t=e.sent,n=t.ActionMenu,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const kr=(0,Vt.Z)({displayName:"DropdownButton",fallback:e=>{const t=e.children,r=Tr(e,wr);return Ar?l.createElement(Ar,Or({},r),l.Children.map(t,(e=>l.isValidElement(e)?l.cloneElement(e,{forceFallback:!0}):e))):null},swcLoader:Cr,SWCWrapper:e=>{const t=(0,l.useRef)(null),r=e.className,n=e.children,i=e.icon,o=e.label,a=e.onSelect,s=e.disabled,c=e.focused,u=e.invalid,d=e.open,p=e.quiet,h=e.readonly,f=e.alignRight,m=e.placement,g=e["aria-label"],v=Tr(e,xr),y=function(e){if(e)return l.cloneElement(e,{slot:"icon"})}(i),b=o?l.createElement("span",{slot:"label"},o):null,_=f?"bottom-end":m;(0,l.useEffect)((()=>{const e=t.current,r=e=>{const t=e.target;null==a||a(t.value)};return e&&a&&e.addEventListener("change",r),()=>{e&&a&&e.removeEventListener("change",r)}}),[a]);const E=Or(Or({},(0,Wt.cd)({disabled:s,focused:c,invalid:u,open:d,quiet:p,readonly:h})),{},{label:g,placement:_},v),w=(0,Wt.Co)("sp-action-menu");return l.createElement(w,Or({ref:t,class:r},E),y,b,"string"!=typeof n&&n)},tagName:"sp-action-menu"});var Dr,Nr,Rr=r(82038),Mr=r(91489);let jr=(0,I.Pi)(((Nr=class extends l.Component{constructor(...e){super(...e),this._onClick=e=>{e.stopPropagation()}}render(){const e=this.props.disabled||!this.props.menuData||0===this.props.menuData.length;return l.createElement(kr,{icon:this.props.icon,"data-test-id":this.props.dataTestId||"dropdown-button",quiet:this.props.quiet,placement:this.props.placement,onClick:this._onClick,disabled:e},l.createElement(Mr.kS,null,l.createElement(Rr.Z,{source:this.props.source,menuData:this.props.menuData,iconSize:this.props.menuIconSize,hideDividers:this.props.hideDividers})))}}).contextType=ce.r,Dr=Nr))||Dr;var Fr,Zr,Br;function Gr(){return Gr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gr.apply(this,arguments)}const Ur=r(42649);let Hr=(0,I.Pi)(((Br=class extends l.Component{constructor(...e){super(...e),this.overlayState=new Rt.Z({ignoreScrollEvents:!0,ignoreFocus:!0}),this.handleContextMenuClick=e=>{if(g.Z.setContextMenu){this.overlayState.toggleOverlay();const t=(0,dr.Ol)(this.props.library);ne.ZP.reportEvent("Navigation",t?"brands":"libraries","click",(t?"brand":"library")+"-contextual-menu",{},this.props.library),(0,se.au)(e,this.props.library)}}}get isPublished(){return(0,dr.Hc)(this.props.library)}hashCode(e){let t=0;for(let r=0,n=e.length;r<n;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return Math.abs(t)}get coverImage(){const e=this.props.library;if(!e.assetId)return l.createElement(l.Fragment,null);const t=this.hashCode(e.assetId),r=Ur(`./cover${t%20+1}.svg`);return l.createElement("img",{className:"Yos",src:r})}render(){return l.createElement("div",Gr({},g.Z.contextMenuEventListeners(this.handleContextMenuClick),{className:ye()("GdS","MuV"),"data-test-id":"mosaic-card-component"}),this.coverImage)}}).contextType=ce.r,Br.propTypes={library:B().instanceOf(Ue.Zu).isRequired},function(e,t,r,n,i){var o={};Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}((Zr=Br).prototype,"isPublished",[c.computed],Object.getOwnPropertyDescriptor(Zr.prototype,"isPublished"),Zr.prototype),Fr=Zr))||Fr;var zr,Vr;let Yr=(0,I.Pi)(((Vr=class extends l.Component{getGenStudioContextMenu(e){const t=this.context.brandActions.getBrandActions(e);return l.createElement(jr,{quiet:!0,menuData:t,hideDividers:!0})}get publishedBadge(){return l.createElement(_r.Z,{"data-test-id":"published-status-light",variant:"positive"},(0,h.Iu)("BRAND_PUBLISHED_BADGE"))}get draftBadge(){return l.createElement(_r.Z,{"data-test-id":"draft-status-light",disabled:!0},(0,h.Iu)("BRAND_DRAFT_BADGE"))}get isPublished(){return(0,dr.Hc)(this.props.brand)}getBrandSubtitle(){var e;let t;return"created"===this.context.viewState.librarySortState&&this.props.brand.created?t=`${(0,h.Iu)("DL_INFO_CREATED")} ${se.p6(this.props.brand.created)}`:this.props.brand.modified&&(t=`${(0,h.Iu)("DL_INFO_MODIFIED")} ${se.p6(this.props.brand.modified)}`),l.createElement("div",{className:"FZG",style:{width:null===(e=this.props.itemRect)||void 0===e?void 0:e.width}},l.createElement("div",{className:"M43"},l.createElement("div",{"data-test-id":"brand-card-subtitle-status-badge",className:"gJD"},this.isPublished?this.publishedBadge:this.draftBadge),t&&l.createElement("span",{"data-test-id":"brand-card-subtitle-date-string",className:"m8S"},t)))}render(){return l.createElement(ir,{size:"L",variant:"standard","data-test-id":`library-grid-mosaic-card-${this.props.brand.id}`,allowsSelection:!1,selected:this.props.isDraggedOver,onClick:()=>this.props.handleCardPress(this.props.brand),tabIndex:"0",onKeyDown:e=>"Enter"===e.key?this.props.handleCardPress(this.props.brand):null,"aria-label":this.props.brand.name,key:se.P(this.props.brand),style:{width:"100%",height:"100%"},actionMenu:this.getGenStudioContextMenu(this.props.brand)},l.createElement(ar,null,l.createElement(Hr,{library:this.props.brand})),l.createElement(or,{title:this.props.brand.name,subtitle:this.getBrandSubtitle()}))}}).contextType=ce.r,Vr.propTypes={brand:B().instanceOf(Ue.Zu).isRequired,isDraggedOver:B().bool,handleCardPress:B().func,itemRect:B().object},zr=Vr))||zr;var Wr,Kr,$r;function qr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(r),!0).forEach((function(t){Jr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Jr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qr(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let en=(0,I.Pi)(($r=class extends l.Component{constructor(...e){super(...e),this.getCellHeight=e=>e+this.CELL_HEIGHT_STATIC_HEIGHT,this.ITEM_VIEWS={library:e=>this._getCard({library:e.data,itemRect:this.getItemRect(e)}),searchResultsHeader:({numResults:e})=>l.createElement("div",null,l.createElement(br.Z,{numResults:e})),createItem:({shortType:e,icon:t,buttonText:r,onClick:n})=>l.createElement("div",null,l.createElement(ur.Z,{shortType:e,icon:t,buttonText:(0,h.Iu)(r),onClick:n})),discoverLibrariesMessage:()=>l.createElement("div",null,l.createElement(vr.Z,null))},this.yourLibraryTour={componentId:"/assets/libraries",tourId:"ccd.onboarding.assets.lib.yourLibraries",version:1,tourContent:[{id:"manage.inApp.libraries",stepNumber:10,type:"coachMark",title:(0,h.Iu)("DL_COACHMARK_FIRST_HEADING"),description:(0,h.Iu)("DL_COACHMARK_FIRST_MESSAGE"),target:'[data-test-id="mosaic-view"]',confirmLabel:(0,h.Iu)("DL_ONBOARDING_TOUR_NEXT"),cancelLabel:(0,h.Iu)("DL_ONBOARDING_TOUR_SKIP"),domTarget:"library-personal-view",confirmAnalyticsId:"next",cancelAnalyticsId:"skip",placement:"bottom"},{id:"browse.shared.libraries",stepNumber:20,type:"coachMark",title:(0,h.Iu)("DL_COACHMARK_SECOND_HEADING"),description:(0,h.Iu)("DL_COACHMARK_SECOND_MESSAGE"),target:'[data-test-id="panel-icon-Browse"]',confirmLabel:(0,h.Iu)("DL_ONBOARDING_TOUR_NEXT"),cancelLabel:(0,h.Iu)("DL_ONBOARDING_TOUR_SKIP"),domTarget:"library-personal-view",confirmAnalyticsId:"next",cancelAnalyticsId:"skip",placement:"bottom"},{id:"find.more.libraries",stepNumber:30,type:"coachMark",title:(0,h.Iu)("DL_COACHMARK_THIRD_HEADING"),description:(0,h.Iu)("DL_COACHMARK_THIRD_MESSAGE"),target:'[id="tabId-CCDMarket"]',confirmLabel:(0,h.Iu)("DL_ONBOARDING_TOUR_FINISH"),confirmAnalyticsId:"done",placement:"bottom"}]},this.overlayState=new Rt.Z({ignoreScrollEvents:!0,ignoreFocus:!0}),this.getItemRect=e=>{const t=this.cellDimensions,r=t.CELL_PADDING_BOTTOM,n=t.CELL_PADDING_RIGHT,i=t.CELL_WIDTH_MIN,o=t.CELL_HEIGHT_STATIC_HEIGHT,a=t.CONTAINER_PADDING_TOP,s=t.MIN_COLUMNS||Math.max(Math.floor((this.props.width-n)/(i+n)),1),c=this.items.indexOf(e)-(this.showSearchHeader?1:0),l=(this.props.width-n)/s-n,u=l+o,d=this.showSearchHeader?br.Z.getHeight(e.numResults,this.props.width):0,p=n+c%s*(l+n),h=a+d+Math.floor(c/s)*(u+r);if("search-results-header"===e.key)return{height:d,width:this.props.width||0,x:0,y:a};if("discover-libraries-message"===e.key){const e=g.Z.isMobileView?200:500,t=this.props.libraries.length?c%s==0?h:h+u:100;return{height:400,width:e,x:this.props.width/2-e/2,y:t+a}}return"projects-banner"===e.key?{height:30,width:this.props.width-2*n||0,x:n,y:h+u+r}:{height:u,width:l,x:p,y:h}},this.componentDidMount=()=>{this.context.viewState.setViewState("grid"),v.Z.currentProduct.config.disableLoadLibraryCollaborators||this.props.libraries.forEach((e=>{se.R3(e)&&this.context.libraryManager.fetchLibraryCollaborations(e,v.Z.FETCH_COLLABORATIONS_THROTTLE)})),this.registerYourLibraryTour()},this.registerYourLibraryTour=()=>{g.Z.ccdAPI&&g.Z.ccdAPI.ccdContext.getOnboardingManager().registerOnboarding(this.yourLibraryTour,"CCLibs")},this.handleCardPress=e=>{const t=e.isDocumentAssets?"select-document-assets":"select-library";ne.ZP.reportEvent("Navigation","Library Panel","click",t,null,e);const r=this.context.viewState,n=r.getSearchText();if(v.Z.currentProduct.config.reportSearchSDMEvents&&r.isSearchMode()&&n){const t=dr.Ol(e),i=(t?(0,se.l8)("brand",r.librariesInViewOrder):(0,se.l8)("notBrand",r.librariesInViewOrder)).indexOf(e)+1,o={"custom.library.type":(0,pr.$2)(e.ownership),"custom.library.filter":t?"brand":"library","ui.search_keyword":n,"custom.ui.location":t?"homes-brands-tab":"homes-libraries-tab","custom.search.rank":i,"custom.search.id":r.getSearchId()};v.Z.currentProduct.config.reportSearchSDMEvents(o)}g.Z.navigateToLibrary(e),v.Z.currentProduct.config.keepSearchOnLibraryNavigate||(r.setSearchText(""),r.setSearchType("library"))},this.handleContextMenu=(e,t)=>{if(g.Z.setContextMenu){this.overlayState.toggleOverlay();const r=dr.Ol(t);ne.ZP.reportEvent("Navigation",r?"brands":"libraries","click",(r?"brand":"library")+"-contextual-menu",{},t),(0,se.au)(e,t)}},this._getCard=e=>{const t=e.library,r=e.itemRect;return l.createElement(lr.Z,{className:"Kig",library:t},(e=>v.Z.currentProduct.config.showBrandCard?l.createElement(Yr,{itemRect:r,isDraggedOver:e,brand:t,handleCardPress:this.handleCardPress}):l.createElement(ir,{size:g.Z.isMobileView?"S":"L",variant:v.Z.currentProduct.config.mosaicCardVariant||"standard","data-test-id":`library-grid-mosaic-card-${t.id}`,allowsSelection:!1,selected:e,onClick:()=>this.handleCardPress(t),tabIndex:"0",onKeyDown:e=>"Enter"===e.key?this.handleCardPress(t):null,"aria-selected":this.context.libraryManager.currentLibrary===t,"aria-label":t.name,key:se.P(t),style:{width:"100%",height:"100%"},onContextMenu:e=>this.handleContextMenu(e,t)},l.createElement(ar,null,l.createElement(gr,{library:t})),l.createElement(or,{title:t.name,subtitle:l.createElement("span",null,this.getLibraryInfo(t,r))}))))}}get cellDimensions(){return g.Z.isMobileView?{CELL_PADDING_BOTTOM:16,CELL_PADDING_RIGHT:16,CELL_WIDTH_MIN:150,CELL_HEIGHT_STATIC_HEIGHT:0,CONTAINER_PADDING_TOP:8,MIN_COLUMNS:v.Z.currentProduct.config.mobileMosaicMinColumns}:{CELL_PADDING_BOTTOM:void 0===v.Z.currentProduct.config.mosaicCellPaddingBottom?24:v.Z.currentProduct.config.mosaicCellPaddingBottom,CELL_PADDING_RIGHT:24,CELL_WIDTH_MIN:v.Z.currentProduct.config.mosaicCardWidth||150,CELL_HEIGHT_STATIC_HEIGHT:v.Z.currentProduct.config.mosaicCellHeightStatic||0,CONTAINER_PADDING_TOP:void 0===v.Z.currentProduct.config.mosaicContainerPaddingTop?24:v.Z.currentProduct.config.mosaicContainerPaddingTop}}get projectNameLoading(){return l.createElement("div",{className:"ghost-loading-wrapper"},l.createElement("div",{"data-test-id":"ghost-loading",className:"ghost-loading"}))}getLibrarySubtitle(e,t){const r=se.$_(e);let n=e.ownership?t:null;return n=Array.isArray(n)?n[0]:n,!n&&r?this.projectNameLoading:n}getLibraryInfo(e,t){const r=se.$_(e),n=se.rU(e),i=r?n[1]:null;return l.createElement("div",{className:"LCv",style:{width:t.width}},l.createElement(ee.Z,{content:se.rU(e,!0)},l.createElement("div",{className:"Vlw"},se.EU(e),l.createElement("span",{className:"xMZ","data-test-id":"library-subtitle"},this.getLibrarySubtitle(e,n),r&&i&&l.createElement("span",{className:"qd-"},i)))))}get showSearchHeader(){return this.props.libraries.length&&this.context.viewState.isLibraryNameSearchMode()}get items(){let e=[];return this.showSearchHeader&&(e=[{key:"search-results-header",type:"searchResultsHeader",numResults:this.props.libraries.length}]),[...e,...this.props.libraries.map((e=>({data:e,key:se.P(e),type:"library"})))]}render(){const e=this.props,t={width:e.width,height:e.height,paddingBottom:"30px"};return l.createElement("div",{className:this.props.className,"data-test-id":"library-grid-view"},l.createElement(zt(),{id:"library-grid",items:this.items,itemKey:e=>e.key,itemType:e=>e.type,itemRect:this.getItemRect,style:"ACCC"===v.Z.currentProduct.config.code?Xr(Xr({},t),{},{boxSizing:"border-box"}):t},(e=>this.ITEM_VIEWS[e.type](e))))}},$r.contextType=ce.r,$r.propTypes={height:B().number,width:B().number,libraries:B().arrayOf(B().oneOfType([B().instanceOf(Ue.Zu),B().instanceOf(yr.Z)])),className:B().string,filterBy:B().string},Qr((Kr=$r).prototype,"cellDimensions",[c.computed],Object.getOwnPropertyDescriptor(Kr.prototype,"cellDimensions"),Kr.prototype),Qr(Kr.prototype,"showSearchHeader",[c.computed],Object.getOwnPropertyDescriptor(Kr.prototype,"showSearchHeader"),Kr.prototype),Qr(Kr.prototype,"items",[c.computed],Object.getOwnPropertyDescriptor(Kr.prototype,"items"),Kr.prototype),Wr=Kr))||Wr;const tn={libraryListContainer:"z_T",libraryMosaicListItem:"Z6E",isDraggedOver:"kKg",libraryMosaicListItemContextMenuContainer:"_dK",libraryMosaicListItemContextMenu:"Xo2",libraryMosaicListItemSharedIcon:"OAi",libraryMosaicListItemMosaicTileContainer:"mv5",libraryMosaicListHeaderContainer:"RZo",libraryMosaicListItemName:"FdZ",libraryMosaicListItemIconContainer:"qof",libraryMosaicListItemModifiedContainer:"bZ-",libraryMosaicListItemNameContainer:"O6x",libraryMosaicListNameColumnContainer:"rwq",libraryMosaicListModifiedColumnContainer:"uUR",libraryMosaicListItemContainer:"n63",libraryMosaicListHeaderInnerContainer:"ehh",libraryMosaicHeaderText:"DQS",libraryMosaicItemTeamName:"i8r",libraryMosaicItemText:"G_1",libraryMosaicListItemSharingContainer:"Yfc",libraryMosaicListHeaderTitle:"Sh5"};var rn,nn;function on(){return on=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},on.apply(this,arguments)}let an=(0,I.Pi)(((nn=class extends l.Component{constructor(...e){super(...e),this.handleClick=()=>{this.props.onClick&&this.props.onClick(this.props.library)},this.handleContextMenuClick=e=>{if(g.Z.setContextMenu){const t=dr.Ol(this.props.library);ne.ZP.reportEvent("Navigation",t?"brands":"libraries","click",(t?"brand":"library")+"-contextual-menu",{},this.props.library),(0,se.au)(e,this.props.library)}}}get dataTestId(){return`library-mosaic-list-item-${this.props.library.id}`}get shareLabel(){return se.rU(this.props.library)}get shareTooltip(){return se.rU(this.props.library,!0)}get shareStatus(){const e=this.shareLabel,t=se.$_(this.props.library),r="private"!==this.props.library.ownership&&Array.isArray(e)?e[0]:e,n=t?e[1]:null,i=se.EU(this.props.library);return l.createElement(ee.Z,{className:ye()(tn.libraryMosaicListItemContainer,tn.libraryMosaicListItemIconContainer),content:this.shareTooltip},l.createElement("div",{"data-test-id":"library-mosaic-list-item-sharing-container",className:tn.libraryMosaicListItemSharingContainer},i&&l.createElement("div",{"data-test-id":"icon",className:tn.libraryMosaicListItemSharedIcon},i),e&&l.createElement("span",{"data-test-id":"sharing-label"},r),t&&n&&l.createElement("span",{"data-test-id":"org-name",className:ye()(tn.libraryMosaicItemTeamName,tn.libraryMosaicItemText)},n)))}get modifiedDate(){const e=(0,se.p6)(this.props.library.modified);return l.createElement("div",{className:ye()(tn.libraryMosaicListItemContainer,tn.libraryMosaicListItemModifiedContainer,tn.libraryMosaicItemText),"data-test-id":"library-mosaic-list-item-modified"},e)}get contextMenu(){return l.createElement("div",{className:tn.libraryMosaicListItemContextMenuContainer},l.createElement("div",{className:tn.libraryMosaicListItemContextMenu},l.createElement(hr.Z,{"data-test-id":"library-mosaic-list-item-context-menu",onContextMenuClick:this.handleContextMenuClick})))}get mosaicGrid(){return l.createElement("div",{className:tn.libraryMosaicListItemMosaicTileContainer},l.createElement(fr.Z,{viewMode:"list",renditionGrid:this.props.library.renditionGrid,library:this.props.library,"data-test-id":"library-list-mosaic-view"}))}render(){return l.createElement(lr.Z,{library:this.props.library},(e=>{const t=ye()(tn.libraryMosaicListItem,{isDraggedOver:e});return l.createElement("div",on({"data-test-id":this.dataTestId,className:t,onClick:this.handleClick},g.Z.contextMenuEventListeners(this.handleContextMenuClick),{onKeyDown:e=>"Enter"===e.key?this.handleClick():null,tabIndex:"0",role:"list","aria-selected":this.context.libraryManager.currentLibrary===this.props.library,"aria-label":`${this.props.library.name}, ${this.shareLabel}`}),this.mosaicGrid,l.createElement("div",{className:ye()(tn.libraryMosaicListNameContainer,tn.libraryMosaicListNameColumnContainer)},l.createElement("div",{"data-test-id":"library-mosaic-list-item-name",className:ye()(tn.libraryMosaicListItemName,tn.libraryMosaicItemText)},this.props.library.name)),this.modifiedDate,this.props.showSharingStatus&&this.shareStatus,this.contextMenu)}))}}).contextType=ce.r,nn.defaultProps={showSharingStatus:!0},nn.propTypes={library:B().oneOfType([B().instanceOf(Ue.Zu),B().instanceOf(yr.Z)]).isRequired,onClick:B().func,showSharingStatus:B().bool},rn=nn))||rn;var sn,cn,ln;function un(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let dn=(0,I.Pi)(((ln=class extends l.Component{constructor(...e){super(...e),this.handleSortChange=e=>{this.context.viewState.librarySortState===e?this.context.viewState.setLibrarySortOrderDescendingState(!this.context.viewState.librarySortOrderDescendingState):this.context.viewState.setLibrarySortState(e)},this.handleKeyDown=(e,t)=>{"Enter"===e.key&&this.handleSortChange(t)}}get libraryList(){return l.createElement("div",{role:"listbox","aria-label":(0,h.Iu)("DL_ARIA_LIBRARY_LIST_TITLE"),"data-test-id":"library-mosaic-list-content"},this.props.libraries.map((e=>{const t=`${e.id}${"org"===e.ownerType?"-team":""}`;return l.createElement("div",{key:t,"data-test-id":"library-mosaic-list-item"},l.createElement(an,{library:e,showSharingStatus:this.props.showSharingStatus,onClick:e=>g.Z.navigateToLibrary(e)}),l.createElement("hr",null))})))}get sortingIcon(){const e=this.context.viewState.librarySortOrderDescendingState?"ArrowUp":"ArrowDown",t=this.context.viewState.librarySortOrderDescendingState?"arrow-up":"arrow-down";return l.createElement("span",{"data-test-id":t},l.createElement(C.Z,{id:e,height:10}))}get listViewHeader(){return l.createElement("div",null,l.createElement("div",{className:tn.libraryMosaicListHeaderContainer},l.createElement("div",{"data-test-id":"library-mosaic-list-item-header-mosaic-tile",className:tn.libraryMosaicListItemMosaicTileContainer}),l.createElement("div",{className:ye()(tn.libraryMosaicListNameColumnContainer,tn.libraryMosaicListItemNameContainer,tn.libraryMosaicListHeaderTitle),"data-test-id":"library-mosaic-list-item-header-name",onClick:()=>this.handleSortChange("name"),onKeyDown:e=>this.handleKeyDown(e,"name")},l.createElement("div",{tabIndex:"0",className:tn.libraryMosaicListHeaderInnerContainer},l.createElement("span",{className:tn.libraryMosaicHeaderText},(0,h.Iu)("DL_LIST_VIEW_HEADER_NAME")),"name"===this.context.viewState.librarySortState&&this.sortingIcon)),l.createElement("div",{className:ye()(tn.libraryMosaicListItemContainer,tn.libraryMosaicListHeaderTitle,tn.libraryMosaicListModifiedColumnContainer),"data-test-id":"library-mosaic-list-item-header-modified",onClick:()=>this.handleSortChange("modified"),onKeyDown:e=>this.handleKeyDown(e,"modified")},l.createElement("div",{tabIndex:"0",className:tn.libraryMosaicListHeaderInnerContainer},l.createElement("span",{className:tn.libraryMosaicHeaderText},(0,h.Iu)("DL_LIST_VIEW_HEADER_MODIFIED")),"modified"===this.context.viewState.librarySortState&&this.sortingIcon)),this.props.showSharingStatus&&l.createElement("div",{className:ye()(tn.libraryMosaicListItemContainer,tn.libraryMosaicListHeaderTitle,tn.libraryMosaicHeaderText),"data-test-id":"library-mosaic-list-item-header-sharing"},(0,h.Iu)("DL_LIST_VIEW_HEADER_SHARING"))),l.createElement("hr",null))}get contents(){return l.createElement(l.Fragment,null,this.listViewHeader,this.libraryList)}render(){return l.createElement("div",{"data-test-id":"library-mosaic-list",className:tn.libraryListContainer},this.contents)}}).contextType=ce.r,ln.defaultProps={showSharingStatus:!0},ln.propTypes={libraries:B().arrayOf(B().oneOfType([B().instanceOf(Ue.Zu),B().instanceOf(yr.Z)])),showSharingStatus:B().bool},un((cn=ln).prototype,"libraryList",[c.computed],Object.getOwnPropertyDescriptor(cn.prototype,"libraryList"),cn.prototype),un(cn.prototype,"contents",[c.computed],Object.getOwnPropertyDescriptor(cn.prototype,"contents"),cn.prototype),sn=cn))||sn;var pn,hn,fn,mn=r(59157);function gn(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let vn=(0,I.Pi)(((fn=class extends l.Component{constructor(...e){super(...e),this.getLibrariesContent=({width:e,height:t})=>this.currentViewState===v.Z.LIBRARIES_VIEW_STATES.GRID?l.createElement("div",{className:"WdN"},l.createElement("div",{className:"lXg"},l.createElement(en,{height:t,width:e,libraries:this.libraries,filterBy:this.filterBy}))):l.createElement(dn,{height:t,width:e,libraries:this.libraries}),this.handleDrop=e=>{(0,Pt.pI)(null,e)}}get currentViewState(){return this.props.viewState||this.context.viewState.librariesViewState}get filterBy(){return this.props.filterBy||this.context.viewState.currentLibrariesFilter||"all"}get isSearchFiltering(){return!("all"===this.context.viewState.currentLibrariesFilter&&!this.context.viewState.getSearchText())}get libraries(){const e=this.filterBy,t=this.props.libraries||this.context.viewState.librariesInViewOrder;return(0,se.l8)(e,t)}get emptyView(){if(this.isSearchFiltering)return l.createElement(Tt.Z,{view:"personal"});if(v.Z.currentProduct.config.customEmptyRootState){const e=v.Z.currentProduct.config.customEmptyRootState;return l.createElement(e,null)}return l.createElement(_e.Z,{className:"s05"})}get librariesView(){const e=g.Z.AutoSizer||St.Z;return l.createElement(e,null,this.getLibrariesContent)}get header(){return this.props.header||l.createElement(Ut,null)}get content(){return this.libraries.length?l.createElement("div",{className:"rsS"},this.librariesView):this.emptyView}render(){return l.createElement("div",{"data-test-id":"panel-root-expanded-view",className:"tNa",onDrop:this.handleDrop,onClick:e=>{if(e.detail>=4)throw new Error("Rage Clicking")}},this.header,this.content,l.createElement(lt.Z,null),l.createElement("div",{className:"TQO"},l.createElement(mn.Z,null)))}}).contextType=ce.r,fn.propTypes={libraries:B().arrayOf(B().oneOfType([B().instanceOf(Ue.Zu),B().instanceOf(yr.Z)])),header:B().node,filterBy:B().string,viewState:B().oneOf(["grid","list"])},gn((hn=fn).prototype,"isSearchFiltering",[c.computed],Object.getOwnPropertyDescriptor(hn.prototype,"isSearchFiltering"),hn.prototype),gn(hn.prototype,"libraries",[c.computed],Object.getOwnPropertyDescriptor(hn.prototype,"libraries"),hn.prototype),gn(hn.prototype,"emptyView",[c.computed],Object.getOwnPropertyDescriptor(hn.prototype,"emptyView"),hn.prototype),gn(hn.prototype,"librariesView",[c.computed],Object.getOwnPropertyDescriptor(hn.prototype,"librariesView"),hn.prototype),gn(hn.prototype,"header",[c.computed],Object.getOwnPropertyDescriptor(hn.prototype,"header"),hn.prototype),gn(hn.prototype,"content",[c.computed],Object.getOwnPropertyDescriptor(hn.prototype,"content"),hn.prototype),pn=hn))||pn;var yn,bn,_n;let En=(0,I.Pi)(((_n=class extends l.Component{componentDidUpdate({teamNames:e}){e!==this.props.teamNames&&this.context.libraryManager.refreshTeams()}get sortBy(){return"modifiedDate"===this.props.sortBy?"modified":this.props.sortBy}get libraries(){const e=this.props,t=e.sortBy,r=e.filterBy,n="asc"===this.props.sortOrder,i=this.context.viewState.getSearchText(),o=(0,se.l8)("team",this.context.libraryManager.getCCLibraries());return(0,se.zc)(o,{sortBy:t,filterBy:r,isAscending:n,searchText:i}).filter((e=>e.team.id===this.props.teamId))}render(){return l.createElement(vn,{libraries:this.libraries,viewState:this.props.viewType})}}).contextType=ce.r,_n.propTypes={filterBy:B().oneOf(["all","addedToYourLibraries","notAdded"]),sortBy:B().oneOf(["name","modifiedDate"]),sortOrder:B().oneOf(["asc","desc"]),viewType:B().oneOf(["grid","list"]),theme:B().oneOf(["light","dark"]),teamId:B().string,teamNames:B().string},function(e,t,r,n,i){var o={};Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}((bn=_n).prototype,"libraries",[c.computed],Object.getOwnPropertyDescriptor(bn.prototype,"libraries"),bn.prototype),yn=bn))||yn;var wn=r(89526);class xn extends S{static get observedAttributes(){return["teamnames","teamid","filterby","sortby","sortorder","viewtype","theme"]}constructor(){super(wn.createElement(En,null),["ccd-panel-container"])}attributeChangedCallback(){const e=this.getAttribute("teamnames"),t=this.getAttribute("teamid"),r=this.getAttribute("filterby"),n=this.getAttribute("sortby"),i=this.getAttribute("sortorder"),o=this.getAttribute("viewtype"),a=this.getAttribute("theme");this.render(wn.createElement(En,{teamNames:e,teamId:t,filterBy:r,sortBy:n,sortOrder:i,viewType:o,theme:a}))}}var Ln=r(89526);class On extends O{constructor(){super(Ln.createElement(vn,null),["ccd-panel-container"]),g.Z.setCurrentBaseWebComponent(this)}connectedCallback(){super.connectedCallback(),g.Z.isLibrariesViewMounted=!0}disconnectedCallback(){super.disconnectedCallback(),g.Z.isLibrariesViewMounted=!1}}var Sn,Tn,Pn,In,An,Cn=r(79799);function kn(){kn=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Dn(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Nn(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Dn(o,n,i,a,s,"next",e)}function s(e){Dn(o,n,i,a,s,"throw",e)}a(void 0)}))}}function Rn(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Mn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function Mn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}class jn{constructor(e){this._initPromise=new Promise((e=>{this._markInit=()=>{this._initialized=!0,e()}})),this._loadedPromise=new Promise((e=>{this._markLoaded=e})),this._environment=e,this._initialized=!1,this._listenerCallbacks=new Set}init(e,t,r,n="en_US"){if(this._initialized)return Promise.resolve();if(!e||!r||!t)throw new Error("A Vulcan instance, theme, and context must be provided.");return this._environment.setVulcanInterface(t),(0,a.Nk)("library-list-view",he),(0,a.Nk)("library-contents-view",vt),(0,a.Nk)("library-custom-dialog-view",wt),(0,a.Nk)("library-info-view",Ot),(0,a.Nk)("library-personal-view",On),(0,a.Nk)("library-teams-view",xn),(0,c.reaction)((()=>i.ZP.libraries.length),(()=>{var e,t=Rn(this._listenerCallbacks);try{for(t.s();!(e=t.n()).done;)(0,e.value)()}catch(e){t.e(e)}finally{t.f()}})),this.ccdContext=e,this._environment.updateHostInfo(n,r).then((()=>(this._markInit(),{"/libraries/*":{components:{content:{tagName:"library-contents-view",keyBindings:{}},list:{tagName:"library-list-view",keyBindings:{}},yourlibrary:{tagName:"library-personal-view",keyBindings:{}},teamlibrary:{tagName:"library-teams-view",keyBindings:{}}}}})))}openBrowseLibs(){this._environment.openBrowseMore()}openPublicLibs(){this._environment.openPublicLibs()}createNewLibrary(e){this._environment.openCreateNewLibraryDialog(e)}updateLocale(e){this._environment.updateHostInfo(e,void 0)}updateTheme(e){this._environment.updateHostInfo(void 0,e)}waitOnInit(){return this._initPromise}getSyncState(){return i.ZP.syncStatus}sync(){return i.ZP.sync()}getDefaultElement(){if(!i.ZP.areLibrariesLoaded||0===i.ZP.libraries.length)return{libraryId:void 0,libraryCount:0};const e=i.ZP.getDefaultLibrary();var t,r=Rn("group"===s.Z.viewByState?(0,Be.GI)(e).root.children:o.Z.groupElementsByType(e.elements,s.Z.elementSortState,s.Z.elementSortDescendingState));try{for(r.s();!(t=r.n()).done;){const r=t.value,n="group"===s.Z.viewByState?(0,Be.gw)(r.item,e.elements):r.children&&r.children[0];if(n)return{libraryId:e.id,id:n.id,libraryCount:i.ZP.libraries.length}}}catch(e){r.e(e)}finally{r.f()}return{libraryId:e.id,libraryCount:i.ZP.libraries.length}}getLibraryByAssetId(e){return i.ZP.getLibraryByAssetId(e)}asyncGetLibraryByAssetId(e){return Nn(kn().mark((function t(){var r;return kn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.toLowerCase(),t.next=3,i.ZP.waitForLibrariesLoaded();case 3:return t.abrupt("return",i.ZP.libraries.find((e=>e.assetId&&e.assetId.toLowerCase()===r)));case 4:case"end":return t.stop()}}),t)})))()}hasLibrariesFromOtherTeams(){return Boolean(i.ZP.libraries.find((e=>e.team&&!i.ZP.platformFolders.find((t=>t.id===e.team.id)))))}addLibraryChangeListener(e){this._listenerCallbacks.add(e)}removeLibraryChangeListener(e){this._listenerCallbacks.delete(e)}isProcessRunning(){return this.ccdContext?Cn.Z.isProcessRunning():Promise.reject(new Error("CCDApi is not initialized"))}isSyncingEnabled(){return this.ccdContext?Cn.Z.isSyncingEnabled():Promise.reject(new Error("CCDApi is not initialized"))}setSyncingEnabled(e){if(!this.ccdContext)throw new Error("CCDApi is not initialized");Cn.Z.setSyncingEnabled(e)}addSyncingEnabledChangedListener(e){if(!this.ccdContext)throw new Error("CCDApi is not initialized");Cn.Z.addSyncingEnabledChangedListener(e)}removeSyncingEnabledChangedListener(e){if(!this.ccdContext)throw new Error("CCDApi is not initialized");Cn.Z.removeSyncingEnabledChangedListener(e)}navigateToLibrary(e){var t=this;return Nn(kn().mark((function r(){return kn().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:try{t._environment.navigateToAllLibraries(),(0,c.when)((()=>i.ZP.areLibrariesLoaded),Nn(kn().mark((function r(){var n;return kn().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,i.ZP.resolveLibraryByAssetId(e);case 2:n=r.sent,t._environment.navigateToLibrary(n);case 4:case"end":return r.stop()}}),r)}))))}catch(e){console.error("Error navigating to library:",e),console.info("Navigating to all libraries..."),t._environment.navigateToAllLibraries()}case 1:case"end":return r.stop()}}),r)})))()}}function Fn(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function Zn(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Bn=(0,I.Pi)(((An=class extends l.Component{constructor(...e){super(...e),Fn(this,"height",Pn,this),Fn(this,"width",In,this),this.timeout=null,this.handleResize=()=>{this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout((()=>{var e,t;this.height=null===(e=this.contentBox)||void 0===e?void 0:e.clientHeight,this.width=null===(t=this.contentBox)||void 0===t?void 0:t.clientWidth}),100)}}componentDidMount(){this.resizeObserver=new ResizeObserver((()=>this.handleResize())),this.resizeObserver.observe(this.contentBox),this.handleResize()}componentWillUnmount(){this.resizeObserver.disconnect()}render(){const e=this.props.children;return l.createElement("div",{ref:e=>this.contentBox=e,style:{height:"100%",width:"100%"}},e({height:this.height,width:this.width}))}}).propTypes={children:B().func.isRequired},Pn=Zn((Tn=An).prototype,"height",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),In=Zn(Tn.prototype,"width",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Sn=Tn))||Sn;var Gn,Un,Hn,zn,Vn=r(10387),Yn=r.n(Vn);let Wn=(0,I.Pi)((zn=class extends l.Component{constructor(...e){super(...e),function(e,t,r,n){r&&Object.defineProperty(e,"isOpen",{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}(this,0,Hn,this),this.showTooltip=()=>{this.isOpen=!0,this._visibleTimer&&clearTimeout(this._visibleTimer),this._visibleTimer=setTimeout(this.hideTooltip,7e3)},this.hideTooltip=()=>{this.isOpen=!1,this._visibleTimer&&clearTimeout(this._visibleTimer),this._visibleTimer=void 0},this.handleMouseOver=e=>{e&&e.stopPropagation(),this._visibleTimer=setTimeout(this.showTooltip,this.props.delay)}}get tooltipContent(){return this.props.content.map(((e,t)=>e&&e.divider?l.createElement("div",{key:t.toString(),className:"panel-tooltip-divider"}):l.createElement("div",{key:t.toString(),className:"tooltip-content"},e)))}render(){return l.createElement("div",{className:ye()("tooltip-wrapper-container",this.props.className,"TEu"),onMouseOver:this.handleMouseOver,onMouseOut:this.hideTooltip,onMouseDown:this.hideTooltip},this.props.children,!this.props.disable&&l.createElement(Yn(),{className:ye()("tooltip-wrapper","fy7"),placement:this.props.placement,open:this.isOpen},this.tooltipContent))}},zn.defaultProps={content:"",delay:1e3,placement:"top"},zn.propTypes={children:B().node,featureId:B().string,content:B().array,delay:B().number,placement:B().string,disable:B().bool,className:B().string},Hn=function(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}((Un=zn).prototype,"isOpen",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Gn=Un))||Gn;var Kn=r(76792),$n=r(76325),qn=r(7921),Xn=r(26964),Jn=r(96912),Qn=r(29219);class ei extends Jn.Z{constructor(){super(),window.cep=window.cep||{encoding:{convertion:{b64_to_utf8:Qn.UL,utf8_to_b64:Qn.Hf}}}}setVulcanInterface(e){this._vulcanInterface=e}isCCLibProcessInstalled(){return this._vulcanInterface.isAppInstalledEx(this.ccLibProcessSAPCode)}isCCLibProcessRunning(){return this.isAppRunningEx(this.ccLibProcessSAPCode)}isAppRunningEx(e){return this._vulcanInterface.isAppRunningEx(e)}launchAppEx(e){return new Promise((t=>{this._vulcanInterface.launchAppEx(e,!0).then((e=>{t(e)}))}))}launchCCLibProcess(){return new Promise((e=>{this._vulcanInterface.launchAppEx(this.ccLibProcessSAPCode,!1,""),e()}))}addMessageListener(e,t){Xn.Z.log("Vulcan: Add Listener: "+e),t.wrapper=(e,r)=>{t(r,e.appId,e.appVersion)},this._vulcanInterface.addMessageListener(e,t.wrapper)}removeMessageListener(e,t){Xn.Z.log("Vulcan: Remove Listener: "+e),this._vulcanInterface.removeMessageListener(e,null==t?void 0:t.wrapper)}sendMessage(e,t,{payloadType:r="base64"}={}){Xn.Z.log("Vulcan: Send Message: "+e);const n=new qn.u(e);"json"===r?n.data=JSON.stringify(t):"base64"===r&&n.setPayload(t),this._vulcanInterface.dispatchMessage(n)}}var ti,ri,ni,ii=r(48346),oi=r(89526);function ai(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||si(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function si(e,t){if(e){if("string"==typeof e)return ci(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ci(e,t):void 0}}function ci(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function li(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function ui(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function di(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ui(Object(r),!0).forEach((function(t){pi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ui(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function pi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hi(){hi=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function fi(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function mi(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}class gi{constructor(e){this._ccdApi=e}createRefEx(e){return{endpoint:e}}fetchAccessToken(e,t,r,n,o,a,s){const c=this._ccdApi.ccdContext.imsData;if(!c||!c.accessToken)return i.ZP.getAccessToken(n,t,r,a).then((e=>s(null,e)),s);c.accessToken().then((e=>s(null,{access_token:e}))).catch((e=>s(e)))}}function vi(e){return e.map((e=>({id:e.id,isDivider:e.divider||!1,label:(0,h.Iu)(e.label),onClick:e.onClick,isDisabled:!1===e.enableMenu,isSelected:e.checked||e.isSelected,subMenu:e.menuItems?vi(e.menuItems):void 0})))}const yi=["DL_RENAME","DL_DELETE","DL_DUPLICATE_ITEM","DL_DUPLICATE_SELECTED_ITEMS"],bi=["DL_COPY_SELECTED_ITEMS","DL_COPY_ITEM","DL_MOVE_SELECTED_ITEMS","DL_MOVE_ITEM"];let _i=(ti=class extends n.ZP{static check(){return window.navigator.userAgent.includes("CreativeCloud")}get isAnyViewMounted(){return this.isContentViewMounted||this.isLibrariesViewMounted}get isOnline(){return!!window.ccdOnline}get cloudDriverConnector(){var e=this;return function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){fi(o,n,i,a,s,"next",e)}function s(e){fi(o,n,i,a,s,"throw",e)}a(void 0)}))}}(hi().mark((function t(){return hi().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=e.imsEnvironment,t.next=3,e.imsProfile.accessToken();case 3:return t.t1=t.sent,t.t2=e.imsProfile.accessToken.bind(e.imsProfile),t.abrupt("return",{env:t.t0,token:t.t1,refreshAccessToken:t.t2});case 6:case"end":return t.stop()}}),t)})))}get ccLibrariesDriver(){return this._ccLibrariesDriver||(window.cep=window.cep||{encoding:{convertion:{b64_to_utf8:Qn.UL,utf8_to_b64:Qn.Hf}}},this._ccLibrariesDriver=ie.Z.getDebugValue("jsapiHybridDriver")?this.hybridDriver:new Ue.Ut((0,Ue.te)(this._rawVulcanInterface,qn.u))),this._ccLibrariesDriver}get hybridDriver(){return new Ue.B((0,Ue.te)(this._rawVulcanInterface,qn.u),this.cloudDriverConnector)}get imsProfile(){return this.ccdAPI.ccdContext.imsData}get imsEnvironment(){var e;return"stage"===(null===(e=this.imsProfile)||void 0===e?void 0:e.environment)?"staging":"production"}get imsUserId(){var e;return null===(e=this.imsProfile)||void 0===e?void 0:e.userId}getAppVersionFromUserAgent(){const e=/CreativeCloud\/([0-9.]+)/.exec(window.navigator.userAgent);return e&&e[1]}get _availableActions(){if(!i.ZP.currentLibrary||i.ZP.currentLibrary.isDeletedFromServer)return{actions:[],moreActions:[]};const e=[];if(s.Z.isLibraryWritable(i.ZP.currentLibrary)&&!Ae.Z.selection.length){const t=vi([{id:"add",label:(0,h.Iu)("DL_UPLOAD_FILE"),onClick:()=>(0,Pt.fY)(i.ZP.currentLibrary,"Toolbar")},{id:"createGroup",label:(0,h.Iu)("DL_CREATE_NEW_GROUP"),onClick:()=>{const e=(0,se.sS)(i.ZP.currentLibrary,(0,h.Iu)("DL_NEW_GROUP_NAME"));s.Z.setViewByState("group"),Ae.Z.revealGroup(e),rt.Z.panel.viewManager.startRename(e)}}]);e.push({iconComponentID:"add",isCTA:!0,label:(0,h.Iu)("DL_ADD_ELEMENT"),onClick:e=>{let r=e.clientX,n=e.clientY;if(!r&&!n){const e=document.activeElement.getBoundingClientRect();r=e.x,n=e.y}s.Z.setContextMenuPositionState({x:r,y:n}),this.setContextMenu(t)}})}const t=Ae.Z.selection[0];switch(Ae.Z.selection.length){case 0:break;case 1:s.Z.isLibraryWritable(t.library)&&e.push({iconComponentID:"rename",label:(0,h.Iu)("DL_RENAME"),onClick:()=>{ne.ZP.setExtraEventMetrics("updateElement",{content:{category:"Toolbar"}}),Ae.Z.revealElement(t),rt.Z.panel.viewManager.startRename(t)}});default:if(s.Z.isLocked(i.ZP.currentLibrary))break;s.Z.isLibraryWritable(Ae.Z.selection[0].library)&&(i.ZP.currentLibrary.elements.length+Ae.Z.selection.length<=i.ZP.MAX_ELEMENTS&&e.push({iconComponentID:"duplicate",label:(0,h.Iu)("DL_DUPLICATE_ITEM"),onClick:()=>{ne.ZP.setExtraEventMetrics("copyElement",{content:{category:"Toolbar"}}),(0,se.IO)(!1,Ae.Z.selection,i.ZP.currentLibrary,void 0,!0,"Toolbar").then((()=>{ne.ZP.clearExtraEventMetrics("copyElement")}))}}),e.push({iconComponentID:"delete",label:(0,h.Iu)("DL_DELETE"),onClick:()=>{const e=Ae.Z.selection.length;ne.ZP.setExtraEventMetrics("removeElement",{content:{category:"Toolbar"}}),i.ZP.deleteElements(Ae.Z.selection),Ae.Z.setSelection(),e>0&&ne.ZP.reportEvent("Element Operations","Element","click","delete",{event:{count:e,value:"agg"},content:{category:"Toolbar"}})}}))}const r=(0,Kn.vf)(Ae.Z.selection).reduce(((t,r)=>{if(r.divider&&t[t.length-1]&&t[t.length-1].divider)return t;if(bi.includes(r.label)){var n;const i=32*(e.length+1)+65+42,o=null!==(n=v.Z.currentProduct.config.copyMovePickerWidthOverride)&&void 0!==n?n:v.Z.DEFAULT_SELECT_TARGET_POPOVER_WIDTH;t.push(di(di({},r),{},{onClick:()=>_t.ZP.openDialog("copyOrMove",{items:Ae.Z.selection,x:this.getPanelWidth()-o-10,y:i,isMove:r.label.includes("DL_MOVE"),copyMoveAction:Kn.oq})}))}else yi.includes(r.label)||t.push(r);return t}),[]);return r.length&&r[r.length-1]&&r[r.length-1].divider&&r.pop(),r.length&&r[0]&&r[0].divider&&r.unshift(),{actions:e,moreActions:vi(r)}}get elementDetailMode(){return s.Z.gridZoomFactor===v.Z.GRID_TYPE_LARGE?"type":void 0}constructor(e){super(e),this._hostEnvironment={appName:"ACCC",appId:"ACCC",appVersion:this.getAppVersionFromUserAgent(),appLocale:"en_US",appUILocale:"en_US"},this.Tooltip=Wn,this.AutoSizer=Bn,this.ProgressBar=te.Z,this.SmallSpinner=()=>oi.createElement(te.Z,{size:"small",indeterminate:!0}),this.supportsFileSystem=!1,this.vulcanInterface=new ei,this.type="CCD",this.ccdAPI=new jn(this),this.IMSLib=new gi(this.ccdAPI),this.excludeDocumentRoot=!0,this.responsiveLayout=!0,this.supportsNotes=!1,this.supportsExportElement=!0,this.disableGPUTooltips=!0,this.recolorLightTextElements=!1,this.canPlaceElements=!1,this.enableDragOutsideProduct=!0,this.capitalizeCreateLibraryHeader=!0,this.customCreateLibraryHeader="DL_NEW_LIBRARY",this.dialogOverrides={confirm:e=>this.showDialog("confirm",{title:e.title,confirmLabel:e.okText,cancelLabel:(0,h.Iu)("DL_CANCEL"),content:e.message,onConfirm:e.onClickOK}),dropFiles:()=>this.showDialog("confirm",{title:(0,h.Iu)("DL_DESIGN_LIBRARY_NATIVE_FILE_SIZE_TITLE"),varient:"error",confirmLabel:(0,h.Iu)("DL_OK"),content:(0,h.Iu)("DL_DESIGN_LIBRARY_NATIVE_FILE_SIZE_MESSAGE"),onConfirm:void 0,cancelLabel:void 0}),pathViewOnboarding:()=>{},rootViewOnboardingPopover:()=>{},firstEnteredLibraryOnboardingPopoverTour:()=>{},quotaWarningPopover:()=>{}},this.ElementDragId="com.adobe.cclibraries.dnd.elements",this.LibraryContentsView=ii.Z,li(this,"isContentViewMounted",ri,this),li(this,"isLibrariesViewMounted",ni,this),this._openToast=void 0,this.setContextMenuPositionEventHandler=()=>{window.addEventListener("contextmenu",(e=>{const t={x:e.clientX,y:e.clientY};s.Z.setContextMenuPositionState(t)}),!0)},this._routeHandlers=[[/^\/libraries\/sharesheet\/([^/]+)\/([^/]+)$/,(e,t)=>{const r=(n=0)=>{const o=i.ZP.getLibraryById(t);o?(i.ZP.currentLibrary=o,this.showShareSheet(o,e),this.navigateToLibrary(o)):n<10&&setTimeout((()=>r(n+1)),500)};r()}],[/^\/libraries\/([^/]+)(?:\/elements\/([^/]+))?$/,(e,t)=>{e&&i.ZP.waitForLibrariesLoaded().then((()=>{const r=i.ZP.getLibraryById(e);if(r&&(i.ZP.currentLibrary=r,t)){const e=r.getElementById(t,!0);e&&Ae.Z.revealElement(e)}}))}]],this.handleClientConnected=e=>{e||this.maintainConnectionToProcess?this.ccdAPI.ccdContext.logEvent({"event.workflow":"Debug","event.subcategory":"CC Library","event.type":e?"failure":"success","event.subtype":"log","event.error_code":"ACCC_LIBRARIES_PROCESS_CONNECTION_STATUS","event.error_type":""}):Cn.Z.disconnectFromProcess()},this._window=window,window.__disable_swc__=!1,this.isViewMounted=!1,this.delayProcessLaunch=!0,(0,c.reaction)((()=>this.isAnyViewMounted),(e=>{this.setIsViewMounted(e)}))}init(){const e=this.ccdAPI.waitOnInit();return e.then((()=>{Cn.Z.addSyncStateChangedListener((e=>{Cn.Z.isConnected()||this.setSyncState(e)})),(0,c.reaction)((()=>this.isContentViewMounted&&i.ZP.currentLibrary&&this._availableActions),(()=>{const e=this._availableActions,t=e.actions,r=e.moreActions,n=Ae.Z.selection.length?"top":"middle";this.setHeader(),this.ccdAPI.ccdContext.setSelectionData({infoPanelComponent:"library-info-view",availableActions:t,moreActions:r,count:Ae.Z.selection.length,position:n,deselectCallback:()=>Ae.Z.setSelection()})}))})),e}debugLog(e){console.info(e)}getIsStarterKitsAvailable(){return this.ccdAPI.ccdContext.isStarterKitsAvailable()}routeToStarterKits(){this.ccdAPI.ccdContext.routeToStarterKits()}navigateToLibrary(e){e?(super.navigateToLibrary(e),this.ccdAPI.ccdContext.setRoute(`/assets/libraries/${e.id}`)):this.navigateToAllLibraries()}navigateToAllLibraries(){this.ccdAPI.ccdContext.setRoute("/assets/libraries")}openCreateNewLibraryDialog(e){const t=e?i.ZP.platformFolders.find((t=>t.id===e&&(e=>e.isWritable&&!e.isReadOnly)(t))):void 0;_t.ZP.openDialog("createLibrary",{defaultTeam:t,onCreate:e=>this.navigateToLibrary(e)})}_waitTillAccessTokenIsAvailable(){return this.imsProfile?Promise.resolve():i.ZP.waitForCollectionsLoaded()}openBrowseMore(){this._waitTillAccessTokenIsAvailable().then((()=>(0,G.df)().then((e=>{this.showWebArticle(e,{title:(0,h.Iu)("DL_MORE_LIBRARY_BROWSE"),timeout:3e4,callbacks:{onExit:()=>{ne.ZP.reportEvent("Library","Find Team Libraries","click","done")}}})})))).catch((e=>{this.showError((0,h.Iu)("DL_TEAM_LIBRARY_BROWSE_AUTH_ERROR",{assetsSite:$n.Z.getEnvironment().ccwebHost})),ne.ZP.reportError("Operations","Browse team libraries",e&&e.description,"ccd-menu","browse-library-error",void 0,i.ZP.currentLibrary)}))}openPublicLibs(){this.getIsStarterKitsAvailable()?(ne.ZP.reportEvent("Navigation","Library Panel","click","view-marketplace",{ui:{sequence:"root-view"}}),this.routeToStarterKits()):(ne.ZP.reportEvent("Navigation","Library Panel","click","view-public-libraries",{ui:{sequence:"root-view"}}),this.openFollowLibrary())}openFollowLibrary(){const e=$n.Z.getEnvironment().followLibrariesGoURL+"?locale="+this.getLocale();this.showWebArticle(e,{title:(0,h.Iu)("DL_LIB_LIST_ONBOARDING_FOLLOW_LIBRARY_WEB_ARICLE_HEADING"),callbacks:{onMessage:e=>{const t=e||{},r=t.action,n=t.data;if("view-public-library"===r){const e=(n||{}).linkId;e&&(ne.ZP.reportEvent("Library","Follow Public Libraries","click","library",{event:{value:e}}),(0,G.nR)(e))}},onExit:()=>{ne.ZP.reportEvent("Library","Follow Public Libraries","click","done")}}})}handleRouteChange(e){var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=si(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(this._routeHandlers);try{for(r.s();!(t=r.n()).done;){const r=ai(t.value,2),n=r[0],i=r[1],o=n.exec(e);if(o){i(...o.slice(1));break}}}catch(e){r.e(e)}finally{r.f()}}setVulcanInterface(e){this._rawVulcanInterface=e,this.vulcanInterface.setVulcanInterface(e)}setContextMenu(e){this.ccdAPI.ccdContext.showContextMenu(s.Z.contextMenuPositionState,vi(e))}showShareSheet(e,t){const r=!!ut.Z.get("enableProjects"),n=this.isTeamLibrary(e),i={assetData:{urn:e.assetId,name:e.name,mimeType:v.Z.LIBRARY_TYPE,enableProjectsSharesheet:n&&r,type:(0,dr.Ol)(e)?"expressBrand":"expressLibrary",libraryResourceURL:(0,G.m_)(!!(0,dr.Ol)(e),e.assetId)},shareAction:t,shareCapabilities:r?["invite","getLink"]:"share"===t?["invite"]:void 0};if(n){const t=(0,se.Uu)(e),r=t&&t.name;var o;if(r)return void this.ccdAPI.ccdContext.showShareSheet(di(di({},i),{},{team:{name:r,assetId:null===(o=e.project)||void 0===o?void 0:o.id}}))}this.ccdAPI.ccdContext.showShareSheet(i)}setHeader(e=!1,t){const r=["invite"],n=i.ZP.currentLibrary;if(!n)return void this.ccdAPI.ccdContext.setHeader("libraries",{});let o=rt.Z.panel.libraryActions.getLibraryActions(n,!0).filter((e=>!r.includes(e.id)));o.find((e=>"getLink"===e.id))||(o=o.filter((e=>"shareDivider"!==e.id)));const a=Boolean(!n.isWritable||n.toolkitId||n.documentId),c=Boolean(n.isWritable&&!n.toolkitId&&i.ZP.isSharingEnabled&&n.isPushedToServer)?()=>{ne.ZP.reportEvent("Library Operations","Collaboration","click","invite",{content:{category:"Header"}},n),this.showShareSheet(n,this.isTeamLibrary(n)?"share":"invite")}:void 0,l=Boolean(n.toolkitId&&!s.Z.isLocked(n));this.ccdAPI.ccdContext.setHeader("libraries",{name:n.name,subTitle:(0,se.rU)(n),onNameChange:e=>{if((e=e.trim())===n.name)return;const r=n&&i.ZP.platformFolders.find((e=>n.parentDirectoryId===e.id));e&&!a&&rt.Z.panel.libraryActions.validateLibraryName(e,r,!0)&&(ne.ZP.reportEvent("Library Operations","Library","click","rename",{content:{category:t?"Header Right Click":"Header Click"}}),n.name=e),this.setHeader()},onUserAdd:c,moreActions:vi(o),editMode:e,readOnly:a,hideViewOnlyLabel:l})}showToast(e,t,r={}){const n={variant:r.variant||"success"};t&&(n.actionLabel=t.label,n.closeOnAction=!0,n.onAction=t.onClick);const i=this.ccdAPI.ccdContext.showToast(e,n);this._openToast={id:i,referenceId:r.referenceId}}hideToast(e){this._openToast&&this._openToast.referenceId===e&&(this.ccdAPI.ccdContext.toastStore.hide(this._openToast.id),this._openToast=void 0)}hideAllToasts(){this._openToast&&(this.ccdAPI.ccdContext.toastStore.hideAll(),this._toast=void 0)}setSyncState(e){const t="ok"===e.state?"synced":"error"===e.state&&"syncDisabled"===e.errorType?"paused":e.state,r={status:t,data:{totalPercentage:100===e.syncProgress?void 0:e.syncProgress,error:{errorString:"error"===t&&e.errorType?(0,Nt.sB)(e).replace("<br/> ",""):void 0,errorLink:"error"===t&&e.errorType?(0,Nt.Jf)(e):void 0,errorType:"error"===t&&e.errorType||void 0}}};this.ccdAPI.ccdContext.setSyncState&&this.ccdAPI.ccdContext.setSyncState(r)}showDialog(e,t){this.hideDialog(),this._currentDialogKey=this.ccdAPI.ccdContext.showDialog(e,t)}openCustomDialog(){return this.showDialog("customWebcomponent",{webComponent:"library-custom-dialog-view",removePadding:s.Z.getRemovePadding(),onClose:_t.ZP.closeDialog})}hideDialog(){this._currentDialogKey&&(this.ccdAPI.ccdContext.hideDialog(this._currentDialogKey),delete this._currentDialogKey)}showWebArticle(e,t){this.ccdAPI.ccdContext.showWebArticle(e,t)}setFooter(e){this.ccdAPI.ccdContext.setFooter(e)}getRootPanelElement(){return this._currentBaseWebComponent}setCurrentBaseWebComponent(e){this._currentBaseWebComponent=e}getDragFileList(){const e=this.isWindowsOS()?"\\":"/";return this.ccdAPI.ccdContext.getDraggedFilePaths().then((t=>Promise.all(t.map((t=>i.ZP.getFileSize(t).then((r=>({path:t,size:r,name:t.split(e).pop()}))))))))}getSavePath(){return new Promise((e=>this.ccdAPI.ccdContext.showFolderPicker(e,{windowTitle:(0,h.Iu)("DL_EXPORT"),promptButton:(0,h.Iu)("DL_EXPORT")})))}getFileForSaving(e){const t={windowTitle:(0,h.Iu)("DL_EXPORT_LIBRARY"),promptButton:(0,h.Iu)("DL_EXPORT")};return this.ccdAPI.ccdContext.filePickerStore.openFolderPicker(t).then((t=>{const r=t.shift();return r?{nativePath:r+(this.isWindowsOS()?"\\":"/")+e}:null}))}updateHostInfo(e,t){const r=this.getHostEnvironment();return t&&(r.appSkinInfo=t,p.ZP.isInitialized&&p.ZP.updateTheme(t),this._notifyEventListeners(v.Z.THEME_COLOR_CHANGED_EVENT)),e?(r.appUILocale=n.nD.includes(e)?e:"en_US",this._loadResourceBundle(r.appUILocale).then((()=>{h.ZP.setStringMap(this._resourceBundle)}))):Promise.resolve()}shouldRenderPanel(){return!1}isLibrariesPanel(){return!0}getUserDataPath(){return null}getHostEnvironment(){return this._hostEnvironment}launchInBrowser(e){window.open(e)}showError(e){this.showToast(e,null,{variant:"warning"})}exec(e,t,r=[]){const n=`${e}.${t}`;return this.debugLog(`exec ${n} ${r}`),Promise.reject("not implemented")}dispatchEvent(){return"not implemented"}execApp(e,t){return this.exec(this._hostEnvironment.appName,e,t)}notifyProductInitialized(){b(),this.ccdAPI._markLoaded()}get exports(){return this.ccdAPI}isTeamLibrary(e){return"incoming"===e.ownership&&("org"===e.ownerType||e.project)}},ri=mi(ti.prototype,"isContentViewMounted",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ni=mi(ti.prototype,"isLibrariesViewMounted",[c.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),mi(ti.prototype,"isAnyViewMounted",[c.computed],Object.getOwnPropertyDescriptor(ti.prototype,"isAnyViewMounted"),ti.prototype),mi(ti.prototype,"_availableActions",[c.computed],Object.getOwnPropertyDescriptor(ti.prototype,"_availableActions"),ti.prototype),mi(ti.prototype,"elementDetailMode",[c.computed],Object.getOwnPropertyDescriptor(ti.prototype,"elementDetailMode"),ti.prototype),ti)},46916:(e,t,r)=>{"use strict";function n(){}function i(e,t,r,n){this.type=e,this.scope=t,this.appId=r,this.extensionId=n}function o(){}function a(){}function s(e,t,r){this.menuItemLabel=e,this.enabled=t,this.checked=r}function c(e,t,r){this.menuItemID=e,this.enabled=t,this.checked=r}function l(){}r.r(t),r.d(t,{default:()=>O}),n._PANEL="Panel",n._MODELESS="Modeless",n._MODAL_DIALOG="ModalDialog",i.prototype.data="",o.USER_DATA="userData",o.COMMON_FILES="commonFiles",o.MY_DOCUMENTS="myDocuments",o.APPLICATION="application",o.EXTENSION="extension",o.HOST_APPLICATION="hostApplication",a.RGB="rgb",a.GRADIENT="gradient",a.NONE="none",l.THEME_COLOR_CHANGED_EVENT="com.adobe.csxs.events.ThemeColorChanged",l.prototype.hostEnvironment=window.__adobe_cep__?JSON.parse(window.__adobe_cep__.getHostEnvironment()):"",l.prototype.getHostEnvironment=function(){return this.hostEnvironment=JSON.parse(window.__adobe_cep__.getHostEnvironment()),this.hostEnvironment},l.prototype.closeExtension=function(){window.__adobe_cep__.closeExtension()},l.prototype.getSystemPath=function(e){var t=decodeURI(window.__adobe_cep__.getSystemPath(e)),r=this.getOSInformation();return r.indexOf("Windows")>=0?t=t.replace("file:///",""):r.indexOf("Mac")>=0&&(t=t.replace("file://","")),t},l.prototype.evalScript=function(e,t){null==t&&(t=function(e){}),window.__adobe_cep__.evalScript(e,t)},l.prototype.getApplicationID=function(){return this.hostEnvironment.appId},l.prototype.getHostCapabilities=function(){return JSON.parse(window.__adobe_cep__.getHostCapabilities())},l.prototype.dispatchEvent=function(e){"object"==typeof e.data&&(e.data=JSON.stringify(e.data)),window.__adobe_cep__.dispatchEvent(e)},l.prototype.addEventListener=function(e,t,r){window.__adobe_cep__.addEventListener(e,t,r)},l.prototype.removeEventListener=function(e,t,r){window.__adobe_cep__.removeEventListener(e,t,r)},l.prototype.requestOpenExtension=function(e,t){window.__adobe_cep__.requestOpenExtension(e,t)},l.prototype.getExtensions=function(e){var t=JSON.stringify(e),r=window.__adobe_cep__.getExtensions(t);return JSON.parse(r)},l.prototype.getNetworkPreferences=function(){var e=window.__adobe_cep__.getNetworkPreferences();return JSON.parse(e)},l.prototype.initResourceBundle=function(){for(var e=JSON.parse(window.__adobe_cep__.initResourceBundle()),t=document.querySelectorAll("[data-locale]"),r=0;r<t.length;r++){var n=t[r],i=n.getAttribute("data-locale");if(i)for(var o in e)if(0===o.indexOf(i)){var a=e[o];o.length==i.length?n.innerHTML=a:"."==o.charAt(i.length)&&(n[o.substring(i.length+1)]=a)}}return e},l.prototype.dumpInstallationInfo=function(){return window.__adobe_cep__.dumpInstallationInfo()},l.prototype.getOSInformation=function(){var e=navigator.userAgent;if("Win32"==navigator.platform||"Windows"==navigator.platform){var t="Windows",r="";return e.indexOf("Windows")>-1&&(e.indexOf("Windows NT 5.0")>-1?t="Windows 2000":e.indexOf("Windows NT 5.1")>-1?t="Windows XP":e.indexOf("Windows NT 5.2")>-1?t="Windows Server 2003":e.indexOf("Windows NT 6.0")>-1?t="Windows Vista":e.indexOf("Windows NT 6.1")>-1?t="Windows 7":e.indexOf("Windows NT 6.2")>-1?t="Windows 8":e.indexOf("Windows NT 6.3")>-1?t="Windows 8.1":e.indexOf("Windows NT 10")>-1&&(t="Windows 10"),r=e.indexOf("WOW64")>-1?" 64-bit":" 32-bit"),t+r}if("MacIntel"==navigator.platform||"Macintosh"==navigator.platform){var n="Mac OS X";return e.indexOf("Mac OS X")>-1&&(n=(n=e.substring(e.indexOf("Mac OS X"),e.indexOf(")"))).replace(/_/g,".")),n}return"Unknown Operation System"},l.prototype.openURLInDefaultBrowser=function(e){return cep.util.openURLInDefaultBrowser(e)},l.prototype.getExtensionID=function(){return window.__adobe_cep__.getExtensionId()},l.prototype.getScaleFactor=function(){return window.__adobe_cep__.getScaleFactor()},l.prototype.setScaleFactorChangedHandler=function(e){window.__adobe_cep__.setScaleFactorChangedHandler(e)},l.prototype.getCurrentApiVersion=function(){return JSON.parse(window.__adobe_cep__.getCurrentApiVersion())},l.prototype.setPanelFlyoutMenu=function(e){"string"==typeof e&&window.__adobe_cep__.invokeSync("setPanelFlyoutMenu",e)},l.prototype.updatePanelMenuItem=function(e,t,r){var n=!1;if(this.getHostCapabilities().EXTENDED_PANEL_MENU){var i=new s(e,t,r);n=window.__adobe_cep__.invokeSync("updatePanelMenuItem",JSON.stringify(i))}return n},l.prototype.setContextMenu=function(e,t){"string"==typeof e&&window.__adobe_cep__.invokeAsync("setContextMenu",e,t)},l.prototype.setContextMenuByJSON=function(e,t){"string"==typeof e&&window.__adobe_cep__.invokeAsync("setContextMenuByJSON",e,t)},l.prototype.updateContextMenuItem=function(e,t,r){var n=new c(e,t,r);ret=window.__adobe_cep__.invokeSync("updateContextMenuItem",JSON.stringify(n))},l.prototype.isWindowVisible=function(){return window.__adobe_cep__.invokeSync("isWindowVisible","")},l.prototype.resizeContent=function(e,t){window.__adobe_cep__.resizeContent(e,t)},l.prototype.registerInvalidCertificateCallback=function(e){return window.__adobe_cep__.registerInvalidCertificateCallback(e)},l.prototype.registerKeyEventsInterest=function(e){return window.__adobe_cep__.registerKeyEventsInterest(e)},l.prototype.setWindowTitle=function(e){window.__adobe_cep__.invokeSync("setWindowTitle",e)},l.prototype.getWindowTitle=function(){return window.__adobe_cep__.invokeSync("getWindowTitle","")};var u=r(85062),d=r(7921),p=r(26964),h=r(96912);class f extends h.Z{constructor(){super(),this._ccLibProcessIdentifier=this._cepVulcanInterface.useSpecifiers?this.ccLibProcessSpecifier:this.ccLibProcessSAPCode}get _cepVulcanInterface(){return d.d}isCCLibProcessInstalled(){return this._cepVulcanInterface.isAppInstalled(this._ccLibProcessIdentifier)}isCCLibProcessRunning(){return this._cepVulcanInterface.isAppRunning(this._ccLibProcessIdentifier)}launchCCLibProcess(){return new Promise((e=>{this._cepVulcanInterface.launchApp(this._ccLibProcessIdentifier,!1,""),e()}))}addMessageListener(e,t){p.Z.log("Vulcan: Add Listener: "+e),t.wrapper=(e,...r)=>{const n=this._cepVulcanInterface.getPayload(e,...r);t(n,e.appId,e.appVersion)},this._cepVulcanInterface.addMessageListener(this._vulcanPrefix+e,t.wrapper)}removeMessageListener(e,t){p.Z.log("Vulcan: Remove Listener: "+e),this._cepVulcanInterface.removeMessageListener(this._vulcanPrefix+e,t&&t.wrapper)}sendMessage(e,t){p.Z.log("Vulcan: Send Message: "+e);const r=new d.u(this._vulcanPrefix+e);r.setPayload(t),this._cepVulcanInterface.dispatchMessage(r)}}var m=r(99386),g=r(72373),v=r(46931),y=r(30131),b=r(46903),_=r(84824),E=r(33275),w=r(76325);function x(){x=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function L(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class O extends u.ZP{static check(){return!!window.__adobe_cep__}get cloudDriverConnector(){return function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){L(o,n,i,a,s,"next",e)}function s(e){L(o,n,i,a,s,"throw",e)}a(void 0)}))}}(x().mark((function e(){var t,r,n,i,o;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=w.Z.getEnvironment(),r="Staging"===t.label?"staging":"production",e.next=4,w.Z.getCurrentUserIdHelper();case 4:return n=e.sent,i=()=>w.Z.getAccessToken(n),e.next=8,i();case 8:return o=e.sent,e.abrupt("return",{env:r,token:o,refreshAccessToken:i});case 10:case"end":return e.stop()}}),e)})))}get ccLibrariesDriver(){return g.Z.getDebugValue("jsapiHybridDriver")?this.hybridDriver:new E.Ut((0,E.Zb)(d.d,d.u),{ignoreRenditionGrids:!0})}get hybridDriver(){return new E.B((0,E.Zb)(d.d,d.u),this.cloudDriverConnector)}get supportsFileURLs(){const e=g.Z.getDebugValue("jsapiHybridDriver");return void 0===e||!e}constructor(e=window){super(e),this.type="CEP",this.vulcanInterface=new f,this.isMenuInJson=!1,this.hasManagerPersistenceBug=!0,this.flyoutMenuClickEvent="com.adobe.csxs.events.flyoutMenuClicked",this._waitForManagerInit=void 0,this._appInterface=new l,this._extensionId=this._appInterface.getExtensionID(),this._resourceBundle=this._appInterface.initResourceBundle(),window.__disable_swc__=!0}getHostEnvironment(e){return this._hostEnvironment&&!e||(this._hostEnvironment=this._appInterface.getHostEnvironment()),this._hostEnvironment}updateHostInfo(e){const t=this.getHostEnvironment();return e?(t.appUILocale=u.nD.includes(e)?e:"en_US",this._loadResourceBundle(t.appUILocale).then((()=>{_.ZP.setStringMap(this._resourceBundle)}))):Promise.resolve()}getOSInformation(){return this._appInterface.getOSInformation()}_evalScript(e,t=0){return new Promise(((r,n)=>{this._appInterface.evalScript(e,(i=>{if(0!==i.indexOf("Error")&&"EvalScript error."!==i)return r(i);this.debugLog("Tried to execute: "+e),this.debugLog("Failed with: "+i),t<2?setTimeout((()=>this._evalScript(e,t+1).then(r,n)),50):n(i)}))}))}exec(e,t,r=[]){Array.isArray(r)||(r=[r]);const n=r.map(JSON.stringify).join(", "),i=e?`$._ADBE_LIBS_${e}.`:"$.";return this._evalScript(`${i}${t}(${n})`)}execApp(e,t){return this.exec(this.getAppName(),e,t)}showError(e){return this.exec("CORE","showError",[e])}createEvent(e,t,r,n,o){const a=new i(e,t,r,n);return a.data=o,a}dispatchEvent(e){e.extensionId=this._appInterface.getExtensionID(),this._appInterface.dispatchEvent(e)}addEventListener(e,t){this._appInterface.addEventListener(e,t)}removeEventListener(e,t){this._appInterface.removeEventListener(e,t)}getPluginPath(){return this._appInterface.getSystemPath("extension")}getUserDataPath(){return this._appInterface.getSystemPath("userData")}getMyDocumentsPath(){return this._appInterface.getSystemPath("myDocuments")}setPanelFlyoutMenu(e){this._menuItems!==e&&(this._appInterface.setPanelFlyoutMenu(e),this._menuItems=e)}setContextMenu(e,t){this._appInterface.setContextMenu(e,t)}setWindowTitle(e){this._appInterface.setWindowTitle(e)}resizeContent(e,t){this._appInterface.resizeContent(e,t)}launchInBrowser(e,t=!1){return new Promise((r=>{const n=()=>{this._appInterface.openURLInDefaultBrowser(e),r()};t?n():setTimeout(n)}))}requestOpenExtension(e,t){this._appInterface.requestOpenExtension(e,t)}closeExtension(){this._appInterface.closeExtension()}getAvailableExtensions(){return this._extensionList||(this._extensionList=this._appInterface.getExtensions()),this._extensionList}getProfile(){const e=window.profile&&window.profile.getProfile();try{return JSON.parse(e)}catch(e){return{error:e}}}addManagerInitListener(){this._waitForManagerInit=new Promise((e=>{this.addEventListener(m.Z.MANAGER_CEP_EVENTS.INIT,e),this.hasManagerPersistenceBug&&this.addEventListener(m.Z.MANAGER_CEP_EVENTS.CLOSE,(()=>{this.removeEventListener(m.Z.MANAGER_CEP_EVENTS.INIT,e),this.addManagerInitListener()}))}))}openDialogInManager(e,t,r){this.openLibraryManagerWindow(),this._waitForManagerInit.then((()=>{const n=this.createEvent(m.Z.MANAGER_CEP_EVENTS.OPEN_DIALOG,"APPLICATION");n.data={name:e,params:t,onCloseCallback:r},this.dispatchEvent(n)}))}_openDialogInManager(e){const t=e.data,r=t.name,n=t.params,i=t.onCloseCallback;v.Z.libraryManager.waitForLibrariesLoaded().then((()=>{v.Z.manager.dialogManager.openDialog(r,n,i)})).catch((()=>{v.Z.manager.toastManager.openToast("message",{variant:"error",message:(0,_.Iu)("DL_GENERIC_MANAGER_DIALOG_ERROR")})}))}addOpenDialogEventListener(){this.addEventListener(m.Z.MANAGER_CEP_EVENTS.OPEN_DIALOG,this._openDialogInManager)}removeOpenDialogEventListener(){this.removeEventListener(m.Z.MANAGER_CEP_EVENTS.OPEN_DIALOG,this._openDialogInManager)}openLibraryManagerWindow(){this.requestOpenExtension(m.Z.MANAGER_EXTENSION_ID)}showShareSheet(e,t="invite"){if((0,b.u4)())return v.Z.libraryManager.openInCCD(`/assets/libraries/sharesheet/${t}/${e.id}`);(0,y.nd)(e)}_sendApplicationEvent(e,t){const r=this.createEvent(`com.adobe.DesignLibraries.events.${e}`,"APPLICATION");r.data=JSON.stringify(t),this.dispatchEvent(r)}_notifyLibraryCreated(e){this._sendApplicationEvent("CreateLibraryResponse",{success:!!e,libraryName:e?e.name:"",libraryId:e?e.id:""})}notifyElementCreated(e){this._sendApplicationEvent("ElementCreated",e)}notifyElementChosen(e){this._sendApplicationEvent(e.elementRef?"ElementChosen":"ElementChooseCancelled",e)}notifyElementUpdated(e){this._sendApplicationEvent("ElementUpdated",e)}notifyLibraryTempDir(e){this._sendApplicationEvent("TEMPDIR",{path:e})}connectProductInterface(e){const t=(t,r=!0,n)=>i=>{const o=i&&i.data;if(o||!r){const r=e[t](o);n&&n(r)}};this.disconnectProductInterface(),this._handlers={dlElementOpenForEdit:t("openElementForEdit"),dlElementReveal:t("revealElement"),dlElementChoose:t("invokeChooseElement"),dlElementChooseCancel:t("cancelChooseElement",!1),dlElementLinkCreated:t("reportElementLinkCreated"),dlElementDropped:t("reportElementDropped",!1),dlCreateLibrary:t("createLibrary",!0,(e=>this._notifyLibraryCreated(e))),dlSetCurrentLibrary:t("setCurrentLibrary"),dragStarted:t("startDragFromProduct"),dragEnded:t("endDragFromProduct",!1),"com.adobe.DesignLibraries.events.InvokeVisualSearch":t("invokeVisualSearch"),"com.adobe.DesignLibraries.events.LaunchCaptureWorkflow":t("launchCaptureWorkflow")};for(const e in this._handlers)this.addEventListener(e,this._handlers[e])}disconnectProductInterface(){if(this._handlers){for(const e in this._handlers)this.removeEventListener(e,this._handlers[e]);delete this._handlers}}isFontAvailable(e){return this.execApp("isFontAvailable",[e]).then((e=>"false"!==e))}getLayerInfo(){return this.execApp("getLayerInfo").then((e=>{try{if(!e)return;return JSON.parse(e)}catch(e){this.debugLog(e)}}))}getLayerName(){return this.execApp("getLayerName")}getCurrentDocumentState(){const e=m.Z.currentProduct.config.stateMethod||"getCurrentState";return this.execApp(e).then((e=>{if(e&&"undefined"!==e)try{return JSON.parse(e)}catch(e){return this.debugLog(e),{layerID:-1}}})).catch((e=>{this.debugLog(`Unable to getDocumentState: ${e}`)}))}isDocumentOpen(e){return this.exec("CORE","isDocumentOpen",[e]).then((e=>{if(void 0===e||"undefined"===e)return!1;try{return JSON.parse(e)}catch(e){return!1}}))}addDocumentChangeListener(e){this.removeDocumentChangeListener(e),e._handler=t=>{let r=t.data.substring(t.data.indexOf("<url>")+5,t.data.indexOf("</url>"));r=r.split("file://").join(""),m.Z.currentProduct.config.usesEscapedFilePaths&&(r=unescape(r)),e({type:{documentAfterDeactivate:"deactivated",documentAfterSave:"saved"}[t.type]||t.type,path:r})},this.addEventListener("documentAfterSave",e._handler),this.addEventListener("documentAfterDeactivate",e._handler)}removeDocumentChangeListener(e){e._handler&&(this.removeEventListener("documentAfterSave",e._handler),this.removeEventListener("documentAfterDeactivate",e._handler),delete e._handler)}notifyProductInitialized(){const e=this.isLibrariesManager()?m.Z.MANAGER_CEP_EVENTS.INIT:"dlPanelInitialized";this.dispatchEvent(this.createEvent(e,"APPLICATION"))}}},41477:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(85062),i=r(22708),o=r.n(i),a=r(99386),s=r(76485),c=r(26964),l=r(96912);function u(){u=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function p(){}function h(){}function f(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(O([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=f,s(y,"constructor",f),s(f,"constructor",h),h.displayName=s(f,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function d(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class p extends l.Z{constructor(e){super(),this.vulcanjs=e}init(){var e,t=this;return(e=u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c.Z.log("Vulcan: Switching to node-vulcanjs (non-CEP environment)"),t.vulcanjs){e.next=4;break}return e.next=4,s.Z.exec("CORE","getHostEnvironment",s.Z.getExtensionID()).then((e=>{try{t.vulcanjs=window.nodeRequire(e.nodeVulcanjsPath||"node-vulcanjs"),t.vulcanjs.VulcanAdapter}catch(e){(0,c.Z)("Unable to load node-vulcanjs: "+e)}}));case 4:t._VulcanMessageLib=new t.vulcanjs.VulcanAdapter(s.Z.getAppName()+"-LIBS",s.Z.getAppVersion()),t._VulcanControlLib=new t.vulcanjs.VulcanControlAdapter,t._VulcanMessageLib.addMessageListener(((e,r,n,i)=>{e=e.replace("vulcan.SuiteMessage.",""),t._listenerManager.hasListeners(e)&&(c.Z.log("Vulcan: Receive Message: "+e),t._listenerManager.notify(e,r,n,i))})),t.launchCCLibProcess=t._VulcanControlLib.getAppDetails?t._launchCCLibProcessV2:t._launchCCLibProcessV1,t._ccLibProcessIdentifier=t._VulcanControlLib.getAppDetails?t.ccLibProcessSAPCode:t.ccLibProcessSpecifier;case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){d(o,n,i,a,s,"next",e)}function s(e){d(o,n,i,a,s,"throw",e)}a(void 0)}))})()}_launchCCLibProcessV1(){return new Promise((e=>{this._VulcanControlLib.launchApp(this._ccLibProcessIdentifier,!1,"",e)}))}_launchCCLibProcessV2(){return this._VulcanControlLib.launchApp(this._ccLibProcessIdentifier,!1,"")}isAppRunning(){return this.isCCLibProcessRunning()}isCCLibProcessInstalled(){return this._VulcanControlLib.isAppInstalled(this._ccLibProcessIdentifier)}isCCLibProcessRunning(){return this._VulcanControlLib.isAppRunning(this._ccLibProcessIdentifier)}addMessageListener(e,t){c.Z.log("Vulcan: Add Listener: "+e),this._listenerManager.addListener(e,t)}removeMessageListener(e,t){c.Z.log("Vulcan: Remove Listener: "+e),this._listenerManager.removeListener(e,t)}sendMessage(e,t){c.Z.log("Vulcan: Send Message: "+e),this._VulcanMessageLib.sendMessage(e,t,"","")}dispatchMessage(e){c.Z.log("Vulcan: Dispatch Message: "+e.type),this._VulcanMessageLib.sendMessage(e.type,e.message)}}var h=r(21271),f=r.n(h),m=r(33275),g=r(7921);function v(e){const t=e=>({type:e.divider?"separator":e.menuItems?"submenu":"checkbox",label:e.label,checked:!!e.checked,id:e.menuId,enabled:!1!==e.enableMenu,submenu:e.menuItems&&e.menuItems.map(t)});return e.map(t)}class y extends n.ZP{static check(){return!(!window.process||!window.process.type)}constructor(e=window){super(e),this.type="electron",this.disableCustomDragImage=!0,this.useSVGLegacyHref=!0,this._callbacks={},this._electron=e.nodeRequire("electron"),window.__disable_swc__=!0,this._extensionId="com.adobe.DesignLibraries.angular",f().ignoreEventPaths=!0,window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach);const t=e.nodeRequire("fs");t.copyFile||(t.copyFile=function(e,r,n){try{const i=r+"_"+o()(),a=t.createWriteStream(i),s=t.createReadStream(e);let c=!1;s.on("end",(()=>{c||(c=!0,t.rename(i,r,(e=>{e?setTimeout((()=>{t.rename(i,r,n)}),100):n(null)})))})),s.on("error",(e=>{c=!0,n(e)})),s.pipe(a)}catch(e){n(e)}})}init(){return this._electron.ipcRenderer.on("cclibrary",((e,t)=>this._onMessage(t))),this.exec("CORE","getHostEnvironment",this.getExtensionID()).then((e=>{this._hostEnvironment=e,this.vulcanInterface=new p,this.vulcanInterface.init(),this.ccLibrariesDriver=new m.Ut((0,m.HH)(this.vulcanInterface,g.u));try{this.IMSLib=this._window.nodeRequire(e.nodeImslibPath||"node-imslib"),this.IMSLib.loadLib(e.imslibPath)}catch(e){this.debugLog("Unable to load node-imslib: "+e)}return Object.values=e=>Object.keys(e).map((t=>e[t])),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);const t=this.constructor||Promise;return this.then((r=>t.resolve(e()).then((()=>r))),(r=>t.resolve(e()).then((()=>{throw r}))))}),this._loadResourceBundle(e.appUILocale)}))}getHostEnvironment(){return this._hostEnvironment}exec(e,t,r=[]){const n=`${e}.${t}`,i=Math.random().toString(36);return new Promise(((e,t)=>{this._callbacks[i]=(r,i)=>r?t(n+": "+r):e(i),this._sendMessage({type:n,data:r,callback:i})}))}execApp(e,t){return this.exec(this._hostEnvironment.appName,e,t)}getLayerInfo(){return this.execApp("getLayerInfo").then((e=>{try{if(!e)return;return JSON.parse(e)}catch(e){this.debugLog(e)}}))}showError(e){return this.exec("CORE","showError",e).then((t=>{t||this._electron.remote.dialog.showErrorBox(e,"")}))}_sendMessage(e){this._electron.ipcRenderer.send("cclibrary",JSON.stringify(e))}_onMessage(e){try{e=JSON.parse(e)}catch(e){}if("callback"===e.type&&this._callbacks[e.id])this._callbacks[e.id](e.error,e.data),delete this._callbacks[e.id];else if("event"===e.type){"com.adobe.csxs.events.ThemeColorChanged"===e.event&&(this._hostEnvironment.appSkinInfo=e.data);const t=e,r=t.data,n=t.scope,i=t.appId,o=t.extensionId;this._notifyEventListeners(e.event,{type:e.event,data:r,scope:n,appId:i,extensionId:o})}}dispatchEvent(e){this._sendMessage({type:"event",data:e})}getPluginPath(){return this._hostEnvironment.extensionPath}getUserDataPath(){const e=this._window.process;return"darwin"!==e.platform?e.env.USERPROFILE.replace(/\\/g,"/")+"/AppData/Roaming":e.env.HOME+"/Library/Application Support"}getMyDocumentsPath(){const e=this._window.process;return"darwin"===e.platform?e.env.HOME+"/Documents":e.env.USERPROFILE.replace(/\\/g,"/")+"/Documents"}setPanelFlyoutMenu(e){this.exec("CORE","setPanelFlyoutMenu",v(e))}setContextMenu(e,t){if(Array.isArray(e)&&!e.length>0)return;e=v(e);const r=e=>{e.enabled||(e.type="normal",e.submenu=void 0),e.submenu?e.submenu.forEach(r):e.click=()=>t(e.id)};e.forEach(r);const n=this._electron.remote.getCurrentWindow();this._electron.remote.Menu.buildFromTemplate(e).popup(n)}setWindowTitle(e){this.exec("CORE","setWindowTitle",e)}resizeContent(e,t){this._electron.remote.getCurrentWindow().setSize(e,t)}launchInBrowser(e){this._electron.shell.openExternal(e)}requestOpenExtension(e,t){this.exec("CORE","requestOpenExtension",{extensionId:e,params:t})}closeExtension(){this.exec("CORE","closeExtension")}notifyProductInitialized(){const e=this.isLibrariesManager()?a.Z.MANAGER_CEP_EVENTS.INIT:"dlPanelInitialized";this.dispatchEvent(this.createEvent(e,"APPLICATION"))}getAdjustedBoundingClientRect(e){if(!e)return null;const t=e.getBoundingClientRect();return t.x=t.left,t.y=t.top,t}}},36881:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var n=r(7218),i=r(28059),o=r(87876),a=r(42334),s=r(33054),c=r(73961),l=r(75067),u=r(89526);function d(){d=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function h(){}function f(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(O([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=f,s(y,"constructor",f),s(f,"constructor",h),h.displayName=s(f,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function p(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function h(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){p(o,n,i,a,s,"next",e)}function s(e){p(o,n,i,a,s,"throw",e)}a(void 0)}))}}const f=["canvasClick","com.adobe.csxs.events.flyoutMenuClicked","com.adobe.csxs.events.flyoutMenuOpened","com.adobe.csxs.events.flyoutMenuClosed","com.adobe.csxs.events.ThemeColorChanged"];class m extends n.Z{static check(){try{require("photoshop")}catch(e){return!1}return navigator.userAgent.indexOf("UXP")>-1}constructor(e=window){super(e),this.hasUXPButtonStyleBug=!0,this.hasInputZOrderBug=!0,this.hasOpacityBug=!0,this.hasUXPStockExtension=!0,this.hasUXPCaptureExtension=!0,this.additionalStockLicenseCoreModules=[{name:"photoshop",type:"module"}],this.additionalCaptureCoreModules=["photoshop"],this.type="Photoshop",this.pluginId="com.adobe.cclibrariespanel",this.closeContextMenu=()=>{this.flyoutDialogElement&&this.flyoutDialogElement.close()},this.removeContextMenu=()=>{this.flyoutDialogElement&&(this.flyoutDialogElement.remove(),this.flyoutDialogElement=void 0)};const t=window.nodeRequire("uxp").host,r=this.findLocaleMatch(t.locale);this._hostEnvironment={appName:"PHXS_UXP",appId:"PHXS",appVersion:t.version,appLocale:r,isAppOnline:!0,appUILocale:r,appSkinInfo:{panelBackgroundColor:{color:{alpha:255,green:83,blue:83,red:83}}}}}debugLog(e){return console.info(e),!0}setPanelFlyoutMenu(e){const t=window.nodeRequire("uxp").entrypoints.getPanel("ccLibrariesPanel").menuItems;let r=0;this._flyoutMenuClickHandlers={};const n=e.map((e=>e.divider?{id:"DIVIDER_"+r++,label:"-"}:(this._flyoutMenuClickHandlers[e.menuId]=e.onClick,{id:e.menuId,label:e.label,enabled:e.enableMenu,checked:e.checked})));for(let e=t.size;e>0;e--)t.removeAt(e-1);n.forEach(((e,r)=>{t.insertAt(r,e)}))}handleFlyout(e){this._flyoutMenuClickHandlers[e]&&this._flyoutMenuClickHandlers[e]()}get exports(){var e,t=this;return window.nodeRequire("uxp").entrypoints.setup({panels:{ccLibrariesPanel:{show:e=>{this._waitForInit.then((()=>{this._panelMountPoint=this.getMountPoint(e.node),this.renderPanel(this._panelMountPoint),this.core.suppressResizeGripper({type:"panel",target:"ccLibrariesPanel",value:!0})}))},hide:()=>{this._panelMountPoint&&(this.unmountPanel(this._panelMountPoint),this._panelMountPoint.remove(),delete this._panelMountPoint)},menuItems:[],invokeMenu:e=>{this.handleFlyout(e)}}},commands:{adobeStockLicensingPlugin:{run:(e=h(d().mark((function e(r){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.openStockLicenseExtension(JSON.parse(r.data));case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])}))),function(t){return e.apply(this,arguments)})}}})}getPluginPath(){return window.nodeRequire("uxp").entrypoints._pluginInfo._pluginInfo.pluginPath}getDragFileList(e){var t=this;return h(d().mark((function r(){var n,i;return d().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.isWindowsOS()?"\\":"/",i=e.uxpEntries.map((e=>e.nativePath)),r.abrupt("return",Promise.all(i.map((e=>l.ZP.getFileSize(e).then((t=>({path:e,size:t,name:e.split(n).pop()})))))));case 3:case"end":return r.stop()}}),r)})))()}_onUXPStockDialogClosed(e){return window.nodeRequire("photoshop").cclibrariespanel.stockLicenseExtensionClosed(this._deleteUndefinedKeys(e.data)),super._onUXPStockDialogClosed(e)}onContextMenu(e){if(e.preventDefault(),this._contextMenu.length>0&&!this.flyoutDialogElement){this.flyoutDialogElement=document.createElement("popup"),document.body&&document.body.appendChild(this.flyoutDialogElement),this.flyoutDialogElement.addEventListener("close",this.removeContextMenu);const t=this._contextMenu.some((e=>e.menuItems))?4:0;c.render(u.createElement(s.Z,{clientY:e.clientY,menuItems:this._contextMenu,maxMenuItemsVisible:15,minMenuItemsVisible:t,maxWidth:200,style:{left:0,top:0},preserveMainMenuHeightForSubMenus:!0,canShowOutsidePanel:!0,close:this.closeContextMenu,className:"panel-search-types"}),this.flyoutDialogElement),this.flyoutDialogElement.showFlyout(e.currentTarget)}}get hasVideoRenderingBug(){return!!this.isWindowsOS()}exec(e,t,r=[]){return"getTempFolder"===t?new Promise((function(e){window.nodeRequire("uxp").storage.localFileSystem.getTemporaryFolder().then((t=>e(t.nativePath)))})):"getApplicationVersion"===t?new Promise((e=>{e(this._hostEnvironment.appVersion)})):super.exec(e,t,r)}execApp(e,t){return"saveAssets"===e?new Promise((function(e){a.Z.saveAssets(t[0]).then((t=>e(JSON.stringify(t))))})):"saveTextStylePreview"===e?new Promise((function(e){i.Z.saveTextStylePreview(t[0]).then((t=>e(t)))})):this.exec(this._hostEnvironment.appName,e,t)}get application(){return window.nodeRequire("photoshop").app}get core(){return window.nodeRequire("photoshop").core}_deleteUndefinedKeys(e){return Object.keys(e).forEach((t=>{e[t]&&"object"==typeof e[t]?this._deleteUndefinedKeys(e[t]):void 0===e[t]&&delete e[t]})),e}notifyElementCreated(e){e=this._deleteUndefinedKeys(e),window.nodeRequire("photoshop").cclibrariespanel.libraryElementCreated(e)}notifyElementUpdated(){window.nodeRequire("photoshop").cclibrariespanel.libraryElementUpdated()}notifyElementChosen(e){e.elementRef&&(e=this._deleteUndefinedKeys(e),window.nodeRequire("photoshop").cclibrariespanel.libraryElementChosen(e))}_notifyLibraryCreated(e){window.nodeRequire("photoshop").cclibrariespanel.createLibraryResponse(!!e)}addEventListener(e,t){super.addEventListener(e,t),f.includes(e)||window.nodeRequire("photoshop").action.addNotificationListener([e],t)}removeEventListener(e,t){super.removeEventListener(e,t),f.includes(e)||window.nodeRequire("photoshop").action.removeNotificationListener([e],t)}connectProductInterface(e){const t=(t,r=!0,n)=>(i,o)=>{if(o||!r){const r=e[t](o);n&&n(r)}};this.disconnectProductInterface(),this._handlers={ElementOpenForEdit:t("openElementForEdit"),ElementReveal:t("revealElement"),ElementChoose:t("invokeChooseElement"),ElementChooseCancel:t("cancelChooseElement",!1),ElementLinkCreated:t("reportElementLinkCreated"),ElementDropped:t("reportElementDropped",!1),CreateLibrary:t("createLibrary",!0,(e=>this._notifyLibraryCreated(e))),DragStarted:t("startDragFromProduct"),DragEnded:t("endDragFromProduct",!1)};for(const e in this._handlers)this.addEventListener(e,this._handlers[e])}disconnectProductInterface(){if(this._handlers){for(const e in this._handlers)this.removeEventListener(e,this._handlers[e]);delete this._handlers}}isFontAvailable(e){return new Promise((function(t,r){i.Z.isFontAvailable(e).then((e=>t(e))).catch((()=>r("Could not get font availability from PS")))}))}getLayerInfo(){return new Promise((function(e,t){o.Z.getLayerInfo().then((t=>e(t))).catch((()=>t("Could not get layer info from PS")))}))}getLayerName(){return new Promise((function(e,t){o.Z.getActiveLayerName().then((t=>e(t))).catch((()=>t("Could not get active layer name from PS")))}))}getCurrentDocumentState(){return new Promise((function(e){const t={path:void 0,layerID:-1};o.Z.getNumberOfDocuments().then((r=>{r>0?o.Z.getActiveDocumentId().then((r=>{o.Z.getActiveLayerId(r).then((r=>{r&&(t.layerID=r),e(t)}))})):e(t)}))}))}isDocumentOpen(e){return new Promise((function(t){o.Z.isMatchingDocOpen(e).then((e=>t(e)))}))}addDocumentChangeListener(e){this.removeDocumentChangeListener(e),e._handler=(t,r)=>{let n=r.data.substring(r.data.indexOf("<url>")+5,r.data.indexOf("</url>"));n=n.split("file://").join(""),e({type:{documentAfterDeactivate:"deactivated",documentAfterSave:"saved"}[t],path:n})},this.addEventListener("documentAfterSave",e._handler),this.addEventListener("documentAfterDeactivate",e._handler)}removeDocumentChangeListener(e){e._handler&&(this.removeEventListener("documentAfterSave",e._handler),this.removeEventListener("documentAfterDeactivate",e._handler),delete e._handler)}showError(e){e&&super.showError(e)}deleteFile(e){return window.nodeRequire("photoshop").cclibrariespanel.deleteTempFile(e)}}},7218:(e,t,r)=>{"use strict";r.d(t,{Z:()=>ue});var n=r(85062);const i=window.atob||function(e){let t=0;const r=[];let n,i=0,o=0;if((e=e.replace(/\s/g,"")).length%4==0&&(e=e.replace(/=+$/,"")),e.length%4==1)throw Error("The string to be decoded contains invalid characters.");if(/[^+/0-9A-Za-z]/.test(e))throw Error("The string to be decoded contains invalid characters.");for(;t<e.length;)n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(t)),i=i<<6|n,o+=6,24===o&&(r.push(String.fromCharCode(i>>16&255)),r.push(String.fromCharCode(i>>8&255)),r.push(String.fromCharCode(255&i)),o=0,i=0),t+=1;return 12===o?(i>>=4,r.push(String.fromCharCode(255&i))):18===o&&(i>>=2,r.push(String.fromCharCode(i>>8&255)),r.push(String.fromCharCode(255&i))),r.join("")},o=window.btoa||function(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let r=0;const n=[];let i,o,a,s,c,l,u;if(/[^\x00-\xFF]/.test(e))throw Error("The string to be encoded contains invalid characters.");for(;r<e.length;)i=e.charCodeAt(r++),o=e.charCodeAt(r++),a=e.charCodeAt(r++),s=i>>2,c=(3&i)<<4|o>>4,l=(15&o)<<2|a>>6,u=63&a,r===e.length+2?(l=64,u=64):r===e.length+1&&(u=64),n.push(t.charAt(s),t.charAt(c),t.charAt(l),t.charAt(u));return n.join("")};var a,s,c,l,u=r(22708),d=r.n(u),p=r(89526),h=r(62631),f=r(40953),m=r(50265);let g=(a=m.observable.ref,(0,h.Pi)((c=class extends p.Component{constructor(...e){var t;super(...e),(t=l)&&Object.defineProperty(this,"menuItems",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0}),this.renderMenuItem=(e,t)=>e.divider?p.createElement("hr",{key:t}):e.menuItems&&e.enableMenu?p.createElement(p.Fragment,null,p.createElement("menu",{key:t+"sub",label:e.label},e.menuItems.map(this.renderMenuItem)),p.createElement("menuitem",{key:t,label:e.label})):p.createElement("menuitem",{key:t,label:e.label,disabled:!1===e.enableMenu,checked:!0===e.checked,onClick:e.onClick}),this.setMenuRef=e=>this._menuRef=e}showContextMenu(e,t,r){this.menuItems=e,this._menuRef&&this._menuRef.popupAt(t,r)}render(){return p.createElement("menu",{ref:this.setMenuRef},this.menuItems.map(this.renderMenuItem))}},v=c.prototype,y="menuItems",b=[a],_={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}},E={},Object.keys(_).forEach((function(e){E[e]=_[e]})),E.enumerable=!!E.enumerable,E.configurable=!!E.configurable,("value"in E||E.initializer)&&(E.writable=!0),E=b.slice().reverse().reduce((function(e,t){return t(v,y,e)||e}),E),void 0===E.initializer&&(Object.defineProperty(v,y,E),E=null),l=E,s=c))||s);var v,y,b,_,E,w;let x=(0,h.Pi)(w=class extends p.Component{constructor(...e){super(...e),this.setMenuRef=e=>this._menuRef=e}showContextMenu(e,t,r,n){this._menuRef&&this._menuRef.showContextMenu(e,t,r,n)}render(){return p.createElement("div",{id:"uxp-panel-root",className:"uxp-panel-root body",acceptsFirstPointer:"all"},p.createElement(f.Z,null),p.createElement(g,{ref:this.setMenuRef}))}})||w;var L,O,S,T,P,I=r(2652),A=r.n(I);function C(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function k(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let D=(0,h.Pi)(((P=class extends p.Component{constructor(...e){super(...e),C(this,"height",S,this),C(this,"width",T,this),this.throttled=!1,this.handleResize=()=>{this.height=this.contentBox.clientHeight,this.width=this.contentBox.clientWidth}}componentDidMount(){window.addEventListener("resize",this.handleResize),this.handleResize()}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}render(){const e=this.props.children;return p.createElement("div",{"data-test-id":"auto-sizer",ref:e=>this.contentBox=e,style:{height:"100%",width:"100%"}},e({height:this.height,width:this.width}))}}).propTypes={children:A().func.isRequired},S=k((O=P).prototype,"height",[m.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),T=k(O.prototype,"width",[m.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),L=O))||L;class N{constructor(){}disconnect(){}observe(){}}var R=r(73645),M=r(26964),j=r(96912);class F extends j.Z{init(){const e=window.nodeRequire("uxp").vulcan;this._dispatcher=e.dispatcher,this._control=e.control,this._message=e.message,this._ccLibProcessIdentifier=this._control.getInstalledAppsEx?this.ccLibProcessSAPCode:this.ccLibProcessSpecifier,this._getInstalledApps=this._control.getInstalledAppsEx?this._getInstalledAppsV2:this._getInstalledAppsV1}_getInstalledAppsV1(){return this._control.getInstalledApps()}_getInstalledAppsV2(){return this._control.getInstalledAppsEx()}isCCLibProcessInstalled(){return this._getInstalledApps().then((e=>!!e.find((e=>e.name===this._ccLibProcessIdentifier||e.sapCode===this._ccLibProcessIdentifier)))).catch((e=>{M.Z.log("Vulcan: isCCLibProcessInstalled check failed "+e)}))}isCCLibProcessRunning(){return this._getInstalledApps().then((e=>{const t=e.find((e=>e.name===this._ccLibProcessIdentifier||e.sapCode===this._ccLibProcessIdentifier));return!!t&&t.isRunning()})).catch((e=>{M.Z.log("Vulcan: isCCLibProcessRunning check failed "+e)}))}launchCCLibProcess(){return this._getInstalledApps().then((e=>{const t=e.find((e=>e.name===this._ccLibProcessIdentifier||e.sapCode===this._ccLibProcessIdentifier));return!!t&&t.launch()})).catch((e=>{M.Z.log("Vulcan: failed to launch CCLibProcess "+e)}))}addMessageListener(e,t){M.Z.log("Vulcan: Add Listener: "+e),this._dispatcher.addEventListener(this._vulcanPrefix+e,t)}removeMessageListener(e,t){M.Z.log("Vulcan: Remove Listener: "+e),this._dispatcher.removeEventListener(this._vulcanPrefix+e,t)}sendMessage(e,t){M.Z.log("Vulcan: Send Message: "+e),this._dispatcher.broadcastMessage(new this._message(this._vulcanPrefix+e,t))}}var Z=r(2315),B=r(75067),G=r(48346),U=r(73961),H=r(99386),z=r(72373),V=r(57806),Y=r(69834),W=r(33275),K=r(46931),$=r(74379),q=r(29219),X=r(76325),J=r(84824),Q=r(89526);const ee=["element"];function te(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function re(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?te(Object(r),!0).forEach((function(t){ne(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):te(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ne(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ie(){ie=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function oe(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function ae(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){oe(o,n,i,a,s,"next",e)}function s(e){oe(o,n,i,a,s,"throw",e)}a(void 0)}))}}const se={darwin:"Mac OS X",win10:"Windows"},ce=Object.entries?Object.assign({},...Object.entries(V.s4).map((([e,t])=>({[t]:e})))):{};class le{createRefEx(e){return{endpoint:e}}fetchAccessToken(e,t,r,n,i,o,a){return B.ZP.getAccessToken(n,t,r,o).then((e=>a(null,e)),a)}}class ue extends n.ZP{get supportsFileURLs(){const e=z.Z.getDebugValue("jsapiHybridDriver");return void 0===e||!e}constructor(e){super(e),this.useSVGPolyfill=!0,this.hasNativeControlStyles=!0,this.supportsFileSystem=!1,this.disableCustomDragImage=!0,this.supportsImagesInButtons=!1,this.hasUXPInputClickBug=!0,this.hasUXPInputSelectionRangeBug=!0,this.hasUXPScrollWidthBug=!0,this.hasUXPSelectBlurBug=!0,this.hasUXPWindowsCTRLClickBug=!0,this.hasUXPResizeBug=!0,this.useUXPDragImage=!0,this.AutoSizer=D,this.MutationObserver=N,this.Tooltip=R.Z,this.LibraryContentsView=G.Z,this.ElementDragId="application/cc-graphic",this.supportsAnimations=!1,this.hasUXPTransformBug=!0,this.hasUXPRevealElementBug=!0,this.autoScrollNotSupported=!0,this.videoElementsSupported=!1,this.supportsCSSListItem=!1,this.maxLocalStorageLength=4e3,this.nativeIds={},this.vulcanInterface=new F,this.IMSLib=new le,this._stockExtensionOpen=!1,this._isLoggedIn=!1,function(e){e.nodeRequire=e=>{if("fs"!==e)return require(e)};const t=Object.getOwnPropertyDescriptor(e.Element.prototype,"attributes");!e.IS_XD_TEST_ENVIRONMENT&&!e.IS_AI_TEST_ENVIRONMENT&&!e.IS_PS_TEST_ENVIRONMENT&&Object.defineProperty(e.Node.prototype,"attributes",{get(){const e=t.get.apply(this),r=[];for(let t=0;t<e.length;t++)r.push(e[t]),r[e[t].name]=e[t].value;return r}}),e.DOMParser?!e.IS_XD_TEST_ENVIRONMENT&&console.warn("UXP added window.DOMParser - can remove patch"):e.DOMParser=r(83462).a,e.btoa?!e.IS_XD_TEST_ENVIRONMENT&&!e.IS_PS_TEST_ENVIRONMENT&&console.warn("UXP added window.btoa - can remove patch"):(e.btoa=o,e.atob=i),e.document.visibilityState||(e.document.visibilityState="visible"),e.crypto=e.crypto||{},e.crypto.randomUUID||(e.crypto.randomUUID=d())}(e),this._hostEnvironment={appSkinInfo:{}},this._appInterface=window.nodeRequire("uxp").host,this._extensionId="com.adobe.cclibrariespanel",this._waitForInit=new Promise((e=>this._isReadyToRender=e))}init(){return this._appInterface.addEventListener(H.Z.THEME_COLOR_CHANGED_EVENT_UXP,(()=>{this._updateTheme().then((()=>this._notifyEventListeners(H.Z.THEME_COLOR_CHANGED_EVENT)))})),this.vulcanInterface.init(),Promise.all([this._loadResourceBundle(this._hostEnvironment.appUILocale),this._updateTheme()])}get cloudDriverConnector(){return ae(ie().mark((function e(){var t,r,n,i,o,a,s,c,l;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=window.nodeRequire("uxp"),r=t.licensing,e.next=3,r.isProductionEnv();case 3:if(!e.sent){e.next=7;break}e.t0="production",e.next=8;break;case 7:e.t0="staging";case 8:return n=e.t0,i=X.Z.getEnvironment(n),o=i.clientId,a=i.clientSecret,s=i.clientScope,c=()=>r.getAccessToken({clientId:o,clientSecret:a,clientScope:s,forceRefresh:!1}),e.next=13,c();case 13:return l=e.sent,e.abrupt("return",{env:n,token:l,refreshAccessToken:c});case 15:case"end":return e.stop()}}),e)})))}get ccLibrariesDriver(){return z.Z.getDebugValue("jsapiHybridDriver")?this.hybridDriver:new W.Ut((0,W.RX)(require("uxp").vulcan),{ignoreRenditionGrids:!0})}get hybridDriver(){return new W.B((0,W.RX)(require("uxp").vulcan),this.cloudDriverConnector)}shouldRenderPanel(){return this._isReadyToRender(),!1}renderPanel(e){U.render(Q.createElement(x,{ref:e=>this._panel=e}),e)}renderManager(e){var t=this;return ae(ie().mark((function n(){var i;return ie().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.resolve().then(r.bind(r,5425));case 2:return i=(i=n.sent).default||i,n.abrupt("return",new Promise((r=>{U.render(Q.createElement(i,{ref:e=>t._manager=e}),e,(()=>r(e)))})));case 5:case"end":return n.stop()}}),n)})))()}unmountPanel(e){U.unmountComponentAtNode(e),delete this._panel}unmountManager(e){U.unmountComponentAtNode(e),delete this._manager}getMountPoint(e,t="div"){const r=document.createElement(t);return e.appendChild(r),r}getUXPDialog(e){return this.getMountPoint(e,"dialog")}getHostEnvironment(){return this._hostEnvironment}_getClientOSName(){const e=window.nodeRequire("os");return se[e.platform()]||"Unknown Operation System"}getOSVersion(){const e=window.nodeRequire("os"),t=e.release();return t&&"darwin"===e.platform()?"10."+(parseInt(t.split(".")[0])-4):t}getFileForSaving(e){return window.nodeRequire("uxp").storage.localFileSystem.getFileForSaving(e)}getFileForOpening(e){return window.nodeRequire("uxp").storage.localFileSystem.getFileForOpening({types:e})}getDataFolder(){return new Promise(((e,t)=>{window.nodeRequire("uxp").storage.localFileSystem.getDataFolder().then((t=>e(t)),(e=>t(e)))}))}getEntryFromDataFolder(e){return new Promise(((t,r)=>{if(!e)return r("File Name is required");this.getDataFolder().then((n=>{n.getEntry(e).then((e=>t(e))).catch((()=>r("Unable to find entry")))}),(()=>r("Unable to fetch folder")))}))}getBase64DataFromImage(e){return new Promise((t=>{e?this.getEntryFromDataFolder(e.split("/").pop()).then((e=>{const r={format:window.nodeRequire("uxp").storage.formats.binary};e.read(r).then((e=>{t((0,q.mD)(e))})).catch((e=>this.debugLog.log(e)))}),(()=>t(void 0))):t(void 0)}))}openLibraryManagerWindow(){const e=window.nodeRequire("uxp").pluginManager;Array.from(e.plugins).find((e=>e.id===this.pluginId)).invokeCommand("ccLibrariesManager")}_getManager(){return this._managerInitPromise||(this._managerInitPromise=this._waitForInit.then((()=>(this._managerMountPoint=this.getUXPDialog(this._panelMountPoint.parentNode),this._managerMountPoint.addEventListener("close",(()=>K.Z.manager.reset())),this.renderManager(this._managerMountPoint))))),this._managerInitPromise}openDialogInManager(e,t,r){const n=()=>K.Z.manager.dialogManager.openDialog(e,t,r);this._getManager().then((e=>{e.addEventListener("load",n),e.addEventListener("close",(()=>e.removeEventListener("load",n))),e.showModal()}))}exec(e,t,r=[]){const n=`${e}.${t}`;return this.debugLog(`exec ${n} ${r}`),Promise.reject("not implemented")}execApp(e,t){return this.exec(this._hostEnvironment.appName,e,t)}showError(e){Z.Z.openToast("message",{message:e})}dispatchEvent(){return null}getPluginPath(){return null}getUserDataPath(){const e=window.nodeRequire("os");return this.isWindowsOS()?e.homedir().replace(/\\/g,"/")+"/AppData/Roaming":`${e.homedir()}/Library/Application Support`}getMyDocumentsPath(){return null}setPanelFlyoutMenu(e){this._flyoutMenu=e}setContextMenu(e){this._contextMenu=e}onContextMenu(e){const t=this._contextMenu;t&&t.length&&this._panel.showContextMenu(t,e.clientX,e.clientY)}setWindowTitle(e){this.debugLog("TODO: Implement setWindowTitle() - is this possible?",e)}resizeContent(e,t){this.debugLog("TODO: Implement resizeContent() - is this possible?",e,t)}launchInBrowser(e){window.nodeRequire("uxp").shell.openExternal(e)}closeExtension(){this.debugLog("TODO: Implement closeExtension()")}getRootPanelElement(){return document.getElementById("uxp-panel-root")}getRootManagerElement(){return document.getElementById("manager-root")}getPanelWidth(){const e=this.getRootPanelElement()||this.getRootManagerElement();return(null==e?void 0:e.clientWidth)||0}getPanelHeight(){const e=this.getRootPanelElement()||this.getRootManagerElement();return(null==e?void 0:e.clientHeight)||0}scrollBugFix(e,t,r=0){const n=e&&e._collectionView,i=n&&n._scrollingContainer;if(!i)return;const o=n.props.cellLayoutManager.getTotalSize().height,a=Math.max(0,o-t),s=Math.max(0,Math.min(a,i.scrollTop+r));i.scrollTop!==s&&(i.scrollTop=s,n._onScroll({target:i}))}registerElementNode(e,t){t&&e&&(this.nativeIds[e.id]=t._nativeId)}getNativeIdForElement(e){return this.nativeIds[e]}_getTheme(){return this._appInterface.getTheme?this._appInterface.getTheme().then((e=>ce[e])):Promise.resolve(H.Z.currentProduct.config.defaultTheme)}_updateTheme(){return this._getTheme().then((e=>{this._hostEnvironment.appSkinInfo.panelNamedTheme=e}))}_onUXPStockDialogClosed(e){const t=e.data;return new Promise(((e,r)=>{var n;t&&t.didFinish?e(re(re({},t.data),{},{elementRef:t.elementRef||(null===(n=t.data)||void 0===n?void 0:n.elementRef)})):r(t&&t.data)}))}openStockLicenseExtension(e){var t=this;let r=e.element,n=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,ee);return this._stockExtensionOpen?Promise.reject("Stock extension already open"):new Promise(((e,i)=>{this._stockExtensionOpen=!0;const o=window.nodeRequire("uxp").pluginManager,a=Array.from(o.plugins).find((e=>"com.adobe.cclibrariespanel"===e.id)).pluginPath+"extensions/stock-panel-licensing",s=o.createPlugin(a,o.PLUGIN_TYPE_FIRST_PARTY,{name:"Adobe Stock Licensing Plugin",allowDebugging:!0,enableDebugging:this._enableStockDebugging(a),allowCodeGenerationFromStrings:!0});o.addPlugin(s,!0);const c=s.runtime;c.addEventListener(o.RUNTIME_INITIALIZE,(()=>{c.registerUxpModule("vulcan",(()=>window.nodeRequire("uxp").vulcan)),c.registerUxpModule("licensing",(()=>window.nodeRequire("uxp").licensing)),c.registerUxpModule("host",(()=>window.nodeRequire("uxp").host)),c.registerCoreModule("cclibraries",(()=>new Y.Z)),this.additionalStockLicenseCoreModules&&this.additionalStockLicenseCoreModules.forEach((({name:e,type:t})=>c.registerCoreModule(e,(()=>"window-global"===t?window[e]:window.nodeRequire(e)))))})),c.load(),c.invokeCommand("adobeStockLicensingPlugin",(()=>{const e=re({},n);return r&&(e.elementRef=r.getLegacyReference&&r.getLegacyReference(),e.elementType=r.type,e.elementName=r.name),e})()).then(function(){var r=ae(ie().mark((function r(n){return ie().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,c.unload();case 2:o.removePlugin(s),"reasonCanceled"===n?i(n):e(t._onUXPStockDialogClosed(n));case 4:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}())})).finally((()=>{this._stockExtensionOpen=!1}))}isWindowsOS(){return new RegExp(/^win/).test(window.nodeRequire("uxp").host.platform)}isLoggedIn(){return this._isCheckingUser||(this._isCheckingUser=!0,window.nodeRequire("uxp").licensing.checkIfUserIsValid().then((e=>{this._isCheckingUser=!1,this._isLoggedIn!==e&&(this._isLoggedIn=e,this._notifyEventListeners(H.Z.PROFILE_CHANGE_EVENT_ID))}))),this._isLoggedIn}getDragFileList(e){var t=this;return ae(ie().mark((function r(){var n,i;return ie().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.isWindowsOS()?"\\":"/",i=null==e?void 0:e.uxpEntries.map((e=>e.nativePath)),r.abrupt("return",Promise.all(i.map((e=>B.ZP.getFileSize(e).then((t=>({path:e,size:t,name:e.split(n).pop()})))))));case 3:case"end":return r.stop()}}),r)})))()}get fs(){return require("fs")}hideDebugFlyoutMenu(e){try{return!this.fs.lstatSync(`file:${this.getGlobalRoot()}${e}`).isFile()}catch(e){return this.debugLog(e),!0}}updateHostInfo(e){const t=this.getHostEnvironment();return e?(t.appUILocale=n.nD.includes(e)?e:"en_US",this._loadResourceBundle(t.appUILocale).then((()=>{J.ZP.setStringMap(this._resourceBundle)}))):Promise.resolve()}_enableStockDebugging(e){try{return this.fs.lstatSync(`file:${e}/debug.json`).isFile()}catch(e){return this.debugLog(e),!1}}findLocaleMatch(e,t={}){return e&&(t[e]||this.supportedLocales.find((t=>t.startsWith(e)))||this.supportedLocales.find((t=>t.startsWith(e.substr(0,2)))))||"en_US"}get colorProfile(){return $.wo.MONITOR}}},3458:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>de});var n,i,o,a,s=r(50265),c=r(7218),l=r(99386),u=r(84824),d=r(46903),p=r(26964),h=r(82490),f=r(89526),m=r(2652),g=r.n(m),v=r(62631),y=r(73645),b=r(76485);let _=(0,v.Pi)(((i=class extends f.Component{constructor(...e){super(...e),this._setTooltipNode=e=>{this._tooltipNode=e}}componentDidMount(){b.Z.registerFeatureTooltip(this.props.featureId,this._tooltipNode)}componentDidUpdate(e){e.featureId!==this.props.featureId&&(b.Z.unregisterFeatureTooltip(e.featureId,this._tooltipNode),b.Z.registerFeatureTooltip(this.props.featureId,this._tooltipNode))}componentWillUnmount(){b.Z.unregisterFeatureTooltip(this.props.featureId,this._tooltipNode)}render(){return f.createElement("div",{ref:this._setTooltipNode},this.props.children)}}).propTypes={children:g().node,featureId:g().string,className:g().string},n=i))||n,E=(0,v.Pi)(((a=class extends f.Component{render(){return this.props.featureId&&!this.props.disable&&b.Z.getAppSetting("featureTooltipsEnabled")?f.createElement(_,{featureId:this.props.featureId,className:this.props.className},this.props.children):f.createElement(y.Z,this.props)}}).propTypes={children:g().node,featureId:g().string,content:g().oneOfType([g().string,g().array]),disable:g().bool,className:g().string},o=a))||o;var w=r(89368),x=r.n(w),L=r(69377),O=r(25585),S=r(53849),T=r(75067),P=r(93443);class I{constructor(e){this._onLibraryChange=(e,t,r)=>{"assetsPanelDismissMissingFontsEditor"!==e&&"application/vnd.adobe.element.missingfont+dcx"!==r||this._reportChanged()},this._api=e,this._collapsed=!0,this._changeAtom=new s.Atom("missingFontChange",(()=>this._api.addAssetsChangeListener(this._onLibraryChange)),(()=>this._api.removeAssetsChangeListener(this._onLibraryChange)))}_reportChanged(){this._reportChangedTimeout||(this._reportChangedTimeout=setTimeout((()=>{delete this._reportChangedTimeout,this._changeAtom.reportChanged()}),2e3))}_wrapMissingFont(e){if(e)return new P.Z(e)}get missingFonts(){return this._changeAtom.reportObserved(),this._api.getMissingFonts().map((e=>this._wrapMissingFont(e)))}get collapsed(){return this._changeAtom.reportObserved(),this._collapsed}toggleCollapsed(){this._collapsed=!this._collapsed,this._changeAtom.reportChanged()}}var A,C,k=r(51461),D=r(68895),N=r(16993),R=r(46931),M=r(69233),j=r(89910),F=r.n(j),Z=r(24937);let B=(0,v.Pi)(((C=class extends f.Component{render(){return f.createElement("div",{className:"application-dialog-container","data-test-id":"application-dialog-container"},f.createElement(Z.o,{value:R.Z.panel,style:{fontFamily:"inherit"}},f.createElement(F(),null,this.props.children)))}}).propTypes={children:g().node},A=C))||A;var G,U,H,z,V,Y,W=r(73961),K=r(74379),$=r(76792),q=r(89526);function X(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function J(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?X(Object(r),!0).forEach((function(t){Q(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Q(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ee.apply(this,arguments)}function te(){te=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function re(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function ne(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){re(o,n,i,a,s,"next",e)}function s(e){re(o,n,i,a,s,"throw",e)}a(void 0)}))}}function ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function oe(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function ae(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const se={"zh-Hans":"zh_CN",zu:l.Z.TEST_LOCALE},ce={light:"lighter"},le={"New Library":["create"],Library:["delete"],Group:["create","rename","delete","delete-with-assets","order"],Element:["add","add-note","add-to-group","rename","use","update-all","accept-update","order","edit-in-source-document","reveal-in-library","view-in-source-document","publish-to-source-library"],Search:["input"],Manage:["publish","unpublish","share","toggle-off","toggle-on","update"],Navigation:["browse-libraries","browse-org"],"Root View":["browse-libraries"],"Library Panel":["select-document-assets","select-library","select-search-type","root-view","deselect-filter","select-filter","expand-group","collapse-group","view-change","sort-change"],"Root Search":["input"],Toast:["publish-now"],Launch:["open-manager"]},ue={"add-to-group":["agg"],"update-all":[void 0],"accept-update":[void 0]};let de=(G=class extends c.Z{static check(){try{require("xd")}catch(e){return!1}return!0}constructor(e=window){super(e),this.type="XD",this.pluginId="CC_LIBS",this.developerMode=!1,this.disableAPILoggingByDefault=!0,this._documentChangeAtom=new s.Atom("xdDocumentChange"),this._settingsChangeAtom=new s.Atom("xdSettingsChange"),this._colorProfileChangeAtom=new s.Atom("xdColorProfileChange"),this._moduleCache={},this.Tooltip=E,this.hasUXPScrollZIndexBug=!0,oe(this,"_isCoeditorPublishing",U,this),this._updateCloudAssetId=e=>{this._cloudAssetId=e},this._updateCloudStorageWritable=e=>{this._hasWritableStorage=e},this._handleXDMigrationDetection=()=>(0,d.JT)(T.ZP.documentAssetsContainer),this._linkListeners={},this._libraryNameChangeDisposers=new Map,this._libraryListChangeDisposers=new Map,oe(this,"_cloudAssetId",H,this),oe(this,"_hasWritableStorage",z,this),oe(this,"_isPaidUser",V,this),this._updateIsPaidUser=()=>{this._isPaidUser=this._XDCCLibrariesAPIs.isPaidUser()},oe(this,"_isPreviewActive",Y,this),this._coeditorPublishingHandler=()=>{this._isCoeditorPublishing=!0,this.dismissToastMessage((0,u.Iu)("PENDING_UPDATE_TOAST_MESSAGE"),(0,u.Iu)("PENDING_UPDATE_TOAST_ACTION_LABEL"))},this._coeditorFinishPublishingHandler=()=>{this._isCoeditorPublishing&&(T.ZP.publishedDocumentLibrary?function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),1!==o.length);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e)||function(e,t){if(e){if("string"==typeof e)return ie(e,1);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ie(e,1):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(T.ZP.syncStateCompleteListener(T.ZP.publishedDocumentLibrary,T.pA.DOWNLOADING))[0].then((()=>this._isCoeditorPublishing=!1)):this._isCoeditorPublishing=!1)};const t=this.application,r=t.locale,n=this.findLocaleMatch(r,se),i=t.config.appVersion;this._hostEnvironment={appName:"SPRK",appId:"SPRK",appVersion:i,appLocale:n,isAppOnline:!0,appUILocale:n,appSkinInfo:{panelBackgroundColor:{color:{alpha:255,green:245,blue:245,red:245}}}},k.ZP.setEnvironment({productVersion:i}),this._missingFontsModel=new I(this._XDCCLibrariesAPIs),this._waitForInit.then((()=>{this._XDCCLibrariesAPIs.addCoeditorPublishStartListener(this._coeditorPublishingHandler),this._XDCCLibrariesAPIs.addCoeditorPublishEndListener(this._coeditorFinishPublishingHandler),this._isCoeditorPublishing=!!this._XDCCLibrariesAPIs.isCoeditorPublishing()}))}get colorProfile(){var e,t;return this._colorProfileChangeAtom.reportObserved(),"srgb"===(null===(e=(t=this._XDCCLibrariesAPIs).getColorProfile)||void 0===e?void 0:e.call(t))?K.wo.SRGB:K.wo.MONITOR}get screenColorProfile(){var e,t;return this._colorProfileChangeAtom.reportObserved(),null===(e=(t=this._XDCCLibrariesAPIs).getScreenColorProfile)||void 0===e?void 0:e.call(t)}_waitForXD(){var e=this;return ne(te().mark((function t(){var r;return te().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._XDCCLibrariesAPIs.waitForXD();case 2:e._updateCloudAssetId(e._XDCCLibrariesAPIs.getPermanentCloudUrn()),e._updateCloudStorageWritable(e._XDCCLibrariesAPIs.isCloudStorageWritable()),e._XDCCLibrariesAPIs.addPermanentCloudUrnListener(e._updateCloudAssetId),e._XDCCLibrariesAPIs.addCloudStorageWritableListener(e._updateCloudStorageWritable),e._XDCCLibrariesAPIs.addCanvasMouseDownListener((()=>e._onCanvasClick())),e._updateIsPaidUser(),e.addIsPaidUserListener(e._updateIsPaidUser),(r=e._host.docInfo).on(r.DOC_ID_CHANGE,(()=>{p.Z.log(`Document id changed: ${r.docId}`),(0,L.ij)(),e._updateCloudAssetId(void 0),e._XDCCLibrariesAPIs.addPermanentCloudUrnListener(e._updateCloudAssetId),e._documentChangeAtom.reportChanged()})),r.on(r.USER_CHANGED_NAME,(()=>{e._documentChangeAtom.reportChanged(),T.ZP.publishedDocumentLibrary&&T.ZP.publishedDocumentLibrary.isWritable&&(T.ZP.publishedDocumentLibrary.name=e.documentName)})),e._XDCCLibrariesAPIs.registerChangeCallback&&e._XDCCLibrariesAPIs.registerChangeCallback("settingsChange",(()=>{e._settingsChangeAtom.reportChanged()})),e._XDCCLibrariesAPIs.addColorProfileChangeListener&&e._XDCCLibrariesAPIs.addColorProfileChangeListener((()=>{e._colorProfileChangeAtom.reportChanged()}));case 14:case"end":return t.stop()}}),t)})))()}notifyProductInitialized(){this._XDCCLibrariesAPIs.initLibrariesApis(this.exports.ccLibrariesAPI)}init(){return this.vulcanInterface.init(),Promise.all([super.init(),this._waitForXD()])}get exports(){return{panels:{ccLibrariesPanel:{show:e=>{this._panel||this._waitForInit.then((()=>{this._panelMountPoint=this.getMountPoint(e.node),this.renderPanel(this._panelMountPoint)}))},hide:()=>{this._panelMountPoint&&(this.unmountPanel(this._panelMountPoint),this._panelMountPoint.remove(),delete this._panelMountPoint)}},ccLibrariesManager:{show:e=>{this._manager||this._waitForInit.then((()=>{this._managerMountPoint=this.getMountPoint(e.node),this.renderManager(this._managerMountPoint)}))},hide:()=>{this._managerMountPoint&&(this.unmountManager(this._managerMountPoint),this._managerMountPoint.remove(),delete this._managerMountPoint)}}},ccLibrariesAPI:{getMultipleOrderStringsBetween:O.Tg,revealAssets:e=>this.revealAssets(e),revealDocumentAssetsView:()=>T.ZP.currentLibrary=T.ZP.documentAssetsContainer,revealRootView:()=>N.Z.showRootView(),setItemViewMode:e=>N.Z.setViewState(e),canEditElementInSource:e=>this.canEditElementInSource(e),editElementInSource:e=>this.editElementInSource(e),resolveElementReference:e=>T.ZP.resolveCachedElementReference(e),getColorOrGradientFromElement:h.D3,getTextStyleDataFromElement:h.fK,getLibraryById:e=>T.ZP.getLibraryById(e),getLibraries:()=>T.ZP.libraries,addLinkStateListener:(e,t)=>this.addLinkStateListener(e,t),removeLinkStateListener:(e,t)=>this.removeLinkStateListener(e,t),registerLibrary:(e,t)=>this.registerLibrary(e,t),addLibraryListChangedListener:e=>this.addLibraryListChangedListener(e),removeLibraryListChangedListener:e=>this.removeLibraryListChangedListener(e),hasLibrariesLoadingError:()=>T.ZP.librariesInitError,addLibraryNameChangedListener:(e,t)=>this.addLibraryNameChangedListener(e,t),removeLibraryNameChangedListener:e=>this.removeLibraryNameChangedListener(e),waitForInitialLoad:()=>T.ZP.waitForInitialLoad(),getServiceInfo:()=>T.ZP.getServiceInfo(),shouldOfferDelimitedNamesConversion:this._handleXDMigrationDetection,canRenameElements:e=>(0,$.rL)(e),renameElement:e=>{e&&(0,$.rL)([e])&&R.Z.panel.viewManager.startRename(e)},getSourceId:d.a3}}}openDialogInManager(e,t,r){this.openLibraryManagerWindow(),R.Z.manager.dialogManager.openDialog(e,t,r)}openApplicationDialog(e,t){if(this._panelMountPoint)return this._XDCCLibrariesAPIs.waitForModalDialogClosed().then((()=>{const r=this.getUXPDialog(this._panelMountPoint.parentNode);return this._renderApplicationDialog(e,r,t),r.showModal().catch((e=>{e.code===r.REJECTION_REASON_NOT_ALLOWED&&console.error("App does not allow showing dialog, e.g. may already be another dialog")}))}))}_renderApplicationDialog(e,t,r={}){const n=R.Z.panel.dialogManager.dialogs[e];t.addEventListener("close",(()=>{W.unmountComponentAtNode(t),document.body.removeChild(t)})),W.render(q.createElement(B,null,q.createElement(n,ee({},r,{close:()=>{t.close()}}))),t)}_onCanvasClick(){N.Z.clearAllSelections(),this._notifyEventListeners("canvasClick")}addLinkStateListener(e,t){if(!e||!t||!T.ZP.documentAssetsContainer||this._linkListeners[e]&&this._linkListeners[e].get(t))return;const r=T.ZP.documentAssetsContainer.getElementById(e);if(!r)return;const n=(0,s.autorun)((()=>t(r.linkState)));this._linkListeners[e]=this._linkListeners[e]||new Map,this._linkListeners[e].set(t,n)}removeLinkStateListener(e,t){if(!e||!t)return;const r=this._linkListeners[e];if(r){const n=r.get(t);r.delete(t),n&&n(),0===r.size&&delete this._linkListeners[e]}}connectProductInterface(e){this.disconnectProductInterface(),this._handlers={dlElementDropped:((t,r=!0,n)=>i=>{const o=i&&i.data;if(o||!r){const r=e[t](o);n&&n(r)}})("reportElementDropped",!1)};for(const e in this._handlers)this.addEventListener(e,this._handlers[e])}disconnectProductInterface(){if(this._handlers){for(const e in this._handlers)this.removeEventListener(e,this._handlers[e]);delete this._handlers}}registerLibrary(e,t){(0,s.when)((()=>T.ZP.initialized&&T.ZP.getLibraryById(e)),(()=>t(e)))}addLibraryNameChangedListener(e,t){if(this._libraryNameChangeDisposers.get(e))return;const r=T.ZP.getLibraryById(e);this._libraryNameChangeDisposers.set(e,(0,s.reaction)((()=>r.name),(()=>t(e)))),(0,s.when)((()=>T.ZP.initialized&&T.ZP.getLibraryById(e)),(()=>t(e)))}removeLibraryNameChangedListener(e){const t=this._libraryNameChangeDisposers.get(e);t&&(t(),this._libraryNameChangeDisposers.delete(e))}addLibraryListChangedListener(e){this._libraryListChangeDisposers.get(e)||this._libraryListChangeDisposers.set(e,(0,s.reaction)((()=>T.ZP.libraries),e))}removeLibraryListChangedListener(e){const t=this._libraryListChangeDisposers.get(e);t&&(t(),this._libraryListChangeDisposers.delete(e))}revealAssets(e){(0,s.when)((()=>T.ZP.areLibrariesLoaded),(()=>{const t=T.ZP.documentAssetsContainer;if(t){const r=e.map((e=>t.getElementById(e)));S.Z.revealElements(r)}}))}get menuItemHeight(){return 32}debugLog(e){super.debugLog(e);const t=window.nodeRequire("xd").host.log;return t.debug(t.CATEGORY_CC_LIBRARIES,e),!0}getUserDataPath(){return null}getLayerInfo(){return Promise.resolve(this.getSelection())}_xdRequire(e){if(!this._moduleCache[e]){const t=window.nodeRequire("xd").host;this._moduleCache[e]=t.require(e)}return this._moduleCache[e]}get _host(){return window.nodeRequire("xd").host}get cloudAssetId(){return this._cloudAssetId}get canSaveDocToCloud(){return this._hasWritableStorage&&this.hasAvailableStorage}get hasAvailableStorage(){const e=this._XDCCLibrariesAPIs.getCloudStorageData(),t=e.quotaTotal;return e.quotaUsed<t}waitForCloudAssetId(){return new Promise((e=>(0,s.when)((()=>this.cloudAssetId),e)))}get documentName(){return this._documentChangeAtom.reportObserved(),this._host.docInfo&&this._host.docInfo.name}get documentId(){return this._documentChangeAtom.reportObserved(),this._host.docInfo&&this._host.docInfo.docId}get _XDCCLibrariesAPIs(){return this._xdRequire("library/api/CCLibrariesApis")}get documentType(){return this._XDCCLibrariesAPIs.getDocumentMimeType()}get documentSharingRole(){return this._host.docInfo&&this._host.docInfo.cloudSharingRole}get canEditDocument(){return"owner"===this.documentSharingRole||"editor"===this.documentSharingRole}get isSavedCloudDocument(){return this._XDCCLibrariesAPIs.isCloudDocNamed()}get isSyncedCloudDocument(){return!!this.cloudAssetId}showShareSheet(e,t="share",r=[]){if("invite"===t&&(t="share"),this.openLibraryManagerWindow(),(0,d.$_)(e)){const t=(0,d.Uu)(e),n=t&&t.name;this._XDCCLibrariesAPIs.toggleShareSheet(!0,e.assetId,e.name,"share",(e=>{R.Z.manager.toastManager.openToast("message",{variant:e.state,message:(0,O.Wf)(e)})}),n,r)}else this._XDCCLibrariesAPIs.toggleShareSheet(!0,e.assetId,e.name,t,(e=>{R.Z.manager.toastManager.openToast("message",{variant:e.state,message:(0,O.Wf)(e)})}),void 0,r)}openLibraryManagerWindow(){this.isLibraryManagerWindowOpen()||k.ZP.reportEvent("Manager","Manage","render","library-manager"),this._XDCCLibrariesAPIs.toggleCCLibraryManager(!0)}isLibraryManagerWindowOpen(){return this._XDCCLibrariesAPIs.isCCLibraryManagerVisible()}getDocumentAssetsContainer(){return this._documentChangeAtom.reportObserved(),this._XDCCLibrariesAPIs.getCurrentDocumentLibrary()}getLinkedLibraryIdFromDocument(){return this._XDCCLibrariesAPIs.getPublishedDocumentLibraryId()}linkDocumentToLibrary(e){e||this.notifyPublishEnd(),this._XDCCLibrariesAPIs.setPublishedDocumentLibraryId(e)}get documentPath(){const e=window.nodeRequire("xd").host.docInfo;return e.filePath||e.name&&`orphan/${e.name}`}isLegacyDocumentLinkDeprecated(){return this._XDCCLibrariesAPIs.isDocumentLinkingDeprecated?this._XDCCLibrariesAPIs.isDocumentLinkingDeprecated():b.Z.isXDFeatureFlagEnabled("documentLinkingDeprecation")}get isPaidUser(){return this._isPaidUser}handleUpgradeButtonClicked(){this._XDCCLibrariesAPIs.handleUpgradeButtonClicked()}addIsPaidUserListener(e){this._XDCCLibrariesAPIs.addIsPaidUserListener(e)}removeIsPaidUserListener(e){this._XDCCLibrariesAPIs.removeIsPaidUserListener(e)}getOrderInGroup(e,t){return t=t._group||t,this._XDCCLibrariesAPIs.getOrderInGroup(e.id,t)}setOrderInGroup(e,t,r){t=t._group||t,this._XDCCLibrariesAPIs.setOrderInGroup(e.id,t,r);const n={name:"updateElement",library:e.library,data:{groups:[t],id:e.id},baseData:{groups:e.groups}};k.ZP.reportAPIEvent(n),k.ZP.clearExtraEventMetrics("updateElement")}_getGroupAnalyticsProperties(e){return{libraryID:e.library.id,libraryElementCount:e.library.elements.length,libraryGroupCount:e.library.getGroups().length,groupID:e.id,groupClassifierName:e.classifierName,groupLevel:(0,M.RH)(e)}}createGroup(e,t,r){const n=this._XDCCLibrariesAPIs.createGroup(e,t,r),i={name:"createGroup",data:{id:n.id},library:n.library};return k.ZP.reportAPIEvent(i),k.ZP.clearExtraEventMetrics("createGroup"),n}deleteGroup(e,t){const r={name:"removeGroup",data:{id:e.id},library:e.library},n=k.ZP.getExtraEventMetrics("removeGroup");k.ZP.setExtraEventMetrics("removeGroup",J(J({},n),{},{includeContents:t,groupLevel:(0,M.RH)(e)})),this._XDCCLibrariesAPIs.deleteGroup(e,t),k.ZP.reportAPIEvent(r),k.ZP.clearExtraEventMetrics("removeGroup")}renameGroup(e,t){this._XDCCLibrariesAPIs.renameGroup(e,t);const r={name:"updateGroup",data:{id:e.id,name:t},baseData:{name:e.name,id:e.id},library:e.library};k.ZP.reportAPIEvent(r),k.ZP.clearExtraEventMetrics("updateGroup")}reorderGroup(e,t){const r=k.ZP.getExtraEventMetrics("updateGroup");k.ZP.setExtraEventMetrics("updateGroup",J(J({},r),{},{groupLevel:(0,M.RH)(e)}));const n={name:"updateGroup",library:e.library,data:{name:e.name},baseData:{name:e.name}};this._XDCCLibrariesAPIs.reorderGroup(e,t),k.ZP.reportAPIEvent(n),k.ZP.clearExtraEventMetrics("updateGroup")}reparentGroup(e,t){this._XDCCLibrariesAPIs.reparentGroup(e,t)}beginOperation(e){this._XDCCLibrariesAPIs.beginOperation(e)}endOperation(){this._XDCCLibrariesAPIs.endOperation()}get application(){return window.nodeRequire("xd").host.app}get vulcan(){return this._xdRequire("vulcan")}get psdUtils(){return this._xdRequire("third_party/psd-lib-js/psd-lib")}get fontUtils(){return this._xdRequire("FontUtils")}reportSDMEvent(e){this._shouldReportToXDAnalytics(e)&&this._reportEventToXDAnalytics(JSON.stringify(e))}_reportEventToXDAnalytics(e){this._xdRequire("library/CCLibrariesAnalyticsUtil").reportCCLibraryActionAnalyticsEvent(e)}_shouldReportToXDAnalytics(e){if(e){const t=e["event.subcategory"],r=e["event.subtype"];if((le[t]||[]).includes(r)){if("Element"===t){const t=ue[r];return t?t.includes(e["event.value"]):Boolean(e["content.mimetype"])}return!0}}return!1}get textEditModel(){return this._xdRequire("ui/UIModels").textEditModel}get TextPropertyUtils(){return this._xdRequire("ui/properties/TextPropertyUtils")}addTextEditListener(e){const t=this.textEditModel,r=this._xdRequire("ui/text/TextEditModel");t.addListener(r.TEXT_STYLE_UPDATE,e),t.addListener(r.TEXT_EDIT_MODE_CHANGE,e),t.addListener(r.TEXT_PROPERTY_CHANGE,e)}removeTextEditListener(e){const t=this.textEditModel,r=this._xdRequire("ui/text/TextEditModel");t.removeListener(r.TEXT_STYLE_UPDATE,e),t.removeListener(r.TEXT_EDIT_MODE_CHANGE,e),t.removeListener(r.TEXT_PROPERTY_CHANGE,e)}isCanvasTextEditInProgress(){return this.textEditModel&&this.textEditModel.editInProgress&&!this.textEditModel.isDecoration}hasTextEditSelection(){const e=this.textEditModel;return this.isCanvasTextEditInProgress()&&e.paddedSelection&&e.paddedSelection.length>0}get featureTooltipProvider(){return this._xdRequire("library/CCLibrariesFeatureTooltipProvider")}registerFeatureTooltip(e,t){this.featureTooltipProvider&&this.featureTooltipProvider.registerView(e,t)}unregisterFeatureTooltip(e,t){this.featureTooltipProvider&&this.featureTooltipProvider.unregisterView(e,t)}getAppSetting(e){if(this._settingsChangeAtom.reportObserved(),this._XDCCLibrariesAPIs.getAppSetting)return this._XDCCLibrariesAPIs.getAppSetting(e)}get renditionService(){return window.nodeRequire("xd").renditionService}get Artboard(){return this._xdRequire("Artboard")}get Color(){return this._xdRequire("Color")}get Group(){return this._xdRequire("Group")}get Line(){return this._xdRequire("Line")}get LinearGradient(){return this._xdRequire("LinearGradientFill")}get RadialGradient(){return this._xdRequire("RadialGradientFill")}get SymbolGroup(){return this._xdRequire("SymbolGroup")}get Text(){return this._xdRequire("Text")}get Rectangle(){return this._xdRequire("Rectangle")}get BitmapFill(){return this._xdRequire("BitmapFill")}get GraphicNode(){return this._xdRequire("GraphicNode")}get documentLibraryConstants(){return this._xdRequire("library/DocumentLibraryConstants")}containerTypeAllowsEditingContents(e){return this._xdRequire("artwork/SceneNodeUtil").containerTypeAllowsEditingContents(e)}isInsideRepeatGridOrSymbolGroup(e){return this._xdRequire("artwork/SceneNodeUtil").isInsideRepeatGridOrSymbolGroup(e)}isEffectivelyEmptyGroup(e){return this._xdRequire("artwork/SceneNodeUtil").isEffectivelyEmptyGroup(e)}swapNodes(e,t){const r=this._xdRequire("artwork/SceneNodeUtil");r.centerImageInMask(e,t,t.localBounds,!0),r.replaceNodePreservingInteractions(e,t)}isContainer(e){return this._xdRequire("artwork/SceneNodeUtil").isContainer(e)}get _selectionModel(){return this._xdRequire("artwork/Artwork").selectionModel}getSelection(){return this._selectionModel.selection}setSelection(e){this._selectionModel.selection=e}addSelectionListener(e){const t=this._xdRequire("artwork/SelectionModel"),r=this._xdRequire("artwork/Artwork").selectionModel;r.addListener(t.SELECTION_CHANGE,e),r.addListener(t.ARTWORK_CHANGE,e)}removeSelectionListener(e){const t=this._xdRequire("artwork/SelectionModel"),r=this._xdRequire("artwork/Artwork").selectionModel;r.removeListener(t.SELECTION_CHANGE,e),r.removeListener(t.ARTWORK_CHANGE,e)}addInviteEventListener(e){this._XDCCLibrariesAPIs.addShareSheetInviteSentListener(e)}removeInviteEventListener(e){this._XDCCLibrariesAPIs.removeShareSheetInviteSentListener(e)}get editContextModel(){return this._xdRequire("artwork/Artwork").editContextModel}findContainingArtboardsForSelection(e){return this._xdRequire("artwork/ArtboardUtil").findContainingArtboardsForSelection(e)}get progressController(){return{incrementProgressValue:()=>{},isProgressCancelRequested:()=>!1}}handleDroppedStockElement(e){return this.recordHistory("DL_ADD_IMAGE_TO_DOC_AS_LINKED",(()=>{const t=e.currentlyDraggedElement,r=e.currentlyDraggedElementPromise,n=e.asset,i={height:n.comp_height,width:n.comp_width};let o=e.dragDropEvent,a=o.x,s=o.y;a+=i.width/2,s+=i.height/2;const c={x:a,y:s};return(0,h.is)(t,r,i,c)}))}AIToNode(e){return e?this._XDCCLibrariesAPIs.tempAIToNode(this.normalizePath(e)):Promise.reject("No file given for AI conversion")}SVGToNode(e){return e?this._xdRequire("artwork/Artwork").linkedGraphicRegistry._getXDAssetDataForSVG({assetPath:this.normalizePath(e)}).then((e=>!e||e.isSVGOrAGCImportError||!e.node||this.isEffectivelyEmptyGroup(e.node)?Promise.reject("Error converting SVG into XD node"):e.node)):Promise.reject("No file given for SVG conversion")}parseAGCForImport(e,t){if(!e)return Promise.reject("No document given for AGC conversion");const r=this._xdRequire("importers/ImportUtil");return(t?r.importAGCComponentFromCCLib:r.importAGCNodeFromCCLib)(e,this.progressController).then((e=>!e||e.failedItems.length?Promise.reject("Error converting AGC Document into XD node"):{node:e.importedArt[0],metadata:e}))}assignBlurToNode(e){return this._xdRequire("library/LibraryVectorUtils").assignBlurForLoadingVector(e,e.localBounds)}normalizePath(e){return x().normalize(e)}_getTempPath(e){const t=this._xdRequire("fs");return this._tempDir&&t.existsSync(this._tempDir)||(this._tempDir=this._xdRequire("FileUtil").makeTemporaryFolder(),p.Z.log(`Created temp dir: ${this._tempDir}`)),`${this._tempDir}${e}`}_writeTextFile(e,t){const r=this._xdRequire("fs"),n=this._getTempPath(e);return r.writeFile(n,t).then((()=>n))}deleteFile(e){return this._xdRequire("fs").deleteFileOrFolderSync(e)}serializeCanonicalComponent(e,t){if(!e)return Promise.reject("No XD symbolId given for serialization");if(!t)return Promise.reject("No fileName given for serialized component");const r=b.Z.isXDFeatureFlagEnabled("newFileFormat"),n=this._XDCCLibrariesAPIs.getPrimaryRepresentationForComponent(e,!0);if(r?!n.serializedSymbol:!n.agcDocument)return Promise.reject("Error getting AGC for component");const i=r?n.serializedSymbol:JSON.stringify(n.agcDocument);return this._writeTextFile(t,i).then((e=>({filePath:e,dependentAssetIds:n.dependentAssetIds,imageData:n.imageData}))).catch((()=>Promise.reject("Error writing component Document to file")))}canonicalComponentToSVG(e,t){return e?t?this._XDCCLibrariesAPIs.getSVGRepresentationForComponent(e).then((e=>this._writeTextFile(t,e))).catch((()=>Promise.reject("Error converting XD symbolId into SVG"))):Promise.reject("No fileName given for the converted SVG"):Promise.reject("No XD symbolId given for SVG conversion")}canonicalComponentToPNG(e,t){if(!e)return Promise.reject("No XD symbolId given for PNG conversion");if(!t)return Promise.reject("No fileName given for the converted PNG");const r=this._getTempPath(t);return this._XDCCLibrariesAPIs.getPNGRepresentationForComponent(e,r).then((()=>r))}nodeGuidsToAGC(e,t){if(!e||!e.length)return Promise.reject("No XD node guids given for AGC conversion"+e);if(!t)return Promise.reject("No fileName given for the converted AGC");const r=this._XDCCLibrariesAPIs.getPrimaryRepresentationForSceneNodeGuids(e).agcDocument;return r?this._writeTextFile(t,JSON.stringify(r)).then((e=>({filePath:e}))).catch((()=>Promise.reject("Error writing component AGC Document to file"))):Promise.reject("Error getting AGC for component")}nodeGuidsToSVG(e,t){return e&&e.length?t?this._XDCCLibrariesAPIs.getSVGRepresentationForSceneNodeGuids(e).then((e=>this._writeTextFile(t,e))).catch((()=>Promise.reject("Error converting XD guids into SVG"))):Promise.reject("No fileName given for the converted SVG"):Promise.reject("No XD node guids given for SVG conversion")}nodeGuidsToPNG(e,t){if(!e||!e.length)return Promise.reject("No XD node guids given for PNG conversion");if(!t)return Promise.reject("No fileName given for the converted PNG");const r=this._getTempPath(t);return this._XDCCLibrariesAPIs.getPNGRepresentationForSceneNodeGuids(e,r).then((()=>r))}characterStyleToPNG(e,t){if(!e)return Promise.reject("No XD character style for PNG conversion");if(!t)return Promise.reject("No fileName given for the converted PNG");const r=this._getTempPath(t);return this._XDCCLibrariesAPIs.getPNGRepresentationForCharacterStyle(e,r).then((()=>r))}getContextForNode(e){return this._xdRequire("artwork/EditContextModel").getContextForNode(e)}getSizeforFile(e,t){return this._xdRequire("library/LibraryVectorUtils").getSizeForAIFile(e,t,{})}recordHistory(e,t){return new Promise((r=>{const n=(0,u.Iu)(e),i=this._xdRequire("artwork/Artwork");i.history.startRecord(n);const o=e=>(e&&p.Z.log(e),i.history.endRecord(),r()),a=t();return a?a.then(o,o):o()}))}applyColorToSelection(e,t,r){var n;r.library.isDocumentAssets?this._XDCCLibrariesAPIs.applyColorFromDocumentAsset(e,t,r.id):this._XDCCLibrariesAPIs.applyColorFromCCLibrariesElement(e,t,null===(n=r.getReference)||void 0===n?void 0:n.call(r))}applyCharacterStyleToSelection(e,t){t.library.isDocumentAssets?this._XDCCLibrariesAPIs.applyCharacterStyleFromDocumentAsset(e,t.id):this._XDCCLibrariesAPIs.applyCharacterStyleFromCCLibrariesElement(e,t.getReference())}addAudioToDocument(e,t){this._XDCCLibrariesAPIs.applyAudioFromCCLibrariesElement(e,t.getReference())}get canvas(){return window.nodeRequire("xd").host.canvas}addToCanvas(e,t=!0,r,n){const i=e.name;n=n||{};const o=Object.assign(n,{importedArt:[e]});r&&e.setPosition(r.x,r.y);const a=this._xdRequire("importers/ImportUtil").addImportedItemFromCCLib(o,this.editContextModel,!0,!r);return e.name=i,t&&this.setSelection(e),a}addComponentToCanvas(e,t){return this._XDCCLibrariesAPIs.addComponentToCanvas(t).then((()=>(0,d.vM)(e.getPrimaryRepresentation(),"placeAsset")))}addDropEventListener(e){this.canvas.on(this.canvas.DRAG_DROP,e)}removeDropEventListener(e){this.canvas.off(this.canvas.DRAG_DROP,e)}get representationTypeMap(){const e=this.documentLibraryConstants;return{[e.XD_COLOR_REPRESENTATION_TYPE]:l.Z.COLOR_REPRESENTATION_TYPE,[e.XD_LINEAR_GRADIENT_REPRESENTATION_TYPE]:l.Z.GRADIENT_REPRESENTATION_TYPE,[e.XD_RADIAL_GRADIENT_REPRESENTATION_TYPE]:l.Z.GRADIENT_REPRESENTATION_TYPE,[e.XD_ANGULAR_GRADIENT_REPRESENTATION_TYPE]:l.Z.GRADIENT_REPRESENTATION_TYPE,[e.SYMBOL_REPRESENTATION_TYPE]:l.Z.AGC_REPRESENTATION_TYPE}}_generateToastMessage(e,t=""){return`${e} [${t}|]`}openApplicationToast(e,t={}){const r=t.variant,n=t.timeout,i=t.actionLabel,o=t.onAction,a=t.onDismiss,s=this._generateToastMessage(e,i);return this._XDCCLibrariesAPIs.displayToastMessage(s,r,n,o,a)}dismissToastMessage(e,t=""){this._XDCCLibrariesAPIs.dismissToastMessage(this._generateToastMessage(e,t))}getMissingFontsCollapsed(){return this._missingFontsModel.collapsed}toggleMissingFontsCollapsed(){this._missingFontsModel.toggleCollapsed()}getMissingFonts(){return this._missingFontsModel.missingFonts}highlightOnCanvas(e){return this._XDCCLibrariesAPIs.highlightOnCanvas(e.id)}_getEditAnalyticsAction(e){return{name:"updateElementContent",data:{id:e.id}}}notifySelectionChange(e,t){var r,n;null===(r=(n=this._XDCCLibrariesAPIs).notifySelectionChange)||void 0===r||r.call(n,e,t)}editMasterComponent(e){return k.ZP.reportAPIEvent(this._getEditAnalyticsAction(e)),k.ZP.clearExtraEventMetrics("updateElementContent"),this._XDCCLibrariesAPIs.editMasterComponent(e.id)}editColor(e){const t=this.getNativeIdForElement(e.id);if(t)return k.ZP.reportAPIEvent(this._getEditAnalyticsAction(e)),k.ZP.clearExtraEventMetrics("updateElementContent"),this._XDCCLibrariesAPIs.editColor(e.id,t)}editCharacterStyle(e){const t=this.getNativeIdForElement(e.id);if(t)return k.ZP.reportAPIEvent(this._getEditAnalyticsAction(e)),k.ZP.clearExtraEventMetrics("updateElementContent"),this._XDCCLibrariesAPIs.editCharacterStyle(e.id,t)}editInSource(e){k.ZP.reportAPIEvent(this._getEditAnalyticsAction(e)),k.ZP.clearExtraEventMetrics("updateElementContent"),this._XDCCLibrariesAPIs.editInSource(e.id)}canEditElementInSource(e){const t=T.ZP.resolveCachedElementReference(e);return t&&(0,D.EZ)(t)}editElementInSource(e){(0,s.when)((()=>T.ZP.areLibrariesLoaded),ne(te().mark((function t(){var r;return te().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,T.ZP.resolveElementReference(e);case 2:(r=t.sent)&&(0,D.EZ)(r)&&(0,D.Fb)(r);case 4:case"end":return t.stop()}}),t)}))))}getDocumentEditActions(e){if(this._XDCCLibrariesAPIs.getDocumentEditActions&&"application/vnd.adobe.xd.cloudproject+dcx"===(e.library?e.library.documentType:e.documentType)){const t=e.library?e.library.documentId:e.documentId,r=e.sourceRef&&(0,d.a3)(e);return this._XDCCLibrariesAPIs.getDocumentEditActions(t,r)}}replaceFont(e){const t=this.getNativeIdForElement(e.id);if(t)return this._XDCCLibrariesAPIs.replaceFont(e.id,t)}getAssetInstanceCount(e,t=!1){return this._XDCCLibrariesAPIs.getNumInstancesOfAsset(e.id,t)}updateLinkedAssets(e){return e=Array.isArray(e)?e:[e],this._XDCCLibrariesAPIs.updateLinkedAssets(e.map((e=>({linkedAssetId:e.id,newLinkedElementRef:e.newLinkedElementRef}))))}migrateLinkReferences(e=[]){const t=e.reduce(((e,t)=>(t.isLegacyCCLibrariesLink&&t.linkedElement&&t.isNormalLinkState&&e.push({linkedAssetId:t.id,newLinkedElementRef:t.linkedElement.getReference()}),e)),[]);t.length&&this._XDCCLibrariesAPIs.migrateLinkedAssets&&this._XDCCLibrariesAPIs.migrateLinkedAssets(t)}updateAndAddAllLinkedAssets(e){return e=e&&e.map((e=>({linkedAssetId:e.id,newLinkedElementRef:e.newLinkedElementRef}))),this._XDCCLibrariesAPIs.updateAndAddAllLinkedAssets(e)}canUnlinkAssets(e){return this._XDCCLibrariesAPIs.canAssetsBeMadeLocal(e.map((e=>e.id)))}canDeleteAssets(e){return this._XDCCLibrariesAPIs.canAssetsBeDeleted(e.map((e=>e.id)))}unlinkAssets(e){this._XDCCLibrariesAPIs.makeLocal(e.map((e=>e.id)))}relinkAssetsToDocument(e){e=Array.isArray(e)?e:[e],this._XDCCLibrariesAPIs.relink(e.map((e=>e.id)))}handleDocumentLinkingAssetNoLongerSupported(e){this._XDCCLibrariesAPIs.handleDocumentLinkingAssetNoLongerSupported(e.id)}get isPreviewActive(){return this._isPreviewActive}startPreview(e){return this._isPreviewActive=!0,this._XDCCLibrariesAPIs.startPreview(e.id,e.newLinkedElementRef)}commitPreview(){return this._isPreviewActive=!1,this._XDCCLibrariesAPIs.commitPreview()}cancelPreview(){return this._isPreviewActive=!1,this._XDCCLibrariesAPIs.cancelPreview()}isPreviewing(){return this._xdRequire("artwork/Artwork").previewModeController.isActive()}deleteAssets(e){k.ZP.reportEvent("Element Operations","Element","click","delete",{event:{count:e.length,value:"agg"}}),e.forEach((e=>{const t={name:"removeElement",data:{id:e.id},library:e.library};k.ZP.reportAPIEvent(t)})),this._XDCCLibrariesAPIs.deleteAssets(e.map((e=>e.id))),k.ZP.clearExtraEventMetrics("removeElements")}openSaveAs(){return this._XDCCLibrariesAPIs.toggleCCLibraryManager(!1),this._XDCCLibrariesAPIs.openSaveAsDialog().then((e=>(this._XDCCLibrariesAPIs.toggleCCLibraryManager(!0),e)))}renameAsset(e,t){const r=e.name,n={name:"updateElement",data:{name:t,id:e.id},baseData:{name:r},library:e.library};k.ZP.reportAPIEvent(n),this._XDCCLibrariesAPIs.rename(e.id,t),k.ZP.clearExtraEventMetrics("updateElement")}requestPublishStart(){return this._XDCCLibrariesAPIs.requestPublishStart()}notifyPublishEnd(){this._XDCCLibrariesAPIs.notifyPublishEnd()}get isCoeditorPublishing(){return this._isCoeditorPublishing}unlinkAssetsFromDocument(e){this._XDCCLibrariesAPIs.removeFromLibrary(e)}_getTheme(){return super._getTheme().then((e=>ce[e]))}isLoggedIn(){return!0}hideDebugFlyoutMenu(){return!1}isXDFeatureFlagEnabled(e){return this._XDCCLibrariesAPIs.isFeatureFlagEnabled(e)}shouldConvertColor(){return this._colorProfileChangeAtom.reportObserved(),this.isXDFeatureFlagEnabled("colorManagement")}convertSingleColor(e){return this._XDCCLibrariesAPIs.convertSingleColor(e,this._XDCCLibrariesAPIs.getColorProfile())}get isAltKeyDown(){return this._XDCCLibrariesAPIs.isAltKeyDown()}navigateToLibrary(e){var t,r;super.navigateToLibrary(e),null===(t=(r=this._XDCCLibrariesAPIs).didNavigateToLibrary)||void 0===t||t.call(r,e)}},U=ae(G.prototype,"_isCoeditorPublishing",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),H=ae(G.prototype,"_cloudAssetId",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=ae(G.prototype,"_hasWritableStorage",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=ae(G.prototype,"_isPaidUser",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Y=ae(G.prototype,"_isPreviewActive",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G)},31600:(e,t,r)=>{"use strict";r.d(t,{Tl:()=>g,W6:()=>v,WY:()=>m});var n=r(99386),i=r(76485),o=r(98218),a=r(76325),s=r(26964),c=r(51461),l=r(34038),u=r(31870),d=r(20290),p=r(16993);function h(){return"https://"+a.Z.getEnvironment().stockHost}function f(e,t,r,m,g,v=0,y=0,b){let _;return a.Z.getAccessToken(e).then((E=>{if(!E)return Promise.reject(401);const w=new URL(h()+n.Z.STOCK_SEARCH_API_PATH);if(null!=r&&r.url){const n=new URL(r.url);if(n.searchParams.set("api_key",a.Z.getEnvironment().clientId),n.searchParams.set("user_token",E),r.path&&i.Z.supportsFileSystem){const i={"User-Agent":o.Z.getUserAgent()};return fetch(n,{method:"HEAD",headers:i}).then((n=>n.ok?f(e,t,{url:r.url},m,g,v,m,b):Promise.reject(n.status))).catch((()=>0===v?f(e,t,{path:r.path},m,g,v,m,b):(0,d.gw)(2e3,f.bind(null,e,t,r,m,g,v-1,m,b))))}w.searchParams.append("search_parameters[similar_url]",n.href)}else null!=r&&r.path?(_=(0,l.pJ)(r.path,"binary"),w.searchParams.append("search_parameters[similar_image]",1)):null!=r&&r.id?w.searchParams.append("search_parameters[similar]",r.id):w.searchParams.append("search_parameters[words]",t);w.searchParams.append("search_parameters[limit]",g),w.searchParams.append("search_parameters[thumbnail_size]",240),w.searchParams.append("search_parameters[order]",p.Z.elementSearchSort),w.searchParams.append("locale",i.Z.getLocale());const x=n.Z.STOCK_SEARCH_OPTIONS.filter((e=>m&&m[e.id]));x.forEach((e=>{const t=e.param,r=e.filterKey,i=e.filterValue;if(t&&(w.searchParams.append(`search_parameters[filters][content_type:${t}]`,1),"template"===t&&b)){var o;const e=n.Z.currentProduct.config.code,t=n.Z.STOCK_SEARCH_PRODUCT_TEMPLATE_ID_MAP[e],r=(0,u.tt)();null==t||null===(o=t.forEach)||void 0===o||o.call(t,(e=>w.searchParams.append("search_parameters[filters][template_type_id][]",e))),r&&w.searchParams.append("search_parameters[filters][mogrt_api_version]",r)}r&&w.searchParams.append(`search_parameters[filters][${r}]${e.isArray?"[]":""}`,i)})),0===x.length&&(0,u.Tu)().forEach((e=>{e.param&&w.searchParams.append(`search_parameters[filters][content_type:${e.param}]`,1)})),(e=>{[["result_columns[]","comp_height"],["result_columns[]","audio_samplerate"],["result_columns[]","audio_samplerate_preview"],["result_columns[]","comp_url"],["result_columns[]","comp_width"],["result_columns[]","comps"],["result_columns[]","content_type"],["result_columns[]","duration"],["result_columns[]","framerate"],["result_columns[]","height"],["result_columns[]","id"],["result_columns[]","is_licensed"],["result_columns[]","licenses"],["result_columns[]","media_type_id"],["result_columns[]","premium_level_id"],["result_columns[]","stock_id"],["result_columns[]","thumbnail_height"],["result_columns[]","thumbnail_url"],["result_columns[]","thumbnail_width"],["result_columns[]","title"],["result_columns[]","video_small_preview_url"],["result_columns[]","width"],["result_columns[]","is_premium"],["result_columns[]","creator_name"],["result_columns[]","is_illustrative"]].forEach((([t,r])=>e.searchParams.append(t,r)))})(w);const L={headers:{"x-api-key":a.Z.getEnvironment().clientId,Authorization:"Bearer "+E,"User-Agent":o.Z.getUserAgent()}};return _&&((e,t,r,n)=>{const i="cclibrariespanel"+Math.round(9999999*Math.random()),o="\r\n",a="--"+i+'\r\nContent-Disposition: form-data;name="similar_image";filename="'+unescape(encodeURIComponent("similar_image.jpeg"))+'"\r\nContent-Type: application/octet-stream'+o+o+t+"\r\n--"+i+o;e.method="POST",e.headers["Content-Type"]="multipart/form-data;boundary="+i,e.body=(e=>{const t=Array.prototype.map.call(e,(e=>255&e.charCodeAt(0)));return new Uint8Array(t).buffer})(a),e.transformRequest=[]})(L,_),c.ZP.addProductHeaders(L.headers),fetch(w,L).then((e=>{if(200!==e.status)throw e;return e.json()})).then((({files:e})=>e)).catch((n=>401===n.status&&y>0?(a.Z.clearAccessToken(),f(e,t,r,m,g,v,y-1,b)):(n.text().then((e=>{s.Z.log(`Error ${n.status}: adobeStockRest.searchStockAssets, result=\n ${"string"==typeof e?e:JSON.stringify(e)}`)})),Promise.reject(n.status))))}),(e=>{throw s.Z.log(`Error getting access token: searchStockAssets, result= ${"string"==typeof e?e:JSON.stringify(e)}`),401}))}function m(e,t,r,n,i,o){return f(e,t,r,n,i,3,1,o)}function g(e,t,r,i,l=0){return a.Z.getAccessToken(e).then((u=>{if(!u)return Promise.reject(401);let d=h()+n.Z.STOCK_LICENSE_PATH;d=d.replace(/ZZZZ/,t),d=d.replace(/LLLL/,r);const p={method:"POST",headers:{"x-api-key":a.Z.getEnvironment().clientId,Authorization:"Bearer "+u,"User-Agent":o.Z.getUserAgent()}};return i&&(p.data={cce_agency:i}),c.ZP.addProductHeaders(p.headers),fetch(d,p).then((n=>401===n.status&&l>0?(a.Z.clearAccessToken(),g(e,t,r,i,l-1)):200!==n.status?(n.text().then((e=>{s.Z.log(`Error with licenseAsset: result= ${e}`)})),Promise.reject(n.status)):n.json()))})).catch((e=>"LOGGED_OUT"===e?(s.Z.log("Error with licenseAsset: could not get token"),Promise.reject(401)):Promise.reject(e)))}function v(e,t){return a.Z.getAccessToken(e).then((e=>{if(!e)return Promise.reject(401);let r=h()+n.Z.STOCK_METADATA_PATH;r+=`?ids=${t}`,r+="&result_columns[]=is_editorial&result_columns[]=creator_name&result_columns[]=premium_level_id";const i={method:"GET",headers:{"x-api-key":a.Z.getEnvironment().clientId,Authorization:"Bearer "+e,"User-Agent":o.Z.getUserAgent()}};return c.ZP.addProductHeaders(i.headers),fetch(r,i).then((e=>200!==e.status?(e.text().then((e=>{s.Z.log(`Error with getStockAssetMetadata: result= ${e}`)})).catch((e=>{s.Z.log(`Error with getStockAssetMetadata: error= ${e}`)})),Promise.reject(e.status)):e.json()))})).catch((e=>"LOGGED_OUT"===e?(s.Z.log("Error with getStockAssetMetadata: could not get token"),Promise.reject(401)):Promise.reject(e)))}},7921:(e,t,r)=>{"use strict";r.d(t,{d:()=>v,u:()=>y});var n={};r.r(n),r.d(n,{VulcanInterface:()=>a,VulcanMessage:()=>s});var i={};function o(){this._version=7,this.useSpecifiers=!0}r.r(i),r.d(i,{VulcanInterface:()=>d,VulcanMessage:()=>p}),o.prototype.getTargetSpecifiers=function(){return JSON.parse(window.__adobe_cep__.invokeSync("vulcanGetTargetSpecifiers",JSON.stringify({})))},o.prototype.launchApp=function(e,t,r){if(!c(e))return!1;var n={};return n.targetSpecifier=e,n.focus=t?"true":"false",n.cmdLine=null==r?"":r,JSON.parse(window.__adobe_cep__.invokeSync("vulcanLaunchApp",JSON.stringify(n))).result},o.prototype.isAppRunning=function(e){if(!c(e))return!1;var t={};return t.targetSpecifier=e,JSON.parse(window.__adobe_cep__.invokeSync("vulcanIsAppRunning",JSON.stringify(t))).result},o.prototype.isAppInstalled=function(e){if(!c(e))return!1;var t={};return t.targetSpecifier=e,JSON.parse(window.__adobe_cep__.invokeSync("vulcanIsAppInstalled",JSON.stringify(t))).result},o.prototype.getAppPath=function(e){if(!c(e))return"";var t={};return t.targetSpecifier=e,JSON.parse(window.__adobe_cep__.invokeSync("vulcanGetAppPath",JSON.stringify(t))).result},o.prototype.addMessageListener=function(e,t,r){if(c(e,t)&&l(e,s.TYPE_PREFIX)){var n={};n.type=e,window.__adobe_cep__.invokeAsync("vulcanAddMessageListener",JSON.stringify(n),t,r)}},o.prototype.removeMessageListener=function(e,t,r){if(c(e,t)&&l(e,s.TYPE_PREFIX)){var n={};n.type=e,window.__adobe_cep__.invokeAsync("vulcanRemoveMessageListener",JSON.stringify(n),t,r)}},o.prototype.dispatchMessage=function(e){if(c(e)&&l(e.type,s.TYPE_PREFIX)){var t={},r=new s(e.type);r.initialize(e),t.vulcanMessage=r,window.__adobe_cep__.invokeSync("vulcanDispatchMessage",JSON.stringify(t))}},o.prototype.getPayload=function(e){if(!c(e)||!l(e.type,s.TYPE_PREFIX))return null;var t=new s(e.type);return t.initialize(e),t.getPayload()};var a=new o;function s(e){this.type=e,this.scope=s.SCOPE_SUITE,this.appId=s.DEFAULT_APP_ID,this.appVersion=s.DEFAULT_APP_VERSION,this.data=s.DEFAULT_DATA}function c(){for(var e=0;e<arguments.length;e++)if(null==arguments[e])return!1;return!0}function l(e,t){return"string"==typeof e&&0===e.indexOf(t)}function u(){this._version=11.1,this.useSpecifiers=!1}s.TYPE_PREFIX="vulcan.SuiteMessage.",s.SCOPE_SUITE="GLOBAL",s.DEFAULT_APP_ID="UNKNOWN",s.DEFAULT_APP_VERSION="UNKNOWN",s.DEFAULT_DATA="<data><payload></payload></data>",s.dataTemplate="<data>{0}</data>",s.payloadTemplate="<payload>{0}</payload>",s.prototype.initialize=function(e){this.type=e.type,this.scope=e.scope,this.appId=e.appId,this.appVersion=e.appVersion,this.data=e.data},s.prototype.xmlData=function(){if(void 0===this.data){var e="";e=String.format(s.payloadTemplate,e),this.data=String.format(s.dataTemplate,e)}return this.data},s.prototype.setPayload=function(e){var t=cep.encoding.convertion.utf8_to_b64(e);t=String.format(s.payloadTemplate,t),this.data=String.format(s.dataTemplate,t)},s.prototype.getPayload=function(){var e=function(e,t){if(window.DOMParser){var r=new window.DOMParser;try{var n=r.parseFromString(e,"text/xml").getElementsByTagName("payload")[0];if(n&&n.childNodes[0])return n.childNodes[0].nodeValue}catch(e){}}return""}(this.data);return null!==e?cep.encoding.convertion.b64_to_utf8(e):null},s.prototype.toString=function(){var e="type="+this.type;return e+=", scope="+this.scope,e+=", appId="+this.appId,(e+=", appVersion="+this.appVersion)+", data="+this.xmlData()},String.format=function(e){if(0===arguments.length)return null;var t=Array.prototype.slice.call(arguments,1);return e.replace(/\{(\d+)\}/g,(function(e,r){return t[r]}))},u.prototype.getTargetSpecifiers=function(){return JSON.parse(window.__adobe_cep__.invokeSync("vulcanGetTargetSpecifiersEx",JSON.stringify({})))},u.prototype.getTargetSpecifiersEx=function(){return this.getTargetSpecifiers()},u.prototype.launchApp=function(e,t,r){if(!h(e))return!1;var n={};return n.productSAPCodeSpecifier=e,n.focus=t?"true":"false",n.cmdLine=h(r)?r:"",JSON.parse(window.__adobe_cep__.invokeSync("vulcanLaunchAppEx",JSON.stringify(n))).result},u.prototype.launchAppEx=function(e,t,r){return this.launchApp(e,t,r)},u.prototype.isAppRunning=function(e){if(!h(e))return!1;var t={};return t.productSAPCodeSpecifier=e,JSON.parse(window.__adobe_cep__.invokeSync("vulcanIsAppRunningEx",JSON.stringify(t))).result},u.prototype.isAppRunningEx=function(e){return this.isAppRunning(e)},u.prototype.isAppInstalled=function(e){if(!h(e))return!1;const t={productSAPCodeSpecifier:e};return!!JSON.parse(window.__adobe_cep__.invokeSync("vulcanIsAppInstalledEx",JSON.stringify(t))||"{}").result},u.prototype.isAppInstalledEx=function(e){return this.isAppInstalled(e)},u.prototype.getAppPath=function(e){if(!h(e))return"";var t={};return t.productSAPCodeSpecifier=e,JSON.parse(window.__adobe_cep__.invokeSync("vulcanGetAppPathEx",JSON.stringify(t))).result},u.prototype.getAppPathEx=function(e){return this.getAppPath(e)},u.prototype.addMessageListener=function(e,t,r){if(h(e,t)&&f(e,p.TYPE_PREFIX)){var n={};n.type=e,window.__adobe_cep__.invokeAsync("vulcanAddMessageListener",JSON.stringify(n),t,r)}},u.prototype.removeMessageListener=function(e,t,r){if(h(e,t)&&f(e,p.TYPE_PREFIX)){var n={};n.type=e,window.__adobe_cep__.invokeAsync("vulcanRemoveMessageListener",JSON.stringify(n),t,r)}},u.prototype.dispatchMessage=function(e){if(h(e)&&f(e.type,p.TYPE_PREFIX)){var t={},r=new p(e.type);r.initialize(e),t.vulcanMessage=r,window.__adobe_cep__.invokeSync("vulcanDispatchMessage",JSON.stringify(t))}},u.prototype.getPayload=function(e){if(!h(e)||!f(e.type,p.TYPE_PREFIX))return null;var t=new p(e.type);return t.initialize(e),t.getPayload()},u.prototype.getEndPoints=function(){return JSON.parse(window.__adobe_cep__.invokeSync("vulcanGetEndPoints",JSON.stringify({})))},u.prototype.getSelfEndPoint=function(){return window.__adobe_cep__.invokeSync("vulcanGetSelfEndPoint",JSON.stringify({}))};var d=new u;function p(e,t,r){this.type=e,this.scope=p.SCOPE_SUITE,this.appId=h(t)?t:p.DEFAULT_APP_ID,this.appVersion=h(r)?r:p.DEFAULT_APP_VERSION,this.data=p.DEFAULT_DATA}function h(){for(var e=0;e<arguments.length;e++)if(null==arguments[e])return!1;return!0}function f(e,t){return"string"==typeof e&&0===e.indexOf(t)}p.TYPE_PREFIX="vulcan.SuiteMessage.",p.SCOPE_SUITE="GLOBAL",p.DEFAULT_APP_ID="UNKNOWN",p.DEFAULT_APP_VERSION="UNKNOWN",p.DEFAULT_DATA="<data><payload></payload></data>",p.dataTemplate="<data>{0}</data>",p.payloadTemplate="<payload>{0}</payload>",p.prototype.initialize=function(e){this.type=e.type,this.scope=e.scope,this.appId=e.appId,this.appVersion=e.appVersion,this.data=e.data},p.prototype.xmlData=function(){if(void 0===this.data){var e="";e=String.format(p.payloadTemplate,e),this.data=String.format(p.dataTemplate,e)}return this.data},p.prototype.setPayload=function(e){var t=cep.encoding.convertion.utf8_to_b64(e);t=String.format(p.payloadTemplate,t),this.data=String.format(p.dataTemplate,t)},p.prototype.getPayload=function(){var e=function(e,t){if(window.DOMParser){var r=new window.DOMParser;try{var n=r.parseFromString(e,"text/xml").getElementsByTagName("payload")[0];if(n&&n.childNodes[0])return n.childNodes[0].nodeValue}catch(e){}}return""}(this.data);return null!==e?cep.encoding.convertion.b64_to_utf8(e):null},p.prototype.toString=function(){var e="type="+this.type;return e+=", scope="+this.scope,e+=", appId="+this.appId,(e+=", appVersion="+this.appVersion)+", data="+this.xmlData()},String.format=function(e){if(0===arguments.length)return null;var t=Array.prototype.slice.call(arguments,1);return e.replace(/\{(\d+)\}/g,(function(e,r){return t[r]}))};var m=r(99386);let g;try{const e=JSON.parse(window.__adobe_cep__.getCurrentApiVersion())||{major:0,minor:0},t=e.major,r=e.minor;g=Number.parseFloat(`${t}.${r}`)>=m.Z.MIN_CEP_VULCAN_7_VERSION?i:n}catch(e){g=n}const v=g.VulcanInterface,y=g.VulcanMessage},78926:e=>{e.exports={SCOPES:"openid,AdobeID,creative_cloud,creative_sdk,cc_private,sao.stock,sao.cce_private,tk_platform,ab.manage",FETCH_TOKEN_EVENT:"com.adobe.csxs.events.internal.ims.FetchAccessToken",CONFIGS:{staging:{label:"Staging",clientId:"ProjectCentralPanel11",clientSecret:"73190409-b7c6-4737-85ad-1195b75fc444",storageHost:"cc-api-storage-stage.adobe.io",assetsHost:"cc-api-assets-stage.adobe.io",ccwebHost:"assets-stage.adobecc.com",ims:"ims-na1-stg1.adobelogin.com",imsServices:"adobeid-na1-stg1.services.adobe.com",stockHost:"stock-stage.adobe.io",stockWebHost:"primary.stock.stage.adobe.com",typekitHost:"cctypekit-relstage.adobe.io",linkServiceHost:"links-stage.adobecc.com",linkServiceWebHost:"shared-assets-stage.adobecc.com",ccLibraryServiceHost:"ccx-melville-stage.adobe.io",supportContactGoURL:"https://www.stage.adobe.com/go/ccl_contact",followLibrariesGoURL:"https://www.adobe.com/go/stage_cc_public_libraries",invitationsHost:"invitations-stage.adobe.io",personalizationHost:"p13n-stage.adobe.io",experienceCloudHost:"https://experience-stage.adobe.com"},production:{label:"Production",clientId:"ProjectCentralPanel11",clientSecret:"739a1266-1f2a-4b9d-8baa-2f0a506e1fc1",storageHost:"cc-api-storage.adobe.io",assetsHost:"cc-api-assets.adobe.io",ccwebHost:"assets.adobe.com",ims:"ims-na1.adobelogin.com",imsServices:"adobeid-na1.services.adobe.com",stockHost:"stock.adobe.io",stockWebHost:"stock.adobe.com",typekitHost:"cctypekit.adobe.io",linkServiceHost:"links-prod.adobecc.com",linkServiceWebHost:"shared-assets.adobe.com",ccLibraryServiceHost:"libraries.adobe.io",supportContactGoURL:"https://www.adobe.com/go/ccl_contact",followLibrariesGoURL:"https://www.adobe.com/go/cc_public_libraries",invitationsHost:"invitations.adobe.io",personalizationHost:"p13n.adobe.io",experienceCloudHost:"https://experience.adobe.com"}}}},76325:(e,t,r)=>{"use strict";function n(){}function i(){}r.d(t,{Z:()=>h}),n.prototype.addEventListener=function(e,t){window.__adobe_cep__.addEventListener(e,t)},n.prototype.removeEventListener=function(e,t){window.__adobe_cep__.removeEventListener(e,t)},n.prototype.imsConnect=function(){return window.__adobe_cep__.imsConnect()},n.prototype.imsDisconnect=function(e){window.__adobe_cep__.imsDisconnect(e)},n.prototype.imsFetchAccounts=function(e,t){return window.__adobe_cep__.imsFetchAccounts(e,t)},n.prototype.imsFetchAccessToken=function(e,t,r,n,i,o){return window.__adobe_cep__.imsFetchAccessToken(e,t,r,n,i,o)},n.prototype.imsRevokeDeviceToken=function(e,t,r,n,i){return window.__adobe_cep__.imsFetchAccessToken(e,t,r,n,i,"REVOKE")},n.prototype.imsSetProxyCredentials=function(e,t){window.__adobe_cep__.imsSetProxyCredentials(e,t)},n.prototype.showAAM=function(e,t,r,n,i,o){return window.__adobe_cep__.showAAM(e,t,r,n,i,o)},n.prototype.imsGetCurrentUserId=function(){return window.__adobe_cep__.getCurrentImsUserId()},n.prototype.imsGetCurrentUserIdHelper=function(e){var t=JSON.parse(window.__adobe_cep__.getHostEnvironment()).appName;if("ILST"===t)window.__adobe_cep__.evalScript("app.userGUID",(function(t){e(t)}));else if("IDSN"===t)window.__adobe_cep__.evalScript("app.userGuid",(function(t){e(t)}));else if("PHSP"===t||"PHXS"===t)window.__adobe_cep__.evalScript("var getUserIdPhotoshop = function() {var userId = '';try {var bhnc = app.charIDToTypeID('bhnc');var ref = new ActionReference();ref.putProperty(app.charIDToTypeID('Prpr'), bhnc);ref.putEnumerated(app.charIDToTypeID('capp'), app.charIDToTypeID('Ordn'), app.charIDToTypeID('Trgt'));var appDesc = app.executeActionGet(ref);if (appDesc.hasKey(bhnc)) {userId = appDesc.getString(bhnc);}} catch (e) {}return userId;};",(function(t){window.__adobe_cep__.evalScript("getUserIdPhotoshop()",(function(t){e(t)}))}));else{var r=window.__adobe_cep__.getCurrentImsUserId();e(r)}},n.prototype.imsConnectWithEndpoint=function(e){var t={};t.imsEndpoint=null==e||""===e?"undefined":e;const r=window.__adobe_cep__.invokeSync("imsConnectWithEndpoint",JSON.stringify(t));return r&&JSON.parse(r).result},n.prototype.imsFetchContinueToken=function(e,t,r,n,i,o,a){null==n&&(n=""),null==i&&(i=""),null==o&&(o=""),null==a&&(a="");var s={};return s.imsRef=e,s.bearerToken=t,s.targetClientId=r,s.redirectUri=n,s.scope=i,s.responseType=o,s.locale=a,JSON.parse(window.__adobe_cep__.invokeSync("imsFetchContinueToken",JSON.stringify(s))).result},n.prototype.imsLogoutUser=function(e,t,r){var n={};return n.imsRef=e,n.userAccountGuid=t,n.clientId=r,JSON.parse(window.__adobe_cep__.invokeSync("imsLogoutUser",JSON.stringify(n))).result},n.prototype.imsFetchUserProfileData=function(e,t){var r={};return r.imsRef=e,r.userAccountGuid=t,window.__adobe_cep__.invokeSync("imsFetchUserProfileData",JSON.stringify(r))},n.prototype.imsAttemptSSOJumpWorkflows=function(e,t,r,n,i,o,a,s,c,l,u){e||(e=!1),null==n&&(n=""),null==i&&(i=""),null==o&&(o=""),null==s&&(s=""),null==c&&(c=""),null==l&&(l=""),null==r&&(r=""),null==a&&(a="");var d={};return d.imsRef=r,d.openBrowser=e,d.url=t,d.clientId=n,d.clientSecret=i,d.scope=o,d.userAccountGuid=a,d.targetClientId=s,d.targetScope=c,d.targetResponseType=l,d.targetLocale=u,JSON.parse(window.__adobe_cep__.invokeSync("imsAttemptSSOJumpWorkflows",JSON.stringify(d))).result},n.events={imsFetchAccessTokenWithStatus:"com.adobe.csxs.events.internal.ims.FetchAccessTokenWithStatus",imsFetchAccessToken:"com.adobe.csxs.events.internal.ims.FetchAccessToken",imsRevokeAccessToken:"com.adobe.csxs.events.internal.ims.FetchAccessTokenWithStatus",imsFetchContinueToken:"com.adobe.csxs.events.internal.ims.FetchAccessTokenWithStatus",imsAAMIMSStatus:"vulcan.SuiteMessage.com.adobe.aam.AAMIMSStatus",imsLogoutUser:"com.adobe.csxs.events.internal.ims.LogoutUser",imsSSOStatus:"com.adobe.csxs.events.internal.ims.SSOStatus"},n.status={IMS_SUCCESS:"0",IMS_ERROR_FAILURE:"1",IMS_ERROR_INVALID_ARGUMENTS:"2",IMS_ERROR_CANCEL:"20",IMS_ERROR_TIMEOUT:"21",IMS_ERROR_HTTPFAILURE:"22",IMS_ERROR_SSLFAILURE:"23",IMS_ERROR_AUTH_PROXY_REQUIRED:"24",IMS_ERROR_AUTH_PROXY_FAILED:"25",IMS_ERROR_IN_ACCESS_IDP:"26",IMS_ERROR_ANOTHER_REQUEST_IN_PROCESS:"40",IMS_ERROR_IN_READ_USER_DATA:"60",IMS_ERROR_IN_SAVE_USER_DATA:"61",IMS_ERROR_IN_REMOVE_USER_DATA:"62",IMS_ERROR_USER_DATA_NOT_PRESENT:"63",IMS_ERROR_IN_READ_DEVICE_TOKEN:"64",IMS_ERROR_IN_SAVE_DEVICE_TOKEN:"65",IMS_ERROR_IN_REMOVE_DEVICE_TOKEN:"66",IMS_ERROR_DEVICE_TOKEN_NOT_PRESENT:"67",IMS_ERROR_INVALID_DEVICE_TOKEN:"68",IMS_ERROR_CLIENTID_NOT_PRESENT:"69",IMS_ERROR_IN_FETCH_USER_ACCOUNTS:"70",IMS_ERROR_IN_SAVE_USER_FOR_CLIENTID:"71",IMS_ERROR_DEVICE_ID_NOT_PRESENT:"72",IMS_ERROR_DEFAULT_USER_FOR_CLIENTID_NOT_PRESENT:"73",IMS_ERROR_NO_USER_RECORDS_PRESENT:"74",IMS_ERROR_ACCESS_DENIED:"80",IMS_ERROR_INVALID_REQUEST:"81",IMS_ERROR_INVALID_CLIENT:"82",IMS_ERROR_INVALID_GRANT:"83",IMS_ERROR_UNAUTHORIZED_CLIENT:"84",IMS_ERROR_UNSUPPORTED_RESPONSE_TYPE:"85",IMS_ERROR_INVALID_SCOPE:"86",IMS_ERROR_UNSUPPORTED_GRANT_TYPE:"87",IMS_ERROR_BAD_REQUEST:"88",IMS_ERROR_INVALID_CREDENTIALS:"89",IMS_ERROR_IN_GET_AUTH_DATA_FROM_IDP:"100",IMS_ERROR_IN_GET_DEVICE_TOKEN_FROM_IDP:"101",IMS_ERROR_IN_GET_REFRESH_TOKEN_FROM_IDP:"102",IMS_ERROR_IN_GET_ACCESS_TOKEN_FROM_IDP:"103",IMS_ERROR_IN_GET_PROFILE_DATA_FROM_IDP:"104",IMS_ERROR_TOU_CHANGED:"120",IMS_ERROR_IN_REVOKE_DEVICE_TOKEN:"121",IMS_ERROR_TOU_NOT_CURRENT:"122",IMS_ERROR_EVS_INVALID:"123",IMS_ERROR_ACCT_ACT_REQ:"124",IMS_ERROR_ACCT_DISABLED:"125",IMS_ERROR_SUBS_ACT_REQ:"126",IMS_ERROR_SUBS_NO_SUB:"127",IMS_ERROR_NO_BUDDY_GROUP_FOR_CLIENT:"150",IMS_ERROR_CLIENT_REGISTERED_FOR_OTHER_GROUP:"151",IMS_ERROR_GROUP_ENTRY_NOT_PRESENT:"152",IMS_ERROR_IN_SAVE_GROUP_DATA:"153",IMS_ERROR_CNAME_ENTRY_NOT_PRESENT:"154",IMS_ERROR_IN_SAVE_BACKOFF_DATA:"155",IMSMANAGER_ERROR_EXCEPTION:"3000",IMSMANAGER_ERROR_ENCODING:"3001",IMSMANAGER_SUCCESS_BROWSER_OPENED:"3002",IMSMANAGER_ERROR_BROWSER_FAILED_TO_OPEN:"3003",IMS_UNKNOWN_ERROR:"0xFFFF"},n.prototype.events=n.events,i.prototype.addEventListener=function(e,t){window.__adobe_cep__.addEventListener(e,t)},i.prototype.removeEventListener=function(e,t){window.__adobe_cep__.removeEventListener(e,t)},i.prototype.imsFetchAccessToken=function(e,t,r){return window.__adobe_cep__.nglImsFetchAccessToken(e,t,r)},i.prototype.imsFetchProfile=function(e){return window.__adobe_cep__.nglImsFetchProfile(e)},i.prototype.imsFetchContinueToken=function(e,t,r,n,i){null==r&&(r=""),null==n&&(n=""),null==i&&(i="");var o={};return o.bearerToken=e,o.targetClientId=t,o.redirectUri=r,o.scope=n,o.responseType=i,JSON.parse(window.__adobe_cep__.invokeSync("nglImsFetchContinueToken",JSON.stringify(o))).result},i.prototype.imsGetCurrentUserId=function(){return window.__adobe_cep__.getCurrentImsUserId()},i.prototype.imsGetCurrentUserIdHelper=function(e){var t=JSON.parse(window.__adobe_cep__.getHostEnvironment()).appName;if("ILST"===t)window.__adobe_cep__.evalScript("app.userGUID",(function(t){e(t)}));else if("IDSN"===t)window.__adobe_cep__.evalScript("app.userGuid",(function(t){e(t)}));else if("PHSP"===t||"PHXS"===t)window.__adobe_cep__.evalScript("var getUserIdPhotoshop = function() {var userId = '';try {var bhnc = app.charIDToTypeID('bhnc');var ref = new ActionReference();ref.putProperty(app.charIDToTypeID('Prpr'), bhnc);ref.putEnumerated(app.charIDToTypeID('capp'), app.charIDToTypeID('Ordn'), app.charIDToTypeID('Trgt'));var appDesc = app.executeActionGet(ref);if (appDesc.hasKey(bhnc)) {userId = appDesc.getString(bhnc);}} catch (e) {}return userId;};",(function(t){window.__adobe_cep__.evalScript("getUserIdPhotoshop()",(function(t){e(t)}))}));else{var r=window.__adobe_cep__.getCurrentImsUserId();e(r)}},i.prototype.showAAM=function(e,t,r,n,i,o){return window.__adobe_cep__.showAAM(e,t,r,n,i,o)},i.events={imsFetchAccessToken:"com.adobe.csxs.events.internal.ims.FetchAccessTokenWithStatus",imsFetchContinueToken:"com.adobe.csxs.events.internal.ims.FetchAccessTokenWithStatus",imsFetchProfile:"com.adobe.csxs.events.internal.ims.FetchAccessTokenWithStatus"},i.status={SUCCESS:"0",RESULT_PENDING:"1",NOT_CONFIGURED:"2",ALREADY_CONFIGURED:"3",NOT_IMPLEMENTED:"4",INVALID_PARAM:"5",INVALID_CONFIG:"6",INVALID_NID:"7",INVALID_APP_ID_ERROR:"8",INVALID_APP_VERSION_ERROR:"9",INVALID_PROFILE_STATUS:"10",SIGNIN_UNAVAILABLE:"11",FEATURE_UNAVAILABLE:"12",INVALID_OPERATING_CONFIG:"13",TRANSIENT_BUILD_EXPIRED:"14",INVALID_URL:"101",NETWORK_ERROR:"102",PROXY_AUTH_REQUIRED:"103",UNAUTHORISED_SERVER_CALL:"104",HTTP_REQUEST_CANCELLED:"105",HTTP_REQUEST_TIMEDOUT:"106",HTTP_FAILURE:"107",HTTP_SSL_FAILURE:"108",HTTP_BAD_REQUEST:"109",NO_CONTENT:"110",EXCEPTION_RETRIEVING_LATEST_COP:"201",FAILED_TO_VERIFY_LATEST_COP:"202",FAILED_TO_PARSE_LATEST_COP:"203",COP_RETRIEVAL_FAILED:"204",FAILED_TO_SAVE_NGL_PROFILE_LOCALLY:"205",FAILED_TO_FETCH_PRINCIPAL:"206",FAILED_TO_FETCH_CACHED_NGL_PROFILE:"207",FAILED_TO_PARSE_CACHED_NGL_PROFILE:"208",FAILED_TO_DELETE_CACHED_NGL_PROFILE:"209",NGL_PROFILE_STORAGE_FAILURE:"210",DEVICE_ID_PRINCIPAL_MISMATCH:"211",LATEST_COP_PRINCIPAL_MISMATCH:"212",LATEST_COP_DEV_TOKEN_HASH_MISMATCH:"213",ACCESS_TOKEN_COULD_NOT_BE_FETCHED:"214",LATEST_COP_COULD_NOT_BE_SAVED_LOCALLY:"215",LATEST_COP_RUNTIME_MODE_MISMATCH:"216",LATEST_COP_APP_ID_MISMATCH:"217",PRINCIPAL_NOT_FOUND:"218",PRINCIPAL_STORAGE_FAILURE:"219",INVALID_DEVICE_TOKEN_TO_FETCH_ACCESS_TOKEN:"220",CACHED_NGL_PROFILE_PRINCIPAL_MISMATCH:"221",RUNTIME_MODE_MISMATCH_IN_CACHED_NGL_PROFILE:"222",APP_ID_MISMATCH_IN_CACHED_NGL_PROFILE:"223",ACCESS_DENIED_TO_SAVE_NGL_PROFILE:"224",ACCESS_DENIED_TO_GET_CACHED_NGL_PROFILE:"225",ACCESS_DENIED_TO_DELETE_CACHED_NGL_PROFILE:"226",ACCESS_DENIED_IN_STORING_PRINCIPAL:"227",CACHED_NGL_PROFILE_NOT_FOUND:"228",WORKFLOW_RETRIEVAL_FAILED:"229",FAILED_TO_CREATE_REQUEST_BODY:"230",FAILED_TO_FETCH_SUSI_WF:"231",FAILED_TO_FETCH_WF:"232",FAILED_FETCH_IMS_JUMP_TOKEN:"233",FAILED_TO_PARSE_WF_JSON:"234",INVALID_WF_TYPE_IN_REPSONSE:"235",PARSING_ERROR:"236",STORAGE_PARSE_ERROR:"237",STORAGE_ACCESS_DENIED:"238",STORAGE_READ_ERROR:"239",STORAGE_WRITE_ERROR:"240",STORAGE_DELETE_ERROR:"241",STORAGE_DATA_NOT_FOUND:"242",STORAGE_INSUFFICIENT_MEMORY:"243",STORAGE_INSUFFICIENT_SIZE:"244",STORAGE_DATA_CONVERSION_ERROR:"245",STORAGE_DATA_RETRIEVAL_ERROR:"246",INVALID_ASNP_FRL_FILE:"247",CANNOT_FETCH_WITH_NGLU_NOTIFIED_TOKEN_TEMPORARILY:"248",SESSION_ID_MISMATCH:"249",FAILED_TO_LOAD_DATA_FROM_STORAGE_TO_MEMORY:"250",CLOCK_ROLLED_BACK:"251",CACHELIFETIME_ELAPSED:"252",NPDID_PRINCIPAL_MISMATCH:"253",EXCEPTION_ID_MISMATCH:"254",UNLICENSED_APP_DENY_COPS_CALL_PRINCIPAL_INVALID:"255",IMS_ERROR_ACCESS_DENIED:"301",IMS_ERROR_INVALID_CLIENT:"302",IMS_ERROR_INVALID_GRANT:"303",IMS_ERROR_UNAUTHORIZED_CLIENT:"304",IMS_ERROR_UNSUPPORTED_RESPONSE_TYPE:"305",IMS_ERROR_INVALID_SCOPE:"306",IMS_ERROR_UNSUPPORTED_GRANT_TYPE:"307",IMS_ERROR_BAD_REQUEST:"308",IMS_ERROR_TOU_CHANGED:"309",IMS_ERROR_IN_REVOKE_DEVICE_TOKEN:"310",IMS_ERROR_TOU_NOT_CURRENT:"311",IMS_ERROR_EVS_INVALID:"312",IMS_ERROR_ACCT_ACT_REQ:"313",IMS_ERROR_ACCT_DISABLED:"314",IMS_ERROR_SUBS_ACT_REQ:"315",IMS_ERROR_SUBS_NO_SUB:"316",IMS_ERROR_JUMP_URL_HANDLING_REQUIRED:"317",IMS_ERROR_ACCT_PASSWORD_UPDATED:"318",IMS_ERROR_ACCT_MIGRATE:"319",IMS_ERROR_ACCT_DOB_AGE:"320",IMS_ERROR_ACCESS_DENIED_NON_T1:"321",IMS_ERROR_UNKNOWN_ERROR:"322",IMS_ERROR_ACCESS_DENIED_T1:"323",IMS_ERROR_RETRY_REQUEST:"324",WORKFLOW_REQUIRED:"401",PROFILE_EXPIRED:"402",PROFILE_UNAVAILABLE:"403",PROFILE_DENIED:"404",PROFILE_OVERACTIVATED:"405",PROFILE_LOCALE_RECONFIGURE:"406",PROFILE_SIGNIN:"407",PROFILE_SIGNOUT:"408",PROFILE_REFRESH_NEEDED:"410",INTERNAL_ERROR:"501",RUNTIME_ERROR:"502",GENERIC_FAILURE:"503",USER_ABORT:"504",IMSMANAGER_ERROR_EXCEPTION:"3000",IMSMANAGER_ERROR_ENCODING:"3001",IMSMANAGER_SUCCESS_BROWSER_OPENED:"3002",IMSMANAGER_ERROR_BROWSER_FAILED_TO_OPEN:"3003",NGLMANAGER_ERROR_EXCEPTION:"4000",NGLMANAGER_ERROR_ENCODING:"4001",IMS_UNKNOWN_ERROR:"0xFFFF"},i.prototype.events=i.events;var o=r(76485),a=r(79799),s=r(75067),c=r(26964),l=r(78926);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const h=new class{constructor(){this._nglInterface=new i,this._imsInterface=new n}get imsRef(){if(!this._imsRefCache){const e=this.getEnvironment();this._imsRefCache=o.Z.IMSLib?o.Z.IMSLib.createRefEx(e.ims):this._imsInterface.imsConnectWithEndpoint(e.ims)}return this._imsRefCache}_getAccessTokenCEP(e,t){return new Promise(((r,n)=>{let i;const o=a=>{const s=a&&t.getToken(a);e.removeEventListener(t.eventName,o),clearTimeout(i),s?r(s):n()};e.addEventListener(t.eventName,o),e.imsFetchAccessToken(...t.funcParams),i=setTimeout((()=>{c.Z.log("IMS: Timed out fetching access token - trying process"),o()}),5e3)}))}_getAccessToken(e){if(!e)return Promise.resolve(null);const t=this.getEnvironment();if(o.Z.IMSLib)return new Promise((r=>o.Z.IMSLib.fetchAccessToken(this.imsRef,t.clientId,t.clientSecret,e,"",l.SCOPES,((e,t)=>r(e?null:t.access_token)))));let r,n;return o.Z._appInterface&&(r=o.Z._appInterface.getCurrentApiVersion()),n=r&&r.major>=11?this._getAccessTokenCEP(this._nglInterface,{funcParams:[t.clientId,t.clientSecret,l.SCOPES],eventName:this._nglInterface.events.imsFetchAccessToken,getToken:e=>e&&e.data&&e.data.details&&e.data.details.access_token}):this._getAccessTokenCEP(this._imsInterface,{funcParams:[this.imsRef,t.clientId,t.clientSecret,e,"",l.SCOPES],eventName:l.FETCH_TOKEN_EVENT,getToken:e=>e&&e.data&&e.data.access_token}),n.catch((()=>s.ZP.getAccessToken(e,t.clientId,t.clientSecret,l.SCOPES).then((e=>e&&e.access_token))))}get environmentType(){const e=a.Z.getServiceInfo(),t=e&&e.environment&&e.environment.toLowerCase(),r=o.Z.imsEnvironment;return t||r||"production"}getEnvironment(e){const t=l.CONFIGS[e||this.environmentType];return o.Z.imsClientId?Object.assign({},t,{clientId:o.Z.imsClientId,clientScope:l.SCOPES}):d(d({},t),{},{clientScope:l.SCOPES})}getAccessToken(e){return this._accessTokenCache?Promise.resolve(this._accessTokenCache):(this._getAccessTokenPromise||(c.Z.log("IMS: Fetching access token: environment is "+this.getEnvironment().label),this._getAccessTokenPromise=this._getAccessToken(e).then((e=>(delete this._getAccessTokenPromise,e?(this._accessTokenCache=e,e):Promise.reject("LOGGED_OUT"))))),this._getAccessTokenPromise)}clearAccessToken(){delete this._accessTokenCache}hasValidUser(){return window&&window.profile?window.profile.hasValidUser():o.Z.isLoggedIn()}getLoginURL(e,t){const r=l.CONFIGS[t]||this.getEnvironment();return`https://${r.ims}/ims/authorize/v1?client_id=${r.clientId}&response_type=token&scope=${l.SCOPES}&redirect_uri=${encodeURIComponent(e)}&locale=${o.Z.getLocale().replace("-","_")}`}getCurrentUserIdHelper(){return new Promise((e=>{this._nglInterface.imsGetCurrentUserIdHelper(e)}))}decodeToken(e){const t=e?e.split("."):[];if(3===t.length)try{return JSON.parse(atob(t[1]))}catch(e){return}}extractUserDataFromToken(e){const t=this.decodeToken(e);if(t)return{user:{id:t.user_id,clientId:t.client_id}}}}},51461:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>H});var n,i,o=r(50265),a=r(26077),s=r.n(a),c=r(99386),l=r(76485),u=r(76325),d=r(72373),p=r(85834),h=r(98218),f=r(4784),m=r(75067),g=r(26964),v=r(31870),y=r(16993),b=r(47320),_=r(36351),E=r(46903),w=r(39293),x=r(69233),L=r(74379),O=r(18580);function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach((function(t){P(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const I=r(59614),A={Operations:{"Export Library":!0},"Create Library":{"Import Library":!0},Typekit:{"Sync-Font":!0,Purchase:!0,Upgrade:!0,Conditional:!0,"Update Info":!0}},C={presets:"Presets"},k="Unknown";let D;const N={init(e,t){D=new(s())(e,t)},isInitialized:()=>void 0!==D,postEvent(e){D&&D.postEvent(e)},flush(){D&&D.flush()},setEnabled(e){D&&D.enable(e)}},R="offlineTypekitEvents",M=["ResizeObserver loop completed with undelivered notifications.","ResizeObserver loop limit exceeded"];let j=(n=class{constructor(){var e;this.STOCK_EVENTSOURCE={SEARCH:"search",CONTEXT_MENU:"context-menu"},this.initialized=!1,(e=i)&&Object.defineProperty(this,"_enabled",{enumerable:e.enumerable,configurable:e.configurable,writable:e.writable,value:e.initializer?e.initializer.call(this):void 0}),this.environment={},this.extraEventMetrics={},this.extraElementMetrics={},this._recordedEvents=o.observable.array(),window.onerror=(e,t,r,n)=>{if("string"==typeof e&&M.includes(e))return;const i=`${t}#${r}:${n}: ${e}`;this.reportError("Navigation","Runtime Error",i),g.Z.log("Uncaught Error: "+i)}}_recordEvent(e,t){this._recordedEvents.push({time:(new Date).valueOf(),message:e,details:t})}get recordedEvents(){return this._recordedEvents}clearRecordedEvents(){this._recordedEvents.clear()}get productLocation(){return"libraries/"+h.Z.getPluginVersion()}get userAccountStatus(){const e=l.Z.getProfile(),t=e&&e.RelationshipProfile&&e.RelationshipProfile[0]&&e.RelationshipProfile[0].appEntitlementStatus;return t&&t.toLowerCase()||this.userData&&this.userData.accountStatus}setEnvironment(e){e.product&&(this.environment.product=e.product),e.productVersion&&(this.environment.productVersion=e.productVersion),e.version&&(this.environment.version=e.version),e.os&&(this.environment.os=e.os),void 0!==e.offline&&(this.environment.offline=e.offline),e.consumer&&(this.environment.consumer=e.consumer)}addProductHeaders(e){return e&&(e["X-Product"]=this.environment.product+"/"+this.environment.productVersion,e["X-Product-Location"]="libraries/"+this.environment.version),e}isEnabled(e=!1){return e||!this.currentUserId?this._enabled:this._enabled||Boolean(d.Z.getDebugValue(`forceEnableAnalytics#${this.currentUserId}`))}analyticsApiKey(){return c.Z.currentProduct.config.ingestApiKey||u.Z.getEnvironment().clientId}_checkEnabled(){const e=m.ZP.ANALYTICS_ENABLED;return this._enabled!==e&&N.isInitialized()&&(g.Z.log("Analytics: "+e),this._enabled=e,N.setEnabled(e),m.ZP._ccLibraries.utils.metrics.setEnabled(e)),this.isEnabled()}setForceEnableAnalytics(e){this.currentUserId&&(d.Z.setDebugValue(`forceEnableAnalytics#${this.currentUserId}`,e),this._checkEnabled())}setUserId(e){const t=this.currentUserId!==e;if(this.currentUserId=e,this._checkEnabled(),e&&t){if(!this.initialized){this.initialized=!0;const e=e=>"error"===e.state&&"network"===e.errorType;(0,o.reaction)((()=>e(m.ZP.syncStatus)),(e=>this.setEnvironment({offline:e}))),this.setEnvironment({product:c.Z.currentProduct.config.fullName,version:h.Z.getPluginVersion(),os:l.Z.getOSInformation()}),l.Z.exec("CORE","getApplicationVersion",[]).then((e=>{this.setEnvironment({productVersion:e}),m.ZP._ccLibraries.utils.metrics.product=`${c.Z.currentProduct.config.code}/${e}`})).catch((()=>{})),c.Z.currentProduct.getUserData&&c.Z.currentProduct.getUserData((e=>{this.userData=e,m.ZP._ccLibraries.utils.metrics.userAccountStatus=this.userAccountStatus})),this._initializeIngest(this.currentUserId)}if(m.ZP._ccLibraries.utils.metrics.apiKey=this.analyticsApiKey(),m.ZP._ccLibraries.utils.metrics.productLocation=this.productLocation,m.ZP._ccLibraries.utils.metrics.platform="DESKTOP",m.ZP._ccLibraries.utils.metrics.sessionGuid=u.Z.imsRef,this._checkEnabled()&&l.Z.isLibrariesPanel()&&(c.Z.currentProduct.config.reportPublishedUnpublishedCountOnInit?(0,o.when)((()=>O.Z.hasLoaded()),(()=>{const e=m.ZP.libraries.filter((e=>(0,w.Ol)(e))),t=e.filter((e=>(0,w.Hc)(e))).length,r=e.filter((e=>(0,w.QE)(e))).length;this._reportInitializeEvent({event:{count:t,value:r}})})):this._reportInitializeEvent(),m.ZP.currentLibrary)){const e=m.ZP.currentLibrary&&m.ZP.currentLibrary.elements.length;this.reportEvent("Navigation","Library Panel","render","load-library",{event:{count:e}})}}}_reportInitializeEvent(e){this.reportEvent("Initialize","Init","render","view",e)}flush(){N.flush()}setExtraEventMetrics(e,t){this.extraEventMetrics[e]=t}getExtraEventMetrics(e){return this.extraEventMetrics[e]}clearExtraEventMetrics(e){delete this.extraEventMetrics[e]}_getApiReportGroup(e,t){const r=t?m.ZP.getLibraryById(t):m.ZP.currentLibrary;return r&&r.getGroupById(e)}_getApiReportElement(e,t){const r=t&&m.ZP.getLibraryById(t);return r&&r.getElementById(e)}reportStoredOfflineEvents(){let e=d.Z.getValue(R);e=e?JSON.parse(e):[],_.Z.isOnline&&e.length&&(e.forEach((function(e){e&&N&&N.postEvent(e)})),d.Z.setValue(R,JSON.stringify([])))}reportElementEvent(e,t,r,n,i,o){o=o||{};const a=this._getElementProperties(i);this.reportEvent(e,t,r,n,this._extendProperties(a,o),i&&i.library)}reportGroupEvent(e,t,r,n,i,o){o=o||{};const a=this._getGroupProperties(i);this.reportEvent(e,t,r,n,this._extendProperties(a,o),i&&i.library)}reportEvent(e,t,r,n,i,o){var a,s;if((null===(a=(s=c.Z.currentProduct.config).shouldDisableMetricsEvent)||void 0===a||!a.call(s,e,t,r,n,i,o))&&(e=`Library:${e}`,this._checkEnabled()&&(this.reportStoredOfflineEvents(),N.isInitialized()))){o=o||m.ZP.currentLibrary;const a=this._getLibraryProperties(o);i=i?this._extendProperties(i,a):a;const s=this.createBasePayload(),l={};if(l["content.action"]=i.content&&(i.content.actionUrl?i.content.actionUrl+"&guid="+s["event.guid"]:i.content.action),l["event.workflow"]=e,l["event.subcategory"]=t,l["event.type"]=r,l["event.subtype"]=n,this.updateEventPayload(i,l),g.Z.log("Analytics Event: "+JSON.stringify(l)),p.Z.get("recordMetrics")){const i=`${e}, ${t}, ${r}, ${n}`,o=`Event Payload: ${JSON.stringify(l,void 0,2)}\n\nBase Payload: ${JSON.stringify(s,void 0,2)}`;this._recordEvent(i,o)}const u=Object.assign({},s,l);if(c.Z.currentProduct.config.reportSDMEvent&&c.Z.currentProduct.config.reportSDMEvent(u),!_.Z.isOnline&&A[e]&&A[e][t]){const e=d.Z.getValue(R),t=e?JSON.parse(e):[];t.push(u),d.Z.setValue(R,JSON.stringify(t))}else N.postEvent(u)}}updateEventPayload(e,t){Object.keys(e).forEach((function(r){Object.keys(e[r]).forEach((function(n){const i=r+"."+n,o=e[r][n];t[i]||void 0===o||(t[i]=o)}))}))}reportError(e,t,r,n,i,o,a){(o=o||{}).event=o.event||{},n&&(o.event.error_code=n),i&&(o.event.error_type=i),r&&(o.event.error_desc=r),this.reportEvent(e,t,"render","error",o,a)}reportSearchEvent(e,t,r,n,i){t="Search"===t&&y.Z.isRootView()?"Root Search":t,this.reportEvent(e,t,r,n,i),"stock"===y.Z.getSearchType()&&this.reportStockEvent("Search",r,n)}reportOutgoingUrlEvent(e,t,r,n,i,o,a){let s=i+"&x-product="+this.environment.product+"/"+this.environment.productVersion+"&x-product-location=libraries/"+this.environment.version;a&&(s+="&as_channel=adobe_apps&as_campclass=brand&as_camptype=CCLibrary"),o=Object.assign({content:{actionUrl:s}},o),this.reportEvent(e,t,r,n,o)}_getAPIElementUpdateType(e){var t;const r=e.data||{},n=e.baseData||{};return r.name!==n.name?"rename":r.description!==n.description?r.description?n.description?"edit-note":"add-note":"delete-note":r.groups.length?(n.groups?null===(t=n.groups)||void 0===t?void 0:t.findIndex((({id:e})=>e===r.groups[0].id)):-1)>-1?"order":"add-to-group":"ungroup"}_getAPIGroupUpdateType(e){var t,r;return(null===(t=e.data)||void 0===t?void 0:t.name)!==(null===(r=e.baseData)||void 0===r?void 0:r.name)?"rename":"order"}reportAPIEvent(e){var t,r;const n="dependent"===e.name&&["moveElement"].includes(null===(t=e.link)||void 0===t?void 0:t.name)?null===(r=e.link)||void 0===r?void 0:r.name:e.name,i={},o=this.getExtraEventMetrics(n);if(o&&Object.keys(o).forEach((function(e){const t=o[e];void 0===i[e]&&null!=t&&(i[e]=t)})),i.disableReport)return;const a=i.opType,s=C[a],c=s||i.content&&i.content.category;let l="",u={};const d=(t,r,n,i,o={})=>{var a,c;const l=null===(a=e.library)||void 0===a?void 0:a.id,u=(null===(c=e.data)||void 0===c?void 0:c.id)||m.ZP.extractPathElementId(e.path);o.content=o.content||{},o.content.category=s||o.content.category;const d=this._getApiReportElement(u,l);if(d)return this.reportElementEvent(t,r,n,i,d,o);this.reportEvent(t,r,n,i,o,m.ZP.getLibraryById(l))},p=(e,t,r,n,o={})=>{const a=i.library;o.content=o.content||{},o.content.category=s||o.content.category,o.custom=o.custom||{},o.custom.library=o.custom.library||{},o.custom.library.asset_id=null==a?void 0:a.assetId,o.custom.library.name=(null==a?void 0:a.name)&&I(a.name),this.reportEvent(e,t,r,n,o,a)},h=(t,r,n,i,o={})=>{var a,c;const l=null===(a=e.library)||void 0===a?void 0:a.id,u=(null===(c=e.data)||void 0===c?void 0:c.id)||m.ZP.extractPathGroupId(e.path);o.content=o.content||{},o.content.category=s||o.content.category;const d=this._getApiReportGroup(u,l);d?setTimeout((()=>{o.content.status=o.content.status||(0,x.RH)(d),o.content.extension=o.content.extension||(0,x.Av)(d),this.reportGroupEvent(t,r,n,i,d,o)}),0):this.reportEvent(t,r,n,i,o,m.ZP.getLibraryById(l))};let f;switch(n){case"removeLibrary":u={event:{pagename:i.event&&i.event.pagename,value:null,count:null}},p("Library Operations","Library","click","delete",u);break;case"createElement":switch(a){case"addButton":l="Plus";break;case"onboarding":l="Onboarding";break;case"dragDrop":l="Bulk Upload";break;case"dragToPanel":l="Drag Drop From Layers";break;case"manualVacuum":l="Import Document";break;case"presetNameDlg":case"swatchPanelExisting":case"swatchPanelNew":case"characterStyleExisting":case"characterStyleNew":case"paragraphStyleExisting":case"paragraphStyleNew":l="Presets";break;case"Toolbar":l="Toolbar";break;case"Empty State":l="Empty State";break;case"canvasContextMenu":l="Canvas Context Menu";break;default:l=s||c}u={event:{value:"single",count:1,pagename:i.event&&i.event.pagename},content:{category:l,extension:i.extension,size:i.size},ccl:T({},i.ccl)},d("Add Assets","Element","click","add",u);break;case"copyElement":u={event:{value:"single",count:1,pagename:null},content:{category:c}},d("Add Assets","Element","click","add",u);break;case"moveElement":"insert"===e.type&&(u={event:{value:"single",count:1,pagename:null},content:{category:c||"Right Click"}},d("Element Operations","Element","click","move-to-library",u));break;case"updateElement":if(f=this._getAPIElementUpdateType(e),!f||!c&&["order","add-to-group","ungroup"].includes(f))break;u={event:{count:1,value:"single",pagename:null},content:{category:c||"Click"}},d("Element Operations","Element","click",f,u);break;case"updateElementContent":u={event:{value:"single",count:null,pagename:null},content:{category:"Right Click"}},d("Element Operations","Element","click","replace"===a?"replace":"edit",u);break;case"removeElement":u={event:{value:"single",count:null,pagename:null},content:{category:c}},d("Element Operations","Element","click","delete",u);break;case"restoreElement":u={event:{value:"single",count:null,pagename:null},content:{category:"Click"}},d("Element Operations","Element","click","undo-delete",u);break;case"createGroup":h("Create Group","Group","click","create",{content:{category:c}});break;case"updateGroup":f=this._getAPIGroupUpdateType(e),u={event:{value:null,count:null},content:{category:c||"Click"}},"order"===f&&(u.event={value:i.groupOrder,count:null,pagename:null}),h("Group Operations","Group","click",f,u);break;case"removeGroup":u={event:{value:null,count:null},content:{type:"group",status:i.groupLevel}},i.includeContents&&(u.event={count:i.numberElementsInGroup}),h("Group Operations","Group","click",i.includeContents?"delete-with-assets":"delete",u);break;case"copyGroup":i.includeContents&&(u={event:{count:i.numberElementsInGroup}}),h("Group Operations","Group","click","copy-to-library",u);break;case"moveGroup":i.includeContents&&(u={event:{count:i.numberElementsInGroup}}),h("Group Operations","Group","click","move-to-library",u)}["copyElement","moveElement","deleteElement","restoreElement","updateElement","copyGroup","moveGroup","removeGroup","updateGroup"].includes(n)||(i.library&&(i.library=i.library.data),this._reportToProduct(n,i))}reportAPIError(e){this.reportError(void 0,void 0,e)}reportUseElement(e,t){y.Z.isSearchMode()&&(this.reportEvent("Search",y.Z.isRootView()?"Root Search":"Search","click","result",{ui:{filter:y.Z.getSearchType()}}),y.Z.isStockSearchMode()&&this.reportEvent("Stock","Stock Search","click","success",{ui:{filter:"stock"}}));const r=this.getExtraEventMetrics("reportUseElement");this.clearExtraEventMetrics("reportUseElement");const n=e.element,i=r&&r.isRightClick,o=T({content:{category:"dragDrop"===t?"Drag Drop":i?"Right Click":"Click"},"env.com.name":"CC Libraries Panel"},this._getUIPayload());m.ZP._ccLibraries.utils.metrics.reportUseElement(n,o)}reportCreateLink(){this._checkEnabled()&&this.reportAPIEvent({name:"createLink"})}reportCheckoutElement(){this._checkEnabled()&&this.reportAPIEvent({name:"checkoutElement"})}reportPublishBrand(e,t){m.ZP._ccLibraries.utils.metrics.reportPublishBrand(e,t)}reportUnpublishBrand(e,t){m.ZP._ccLibraries.utils.metrics.reportUnpublishBrand(e,t)}reportDuplicateBrand(e,t){m.ZP._ccLibraries.utils.metrics.reportDuplicateBrand(e,t)}reportEditorsButtonClick(e,t){m.ZP._ccLibraries.utils.metrics.reportEditorsButtonClick(e,t)}reportStockEvent(e,t,r,n,i){if((n=n||{}).ui=n.ui||{},"Search"===e){const e=y.Z.getStockSearchOptionValuesArray();n.ui.filter=e.length?e.join(", "):"none"}if(i){if(i.library)return this.reportElementEvent("Stock",e,t,r,i,n);n.content=n.content||{},n.content.name=i.title,n.content.type=i.content_type,n.content.status=i.is_licensed?"licensed":"unlicensed"}this.reportEvent("Stock",e,t,r,n)}_reportToProduct(e,t){this._checkEnabled()&&c.Z.currentProduct.reportEvent&&c.Z.currentProduct.reportEvent(e,t)}createBasePayload(e=!1){const t={"event.guid":"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),"event.category":"DESKTOP","event.user_guid":this.currentUserId||k,"event.offline":!!this.environment.offline,"event.language":l.Z.getLocale(),"event.session_guid":u.Z.imsRef,"event.context_guid":k,"source.name":c.Z.currentProduct.config.sourceName||c.Z.currentProduct.config.code,"source.client_id":u.Z.getEnvironment().clientId,"source.version":this.environment.productVersion||k,"source.platform":l.Z.getOSName(),"source.os_version":l.Z.getOSVersion(),"user.service_code":"creativecloud","user.service_level":this.userAccountStatus,"env.com.name":"CC Libraries Panel","env.com.version":h.Z.getPluginVersion()};try{var r,n;t["event.org_guid"]=(null===(r=window)||void 0===r||null===(n=r.top)||void 0===n?void 0:n.corpId)||k}catch(e){t["event.org_guid"]=k}return c.Z.currentProduct.config.reportUserRoleInAnalytics&&(void 0===l.Z.rawIsBrandCreator?t["content.author"]=k:t["content.author"]=l.Z.rawIsBrandCreator?"editor":"collaborator"),e||(t["consumer.name"]=this.environment.consumer||c.Z.currentProduct.config.code,t["consumer.version"]=l.Z.getAppVersion(),t["consumer.platform"]=l.Z.getOSName(),t["consumer.os_version"]=l.Z.getOSVersion()),Object.assign(t,this._getUIPayload(e)),t}_getUIPayload(e=!1){const t={};return e||(t["ui.view_type"]=y.Z.viewState,t["ui.sort_order"]=y.Z.elementSortState+(y.Z.elementSortDescendingState?"-descending":""),l.Z.isLibraryManagerWindowOpen()||(y.Z.isRootView()?t["event.pagename"]="Root View":y.Z.isOneUpMode()?(t["event.pagename"]="1Up View",m.ZP.currentLibrary&&(t["event.pagetype"]=m.ZP.currentLibrary.documentId?"published":"traditional")):m.ZP.currentLibrary.isDocumentAssets?t["event.pagename"]="Document Assets View":(t["event.pagename"]="Library View",t["event.pagetype"]=m.ZP.currentLibrary.documentId?"published":"traditional")),y.Z.isSearchMode()||("type"===y.Z.viewByState?t["ui.filter"]=`by-${y.Z.viewByState}`:t["ui.filter"]=`by-group-${y.Z.viewByGroupMode}`)),c.Z.currentProduct.isExpandedView&&(t["event.pagetype"]=c.Z.currentProduct.isExpandedView()?"expanded-view":"editor-view"),t["ccl.is_mobile_view"]=!!l.Z.isMobileView,t}_initializeIngest(e){N.init({log(e){p.Z.get("logIngestAPI")&&g.Z.log(e)},getAccessToken(t){u.Z.getAccessToken(e).then((e=>{t(null,e)}),(function(e){t(e)}))},clearAccessToken(){u.Z.clearAccessToken()}},{ENVIRONMENT:"Staging"===u.Z.getEnvironment().label?"stage":"prod",ANALYTICS_ENABLED:this.isEnabled(),ANALYTICS_API_KEY:this.analyticsApiKey(),ANALYTICS_X_PRODUCT:this.environment.product+"/"+this.environment.productVersion,ANALYTICS_X_PRODUCT_LOCATION:this.productLocation,ANALYTICS_USER_AGENT:window.navigator.userAgent,ANALYTICS_PROJECT:c.Z.ANALYTICS_PROJECT,ANALYTICS_INGEST_TYPE:c.Z.ANALYTICS_INGEST_TYPE,ANALYTICS_MAX_QUEUED_EVENTS:c.Z.ANALYTICS_MAX_QUEUED_EVENTS,ANALYTICS_DEBOUNCE:c.Z.ANALYTICS_DEBOUNCE})}_getLibraryProperties(e){if(!e)return{};let t="private";(0,E.D3)(e)?t="follow":e.collaboration&&(t="outgoing"===e.collaboration?"owner":e.isWritable?"edit":"view"),t=e.toolkitId?"presets":t;const r=c.Z.currentProduct.config.reportUserRoleInAnalytics?{}:{content:{author:t}},n=e.name&&I(e.name);return T(T({},r),{},{event:{context_guid:e.id},ccl:{library_storage_type:this._libraryStorageType(e)},"custom.library":{filter:(0,w.Ol)(e)?"brands":"libraries",asset_id:null==e?void 0:e.assetId,name:n}})}_getElementProperties(e){var t;if(!e)return{};const r=e.getPrimaryRepresentation(),n=r&&r.getValue(c.Z.STOCK_NAMESPACE,c.Z.STOCK_DATA_KEY),i=this._getLibraryProperties(e.library);i.ccl=i.ccl||{library_storage_type:null},n&&(i.ccl.tracking_data=JSON.stringify(n));const o={isLinked:!1};if(e.isLinked){const t=e.linkedElement,r=t&&t.library;o.isLinked=e.isLinked,o.linkedLibraryType=r&&r.documentId?"published":"traditional"}i.ccl.asset_linked_data=JSON.stringify(o),i.content=i.content||{author:null},i.content.id=e.id,i.content.action=e.getValue&&e.getValue("capture","data")?null===(t=e.getValue("capture","data").app)||void 0===t?void 0:t.split("-")[0]:e.createdContext&&e.createdContext.app,i.content.mimetype=e.type,i.content.type=b.Z.getShortType(e.type),i.content.size=f.Z.getSize(e),i.content.extension=b.Z.getBadgeText(e),v.Jw(e)&&(i.content.status=v.kv(e)?"licensed":"unlicensed");const a=this._getElementMetaData(e);return this._extendProperties(i,a),i}_getGroupProperties(e){if(!e)return{};const t=this._getLibraryProperties(e.library);return t.content=t.content||{author:null},t.content.id=e.id,t.content.type="group",t}_extendProperties(e,t){return Object.keys(t).forEach((r=>{e[r]=Object.assign(e[r]||{},t[r])})),e}_getElementMetaData(e){const t={"custom.library":{asset_role:b.Z.getElementRole(e)||"none",asset_priority:b.Z.getElementPriority(e)||"none"}};let r;switch(b.Z.getShortType(e.type)){case"color":r=this._getColorElementMetaData(e);break;case"font":r=this._getFontElementMetaData(e);break;case"image":r=this._getImageElementMetaData(e);break;default:r={}}return T(T({},t),r)}_getColorElementMetaData(e){const t=e.getPrimaryRepresentation(),r=null==t?void 0:t.getValue("color","data");if(null!=r&&r.value){const e=r.value,t=e.r,n=e.g,i=e.b;return{"custom.content":{name:(0,L.vq)(t,n,i)}}}return{}}_getFontElementMetaData(e){const t=e.getPrimaryRepresentation(),r=null==t?void 0:t.getValue("font","data");return r?{"custom.content":{name:r.postScriptName,status:r.isPremium?"premium":"free"}}:{}}_getImageElementMetaData(e){return{"custom.content":{name:e.name||""}}}_libraryStorageType(e){return(0,E.$_)(e)?"business":"user"}},F=n.prototype,Z="_enabled",B=[o.observable],G={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}},U={},Object.keys(G).forEach((function(e){U[e]=G[e]})),U.enumerable=!!U.enumerable,U.configurable=!!U.configurable,("value"in U||U.initializer)&&(U.writable=!0),U=B.slice().reverse().reduce((function(e,t){return t(F,Z,e)||e}),U),void 0===U.initializer&&(Object.defineProperty(F,Z,U),U=null),i=U,n);var F,Z,B,G,U;const H=new j},8502:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>v});var n=r(26077),i=r.n(n),o=r(51461),a=r(26964),s=r(76325),c=r(99386),l=r(10470);const u="create",d="delete",p="move",h="Creation",f="Element",m="Library",g="success",v=new class{constructor(){this.operationalIngestClient=void 0}initializeOperationalMetrics(e){this.operationalIngestClient=new(i())({log(e){a.Z.log(e)},getAccessToken(t){s.Z.getAccessToken(e).then((e=>{t(null,e)}),(function(e){t(e)}))},clearAccessToken(){s.Z.clearAccessToken()}},{ENVIRONMENT:"Staging"===s.Z.getEnvironment().label?"stage":"prod",ANALYTICS_API_KEY:o.ZP.analyticsApiKey(),ANALYTICS_X_PRODUCT:o.ZP.environment.product+"/"+o.ZP.environment.productVersion,ANALYTICS_X_PRODUCT_LOCATION:"libraries/"+o.ZP.environment.version,ANALYTICS_USER_AGENT:window.navigator.userAgent,ANALYTICS_PROJECT:c.Z.ANALYTICS_PROJECT,ANALYTICS_INGEST_TYPE:c.Z.ANALYTICS_INGEST_TYPE,ANALYTICS_MAX_QUEUED_EVENTS:c.Z.ANALYTICS_MAX_QUEUED_EVENTS,ANALYTICS_DEBOUNCE:c.Z.ANALYTICS_DEBOUNCE}),this.operationalIngestClient.enable(!0)}getElementPayload(e){const t={};return o.ZP.updateEventPayload(o.ZP._getElementProperties(e),t),Object.assign({},o.ZP.createBasePayload(!0),t)}getLibraryPayload(e){const t={};return o.ZP.updateEventPayload(o.ZP._getLibraryProperties(e),t),Object.assign({},o.ZP.createBasePayload(!0),t)}addExtraMetrics(e,t){return t.event&&Object.keys(t.event).forEach((r=>e[`event.${r}`]=t.event[r])),t.ccl&&Object.keys(t.ccl).forEach((r=>e[`ccl.${r}`]=t.ccl[r])),e}sendCreateLibraryEvent(e,t={}){const r={"event.workflow":h,"event.subcategory":m,"event.type":g,"event.subtype":u};return this.sendLibraryEvent(r,e,t)}sendCopyElementEvent(e){const t={"event.workflow":h,"event.subcategory":f,"event.type":g,"event.subtype":"copy"};return this.sendElementEvent(t,e)}sendCreateElementEvent(e,t={}){const r={"event.workflow":h,"event.subcategory":f,"event.type":g,"event.subtype":u};return this.sendElementEvent(r,e,t)}sendDeleteElementEvent(e){const t={"event.workflow":h,"event.subcategory":f,"event.type":g,"event.subtype":d};return this.sendElementEvent(t,e)}sendDeleteLibraryEvent(e){const t={"event.workflow":h,"event.subcategory":m,"event.type":g,"event.subtype":d};return this.sendLibraryEvent(t,e)}sendDuplicateElementEvent(e){const t={"event.workflow":h,"event.subcategory":f,"event.type":g,"event.subtype":"duplicate"};return this.sendElementEvent(t,e)}sendMoveElementEvent(e){const t={"event.workflow":h,"event.subcategory":f,"event.type":g,"event.subtype":p};return this.sendElementEvent(t,e)}sendMoveLibraryEvent(e){const t={"event.workflow":h,"event.subcategory":m,"event.type":g,"event.subtype":p};return this.sendLibraryEvent(t,e)}sendPublishLibraryEvent(e){const t={"event.workflow":h,"event.subcategory":m,"event.type":g,"event.subtype":"publish"};return this.sendLibraryEvent(t,e)}sendUpdateElementEvent(e){const t={"event.workflow":h,"event.subcategory":f,"event.type":g,"event.subtype":"update"};return this.sendElementEvent(t,e)}sendElementEvent(e,t,r={}){var n;return null===(n=t.committed)||void 0===n?void 0:n.then((()=>{const n=Object.assign({},this.getElementPayload(t),e);0!==Object.keys(r).length&&this.addExtraMetrics(n,r),this.sendEvent(n)})).catch((()=>{}))}sendLibraryEvent(e,t,r={}){var n;return null===(n=t.committed)||void 0===n?void 0:n.then((()=>{const n=Object.assign({},this.getLibraryPayload(t),e);0!==Object.keys(r).length&&this.addExtraMetrics(n,r),this.sendEvent(n)})).catch((()=>{}))}sendEvent(e){try{a.Z.log("Operational Event: "+JSON.stringify(e)),this.operationalIngestClient.postEvent(e)}catch(e){l.Tb(e),a.Z.log("Error sending Operational Event: "+e)}}}},15909:(e,t,r)=>{"use strict";r.d(t,{Z:()=>x});var n=r(99386),i=r(47320),o=r(50777),a=r(53849),s=r(75067),c=r(84074),l=r(76485),u=r(51461),d=r(86351),p=r(16993),h=r(31870),f=r(46903),m=r(84824);class g{constructor(){this._editRequestRefs={},this._chooseRequestRef=void 0}setEditRequestRef(e,t){e&&(this._editRequestRefs[e]=t)}getEditRequestRef(e){return this._editRequestRefs[e]}clearEditRequestRef(e){delete this._editRequestRefs[e]}setChooseRequestRef(e){this._chooseRequestRef=e}getChooseRequestRef(){return this._chooseRequestRef}}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(){b=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function _(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function E(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){_(o,n,i,a,s,"next",e)}function s(e){_(o,n,i,a,s,"throw",e)}a(void 0)}))}}function w(e){const t=i.Z.findUsableRepresentation(e);return t?t.getContentPath():e.getThumbnailPath()}const x=new class{constructor(){this._appRequestManager=new g,this._listenerManager=(0,d.N)(this,["elementDropped"])}invokeChooseElement({requestRef:e,elementRef:t,elementName:r,operation:i,elementType:o}){var c=this;return E(b().mark((function l(){var u,d,h;return b().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(c._appRequestManager.setChooseRequestRef(e),!t){l.next=6;break}return l.next=4,s.ZP.resolveElementReference(t);case 4:u=l.sent,r=r||u&&u.name;case 6:d=n.Z.currentProduct.customOverlayMessage&&n.Z.currentProduct.customOverlayMessage(i,o),"place"===i?p.Z.setRelinkLayerMode({message:(0,m.Iu)("DL_RELINK_PLACE_MESSAGE"),actionMessage:(0,m.Iu)("DL_PLACE"),missing:!1,overlayMessage:d||(0,m.Iu)("DL_RELINK_PLACE_OVERLAY_MESSAGE")},o):p.Z.setRelinkLayerMode({message:(0,m.Iu)("DL_RELINK_"+i.toUpperCase()+"_MESSAGE",{elementName:r}),actionMessage:(0,m.Iu)("DL_RELINK"),missing:t&&!u,overlayMessage:d||(0,m.Iu)("DL_RELINK_RELINK_OVERLAY_MESSAGE")},o),((h=a.Z.selection).length>1||h[0]&&h[0].type!==n.Z.IMAGE_ELEMENT_TYPE)&&a.Z.clearSelection();case 10:case"end":return l.stop()}}),l)})))()}cancelChooseElement(){p.Z.resetMode()}openElementForEdit({elementRef:e,requestRef:t}){var r=this;return E(b().mark((function n(){var o,c;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,s.ZP.resolveElementReference(e);case 2:if((o=n.sent)&&(0,f.ix)(o)){n.next=5;break}return n.abrupt("return");case 5:r._appRequestManager.setEditRequestRef(e,t),(c=i.Z.getEditOperations(o).find((e=>e.onEditItem)))&&(u.ZP.reportElementEvent("Operations","Edit","click","start",o),a.Z.revealElement(o),c.apply());case 8:case"end":return n.stop()}}),n)})))()}revealElement({elementRef:e}){return E(b().mark((function t(){var r;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.ZP.resolveElementReference(e);case 2:r=t.sent,a.Z.revealElement(r);case 4:case"end":return t.stop()}}),t)})))()}reportElementLinkCreated({elementRef:e,cause:t}){return E(b().mark((function r(){var n;return b().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,s.ZP.resolveElementReference(e);case 2:(n=r.sent)&&u.ZP.reportCreateLink(n,t||"createElement");case 4:case"end":return r.stop()}}),r)})))()}reportElementDropped({elementRef:e,details:t,linked:r,x:n,y:o}={}){var a=this;return E(b().mark((function c(){var l,d;return b().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return a._listenerManager.notify("elementDropped",{elementRef:e,details:t,linked:r,x:n,y:o}),c.next=3,s.ZP.resolveElementReference(e);case 3:if(l=c.sent,d=l&&i.Z.findUsableRepresentation(l)){c.next=7;break}return c.abrupt("return");case 7:u.ZP.reportUseElement(d,"dragDrop",t),("string"==typeof r?"true"===r.toLowerCase():r)&&u.ZP.reportCreateLink(l,"dragDrop");case 10:case"end":return c.stop()}}),c)})))()}createLibrary({name:e,enforceUniqueName:t,makeCurrent:r}){let n=e||(0,m.Iu)("DL_DEFAULT_LIBRARY_NAME");if(t){const e=s.ZP.libraries.filter((e=>!e.isDeletedFromServer)).map((e=>e.name)),t=n;let r=2;for(;e.includes(n);)n=t+" "+r++}const i=s.ZP.createLibrary(n);return i&&r&&(c.ZP.closeDialog(),p.Z.resetMode(),s.ZP.currentLibrary=i),i}setCurrentLibrary({libraryId:e}){s.ZP.waitForInitialLoad().then((()=>{const t=s.ZP.getLibraryById(e);t&&(p.Z.resetMode(),s.ZP.currentLibrary=t)}))}invokeVisualSearch({imagePath:e,deleteFileAfterUse:t}){p.Z.setFindSimilarSearchMode(void 0,void 0,e,t)}launchCaptureWorkflow({assetType:e,imageUriList:t}){p.Z.resetMode(),o.x3(e,t)}startDragFromProduct(e){p.Z.startDragFromProduct(e)}endDragFromProduct(){p.Z.endDragFromProduct()}_getElementEventData(e,t,r){const n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({elementRef:e.getLegacyReference(),name:e.name,libraryName:e.library.name,modifiedTime:(0,f.RW)(e),creationTime:e.created,data:[t]},r);return h.Jw(e)&&(n.adobeStock={id:h.wq(e),license:h.kv(e)}),n}startListening(){l.Z.connectProductInterface(this)}stopListening(){l.Z.disconnectProductInterface()}sendElementCreated(e,t){l.Z.notifyElementCreated&&w(e).then((r=>{const n=t||{},i=n.documentId,o=n.layerIds,a=this._getElementEventData(e,r,{appMetadata:t,documentId:i,layerIds:o});l.Z.notifyElementCreated(a)}))}sendElementChosen(e){if(!l.Z.notifyElementChosen)return;const t=this._appRequestManager.getChooseRequestRef();e?w(e).then((r=>{const n=this._getElementEventData(e,r,{requestRef:t});l.Z.notifyElementChosen(n)})):l.Z.notifyElementChosen({requestRef:t})}sendElementUpdated(e){if(!e||!l.Z.notifyElementUpdated)return;const t=e.element,r=t.getLegacyReference(),n=this._appRequestManager.getEditRequestRef(r);e.getContentPath().then((e=>{const r=this._getElementEventData(t,e,{requestRef:n});l.Z.notifyElementUpdated(r)}))}elementEditCompleted(e){u.ZP.reportElementEvent("Operations","Edit","render","success",e);const t=e.getLegacyReference();this._appRequestManager.clearEditRequestRef(t)}}},96912:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(86351);const i="vulcan.SuiteMessage.";class o{constructor(){this._listenerManager=(0,n.N)()}init(){}get _vulcanPrefix(){return i}get ccLibProcessSpecifier(){return"cclibraries"}get ccLibProcessSAPCode(){return"LIBS"}handlePortDiscoveryCall(e,t,r,n){let o;e=e.replace(i,""),r=r.replace(i,"");const a=e=>{this.removeMessageListener(r,a),clearTimeout(o),n(e?e.payload?e.payload:e:"NO_VULCAN_MESSAGE")};this.addMessageListener(r,a),o=setTimeout(a,3e3),this.sendMessage(e,t)}call({requestType:e,responseType:t,payload:r="",timeout:n=3e3}){return new Promise(((i,o)=>{let a=null;const s=(e,r)=>{if(a){if(this.removeMessageListener(t,s),clearTimeout(a),a=null,r)return o(new Error("timed-out"));i(e)}};this.addMessageListener(t,s),a=setTimeout((()=>s(null,!0)),n),this.sendMessage(e,r)}))}}},84074:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>m,aS:()=>f});var n,i,o,a,s,c=r(50265),l=r(76485),u=r(89526);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}function p(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function h(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let f=(n=c.observable.ref,o=h((i=class{constructor(){this._dialogs={},p(this,"_currentDialog",o,this),p(this,"_openDialog",a,this),p(this,"_closeDialog",s,this),this.openDialog=(e,t,r)=>{this._openDialog(e,t,r)},this.closeDialog=()=>{this._closeDialog()}}init(e){e.forEach((e=>e&&this.register(e)))}register(e){this._dialogs[e.dialogName]=e}get dialog(){const e=this._currentDialog;if(e&&(null===l.Z||void 0===l.Z||!l.Z.dialogOverrides||!l.Z.dialogOverrides[e.name])){const t=this._dialogs[e.name];return!t.canDisplay||t.canDisplay()?u.createElement(t,d({},e.params||{},{close:this.closeDialog})):void 0}}get isDialogAlwaysInline(){const e=this._currentDialog,t=e&&this._dialogs[e.name];if(t)return t.isAlwaysInline}get isTour(){const e=this._currentDialog,t=e&&this._dialogs[e.name];if(t)return t.isTour}get dialogName(){if(this._currentDialog)return this._currentDialog.name}get dialogs(){return this._dialogs}}).prototype,"_currentDialog",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=h(i.prototype,"_openDialog",[c.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(e,t,r)=>{var n;if(null===(n=l.Z.hideDialog)||void 0===n||n.call(l.Z),!this._dialogs[e])throw new Error(`Open Dialog: Dialog of type ${e} does not exist.`);if(l.Z.dialogOverrides&&l.Z.dialogOverrides[e])return this._currentDialog={name:e,params:t},l.Z.dialogOverrides[e](t,{close:[()=>{this._currentDialog=void 0}]});this._currentDialog={name:e,params:t},this._onCloseCallback=r}}}),s=h(i.prototype,"_closeDialog",[c.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this._currentDialog=void 0,this._onCloseCallback&&this._onCloseCallback(),this._onCloseCallback=void 0}}}),h(i.prototype,"dialog",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"dialog"),i.prototype),h(i.prototype,"isDialogAlwaysInline",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"isDialogAlwaysInline"),i.prototype),h(i.prototype,"isTour",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"isTour"),i.prototype),i);const m=new class extends f{constructor(...e){super(...e),this.openDialog=(e,t,r)=>{super._openDialog(e,t,r),l.Z.addEventListener("canvasClick",this.closeDialog)},this.closeDialog=()=>{super._closeDialog(),l.Z.removeEventListener("canvasClick",this.closeDialog)}}}},80804:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(76485),i=r(34038);const o=new RegExp(/^.*_([0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}).*$/),a=new class{constructor(){this._nextListenerId=0,this._listenerMap={},this._onDocumentStateChangeEvent=({type:e,path:t})=>{Object.keys(this._listenerMap).forEach((r=>{const i=this._listenerMap[r],o=i.tempFileId||i.fileName;t.includes(o)&&("deactivated"===e?n.Z.isDocumentOpen(i.path).then((e=>!e&&i.callback("closed"))):"closed"===e?i.callback("closed"):"saved"===e&&this._updateModifiedTimestamp(i)&&i.callback("saved"))}))}}_getNewListenerId(){return"documentListener"+this._nextListenerId++}_updateModifiedTimestamp(e){let t;if(e.path){const r=i.g5(e.path);t=r&&r.mtime}const r=!e.mtime||!t||e.mtime.getTime()!==t.getTime();return e.mtime=t,r}_ensureListener(){if(!n.Z.addDocumentChangeListener)return;const e=Object.keys(this._listenerMap).length;1===e?n.Z.addDocumentChangeListener(this._onDocumentStateChangeEvent):0===e&&n.Z.removeDocumentChangeListener(this._onDocumentStateChangeEvent)}startListening(e,t,r){if(Object.keys(this._listenerMap).some((e=>this._listenerMap[e].path===t)))return;const n=o.exec(t),i=n&&n[1],a={fileName:e,path:t,tempFileId:i,callback:r},s=this._getNewListenerId();return this._updateModifiedTimestamp(a),this._listenerMap[s]=a,this._ensureListener(),s}stopListening(e){this._listenerMap[e]&&(delete this._listenerMap[e],this._ensureListener())}}},69923:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(46931),i=r(91854);class o{constructor(e){this._activate=()=>{i.Z.handleHoldDragStart(this)},this._groupActivateTimeout=null,this._dropTarget=e}get x(){return this._dropTarget.x}get y(){return this._dropTarget.y}get width(){return this._dropTarget.width}get height(){return this._dropTarget.height}get group(){return this._dropTarget.group}get mainDropTarget(){return this._dropTarget.mainDropTarget}get viewState(){return n.Z.panel.viewState}get isHoldingDrag(){var e;return i.Z.isHoldingDragOverGroup(this.group)||(null===(e=this.mainDropTarget)||void 0===e?void 0:e.isHoldingDrag)}onDrop(){throw"You need to implement this in the subclass."}onActivate(){this.group&&this.group.id&&(this._groupActivateTimeout=setTimeout(this._activate,1e3))}onDeactivate(){clearTimeout(this._groupActivateTimeout),i.Z.handleHoldDragEnd()}}},99987:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(69923),i=r(46903),o=r(51461),a=r(75067),s=r(46931),c=r(69233),l=r(99386);class u extends n.Z{constructor(...e){super(...e),this._groupPopoverTrigger=0}get type(){return"element"}get beforeElement(){return this._dropTarget.beforeElement}get afterElement(){return this._dropTarget.afterElement}get isRowEnd(){return this._dropTarget.isRowEnd}isValidDropTarget(e){const t=e&&e.length>0&&[...new Set(e.map((e=>e.getGroups&&e.getGroups()[0])))],r=e&&Array.isArray(e)&&e.find((e=>e.library&&e.library.isDocumentAssets)),n=l.Z.currentProduct.config.readOnlyGroups;return!(r&&!(0,c.mB)(t,this.group)||n)&&(e.length>1||e[0]!==this._dropTarget.afterElement&&e[0]!==this._dropTarget.beforeElement)}onDrop(e,t,r=!1){t&&t.altKey?(0,i.IO)(!1,e,a.ZP.currentLibrary).then((e=>{this._dropElements(e)})):this._dropElements(e,r)}_dropElements(e,t=!1){if(!e||0===e.length)return;if(!this.group)return this._handleDropOnType(t);if("*"===this.group.id){if(e.every((e=>0===e.getGroups().length)))return;return o.ZP.reportEvent("Element Operations","Element","click","ungroup",{event:{value:"agg",count:e.length},content:{category:"Drag Drop"}},a.ZP.currentLibrary),o.ZP.setExtraEventMetrics("updateElement",{subtype:"ungroup",content:{category:"Drag Drop"}}),void(0,i.c_)(e)}const r=e.every((e=>!!e.getOrderInGroup(this.group)))?"order":"add-to-group";o.ZP.reportEvent("Element Operations","Element","click",r,{event:{value:"agg",count:e.length},content:{category:"Drag Drop"}},a.ZP.currentLibrary),o.ZP.setExtraEventMetrics("updateElement",{subtype:r,content:{category:"Drag Drop"}});const n="order"!==s.Z.panel.viewState.elementSortState;!this.afterElement&&!this.beforeElement||n?(n&&(e=e.filter((e=>!e.getOrderInGroup(this.group)))),(0,i.c_)(e,this.group)):(0,i.l)(e,this.afterElement,this.beforeElement),this.onDeactivate()}_handleDropOnType(e=!1){if(this._groupPopoverTrigger++,!(this._groupPopoverTrigger<l.Z.DRAG_COUNT_TRIGGER_MAX))return e||l.Z.currentProduct.config.showCustomGroupViewPopover?void(l.Z.currentProduct.config.showCustomGroupViewPopover&&(this._groupPopoverTrigger=0,l.Z.currentProduct.config.showCustomGroupViewPopover())):(this._groupPopoverTrigger=0,s.Z.panel.dialogManager.openDialog("viewByGroupPopover"))}}},91854:(e,t,r)=>{"use strict";r.d(t,{Z:()=>F});var n=r(50265),i=r(16993),o=r(99386),a=r(31870),s=r(6739),c=r(75067),l=r(84074),u=r(84824),d=r(76485),p=r(4784),h=r(47320),f=r(46753),m=r(15909),g=r(98218),v=r(46931);function y(){y=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function b(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class _{constructor(e){this._handleElementDropped=e=>{const t=this.dragEndState||this._dragManager.dragData;t.dragDropEvent=e,t.elementDroppedEventReceived=!0,m.Z.removeListener("elementDropped",this._handleElementDropped)},this._dragManager=e}_validateCreateElementPreconditions(e){const t=i.Z.stockSearchState.isOnLine;if(""!==e.is_licensed&&!t){const t=a.BG(e.media_type_id,e.content_type);return d.Z.showError((0,u.Iu)(`DL_STOCK_PURCHASE_OFFLINE_ERROR${a.Y8({type:t})}`)),!1}return!1===c.ZP.currentLibrary.isWritable?(d.Z.showError((0,u.Iu)("DL_STOCK_DRAGDROP_READONLY_LIB_MSG")),!1):!!p.Z.canAddElements(c.ZP.currentLibrary)||(d.Z.showError((0,u.Iu)("DL_DESIGN_LIBRARY_HAS_LIMIT")),!1)}_getLicenseType(e){const t=a.BG(e.media_type_id,e.content_type);return h.Z.isStockMultiLicense(t,e.is_premium,e.is_editorial)?a.ST(e)[0].field:o.Z.STOCK_LICENSE_TYPE_STANDARD}_createElement(e,t){const r=c.ZP.currentLibrary,n=a.BG(e.media_type_id,e.content_type);if(!this._validateCreateElementPreconditions(e))return{};const i=o.Z.currentProduct.config.stockDragFormat||"png",s=a.u$(e);let u={},p={};d.Z.supportsFileSystem&&(u=(0,f.b)(t,c.ZP.tempDir),p=(0,f.b)(t,c.ZP.tempDir,s,i));const m=a.Qj({library:r,elementType:n,asset:e,thumbnailDetails:u,licenseType:this._getLicenseType(e)}),g=m.promise,v=m.element;g.catch((()=>{l.ZP.openDialog("stockError",{title:"DL_STOCK_SAVE_UNKNOWN_ERROR_TITLE",message:"DL_STOCK_SAVE_UNKNOWN_ERROR"})}));const y=h.Z.getStockDragData(v,e,p);return this._dragManager.dragData.didCreateElement=!0,{promise:g,element:v,draggedData:y}}handleDragStart(e){var t,r=this;return(t=y().mark((function t(){var n,i,l,u,p,f,b,_,E,w,x,L;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.dragStartEvent,i=e.asset,l=e.imageElement,u=i.is_licensed&&""!==i.is_licensed,p=a.BG(i.media_type_id,i.content_type),h.Z.isStockAssetDraggable(p)){t.next=5;break}return t.abrupt("return");case 5:if((f=a.tX(i.id,c.ZP.currentLibrary))?(_=h.Z.getDragData(f))&&delete _.usedRepresentationForAnalytics:(E=r._createElement(i,l),_=E.draggedData,f=E.element,b=E.promise,e.didCreateElement=!0,e.currentlyDraggedElementPromise=b),f){t.next=9;break}return t.abrupt("return");case 9:if(e.currentlyDraggedElement=f,f.type===o.Z.VIDEO_ELEMENT_TYPE){t.next=14;break}return null===(w=n.persist)||void 0===w||w.call(n),t.next=14,f.committed;case 14:_&&(_.path=_.data[0]),u&&f&&(x=v.Z.libraryManager.userId,(0,s.c)(x,i)),m.Z.addListener("elementDropped",r._handleElementDropped),L={source:o.Z.DRAGDROP_SOURCE,version:g.Z.getPluginVersion(),assetList:[_]},n.dataTransfer.setData(d.Z.ElementDragId,JSON.stringify(L));case 19:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){b(o,n,i,a,s,"next",e)}function s(e){b(o,n,i,a,s,"throw",e)}a(void 0)}))})()}cleanup(){m.Z.removeListener("elementDropped",this._handleElementDropped),delete this.dragEndState}handleDragEnd(e){this.dragEndState=e;const t=this.dragEndState.dragEndEvent;if(!this.dragEndState.didCreateElement)return void this.cleanup();const r=t.clientX<0||t.clientX>d.Z.getPanelWidth()||t.clientY<0||t.clientY>d.Z.getPanelHeight(),n=()=>{this.dragEndState.currentlyDraggedElement.library.removeElement(this.dragEndState.currentlyDraggedElement,!0),this.cleanup()},i=()=>{d.Z.handleDroppedStockElement&&d.Z.handleDroppedStockElement(this.dragEndState).then((()=>{this.cleanup()}))};o.Z.currentProduct.config.useMouseEventToDetectDrop?r||d.Z.isWindowsOS()?i():n():setTimeout((()=>{this.dragEndState.elementDroppedEventReceived?i():n()}),this.dragEndState.elementDroppedEventReceived?0:1e3)}dispose(){m.Z.removeListener("elementDropped",this._handleElementDropped)}}var E,w,x,L,O,S,T,P,I,A=r(26981),C=r(74149),k=r(25585),D=r(46903),N=r(26964);function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function M(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function j(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const F=new(E=n.observable.ref,w=n.observable.ref,x=n.observable.ref,L=n.observable.ref,S=j((O=class{constructor(){M(this,"_dragData",S,this),M(this,"_dragType",T,this),M(this,"_activeDropTarget",P,this),M(this,"_holdingDropTarget",I,this),this._hooks={},this._handleGlobalDrop=()=>{this._reportAppliedElement(),this.handleDragEnd()},this._handleDragOver=e=>{const t=e.clientX,r=e.clientY;if(0===t&&0===r)this._dragClone&&(this._dragClone.style.visibility="hidden"),this.setActiveDropTarget();else if(this._dragClone){const e=this._dragClone.parentNode&&this._dragClone.parentNode.getBoundingClientRect()||{},n=e.x||e.left||0,o=e.y||e.top||0,a="list"===i.Z.viewState||"group"===this._dragType?25:this._dragClone.clientWidth/2+n,s=this._dragClone.clientHeight/2+o;this._dragClone.style.visibility="visible",this._dragClone.style.left=t-a+"px",this._dragClone.style.top=r-s+"px"}},this.registerHook("stock",new _(this))}get dragData(){return this._dragData}get dragType(){return this._dragType}get activeDropTarget(){return this._activeDropTarget}get holdingDropTarget(){return this._holdingDropTarget}isHoldingDragOverGroup(e){if(this._holdingDropTarget)return e===this._holdingDropTarget.group}registerHook(e,t){this._hooks[e]=t}dispose(){Object.keys(this._hooks).forEach((e=>this._hooks[e].dispose()))}handleDragStart(e,t,r){if(this._dragType=e,this._dragData=t,r){const e=document.createElement("div");e.setAttribute("data-test-id","panel-ghost-clone"),e.id="panel-ghost-clone",e.style.position="absolute",e.style.visibility="hidden",e.style.pointerEvents="none",r(e),this._dragClone=e.getRootNode().querySelector("#panel-ghost-clone"),document.body.addEventListener("dragover",this._handleDragOver),document.body.addEventListener("dragleave",this._handleDragOver)}document.addEventListener("drop",this._handleGlobalDrop),this._hooks[e]&&this._hooks[e].handleDragStart(t)}handleDrop(e){const t=this._activeDropTarget,r=this._dragData;if(this.handleDragEnd(),!t||!t.isValidDropTarget(r))return;const n=r&&r[0]&&r[0].data||{};if((0,A.SF)(n)){if(!(n.assetList&&n.assetList.length>0))return;const r=(({metaKey:e,altKey:t,ctrlKey:r,shiftKey:n})=>({metaKey:e,altKey:t,ctrlKey:r,shiftKey:n}))(e);return void(o.Z.currentProduct.dropHandler?o.Z.currentProduct.dropHandler(n,r):Promise.reject()).catch((()=>(0,A.rr)(n,c.ZP.currentLibrary))).then((e=>{t.onDrop(Array.isArray(e)?e:[e],void 0,!0)}))}const i=e&&e.dataTransfer&&e.dataTransfer.types||[];(0,A.gc)(i)?(e.preventDefault(),(d.Z.getDragFileList?d.Z.getDragFileList.bind(d.Z,e.dataTransfer):()=>Promise.resolve(e.dataTransfer.files))().then((e=>{e=Array.from(e);const r=t&&t.group;if(r){const n=t.afterElement&&t.afterElement.getOrderInGroup(r),i=t.beforeElement&&t.beforeElement.getOrderInGroup(r),o=(0,k.Tg)(e.length,i,n);e.forEach(((e,t)=>e.group={id:r.id,order:o[t]}))}(0,C.Bq)(c.ZP.currentLibrary,e)})).catch((e=>N.Z.log(e)))):t.onDrop(r)}handleDragEnd(e){e&&Object.assign(this._dragData,e),this._hooks[this._dragType]&&this._hooks[this._dragType].handleDragEnd(this._dragData),this._dragClone&&this._dragClone.remove(),this._dragData=null,this._dragType="",this.setActiveDropTarget(),this.handleHoldDragEnd(),document.removeEventListener("drop",this._handleGlobalDrop),document.body.removeEventListener("dragover",this._handleDragOver),document.body.removeEventListener("dragleave",this._handleDragOver)}handleHoldDragStart(e){const t=e.group;i.Z.isGroupCollapsed(t.id)&&i.Z.setGroupCollapsed(t.id,!1),e!==this._holdingDropTarget&&this._setHoldingDropTarget(e)}handleHoldDragEnd(){this._setHoldingDropTarget(null)}_setHoldingDropTarget(e){this._holdingDropTarget=e}setActiveDropTarget(e){var t,r,n,i;this._activeDropTarget!==e&&(!this._activeDropTarget||this._activeDropTarget.isHoldingDrag&&e||null===(t=(r=this._activeDropTarget).onDeactivate)||void 0===t||t.call(r),this._activeDropTarget=e,this._activeDropTarget&&!this._activeDropTarget.isHoldingDrag&&(null===(n=(i=this._activeDropTarget).onActivate)||void 0===n||n.call(i)))}_reportAppliedElement(){if("element"===this.dragType){var e,t=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return R(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}}(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(this.dragData);try{for(t.s();!(e=t.n()).done;){const t=e.value,r=h.Z.findUsableRepresentation(t)||t.getPrimaryRepresentation();(0,D.vM)(r,"dragDrop")}}catch(e){t.e(e)}finally{t.f()}}}}).prototype,"_dragData",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=j(O.prototype,"_dragType",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),P=j(O.prototype,"_activeDropTarget",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=j(O.prototype,"_holdingDropTarget",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j(O.prototype,"handleDragStart",[n.action],Object.getOwnPropertyDescriptor(O.prototype,"handleDragStart"),O.prototype),j(O.prototype,"handleDrop",[n.action],Object.getOwnPropertyDescriptor(O.prototype,"handleDrop"),O.prototype),j(O.prototype,"handleDragEnd",[n.action],Object.getOwnPropertyDescriptor(O.prototype,"handleDragEnd"),O.prototype),j(O.prototype,"handleHoldDragStart",[n.action],Object.getOwnPropertyDescriptor(O.prototype,"handleHoldDragStart"),O.prototype),j(O.prototype,"handleHoldDragEnd",[n.action],Object.getOwnPropertyDescriptor(O.prototype,"handleHoldDragEnd"),O.prototype),j(O.prototype,"setActiveDropTarget",[n.action],Object.getOwnPropertyDescriptor(O.prototype,"setActiveDropTarget"),O.prototype),O)},18580:(e,t,r)=>{"use strict";r.d(t,{Z:()=>L});var n=r(99386),i=r(98218),o=r(76325),a=r(26964),s=r(30131);function c(){c=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function f(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(O([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=f,s(y,"constructor",f),s(f,"constructor",h),h.displayName=s(f,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function l(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function u(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){l(o,n,i,a,s,"next",e)}function s(e){l(o,n,i,a,s,"throw",e)}a(void 0)}))}}function d(e,t,r,n){return p.apply(this,arguments)}function p(){return(p=u(c().mark((function e(t,r,n,l){var u,d,p,h,f,m,g,v,y,b;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.Z.getAccessToken(t);case 3:if(h=e.sent){e.next=6;break}throw new Error("Invalid Token");case 6:return f=null==l?void 0:l.email,m=null==l||null===(u=l.projectedProductContext)||void 0===u||null===(d=u[0])||void 0===d||null===(p=d.prodCtx)||void 0===p?void 0:p.owningEntity,g=(0,s._y)(r,f,m),v={method:n,headers:{"x-api-key":o.Z.getEnvironment().clientId,"Content-Type":"application/json",Authorization:`Bearer ${h}`,"User-Agent":i.Z.getUserAgent()}},e.next=12,fetch(g,v);case 12:if(200===(y=e.sent).status){e.next=19;break}return e.next=16,y.text();case 16:throw b=e.sent,a.Z.log(`Error: Response from Floodgate= ${b}`),new Error("Unable to fetch data");case 19:return e.abrupt("return",y.json());case 22:return e.prev=22,e.t0=e.catch(0),a.Z.log(`[FloodgateRest._fetchFloodgateService] ${e.t0}`),e.abrupt("return",{});case 26:case"end":return e.stop()}}),e,null,[[0,22]])})))).apply(this,arguments)}function h(e,t,r){return f.apply(this,arguments)}function f(){return(f=u(c().mark((function e(t,r,n){var i,o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d(t,r,"GET",n);case 2:return i=e.sent,o=i.releases,e.abrupt("return",Array.isArray(o)?o.map((e=>e?e.features:e)).flat():[]);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var m,g,v,y=r(50265),b=r(76485);function _(){_=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function E(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function w(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function x(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const L=new(g=x((m=class{constructor(){w(this,"_featuresSet",g,this),this._currentUserId=void 0,this._initialized=!1,w(this,"_loaded",v,this)}init(e){var t,r=this;return(t=_().mark((function t(){var i,o,s;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return");case 2:if(i=r._currentUserId!==e,!r._initialized||i){t.next=5;break}return t.abrupt("return");case 5:if(r._currentUserId=e,r._initialized=!0,t.prev=7,!b.Z.getIMSProfile){t.next=14;break}return t.next=11,b.Z.getIMSProfile();case 11:t.t0=t.sent,t.next=15;break;case 14:t.t0={};case 15:return o=t.t0,t.next=18,Promise.all([h(r._currentUserId,n.Z.FLOODGATE_CLIENT_ID,o),h(r._currentUserId,n.Z.FLOODGATE_LIBRARIES_CLIENT_ID,o),h(r._currentUserId,n.Z.FLOODGATE_BRANDS_CLIENT_ID,o)]).then((e=>e.reduce(((e,t)=>e.concat(t)),[])));case 18:return s=t.sent,r._featuresSet=new Set(s),r._loaded=!0,t.abrupt("return",r._featuresSet);case 24:t.prev=24,t.t1=t.catch(7),r._initialized=!1,r._loaded=!0,a.Z.log(`[FloodgateManager.init] ${t.t1}`);case 29:case"end":return t.stop()}}),t,null,[[7,24]])})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){E(o,n,i,a,s,"next",e)}function s(e){E(o,n,i,a,s,"throw",e)}a(void 0)}))})()}hasLoaded(){return this._loaded}hasFeature(e){var t;return null===(t=this._featuresSet)||void 0===t?void 0:t.has(e)}isStyleguideEnabled(){return this.hasFeature("cc_styleguides")}isAssetPreviewEnabled(){return"GenStudio"===n.Z.currentProduct.config.code&&this.hasFeature("ubs.asset_preview")}isBrandThumbnailsEnabled(){return"GenStudio"===n.Z.currentProduct.config.code&&this.hasFeature("ubs.brand_thumbnails")}isColorThemesEnabled(){return"GenStudio"===n.Z.currentProduct.config.code&&this.hasFeature("ubs.brand_color_themes")}}).prototype,"_featuresSet",[y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=x(m.prototype,"_loaded",[y.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),m)},8733:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n,i,o,a,s=r(99386),c=r(76485),l=r(86351),u=r(50265);function d(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function p(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const h=new(n=u.observable.ref,o=p((i=class{constructor(){d(this,"_layerInfo",o,this),this._listening=!1,this._lastSelectionChange=0,this._currentDocumentPath=void 0,d(this,"_hasCurrentDocument",a,this),this.stopListening=function(){this._listening=!1},this.getLayerInfo=function(){return this._layerInfo},this._listenerManager=(0,l.N)(this,["layerSelectionChanged"])}updateLayerInfo(){return this._updatingPromise||(this._updatingPromise=c.Z.getLayerInfo().then((e=>(delete this._updatingPromise,this._layerInfo=e,this._listenerManager.notify("layerSelectionChanged",this._layerInfo),this._layerInfo)),(()=>{delete this._updatingPromise}))),this._updatingPromise}_getDocumentState(){c.Z.getCurrentDocumentState().then((e=>{this._currentDocumentPath=void 0,this._hasCurrentDocument=!1,e&&(this._currentDocumentPath=e.path,this._hasCurrentDocument=-1!==e.layerID,this.updateLayerInfo())}))}handleSelectionChange(){this._listening&&(clearTimeout(this._selectionChangeTimeout),this._selectionChangeTimeout=setTimeout((()=>this._getDocumentState()),s.Z.SELECTION_CHANGE_THROTTLE))}startListening(){this._listening=!0,this._getDocumentState()}getLayerName(){return c.Z.getLayerName()}getCurrentDocumentName(){if(this._currentDocumentPath&&this._currentDocumentPath.length>0)return this._currentDocumentPath.indexOf("/")>-1?this._currentDocumentPath.substring(this._currentDocumentPath.lastIndexOf("/")+1):this._currentDocumentPath.substring(this._currentDocumentPath.lastIndexOf("\\")+1)}getCurrentDocumentPath(){return this._currentDocumentPath}hasDocumentOpen(){return this._hasCurrentDocument}}).prototype,"_layerInfo",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=p(i.prototype,"_hasCurrentDocument",[u.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i)},75067:(e,t,r)=>{"use strict";r.d(t,{pA:()=>it,ZP:()=>at});var n=r(10470),i=r(50265),o=r(69377);class a{constructor(e){this._onChange=()=>{this._changeAtom.reportChanged()},this._progressiveLoader=e,this._changeAtom=new i.Atom("change",(()=>{var e,t;return null===(e=(t=this._progressiveLoader).on)||void 0===e?void 0:e.call(t,"change",this._onChange)}),(()=>{var e,t;return null===(e=(t=this._progressiveLoader).off)||void 0===e?void 0:e.call(t,"change",this._onChange)}))}get results(){return this._changeAtom.reportObserved(),this._progressiveLoader.results}get isComplete(){return this._changeAtom.reportObserved(),this._progressiveLoader.isComplete}abort(){this._progressiveLoader.abort()}}function s(){s=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function f(){}var m={};c(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(O([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=f,c(y,"constructor",f),c(f,"constructor",h),h.displayName=c(f,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),c(y,a,"Generator"),c(y,i,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function c(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function l(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){c(o,n,i,a,s,"next",e)}function s(e){c(o,n,i,a,s,"throw",e)}a(void 0)}))}}var u,d,p,h,f,m=r(76325),g=r(72373),v=r(85834),y=r(99386),b=r(47320),_=r(17179),E=r(26964),w=r(51461),x=r(84074),L=r(2315),O=r(4784),S=r(76485),T=r(84824),P=r(79799),I=r(25585),A=r(46903);function C(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function k(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let D=(u=class{constructor(e){C(this,"_processState",d,this),C(this,"_isWorking",p,this),C(this,"_isLoadingCollections",h,this),C(this,"_retryInvalidator",f,this),this._libraryManager=e}_launchProcess(){P.Z.launchCCLibraryProcess()}_setProcessState(e){this._processState=e}reset(){this._setProcessState("loading"),clearTimeout(this._loadingTimeout),this._loadingTimeout=null,clearTimeout(this._loginTimeout),this._loginTimeout=null}establishConnectionWithProcess(){this._startProcessTimeout()}_startProcessTimeout(){this._launchProcess(),this._setProcessState("loading"),this._loadingTimeout=this._loadingTimeout||setTimeout((()=>{this._setProcessState(P.Z.isConnected()?"connected":"error"),delete this._loadingTimeout}),3e3)}get _isLoggedIn(){return this._libraryManager.isAppLoggedIn&&this._libraryManager.areLibrariesLoaded?"yes":this._libraryManager.areLibrariesLoading?"loading":"no"}get _connectionState(){if(P.Z.isConnected())return;const e={state:"error"};if(!P.Z.isProcessInstalled())return e.errorType="noService",e;const t=P.Z.getServiceInfo()||{};if("client"===t.updateRequired)return e.errorType="updateClient",e;if("server"===t.updateRequired)return e.errorType="updateServer",e;if("SIMPLE_HOSTNAME_GOING_TO_PROXY"===t.portDiagnosis){if(S.Z.isWindowsOS()){e.errorType="excludeHostnameWin10";const t=S.Z.getOSInformation();return-1===t.indexOf("Windows 7")&&-1===t.indexOf("Windows 8")||(e.errorType="excludeHostnameWin"),e}return e.errorType="excludeHostnameOSX",e}return"DNS_RESOLUTION_FAILED"===t.portDiagnosis?(e.errorType="verifyDnsSettings",e):"COULD_NOT_CONNECT_SOCKET"===t.portDiagnosis?(e.errorType="verifySocketConnection",e.showTestUrl=Boolean(t.connectionPort),e):("error"===this._libraryManager._ccLibraries.connectionState?e.errorType="serviceError":e.state="loading",e)}get _loginState(){return"no"===this._isLoggedIn?{state:"error",errorType:"loggedOut"}:"loading"===this._isLoggedIn?{state:"loading"}:void 0}get _secondsToRetry(){this._retryInvalidator;const e=this._libraryManager.retryTime-Date.now(),t=e>0&&(0,I.q8)(e);return t&&setTimeout((()=>this._retryInvalidator++),1e3),t}get _syncState(){const e={syncingLibraries:[]};return(()=>{if(this._libraryManager.commitError)return e.state="error",void(e.errorType="fs");if(!this._libraryManager.syncingEnabled())return e.state="error",void(e.errorType="syncDisabled");if(e.state=this._libraryManager.syncState||"syncing",e.syncProgress=this._libraryManager.syncProgress,delete e.errorType,"syncing"===e.state)return this._libraryManager.getNewLibrarySyncProgress().forEach((t=>{e.syncingLibraries.push({state:"downloading",progress:t.progress})})),void this._libraryManager.libraries.forEach((t=>{t.syncState&&e.syncingLibraries.push({state:t.syncState,progress:t.syncProgress,truncatedName:(0,I.aS)(t.name,15)})}));if("error"===e.state){const t=this._libraryManager.getPrimarySyncError(),r=this._libraryManager.getLibraryById(null==t?void 0:t.libraryId);if(t){if(e.errorType=(0,A.Y3)(t.code,this._libraryManager.errors,["incoming","team"].includes(null==r?void 0:r.ownership)),"general"!==e.errorType)return;if(r)return e.errorType="library",void(e.library=r)}e.retryDuration=this._secondsToRetry}})(),this._isWorking&&"syncing"!==e.state?{state:"working"}:e}get _accessState(){var e;return(null===(e=this._libraryManager.getPrimarySyncError())||void 0===e?void 0:e.code)===this._libraryManager.errors.ACCESS_DENIED?{state:"error",errorType:"noAccess"}:void 0}get _initialState(){if(!this._libraryManager.initialized)return!1===this._libraryManager.isAppLoggedIn?{state:"error",errorType:"appLoggedOut"}:{state:"loading"}}init(){(0,i.reaction)((()=>this.status),(e=>{"working"!==e.state&&(this._isWorking=!1),"connected"!==this._processState||P.Z.isConnected()?"error"===this._processState&&P.Z.isConnected()&&this._setProcessState("connected"):this._startProcessTimeout()})),this._startProcessTimeout()}get status(){return this._initialState||this._accessState||this._connectionState||this._loginState||this._syncState}showSyncSpinner(){this._libraryManager.syncingEnabled()&&(this._isWorking=!0)}get shutdownWarning(){var e;if("syncing"===(null===(e=this.status)||void 0===e?void 0:e.state))return this.status.syncingLibraries.filter((e=>"uploading"===e.state)).length?(0,T.Iu)("DL_NAVIGATION_WARNING_SYNCING_IN_PROGRESS"):void 0}},d=k(u.prototype,"_processState",[i.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"loading"}}),p=k(u.prototype,"_isWorking",[i.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),h=k(u.prototype,"_isLoadingCollections",[i.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),k(u.prototype,"_launchProcess",[i.action],Object.getOwnPropertyDescriptor(u.prototype,"_launchProcess"),u.prototype),k(u.prototype,"_setProcessState",[i.action],Object.getOwnPropertyDescriptor(u.prototype,"_setProcessState"),u.prototype),f=k(u.prototype,"_retryInvalidator",[i.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),k(u.prototype,"_secondsToRetry",[i.computed],Object.getOwnPropertyDescriptor(u.prototype,"_secondsToRetry"),u.prototype),k(u.prototype,"status",[i.computed],Object.getOwnPropertyDescriptor(u.prototype,"status"),u.prototype),k(u.prototype,"shutdownWarning",[i.computed],Object.getOwnPropertyDescriptor(u.prototype,"shutdownWarning"),u.prototype),u);var N=r(69233),R=r(44914);function M(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const F=e=>{const t=e.getGroups().map((e=>({name:e.name})));return JSON.stringify(t)};function Z(e,t,r,n){return new U(e,t,r,n)}function B(e,t){return new H(e,t)}class G{constructor(e,t,r,n){this._targetItems=e,this._sourceItems=t,this._sourceGroupTree=r,this._targetGroupTree=n,this._sourceMap=t.reduce(((e,t)=>(e[t.id]={source:t},e)),{}),this._newItems=[],this._unchangedItems=[],this._itemsToUpdate=[],this._itemsToDelete=[],this._itemsToDiff=[],this._computeDiff()}get newItems(){return this._newItems.sort(((e,t)=>this._sourceDepthMap.get(e.id)<this._sourceDepthMap.get(t.id)?-1:1))}get unchangedItems(){return this._unchangedItems}get itemsToUpdate(){return this._itemsToUpdate}get itemsToDelete(){return this._itemsToDelete}get hasChanges(){return!![this.newItems,this.itemsToUpdate,this.itemsToDelete].find((e=>e.length))}toString(){const e=t=>({name:t.name,type:t.type||"Group",id:t.id,groups:t.isElement&&t.getGroups().map(e)});return JSON.stringify({create:this.newItems.map(e),update:this.itemsToUpdate.map((t=>e(t.source))),delete:this.itemsToDelete.map(e)},null,2)}_visitItem(e){const t={},r=(0,A.a3)(e);let n,i;this._sourceMap[r]&&(n=this._sourceMap[r].source,i=this._sourceMap[r].visited),this._isDeleted(e,n,i)?this._itemsToDelete.push(e):n&&(t.target=e,t.source=n,this._ignore(e,n,i)||this._itemsToDiff.push({target:e,source:n}),this._sourceMap[n.id].visited=!0)}_computeDiff(){this._targetItems.forEach((e=>this._visitItem(e))),this._sourceItems.forEach((e=>{const t=this._sourceMap[e.id],r=t.source,n=t.target;t.visited||this._ignore(n,r)||this._newItems.push(e)}));const e=M(this._createOrderAndDepthMap(this._targetGroupTree,A.a3),1)[0],t=M(this._createOrderAndDepthMap(this._sourceGroupTree,(e=>e.id)),2),r=t[0],n=t[1];this._targetOrderMap=e,this._sourceOrderMap=r,this._sourceDepthMap=n,this._itemsToDiff.forEach((e=>{const t=e.source,r=e.target,n=this._diff(r,t);n||r.removed?(e.diff=n,this._itemsToUpdate.push(e)):this._unchangedItems.push(e)}))}_createOrderAndDepthMap(e,t){const r=new Map,n=new Map,i=e.branches,o=e.root;return i.root=o,Object.values(i).forEach((e=>{(e.children||[]).filter((({item:e})=>{const r=t(e),n=this._sourceMap[r];if(n){const e=n.source,t=n.target,r=n.visited;return!this._ignore(t,e,r)}return!e.removed})).forEach((({item:e},t)=>{r.set(e.id,t),n.set(e.id,i[e.id].depth)}))})),[r,n]}}class U extends G{constructor(e,t,r,n){super(e,t,(0,N.GI)(n),(0,N.GI)(r))}_diff(e,t){return t.instanceId!==(0,R.ss)(e)||t.name!==e.name?y.Z.ELEMENT_CHANGE_TYPE.CONTENT:F(t)!==F(e)||this._targetOrderMap.get(e.id)!==this._sourceOrderMap.get(t.id)?y.Z.ELEMENT_CHANGE_TYPE.GROUP:void 0}_assetTypeChanged(e,t){return t&&t.type!==e.type}_isDeleted(e,t,r){return!e.removed&&(!t||r||this._assetTypeChanged(e,t))}_ignore(e,t,r){if(e&&t)return e.removed&&(this._assetTypeChanged(e,t)||r)}}class H extends G{constructor(e,t){super(e,t,(0,N.Oi)([],t),(0,N.Oi)([],e))}_diff(e,t){if(t.name!==e.name)return y.Z.GROUP_CHANGE_TYPE.CONTENT;if(this._targetOrderMap.get(e.id)!==this._sourceOrderMap.get(t.id))return y.Z.GROUP_CHANGE_TYPE.GROUP;const r=t.parent||{},n=e.parent||{};return(0,A.a3)(n)!==r.id?y.Z.GROUP_CHANGE_TYPE.GROUP:void 0}_isDeleted(e,t){return!t||this._ignore(e,t)}_ignore(e,t){return t.isAppControlled&&(0,N.tl)(t)&&!t.parent}}var z;let V=(z=class{constructor(e){this._libraryManager=e}get status(){const e=this._assetsContainer,t=this._publishedLibrary,r=this._libraryManager.isPublishing,n=e=>v.Z.get("publishDiffLogging")&&E.Z.log(e);if(!e)return;if(this._isCoeditorPublishing)return this.states.COEDITOR_PUBLISHING;if(!t)return e.linkedLibraryId?this.states.NOT_FOUND:this.states.NOT_PUBLISHED;if(!t.areElementsLoaded)return this.states.LOADING;if(r)return this.states.PUBLISHING;if(e.elementCount!==t.elementCount)return n(`Element Count Mismatch: Document Library Element Count: ${e.elementCount}. Published Library Element Count: ${t.elementCount}.`),this.states.UNPUBLISHED_CHANGES;if(e.publishableGroupCount!==t.getGroupCount())return n(`Group Count Mismatch: Document Library Group Count: ${e.publishableGroupCount}. Published Library Group Count: ${t.getGroupCount()}.`),this.states.UNPUBLISHED_CHANGES;const i=B(t.getGroups(),e.getGroups());if(i.hasChanges)return n(`Group Mismatch: ${i}`),this.states.UNPUBLISHED_CHANGES;const o=Z([...t.elements,...t.removedElements],e.elements,t,e);return o.hasChanges?(n(`Element Mismatch: ${o}`),this.states.UNPUBLISHED_CHANGES):this.states.PUBLISHED}get states(){return y.Z.DOCUMENT_LIBRARY_STATES}get _publishedLibrary(){return this._libraryManager.publishedDocumentLibrary}get _assetsContainer(){return this._libraryManager.documentAssetsContainer}get syncError(){if(this._publishedLibrary)return this._libraryManager.syncErrors.find((e=>e.libraryId===this._publishedLibrary.id))}get isPublished(){return[this.states.PUBLISHED,this.states.UNPUBLISHED_CHANGES].includes(this.status)}get isPublishedLibraryNotFound(){return this.status===this.states.NOT_FOUND}get isPendingUpdate(){return this.status===this.states.UNPUBLISHED_CHANGES}get isPublishing(){const e=this.status===this.states.PUBLISHING;return!this.syncError&&(e||this.isPublished&&!1===this._publishedLibrary.isPushedToServer)}get _isCoeditorPublishing(){return S.Z.isCoeditorPublishing}get isLoading(){return this.status===this.states.LOADING}get _canSaveDocToCloud(){return S.Z.isSavedCloudDocument||S.Z.canSaveDocToCloud}get _hasLibraryAccess(){return!this._publishedLibrary||this._publishedLibrary.isWritable}get _hasDocumentAccess(){return!S.Z.isSavedCloudDocument||S.Z.canEditDocument}get _isPaidUser(){return S.Z.isPaidUser}get _documentAssetsCount(){return this._libraryManager.documentAssetsContainer.elementCount}get _hasPublishableContent(){return this._documentAssetsCount>0||this.isPublished}get _isOversizedDocument(){return this._documentAssetsCount>this._libraryManager.MAX_ELEMENTS}get canPublish(){return!this._isOversizedDocument&&this._canSaveDocToCloud&&this._libraryManager.isOnline&&this._hasPublishableContent&&this._hasDocumentAccess&&this._hasLibraryAccess&&!this._isCoeditorPublishing&&!this.isPublishing&&(this.hasAvailableStorage||this.hasWritableLocation)}get canUpgrade(){return!this._isPaidUser&&this._canSaveDocToCloud&&this._libraryManager.isOnline&&this._hasDocumentAccess&&this._hasLibraryAccess}get hasWritableLocation(){return!!this._libraryManager.platformFolders.filter((e=>e.isWritable)).length}get hasAvailableStorage(){return S.Z.hasAvailableStorage}get disabledStatus(){if(this.canPublish&&this._isPaidUser)return;const e=y.Z.DISABLED_PUBLISH_STATES;return this._libraryManager.isOnline?this._hasDocumentAccess&&this._hasLibraryAccess?this.hasAvailableStorage||this.hasWritableLocation?this._canSaveDocToCloud?this._hasPublishableContent?this._isPaidUser?this._isCoeditorPublishing?e.COEDITOR_PUBLISHING:this._isOversizedDocument?e.MAX_ELEMENTS:void 0:e.UPGRADE:e.EMPTY:e.MISSING_STORAGE:e.QUOTA:e.READ_ONLY:e.OFFLINE}},Y=z.prototype,W="status",K=[i.computed],$=Object.getOwnPropertyDescriptor(z.prototype,"status"),q=z.prototype,X={},Object.keys($).forEach((function(e){X[e]=$[e]})),X.enumerable=!!X.enumerable,X.configurable=!!X.configurable,("value"in X||X.initializer)&&(X.writable=!0),X=K.slice().reverse().reduce((function(e,t){return t(Y,W,e)||e}),X),q&&void 0!==X.initializer&&(X.value=X.initializer?X.initializer.call(q):void 0,X.initializer=void 0),void 0===X.initializer&&(Object.defineProperty(Y,W,X),X=null),z);var Y,W,K,$,q,X,J=r(97536),Q=r(30131),ee=r(16993),te=r(30460),re=r(36351),ne=r(98218);function ie(e,t,r,n,i){return m.Z.getAccessToken(e).then((e=>{if(!e)return Promise.reject(401);const o=`https://${m.Z.getEnvironment().invitationsHost}`+t,a={body:i?JSON.stringify(i):void 0,method:n,headers:{"x-api-key":"ProjectCentralPanel11",Authorization:"Bearer "+e,"User-Agent":ne.Z.getUserAgent()}};return"POST"!==n&&"PATCH"!==n||(a.headers["Content-Type"]="application/json"),fetch(o,a).then((e=>200!==e.status?(e.text().then((e=>{E.Z.log(`Error with ${r}: result= ${e}`)})),Promise.reject(e.status)):e.json()))})).catch((e=>"LOGGED_OUT"===e?(E.Z.log("Error with getLibrariesInvitations: could not get token"),Promise.reject(401)):Promise.reject(e)))}var oe=r(10441),ae=r(87694),se=r(87544),ce=r(20290),le=r(39293),ue=r(33275),de=r(46931),pe=r(18580);function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const fe={sync:["POST",()=>`${me()}/v1/selections?locale=${S.Z.getLocale()}`],unsync:["DELETE",e=>`${me()}/v1/selections/${e}`],entitlements:["GET",e=>`${me()}/v1/variations/${e}/entitlement_workflows?purpose=sync&locale=${S.Z.getLocale()}`]};function me(){return"https://"+m.Z.getEnvironment().typekitHost}function ge(e,t,r){const n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),2!==o.length);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e)||function(e,t){if(e){if("string"==typeof e)return he(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?he(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(fe[e]),i=n[0],o=(0,n[1])(t,r);return function(e,t,r){const n=at.userId;return m.Z.getAccessToken(n).then((n=>{const i={Authorization:"Bearer "+n,"Content-Type":"application/json","X-Api-Key":m.Z.getEnvironment().clientId,Accept:"application/json"};S.Z.disableUserAgentHeaders||(i["User-Agent"]=ne.Z.getUserAgent());const o={method:e,url:t,headers:i};return"POST"===e&&(o.body=JSON.stringify(r)),E.Z.log("Typekit Font request - url: "+t+" data: "+r),o})).catch((e=>(E.Z.log("Error getting access token: TypekitUtils , result="+JSON.stringify(e)),Promise.reject(e))))}(i,o,[t]).then((e=>fetch(new Request(o,e)))).then((e=>{if(200!==e.status){if(204===e.status&&"DELETE"===i)return;return e.json().then((e=>Promise.reject(e)))}return e.json()}))}var ve,ye,be,_e,Ee;function we(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function xe(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let Le=(ve=i.observable.ref,be=xe((ye=class{constructor(e,t){we(this,"_fontSyncing",be,this),we(this,"_variationDetails",_e,this),we(this,"_isLoading",Ee,this),this._postScriptName=e,this._getFontDataFromProcess=t,this.refresh()}_getFontData(e){return e().catch((e=>{E.Z.log("Error fetching font data: "+e)}))}get postScriptName(){return this._postScriptName}get variation(){return this._variationDetails}get fontId(){return this.variation&&this.variation.font&&this.variation.font.sync&&this.variation.font.sync.font_id}get fontActions(){return this.variation&&this.variation.font&&this.variation.font.sync&&this.variation.font.sync.required_action}get isLoading(){return this._isLoading}get isFontSyncing(){return this._fontSyncing}get isFontAvailable(){if(at.fontManager)return at.fontManager.getCachedSystemFontAvailability(this._postScriptName)}refresh(){this._getFontData(this._getFontDataFromProcess).then((e=>{this._isLoading=!1,this._variationDetails=e}))}sync(e,t,r){const n="context"===t?"context-start":"start";w.ZP.reportElementEvent("Typekit","Sync-Font","click",n,r),E.Z.log("Syncing Typekit Font: "+this.fontId),this._fontSyncing=!0;const o=(e,t)=>{w.ZP.reportElementEvent("Typekit","Sync-Font","render","error",r,{event:{error_code:t,error_desc:e}}),E.Z.log(e),this._fontSyncing=!1};return ge("sync",this.fontId).then((e=>{if(e&&e[0]&&e[0].variation)w.ZP.reportElementEvent("Typekit","Sync-Font","render","success",r),E.Z.log("Font Sync request sent successfully: "+JSON.stringify(e)),(0,i.when)((()=>this.isFontAvailable),(()=>this._fontSyncing=!1));else{const t="Font sync could not complete: "+JSON.stringify(e);o(t,200)}})).catch((e=>{o("Font sync error "+e,e)}))}unsync(e,t,r){const n="context"===t?"context-start":"start";w.ZP.reportElementEvent("Typekit","Sync-Font","click",n,r),E.Z.log("Unsyncing Typekit Font: "+this.fontId),this._fontSyncing=!0;const o=e=>{E.Z.log(e),this._fontSyncing=!1};return ge("unsync",this.fontId).then((e=>{if(e){const t="Font unsync could not complete: "+JSON.stringify(e);o(t)}else E.Z.log("Font Unsync request sent successfully"),(0,i.when)((()=>!this.isFontAvailable),(()=>this._fontSyncing=!1))})).catch((e=>{o("Font unsync error "+e)}))}upgrade(e,t){const r="context"===e?"context-start":"start";return ge("entitlements",this.fontId).then((e=>{const n=e.upgrade&&e.upgrade[0]&&e.upgrade[0].url;w.ZP.reportElementEvent("Typekit","Upgrade","click",r,t,{content:{action:n}}),S.Z.launchInBrowser(n)})).catch((e=>{E.Z.log("Error occurred during upgrade: "+JSON.stringify(e))}))}}).prototype,"_fontSyncing",[i.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_e=xe(ye.prototype,"_variationDetails",[ve],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ee=xe(ye.prototype,"_isLoading",[i.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),ye);class Oe{constructor(e){this._fontMap={},this._fontAvailableMap={},this._hasFetchedFontAvailability={},this._hasRefreshedFontData={},this._pendingFontAvailabilityPromises={},this._onChange=()=>{this._changeAtom.reportChanged()},this._fontManager=e,this._changeAtom=new i.Atom("fontManagerChange",(()=>this._fontManager.on("change",this._onChange)),(()=>this._fontManager.off("change",this._onChange))),this._fontManager.on("change",(()=>{this._hasRefreshedFontData={},this._hasFetchedFontAvailability={}}))}getFontData(e){return this._changeAtom.reportObserved(),this._fontMap[e]&&!this._hasRefreshedFontData[e]?this._fontMap[e].refresh():this._fontMap[e]||(this._fontMap[e]=new Le(e,(()=>this._getFontDataFromProcess(e)))),this._hasRefreshedFontData[e]=!0,this._fontMap[e]}isSystemFontAvailable(e,t){const r=e+(t?":family":"");let n=this.getCachedSystemFontAvailability(e,t);return this._hasFetchedFontAvailability[r]||(n=void 0===n||n),n}getCachedSystemFontAvailability(e,t){this._changeAtom.reportObserved();const r=e+(t?":family":""),n=this._fontAvailableMap[r];return this._hasFetchedFontAvailability[r]||this._pendingFontAvailabilityPromises[r]||(this._pendingFontAvailabilityPromises[r]=this._getSystemFontAvailabilityFromProcess(e,t).then((e=>{delete this._pendingFontAvailabilityPromises[r],this._fontAvailableMap[r]=e,this._hasFetchedFontAvailability[r]=!0,this._onChange()}),(()=>{delete this._pendingFontAvailabilityPromises[r]}))),n}_getSystemFontAvailabilityFromProcess(e,t){return this._fontManager.isSystemFontAvailable(e,t)}_getFontDataFromProcess(e){return this._fontManager.getFontData(e).then((e=>e.variation))}}var Se,Te,Pe,Ie,Ae,Ce,ke,De,Ne,Re,Me,je,Fe,Ze,Be,Ge,Ue,He,ze=r(8502);function Ve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ye(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function We(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ke(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ke(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $e(){$e=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function qe(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Xe(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){qe(o,n,i,a,s,"next",e)}function s(e){qe(o,n,i,a,s,"throw",e)}a(void 0)}))}}function Je(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function Qe(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}function et(e){var t,r;function n(t,r){try{var o=e[t](r),a=o.value,s=a instanceof tt;Promise.resolve(s?a.wrapped:a).then((function(e){s?n("return"===t?"return":"next",e):i(o.done?"return":"normal",e)}),(function(e){n("throw",e)}))}catch(e){i("throw",e)}}function i(e,i){switch(e){case"return":t.resolve({value:i,done:!0});break;case"throw":t.reject(i);break;default:t.resolve({value:i,done:!1})}(t=t.next)?n(t.key,t.arg):r=null}this._invoke=function(e,i){return new Promise((function(o,a){var s={key:e,arg:i,resolve:o,reject:a,next:null};r?r=r.next=s:(t=r=s,n(e,i))}))},"function"!=typeof e.return&&(this.return=void 0)}function tt(e){this.wrapped=e}r(11437),r(27299),r(75623),r(44853),r(90459),r(30949),et.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},et.prototype.next=function(e){return this._invoke("next",e)},et.prototype.throw=function(e){return this._invoke("throw",e)},et.prototype.return=function(e){return this._invoke("return",e)};const rt={libraries:[],isSyncingEnabled:()=>!1,isConnected:()=>!1,getServiceInfo:()=>{},getOption:()=>{},getLocalSetting:()=>{},resolveLibraryReference:()=>Promise.resolve(void 0),resolveCachedLibraryReference:()=>{},resolveElementReferenceToLibrary:()=>Promise.resolve(void 0),resolveElementReference:()=>Promise.resolve(void 0),resolveCachedElementReferenceToLibrary:()=>{},resolveCachedElementReference:()=>{},getPrimarySyncError:()=>{},on:()=>{}},nt=["library","libraries"],it={UPLOADING:"uploading",DOWNLOADING:"downloading",DONE:void 0};let ot=(Se=i.observable.ref,Te=i.observable.ref,Pe=i.observable.ref,Ie=i.observable.ref,He=class e{constructor(e){var t=this;Je(this,"isOnline",Ce,this),Je(this,"_ccLibraries",ke,this),Je(this,"_tempDir",De,this),this._syncState=new D(this),this.publishState=new V(this),this._restorePreviousCurrentLibrary=()=>{if(y.Z.currentProduct.config.defaultToDocumentAssets)this.currentLibrary=this.documentAssetsContainer;else if(!y.Z.currentProduct.config.disableRestorePreviousCurrentLibrary){const e=g.Z.getValue(this._getCurrentLibraryIdKey()),t=(0,J.Kf)()?null:e||g.Z.getValue(this.userId+"#currentLibraryId")||g.Z.getValue("currentDesignLibraryId"),r=this.getLibraryById(t)||this._findNextCurrentLibrary();S.Z.navigateToLibrary(r)}},this._onLibrariesConnectionChange=()=>{ze.ZP.initializeOperationalMetrics(),m.Z.clearAccessToken(),w.ZP.setUserId(this.userId),pe.Z.init(this.userId).then((e=>{!g.Z.getDebugValue("jsapiHybridDriver")&&S.Z.hybridDriver&&e&&e.has("cc_libraries_managed_sync")&&this._ccLibraries.changeDriver(S.Z.hybridDriver)})),(0,n.av)({id:this.userId}),ze.ZP.initializeOperationalMetrics(this.userId)},this._onAreLibrariesLoadedChange=()=>{this.areLibrariesLoaded?(this._initLegacyActiveLibrariesMap(),(0,J.jh)()):this.currentLibrary=void 0},Je(this,"_isPublishing",Ne,this),Je(this,"_currentLibrary",Re,this),this.createLibrary=function(e,t={}){if(!this._ccLibraries.isConnected())return;ee.Z.resetCurrentLibrariesFilter();const r=this.areLibrariesLoaded&&!this.libraries.length,n=this._ccLibraries.createLibrary(e,t);return ze.ZP.sendCreateLibraryEvent(n,{ccl:{is_creating_first_library:r}}),this.setLibraryActiveState(n,!0),n},this.createTeamLibrary=function(e,t,r={}){const n=this.platformFolders.find((t=>t.id===e));if(n){ee.Z.resetCurrentLibrariesFilter(),r.team=n;const e=this._ccLibraries.createLibrary(t,r);return ze.ZP.sendCreateLibraryEvent(e),this.setLibraryActiveState(e,!0),e}},Je(this,"brandEditorsData",Me,this),this._collaborationData=i.observable.map(),this._invitationsData=i.observable.map(),this._teamLibrariesData=i.observable.map(),Je(this,"_relinkableAssetsData",je,this),this.fetchLibraryCollaborations=function(){var e=Xe($e().mark((function e(r,n=0){var i;return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=Math.max(n,3e5),r&&(A.R3(r)||A.$_(r))){e.next=4;break}return e.abrupt("return");case 4:(!(i=t._collaborationData.get(r.id))||i.timestamp<Date.now()-n)&&r.loadCollaborators().then((()=>{t._collaborationData.set(r.id,{timestamp:Date.now()})})).catch((e=>{E.Z.log(`Could not get library collab data: ${e}`)}));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this._getInvites=()=>{return this.loaded?(e=this.userId,ie(e,y.Z.INVITATIONS_PENDING_API_PATH,"getLibrariesInvitations","GET")).then((e=>{this.invitationsData.clear(),e.forEach((e=>{"application/vnd.adobe.library+dcx"===e.resourceType&&this.invitationsData.set(e.resourceURN,e)}))})).catch((e=>{E.Z.log(`Could not get libraries invitation data: ${e}`)})):new Promise((e=>(0,i.when)((()=>this.loaded),(()=>e(this._getInvites())))));var e},this._throttledFetchInvitations=(0,ce.P2)(this._getInvites,y.Z.FETCH_INVITATIONS_THROTTLE),Je(this,"_recentlyActiveLibraries",Fe,this),this._secondsConsideredRecent=2e3,Je(this,"_initialized",Ze,this),Je(this,"_isLoadingAppLoggedInState",Be,this),Je(this,"_isAppLoggedIn",Ge,this),Je(this,"_isResolvingASingleLibrary",Ue,this),this._ccLibraries=e||rt,window.addEventListener("online",(()=>{this.isOnline=!0})),window.addEventListener("offline",(()=>{this.isOnline=!1})),this._tempDirDisposer=(0,i.reaction)((()=>this._tempDir),(()=>{var e;return null===(e=S.Z.notifyLibraryTempDir)||void 0===e?void 0:e.call(S.Z,this._tempDir)}))}_onSyncStateChange(){if(S.Z.setSyncState&&S.Z.setSyncState(this.syncStatus),this.librariesInitError&&w.ZP.reportError("Initialize","Init","initialize-error",null,this.syncStatus.errorType),y.Z.currentProduct.config.mustHaveCurrentLibrary){if("ok"===this.syncStatus.state&&this.areLibrariesLoaded&&this.libraries.length>0&&!this.currentLibrary)return void(this.currentLibrary=this._findNextCurrentLibrary());this.currentLibrary||ee.Z.resetMode()}else this.isAppLoggedIn||ee.Z.resetMode()}_detectBrokenLinksAndOfferResolution(){var e=this;return Xe($e().mark((function t(){var r,n,i;return $e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(r=e.documentAssetsContainer.missingLinks)&&void 0!==r&&r.length){t.next=2;break}return t.abrupt("return");case 2:return n=()=>{const t=[];let r=!1;return e.documentAssetsContainer.missingLinks.forEach((n=>{n.isMissingLibrary&&n.cachedLinkedLibraryAssetId&&t.push(e.fetchTeamLibraryData(n.cachedLinkedLibraryAssetId)),n.isMissingLibraryLink&&(r=!0)})),r&&t.push(e.fetchLibraryInvitations()),Promise.all(t)},t.next=5,n();case 5:e.documentAssetsContainer.resolvableMissingLinks.length&&(null===(i=S.Z.openApplicationDialog)||void 0===i||i.call(S.Z,"resolveBrokenLinks",{fetchInvitations:!1}));case 6:case"end":return t.stop()}}),t)})))()}_migrateLinkReferences(){var e;null===(e=S.Z.migrateLinkReferences)||void 0===e||e.call(S.Z,this.documentAssetsContainer.elements)}get syncStatus(){return this._syncState.status}get publishStatus(){return this.publishState.status}get librariesInitError(){return"error"===this.syncStatus.state&&!this.areLibrariesLoaded}get isSharingEnabled(){return!!this.isOnline&&("error"!==this.syncStatus.state||"network"!==this.syncStatus.errorType&&"noAccess"!==this.syncStatus.errorType)}get isRestrictedAccount(){return this.syncStatus.errorType&&"noAccess"===this.syncStatus.errorType}get isStarterPlanUser(){return!this.publishState._isPaidUser}showSyncSpinner(){this._syncState.showSyncSpinner()}get shutdownWarning(){return this._syncState.shutdownWarning}getAccessToken(e,t,r,n){return this._ccLibraries.getAccessToken(e,t,r,n)}dangerouslyAccessCCLibraries(){return this._ccLibraries}_initLegacyActiveLibrariesMap(){this._legacyActiveLibraries={},this.libraries.forEach((e=>{this._legacyActiveLibraries[e.id]=P.Z.getLocalMachineSetting(this._legacyGetLibraryActiveKey(e))}))}get tempDir(){return this._tempDir}getSearchResults(e,t,r,n){const i=function(e){return function(){return new et(e.apply(this,arguments))}}($e().mark((function t(){var r,i,o,a,s;return $e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this.currentLibrary,i=n.isDocumentSearchType(),!(0,oe.fs)(e)||!(i||r&&!n.isSearchMode())){t.next=5;break}return o=i?this.documentAssetsContainer:r,t.abrupt("return",o.elements);case 5:return a=(n.isLibrariesSearchMode()?this.searchableLibraries.filter((e=>!e.isDocumentAssets)):[r]).filter((e=>e)),s=(0,oe.OX)(e,a),t.next=9,s;case 9:case"end":return t.stop()}}),t,this)}))).bind(this),o=!this.disableCCLibraries&&nt.includes(n.getSearchType())?this._ccLibraries.getSearchResults(e,t,r):new ue.Lr(i);return new a(o)}get platformFolders(){return this._ccLibraries.projects||[]}get userQuota(){const e=this._ccLibraries.userQuota;if(e){const t=Math.pow(y.Z.BYTE_MULTIPLIER,3);return{storage_quota:e.storage_quota*t,storage_used:e.storage_used*t,storage_available:e.storage_available*t}}}refreshTeams(){return this._ccLibraries.refreshTeams()}get documentAssetsContainer(){var e,t;return null===(e=(t=y.Z.currentProduct).getDocumentAssetsContainer)||void 0===e?void 0:e.call(t)}get publishedDocumentLibrary(){if(!this.documentAssetsContainer)return;const e=this.documentAssetsContainer.linkedLibraryId;return this.libraries.find((t=>t.documentId===S.Z.cloudAssetId&&t.id===e))}_localizeGroup(e,t){if(!e.nameLocalizationKey)return Promise.resolve();this._cachedLocalizedNames=this._cachedLocalizedNames||{};let r=S.Z.supportedLocales;const n=S.Z.getLocale(!0);return r=r.reduce(((e,t)=>(t!==n&&e.push(t),e)),[n]),this._cachedLocalizedNames[e.nameLocalizationKey]?(r.forEach((r=>{if(this._cachedLocalizedNames[e.nameLocalizationKey]&&this._cachedLocalizedNames[e.nameLocalizationKey][r]){const n=this._cachedLocalizedNames[e.nameLocalizationKey][r];t.setLocalizedName(r,n)}})),Promise.resolve()):(this._cachedLocalizedNames[e.nameLocalizationKey]={},(()=>{const e={},t=r.map((t=>S.Z.fetchResourceBundle(t).then((r=>{e[t]=r}))));return Promise.all(t).then((()=>e))})().then((n=>{r.forEach((r=>{const i=n[r][e.nameLocalizationKey];this._cachedLocalizedNames[e.nameLocalizationKey][r]=i,t.setLocalizedName(r,i)}))})))}_updateGroupParents(e,t){e.forEach((({documentGroup:e,group:r})=>{const n=e.parent,i=n&&t[n.id];r.parent=i}))}_publishGroup(e,t,r,n){if(n)return n.name=e.name,n.order=e.order,r[e.id]=n,Promise.resolve({documentGroup:e,group:n});w.ZP.setExtraEventMetrics("createGroup",{disableReport:!0});const i=t.createGroup(e.name,e.order);return r[e.id]=i,i.sourceRef=e.getReference(),this._localizeGroup(e,i).then((()=>({group:i,documentGroup:e})))}_publishGroups(e,t){const r=e.getGroups(),n=B(t.getGroups(),r),i=n.newItems,o=n.itemsToDelete,a=n.itemsToUpdate,s=n.unchangedItems,c=[],l=s.reduce(((e,{source:t,target:r})=>(e[t.id]=r,e)),{});return w.ZP.setExtraEventMetrics("removeGroup",{disableReport:!0}),this.deleteGroups(o,{checkForDependents:!1,showUndoToast:!1,hasSeenWarning:!0}),i.forEach((e=>{c.push(this._publishGroup(e,t,l))})),a.forEach((({target:e,source:r})=>{c.push(this._publishGroup(r,t,l,e))})),Promise.all(c).then((e=>(this._updateGroupParents(e,l),l)))}_updateGroupsMetadata(e,t,r){r&&t.getGroups().forEach((n=>{const i=r[n.id],o=t.getOrderInGroup(n);w.ZP.setExtraEventMetrics("updateElement",{disableReport:!0}),e.setOrderInGroup(i,o)}))}_publishElement(e,t,r,n,i){if(!e||!t||!r)return Promise.resolve();if(n&&n.removed&&t.restoreElement(n),n&&!i)return this._updateGroupsMetadata(n,e,r),n.sourceRefString!==e.getReferenceString()&&(n.sourceRef=e.getReference()),Promise.resolve({element:n});const o=b.Z._getConfiguration(e.type);return o&&o.createOrUpdateElementFromAsset?(w.ZP.setExtraEventMetrics("updateElement",{disableReport:!0}),o.createOrUpdateElementFromAsset(e,t,"publish",n).then((({element:t,dependentAssetIds:n})=>(this._updateGroupsMetadata(t,e,r),t.sourceRef=e.getReference(),Promise.resolve({element:t,dependentAssetIds:n}))))):void 0}_updateElementDependencies(e){let t;const r=this.publishedDocumentLibrary,n=[];return e.forEach((({element:e,dependentAssetIds:i})=>{if(!e||!i)return;const o=A.a3(e),a=i.filter((e=>e!==o));if(e.hasMissingDependencies||e.dependencies.length!==a.length||!e.dependencies.every(((e,t)=>A.a3(e)===a[t]))){t||(t=new Map,r.elements.forEach((e=>{t.set(A.a3(e),e)})));try{e.dependencies=a.map((e=>t.get(e)))}catch(r){n.push(e);const i="Error updating dependencies: "+r,o=a.filter((e=>!t.has(e)));o.length,E.Z.log(i)}}})),n}syncStateCompleteListener(e,t,r=(e=>{})){let n;return[new Promise((o=>{let a;E.Z.log(`waiting for '${t}' sync state`),n=()=>{r(`Clearing wait for sync state ${t}`),clearTimeout(s),c(),o()};const s=setTimeout(n,6e4),c=(0,i.reaction)((()=>e.syncState),(e=>{r(`Sync state update: ${e}`),e===t&&(r(`State '${t}' hit for published library.`),clearTimeout(s),a=!0),void 0===e&&a&&(r(`${t} complete`),n())}),{fireImmediately:!0})})),n]}_requestPublish(e=!1){var t=this;return Xe($e().mark((function r(){var n,i;return $e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,null===(n=(i=y.Z.currentProduct.config).requestPublish)||void 0===n?void 0:n.call(i);case 3:return r.abrupt("return",r.sent);case 6:throw r.prev=6,r.t0=r.catch(0),e&&t.unpublish(t.publishedDocumentLibrary),de.Z.manager.toastManager.openToast("message",{variant:"error",message:(0,T.Iu)("DL_PUBLISH_GENERAL_ERROR_TOAST")}),r.t0;case 11:case"end":return r.stop()}}),r,null,[[0,6]])})))()}publish(e,t,r={}){var n=this;return Xe($e().mark((function o(){var a,s,c,l,u,d,p,h,f,m,g,b,_;return $e().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(e&&S.Z.cloudAssetId){o.next=2;break}return o.abrupt("return",Promise.reject("Missing documentLibrary or cloudAssetId"));case 2:if(!n._isPublishing){o.next=4;break}return o.abrupt("return",Promise.reject());case 4:return n._isPublishing=!0,n._clearPublishQuotaErrorListener(),a=n.publishedDocumentLibrary||n.relinkableLibrary,(s=!a)&&(r.team=t,a=n._ccLibraries.createLibrary(S.Z.documentName,r),ze.ZP.sendCreateLibraryEvent(a),a.linkToDocument(S.Z.cloudAssetId,S.Z.documentType),S.Z.linkDocumentToLibrary(a.id),n._publishedLibraryIdDisposer=(0,i.reaction)((()=>a.previousPlaceHolderId),(()=>{S.Z.linkDocumentToLibrary(a.id)}),{fireImmediately:!0})),a===n.relinkableLibrary&&a.linkToDocument(S.Z.cloudAssetId,S.Z.documentType),c=(e,t)=>{if(t.beginOperation(),s)return n._publishGroups(e,t).then((r=>{const i=e.elements.map((e=>n._publishElement(e,t,r)));return Promise.all(i)}));{S.Z.documentName!==t.name&&(t.name=S.Z.documentName);const r=Z([...t.elements,...t.removedElements],e.elements,t,e),i=r.newItems,o=r.itemsToDelete,a=r.itemsToUpdate,s=r.unchangedItems;return n._publishGroups(e,t).then((e=>{const r=[];return a.forEach((i=>{const o=i.target,a=i.source,s=i.diff;r.push(n._publishElement(a,t,e,o,s===y.Z.ELEMENT_CHANGE_TYPE.CONTENT))})),s.forEach((i=>{const o=i.target,a=i.source;r.push(n._publishElement(a,t,e,o,!1))})),n.deleteElements(o,!0,!1,!1),i.forEach((i=>{r.push(n._publishElement(i,t,e))})),Promise.all(r)}))}},l=E.Z.progress(y.Z.PROGRESS_LOG.PUBLISHING),E.Z.log("Publishing document library..."),S.Z.disableAPILoggingByDefault&&!v.Z.get("apiLogging")&&E.Z.disable(),o.prev=14,o.next=17,n._requestPublish(s);case 17:return u=o.sent,p=n.syncStateCompleteListener(a,it.UPLOADING,l.log),h=We(p,2),f=h[0],m=h[1],d=m,f.then((()=>{var e,t;l.log("Sync state listener for published library upload resolved"),l.end(),null===(e=(t=y.Z.currentProduct.config).notifyPublishEnd)||void 0===e||e.call(t)})),o.next=23,c(e,a);case 23:return g=o.sent,ze.ZP.sendPublishLibraryEvent(a),E.Z.enable(),l.log("Created elements"),n._updateElementDependencies(g),l.log("Updated dependencies"),a.endOperation(),l.log("Committed"),n._startPublishQuotaErrorListener(),o.abrupt("return",a);case 35:throw o.prev=35,o.t0=o.catch(14),E.Z.enable(),l.log(`Error: ${o.t0}`),l.end(),null===(b=d)||void 0===b||b(),o.t0;case 42:return o.prev=42,l.log("Setting isPublishing false and updating environment"),n._isPublishing=!1,null===(_=u)||void 0===_||_(),o.finish(42);case 47:case"end":return o.stop()}}),o,null,[[14,35,42,47]])})))()}unpublish(e){if(e&&S.Z.linkDocumentToLibrary)return S.Z.linkDocumentToLibrary(),this._clearPublishQuotaErrorListener(),this.deleteLibrary(e)}get isPublishing(){return this._isPublishing}get relinkableLibrary(){if(this.publishState.isPublishedLibraryNotFound){const e=this.documentAssetsContainer.linkedLibraryId;return this.libraries.find((t=>t.id===e))}}get orphanedLibraries(){const e=this.documentAssetsContainer.linkedLibraryId;return this.libraries.filter((t=>t.documentId===S.Z.cloudAssetId&&t.documentType===S.Z.documentType&&t.isWritable&&t.id!==e))}getCCLibraries(e=!1){return!this._ccLibraries.isConnected()&&!S.Z.maintainConnectionToProcess||v.Z.get("enableMockEmptyState")?[]:this._ccLibraries.libraries.filter((t=>!(!v.Z.get("showToolkitLibraries")&&t.toolkitId||!e&&!t.isLibraryLoaded)))}get activeLibraries(){return this.libraries.filter((e=>this.publishedDocumentLibrary?this.isLibraryActive(e)&&e.id!==this.publishedDocumentLibrary.id:this.isLibraryActive(e)))}get partiallyLoadedLibraries(){return(this.getCCLibraries(!0)||[]).filter((e=>!e.isLibraryLoaded))}get searchableLibraries(){return[...this.documentAssetsContainer?[this.documentAssetsContainer,...this.activeLibraries]:this.activeLibraries,...this.partiallyLoadedLibraries]}get libraries(){const e=this.getCCLibraries();return _.Z.sortByName(e),e}get recentLibraries(){const e=this.getCCLibraries(),t=this.libraries.length>y.Z.RECENTS_LIST_LIBRARY_MIN?y.Z.RECENTS_LIST_LIMIT:e.length;return e.sort(((e,t)=>{const r=this.getLastAccess(e),n=this.getLastAccess(t);return r>n?-1:r<n?1:0})).slice(0,t)}getLibraryById(e){return this.documentAssetsContainer&&this.documentAssetsContainer.id===e?this.documentAssetsContainer:this._ccLibraries.getLibraryById(e)}getLibraryByAssetId(e){return this.libraries.find((t=>t.assetId&&t.assetId.toLowerCase()===e.toLowerCase()))}getLibraryByToolkitId(e){return this._ccLibraries.getLibraryByToolkitId(e)}get currentLibrary(){return this._currentLibrary}set currentLibrary(e){if(this._currentLibrary===e||!this.currentLibrary&&!e)return;const t=de.Z.panel.viewState;if(t.setCurrentSection(null),this._currentLibrary=e,t.clearAllSelections(),t.setSearchText(""),t.librariesSearchState.clearFilters(),this._clearDeletionListener(),this._clearElementLoadCheckListener(),this._clearDocumentChangeListener(),this._clearAssetIdChangeListener(),e){if(t.setSearchType("library"),A.w_(e),e===this.documentAssetsContainer&&this.publishedDocumentLibrary&&A.w_(this.publishedDocumentLibrary),this.areLibrariesLoaded){const t=this._getCurrentLibraryIdKey()+e.id;g.Z.setValue(this._getCurrentLibraryIdKey(),e.id),g.Z.setValue(t,Date.now())}if(this.isLibraryActive(e)||this.setLibraryActiveState(e,!0),this._elementLoadCheckListener=(0,i.when)((()=>e.areElementsLoaded),(()=>{A.JT(e)&&x.ZP.openDialog("migrateLibraryWithSlashes",{library:e})})),!e.isTransient&&e!==this.documentAssetsContainer){const t=()=>!!this._ccLibraries.getLibraryById(e.id);this._deletionListener=()=>{if(!t()){const e=this.areLibrariesLoaded&&this._findNextCurrentLibrary();e&&S.Z.isViewMounted?S.Z.navigateToLibrary(e):S.Z.navigateToLibrary(null)}},this._ccLibraries.on("change",this._deletionListener),this._assetIdChangeListener=(0,i.reaction)((()=>e.assetId),(()=>{S.Z.navigateToLibrary(e)}))}if(e===this.documentAssetsContainer){const t=e.id;this._documentChangeListener=(0,i.reaction)((()=>S.Z.documentId),(e=>{t!==e&&S.Z.navigateToLibrary(this._findNextCurrentLibrary())}))}(0,J.k3)(),this._ccLibraries.getTempDir(e).then((e=>this._tempDir=e)).catch((e=>{E.Z.log(`Could not fetch temp directory: ${e}`),this._tempDir=null}))}else{var r;x.ZP.closeDialog(),t.setSearchType(null!==(r=y.Z.currentProduct.config.rootViewSearchType)&&void 0!==r?r:"libraries"),this.areLibrariesLoaded&&g.Z.setValue(this._getCurrentLibraryIdKey(),null),this._tempDir=null}}_findNextCurrentLibrary(){if(this.documentAssetsContainer&&y.Z.currentProduct.config.defaultToDocumentAssets)return this.documentAssetsContainer;if(!y.Z.currentProduct.config.mustHaveCurrentLibrary)return null;let e,t;return this.libraries.filter((e=>!(!v.Z.get("showToolkitLibraries")&&e.toolkitId))).forEach((r=>{const n=this.getLastAccess(r);(!t||n>t)&&(e=r,t=n)})),e}loadLibraryByAssetId(e){return this._ccLibraries.loadLibraryByAssetId(e)}unfollowLibrary(e){if(e&&!A.Wv(e))return this._ccLibraries.unfollowLibrary(e)}followLibrary(e,t){return this._ccLibraries.followLibrary(e,t)}deleteLibrary(e){if(!e||A.D3(e)||e.isDeletedLocally)return;ee.Z.lockToolkit(e),S.Z.isLibraryManagerWindowOpen()||w.ZP.setExtraEventMetrics("removeLibrary",{library:e,event:{pagename:(ee.Z.isRootView()?"Root View":this.currentLibrary&&this.currentLibrary.isDocumentAssets&&"Document Assets View")||"Library View"}});const t=this._ccLibraries.removeLibrary(e);return ze.ZP.sendDeleteLibraryEvent(e),t}moveLibrary(e,t,r){const n=this._ccLibraries.moveLibrary(e,t,r);return ze.ZP.sendMoveLibraryEvent(e),n}copyLibrary(e,t,r){return this._ccLibraries.copyLibrary(e,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(r),!0).forEach((function(t){Ye(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ve(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({team:t},r))}importLibrary(e,t){return this._ccLibraries.importLibrary(e,t)}exportLibrary(e,t,r){return this._ccLibraries.exportLibrary(e,t,r)}publishBrand(e){return this._ccLibraries.publishBrand(e)}unpublishBrand(e){return this._ccLibraries.unpublishBrand(e)}_getCurrentLibraryIdKey(){return`${this.userId}#currentLibraryId`}deleteElements(e,t=!1,r=!0,n=!0){if(!e||0===e.length)return;if(r&&A.fR(e))return void A.cC("delete",e.length>1?"elements":"element",(()=>this.deleteElements(e,t,!1)));if(!t&&e.length>this.MAX_REMOVED_ELEMENTS)return void A.cL(e,(()=>this.deleteElements(e,!0)));const i=new te.T("Delete Elements"),o={},a=[];if(e.forEach((e=>{var r;r=e.library,o[r.id]||(r.beginOperation(),o[r.id]=r);const n=t||e.library.disableNonPermanentDelete;n||a.push(e),e.library.removeElement(e,n),ze.ZP.sendDeleteElementEvent(e)})),Object.keys(o).forEach((e=>o[e].endOperation())),a.length&&n&&!y.Z.currentProduct.config.showElementActionToasts&&(le.Ol(a[0].library)?L.Z.openToast("undoDeleteBrandsElements",{elements:a,variant:"success"}):L.Z.openToast("undoDeleteElements",{elements:a})),y.Z.currentProduct.config.showElementActionToasts){let t;t=1===e.length?(0,T.Iu)("DL_DELETE_SUCCESS_TOAST"):(0,T.Iu)("DL_DELETE_SUCCESS_TOAST_PLURAL",{num:e.length}),L.Z.openToast("message",{message:t,variant:"success"})}i.done()}deleteGroups(e,t){const r=t=Object.assign({deleteContents:!1,permanentlyDelete:!1,checkForDependents:!0,hasSeenWarning:!1,deleteEmptyAncestors:!1,showUndoToast:!0},t),n=r.deleteContents,i=r.permanentlyDelete,o=r.checkForDependents,a=r.hasSeenWarning,s=r.deleteEmptyAncestors,c=r.showUndoToast;if(!e||!e.length)return;e.find((e=>ee.Z.currentSection===e.id))&&ee.Z.setCurrentSection();const l=e[0].library,u=[],d=ee.Z.elementSortState,p=N.GI(l,{sortBy:d}),h=p.branches,f=n?e.reduce(((e,t)=>e.concat(N.xF(t))),[]):[],m=s?e.reduce(((e,t)=>e.concat(N._y(t).filter((e=>!e.disableEditing&&1===h[e.id].children.length)))),[]):[];if((e=[...new Set([...e,...f,...m])]).forEach((e=>{h[e.id].children.forEach((e=>{e.item.isGroup||u.push(e.item)}))})),o&&n&&A.fR(u))A.cC("delete","group",(()=>this.deleteGroups(e,{deleteContents:!0,permanentlyDelete:i,checkForDependents:!1})));else{if(!n){ee.Z.clearAllSelections();const t=N.Q_(e);return l.beginOperation(),t&&A.c_(u,t),e.forEach((e=>{e.children&&e.children.forEach((e=>{t&&e.isGroup&&(e.parent=t)})),l.removeGroup(e,!1)})),l.endOperation(),void(c&&L.Z.openToast("undoDeleteGroup",{groupsTree:p,elements:u,ungroup:!0}))}if(i||!(u.length>this.MAX_REMOVED_ELEMENTS))return i?(l.beginOperation(),e.forEach((e=>l.removeGroup(e,!1))),u.forEach((e=>{l.removeElement(e,!0),ze.ZP.sendDeleteElementEvent(e)})),void l.endOperation()):void(a||!(0,J.g9)()?(ee.Z.clearAllSelections(),l.beginOperation(),e.forEach((e=>{l.removeGroup(e,!0)})),l.endOperation(),!l.isDocumentAssets&&c&&L.Z.openToast("undoDeleteGroup",{groupsTree:p,elements:u})):(0,J.Lp)(e));A.cL(u,(()=>this.deleteGroups(e,{deleteContents:!0,permanentlyDelete:!0,checkForDependents:!1,hasSeenWarning:!0})))}}restoreElements(e,t={}){const r={},n={};t.children&&t.children.forEach((e=>{e.item.isGroup||(n[e.item.id]=e.order)})),e.forEach((e=>{if(!e.isDeletedLocally&&e.removed)if(e.library.isWritable)if(O.Z.canAddElements(e.library)){i=e.library,r[i.id]||(i.beginOperation(),r[i.id]=i),e.library.restoreElement(e);const o=n[e.id];o&&e.setOrderInGroup(t.item,o)}else w.ZP.setExtraEventMetrics("moveElement",{content:{category:"Undo Delete"}}),e.library.moveElement(e,this.getOverflowLibrary(e.library.name));else w.ZP.setExtraEventMetrics("copyElement",{content:{category:"Undo Delete"}}),e.library.copyElement(e,this.getRecoveryLibrary(e.library.name));var i})),Object.keys(r).forEach((e=>r[e].endOperation()))}get brandEditorsMembers(){return this.brandEditorsData}loadBrandCreatorList(){var e=this;return Xe($e().mark((function t(){return $e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.brandEditorsData.length){t.next=2;break}return t.abrupt("return",se.Z.getBrandsAddressBookGroupMembers().then((t=>{e.brandEditorsData=t})).catch((()=>{e.brandEditorsData=[]})));case 2:return t.abrupt("return",Promise.resolve());case 3:case"end":return t.stop()}}),t)})))()}get invitationsData(){return this._invitationsData}get teamLibrariesData(){return this._teamLibrariesData}get relinkableAssetsData(){return this._relinkableAssetsData}fetchLibraryInvitations(e){return e?this._getInvites():this._throttledFetchInvitations()}acceptAllLibraryInvitations(){const e=[];return this.invitationsData.forEach((t=>{const r=(n=this.userId,i=t.invitationId,ie(n,`${y.Z.INVITATIONS_ACCEPT_API_PATH}/${i}`,"acceptInvitation","POST")).catch((e=>{E.Z.log(`Could not accept library invitation: ${e}`)}));var n,i;e.push(r)})),Promise.all(e).finally((()=>this.fetchLibraryInvitations(!0)))}fetchTeamLibraryData(e){var t=this;return Xe($e().mark((function r(){var n,i;return $e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,t.teamLibrariesData.clear(),r.next=4,se.Z.getAssetWithCloudID(e);case 4:if((i=r.sent)&&!i.isDiscarded){r.next=7;break}return r.abrupt("return",t.teamLibrariesData.set(e,!1));case 7:if(i.appMetadata.isLoaded){r.next=10;break}return r.next=10,i.appMetadata.load();case 10:t.teamLibrariesData.set(e,null===(n=i.appMetadata.data["cc:inherited"])||void 0===n?void 0:n["cc:team"]),r.next=17;break;case 13:r.prev=13,r.t0=r.catch(0),E.Z.log(`[libraryManager.fetchTeamLibraryData] ${r.t0}`),t.teamLibrariesData.set(e,!1);case 17:case"end":return r.stop()}}),r,null,[[0,13]])})))()}resolveElementReference(e,t=!1){return this._ccLibraries.resolveElementReference(e,t)}resolveCachedElementReference(e,t=!1){return this._ccLibraries.resolveCachedElementReference(e,t)}resolveElementReferenceToLibrary(e){return this._ccLibraries.resolveElementReferenceToLibrary(e)}resolveCachedElementReferenceToLibrary(e){return this._ccLibraries.resolveCachedElementReferenceToLibrary(e)}resolveLibraryReference(e){return this._ccLibraries.resolveLibraryReference(e)}resolveCachedLibraryReference(e){return this._ccLibraries.resolveCachedLibraryReference(e)}resolveLibraryById(e){return this._ccLibraries.resolveLibraryById(e)}resolveLibraryByAssetId(e){return this._ccLibraries.resolveLibraryByAssetId(e)}getRelinkableAssets(){return new Promise((e=>{const t=new Map,r=new Map,n=new Map;let i=!1;this.documentAssetsContainer.missingLinks.forEach((e=>{if(e.canRelinkToLibrary){n.set(e.id,[]);const r=(0,R.UI)(e),o=!r&&(0,ae.lJ)(e);o&&(i=!0),t.set(r||o,e)}})),this.libraries.forEach((e=>{e.documentId&&e.getFilteredElements((a=>{const s=(0,R.LR)(a);let c=t.has(s)&&s;if(!c&&i){const e=(0,ae.lJ)(a);c=t.has(e)&&e}if(c){const i=(0,o.Z0)(a),s=t.get(c),l={asset:s,element:i};n.get(s.id).push(l),r.has(e.id)||r.set(e.id,[]),r.get(i.library.id).push(l)}}))}));const a={assets:n,libraries:r};return this._relinkableAssetsData=a,e(a)}))}syncingEnabled(){return this._ccLibraries.isSyncingEnabled()}getServiceInfo(){return this._ccLibraries.processInfo}getSNISettings(){return ue.P6.getSNISettings()}sync(e,t){if(this.disableCCLibraries)return;const r="error"===this.syncState&&!this.retryTime;(!e||t&&r||!t&&!r)&&"syncing"!==this.syncState&&this._ccLibraries.syncState&&this._ccLibraries.syncState.sync()}enableSyncing(){var e=this;return Xe($e().mark((function t(){return $e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.resolve(e._ccLibraries.enableSyncing());case 2:e.sync();case 3:case"end":return t.stop()}}),t)})))()}disableSyncing(){this._ccLibraries.disableSyncing(!0)}get _activeLibraries(){return P.Z.getLocalMachineSetting(this._activeLibrariesKey)||this._legacyActiveLibraries||{}}_legacyGetLibraryActiveKey(e){return`activeLibrary#${e.id}-${y.Z.currentProduct.config.code}`}get _activeLibrariesKey(){return`activeLibraries-${y.Z.currentProduct.config.code}`}isLibraryActive(e){if(e.isDocumentAssets)return!y.Z.currentProduct.config.disableDocumentAssetsView;const t=this._activeLibraries;return e&&!1!==t[e.id]}isLibraryRecentlyActive(e){return!!this._recentlyActiveLibraries.get(e.id)}_updateRecentlyActiveLibraries(e,t){if(t){const t=setTimeout((()=>{this._recentlyActiveLibraries.delete(e.id)}),this._secondsConsideredRecent);this._recentlyActiveLibraries.set(e.id,t)}else{const t=this._recentlyActiveLibraries.get(e.id);t&&(clearTimeout(t),this._recentlyActiveLibraries.delete(e.id))}}setLibraryActiveState(e,t){const r=this._activeLibraries;r[e.id]=t,P.Z.setLocalMachineSetting(this._activeLibrariesKey,r),this._updateRecentlyActiveLibraries(e,t)}setLibrariesActiveState(e,t){const r=this._activeLibraries;e.forEach((e=>{r[e.id]=t})),P.Z.setLocalMachineSetting(this._activeLibrariesKey,r)}get isAppLoggedIn(){if(!this._isLoadingAppLoggedInState||this._isAppLoggedIn)return this._isAppLoggedIn}get initialized(){return this._initialized}get loaded(){return Boolean(this.areLibrariesLoaded)}waitForInitialLoad(){return new Promise((e=>{(0,i.when)((()=>this.loaded),(()=>e()))}))}init(){var t;this._isAppLoggedIn=m.Z.hasValidUser(),this._initialized||(class{static registerDependencies(e){this._dependencies=e}static _getDependency(e){var t;return null===(t=this._dependencies)||void 0===t?void 0:t[e]}constructor(e){this._onLibrariesChanged=()=>{this._librariesAtom.reportChanged(),(0,o.fs)()},this._onLocalSettings=()=>{this._localSettingsAtom.reportChanged()},this._onSync=()=>{this._syncAtom.reportChanged()},(0,o.LK)(),this._ccLibraries=e,this._librariesAtom=new i.Atom("libraries",(()=>this._ccLibraries.on("change",this._onLibrariesChanged)),(()=>this._ccLibraries.off("change",this._onLibrariesChanged))),this._localSettingsAtom=new i.Atom("localSettings",(()=>this._ccLibraries.on("configurationChange",this._onLocalSettings)),(()=>this._ccLibraries.off("configurationChange",this._onLocalSettings))),this._syncAtom=new i.Atom("sync",(()=>this._ccLibraries.on("sync",this._onSync)),(()=>this._ccLibraries.off("sync",this._onSync)));const t=this._removeAllListeners.bind(this);this.DANGEROUS={removeAllListeners:t}}on(e,t){this._ccLibraries.on(e,t)}off(e,t){this._ccLibraries.off(e,t)}_removeAllListeners(){this._ccLibraries.DANGEROUS.removeAllListeners()}get utils(){return this._ccLibraries.utils}get errors(){return this._ccLibraries.errors}resolveElementReference(e){var t=this;return l(s().mark((function r(){return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=o.Z0,r.next=3,t._ccLibraries.resolveElementReference(e);case 3:return r.t1=r.sent,r.abrupt("return",(0,r.t0)(r.t1));case 5:case"end":return r.stop()}}),r)})))()}resolveCachedElementReference(e){this._librariesAtom.reportObserved(),this._syncAtom.reportObserved();const t=this._ccLibraries.resolveCachedElementReference(e);return t?(0,o.Z0)(t):t}resolveElementReferenceToLibrary(e){var t=this;return l(s().mark((function r(){return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=o.mK,r.next=3,t._ccLibraries.resolveElementReferenceToLibrary(e);case 3:return r.t1=r.sent,r.abrupt("return",(0,r.t0)(r.t1));case 5:case"end":return r.stop()}}),r)})))()}resolveCachedElementReferenceToLibrary(e){this._librariesAtom.reportObserved(),this._syncAtom.reportObserved();const t=this._ccLibraries.resolveCachedElementReferenceToLibrary(e);return t?(0,o.mK)(t):t}resolveCachedLibraryReference(e){this._librariesAtom.reportObserved(),this._syncAtom.reportObserved();const t=this._ccLibraries.resolveCachedLibraryReference(e);return t?(0,o.mK)(t):t}resolveLibraryReference(e){var t=this;return l(s().mark((function r(){return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=o.mK,r.next=3,t._ccLibraries.resolveLibraryReference(e);case 3:return r.t1=r.sent,r.abrupt("return",(0,r.t0)(r.t1));case 5:case"end":return r.stop()}}),r)})))()}resolveLibraryById(e){var t=this;return l(s().mark((function r(){return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=o.mK,r.next=3,t._ccLibraries.resolveLibraryById(e);case 3:return r.t1=r.sent,r.abrupt("return",(0,r.t0)(r.t1));case 5:case"end":return r.stop()}}),r)})))()}resolveLibraryByAssetId(e){var t=this;return l(s().mark((function r(){return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=o.mK,r.next=3,t._ccLibraries.resolveLibraryByAssetId(e);case 3:return r.t1=r.sent,r.abrupt("return",(0,r.t0)(r.t1));case 5:case"end":return r.stop()}}),r)})))()}refreshTeams(){return this._ccLibraries.refreshTeams()}getOption(e){return this._ccLibraries.getOption(e)}setOption(e,t){this._ccLibraries.setOption(e,t)}getLocalSetting(e){return this._localSettingsAtom.reportObserved(),this._ccLibraries.getLocalSetting(e)}setLocalSetting(e,t){this._ccLibraries.setLocalSetting(e,t)}getRootDir(){return this._ccLibraries.getRootDir()}getLocale(){return this._ccLibraries.getLocale()}isConnected(){return this._ccLibraries.isConnected()}get connectionState(){return this._ccLibraries.connectionState}reconnect(){this._ccLibraries.reconnect()}get connected(){return this._syncAtom.reportObserved(),this._ccLibraries.isConnected()}get processInfo(){return this._ccLibraries.processInfo}disconnect(){var e,t;null===(e=(t=this._ccLibraries).disconnect)||void 0===e||e.call(t)}getServiceInfo(){return this._ccLibraries.getServiceInfo()}isSyncingEnabled(){return this._syncAtom.reportObserved(),this._ccLibraries.isSyncingEnabled()}enableSyncing(){return this._ccLibraries.enableSyncing()}disableSyncing(){this._ccLibraries.disableSyncing()}getAccessToken(e,t,r,n){return this._ccLibraries.getAccessToken(e,t,r,n)}openInCCD(e){return this._ccLibraries.openInCCD(e)}getDefaultLibrary(){var e,t;const r=null===(e=(t=this._ccLibraries).getDefaultLibrary)||void 0===e?void 0:e.call(t);if(r)return(0,o.mK)(r)}setDefaultLibrary(e){this._ccLibraries.setDefaultLibrary(e)}getSearchResults(e,t,r){const n=this._ccLibraries.getSearchResults&&this._ccLibraries.getSearchResults(e,t,r);return new a(n)}get canAccessLocalProcess(){var e;return null===(e=this._ccLibraries.canAccessLocalProcess)||void 0===e||e}getLibraryById(e){const t=this._ccLibraries.getLibraryById(e);return t&&(0,o.mK)(t)}getLibraryByToolkitId(e){const t=this._ccLibraries.getLibraryByToolkitId(e);return t&&(0,o.mK)(t)}get libraries(){return this._librariesAtom.reportObserved(),this._ccLibraries.libraries.map(o.mK)}get userQuota(){return this._librariesAtom.reportObserved(),this._syncAtom.reportObserved(),this._ccLibraries.userQuota}get storageUsed(){return this._ccLibraries.storageUsed}loadLibraryByAssetId(e){var t=this;return l(s().mark((function r(){return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=o.mK,r.next=3,t._ccLibraries.loadLibraryByAssetId(e);case 3:return r.t1=r.sent,r.abrupt("return",(0,r.t0)(r.t1));case 5:case"end":return r.stop()}}),r)})))()}createLibrary(e,t={}){return(0,o.mK)(this._ccLibraries.createLibrary(e,t))}copyLibrary(e,t){return(0,o.mK)(this._ccLibraries.copyLibrary(e._library,t))}moveLibrary(e,t,r){var n=this;return l(s().mark((function i(){return s().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.t0=o.mK,i.next=3,n._ccLibraries.moveLibrary(e._library,t,r);case 3:return i.t1=i.sent,i.abrupt("return",(0,i.t0)(i.t1));case 5:case"end":return i.stop()}}),i)})))()}importLibrary(e,t){return this._ccLibraries.importLibrary(e,((e,r)=>t(e,(0,o.mK)(r))))}exportLibrary(e,t,r){return this._ccLibraries.exportLibrary(e._library,t,r)}removeLibrary(e){return this._ccLibraries.removeLibrary(e._library)}followLibrary(e,t){return this._ccLibraries.followLibrary(e,t)}unfollowLibrary(e){return this._ccLibraries.unfollowLibrary(e._library)}get areLibrariesLoaded(){return this._librariesAtom.reportObserved(),this._syncAtom.reportObserved(),this._ccLibraries.areLibrariesLoaded}get areLibrariesLoading(){return this._syncAtom.reportObserved(),this._ccLibraries.areLibrariesLoading}get fontManager(){return this._ccLibraries.fontManager}get userId(){return this._ccLibraries.userId}get syncState(){return this._syncAtom.reportObserved(),this._ccLibraries.syncState}get retryTime(){return this._syncAtom.reportObserved(),this._ccLibraries.retryTime}sync(){return this._ccLibraries.syncState.sync()}getTempDir(){var e=this;return l(s().mark((function t(){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._ccLibraries.getTempDir());case 1:case"end":return t.stop()}}),t)})))()}get teams(){return this._librariesAtom.reportObserved(),this._ccLibraries.teams}get projects(){return this._librariesAtom.reportObserved(),this._ccLibraries.projects}changeDriver(e){return this._ccLibraries.changeDriver(e)}}.registerDependencies({getFileSize:e=>this.getFileSize(e),getInstalledVersion:e=>this.getInstalledVersion(e)}),this._vulcanInterface=S.Z.vulcanInterface,this._isAppLoggedIn?(this._nglEventListener&&(S.Z.removeEventListener(y.Z.PROFILE_CHANGE_EVENT_ID,this._nglEventListener),this._nglEventListener=void 0),this._ccLibraries!==rt||this.disableCCLibraries||(null!==(t=S.Z.libraryContext)&&void 0!==t&&t.ccLibraries?this._ccLibraries=S.Z.libraryContext.ccLibraries:this._ccLibraries=new ue.ZP(S.Z.ccLibrariesDriver,{elementTypes:["elements"],readOnly:y.Z.currentProduct.config.readOnlyCCLibraries,locale:S.Z.getLocale(),disableLocalFallthrough:y.Z.currentProduct.config.disableProcessInCloudMode,disablePreemptiveLibraryLoad:y.Z.currentProduct.config.disablePreemptiveLibraryLoad,disableFallbackDefaultLibrary:y.Z.currentProduct.config.disableFallbackDefaultLibrary,enableBrandLifecycleManagement:y.Z.currentProduct.config.enableBrandLifecycleManagement,loadBrandFromMelvilleOnUpdate:y.Z.currentProduct.config.loadBrandFromMelvilleOnUpdate,includeApprovedBrandsInLibraries:y.Z.currentProduct.config.includeApprovedBrandsInLibraries,skipConnectingOnInit:S.Z.supportsProcessConnection&&!S.Z.canLaunchProcess,featureFlags:{enableProjects:v.Z.get("enableProjects"),enableGenStudioAPIs:!0},mobXCreateAtom:(e,t,r)=>new i.Atom(e,t,r),mobXTransaction:i.transaction,cloudDriver:S.Z.cloudDriverConnector?new ue.Si(S.Z.cloudDriverConnector):void 0,fileSystemCache:S.Z.fs?{fs:S.Z.fs,dir:S.Z.getLocalRoot()}:void 0,renditionSizes:b.Z.getThumbnailSizes(),fullRenditionConfig:b.Z.getFullRenditionConfig()}),S.Z.exec("CORE","getApplicationVersion",[]).then((e=>{this._ccLibraries.utils.metrics.apiKey=w.ZP.analyticsApiKey(),this._ccLibraries.utils.metrics.product=`${y.Z.currentProduct.config.code}/${e}`,this._ccLibraries.utils.metrics.productLocation=w.ZP.productLocation})).catch((()=>{}))),this._ccLibraries.fontManager&&(this._fontManager=new Oe(this._ccLibraries.fontManager)),this._initialized=!0,this._ccLibraries.on("report",((...e)=>{(e=>{const t=[];e.forEach((e=>{"commit"===e.type&&(w.ZP.reportAPIEvent(e.action),t.includes(e.action.name)||t.push(e.action.name))})),t.forEach((e=>{w.ZP.clearExtraEventMetrics(e)}))})(e)})),y.Z.currentProduct.config.defaultToDocumentAssets&&this.disableCCLibraries&&(0,i.when)((()=>this.documentAssetsContainer),(()=>{this.currentLibrary=this.documentAssetsContainer})),this.disableCCLibraries||(this._syncState.init(),(0,i.observe)(this,"areLibrariesLoaded",(()=>this._onAreLibrariesLoadedChange())),this._isConnected&&this._onLibrariesConnectionChange(),(0,i.observe)(this,"_isConnected",(()=>this._onLibrariesConnectionChange())),this._ccLibraries.on("restore",this._restorePreviousCurrentLibrary),(0,i.reaction)((()=>this.syncStatus),(()=>this._onSyncStateChange())),(0,i.reaction)((()=>S.Z.maintainConnectionToProcess),(t=>{t?(this._disconnectTimeout&&clearTimeout(this._disconnectTimeout),this._disconnectTimeout=void 0,this._syncState.establishConnectionWithProcess(),P.Z.isConnected()||P.Z.reconnectToProcess()):this._disconnectTimeout=setTimeout((()=>{P.Z.disconnectFromProcess(),this._syncState.reset(),this._disconnectTimeout=void 0}),e.disconnectTimeoutDuration)})),(0,i.when)((()=>this.loaded&&this.documentAssetsContainer),(()=>{this._detectBrokenLinksAndOfferResolution(),this._migrateLinkReferences()})))):this._nglEventListener||(setTimeout((()=>this._isLoadingAppLoggedInState=!1),1e3),this._nglEventListener=()=>this.init(),S.Z.addEventListener(y.Z.PROFILE_CHANGE_EVENT_ID,this._nglEventListener)))}get storageUsed(){return this._ccLibraries.storageUsed||0}_clearDeletionListener(){this._deletionListener&&(this._ccLibraries.off("change",this._deletionListener),this._deletionListener=void 0)}_clearElementLoadCheckListener(){var e;null===(e=this._elementLoadCheckListener)||void 0===e||e.call(this),this._elementLoadCheckListener=void 0}_clearDocumentChangeListener(){var e;null===(e=this._documentChangeListener)||void 0===e||e.call(this),this._documentChangeListener=void 0}_clearAssetIdChangeListener(){var e;null===(e=this._assetIdChangeListener)||void 0===e||e.call(this),this._assetIdChangeListener=void 0}_startPublishQuotaErrorListener(){this._publishQuotaErrorListener=(0,i.when)((()=>this.publishedDocumentLibrary&&this.publishedDocumentLibrary.syncError),(()=>{const e=!this.publishedDocumentLibrary.isPushedToServer,t=this.publishedDocumentLibrary.syncError,r=de.Z.manager,n=r.dialogManager,i=r.toastManager;if(t.code===this.errors.EXCEEDS_QUOTA){const t=A.wP(this.publishedDocumentLibrary)||A.$_(this.publishedDocumentLibrary)?"shared":"owned";n.openDialog("publishQuotaError",{isFirstTimePublishing:e,errorType:t})}else{const t=(0,T.Iu)(e?"DL_PUBLISH_GENERAL_ERROR_TOAST":"DL_PUBLISH_UPDATES_GENERAL_ERROR_TOAST");i.openToast("message",{variant:"error",message:t})}e&&this.unpublish(this.publishedDocumentLibrary)}))}_clearPublishQuotaErrorListener(){this._publishQuotaErrorListener&&(this._publishQuotaErrorListener(),this._publishQuotaErrorListener=void 0)}_clearPublishedLibraryListener(){var e;null===(e=this._publishedLibraryIdDisposer)||void 0===e||e.call(this),this._publishedLibraryIdDisposer=void 0}_clearTempDirListener(){var e;null===(e=this._tempDirDisposer)||void 0===e||e.call(this),this._tempDirDisposer=void 0}dispose(){this._clearDeletionListener(),this._clearPublishQuotaErrorListener(),this._clearElementLoadCheckListener(),this._clearAssetIdChangeListener(),this._clearPublishedLibraryListener(),this._clearTempDirListener(),this._ccLibraries.DANGEROUS.removeAllListeners()}isFontAvailable(e){if(!e)return!0;const t=e.adbeFont||{};if(!(t.postScriptName||e.fontFamily||t.family))return!0;if(y.Z.currentProduct.fontManager){const t=y.Z.currentProduct.fontManager.isFontAvailable(e);if(t)return t}if(this.fontManager){const r=t.postScriptName,n=e.fontFamily||t.family;return this.fontManager.isSystemFontAvailable(r||n,!r)}}getTypekitFontData(e){var t;return null===(t=this.fontManager)||void 0===t?void 0:t.getFontData(e)}get MAX_ELEMENTS(){return this._ccLibraries.getOption("MAX_ELEMENTS")}get MAX_REMOVED_ELEMENTS(){return this._ccLibraries.getOption("MAX_REMOVED_ELEMENTS")}get MAX_COMPONENT_SIZE(){return this._ccLibraries.getOption("MAX_COMPONENT_SIZE")}get ANALYTICS_ENABLED(){return this._ccLibraries.getOption("ANALYTICS_ENABLED")}get DEVICE_DESCRIPTION(){return this._ccLibraries.getOption("DEVICE_DESCRIPTION")}get errors(){return{ACCESS_DENIED:"ACCESS_DENIED",RETRYABLE_SERVER_ERROR:"RETRYABLE_SERVER_ERROR",NETWORK_ERROR:"NETWORK_ERROR",LOGGED_OUT:"LOGGED_OUT",FS_ERROR:"FS_ERROR",EXCEEDS_QUOTA:"EXCEEDS_QUOTA",REQUEST_FAILED:"REQUEST_FAILED"}}getLastAccess(e){if(!e||!this.areLibrariesLoaded)return;if(e===this.currentLibrary)return(new Date).valueOf();const t=this._getCurrentLibraryIdKey()+e.id,r=g.Z.getValue(t)||0;return Math.max(e.modified,r)}getDefaultLibrary(){if(!this.currentLibrary){const e=this._ccLibraries.getDefaultLibrary();return y.Z.currentProduct.config.disableFallbackDefaultLibrary?e:e||this.createLibrary((0,T.Iu)("DL_DEFAULT_LIBRARY_NAME"))}return this.currentLibrary}setDefaultLibrary(e){this._ccLibraries.setDefaultLibrary(e)}get defaultLibrary(){return this.getDefaultLibrary()}_getLibraryWithName(e){if(e)return this.libraries.find((t=>t.name===e&&t.isWritable&&"incoming"!==t.ownership&&O.Z.canAddElements(t)))||this._ccLibraries.createLibrary(e)}getRecoveryLibrary(e){const t=(0,T.Iu)("DL_RECOVERED_LIBRARY_NAME",{name:e});return this._getLibraryWithName(t)}getOverflowLibrary(e){const t=(0,T.Iu)("DL_OVERFLOW_LIBRARY_NAME",{name:e});return this._getLibraryWithName(t)}copyFile(e,t,r=!1){return this._ccLibraries.utils.copyFile(e,t,r)}getFileSize(e){return this._ccLibraries.utils.getFileSize(e)}extractPathElementId(e){return this._ccLibraries.utils.extractElementId(e)}extractPathGroupId(e){return this._ccLibraries.utils.extractGroupId(e)}getInstalledVersion(e){try{return this._ccLibraries.utils.getInstalledVersion(e)}catch(e){}}addListener(e,t){const r=(...e)=>{t.apply(this,e)};return"libraryList"===e?(0,i.reaction)((()=>this.libraries.reduce(((e,t,r)=>e+`${0===r?"":";"}${t.name},${t.isDeletedFromServer},${t.isWritable}`),"")),r):"currentLibrary"===e?(0,i.reaction)((()=>this.currentLibrary),r):"libraryStatus"===e?(0,i.reaction)((()=>this.syncState),t):void 0}openInCCD(e){return this._ccLibraries.openInCCD(e)}openBrowseAll(){var e=this;return Xe($e().mark((function t(){return $e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e._ccLibraries.canAccessLocalProcess){t.next=2;break}return t.abrupt("return",e.openInCCD("/assets/libraries/teamLibs"));case 2:return t.abrupt("return",(0,Q.BF)());case 3:case"end":return t.stop()}}),t)})))()}openMarketplace(){var e=this;return Xe($e().mark((function t(){return $e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e._ccLibraries.canAccessLocalProcess){t.next=2;break}return t.abrupt("return",e.openInCCD("/assets/libraries/publicLibs"));case 2:return t.abrupt("return",(0,Q.NA)());case 3:case"end":return t.stop()}}),t)})))()}openCCWebMarketplace(){return Xe($e().mark((function e(){return $e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,Q.rT)());case 1:case"end":return e.stop()}}),e)})))()}waitForLibrariesLoaded(e=5e3){return this._ccLibraries.libraries,new Promise(((t,r)=>{let n;const o=(0,i.when)((()=>this.areLibrariesLoaded),(()=>{clearTimeout(n),t()}));n=setTimeout((()=>{o(),r()}),e)}))}get disableCCLibraries(){var e;return(null===(e=y.Z.currentProduct)||void 0===e?void 0:e.config.disableCCLibraries)&&!v.Z.get("forceEnableCCLibraries")}get userId(){return this.disableCCLibraries?S.Z.imsUserId:this._ccLibraries.userId||S.Z.imsUserId}getUserId(){var e=this;return Xe($e().mark((function t(){return $e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.disableCCLibraries||y.Z.currentProduct.config.disablePreemptiveLibraryLoad){t.next=3;break}return t.next=3,e.waitForInitialLoad();case 3:return t.abrupt("return",e.userId);case 4:case"end":return t.stop()}}),t)})))()}get _isConnected(){return this._ccLibraries.connected}get connectionState(){return this._ccLibraries.connectionState}get areLibrariesLoaded(){return Boolean(this._ccLibraries.areLibrariesLoaded||v.Z.get("enableMockEmptyState"))}get areLibrariesLoading(){return this._ccLibraries.areLibrariesLoading}get fontManager(){return this._fontManager}get projects(){return this._ccLibraries.projects}getPrimarySyncError(){var e;return null===(e=this._ccLibraries.syncState)||void 0===e?void 0:e.primaryError}getNewLibrarySyncProgress(){return this._ccLibraries.syncState.transientProgress}get syncState(){var e;return null===(e=this._ccLibraries.syncState)||void 0===e?void 0:e.status}get syncProgress(){return this._ccLibraries.syncState.progress}get syncErrors(){return this._ccLibraries.syncState.errors}get commitError(){return this._ccLibraries.syncState.commitError}get retryTime(){return this._ccLibraries.retryTime}get isResolvingASingleLibrary(){return this._isResolvingASingleLibrary}set isResolvingASingleLibrary(e){this._isResolvingASingleLibrary=e}},He.disconnectTimeoutDuration=12e4,Ce=Qe((Ae=He).prototype,"isOnline",[i.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return re.Z.isOnline}}),ke=Qe(Ae.prototype,"_ccLibraries",[Se],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),De=Qe(Ae.prototype,"_tempDir",[i.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Qe(Ae.prototype,"isSharingEnabled",[i.computed],Object.getOwnPropertyDescriptor(Ae.prototype,"isSharingEnabled"),Ae.prototype),Qe(Ae.prototype,"isRestrictedAccount",[i.computed],Object.getOwnPropertyDescriptor(Ae.prototype,"isRestrictedAccount"),Ae.prototype),Qe(Ae.prototype,"isStarterPlanUser",[i.computed],Object.getOwnPropertyDescriptor(Ae.prototype,"isStarterPlanUser"),Ae.prototype),Qe(Ae.prototype,"shutdownWarning",[i.computed],Object.getOwnPropertyDescriptor(Ae.prototype,"shutdownWarning"),Ae.prototype),Qe(Ae.prototype,"platformFolders",[i.computed],Object.getOwnPropertyDescriptor(Ae.prototype,"platformFolders"),Ae.prototype),Qe(Ae.prototype,"userQuota",[i.computed],Object.getOwnPropertyDescriptor(Ae.prototype,"userQuota"),Ae.prototype),Qe(Ae.prototype,"documentAssetsContainer",[i.computed],Object.getOwnPropertyDescriptor(Ae.prototype,"documentAssetsContainer"),Ae.prototype),Qe(Ae.prototype,"publish",[i.action],Object.getOwnPropertyDescriptor(Ae.prototype,"publish"),Ae.prototype),Qe(Ae.prototype,"unpublish",[i.action],Object.getOwnPropertyDescriptor(Ae.prototype,"unpublish"),Ae.prototype),Ne=Qe(Ae.prototype,"_isPublishing",[i.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe(Ae.prototype,"relinkableLibrary",[i.computed],Object.getOwnPropertyDescriptor(Ae.prototype,"relinkableLibrary"),Ae.prototype),Qe(Ae.prototype,"orphanedLibraries",[i.computed],Object.getOwnPropertyDescriptor(Ae.prototype,"orphanedLibraries"),Ae.prototype),Qe(Ae.prototype,"activeLibraries",[i.computed],Object.getOwnPropertyDescriptor(Ae.prototype,"activeLibraries"),Ae.prototype),Qe(Ae.prototype,"partiallyLoadedLibraries",[i.computed],Object.getOwnPropertyDescriptor(Ae.prototype,"partiallyLoadedLibraries"),Ae.prototype),Qe(Ae.prototype,"searchableLibraries",[i.computed],Object.getOwnPropertyDescriptor(Ae.prototype,"searchableLibraries"),Ae.prototype),Qe(Ae.prototype,"libraries",[i.computed],Object.getOwnPropertyDescriptor(Ae.prototype,"libraries"),Ae.prototype),Qe(Ae.prototype,"recentLibraries",[i.computed],Object.getOwnPropertyDescriptor(Ae.prototype,"recentLibraries"),Ae.prototype),Re=Qe(Ae.prototype,"_currentLibrary",[Te],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe(Ae.prototype,"deleteElements",[i.action],Object.getOwnPropertyDescriptor(Ae.prototype,"deleteElements"),Ae.prototype),Qe(Ae.prototype,"deleteGroups",[i.action],Object.getOwnPropertyDescriptor(Ae.prototype,"deleteGroups"),Ae.prototype),Qe(Ae.prototype,"restoreElements",[i.action],Object.getOwnPropertyDescriptor(Ae.prototype,"restoreElements"),Ae.prototype),Me=Qe(Ae.prototype,"brandEditorsData",[Pe],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),je=Qe(Ae.prototype,"_relinkableAssetsData",[Ie],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Fe=Qe(Ae.prototype,"_recentlyActiveLibraries",[i.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Ze=Qe(Ae.prototype,"_initialized",[i.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Be=Qe(Ae.prototype,"_isLoadingAppLoggedInState",[i.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ge=Qe(Ae.prototype,"_isAppLoggedIn",[i.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe(Ae.prototype,"loaded",[i.computed],Object.getOwnPropertyDescriptor(Ae.prototype,"loaded"),Ae.prototype),Qe(Ae.prototype,"storageUsed",[i.computed],Object.getOwnPropertyDescriptor(Ae.prototype,"storageUsed"),Ae.prototype),Qe(Ae.prototype,"_isConnected",[i.computed],Object.getOwnPropertyDescriptor(Ae.prototype,"_isConnected"),Ae.prototype),Qe(Ae.prototype,"connectionState",[i.computed],Object.getOwnPropertyDescriptor(Ae.prototype,"connectionState"),Ae.prototype),Qe(Ae.prototype,"areLibrariesLoaded",[i.computed],Object.getOwnPropertyDescriptor(Ae.prototype,"areLibrariesLoaded"),Ae.prototype),Qe(Ae.prototype,"areLibrariesLoading",[i.computed],Object.getOwnPropertyDescriptor(Ae.prototype,"areLibrariesLoading"),Ae.prototype),Ue=Qe(Ae.prototype,"_isResolvingASingleLibrary",[i.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ae);const at=new ot},79799:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(26964),i=r(75067),o=r(76485),a=r(46903);function s(){s=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function f(){}var m={};c(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(O([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=f,c(y,"constructor",f),c(f,"constructor",h),h.displayName=c(f,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),c(y,a,"Generator"),c(y,i,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function c(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function l(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){c(o,n,i,a,s,"next",e)}function s(e){c(o,n,i,a,s,"throw",e)}a(void 0)}))}}const u="cclibraries.service.SyncingEnabledChanged",d="cclibraries.service.SyncStateChanged";class p{constructor(){this._cclibraryProcessLaunchPending=!1}get _ccLibraries(){return i.ZP.dangerouslyAccessCCLibraries()}get _vulcanInterface(){return o.Z.vulcanInterface}getServiceInfo(){return o.Z.canLaunchProcess?this._ccLibraries.processInfo:void 0}isProcessInstalled(){return this._vulcanInterface.isCCLibProcessInstalled()}isProcessRunning(){return this._vulcanInterface.isCCLibProcessRunning()}isConnected(){return this._ccLibraries.isConnected()}disconnectFromProcess(){var e,t;null===(e=(t=this._ccLibraries).disconnect)||void 0===e||e.call(t),this._clearAndResetProcessConnectionPolling(),this._clearAndResetProcessLaunchPolling()}_clearAndResetProcessLaunchPolling(){this._cclibraryProcessLaunchPolling&&(clearInterval(this._cclibraryProcessLaunchPolling),this._cclibraryProcessLaunchPolling=null)}_clearAndResetProcessConnectionPolling(){this._cclibraryProcessConnectionPolling&&(clearTimeout(this._cclibraryProcessConnectionPolling),this._cclibraryProcessConnectionPolling=null)}launchCCLibraryProcess(){if(!o.Z.canLaunchProcess||this._cclibraryProcessLaunchPolling)return;const e=()=>{this._clearAndResetProcessLaunchPolling(),this.reconnectToProcess(),this._vulcanInterface.removeMessageListener("cclibraries.service.Initialized",e),o.Z.maintainConnectionToProcess?this._cclibraryProcessConnectionPolling=setTimeout((()=>{this._cclibraryProcessConnectionPolling=null,this.isConnected()||this.launchCCLibraryProcess()}),1e4):this._clearAndResetProcessConnectionPolling()},t=()=>{n.Z.log("Launching CCLibrary Process"),this._vulcanInterface.launchCCLibProcess()},r=()=>{this.isConnected()?e():!(this.getServiceInfo()||{}).updateRequired&&this.isProcessInstalled()&&Promise.resolve(this.isProcessRunning()).then((e=>{e?(this._clearAndResetProcessLaunchPolling(),this.reconnectToProcess()):t()}))};this._vulcanInterface.addMessageListener("cclibraries.service.Initialized",e),this.reconnectToProcess(),this._cclibraryProcessLaunchPolling=setInterval(r,5e3),r()}reconnectToProcess(){return o.Z.maintainConnectionToProcess&&this._ccLibraries.reconnect()}getLocalMachineSetting(e){return this._ccLibraries.getLocalSetting(e)}setLocalMachineSetting(e,t){var r=this;return l(s().mark((function n(){return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._ccLibraries.setLocalSetting(e,t);case 2:case"end":return n.stop()}}),n)})))()}isSyncingEnabled(){var e=this;return l(s().mark((function t(){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isConnected()){t.next=2;break}return t.abrupt("return",e._ccLibraries.isSyncingEnabled());case 2:return t.t0=JSON,t.next=5,e._vulcanInterface.call({requestType:"cclibraries.service.QuerySyncingEnabledRequest",responseType:"cclibraries.service.QuerySyncingEnabledResponse",timeout:1e3});case 5:return t.t1=t.sent,t.abrupt("return",t.t0.parse.call(t.t0,t.t1).syncingEnabled);case 7:case"end":return t.stop()}}),t)})))()}setSyncingEnabled(e){if(this.isConnected())return e?this._ccLibraries.enableSyncing():this._ccLibraries.disableSyncing();this._vulcanInterface.sendMessage("cclibraries.service.SetSyncingEnabledRequest",{syncingEnabled:e},{payloadType:"json"})}addSyncingEnabledChangedListener(e){e.syncingEnabledChangedListener=t=>{try{e(JSON.parse(t).syncingEnabled)}catch(e){n.Z.log("Error parsing JSON response from SyncingEnabledBroadcast",e)}},this._vulcanInterface.addMessageListener(u,e.syncingEnabledChangedListener)}removeSyncingEnabledChangedListener(e){e.syncingEnabledChangedListener&&this._vulcanInterface.removeMessageListener(u,e.syncingEnabledChangedListener)}static transformSyncState(e,t){var r;if(!1===e.syncingEnabled)return{state:"error",errorType:"syncDisabled"};const n=e.state;return"error"===n?{state:n,errorType:(0,a.Y3)(null===(r=e.error)||void 0===r?void 0:r.code,t,!1)}:{state:n}}addSyncStateChangedListener(e){e.syncStateChangedListener=t=>{try{e(p.transformSyncState(JSON.parse(t),i.ZP.errors))}catch(e){n.Z.log("Error parsing JSON response from SyncStateChangedBroadcast",e)}},this._vulcanInterface.addMessageListener(d,e.syncStateChangedListener)}removeSyncStateChangedListener(e){e.syncStateChangedListener&&this._vulcanInterface.removeMessageListener(d,e.syncStateChangedListener)}}const h=new p},4784:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(75067),i=r(62061),o=r(30949);const a=new class{constructor(){this._pendingElementsMap={}}incrementPendingElements(e){e&&(this._pendingElementsMap[e.id]=this._pendingElementsMap[e.id]||0,this._pendingElementsMap[e.id]++)}decrementPendingElements(e){e&&this._pendingElementsMap[e.id]>0&&this._pendingElementsMap[e.id]--}canAddElements(e,t=1){if(!e)return!1;const r=this._pendingElementsMap[e.id]||0,i=e instanceof o.Z?e.elementCount:e.elements.length;return n.ZP.MAX_ELEMENTS-i-r>=t}getSize(e){return e?Array.isArray(e)?e.reduce(((e,t)=>e+this.getSize(t)),0):e.elements?e.elements.reduce(((e,t)=>e+this.getSize(t)),0):e.representations?e.representations.reduce(((e,t)=>e+(t.contentLength||0)),0):0:0}getSizeAsString(e){return(0,i.d3)(this.getSize(e))}}},87544:(e,t,r)=>{"use strict";r.d(t,{Z:()=>N});var n,i=r(50265),o=r(85878),a=r(33275),s=r(76325),c=r(26964),l=r(72373),u=r(99049),d=r(99386),p=r(47320),h=r(44914),f=r(46931);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function g(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let v=(g((n=class extends u.Z{constructor(e){super(e),this._disposeLinkChangeListener=(0,i.reaction)((()=>this.linkStatus),(()=>this.emit("change")))}dispose(){super.dispose(),this._disposeLinkChangeListener()}getLocalData(){const e=this.linkedElement,t=this.linkedAsset,r=e&&t&&{"repo:assetId":t.cloudID,"repo:repositoryId":t.repositoryID,resource:this._resource,name:e.name,linkReference:this.getNewLinkRef(),permission:this.permission,_links:this._links,_embedded:this._embedded};return{linkState:this.linkStatus,linkedAsset:r}}getRenditionURL(e){var t;return null===(t=this.linkedElement)||void 0===t?void 0:t.getThumbnailURL(e)}get primaryContentURL(){var e,t;return null===(e=this._links)||void 0===e||null===(t=e["http://ns.adobe.com/adobecloud/rel/primary"])||void 0===t?void 0:t.href}get primaryContent(){var e;return null===(e=this._embedded)||void 0===e?void 0:e["http://ns.adobe.com/adobecloud/rel/primary"]}get _links(){const e={};return this._linkedPrimary&&(e["http://ns.adobe.com/adobecloud/rel/primary"]={href:this._linkedPrimary.getContentURL()}),this._linkedRendition&&(e["http://ns.adobe.com/adobecloud/rel/rendition"]={href:this._linkedRendition,templated:!0}),e}get _embedded(){const e={},t=p.Z.getEmbeddedData(this.linkedElement),r=t.primary,n=t.rendition;return r&&(e["http://ns.adobe.com/adobecloud/rel/primary"]=r),n&&(e["http://ns.adobe.com/adobecloud/rel/rendition"]=n),e}get _resource(){return this._linkedPrimary?{reltype:"http://ns.adobe.com/adobecloud/rel/component",component_id:this._linkedPrimary.id}:null}get _linkedPrimary(){var e;const t=null===(e=this.linkedElement)||void 0===e?void 0:e.getPrimaryRepresentation();if(null!=t&&t.getContentURL())return t}get _linkedRendition(){return this.getRenditionURL(d.Z.IMAGE_THUMBNAIL_SIZE)}get linkedLibrary(){return f.Z.libraryManager.resolveCachedElementReferenceToLibrary(this.linkReference)}get linkedElement(){return f.Z.libraryManager.resolveCachedElementReference(this.linkReference)}get alternativeLinkedElement(){if(this.linkedLibrary&&!this.linkedElement&&this.sourceRef)return function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),1!==o.length);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e)||function(e,t){if(e){if("string"==typeof e)return m(e,1);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,1):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.linkedLibrary.getFilteredElements((e=>(0,h.LR)(e)===(0,h.LR)(this))))[0]}get _isLinkStatusLoading(){return[this.linkedElement,this.linkedLibrary].includes(void 0)}get isSyncing(){var e;return!f.Z.libraryManager.loaded&&!d.Z.currentProduct.config.disablePreemptiveLibraryLoad||this._isLinkStatusLoading||"downloading"===(null===(e=this.linkedLibrary)||void 0===e?void 0:e.syncState)}get isNormalLinkState(){return super.isNormalLinkState&&!this.isPendingFollow}get isMissingLink(){return super.isMissingLink||this.isPendingFollow}get isMissingLibrary(){return this.linkStatus===d.Z.SAM_LINK_STATES.BROKEN&&!this.linkedLibrary}get isMissingElement(){return!(this.linkStatus!==d.Z.SAM_LINK_STATES.BROKEN||this.linkedElement)}get isPendingFollow(){return!(this.linkedLibrary||this.linkStatus!==d.Z.SAM_LINK_STATES.NORMAL||!f.Z.libraryManager.teamLibrariesData.get(this.assetId))}get isPendingInvite(){return!(this.linkStatus!==d.Z.SAM_LINK_STATES.RESTRICTED||!f.Z.libraryManager.invitationsData.has(this.assetId))}get isMissingLibraryLink(){return this.isMissingLibrary||this.isPendingFollow||this.isPendingInvite}get linkStatus(){return this.isSyncing?d.Z.SAM_LINK_STATES.NORMAL:this.linkedLibrary?this.linkedElement?this.fragmentInstanceId&&this._resource?this.linkedElement.instanceId!==this.fragmentInstanceId?d.Z.SAM_LINK_STATES.PENDING_UPDATE:this.linkedElement.name!==this.fragmentName?d.Z.SAM_LINK_STATES.PENDING_METADATA_UPDATE:d.Z.SAM_LINK_STATES.NORMAL:d.Z.SAM_LINK_STATES.NORMAL:this.alternativeLinkedElement?d.Z.SAM_LINK_STATES.PENDING_UPDATE:d.Z.SAM_LINK_STATES.BROKEN:super.linkStatus}_getNewLinkRef(){var e,t;return(null===(e=this.linkedElement)||void 0===e?void 0:e.getReference())||(null===(t=this.alternativeLinkedElement)||void 0===t?void 0:t.getReference())}}).prototype,"_links",[i.computed],Object.getOwnPropertyDescriptor(n.prototype,"_links"),n.prototype),g(n.prototype,"_embedded",[i.computed],Object.getOwnPropertyDescriptor(n.prototype,"_embedded"),n.prototype),g(n.prototype,"_linkedRendition",[i.computed],Object.getOwnPropertyDescriptor(n.prototype,"_linkedRendition"),n.prototype),g(n.prototype,"linkedLibrary",[i.computed],Object.getOwnPropertyDescriptor(n.prototype,"linkedLibrary"),n.prototype),g(n.prototype,"linkedElement",[i.computed],Object.getOwnPropertyDescriptor(n.prototype,"linkedElement"),n.prototype),g(n.prototype,"alternativeLinkedElement",[i.computed],Object.getOwnPropertyDescriptor(n.prototype,"alternativeLinkedElement"),n.prototype),n);var y,b,_,E=r(76485),w=r(39293);function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return L(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?L(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O(){O=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function S(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function T(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){S(o,n,i,a,s,"next",e)}function s(e){S(o,n,i,a,s,"throw",e)}a(void 0)}))}}let P=(y=i.observable.ref,b=class{constructor(){var e;(e=_)&&Object.defineProperty(this,"_linkList",{enumerable:e.enumerable,configurable:e.configurable,writable:e.writable,value:e.initializer?e.initializer.call(this):void 0}),this._addressBookContacts=[],this._waitForInit=new Promise((e=>this._completeInit=e))}get areLogsEnabled(){return l.Z.getDebugValue("enableSAMLogs")}init(){var e=this;return T(O().mark((function t(){var r,n,a,l,u,d,p;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=E.Z.imsUserId,a=E.Z.getHostEnvironment(),l=null==a?void 0:a.appId,u=null==a?void 0:a.appVersion,d={CLIENT_ID:(null===(r=s.Z.getEnvironment())||void 0===r?void 0:r.clientId)||E.Z.imsClientId,ENVIRONMENT:"staging"===(E.Z.imsEnvironment||s.Z.environmentType)?0:1,USER_ID:n,HOST_PRODUCT_DATA:{PRODUCT_ID:`${l}/${u}`,PRODUCT_LOCATION:"CCLibrariesPanel"}},p={refreshAccessToken:function(){var e=T(O().mark((function e(){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=E.Z.imsUserId,e.prev=1,e.next=4,s.Z.getAccessToken(n);case 4:return e.abrupt("return",e.sent);case 7:e.prev=7,e.t0=e.catch(1),c.Z.log(`[refreshAccessToken] ${e.t0}`);case 10:case"end":return e.stop()}}),e,null,[[1,7]])})));return function(){return e.apply(this,arguments)}}()},t.prev=6,t.next=9,(0,o.jz)(d,p);case 9:e._assetModel=t.sent,e._assetModel.on(o.Hf,e._handleSAMLogEvent),e._linkManager=e._assetModel.assetLinkManager,e._linkList=e._linkManager.createList(),e._assetModel.makeObservable(((...e)=>new i.Atom(...e))),e._completeInit(),t.next=20;break;case 17:t.prev=17,t.t0=t.catch(6),c.Z.log(`[LinkManager.init] ${t.t0}`);case 20:case"end":return t.stop()}}),t,null,[[6,17]])})))()}_handleSAMLogEvent(e){this.areLogsEnabled&&c.Z.log(`[SAM.js] ${e.message}`)}get linkList(){return this._linkList&&this._linkList.links}_addLink(e){var t=this;return T(O().mark((function r(){var n,i,o;return O().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e=a.P6.parseLinkReference(e)){r.next=3;break}return r.abrupt("return");case 3:return r.next=5,t._linkList.add([e]);case 5:if(n=r.sent,i=x(n,1),o=i[0],!(0,h.dP)(e)){r.next=10;break}return r.abrupt("return",new v(o));case 10:return r.abrupt("return",new u.Z(o));case 11:case"end":return r.stop()}}),r)})))()}addLink(e){var t=this;return T(O().mark((function r(){var n;return O().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._waitForInit;case 2:if(e){r.next=4;break}return r.abrupt("return");case 4:return r.next=6,t._addLink(e);case 6:return n=r.sent,r.abrupt("return",n);case 8:case"end":return r.stop()}}),r)})))()}removeLink(e){var t;e&&(e.dispose(),null===(t=this._linkList)||void 0===t||t.remove(e._link))}getAssetWithCloudID(e){var t=this;return T(O().mark((function r(){var n,i;return O().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._waitForInit;case 2:return r.prev=2,n=t._assetModel.hostAssetContext,r.next=6,n.getAssetWithCloudID(e);case 6:return i=r.sent,r.abrupt("return",i);case 10:r.prev=10,r.t0=r.catch(2),!t.areLogsEnabled&&r.t0.message.includes("NOT_FOUND")||c.Z.log(`[LinkManager.getAssetWithCloudID] ${r.t0}`);case 13:case"end":return r.stop()}}),r,null,[[2,10]])})))()}resolveProjectByName(e){var t=this;return T(O().mark((function r(){var n,i;return O().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._waitForInit;case 2:return r.prev=2,n=t._assetModel.projectContext,r.next=6,n.resolveProjectByName(e);case 6:return i=r.sent,r.abrupt("return",i);case 10:r.prev=10,r.t0=r.catch(2),c.Z.log(`[LinkManager.resolveProjectByName] ${r.t0}`);case 13:case"end":return r.stop()}}),r,null,[[2,10]])})))()}getBrandsAddressBookGroup(){var e=this;return T(O().mark((function t(){var r,n;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=(0,w.Is)(),t.next=3,e.resolveProjectByName(r);case 3:return(n=t.sent).collaboratorArray,t.next=7,new Promise((e=>{n.on(o.Ne,(()=>{e()}))}));case 7:return t.abrupt("return",n.collaboratorArray.find((e=>e.addressBookGroupUrn)));case 8:case"end":return t.stop()}}),t)})))()}getBrandsAddressBookGroupMembers(){var e=this;return T(O().mark((function t(){var r,n,a;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._waitForInit;case 2:if(!e._addressBookContacts.length){t.next=4;break}return t.abrupt("return",e._addressBookContacts);case 4:return t.next=6,e.getBrandsAddressBookGroup();case 6:return r=t.sent,t.next=9,r.getGroupMemberSource();case 9:return n=t.sent,t.next=12,n.getList(o.Eo.default);case 12:return a=t.sent,t.next=15,new Promise((e=>(0,i.when)((()=>a.status!==o.ak.Loading),e)));case 15:return e._addressBookContacts=a.items,t.abrupt("return",e._addressBookContacts);case 17:case"end":return t.stop()}}),t)})))()}getMemberData(e){var t=this;return T(O().mark((function r(){var n,a,s,c,l,u,d,p,h,f,m;return O().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._waitForInit;case 2:if(null===(n=t._addressBookContacts)||void 0===n||!n.length){r.next=6;break}if(!(u=t._addressBookContacts.find((t=>t.linkedIdentity===e)))){r.next=6;break}return r.abrupt("return",u);case 6:return r.next=8,t._assetModel.getCollaborationContext();case 8:return d=r.sent,p=d.addressBookSource.getList(o.rZ.default,void 0,{loadAllPages:!0}),r.next=12,new Promise((e=>(0,i.when)((()=>p.status!==o.ak.Loading),e)));case 12:return r.next=14,null===(a=E.Z.getIMSProfile)||void 0===a?void 0:a.call(E.Z);case 14:return f=r.sent,m=null==f||null===(s=f.projectedProductContext)||void 0===s||null===(c=s[0])||void 0===c||null===(l=c.prodCtx)||void 0===l?void 0:l.owningEntity,h=m?p.items.find((e=>e.ownerId===m)):p.items[0],r.abrupt("return",h.getContactInAddressBook(e));case 18:case"end":return r.stop()}}),r)})))()}copyBrand(e,t,r){return T(O().mark((function n(){return O().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.copyLibrary(t,r,!1);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()}},I=b.prototype,A="_linkList",C=[y],k={configurable:!0,enumerable:!0,writable:!0,initializer:null},D={},Object.keys(k).forEach((function(e){D[e]=k[e]})),D.enumerable=!!D.enumerable,D.configurable=!!D.configurable,("value"in D||D.initializer)&&(D.writable=!0),D=C.slice().reverse().reduce((function(e,t){return t(I,A,e)||e}),D),void 0===D.initializer&&(Object.defineProperty(I,A,D),D=null),_=D,b);var I,A,C,k,D;const N=new P},9494:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=new class{constructor(){this._locks={}}obtainLock(e,t,r){let n=this._locks[e];n||(n={pendingContinuations:[],isLocked:!1},this._locks[e]=n),n.isLocked?n.pendingContinuations.push({continuation:t,thisObject:r}):(n.isLocked=!0,t.apply(r,[null]))}releaseLock(e){const t=this._locks[e];if(t)if(t.pendingContinuations.length>0){const e=t.pendingContinuations.shift();setTimeout((function(){e.continuation.apply(e.thisObject,[null])}))}else delete this._locks[e]}}},99409:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(76485),i=r(51461),o=r(86351),a=r(84824),s=r(50265),c=r(73675);const l=e=>e.map((e=>{if(e.divider)return'<MenuItem Label="---"/>';const t=(0,a.Iu)(e.label,e.translationData).replace(new RegExp("&","g"),"&amp;").replace(new RegExp('"',"g"),"&quot;").replace(new RegExp("'","g"),"&apos;").replace(new RegExp("<","g"),"&lt;").replace(new RegExp(">","g"),"&gt;");return r={Id:e.menuId,Label:t,Checkable:!0,Checked:e.checked,Enabled:!Object.prototype.hasOwnProperty.call(e,"enableMenu")||e.enableMenu},n=e.menuItems,`<MenuItem ${Object.keys(r).filter((e=>void 0!==r[e])).map((e=>`${e}="${r[e]}"`)).join(" ")}>${n?l(n):""}</MenuItem>`;var r,n})).join(""),u=e=>{e.label=e.label&&(0,a.Iu)(e.label,e.translationData),e.menuItems&&e.menuItems.forEach(u)},d=e=>n.Z.isMenuInJson?(e.forEach(u),e):`<Menu>${l(e)}</Menu>`,p=(e,t="MENU")=>{const r={};return e.forEach(((e,n)=>{const i=t+"_"+n;e.menuId=i,r[i]=e,e.menuItems&&Object.assign(r,p(e.menuItems,i))})),r},h=new class{getFlyoutMenu(e){return this._getFlyoutMenu(e)}get contextMenu(){return this._contextMenu}constructor(e=c.rY){this._onFlyoutMenuClicked=e=>{const t=e&&e.data&&e.data.menuId;t&&this._flyoutMenuMapping&&this._flyoutMenuMapping[t]&&this._flyoutMenuMapping[t].onClick&&this._flyoutMenuMapping[t].onClick(),this._listenerManager.notify("flyoutMenuClicked",e)},this._onFlyoutMenuOpened=e=>{this.flyoutMenuOpen=!0,i.ZP.reportEvent("Navigation","Library Panel","click","flyout-menu"),this._listenerManager.notify("flyoutMenuOpened",e)},this._onFlyoutMenuClosed=()=>{this.flyoutMenuOpen=!1,this._pendingFlyoutMenuItems&&(this._setFlyoutMenu(this._pendingFlyoutMenuItems),delete this._pendingFlyoutMenuItems)},this._getFlyoutMenu=e,this._listenerManager=(0,o.N)(this,["flyoutMenuClicked","flyoutMenuOpened"])}init(){(0,s.reaction)((()=>this.getFlyoutMenu()),(e=>this._setFlyoutMenu(e)),{fireImmediately:!0}),n.Z.addEventListener("com.adobe.csxs.events.flyoutMenuClicked",this._onFlyoutMenuClicked),n.Z.addEventListener("com.adobe.csxs.events.flyoutMenuOpened",this._onFlyoutMenuOpened),n.Z.addEventListener("com.adobe.csxs.events.flyoutMenuClosed",this._onFlyoutMenuClosed),window.oncontextmenu=e=>{this.setContextMenu([]),n.Z.onContextMenu(e)}}dispose(){n.Z.removeEventListener("com.adobe.csxs.events.flyoutMenuClicked",this._onFlyoutMenuClicked),n.Z.removeEventListener("com.adobe.csxs.events.flyoutMenuOpened",this._onFlyoutMenuOpened),n.Z.removeEventListener("com.adobe.csxs.events.flyoutMenuClosed",this._onFlyoutMenuClosed),window.oncontextmenu=void 0}setContextMenu(e,t){const r=p(e);this._contextMenu=e,t&&Object.values(r).forEach((e=>{const r=e.onClick;e.onClick=()=>{r&&r(),t()}})),n.Z.setContextMenu(d(e),(e=>{r[e]&&r[e].onClick&&r[e].onClick()}))}_setFlyoutMenu(e){this.flyoutMenuOpen?this._pendingFlyoutMenuItems=e:(this._flyoutMenuMapping=p(e),n.Z.setPanelFlyoutMenu&&n.Z.setPanelFlyoutMenu(d(e)))}openContextMenu(e,t){this.setContextMenu(e),n.Z.onContextMenu(t)}closeContextMenu(){n.Z.closeContextMenu&&n.Z.closeContextMenu()}}},92098:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n,i=r(99386),o=r(75067),a=r(34038),s=r(50265);function c(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const l=new(c((n=class{constructor(){this._tempFileMap={},this._getFilePath=(e,t)=>{let r=i.Z.strTempFolder+"/";i.Z.currentProduct.config.tempFolder&&(r=i.Z.currentProduct.config.tempFolder());const n=e.split("/").pop(),o="."+a.MZ(n),s=i.Z.currentProduct.config.includeGuidInTempFileName,c=256-r.length-o.length-(s?36:0);let l=a.mI(t).substring(0,c);return s&&(l=`${l}_${a.Rl()}`),`${r}${l}${o}`},this._copyToTempLocation=(e,t)=>{const r=this._getFilePath(e,t);return o.ZP.copyFile(e,r).then((()=>r))}}getTempFile(e){const t=e.element;return e.getContentPath().then((e=>{const r=t.getLegacyReference();return this._tempFileMap[r]&&this._tempFileMap[r].path===e?this._tempFileMap[r].tempPath:this._copyToTempLocation(e,t.name).then((t=>(this._tempFileMap[r]={path:e,tempPath:t},t)))}))}updateTempFile(e,t){const r=e.element;return e.getContentPath().then((e=>{const n=r.getLegacyReference();this._tempFileMap[n]={path:e,tempPath:t},Object.keys(this._tempFileMap).forEach((e=>{e!==n&&this._tempFileMap[e].tempPath===t&&delete this._tempFileMap[e]}))}))}deleteTempFile(e){a._I(e),Object.keys(this._tempFileMap).forEach((t=>{this._tempFileMap[t].tempPath===e&&delete this._tempFileMap[t]}))}}).prototype,"getTempFile",[s.action],Object.getOwnPropertyDescriptor(n.prototype,"getTempFile"),n.prototype),c(n.prototype,"updateTempFile",[s.action],Object.getOwnPropertyDescriptor(n.prototype,"updateTempFile"),n.prototype),c(n.prototype,"deleteTempFile",[s.action],Object.getOwnPropertyDescriptor(n.prototype,"deleteTempFile"),n.prototype),n)},64705:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d});var n=r(99409),i=r(75067),o=r(17552),a=r(76485),s=r(8733),c=r(53849);function l(){l=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function p(){}function h(){}function f(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(O([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=f,s(y,"constructor",f),s(f,"constructor",h),h.displayName=s(f,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function u(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const d=new class{init(){window.__test__=this}getFlyoutMenu(){return n.Z.getFlyoutMenu()}getContextMenu(){return n.Z.contextMenu}getCurrentLibraryInfo(){const e=i.ZP.currentLibrary;if(e)return{id:e.id,numElements:e.elements.length}}setFilePath(e){this._filePath=e}getFilePath(){return this._filePath}getFilesToImport(){return this._files}setFilesToImport(e){this._files=e?e.map((e=>{const t=new Uint8Array(e.content.data),r=new Blob([t],{type:e.type});return new File([r],e.name,{type:e.type,lastModified:e.lastModified})})):void 0}importLibrary(){o.Lg(this._filePath,((e,t)=>{t&&(i.ZP.currentLibrary=t)}))}isLibraryManagerWindowOpen(){return a.Z.isLibraryManagerWindowOpen()}enableAddElementMenu(e){a.Z.setLayerInfo(e),s.Z.updateLayerInfo()}selectElements(e=[]){const t=i.ZP.currentLibrary.elements.filter((t=>e.includes(t.name)));t.length?c.Z.setSelection(t,!0):c.Z.clearSelection()}disableSync(){i.ZP.disableSyncing()}enableSync(){return(e=l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.ZP.enableSyncing();case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){u(o,n,i,a,s,"next",e)}function s(e){u(o,n,i,a,s,"throw",e)}a(void 0)}))})();var e}isSyncingEnabled(){return i.ZP.syncingEnabled()}}},57806:(e,t,r)=>{"use strict";r.d(t,{s4:()=>v,ZP:()=>y});var n,i,o=r(50265),a=r(99386),s=r(76485),c=r(20290);function l(){l=function(e,t){return new r(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function r(e,n,i){var o=new RegExp(e,n);return t.set(o,i||t.get(e)),u(o,r.prototype)}function n(e,r){var n=t.get(r);return Object.keys(n).reduce((function(t,r){return t[r]=e[n[r]],t}),Object.create(null))}return 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&&u(e,t)}(r,RegExp),r.prototype.exec=function(t){var r=e.exec.call(this,t);return r&&(r.groups=n(r,this)),r},r.prototype[Symbol.replace]=function(r,i){if("string"==typeof i){var o=t.get(this);return e[Symbol.replace].call(this,r,i.replace(/\$<([^>]+)>/g,(function(e,t){return"$"+o[t]})))}if("function"==typeof i){var a=this;return e[Symbol.replace].call(this,r,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(n(e,a)),i.apply(this,e)}))}return e[Symbol.replace].call(this,r,i)},l.apply(this,arguments)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function d(){d=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function h(){}function f(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(O([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=f,s(y,"constructor",f),s(f,"constructor",h),h.displayName=s(f,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function p(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function h(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}function f(e){if(!e.styleSheets)return!0;for(let t=e.styleSheets.length-1;t>=0;t--)try{const r=e.styleSheets[t].rules||e.styleSheets[t].cssRules;for(let e=0;e<r.length;e++)if(".color-theme-background"===r[e].selectorText)return!0}catch(e){}}const m=(e,t)=>e&&e.use(t.querySelector("head")),g=(e,t)=>e&&e.unuse(t.querySelector("head")),v={light:"light",dark:"dark",lighter:"lightest",darker:"darkest"},y=new(i=h((n=class{constructor(){var e;(e=i)&&Object.defineProperty(this,"themeName",{enumerable:e.enumerable,configurable:e.configurable,writable:e.writable,value:e.initializer?e.initializer.call(this):void 0}),this._roots=[],this._onAppThemeColorChanged=()=>{this.updateTheme(s.Z.getHostEnvironment(!0).appSkinInfo)}}_fetchStyles(){const e=`${r.p}styles.css`,t=new XMLHttpRequest;return new Promise(((r,n)=>{t.open("GET",e,!0),t.onload=()=>r(t.response),t.onerror=n,t.send()}))}init(){return s.Z.addEventListener(a.Z.THEME_COLOR_CHANGED_EVENT,this._onAppThemeColorChanged),s.Z.excludeDocumentRoot||this._roots.push(document),this._globalStyleTag=this._fetchStyles().then((e=>{const t=document.createElement("style");return t.setAttribute("type","text/css"),t.setAttribute("data-cc-libraries-global-css",""),t.appendChild(document.createTextNode(e)),t})),s.Z.excludeDocumentRoot||Array(document.head.children).some((e=>"LINK"===e.tagName&&"stylesheet"===e.rel&&e.href.endsWith("/styles.css")))||this._addGlobalCSSAsStyleTag(document),this.updateTheme(s.Z.getHostEnvironment().appSkinInfo).finally((()=>this._finishedInitialization=!0))}_addGlobalCSSAsStyleTag(e,t){var r,n=this;return(r=d().mark((function r(){var i,o,a,s;return d().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=e.querySelector("head"),!(o=i.querySelector("[data-cc-libraries-global-css]"))||t){r.next=4;break}return r.abrupt("return");case 4:if(n._globalStyleTag){r.next=6;break}return r.abrupt("return");case 6:return r.next=8,n._globalStyleTag;case 8:a=r.sent,(s=a.cloneNode(!0)).removeAttribute("media"),o?i.replaceChild(s,o):i.insertBefore(s,i.firstChild);case 12:case"end":return r.stop()}}),r)})),function(){var e=this,t=arguments;return new Promise((function(n,i){var o=r.apply(e,t);function a(e){p(o,n,i,a,s,"next",e)}function s(e){p(o,n,i,a,s,"throw",e)}a(void 0)}))})()}get reactSpectrumTheme(){return v[this.themeName]||"light"}get themeSystem(){var e;return(null===(e=a.Z.currentProduct)||void 0===e?void 0:e.config.themeSystem)||"spectrum"}get appCode(){return a.Z.currentProduct.config.code}get isInitialized(){return!!this._finishedInitialization}addRoot(e,t=!1){return this._roots.includes(e)||(this._roots.push(e),this._addGlobalCSSAsStyleTag(e),t||m(this._theme,e)),t?Promise.resolve():this._waitForBackgroundColor()}removeRoot(e){const t=this._roots.indexOf(e);-1!==t&&(this._roots.splice(t,1),g(this._theme,e))}_waitForBackgroundColor(){return this._roots.every(f)?Promise.resolve():(0,c.gw)(10,(()=>this._waitForBackgroundColor()))}_replaceTheme(e){const t=this._theme;e!==t&&(this._theme=e,this._roots.forEach((t=>{t!==document&&this._addGlobalCSSAsStyleTag(t),m(e,t)})),setTimeout((()=>this._roots.forEach((e=>g(t,e)))),20))}_validateAppSkinInfo(e={}){var t,r,n,i,o,a;return(null===(t=e.panelBackgroundColor)||void 0===t||null===(r=t.color)||void 0===r?void 0:r.red)&&(null===(n=e.panelBackgroundColor)||void 0===n||null===(i=n.color)||void 0===i?void 0:i.green)&&(null===(o=e.panelBackgroundColor)||void 0===o||null===(a=o.color)||void 0===a?void 0:a.blue)}_updateTheme(e={}){var t;const r=a.Z.currentProduct.config.themes,n=null===(t=e.panelBackgroundColor)||void 0===t?void 0:t.color;let i=e.panelNamedTheme||r[function(e,t){const r=(e,t=0)=>{const r=Math.round(Math.max(0,Math.min(255,e+t))).toString(16);return(1===r.length?"0":"")+r};return e?r(e.red,t)+r(e.green,t)+r(e.blue,t):""}(n)];if(!i&&this._validateAppSkinInfo(e)){let e;Object.keys(r).map((t=>{const o=l(/([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})/i,{red:1,green:2,blue:3}).exec(t);if(!o)return;const a=o.groups,s=Math.sqrt(Math.pow(parseInt(a.red,16)-n.red,2)+Math.pow(parseInt(a.green,16)-n.green,2)+Math.pow(parseInt(a.blue,16)-n.blue,2));(!e||e>s)&&(e=s,i=r[t])}))}this.themeName=i||a.Z.currentProduct.config.defaultTheme}updateTheme(e){this._updateTheme(e);const t=function(e,t){try{return r(13050)("./"+e+"/css/"+t+"/main.scss")}catch(r){return console.error("Theme not found: "+e+"/"+t),Promise.reject()}}(a.Z.currentProduct.config.code,this.themeName).then((e=>{this._loadingPromise===t&&(this._replaceTheme(e),delete this._loadingPromise)})).then((()=>this._waitForBackgroundColor()));return this._loadingPromise=t,t}}).prototype,"themeName",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return a.Z.currentProduct.config.defaultTheme}}),h(n.prototype,"reactSpectrumTheme",[o.computed],Object.getOwnPropertyDescriptor(n.prototype,"reactSpectrumTheme"),n.prototype),h(n.prototype,"_updateTheme",[o.action],Object.getOwnPropertyDescriptor(n.prototype,"_updateTheme"),n.prototype),n)},61357:(e,t,r)=>{"use strict";r.d(t,{Z:()=>b});var n,i,o=r(50265),a=r(47320),s=r(26964),c=r(76485),l=r(99386);function u(){u=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function p(){}function h(){}function f(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(O([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=f,s(y,"constructor",f),s(f,"constructor",h),h.displayName=s(f,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function d(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function p(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){d(o,n,i,a,s,"next",e)}function s(e){d(o,n,i,a,s,"throw",e)}a(void 0)}))}}let h=(n=class{constructor(e,t){var r;this._fetchId=0,this._blobCache=new Map,(r=i)&&Object.defineProperty(this,"_url",{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(this):void 0}),this._element=e,this._isLarge=t}dispose(){this._blobCache.forEach((e=>URL.revokeObjectURL(e)))}get _elementModified(){return this._element.changeCount||this._element.modified}get url(){return(e=>{if(e.removed){const t=6e5;return(new Date).valueOf()-e.removed>=t}return!1})(this._element)?null:(this._elementModified!==this._modified&&this._update(),this._url)}_update(){const e=++this._fetchId,t=this._modified=this._elementModified,r=setTimeout((()=>{e===this._fetchId&&(this._url=void 0)}),300),n=(0,o.action)((n=>{if(clearTimeout(r),e===this._fetchId){var i;if(this._elementModified!==t)return void this._update();n||null!==(i=this._element.getPrimaryRepresentation())&&void 0!==i&&i.isCommitted?this._url=n||null:this._url=void 0}}));this._getThumbnailUrl().then(n).catch((e=>{s.Z.log("Error getting thumbnail URL: "+e),n()}))}_getThumbnailUrl(){var e=this;return p(u().mark((function t(){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.Z.getLocalThumbnailURL(e._element,e._isLarge);case 2:if(r=t.sent,!c.Z.supportsFileURLs){t.next=5;break}return t.abrupt("return",r);case 5:return t.abrupt("return",e._getThumbnailBlobUrl(r));case 6:case"end":return t.stop()}}),t)})))()}_getThumbnailBlobUrl(e){var t=this;return p(u().mark((function r(){var n,i,o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return",void 0);case 2:if(n=`${e}#${t._element.instanceId}`,!(i=t._blobCache.get(n))){r.next=6;break}return r.abrupt("return",i);case 6:return r.next=8,fetch(e);case 8:if(!(o=r.sent).ok){r.next=19;break}return r.t0=URL,r.next=13,o.blob();case 13:return r.t1=r.sent,a=r.t0.createObjectURL.call(r.t0,r.t1),t._blobCache.set(n,a),r.abrupt("return",a);case 19:throw new Error(`could not load thumbnail for element: ${t._element.id}`);case 20:case"end":return r.stop()}}),r)})))()}},f=n.prototype,m="_url",g=[o.observable],v={configurable:!0,enumerable:!0,writable:!0,initializer:null},y={},Object.keys(v).forEach((function(e){y[e]=v[e]})),y.enumerable=!!y.enumerable,y.configurable=!!y.configurable,("value"in y||y.initializer)&&(y.writable=!0),y=g.slice().reverse().reduce((function(e,t){return t(f,m,e)||e}),y),void 0===y.initializer&&(Object.defineProperty(f,m,y),y=null),i=y,n);var f,m,g,v,y;const b=new class{constructor(){this._thumbnailCache=new Map,this._deletionListeners=new Map,this._clearThumbnailData=e=>{const t=this._thumbnailCache.get(e);null==t||t.dispose(),this._thumbnailCache.delete(e)},this._addDeletionEventListener=e=>{this._deletionListeners.has(e.library.id)||(this._deletionListeners.set(e.library.id,(()=>{e.library.off("remove",this._deletionListeners.get(e.library.id)),this._deletionListeners.delete(e.library.id),this._thumbnailCache.forEach(((t,r)=>{r.startsWith(`${e.library.id}#`)&&this._clearThumbnailData(r)}))})),e.library.on("remove",this._deletionListeners.get(e.library.id)))}}_getThumbnailData(e,t){const r=`${e.library.id}#${e.id}`+(t?"--large":"--normal"),n=setTimeout((()=>this._clearThumbnailData(r)),l.Z.THUMBNAIL_CACHE_KEEPALIVE_TIME),i=this._thumbnailCache.get(r);return i?(clearTimeout(i.timeout),i.timeout=n,{cacheEntry:i,cacheHit:!0}):(i&&i._element===e||(this._thumbnailCache.set(r,new h(e,t)),this._addDeletionEventListener(e)),{cacheEntry:this._thumbnailCache.get(r),cacheHit:!1})}getLocalThumbnailURL(e,t=!1){return this._getThumbnailData(e,t).cacheEntry.url}getCacheEntry(e,t=!1){return this._getThumbnailData(e,t)}isThumbnailLoading(e,t=!1){let r=void 0===this._getThumbnailData(e,t).cacheEntry.url;return l.Z.currentProduct.config.navigateToElementOneUp&&e.id.startsWith("@PLACEHOLDER")&&(r=!0),r}clearCache(){this._thumbnailCache.forEach((e=>e.dispose())),this._thumbnailCache.clear()}clearCachedLibraryData(e){this._thumbnailCache.forEach(((t,r)=>{r.startsWith(e.id)&&this._clearThumbnailData(r)}))}}},2315:(e,t,r)=>{"use strict";r.d(t,{y:()=>be,Z:()=>_e});var n,i,o,a,s=r(50265),c=r(76485),l=r(62631),u=r(2652),d=r.n(u),p=r(89526),h=r(64403),f=r.n(h),m=r(85080),g=r(99386),v=r(27611);let y=(0,l.Pi)((a=class extends p.Component{constructor(e){var t;super(e),(t=o)&&Object.defineProperty(this,"isFadingOut",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0}),this.overlayState=new m.Z({ignoreAllEvents:!e.closable,ignoreScrollEvents:!0,ignoreFocus:c.Z.ignoreFocusOutsideToast})}componentDidMount(){if(this.overlayState.toggleOverlay(),0!==this.props.duration){const e=this.props.duration||g.Z.DEFAULT_TOAST_TIMEOUT;let t=setTimeout((()=>{this.isFadingOut=!0,t=setTimeout(this.props.close,g.Z.TOAST_FADEOUT)}),e);(0,s.when)((()=>!this.overlayState.isOpen),(()=>{clearTimeout(t),this.props.close()}))}}render(){return p.createElement("div",{"data-test-id":"toast",className:f()("panel-toast",`panel-toast--variant-${this.props.variant}`,{fadeout:this.isFadingOut}),ref:this.overlayState.setParentElement},p.createElement("span",{className:"panel-toast-text"},this.props.children),this.props.closable&&p.createElement("div",{className:"panel-toast-action panel-toast-close","data-test-id":"panel-toast-close",onClick:this.props.close},p.createElement(v.Z,{id:"Close",height:18})))}},a.propTypes={children:d().node,duration:d().number,close:d().func.isRequired,closable:d().bool,variant:d().oneOf(["error","warning","success","info"])},a.defaultProps={variant:"info",closable:!0},b=(i=a).prototype,_="isFadingOut",E=[s.observable],w={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}},x={},Object.keys(w).forEach((function(e){x[e]=w[e]})),x.enumerable=!!x.enumerable,x.configurable=!!x.configurable,("value"in x||x.initializer)&&(x.writable=!0),x=E.slice().reverse().reduce((function(e,t){return t(b,_,e)||e}),x),void 0===x.initializer&&(Object.defineProperty(b,_,x),x=null),o=x,n=i))||n;var b,_,E,w,x,L,O,S=r(84824);let T=(0,l.Pi)(((O=class extends p.Component{render(){return p.createElement(y,{close:this.props.close,duration:g.Z.UNDO_TOAST_TIMEOUT},p.createElement("span",{"data-test-id":"toast-message"},this.props.message),p.createElement("span",{"data-test-id":"toast-undo-action",className:"panel-toast-action",onClick:this.props.undo},(0,S.Iu)("DL_UNDO_DELETE")))}}).propTypes={message:d().string.isRequired,undo:d().func.isRequired,close:d().func.isRequired},L=O))||L;var P,I,A=r(44853),C=r(75067),k=r(51461),D=r(25585);function N(e){return 1===e.length?(0,S.Iu)("DL_UNDO_DELETE_ITEM",{name:(0,D.aS)(e[0].name,25)}):(0,S.Iu)("DL_UNDO_DELETE_ITEMS",{num:e.length})}function R(e,t){C.ZP.restoreElements(e,t),k.ZP.reportEvent("Element Operations","Element","click","undo-delete",{event:{value:"agg",count:e.length},content:{category:"Click"}})}let M=(0,l.Pi)(((I=class extends p.Component{constructor(...e){super(...e),this.undoDelete=()=>{R(this.props.elements,this.props.groupInfo),this.props.close()}}static getMessage(e){return N(e.elements)}static getAction(e){return{label:(0,S.Iu)("DL_UNDO_DELETE"),onClick:()=>R(e.elements,e.groupInfo)}}get message(){return N(this.props.elements)}render(){return p.createElement(T,{undo:this.undoDelete,close:this.props.close,message:this.message})}}).propTypes={elements:d().arrayOf(d().instanceOf(A.Z)).isRequired,groupInfo:d().object,close:d().func.isRequired},I.toastName="undoDeleteElements",P=I))||P;var j,F;let Z=(0,l.Pi)(((F=class extends p.Component{static getMessage(e){return function(e){if(1===e.length){const t=e[0].type===g.Z.COLOR_ELEMENT_TYPE?"BRAND_UNDO_DELETE_COLORS":"BRAND_UNDO_DELETE_ITEM";return(0,S.Iu)(t,{name:(0,D.aS)(e[0].name,25)})}return(0,S.Iu)("BRAND_UNDO_DELETE_ITEMS",{num:e.length})}(e.elements)}static getAction(e){return{label:(0,S.Iu)("BRAND_UNDO_DELETE"),onClick:()=>{return t=e.elements,C.ZP.restoreElements(t),void k.ZP.reportEvent("Element Operations","Element","click","undo-delete",{event:{value:"agg",count:t.length},content:{category:"Click"}});var t},shouldCloseOnAction:!0}}}).propTypes={elements:d().arrayOf(d().instanceOf(A.Z)).isRequired,close:d().func.isRequired},F.toastName="undoDeleteBrandsElements",j=F))||j;var B,G,U=r(24937),H=r(69233);function z(e,t){const r=Object.values(e.branches),n=r.find((e=>e.item.library)).item.library,i=r.filter((e=>e.item.isGroup&&e.item!==g.Z.UNGROUPED_GROUP)).length-n.getGroupCount();return i>1?t?(0,S.Iu)("DL_UNDO_UNGROUPED_GROUP_PLURAL",{num:i}):(0,S.Iu)("DL_UNDO_DELETED_GROUP_PLURAL",{num:i}):t?(0,S.Iu)("DL_UNDO_UNGROUPED_GROUP_SINGULAR"):(0,S.Iu)("DL_UNDO_DELETED_GROUP_SINGULAR")}function V(e){(0,H.r5)(e)}let Y=(0,l.Pi)(((G=class extends p.Component{constructor(...e){super(...e),this.undoDelete=()=>{V(this.props.groupsTree),this.props.close()}}static getMessage(e){return z(e.groupsTree,e.ungroup)}static getAction(e){return{label:(0,S.Iu)("DL_UNDO_DELETE"),onClick:()=>V(e.groupsTree)}}get message(){return z(this.props.groupsTree,this.props.ungroup)}render(){return p.createElement(T,{undo:this.undoDelete,close:this.props.close,message:this.message})}}).propTypes={groupsTree:d().object.isRequired,close:d().func.isRequired,ungroup:d().bool},G.contextType=U.r,G.toastName="undoDeleteGroup",B=G))||B;var W,K;function $(e,t){k.ZP.setExtraEventMetrics("updateElement",{subtype:"undo-delete-note",content:{category:"Click"}}),e.description=t}let q=(0,l.Pi)(((K=class extends p.Component{constructor(...e){super(...e),this.undoDelete=()=>{$(this.props.element,this.props.description),this.props.close()}}static getMessage(){return(0,S.Iu)("DL_UNDO_DELETE_DESCRIPTION")}get message(){return(0,S.Iu)("DL_UNDO_DELETE_DESCRIPTION")}static getAction(e){return{label:(0,S.Iu)("DL_UNDO_DELETE"),onClick:()=>$(e.element,e.description)}}render(){return p.createElement(T,{undo:this.undoDelete,close:this.props.close,message:this.message})}}).propTypes={element:d().instanceOf(A.Z).isRequired,description:d().string.isRequired,close:d().func.isRequired},K.toastName="undoDeleteDescription",W=K))||W;var X,J;let Q=(0,l.Pi)(((J=class extends p.Component{static getMessage(e){return e.message}get duration(){var e;return null!==(e=this.props.duration)&&void 0!==e?e:(0,D.E4)(this.props.message)}render(){return p.createElement(y,{close:this.props.close,variant:this.props.variant,duration:this.duration,closable:this.props.closable},p.createElement("span",{"data-test-id":"toast-message"},this.props.message))}}).propTypes={close:d().func.isRequired,message:d().oneOfType([d().string,d().node]).isRequired,variant:d().oneOf(["error","warning","success","info"]),duration:d().number,closable:d().bool},J.toastName="message",X=J))||X;var ee,te;let re=(0,l.Pi)(((te=class extends p.Component{constructor(...e){super(...e),this.onClick=()=>{this.props.action.onClick(),this.props.close()}}static getMessage(e){return e.message}static getAction(e){return e.action}get duration(){return(0,D.E4)(this.props.message)}render(){return p.createElement(y,{close:this.props.close,duration:this.duration,variant:this.props.variant},p.createElement("span",{"data-test-id":"toast-message"},this.props.message),p.createElement("span",{"data-test-id":"toast-action",className:"panel-toast-action",onClick:this.onClick},this.props.action.label))}}).propTypes={action:d().shape({label:d().string.isRequired,onClick:d().func.isRequired}).isRequired,close:d().func.isRequired,message:d().oneOfType([d().string,d().node]).isRequired,variant:d().oneOf(["error","warning","success","info"])},te.toastName="action",ee=te))||ee;var ne,ie;function oe(e){e.undo()}let ae=(0,l.Pi)(((ie=class extends p.Component{constructor(...e){super(...e),this.undo=()=>{oe(this.props),this.props.close()}}static getMessage(){return(0,S.Iu)("DL_GROUPS_MERGED_TOAST")}static getAction(e){return{label:(0,S.Iu)("DL_UNDO_DELETE"),onClick:()=>oe(e)}}get message(){return(0,S.Iu)("DL_GROUPS_MERGED_TOAST")}render(){return p.createElement(T,{undo:this.undo,close:this.props.close,message:this.message})}}).propTypes={undo:d().func.isRequired,close:d().func.isRequired},ie.contextType=U.r,ie.toastName="undoMergeGroups",ne=ie))||ne;var se,ce,le;let ue=(0,l.Pi)(((le=class extends p.Component{get syncStatus(){return this.context.libraryManager.syncStatus}componentDidMount(){this.dispose=(0,s.when)((()=>!["working","syncing"].includes(this.syncStatus.state)),(()=>{this.props.close()}))}componentWillUnmount(){this.dispose()}get message(){return(0,S.Iu)("DL_SYNC_PROGRESS_PERCENT",{percent:this.syncStatus.syncProgress||0})}render(){return p.createElement(y,{variant:"info",close:this.props.close,duration:0},p.createElement("div",{className:"panel-toast-sync-progress"},p.createElement(v.Z,{id:"SyncingSpinner",height:18,className:"sync-progress-icon","data-test-id":"sync-progress-icon"}),p.createElement("span",{"data-test-id":"toast-message"},this.message)))}}).contextType=U.r,le.propTypes={close:d().func.isRequired},le.toastName="syncProgress",function(e,t,r,n,i){var o={};Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}((ce=le).prototype,"message",[s.computed],Object.getOwnPropertyDescriptor(ce.prototype,"message"),ce.prototype),se=ce))||se;var de,pe,he,fe,me=r(89526);function ge(){return ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ge.apply(this,arguments)}function ve(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function ye(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let be=(de=s.observable.ref,he=ye((pe=class{constructor(){this._toasts={},ve(this,"_openToast",he,this),this.closeToast=e=>{var t;if(c.Z.hideToast)return void c.Z.hideToast(e);const r=this._openToast,n=null==r||null===(t=r.data)||void 0===t?void 0:t.referenceId;r&&n===e&&this._forceClose()},ve(this,"_forceClose",fe,this),this.register(M),this.register(Z),this.register(Y),this.register(q),this.register(Q),this.register(re),this.register(ae),this.register(ue)}register(e){this._toasts[e.toastName]=e}openToast(e,t){const r=this._toasts[e];if(!r)throw new Error(`Open Toast: Toast of type ${e} does not exist.`);if(c.Z.showToast)return g.Z.currentProduct.config.showCustomActionToast?c.Z.showToast(r.getMessage(t),t.action,t):c.Z.showToast(r.getMessage(t),r.getAction&&r.getAction(t),t);this._openToast={name:e,data:t}}get toast(){const e=this._openToast;if(e){const t=this._toasts[e.name];return me.createElement(t,ge({},e.data,{close:this._forceClose}))}}get toastData(){return this._openToast&&this._openToast.data}get toastName(){return this._openToast&&this._openToast.name}}).prototype,"_openToast",[de],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ye(pe.prototype,"openToast",[s.action],Object.getOwnPropertyDescriptor(pe.prototype,"openToast"),pe.prototype),fe=ye(pe.prototype,"_forceClose",[s.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{c.Z.hideAllToasts&&c.Z.hideAllToasts(),this._openToast=void 0}}}),ye(pe.prototype,"toast",[s.computed],Object.getOwnPropertyDescriptor(pe.prototype,"toast"),pe.prototype),pe);const _e=new be},84824:(e,t,r)=>{"use strict";r.d(t,{Iu:()=>y,SU:()=>_,ZP:()=>v,zt:()=>b});var n,i,o,a,s,c=r(50265),l=r(76485),u=r(99386),d=r(85834);function p(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function h(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const f="_PROJECTS",m=["DL_TEAM_LIBRARY_PROMOTE_TITLE","DL_PANEL_TEAM_LIBRARY_ONBOARDING_DESCRIPTION1","DL_PANEL_TEAM_LIBRARY_ONBOARDING_DESCRIPTION1","DL_PANEL_TEAM_LIBRARY_ONBOARDING_TITLE2","DL_PANEL_TEAM_LIBRARY_ONBOARDING_DESCRIPTION2","DL_TEAM_LIBRARY_ONBOARDING_HEADING","DL_TEAM_LIBRARY_ONBOARDING_FIRST_MESSAGE","DL_TEAM_LIBRARY_ONBOARDING_SECOND_MESSAGE","DL_EXPORT_BROWSE_DEFAULT","DL_INFO_TEAM","DL_PERMISSION_TITLE","DL_PROMOTE_TEAM_MESSAGE","DL_EXISTING_USER_PANEL_ONBOARDING_DESCRIPTION1","DL_EXISTING_USER_PANEL_ONBOARDING_TITLE2","DL_EXISTING_USER_PANEL_ONBOARDING_DESCRIPTION2","DL_TEAM_LIBRARY_ONBOARDING_THIRD_MESSAGE","DL_TEAM_LIBRARY_PROMOTE_TITLE","DL_TEAM_LIBRARY_HELP","DL_PROMOTE_TEAM_MESSAGE","DL_TEAM_LIBRARY_ONBOARDING_THIRD_MESSAGE","DL_TEAM_LIBRARY_MOVING_TOAST","DL_TEAM_LIBRARY_SAVED_TOAST","DL_LIBRARY_LIST_FILTER_TEAM","DL_TEAM_LIBRARIES_CREATE_DIALOG_DESCRIPTION"].reduce(((e,t)=>(e[t]=`${t}_PROJECTS`,e)),{}),g=new(n=c.observable.ref,i=c.observable.ref,a=h((o=class{constructor(){p(this,"_stringMap",a,this),p(this,"__testStringMap",s,this),this._formatters={}}get _testStringMap(){return this.__testStringMap||(this.__testStringMap={},l.Z.fetchResourceBundle(u.Z.TEST_LOCALE).then((e=>{this.__testStringMap=e}))),this.__testStringMap}setStringMap(e){this._stringMap=e,this._formatters={}}translate(e,t){var r;const n=null===(r=u.Z.currentProduct)||void 0===r?void 0:r.config.translationOverrides;n&&n[e]&&(e=n[e]),d.Z.get("enableProjects")&&m[e]&&this._stringMap[e+f]&&(e+=f);const i=d.Z.get("localeDebug");let o;return"test"===i?o=this._testStringMap[e]:"keys"!==i&&(o=this._stringMap[e]),o=o||e,t&&Object.keys(t).forEach((e=>{let r=t[e];const n=new RegExp("[{]{2}"+e+"[}]{2}","g");r="number"==typeof r?this.getLocalizedNumber(r):r,o=o.replace(n,r)})),o}getLocalizedDate(e,t){const r=new Date(e),n={dateStyle:"short"};return t||(n.timeStyle="short"),this._formatters.date=this._formatters.date||new Intl.DateTimeFormat(l.Z.getLocale(),n),isNaN(r.valueOf())?"":this._formatters.date.format(r)}getLocalizedNumber(e){return this._formatters.number=this._formatters.number||new Intl.NumberFormat(l.Z.getLocale()),this._formatters.number.format(e)}}).prototype,"_stringMap",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),s=h(o.prototype,"__testStringMap",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o),v=g;function y(e,t){return g.translate(e,t)}function b(e,t){return g.getLocalizedDate(e,t)}function _(e){return g.getLocalizedNumber(e)}},57613:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(50265),i=r(76485);class o{constructor(){this._fontAvailableMap=n.observable.map(),this._pendingPromises={}}isFontAvailable(e){const t=e.fontFamily+":"+JSON.stringify(e.adbeFont),r=this._fontAvailableMap.get(t);return void 0!==r||this._pendingPromises[t]||(this._pendingPromises[t]=i.Z.isFontAvailable(e).then((e=>{delete this._pendingPromises[t],this._fontAvailableMap.set(t,e)}))),r}invalidateFontList(){this._fontAvailableMap.clear()}}},98218:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(76485),i=r(34038);const o=new class{constructor(){this.pluginVersion=null}getPluginVersion(){if(!this.pluginVersion)try{const e=n.Z.getPluginPath()+"/CSXS/manifest.xml",t=i.pJ(e,"utf8"),r=(new DOMParser).parseFromString(t,"text/xml").getElementsByTagName("ExtensionManifest")[0];this.pluginVersion=r&&r.getAttribute("ExtensionBundleVersion")}catch(e){try{this.pluginVersion="4.11.88"}catch(e){this.pluginVersion="UNKNOWN"}}return this.pluginVersion}getUserAgent(){return`CCLibrariesPanel/${this.getPluginVersion()}`}}},76792:(e,t,r)=>{"use strict";r.d(t,{rL:()=>K,oq:()=>W,vf:()=>$,pT:()=>q});var n=r(10536),i=r.n(n),o=r(99386),a=r(75067),s=r(53849),c=r(99409),l=r(84074),u=r(47320),d=r(51461),p=r(4784),h=r(31870),f=r(16993),m=r(26964),g=r(46903),v=r(68370),y=r(84824),b=r(17179),_=r(2315),E=r(76485),w=r(30131),x=r(74149),L=r(34038),O=r(69233);function S(){S=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function P(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function I(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){P(o,n,i,a,s,"next",e)}function s(e){P(o,n,i,a,s,"throw",e)}a(void 0)}))}}const A="desktop.interop.AppReady",C="vulcan.SuiteMessage.desktop.interop.ImportResource",k=["sbsar","exr","obj","fbx","usdz"],D={SBSTA:{appId:"SBSTA",label:"Substance 3D Sampler",install:{label:"Substance 3D Sampler",route:"/apps/all/desktop/pdp/SBSTA"}},SBSTP:{appId:"SBSTP",label:"Substance 3D Painter",install:{label:"Substance 3D Painter",route:"/apps/all/desktop/pdp/SBSTP"}}},N={"application/vnd.adobe.mdl.material+zip":[],"application/vnd.adobe.sbsar+zip":["SBSTA","SBSTP"],"application/vnd.adobe.exr.light+zip":["SBSTA","SBSTP"],"application/vnd.adobe.obj.3d+zip":["SBSTA","SBSTP"],"3d/vnd.adobe.dn+dcxucf":["SBSTP"],"model/gltf-binary":["SBSTP"],"model/gltf+json":["SBSTP"],"model/vnd.usdz+zip":["SBSTP"],"application/vnd.adobe.fbx.3d+zip":["SBSTP"],"application/photoshop.large":["SBSTA","SBSTP"],"image/svg+xml":["SBSTP"]};function R(e,t){if(e&&t)return e.getPrimaryRepresentation().getContentPath().then((e=>{let r=e.split("/").pop();k.forEach((e=>r=r.match(`\\.${e}`)?r.split(`.${e}`)[0]:r));const n={name:r,path:e,take_file_ownership:!1},i={type:"desktop.interop.ImportResource",appId:t,data:JSON.stringify(n)};E.Z.vulcanInterface.sendMessage(i.type,i.data,i.appId)}))}function M(e,t){return j.apply(this,arguments)}function j(){return(j=I(S().mark((function e(t,r){return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.isAppRunningEx(r).then((e=>e?"1":t.launchAppEx(r))).then((e=>{if("1"!==e)throw new Error("Failed to launch")})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function F(e,t){let r,n,i;return new Promise(((o,a)=>{i=function(e){e&&e.indexOf(C)>=0&&o()},e.addMessageListener(A,i);const s={type:"desktop.interop.AppReadyRequest",appId:t,data:C};n=setInterval((()=>{e.sendMessage(s.type,s.data,s.appId)}),1e3),r=setTimeout((()=>{a()}),3e4)})).finally((()=>{clearTimeout(r),clearInterval(n),e.removeMessageListener(A,i)}))}var Z=r(46931),B=r(85834),G=r(8502);function U(){U=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function H(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function z(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){H(o,n,i,a,s,"next",e)}function s(e){H(o,n,i,a,s,"throw",e)}a(void 0)}))}}function V(e,t){const r=f.Z.isLibrariesSearchMode()||f.Z.isStockSearchMode();return f.Z.isLibraryWritable(e,t,r)}function Y(e,t){var r,n,c,p;const b=[];(f.Z.isLibrariesSearchMode()||f.Z.isOneUpMode()&&"search"===f.Z.getState().modeParams.previousMode)&&(0,v.s)(b,[{label:"DL_REVEAL_ITEM",id:"reveal",onClick:()=>s.Z.revealElement(e)}]),(0,v.s)(b,function(e){const t=[],r=e.type===o.Z.AUDIO_ELEMENT_TYPE,n=!a.ZP.isRestrictedAccount;var i;return n&&h.Jw(e)&&!h.kv(e)&&t.push({label:"DL_STOCK_LICENSE_MENU"+h.Y8(e),id:"licenseImage",onClick:()=>{d.ZP.reportStockEvent("License","click","start",{ui:{sequence:"context-menu"}},e),h.q$()?h.Zg(e).then((()=>{d.ZP.reportStockEvent("License","render","success",{ui:{sequence:"context-menu"}},e)})).catch((()=>{d.ZP.reportStockEvent("License","render","error",{ui:{sequence:"context-menu"}},e)})):w.WS(h.wq(e),e.type)}}),o.Z.currentProduct.config.disableStockSearch||o.Z.currentProduct.config.disableFindSimilar||!u.Z.canFindSimilar(e)||!n||r||t.push({label:"DL_STOCK_FIND_SIMILAR_MENU",onClick:(i=z(U().mark((function t(){var r,n,i;return U().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!h.Jw(e)){t.next=4;break}return d.ZP.reportStockEvent("Find Similar","click","find",{ui:{sequence:"context-menu"}},e),f.Z.setFindSimilarSearchMode(h.wq(e)),t.abrupt("return");case 4:return r=function(){var t=z(U().mark((function t(){var r,n;return U().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.t0=URL,t.next=4,e.getAuthenticatedThumbnailURL(o.Z.STOCK_SIMILARITY_THUMBNAIL_SIZE);case 4:t.t1=t.sent,(n=new t.t0(t.t1)).searchParams.append("accept","image/jpeg"),t.next=11;break;case 9:t.prev=9,t.t2=t.catch(0);case 11:return t.abrupt("return",null===(r=n)||void 0===r?void 0:r.href);case 12:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(){return t.apply(this,arguments)}}(),t.next=7,r();case 7:return n=t.sent,t.next=10,e.getThumbnailPath(o.Z.IMAGE_THUMBNAIL_SIZE);case 10:i=t.sent,f.Z.setFindSimilarSearchMode(void 0,n,i);case 12:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)}),enableMenu:!0}),t}(e)),u.Z.isDisabled(e)||(0,v.s)(b,function(e){var t;const r=u.Z.getShortType(e.type),n=u.Z.findUsableRepresentation(e,`application/vnd.adobe.${r}+json`),i=n&&n.getValue(r,"data"),o=null!=i&&i.adbeFont?i:{adbeFont:i},s=null==o||null===(t=o.adbeFont)||void 0===t?void 0:t.postScriptName;if(!i||!s)return[];const c=a.ZP.getTypekitFontData(s),l=a.ZP.isFontAvailable(o);return c&&c.fontId&&c.fontActions?l?0===c.fontActions.length?[{label:"DL_TYPEKIT_UNSYNC_TOOLTIP",id:"disableFont",onClick:()=>c.unsync(o,"context",e)}]:[]:0===c.fontActions.length?[{label:"DL_TYPEKIT_SYNC_TOOLTIP",id:"activateFont",onClick:()=>c.sync(o,"context",e)}]:[c.fontActions.includes("upgrade")&&{label:"DL_TYPEKIT_UPGRADE_TOOLTIP",id:"subscribeToActivateFont",onClick:()=>c.upgrade("context",e)}]:[]}(e)),(0,v.s)(b,function(e,t){let r=u.Z.getApplyOperations(e,t).filter((e=>e.displayInMenu)).map((e=>({label:e.name,id:"applyColor",onClick:()=>{d.ZP.setExtraEventMetrics("reportUseElement",{isRightClick:!0}),e.apply()}})));const n=u.Z.getEditOperations(e);return V(e.library,!0)&&(r=r.concat(n.map((e=>!e.disabled&&{label:e.name,id:"edit",onClick:()=>{e.apply()}})))),r}(e,t));const O=o.Z.currentProduct.config.enableReplaceGraphic&&V(e.library)&&u.Z.getReplaceableExtensions(e)||[];if(O.length){var S;const t=null===(S=e.roles)||void 0===S?void 0:S.some((e=>e.usage===o.Z.ROLE_LOGO)),r={logo:{success:(0,y.Iu)("DL_REPLACE_LOGO_SUCCESS"),error:(0,y.Iu)("DL_REPLACE_LOGO_ERROR"),replaceTypeError:(0,y.Iu)("DL_FILE_REPLACE_LOGO_UNSUPPORTED")},graphic:{success:(0,y.Iu)("DL_REPLACE_GRAPHIC_SUCCESS"),error:(0,y.Iu)("DL_REPLACE_GRAPHIC_ERROR"),replaceTypeError:(0,y.Iu)("DL_FILE_REPLACE_GRAPHIC_UNSUPPORTED")}};b.push({label:t?(0,y.Iu)("DL_REPLACE_LOGO"):(0,y.Iu)("DL_REPLACE_GRAPHIC"),id:"replace",enableMenu:!0,onClick:()=>function(e,t,r){return(0,L.fz)({multiple:!1,fileTypes:t}).then((n=>{const i=(0,L._2)(n[0].name);return t.find((e=>e===i))?(0,x.RO)(n[0],e,(0,y.Iu)(r.success)):E.Z.showError(r.replaceTypeError)}),(()=>{d.ZP.reportEvent("Replace Graphic","Element","click","replace-cancel")})).catch((()=>E.Z.showError((0,y.Iu)(r.error))))}(e,O,r[t?"logo":"graphic"])})}e.additionalMenuItems&&b.push(...e.additionalMenuItems);const T=null===(r=(n=o.Z.currentProduct).getAdditionalMenuItems)||void 0===r?void 0:r.call(n,e);if(T&&(0,v.s)(b,T),E.Z.supportsNotes&&!e.library.isDocumentAssets&&V(e.library)){const t=(e,t)=>{if(G.ZP.sendUpdateElementEvent(t),d.ZP.setExtraEventMetrics("updateElementMetadata",{subtype:`${e}-note`,content:{category:"Right Click"}}),"delete"===e)return _.Z.openToast("undoDeleteDescription",{element:t,description:t.description}),void(t.description="");f.Z.isOneUpMode()?Z.Z.panel.viewManager.startEditDescription(t):l.ZP.openDialog("addNote",{element:t})};(0,v.s)(b,[!e.description&&{label:"DL_ADD_NOTE",onClick:()=>t("add",e),id:"addDescription"},e.description&&{label:"DL_EDIT_NOTE",onClick:()=>t("edit",e),id:"editDescription"},e.description&&{label:"DL_DELETE_NOTE",onClick:()=>t("delete",e),id:"deleteDescription"}])}!o.Z.currentProduct.config.readOnlyPanelUI&&E.Z.supportsExportElement&&o.Z.EXPORTABLE_ELEMENT_TYPES.includes(e.type)&&e.getPrimaryRepresentation()&&u.Z.getRepresentationForExport(e)&&(0,v.s)(b,[{label:"DL_EXPORT_A_COPY",enableMenu:!u.Z.isDownloadInProgress(e),onClick:()=>{d.ZP.reportElementEvent("Element Operations","Element","click","export",e),function(e){if(E.Z.supportsExportElement){const t=E.Z.isWindowsOS()?"\\":"/";E.Z.getSavePath().then((([r])=>{if(!r)return;const n=u.Z.getRepresentationForExport(e),o=(0,g.__)(n),s=i()(e.name).replace(/^\./,"")||"Untitled",c=`${r}${t}${s}.${o}`;n?n.getContentPath().then((e=>a.ZP.copyFile(e,c).then((()=>{_.Z.openToast("message",{message:(0,y.Iu)("DL_ELEMENT_EXPORTED"),variant:"success"})})).catch((e=>{m.Z.log(`Failed to export element: ${e}`),_.Z.openToast("message",{message:(0,y.Iu)("DL_ELEMENT_EXPORT_FAILED"),variant:"error"})})))):_.Z.openToast("message",{message:(0,y.Iu)("DL_ELEMENT_EXPORT_FAILED"),variant:"error"})}))}}(e)}}]);const P=!(o.Z.currentProduct.config.disableOneUpMode||e.library.isDocumentAssets||f.Z.isOneUpMode()||null!==(c=(p=o.Z.currentProduct).isExpandedView)&&void 0!==c&&c.call(p));return(0,v.s)(b,[P&&{label:"DL_GET_INFO",id:"details",onClick:()=>f.Z.setOneUpMode(e)}]),b}function W(e,t,r,n,i){const c=r===t[0].library&&n===t[0].getGroups()[0];if(!e||!c){if(t.length>o.Z.SLOW_COPY_MOVE_THRESHOLD){const n=c?"DL_DUPLICATING_ITEMS":"DL_COPYING_ITEMS",i=(0,y.Iu)(e?"DL_MOVING_ITEMS":n,{numberElements:t.length,libraryName:r.name});_.Z.openToast("message",{message:i})}(0,g.IO)(e,t,r,n,c||i).then((l=>{if(function(t){t.forEach((t=>{c?G.ZP.sendDuplicateElementEvent(t):e?G.ZP.sendMoveElementEvent(t):G.ZP.sendCopyElementEvent(t)}))}(t),l.length&&(f.Z.isSearchMode()||c))s.Z.setSelection(l);else if(e&&!f.Z.isLibrariesSearchMode()&&(s.Z.clearSelection(t),o.Z.currentProduct.config.showElementActionToasts)){const e=t.length>1?(0,y.Iu)("DL_MOVE_SUCCESS_TOAST_PLURAL",{libraryName:r.name,num:t.length}):(0,y.Iu)("DL_MOVE_SUCCESS_TOAST",{libraryName:r.name});Z.Z.panel.toastManager.openToast("message",{message:e,variant:"success"})}if(c){const e=n?"existing-group":i?"preserve-group":"ungrouped";d.ZP.reportEvent("Add Assets","Element","click","add",{event:{value:"agg",count:l.length},content:{category:"Duplicate",status:e}},a.ZP.currentLibrary),d.ZP.setExtraEventMetrics("copyElement",{content:{category:"Duplicate"}}),o.Z.currentProduct.config.showElementActionToasts&&_.Z.openToast("message",{message:t.length>1?(0,y.Iu)("DL_DUPLICATE_SUCCESS_TOAST_PLURAL",{num:t.length}):(0,y.Iu)("DL_DUPLICATE_SUCCESS_TOAST"),variant:"success"})}})).catch((t=>{e?d.ZP.reportError("Element Operations","Element",t&&t.description,"context-menu","move-elements-error",{content:{category:"Right Click"}},a.ZP.currentLibrary):(d.ZP.clearExtraEventMetrics("copyElement"),d.ZP.reportError("Add Assets","Element",t&&t.description,"context-menu","copy-elements-error",void 0,a.ZP.currentLibrary))}))}}function K(e){return!("grid"===f.Z.viewState&&o.Z.currentProduct.config.hideNamesInGridView)&&1===e.length&&e.every((e=>!e.isLinked&&!e.disableRename&&f.Z.isLibraryWritable(e.library)))}function $(e,t){if(0===e.length)return[];const r=1===e.length?Y(e[0],t):function(e){return u.Z.getMultiApplyOperations(e).filter((e=>e.displayInMenu)).map((e=>({label:e.name,onClick:()=>{e.apply()}})))}(e),n=B.Z.get("enableOpenInAppMenu")&&o.Z.currentProduct.config.showOpenInAppMenu&&function(e){const t=[],r=new Map,n=Object.keys(N);var i,o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?T(e,t):void 0}}(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(e);try{for(o.s();!(i=o.n()).done;){const e=i.value.getPrimaryRepresentation().type||"";if(!n.includes(e))return;const t=N[e];t.length>0&&t.forEach((e=>{const t=r.get(e)||0;r.set(e,t+1)}))}}catch(e){o.e(e)}finally{o.f()}if(r.forEach(((r,n)=>{const i=D[n],o=r===e.length;if(a.ZP.getInstalledVersion(n))t.push({label:i.label,enableMenu:o,onClick:(c=I(S().mark((function t(){return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e.length>10)){t.next=4;break}_.Z.openToast("message",{message:(0,y.Iu)("DL_OPEN_IN_APP_THREE_D_LIMIT_MESSAGE",{maxItemLimit:10}),variant:"info"}),t.next=15;break;case 4:return t.prev=4,t.next=7,M(E.Z.vulcanInterface,n);case 7:return t.next=9,F(E.Z.vulcanInterface,n);case 9:Object.values(D).find((e=>e.appId===n))&&e.forEach((e=>{R(e,n)})),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(4),_.Z.openToast("message",{message:(0,y.Iu)("DL_THREE_D_APP_LAUNCH_FAILURE_TITLE",{name:i.label}),variant:"info"});case 15:case"end":return t.stop()}}),t,null,[[4,12]])}))),function(){return c.apply(this,arguments)})});else{const e=(s=i.install.label,(0,y.Iu)("DL_OPEN_IN_APP_GET_APP",{name:s}));t.push({label:e,enableMenu:o,onClick:()=>{a.ZP.openInCCD(i.install.route)}})}var s,c})),t.length)return{label:(0,y.Iu)("DL_OPEN_IN_APP_MENU_ITEM"),displayInMenu:!0,menuItems:t}}(e);n&&r.unshift(n),o.Z.currentProduct.config.readOnlyGroups||(0,v.s)(r,function(e){if(f.Z.isLibrariesSearchMode()||a.ZP.disableCCLibraries||o.Z.currentProduct.config.readOnlyPanelUI)return[];const t=e.every((e=>0===e.getGroups().length)),r=!e[0].library.isDocumentAssets&&!t,n=[];if(e[0].library.isDocumentAssets)return(!(e.length>1)||(0,O.mB)(e,e[0].getGroups()[0]))&&(0,v.s)(n,[{label:e.length>1?"DL_GROUP_TOGETHER":"DL_GROUP_SINGLE_ELEMENT",enableMenu:!0,onClick:()=>{d.ZP.setExtraEventMetrics("createGroup",{content:{category:"Right Click Element"}}),Z.Z.panel.groupActions.createGroupFromSet(e)}}]),n;const i=t=>e.every((e=>e.getGroups()[0]===t)),s=b.Z.sortByName(e[0].library.getGroups()).map((r=>({label:r.name,enableMenu:t||!i(r),checked:!t&&i(r),onClick:()=>{(0,g.c_)(e,r),d.ZP.reportEvent("Element Operations","Element","click","add-to-group",{event:{value:"agg",count:e.length},content:{category:"Right Click"}},a.ZP.currentLibrary),d.ZP.setExtraEventMetrics("updateElement",{subtype:"add-to-group",content:{category:"Right Click"}}),e.forEach((e=>{G.ZP.sendUpdateElementEvent(e)})),f.Z.setViewByState("group"),f.Z.resetMode()}}))),c=e.every((e=>V(e.library)));return(0,v.s)([],s),c&&(0,v.s)(n,[{label:e.length>1?"DL_GROUP_TOGETHER":"DL_GROUP_SINGLE_ELEMENT",enableMenu:c,onClick:()=>{d.ZP.setExtraEventMetrics("createGroup",{content:{category:"Right Click Element"}}),Z.Z.panel.groupActions.createGroupFromSet(e)}},r&&{label:1===e.length?"DL_UNGROUP":"DL_UNGROUP_SELECTED_ITEMS",enableMenu:c,onClick:()=>{d.ZP.reportEvent("Element Operations","Element","click","ungroup",{event:{value:"agg",count:e.length},content:{category:"Right Click"}},a.ZP.currentLibrary),d.ZP.setExtraEventMetrics("updateElement",{subtype:"ungroup",content:{category:"Right Click"}}),(0,g.c_)(e)}}]),n}(e)),(0,v.s)(r,function(e){if(o.Z.currentProduct.config.readOnlyPanelUI)return[];const t={};e.forEach((e=>t[e.library.id]=e.library));const r=[];Object.keys(t).forEach((n=>{r.push(...t[n].getElementsAndDependencies(e))}));const n=e[0].library.isDocumentAssets,i=!n,a=e.every((e=>V(e.library))),s=!o.Z.currentProduct.config.disableDuplicateElements&&e.every((t=>t.library===e[0].library))&&V(e[0].library)&&p.Z.canAddElements(e[0].library,e.length),c=function(e,t,r,n){const i=[];if(o.Z.currentProduct.config.disableCopyMoveTo||o.Z.currentProduct.config.disableCopyMoveToMobile&&E.Z.isMobileView)return[];if(t[0].library.isDocumentAssets&&t.length>1&&t[0].getGroups()[0]&&!(0,O.mB)(t,t[0].getGroups()[0]))return[];const a=f.Z.contextMenuPositionState,s=a.x,c=a.y;if(e.length>t.length)i.push(r&&{label:"DL_COPY_ITEM_AND_DEPENDENCIES",id:"copyTo",enableMenu:!0,onClick:()=>l.ZP.openDialog("copyOrMove",{items:e,x:s,y:c,isMove:!1,copyMoveAction:W})},n&&{label:"DL_MOVE_ITEM_AND_DEPENDENCIES",id:"moveTo",enableMenu:!0,onClick:()=>l.ZP.openDialog("copyOrMove",{items:e,x:s,y:c,isMove:!0,copyMoveAction:W}),icon:"S_MoveTo_18_N",hideIcon:!o.Z.currentProduct.config.showLibraryActionMenuIcons});else{const e=o.Z.currentProduct.config.overrideMoveContextMenuText||(t.length>1?"DL_MOVE_SELECTED_ITEMS":"DL_MOVE_ITEM");i.push(r&&{label:t.length>1?"DL_COPY_SELECTED_ITEMS":"DL_COPY_ITEM",id:"copyTo",enableMenu:!0,onClick:()=>{t.forEach((e=>{d.ZP.reportElementEvent("Element Operations","Element","open","copy",e)})),l.ZP.openDialog("copyOrMove",{items:t,x:s,y:c,isMove:!1,copyMoveAction:W})}},n&&{label:e,id:"moveTo",enableMenu:!0,onClick:()=>{t.forEach((e=>{d.ZP.reportElementEvent("Element Operations","Element","open","move",e)})),l.ZP.openDialog("copyOrMove",{items:t,x:s,y:c,isMove:!0,copyMoveAction:W})},icon:"S_MoveTo_18_N",hideIcon:!o.Z.currentProduct.config.showLibraryActionMenuIcons})}return i}(r,e,i,a),u=o.Z.currentProduct.config.overrideDuplicateContextMenuText||(e.length>1?"DL_DUPLICATE_SELECTED_ITEMS":"DL_DUPLICATE_ITEM");return[s&&!n&&{label:u,id:"duplicate",enableMenu:!0,onClick:()=>W(!1,e,e[0].library,e[0].getGroups()[0]),icon:"Duplicate",hideIcon:!o.Z.currentProduct.config.showLibraryActionMenuIcons},...c]}(e));const i=o.Z.currentProduct.config.disableDelete&&o.Z.currentProduct.config.disableDelete(e);return(0,v.s)(r,[K(e)&&{label:"DL_RENAME",id:"rename",icon:"Rename",hideIcon:!o.Z.currentProduct.config.showElementActionMenuIcons,enableMenu:!0,onClick:()=>{e.forEach((e=>{d.ZP.reportElementEvent("Element Operations","Element","open","rename",e)})),d.ZP.setExtraEventMetrics("updateElement",{content:{category:"Right Click"}}),G.ZP.sendUpdateElementEvent(e[0]),o.Z.currentProduct.config.showRenameDialogOnElementAction?l.ZP.openDialog("renameLibrary",{library:e[0],isElement:!0}):(s.Z.setSelection(e[0]),Z.Z.panel.viewManager.startRename(e[0]))}},!i&&e.every((e=>V(e.library)))&&{label:"DL_DELETE",id:"delete",icon:"Delete",hideIcon:!o.Z.currentProduct.config.showElementActionMenuIcons,destructive:!o.Z.currentProduct.config.showActionAsNonDestructive,enableMenu:!0,onClick:()=>{f.Z.isOneUpMode()&&f.Z.setStateBeforeOneUpMode(),s.Z.clearSelection(e),d.ZP.reportEvent("Element Operations","Element","click","delete",{event:{value:"agg",count:e.length},content:{category:"Right Click"}},a.ZP.currentLibrary),d.ZP.setExtraEventMetrics("removeElement",{content:{category:"Right Click"}}),a.ZP.deleteElements(e)}},1===e.length&&!(0,g.Wv)(e[0].library)&&!o.Z.currentProduct.config.disableReportAbuse&&{label:"DL_REPORT_ABUSE",id:"reportAbuse",icon:"Flag",hideIcon:!o.Z.currentProduct.config.showElementActionMenuIcons,destructive:!o.Z.currentProduct.config.showActionAsNonDestructive,onClick:()=>{var t;return o.Z.currentProduct.config.showReportAbuseOnHost?null===(t=E.Z.reportAbuse)||void 0===t?void 0:t.call(E.Z,e[0]):w.Nn(e[0])}}]),(0,v.s)(r,function(e){if(!e.every((e=>e.isLinked)))return[];const t=[],r=[],n=[],i=[];e.forEach((e=>{e.canRelinkToLibrary?r.push(e):e.canRelinkToDocument?n.push(e):i.push(e)}));const o=!i.length,a=!(r.length&&n.length),s=!r.length||1===r.length;return o&&a&&s&&t.push({label:"DL_RELINK_ASSET",onClick:()=>(e=>e[0].canRelinkToLibrary?Z.Z.panel.documentActions.relinkAssetToLibrary(e[0]):E.Z.relinkAssetsToDocument(e))(e)}),E.Z.canUnlinkAssets&&E.Z.canUnlinkAssets(e)&&t.push({label:"DL_UNLINK_ASSET",onClick:()=>{d.ZP.reportEvent("Element Operations","element","click","make-local",{event:{value:"agg",count:e.length},content:{category:"Right Click"}}),e.forEach((e=>{d.ZP.reportElementEvent("Element Operations","element","click","make-local",e,{event:{value:"single",count:1},content:{category:"Right Click"}})})),E.Z.unlinkAssets(e)}}),e.every((e=>e.isPendingUpdate))&&t.unshift({label:"DL_UPDATE_ASSET",onClick:()=>E.Z.updateLinkedAssets(e)}),t}(e)),r}function q(e,t){if(!f.Z.isContextMenuEnabled())return void c.Z.setContextMenu([]);let r=$(s.Z.isSelected(e)?s.Z.selection.slice():[e],t);if(o.Z.currentProduct.config.elementContextMenuOrder){const e=r.reduce(((e,t)=>(e[t.id]=t,e)),{});r=o.Z.currentProduct.config.elementContextMenuOrder.map((t=>"divider"!==t||E.Z.isMobileView?e[t]:{divider:!0})),r=r.filter((e=>e)),1===r.length&&r[0].divider&&(r=[]),r.length>0&&r[r.length-1].divider&&r.pop()}o.Z.currentProduct.config.showReportAbuseOnHost&&(0,g.D3)(e.library)&&(r=r.filter((e=>"reportAbuse"!==e.id))),c.Z.setContextMenu(r,(()=>{o.Z.currentProduct.config.enableMultiSelectCheckbox||s.Z.ensureSelection(e)}))}},73675:(e,t,r)=>{"use strict";r.d(t,{I0:()=>G,rY:()=>U,nN:()=>B});var n=r(99386),i=r(75067),o=r(53849),a=r(79799),s=r(2315),c=r(84074),l=r(72373),u=r(85834),d=r(76485),p=r(98218),h=r(51461),f=r(16993),m=r(68895),g=r(25585),v=r(84824),y=r(30131),b=r(47320),_=r(4784),E=r(26964),w=r(46903),x=r(76325);function L(){L=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function O(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function T(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const P=()=>window.nodeRequire("fs");function I(e){if(d.Z.isWindowsOS())return window.cep.process.createProcess("start",e.replace(/\//g,"\\")),void alert((e===E.Z.getLogFolder()?"Folder is ":"Information saved to ")+e);window.cep.process.createProcess("/usr/bin/open",e)}function A(e){const t=new Date(e);return t.getMonth()+1+"-"+t.getDate()+"-"+t.getFullYear()}function C(e){const t=new Date(e),r=t.getMinutes();return t.getHours()+":"+(r<=9?"0":"")+r}function k(){return(k=function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){T(o,n,i,a,s,"next",e)}function s(e){T(o,n,i,a,s,"throw",e)}a(void 0)}))}}(L().mark((function e(){var t,r,n,o,a,s,c,l,u,d,p,h;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=x.Z.getEnvironment(),e.next=3,x.Z.getAccessToken(i.ZP.userId);case 3:r=e.sent,n={Authorization:`Bearer ${r}`,"x-api-key":t.clientId,"Content-Type":"application/json"},o=`https://${t.invitationsHost}/api/v3/resources?orderBy=-sharedate`;case 6:if(!o){e.next=38;break}return e.next=9,fetch(o,{headers:n});case 9:return a=e.sent,e.next=12,a.json();case 12:if(s=e.sent,!(c=s&&s._embedded&&s._embedded.resources)){e.next=35;break}l=O(c),e.prev=16,l.s();case 18:if((u=l.n()).done){e.next=27;break}if(d=u.value,(p=d._links&&d._links["http://ns.adobe.com/ccapi/path"])&&"application/vnd.adobe.library+dcx"===d.resourceType){e.next=23;break}return e.abrupt("continue",25);case 23:h=p.href.split("/").pop(),i.ZP.followLibrary(d.resourceUrn,h,{role:d.role});case 25:e.next=18;break;case 27:e.next=32;break;case 29:e.prev=29,e.t0=e.catch(16),l.e(e.t0);case 32:return e.prev=32,l.f(),e.finish(32);case 35:o=s&&s._links&&s._links.next&&s._links.next.href,e.next=6;break;case 38:case"end":return e.stop()}}),e,null,[[16,29,32,35]])})))).apply(this,arguments)}var D=r(39293),N=r(68370),R=r(97536),M=r(50265);const j=Object.freeze({EDIT_TUTORIAL:"brand_edit_tutorial_seen",DRAFT_TUTORIAL_STEP_1:"draft_tutorial_step_1_seen",DRAFT_TUTORIAL_STEP_2:"draft_tutorial_step_2_seen",DRAFT_TUTORIAL_SKIPPED:"draft_tutorial_skipped",PUBLISH_CHANGES_TUTORIAL:"brand_publish_changes_tutorial_seen"}),F=new class{constructor(){this._state=M.observable.map()}get state(){return this._state}init(){for(const e in j){const t=j[e];this._state.set(t,d.Z.localStorage.getItem(t))}}clearAll(){this._state.keys().forEach((e=>{d.Z.localStorage.setItem(e,"")})),this._state=M.observable.map()}setOnboardingState(e,t){t||(t=""),t=String(t),this._state.set(e,t),d.Z.localStorage.setItem(e,t)}getOnboardingState(e){const t=this._state.get(e),r=d.Z.localStorage.getItem(e);return t||r}};var Z=r(46931);function B(e,t={dialogManager:c.ZP}){const r=!!e&&e.isDeletedFromServer,n=e&&e.isPushedToServer&&!r&&!w.$_(i.ZP.currentLibrary)&&!i.ZP.isRestrictedAccount,o=i.ZP.areLibrariesLoaded&&!i.ZP.isRestrictedAccount,a=!i.ZP.isRestrictedAccount;return[n&&{id:"viewOnline",label:"DL_FLYOUT_VIEW_ON_WEBSITE",enableMenu:!f.Z.isTourInProgress,onClick:()=>y.yO(e)},o&&{id:"viewOnlineArchive",label:"DL_FLYOUT_VIEW_ARCHIVE_ON_WEBSITE",enableMenu:!f.Z.isTourInProgress,onClick:()=>y.uF(e)},{id:"learn",label:"DL_FLYOUT_HOW_TO_USE",enableMenu:!f.Z.isTourInProgress,onClick:()=>y.I0(!0)},{id:"whatsNew",label:"DL_FLYOUT_WHATS_NEW",enableMenu:!f.Z.isTourInProgress,onClick(){h.ZP.reportEvent("Navigation","Flyout Menu","click","whats-new"),t.dialogManager.openDialog("whatsNew")}},a&&{id:"feedback",label:"DL_FLYOUT_FEEDBACK",enableMenu:!f.Z.isTourInProgress,onClick:()=>y.Bx()}].filter((e=>e))}function G(){const e=[],t=a.Z.getServiceInfo(),r=t&&t.codeVersion+(t.buildNumber?"-"+t.buildNumber:"");return(0,N.s)(e,[{label:"v"+p.Z.getPluginVersion(),enableMenu:!1},{label:"Panel Information",onClick:()=>d.Z.showError(["Panel Information",`Path: ${d.Z.getPluginPath()}`,"Analytics State: "+(h.ZP.isEnabled()?"Enabled":"Disabled"),`User Agent: ${navigator.userAgent}`].join("\n\n"))},{label:"View Library Info",enableMenu:void 0!==i.ZP.currentLibrary,onClick:()=>function(){const e=i.ZP.currentLibrary;let t="";b.Z.getElementTypes().forEach((r=>{const n=(0,v.Iu)(b.Z.getTypeName(r)),i=e.elements.filter((e=>e.type===r));i.length>0&&(t+="\n    "+n+": "+i.length+" ("+_.Z.getSizeAsString(i)+")")}));const r=e.elements.length+" ("+_.Z.getSizeAsString(e)+")",n=`Current Library Information\nName: ${e.name}\nElements: ${r}${t}`;d.Z.showError(n)}()},{label:"View Element Info",enableMenu:void 0!==i.ZP.currentLibrary,onClick:()=>function(){const e=i.ZP.currentLibrary,t=Date.now();let r="";b.Z.groupElementsByType(e.elements,"name").forEach((e=>{e.children.forEach((e=>{const t=(0,v.Iu)(b.Z.getTypeName(e.type)),n=(0,w.vo)(e),i=A(e.modified);r+=`\n            <tr>\n                <td class='elementType'>${t}</td>\n                <td class='elementName'>${n}</td>\n                <td class='elementTime'>${i}</td>\n                <td class='elementId'>${e.id}</td>\n            </tr>`}))}));const n=`\n        <HTML>\n            <HEAD style="font-family:sans-serif;"><TITLE>Contents of "${e.name}"</TITLE></HEAD>\n            <body style="font-family:sans-serif">\n                <H1 class='libraryName'>Contents of "${e.name}"</H1>\n                <p class='libraryDescription'>${e.elements.length+" elements, "+A(t)+" "+C(t)}</p>\n                <table BORDER=1 CELLPADDING=4 CELLSPACING=1 RULES=ROWS FRAME=HSIDES BORDERCOLOR="#EEEEEE" style="font-size:small">\n                    <tr><th>Type</th><th>Name</th><th>Last modified</th><th>ID</th></tr>\n                    ${r}\n                </table>\n            </body>\n        </HTML>`,o=d.Z.getMyDocumentsPath()+"/"+g.BJ(e.name,"Library contents")+".html";try{P().writeFileSync(o,n),I(o)}catch(e){throw alert("Failed to create element info debug file\n\nCould not write to "+o+"\n\n"+e.toString()),e}}()},{label:"View All Libraries Info",enableMenu:void 0!==i.ZP.currentLibrary,onClick:()=>function(){const e=i.ZP.libraries,t=Date.now(),r=e.map((e=>`\n        <tr>\n            <td class='libraryName'>${g.CI(e.name)}</td>\n            <td class='libraryElementCount'>${e.elements.length}</td>\n            <td class='librarySize'>${_.Z.getSizeAsString(e)}</td>\n            <td class='libraryDate'>${A(e.modified)}</td>\n            <td class='libraryCollab'>${e.ownership||"&nbsp"}</td>\n            <td class='libraryId'>${e.id}</td>\n        </tr>\n    `)).join(""),n=`\n        <HTML><HEAD style="font-family:sans-serif;"><TITLE>My CC Libraries</TITLE></HEAD>\n        <body style="font-family:sans-serif">\n        <H1>My CC Libraries</H1>\n        <p>${e.length+" libraries, "+A(t)+" "+C(t)}</p>\n        <table BORDER=1 CELLPADDING=4 CELLSPACING=1 RULES=ROWS FRAME=HSIDES BORDERCOLOR="#EEEEEE" style="font-size:small">\n            <tr>\n                <th>&nbsp</th>\n                <th>Elements</th>\n                <th>Data size</th>\n                <th>Last modified</th>\n                <th>Collaboration</th>\n                <th>ID</th>\n            </tr>\n            ${r}\n        </table></body></HTML>\n    `,o=d.Z.getMyDocumentsPath()+"/AllLibrariesInfo.html";try{P().writeFileSync(o,n),I(o)}catch(e){throw alert("Failed to create libraries info debug file\n\nCould not write to "+o+"\n\n"+e.toString()),e}}()},{label:"Show Logs Folder",enableMenu:!0,onClick:()=>{I(E.Z.getLogFolder())}},{label:"Follow All Incoming Libraries",enableMenu:!0,onClick:()=>function(){return k.apply(this,arguments)}()}]),(0,N.s)(e,[{label:"Force open warning syncing in progress toast",enableMenu:!0,onClick:()=>s.Z.openToast("message",{undefined:void 0,message:(0,v.Iu)("DL_NAVIGATION_WARNING_SYNCING_IN_PROGRESS"),variant:"error",duration:0})},{label:"Show Deleted Items in Panel",enableMenu:void 0!==i.ZP.currentLibrary,onClick:()=>f.Z.setRemovedElementsMode()},{label:"Change Theme and Locale",enableMenu:!0,onClick:()=>c.ZP.openDialog("appThemeDebug")},{label:"Show Analytics in Panel",enableMenu:!0,onClick:()=>c.ZP.openDialog("analytics")},{label:"Show Relink Layer Mode",enableMenu:void 0!==i.ZP.currentLibrary,onClick(){f.Z.setRelinkLayerMode({message:"This relink mode was shown by the debug menu item",actionMessage:(0,v.Iu)("DL_RELINK"),missing:!1,overlayMessage:(0,v.Iu)("DL_RELINK_RELINK_OVERLAY_MESSAGE")})}},{label:"Show Groups Onboarding",enableMenu:!0,onClick:()=>c.ZP.openDialog("pathViewOnboarding")},{label:"Show Team Libraries One up view Onboarding",enableMenu:!0,onClick:()=>c.ZP.openDialog("panelTeamLibraryOneUpOnboardingPopover")},{label:"Show Capture Onboarding",enableMenu:!0,onClick:()=>c.ZP.openDialog("captureOnboardingPopover")},{label:"Show Root View Onboarding",enableMenu:!0,onClick:()=>c.ZP.openDialog("rootViewOnboardingPopover")},{label:"Show New User Library View Tour Onboarding",enableMenu:!0,onClick:()=>{f.Z.setTourInProgress(!0),c.ZP.openDialog("firstEnteredLibraryOnboardingPopoverTour",{isNewUserTour:!0})}},{label:"Show Returning User Library View Onboarding",enableMenu:!0,onClick:()=>c.ZP.openDialog("firstEnteredLibraryOnboardingPopoverTour")},{label:"Show Manager Onboarding",enableMenu:n.Z.currentProduct.config.hasLibraryManager,onClick:()=>{(0,R.V1)(),!d.Z.isLibraryManagerWindowOpen()&&d.Z.openLibraryManagerWindow()}},{label:"Enable quota warning onboarding",enableMenu:!0,checked:l.Z.getDebugValue("enableQuotaWarningOnboarding"),onClick:()=>l.Z.setDebugValue("enableQuotaWarningOnboarding",!l.Z.getDebugValue("enableQuotaWarningOnboarding"))}]),(0,N.s)(e,function(){let e=l.Z.getDebugValue("stockSimulationTargetAppCode");return e||(e=n.Z.currentProduct.config.code,l.Z.setDebugValue("stockSimulationTargetAppCode",e)),[...u.Z.getMenuItems(),{label:"Set Stock Simulation Target App ["+e+"]...",onClick:()=>{const e=prompt("Please enter code for target app, e.g.:\n\nPHXS for Photoshop\nILST for Illustrator\nIDSN for InDesign",l.Z.getDebugValue("stockSimulationTargetAppCode"));l.Z.setDebugValue("stockSimulationTargetAppCode",e)}},{label:"Copy Selected ElementRef",onClick(){const e=o.Z.selection.map((function(e){return e.getReferenceString()})).join("\n");try{const t=window.nodeRequire("child_process").exec;d.Z.isWindowsOS()?t("echo '"+e+"' | clip"):t("echo '"+e+"' | pbcopy")}catch(t){d.Z.canvas.writePlainTextClipboard(e)}}},{label:"Reset Onboarding State (takes effect on restart)",enableMenu:!0,onClick:()=>(0,R.iy)()},n.Z.currentProduct.config.useBrandsOnboarding&&{label:"Reset Brands Onboarding State [GenStudio]",enableMenu:!0,onClick:()=>F.clearAll()},{label:"Enable SAM.js logs",enableMenu:n.Z.currentProduct.config.enableSAM,onClick:()=>{l.Z.setDebugValue("enableSAMLogs",!l.Z.getDebugValue("enableSAMLogs"))}},{label:"Reset collapsed state to default",enableMenu:!0,onClick:()=>f.Z.resetCollapsedTypes()},{label:"Reset view states to default",enableMenu:!0,onClick:()=>f.Z.resetViewStates()}]}()),(0,N.s)(e,function(){if(!i.ZP.areLibrariesLoaded)return[];const e=i.ZP.libraries.filter((e=>e.toolkitId));return[{label:"Lock all toolkit libraries",enableMenu:!!e.length,onClick:()=>e.forEach((e=>f.Z.lockToolkit(e)))},{label:"Ensure all toolkit libraries",enableMenu:!0,onClick:()=>{n.Z.TOOLKIT_TYPES.forEach((e=>i.ZP.getLibraryByToolkitId(`${e}`)))}},{label:"Delete all toolkit libraries",enableMenu:!!e.length,onClick:()=>e.forEach((e=>i.ZP.deleteLibrary(e)))}]}()),(0,N.s)(e,[{label:"Enable JSAPI Hybrid Mode",checked:l.Z.getDebugValue("jsapiHybridDriver"),enableMenu:!0,onClick:()=>{l.Z.setDebugValue("jsapiHybridDriver",!l.Z.getDebugValue("jsapiHybridDriver")),window.location.reload()}},{label:"Open JS API 2.0 Debug Dashboard",enableMenu:!0,onClick:()=>c.ZP.openDialog("jsApi2Dashboard")},{label:"Load library by asset ID",enableMenu:!0,onClick:()=>{c.ZP.openDialog("loadLibraryByAssetId")}},{label:"Load Version History (in console)",enableMenu:!0,onClick:()=>{const e=i.ZP.currentLibrary;e.loadVersionHistory().then((e=>{const t=e.map((e=>e.load()));return Promise.all(t).then((()=>e))})).then((t=>{console.log("Current library name:",e.name),console.log("Current library id:",e.id),console.log("Current library asset id:",e.assetId,"\n\n"),t.forEach((e=>{console.log(`Version ${e.id}:`,e);const t=e._libraryVersion;console.log(`Version ${e.id} Library model:`,t);const r=new Date(t.modified).toLocaleString();console.log(`Version ${e.id} Library modified: ${r}\n\n`)}))}))}}]),(0,N.s)(e,function(){const e=a.Z.getServiceInfo(),t=e&&e.environment;return[{label:"Production",checked:"Production"===t,enableMenu:!1},{label:"Staging",checked:"Staging"===t,enableMenu:!1}]}()),(0,N.s)(e,[{label:a.Z.isConnected()?"Connected To: v"+r:"Not Connected",enableMenu:!1}]),e}function U(e){const t=[],r=i.ZP.currentLibrary;(0,N.s)(t,function(){if(n.Z.currentProduct.config.readOnlyPanelUI)return[];const e=i.ZP.areLibrariesLoaded,t=d.Z.supportsFilePicker&&e,r=n.Z.currentProduct.config.hasLibraryManager;if(!e)return[];const o=(...e)=>r?d.Z.openDialogInManager(...e):c.ZP.openDialog(...e);return[{label:"DL_MENU_CREATE_LIB",enableMenu:e&&!f.Z.isImportExportInProgress&&!f.Z.isTourInProgress,onClick:()=>o("createLibrary")},t&&{label:"DL_IMPORT_LIBRARY",enableMenu:!f.Z.isImportExportInProgress&&!f.Z.isTourInProgress,onClick:()=>{h.ZP.reportEvent("Library Operations","Import Library","click","start",{content:{category:"Flyout Menu"}}),o("importExportLibrary",{library:i.ZP.currentLibrary,mode:"import"})}}]}());const o=n.Z.currentProduct.getFlyoutMenuItems;if(o){const e=o().map((e=>(e.enableMenu=e.enableMenu&&!f.Z.isTourInProgress,e)));(0,N.s)(t,e)}return(0,N.s)(t,function(){var e;const t=i.ZP.currentLibrary,r=!!t&&t.isDeletedFromServer,o=!f.Z.isImportExportInProgress;if(!t)return[];const a=t.isPushedToServer&&!t.toolkitId&&!w.$_(t)&&!r&&t.isWritable&&!i.ZP.isRestrictedAccount,s=w.hp(t),l=w.W(t)&&!r,u=!w.$_(t)&&w.pN(t),p=!w.$_(t)&&w.GL(t),v=d.Z.supportsFilePicker&&t.elements.length>0&&!r&&!n.Z.currentProduct.config.readOnlyPanelUI,y=f.Z.isLibraryWritable(t)&&!r&&t.elements.length>0&&0===(null===(e=t.getGroups())||void 0===e?void 0:e.length),b={libraryName:(0,g.aS)(t.name,15)},_=function(e,t,r){const n=w.IA()&&!w.$_(e)&&e.isPushedToServer&&!t&&e.isWritable&&!e.toolkitId&&w.Wv(e)&&i.ZP.isOnline,o=w.$_(e)&&e.isPushedToServer&&!t,a=w.$_(e)&&w.GL(e);return[w.$_(e)&&!t&&{label:"DL_FLYOUT_PERSONAL_COPY_LIB",enableMenu:!f.Z.isImportExportInProgress,translationData:r,onClick:()=>{h.ZP.reportEvent("Operations","Personal Copy Team Library","click","start"),Z.Z.panel.libraryActions.makeTeamPersonalCopy(e)}},n&&{label:"DL_FLYOUT_PROMOTE_LIB",enableMenu:!f.Z.isImportExportInProgress,translationData:r,onClick:()=>{h.ZP.reportEvent("Operations","Promote Team Library","click","start"),Z.Z.panel.libraryActions.promote(e)}},o&&{label:(0,D.Ol)(e)?"DL_REMOVE_FROM_YOUR_BRANDS":"DL_REMOVE_FROM_YOUR_LIBRARIES",enableMenu:!f.Z.isImportExportInProgress,translationData:r,onClick:()=>{h.ZP.reportEvent("Operations","Unfollow Team Library","click","start"),c.ZP.openDialog("deleteTeamLibrary",{library:e,leave:!0})}},a&&{label:"DL_FLYOUT_REMOVE_LIB",translationData:r,enableMenu:!f.Z.isImportExportInProgress,onClick(){h.ZP.reportEvent("Operations","Delete Library","click","start"),c.ZP.openDialog("deleteTeamLibrary",{library:e,leave:!1})}}]}(t,r,b)||[];return[v&&{label:"DL_EXPORT_LIBRARY_FLYOUT",enableMenu:o,translationData:b,onClick:()=>{c.ZP.openDialog("importExportLibrary",{library:t,mode:"export"}),h.ZP.reportEvent("Library Operations","Export Library","click","start",null,t)}},s&&{label:"DL_FLYOUT_COLLABORATE",enableMenu:!0,onClick:()=>Z.Z.panel.libraryActions.invite(t,!1)},a&&{label:"DL_FLYOUT_SHARE_LINK",enableMenu:!0,onClick(){h.ZP.reportEvent("Collaboration","Share Library Link","click","start",null,t),Z.Z.panel.libraryActions.getLink(t,!1)}},..._,l&&{label:"DL_FLYOUT_RENAME_LIB",enableMenu:o,translationData:b,onClick:()=>c.ZP.openDialog("renameLibrary",{library:t})},(0,m.EZ)(t)&&{label:"DL_EDIT_IN_SOURCE",enableMenu:o,onClick:()=>(0,m.Fb)(t)},u&&{label:w.D3(t)?(0,D.Ol)(t)?"DL_REMOVE_FROM_YOUR_BRANDS":"DL_REMOVE_FROM_YOUR_LIBRARIES":"DL_FLYOUT_LEAVE_LIB",translationData:b,enableMenu:!t.toolkitId&&!r&&!f.Z.isImportExportInProgress,onClick(){h.ZP.reportEvent("Operations","Unfollow Library","click","start"),c.ZP.openDialog("deleteLibrary",{library:t})}},p&&{label:"DL_FLYOUT_REMOVE_LIB",translationData:b,enableMenu:o,onClick(){h.ZP.reportEvent("Operations","Delete Library","click","start"),c.ZP.openDialog("deleteLibrary",{library:t})}},y&&{label:"DL_FLYOUT_AUTOGENERATE_GROUPS",translationData:b,enableMenu:o,onClick:()=>Z.Z.panel.libraryActions.autogenerateEmptyLibraryGroups(t)}].filter((e=>e))}().map((e=>(e.enableMenu=e.enableMenu&&!f.Z.isTourInProgress,e)))),(0,N.s)(t,function(){if(f.Z.isRootView())return[];const e=i.ZP.areLibrariesLoaded;return[f.Z.viewByState===n.Z.VIEW_BY_MODES.GROUP&&{label:"DL_COLLAPSE_ALL",enableMenu:e&&!f.Z.isTourInProgress,onClick:()=>{i.ZP.currentLibrary.getGroups().forEach((e=>f.Z.setGroupCollapsed(e.id,!0))),h.ZP.reportEvent("Navigation","Library Panel","click","collapse-groups")}},{label:"DL_SHOW_NAMES_ALWAYS",enableMenu:e&&!f.Z.isTourInProgress,checked:"always"===f.Z.nameVisibility,onClick:()=>{const e="always"===f.Z.nameVisibility?"elementHover":"always";f.Z.setNameVisibility(e),h.ZP.reportEvent("Navigation","Library Panel","click","name-visibility",{event:{value:e}})}},{label:"DL_SHOW_TRANSPARENCY_GRID",enableMenu:e&&!f.Z.isTourInProgress,checked:f.Z.elementBackgroundPattern===n.Z.ELEMENT_BACKGROUNDS.CHECKERED,onClick:()=>{const e=f.Z.elementBackgroundPattern===n.Z.ELEMENT_BACKGROUNDS.SOLID?n.Z.ELEMENT_BACKGROUNDS.CHECKERED:n.Z.ELEMENT_BACKGROUNDS.SOLID;f.Z.setElementBackgroundPattern(e),h.ZP.reportEvent("Navigation","Library Panel","click","element-background",{event:{value:e}})}}]}()),(0,N.s)(t,B(r,{dialogManager:c.ZP})),(0,N.s)(t,d.Z.flyoutMenuItems||[]),!1!==e&&l.Z.showDebugMenu()&&(0,N.s)(t,G()),t}},48003:(e,t,r)=>{"use strict";r.d(t,{M:()=>f});var n=r(75067),i=(r(99409),r(46903)),o=r(68370),a=r(84074),s=r(16993),c=r(51461),l=r(10440),u=r(99386),d=r(46931);function p(e){const t=(0,o.o)((t=>{(0,i.c_)(t,e)}));return t.length?[{label:"DL_ADD_ELEMENTS_TO_GROUP",enableMenu:!0,menuItems:t}]:[]}function h(e){c.ZP.setExtraEventMetrics("createGroup",{content:{category:"Right Click Group"}}),d.Z.panel.groupActions.createSubgroup(e)}function f(e,t){const r=[],f=l.Z.groupSelection,m=f.length>1&&l.Z.getSelectionCommonAncestor(),g=e.library.isDocumentAssets,v="path"===s.Z.viewByGroupMode,y=!(g&&!m)&&!v&&f.length&&f.length>1,b=!g&&s.Z.isLibraryWritable(e.library)&&(!f.length||1===f.length);if(e.disableEditing)return(0,o.s)(r,[{label:"DL_CREATE_SUBGROUP",enableMenu:!0,onClick:()=>{h(e)}}]),r;if(b&&(0,o.s)(r,[...p(e)]),s.Z.isLibraryWritable(e.library)&&(0,o.s)(r,[{label:"DL_CREATE_SUBGROUP",enableMenu:!0,onClick:()=>{h(e)}},y&&{label:"DL_GROUP_TOGETHER",enableMenu:!0,onClick:()=>d.Z.panel.groupActions.createGroupFromSet(f)}]),(0,o.s)(r,function(e){const t=e.library.isDocumentAssets,r=e.library.elements.filter((t=>t.getOrderInGroup(e))),o=(0,i.jT)(r.length);o[e.library.id]=!1;const c=n.ZP.libraries.some((e=>o[e.id])),l=c&&!t,u=c&&s.Z.isLibraryWritable(e.library),d=s.Z.contextMenuPositionState,p=d.x,h=d.y;return[l&&{label:"DL_COPY_ITEM",enableMenu:!0,onClick:()=>a.ZP.openDialog("copyOrMove",{items:[e],x:p,y:h,isMove:!1,copyMoveAction:i.yD})},u&&{label:"DL_MOVE_ITEM",enableMenu:!0,onClick:()=>a.ZP.openDialog("copyOrMove",{items:[e],x:p,y:h,isMove:!0,copyMoveAction:i.yD})}]}(e),!g),s.Z.isLibraryWritable(e.library)){const i=!f.length||1===f.length,a={label:"DL_RENAME_GROUP",enableMenu:!0,onClick:()=>{c.ZP.setExtraEventMetrics("updateGroup",{content:{category:t}}),u.Z.currentProduct.config.disableEditPathOperation?(d.Z.panel.viewManager.startRename(e),d.Z.panel.viewManager.setRenameValue(e.name)):d.Z.panel.viewManager.startEditPath(e)}},s={label:"DL_EDIT_PATH",enableMenu:!0,onClick:()=>{d.Z.panel.viewManager.startEditPath(e)}},l=v&&!u.Z.currentProduct.config.disableEditPathOperation?s:a;(0,o.s)(r,[i&&l,{label:"DL_UNGROUP_NESTED_GROUPS",enableMenu:!0,onClick:()=>{c.ZP.setExtraEventMetrics("removeGroup",{content:{category:t}}),n.ZP.deleteGroups([e])}},{label:"DL_DELETE_NESTED_GROUPS",enableMenu:!0,onClick:()=>{n.ZP.deleteGroups(f.length>0?f:[e],{deleteContents:!0,deleteEmptyAncestors:v&&!u.Z.currentProduct.config.disableDeleteEmptyAncestors})}}],!g)}return r}},64662:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});class n{constructor(){this.isElement=!0}}},68169:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n,i,o=r(50265);let a=(n=o.action.bound,s=(i=class{constructor(e){this.isGroup=!0,this._group=e,this._changeAtom=new o.Atom("groupChange",(()=>{var e,t;return!this._group.isDeletedLocally&&(null===(e=(t=this._group).on)||void 0===e?void 0:e.call(t,"change",this._onChange))}),(()=>{var e,t;return null===(e=(t=this._group).off)||void 0===e?void 0:e.call(t,"change",this._onChange)}))}_onChange(){this._changeAtom.reportChanged()}get id(){return this._group.id}get classifierName(){return this._group.classifierName}get name(){return this._changeAtom.reportObserved(),this._group.name}set name(e){this._group.name=e}get order(){return this._changeAtom.reportObserved(),String(this._group.order)}set order(e){this._group.order=e}get modified(){return this._changeAtom.reportObserved(),this._group.modified}get modifiedBy(){return this._changeAtom.reportObserved(),this._group.modifiedBy}get modifiedContext(){return this._changeAtom.reportObserved(),this._group.modifiedContext}get wasModifiedLocally(){return this._changeAtom.reportObserved(),this._group.wasModifiedLocally}get created(){return this._changeAtom.reportObserved(),this._group.created}get createdBy(){return this._changeAtom.reportObserved(),this._group.createdBy}get createdContext(){return this._changeAtom.reportObserved(),this._group.createdContext}get wasCreatedLocally(){return this._changeAtom.reportObserved(),this._group.wasCreatedLocally}get isDeletedLocally(){return this._changeAtom.reportObserved(),this._group.isDeletedLocally}}).prototype,c="_onChange",l=[n],u=Object.getOwnPropertyDescriptor(i.prototype,"_onChange"),d=i.prototype,p={},Object.keys(u).forEach((function(e){p[e]=u[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=l.slice().reverse().reduce((function(e,t){return t(s,c,e)||e}),p),d&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(d):void 0,p.initializer=void 0),void 0===p.initializer&&(Object.defineProperty(s,c,p),p=null),i);var s,c,l,u,d,p},72150:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});class n{constructor(){this.isLibrary=!0}loadElements(){}get removedElements(){return[]}get areElementsLoaded(){return!0}}},44853:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d});var n=r(50265),i=r(69377),o=r(64662);class a extends o.Z{constructor(e){super(),this._changeAtom=void 0,this._element=e}get id(){return this._element.id}get type(){return this._element.type}get modified(){return this._changeAtom.reportObserved(),this._element.modified}get created(){return this._changeAtom.reportObserved(),this._element.created}}var s,c,l=r(34038),u=r(46931);let d=(s=n.action.bound,p=(c=class extends a{constructor(e){super(e),this._waitForSetThumbnailCache=Promise.resolve(),this._copyThumbnailPromises=[],this._changeAtom=new n.Atom("elementChange",(()=>!e.isDeletedLocally&&e.on("change",this._onChange)),(()=>e.off("change",this._onChange)))}_onChange(){this.library._pushPendingElementChanged(this._changeAtom),(0,i.zF)(this._element)}getReference(){return this._element.getReference()}getReferenceString(){return this._element.getReferenceString()}getLegacyReference(){return this._element.getLegacyReference()}get name(){return this._changeAtom.reportObserved(),this._element.name}set name(e){this._element.name=e}get isAutoNamed(){return this._changeAtom.reportObserved(),this._element.isAutoNamed}get isCommitted(){return this._changeAtom.reportObserved(),this._element.isCommitted}get committed(){return new Promise((e=>(0,n.when)((()=>this.isCommitted),e)))}getLocalizedName(e){return this._changeAtom.reportObserved(),this._element.getLocalizedName(e)}setLocalizedName(e,t){this._element.setLocalizedName(e,t)}get library(){return(0,i.mK)(this._element.library)}get isWritable(){return this._changeAtom.reportObserved(),this._element.isWritable}get tags(){return this._changeAtom.reportObserved(),this._element.tags}set tags(e){this._element.tags=e}get dependencies(){return this._changeAtom.reportObserved(),this._element.dependencies.map(i.Z0)}set dependencies(e){this._element.dependencies=e.map((e=>e._element))}get hasMissingDependencies(){return this._changeAtom.reportObserved(),this._element.hasMissingDependencies}getGroups(e){return this._changeAtom.reportObserved(),this._element.getGroups(e).map(i.Lj)}getOrderInGroup(e){return this._changeAtom.reportObserved(),this._element.getOrderInGroup(e._group)}setOrderInGroup(e,t,r){this._element.setOrderInGroup(e._group,t,r)}get description(){return this._changeAtom.reportObserved(),this._element.description}set description(e){this._element.description=e}get descriptionModified(){return this._changeAtom.reportObserved(),this._element.descriptionModified}get descriptionModifiedBy(){return this._changeAtom.reportObserved(),this._element.descriptionModifiedBy}get descriptionModifiedContext(){return this._changeAtom.reportObserved(),this._element.descriptionModifiedContext}get wasDescriptionModifiedLocally(){return this._changeAtom.reportObserved(),this._element.wasDescriptionModifiedLocally}get modifiedBy(){return this._changeAtom.reportObserved(),this._element.modifiedBy}get modifiedContext(){return this._changeAtom.reportObserved(),this._element.modifiedContext}get wasModifiedLocally(){return this._changeAtom.reportObserved(),this._element.wasModifiedLocally}get createdBy(){return this._changeAtom.reportObserved(),this._element.createdBy}get createdContext(){return this._changeAtom.reportObserved(),this._element.createdContext}get wasCreatedLocally(){return this._changeAtom.reportObserved(),this._element.wasCreatedLocally}get removed(){return this._changeAtom.reportObserved(),this._element.removed}get removedBy(){return this._changeAtom.reportObserved(),this._element.removedBy}get removedContext(){return this._changeAtom.reportObserved(),this._element.removedContext}get wasRemovedLocally(){return this._changeAtom.reportObserved(),this._element.wasRemovedLocally}get isDeletedLocally(){return this._changeAtom.reportObserved(),this._element.isDeletedLocally}get sourceRef(){return this._changeAtom.reportObserved(),this._element.sourceRef}set sourceRef(e){this._element.sourceRef=e}get sourceRefString(){return this._changeAtom.reportObserved(),this._element.sourceRefString}set sourceRefString(e){this._element.sourceRefString=e}get instanceId(){return this._changeAtom.reportObserved(),this._element.instanceId}get roles(){return this._changeAtom.reportObserved(),this._element.roles}set roles(e){this._element.roles=e}beginOperation(){this._element.beginOperation()}endOperation(){return Promise.all(this._copyThumbnailPromises).then((()=>new Promise((e=>{this._element.endOperation(e)}))))}get representations(){return this._changeAtom.reportObserved(),this._element.representations.map(i.$H)}getPrimaryRepresentation(){return this._changeAtom.reportObserved(),(0,i.$H)(this._element.getPrimaryRepresentation())}getRepresentationById(e){return this._changeAtom.reportObserved(),(0,i.$H)(this._element.getRepresentationById(e))}createRepresentation(e,t,r,n){return(0,i.$H)(this._element.createRepresentation(e,t,r,n))}removeRepresentation(e){this._element.removeRepresentation(e._representation),(0,i.uf)(e)}removeAllRepresentations(){this._element.removeAllRepresentations(),(0,i.V8)(this._element)}getValue(e,t){return this._changeAtom.reportObserved(),this._element.getValue(e,t)}getValues(){return this._changeAtom.reportObserved(),this._element.getValues()}setValue(e,t,r){this._element.setValue(e,t,r)}getThumbnailURL(e){return this._element.getThumbnailURL(e)}getThumbnailPath(e){return this._waitForSetThumbnailCache.then((()=>this._element.getThumbnailPath(e)))}getThumbnailContent(e){return this._waitForSetThumbnailCache.then((()=>this._element.getThumbnailContent(e)))}getCachedThumbnailPath(e){return this._changeAtom.reportObserved(),this._element.getCachedThumbnailPath(e)}_copyThumbnailToTempDir(e){const t=window.nodeRequire("fs"),r=window.nodeRequire("path"),n=u.Z.libraryManager.tempDir;if(!(t&&r&&t.copyFile&&n))return Promise.resolve(e);const i=(0,l.rD)(r.basename(e)),o=r.join(n,i);if(e.startsWith(n))return Promise.resolve(e);const a=new Promise((r=>{t.copyFile(e,o,(t=>r(t?e:o)))}));return this._copyThumbnailPromises.push(a),a.then((()=>{const e=this._copyThumbnailPromises.indexOf(a);-1!==e&&this._copyThumbnailPromises.splice(e,1)})),a}_removeCopiedPath(e){const t=window.nodeRequire("fs");t&&t.unlink(e,(()=>{}))}setThumbnailCache(e,t){let r;return this._waitForSetThumbnailCache=new Promise((e=>r=e)),this._copyThumbnailToTempDir(t).then((n=>new Promise(((i,o)=>{this._element.setThumbnailCache(e,n,((e,a)=>{e?o(e):i(a),r(),t!==n&&this._removeCopiedPath(n)}))}))))}supportsVectorThumbnail(){return this._changeAtom.reportObserved(),this._element.supportsVectorThumbnail()}getActions(e){return this._changeAtom.reportObserved(),this._element.getActions(e)}getAuthenticatedThumbnailURL(e){return this._element.getAuthenticatedThumbnailURL(e)}}).prototype,h="_onChange",f=[s],m=Object.getOwnPropertyDescriptor(c.prototype,"_onChange"),g=c.prototype,v={},Object.keys(m).forEach((function(e){v[e]=m[e]})),v.enumerable=!!v.enumerable,v.configurable=!!v.configurable,("value"in v||v.initializer)&&(v.writable=!0),v=f.slice().reverse().reduce((function(e,t){return t(p,h,e)||e}),v),g&&void 0!==v.initializer&&(v.value=v.initializer?v.initializer.call(g):void 0,v.initializer=void 0),void 0===v.initializer&&(Object.defineProperty(p,h,v),v=null),c);var p,h,f,m,g,v},90459:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(69377),i=r(68169);class o extends i.Z{get library(){return(0,n.mK)(this._group.library)}getLocalizedName(e){return this._changeAtom.reportObserved(),this._group.getLocalizedName(e)}getLocalizedNames(){return this._changeAtom.reportObserved(),this._group.getLocalizedNames()}setLocalizedName(e,t){this._group.setLocalizedName(e,t)}get sourceRef(){return this._changeAtom.reportObserved(),this._group.sourceRef}set sourceRef(e){this._group.sourceRef=e}get sourceRefString(){return this._changeAtom.reportObserved(),this._group.sourceRefString}set sourceRefString(e){this._group.sourceRefString=e}get parent(){const e=this._group.parent;if(e)return(0,n.Lj)(e)}set parent(e){this._group.parent=e&&e._group}get children(){const e=this._group.children;if(e)return e.map((e=>(0,n.Lj)(e)))}getFilteredChildren(e){return this._changeAtom.reportObserved(),this._group.getFilteredChildren(e).map(n.Lj)}createChild(e,t){return(0,n.Lj)(this._group.createChild(e,t))}}},30949:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(50265),i=r(69377),o=r(72150);class a extends o.Z{constructor(e){super(),this._changeAtom=void 0,this._library=e}get elementCount(){return this._changeAtom.reportObserved(),this._library.elements.length}getGroupCount(e="$default"){return this._changeAtom.reportObserved(),this._library.getGroupCount(e)}}var s,c,l,u=r(46903),d=r(46931);function p(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let h=(s=n.action.bound,c=n.action.bound,p((l=class extends a{constructor(e){super(e),this._changeAtom=new n.Atom("libraryChange",(()=>!this._library.isDeletedLocally&&this._library.on("change",this._onChange)),(()=>this._library.off("change",this._onChange)));const t=d.Z.libraryManager.dangerouslyAccessCCLibraries();this._syncAtom=t._syncAtom}on(e,t){this._library.on(e,t)}off(e,t){this._library.off(e,t)}emit(e){this._library.emit(e)}_pushPendingElementChanged(e){this._pendingElementChangeAtoms||(this._pendingElementChangeAtoms=[],this._library.on("change",this._onChangeElements)),this._pendingElementChangeAtoms.push(e)}_onChangeElements(){const e=this._pendingElementChangeAtoms;delete this._pendingElementChangeAtoms,this._library.off("change",this._onChangeElements),e.forEach((e=>e.reportChanged()))}_onChange(){this._changeAtom.reportChanged(),(0,i.ZS)(this._library),(0,i.z9)(this._library)}getFilteredElements(e){return this._changeAtom.reportObserved(),this._library.getFilteredElements(e).map(i.Z0)}getFilteredGroups(e="$default",t){return this._changeAtom.reportObserved(),this._library.getFilteredGroups(e,t).map(i.Lj)}get id(){return this._library.id}get previousPlaceHolderId(){return this._changeAtom.reportObserved(),this._library.previousPlaceHolderId}get publicLinkId(){if((0,u.D3)(this)){const e=this._library._dcxComposite,t=e&&e.href,r=t&&t.split("/");return r&&r[r.length-1]}}get resourceId(){const e=this._library._dcxComposite;return e&&e.href}getReference(){return this._library.getReference()}getReferenceString(){return this._library.getReferenceString()}get name(){return this._changeAtom.reportObserved(),this._library.name}set name(e){this._library.name=e}get roles(){return this._changeAtom.reportObserved(),this._library.roles}set roles(e){this._library.roles=e}getLocalizedName(e){return this._changeAtom.reportObserved(),this._library.getLocalizedName(e)}setLocalizedName(e,t){this._library.setLocalizedName(e,t)}get isCommitted(){return this._changeAtom.reportObserved(),this._library.isCommitted}get committed(){return new Promise((e=>(0,n.when)((()=>this.isCommitted),e)))}get created(){return this._changeAtom.reportObserved(),this._library.created}get createdBy(){return this._changeAtom.reportObserved(),this._library.createdBy}get bookmark(){return this._changeAtom.reportObserved(),this._library.bookmark}get assetId(){return this._changeAtom.reportObserved(),this._library.assetId}get toolkitId(){return this._changeAtom.reportObserved(),this._library.toolkitId}get documentId(){return this._changeAtom.reportObserved(),this._library.documentId}get documentType(){return this._changeAtom.reportObserved(),this._library.documentType}get modified(){return this._changeAtom.reportObserved(),this._library.modified}get modifiedBy(){return this._changeAtom.reportObserved(),this._library.modifiedBy}get collaboration(){return this._changeAtom.reportObserved(),this._library.collaboration}get collaborators(){return this._changeAtom.reportObserved(),this._library.collaborators}get visibleCollaborators(){return this._changeAtom.reportObserved(),this._library.visibleCollaborators}loadCollaborators(){return this._changeAtom.reportObserved(),this._library.loadCollaborators()}get ownership(){return this._changeAtom.reportObserved(),this._library.ownership}get team(){return this._changeAtom.reportObserved(),this._library.team}get project(){return this._changeAtom.reportObserved(),this._library.team}get isWritable(){return this._changeAtom.reportObserved(),this._library.isWritable}get isParentWritable(){return this._changeAtom.reportObserved(),this._library.isParentWritable}get isTransient(){return this._changeAtom.reportObserved(),this._library.isTransient}get owner(){return this._changeAtom.reportObserved(),this._library.owner}get ownerType(){return this._changeAtom.reportObserved(),this._library.ownerType}get parentDirectoryId(){return this._changeAtom.reportObserved(),this._library.parentDirectoryId}get isDeletedFromServer(){return this._changeAtom.reportObserved(),this._library.isDeletedFromServer}get isDeletedLocally(){return this._changeAtom.reportObserved(),this._library.isDeletedLocally}get isQuotaExceeded(){return this._changeAtom.reportObserved(),this._library.isQuotaExceeded}get storageUsed(){return this._changeAtom.reportObserved(),this._library.storageUsed}get renditionGrid(){return this._library.renditionGrid}get syncState(){var e;return null===(e=this._syncAtom)||void 0===e||e.reportObserved(),this._library.syncState}get syncProgress(){return this._syncAtom.reportObserved(),this._library.syncProgress}get syncError(){this._syncAtom.reportObserved();const e=d.Z.libraryManager.syncErrors;if(e)return e.find((e=>e.libraryId===this.id))}get isPushedToServer(){var e;return null===(e=this._syncAtom)||void 0===e||e.reportObserved(),this._changeAtom.reportObserved(),this._library.isPushedToServer}get publishedFrom(){var e;return null===(e=this._syncAtom)||void 0===e||e.reportObserved(),this._changeAtom.reportObserved(),this._library.publishedFrom}get publishedTo(){var e;return null===(e=this._syncAtom)||void 0===e||e.reportObserved(),this._changeAtom.reportObserved(),this._library.publishedTo}get lastPublishedVersion(){var e;return null===(e=this._syncAtom)||void 0===e||e.reportObserved(),this._changeAtom.reportObserved(),this._library.lastPublishedVersion}get version(){var e;return null===(e=this._syncAtom)||void 0===e||e.reportObserved(),this._changeAtom.reportObserved(),this._library.version}get extractedFrom(){var e;return null===(e=this._syncAtom)||void 0===e||e.reportObserved(),this._changeAtom.reportObserved(),this._library.extractedFrom}get appMetadata(){var e;return null===(e=this._syncAtom)||void 0===e||e.reportObserved(),this._changeAtom.reportObserved(),this._library.appMetadata}beginOperation(){this._library.beginOperation()}endOperation(){return new Promise((e=>this._library.endOperation(e)))}loadElements(e){if("function"==typeof this._library.loadElements)return this._library.loadElements(e)}get areElementsLoaded(){return this._changeAtom.reportObserved(),void 0===this._library.areElementsLoaded||this._library.areElementsLoaded}get elements(){return this._changeAtom.reportObserved(),this._library.elements.map(i.Z0)}get elementCount(){return this._changeAtom.reportObserved(),this._library.elementCount}get isLibraryLoaded(){return this._changeAtom.reportObserved(),void 0===this._library.isLibraryLoaded||this._library.isLibraryLoaded}get removedElements(){return this._changeAtom.reportObserved(),this._library.removedElements.map(i.Z0)}get removedElementCount(){return this._changeAtom.reportObserved(),this._library.removedElementCount}get documentationElements(){return this._changeAtom.reportObserved(),this._library.documentationElements.map(i.Z0)}get documentationElementCount(){return this._changeAtom.reportObserved(),this._library.documentationElementCount}getElementById(e,t){return this._changeAtom.reportObserved(),(0,i.Z0)(this._library.getElementById(e,t))}createElement(e,t){return(0,i.Z0)(this._library.createElement(e,t))}removeElement(e,t){this._library.removeElement(e._element,t),(0,i.R6)(e)}restoreElement(e){return(0,i.Z0)(this._library.restoreElement(e._element))}copyElement(e,t){return this._library.copyElement(e._element,t._library).then((e=>(0,i.Z0)(e)))}moveElement(e,t){return this._library.moveElement(e._element,t._library).then((t=>((0,i.R6)(e),(0,i.Z0)(t))))}getGroups(e){return this._changeAtom.reportObserved(),this._library.getGroups(e).map(i.Lj)}getGroupById(e){this._changeAtom.reportObserved();const t=this._library.getGroupById(e);if(t)return(0,i.Lj)(t)}createGroup(e,t,r){return(0,i.Lj)(this._library.createGroup(e,t,r))}removeGroup(e,t){this._library.removeGroup(e._group,t),(0,i.r1)(e)}copyGroup(e,t,r){return this._library.copyGroup(e._group,t._library,r).then((e=>(0,i.Lj)(e)))}moveGroup(e,t,r){return this._library.moveGroup(e._group,t._library,r).then((e=>(0,i.Lj)(e)))}getRenditionURL(e){return this._changeAtom.reportObserved(),this._library.getRenditionURL(e)}getRenditionPath(e){return this._changeAtom.reportObserved(),new Promise(((t,r)=>{this._library.getRenditionPath(e,((e,n)=>{e?r(e):t(n)}))}))}getAuthenticatedRenditionURL(e){return this._changeAtom.reportObserved(),new Promise(((t,r)=>{this._library.getAuthenticatedRenditionURL(e,((e,n)=>{e?r(e):t(n)}))}))}setRendition(e,t,r,n){return new Promise(((i,o)=>{this._library.setRendition(e,t,r,n,(e=>e?o(e):i()))}))}removeRendition(e){return this._library.removeRendition(e)}setRenditionFromPath(e,t,r){return new Promise(((n,i)=>{this._library.setRenditionFromPath(e,t,r,(e=>e?i(e):n()))}))}rebindToServer(){return new Promise(((e,t)=>{this._library.rebindToServer((r=>r?t(r):e()))}))}sync(){return new Promise(((e,t)=>{this._library.sync((r=>r?t(r):e()))}))}getValue(e,t){return this._changeAtom.reportObserved(),this._library.getValue(e,t)}setValue(e,t,r,n){return this._library.setValue(e,t,r,n)}linkToDocument(e,t){this._library.linkToDocument(e,t)}getElementsAndDependencies(e){return this._changeAtom.reportObserved(),this._library.getElementsAndDependencies(e.map((e=>e._element))).map(i.Z0)}getActions(e){return this._changeAtom.reportObserved(),this._library.getActions(e)}stageRepresentationForCommit(e){return this._library.stageRepresentationForCommit(e)}load(){return this._library.load()}}).prototype,"_onChangeElements",[s],Object.getOwnPropertyDescriptor(l.prototype,"_onChangeElements"),l.prototype),p(l.prototype,"_onChange",[c],Object.getOwnPropertyDescriptor(l.prototype,"_onChange"),l.prototype),l)},6535:(e,t,r)=>{"use strict";r.d(t,{Z:()=>m});var n,i,o,a,s=r(76485),c=r(50265),l=r(84824),u=r(72150),d=r(80091),p=r(87544),h=r(99386);function f(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let m=(n=c.observable.shallow,i=c.action.bound,o=class extends u.Z{constructor(e){var t;super(),this.isLibraryLoaded=!0,this.isDocumentAssets=!0,this.isWritable=!1,this.disableNonPermanentDelete=!0,this.hideUngroupedSection=!0,this.hideSyncStateFooter=!0,(t=a)&&Object.defineProperty(this,"_elements",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0}),this._pendingChanges={},this._operationCount=0,this._data=e,e.elements&&(this._update(e.elements),delete e.elements)}_update(e=[],t=[],r=[]){if(t.forEach((r=>{const n=this.getElementById(r.id);n?n._update(r):e.push(t)})),e.forEach((e=>{const t=this.getElementById(e.id);t?t._update(e):this._elements.push(new d.Z(e,this))})),r.length){const e={};r.forEach((t=>{e[t.id]=!0})),(t=>{let r=0;for(let n=0;n<t.length;n++){const i=t[n];e[i.id]?p.Z.removeLink(i._link):t[r++]=i}t.length=r})(this._elements)}}_sendPendingChanges(){var e;const t={};Object.values(this._pendingChanges).forEach((({type:e,data:r})=>{t[e]=t[e]||[],t[e].push(r)})),this._pendingChanges={},null===(e=s.Z.sendMessage)||void 0===e||e.call(s.Z,h.Z.DOCUMENT_ASSETS_MESSAGES.SEND_UPDATE,t)}_sendChange(e,t){this._pendingChanges[t.id]={type:e,data:t},0===this._operationCount&&this._sendPendingChanges()}get id(){return this._data.id}get name(){return(0,l.Iu)("DOCUMENT_ASSETS")}get ownership(){return"private"}get elements(){return this._elements}getElementById(e){return this._elements.find((t=>t.id===e))}get elementCount(){return this._elements.length}getFilteredElements(e){return this.elements.filter(e)}getElementsAndDependencies(e){return e}getGroups(){return[]}getGroupCount(){return 0}get gatedUpdates(){return this.elements.filter((e=>e.isPendingUpdate))}updateLinkedAssets(){s.Z.updateLinkedAssets(this.gatedUpdates)}get missingLinks(){return this.elements.filter((e=>{var t;return null===(t=e.link)||void 0===t?void 0:t.isMissingLink}))}get resolvableMissingLinks(){return this.missingLinks.filter((e=>{var t,r;return(null===(t=e.link)||void 0===t?void 0:t.isPendingInvite)||(null===(r=e.link)||void 0===r?void 0:r.isPendingFollow)}))}beginOperation(){this._operationCount++}endOperation(){this._operationCount--,0===this._operationCount&&this._sendPendingChanges()}},a=f(o.prototype,"_elements",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),f(o.prototype,"_update",[i],Object.getOwnPropertyDescriptor(o.prototype,"_update"),o.prototype),f(o.prototype,"elements",[c.computed],Object.getOwnPropertyDescriptor(o.prototype,"elements"),o.prototype),f(o.prototype,"elementCount",[c.computed],Object.getOwnPropertyDescriptor(o.prototype,"elementCount"),o.prototype),f(o.prototype,"gatedUpdates",[c.computed],Object.getOwnPropertyDescriptor(o.prototype,"gatedUpdates"),o.prototype),f(o.prototype,"missingLinks",[c.computed],Object.getOwnPropertyDescriptor(o.prototype,"missingLinks"),o.prototype),f(o.prototype,"resolvableMissingLinks",[c.computed],Object.getOwnPropertyDescriptor(o.prototype,"resolvableMissingLinks"),o.prototype),o)},80091:(e,t,r)=>{"use strict";r.d(t,{Z:()=>P});var n=r(50265),i=r(76485),o=r(99386),a=r(47320);class s{constructor(e,t){this._element=t,this._representation=e}get id(){return this._representation.id}get element(){return this._element}get type(){return this._representation.type}get relationship(){return this._representation.relationship}get width(){return this._representation.width}get height(){return this._representation.height}getValues(){return[]}getValue(){}isCompatibleType(e){return this.type===e}getExternalLinkDownloadProgress(){}getCachedContentPath(){}}var c,l,u,d,p,h,f,m,g,v=r(64662),y=r(87544),b=r(51461),_=r(99049);function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function x(){x=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function L(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function O(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){L(o,n,i,a,s,"next",e)}function s(e){L(o,n,i,a,s,"throw",e)}a(void 0)}))}}function S(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function T(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let P=(c=n.observable.ref,l=n.observable.ref,u=n.observable.ref,d=n.action.bound,p=class extends v.Z{constructor(e,t){super(),S(this,"_data",h,this),S(this,"_link",f,this),S(this,"_representations",m,this),S(this,"_changeCount",g,this),this._isDirty=!1,this._onLinkChange=()=>{try{const e=0===i.Z.apiVersion?JSON.parse(this.linkReference):this.linkReference,t=Object.keys(e);if(1===t.length&&"repo:assetId"===t[0]&&this._link.linkedAsset)return void this.updateLink(!0)}catch(e){}const e=Object.assign({},this._isDirty?this._data:{id:this.id},{$local:this._link.getLocalData()});this._library._sendChange("update",e)},this._library=t,this._update(e)}_updateRepresentations(e){this._representations=e.representations.map((e=>new s(e,this)))}_update(e,t=!1){var r=this;return O(x().mark((function n(){var i,o;return x().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.representations=e.representations||[],i=r._data.linkReference,r._data=e,r._updateRepresentations(e),r._changeCount++,r._isDirty=t,!r._updateLock){n.next=9;break}return n.next=9,r._updateLock;case 9:if(o=function(){var e=O(x().mark((function e(t){var n;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r._updateLock=new Promise((e=>n=e)),e.next=4,t();case 4:return e.abrupt("return",e.sent);case 5:return e.prev=5,delete r._updateLock,n(),e.finish(5);case 9:case"end":return e.stop()}}),e,null,[[0,,5,9]])})));return function(t){return e.apply(this,arguments)}}(),i||!e.linkReference){n.next=16;break}return r._link={linkStatus:"UpToDate",isNormalLinkState:!0,linkReference:e.linkReference},n.next=14,o(O(x().mark((function t(){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,y.Z.addLink(e.linkReference);case 2:r._link=t.sent,r._link.on("change",r._onLinkChange),r._onLinkChange();case 5:case"end":return t.stop()}}),t)}))));case 14:n.next=25;break;case 16:if(!i||e.linkReference){n.next=22;break}y.Z.removeLink(r._link),r._link.off("change",r._onLinkChange),r._link=void 0,n.next=25;break;case 22:if(_.Z.areReferencesEqual(e.linkReference,i)){n.next=25;break}return n.next=25,o((()=>r._link.update(e.linkReference)));case 25:case"end":return n.stop()}}),n)})))()}get id(){return this._data.id}get type(){return this._data.type}get changeCount(){return i.Z.previewingAsset===this?-1:this._changeCount}get modified(){return this._data.modified}get created(){return this._data.created}get name(){return this._data.name}get library(){return this._library}get dependencies(){return[]}get disableRename(){return this.isLinked}getGroups(){return[]}get representations(){return this._representations}getPrimaryRepresentation(){return this._representations.find((e=>"primary"===e.relationship))}_getLinkedAssetRenditionURL(e){const t=this.linkedAsset;if(t)return this._link.getRenditionURL(e)+`&cb=${encodeURIComponent(t.etag)}`}getThumbnailURL(e){var t=this;return O(x().mark((function r(){return x().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i.Z.previewingAsset!==t){r.next=2;break}return r.abrupt("return",t._getLinkedAssetRenditionURL(e));case 2:return r.abrupt("return",new Promise(((e,r)=>{const i=setTimeout((()=>{o(),r("timeout")}),2e3),o=(0,n.when)((()=>t._data.renditionURL),(()=>{clearTimeout(i),e(t._data.renditionURL)}))})));case 3:case"end":return r.stop()}}),r)})))()}get linkReference(){return this._data.linkReference}get link(){return this._link}get isLinked(){return!!this._link}get linkType(){var e;return null===(e=this._link)||void 0===e?void 0:e.type}get linkState(){var e;return this.isSyncing?o.Z.ASSET_LINK_STATES.SYNCING:null===(e=this._link)||void 0===e?void 0:e.linkStatus}get isNormalLinkState(){var e;return null===(e=this._link)||void 0===e?void 0:e.isNormalLinkState}get isPendingUpdate(){var e;return null===(e=this._link)||void 0===e?void 0:e.isPendingUpdate}get isMissingLink(){var e;return null===(e=this._link)||void 0===e?void 0:e.isMissingLink}get isRestricted(){var e;return null===(e=this._link)||void 0===e?void 0:e.isRestricted}get isSyncing(){var e;return!!this._data.isSyncing||(null===(e=this._link)||void 0===e?void 0:e.isSyncing)}get linkedAsset(){var e;return null===(e=this._link)||void 0===e?void 0:e.linkedAsset}relinkToDocument(){}get canRelink(){return!1}getReference(){return this.getLegacyReference()}getLegacyReference(){return`${i.Z.cloudAssetId||this.library.id}#id=${this.id}`}getActions(){return[]}get additionalMenuItems(){return this._data.actions&&this._data.actions.length?this._data.actions.map((e=>({label:e.name,enableMenu:!e.disabled,onClick:()=>{b.ZP.reportElementEvent("Element Operations","Element","click",e.id,this,{event:{value:"single",count:1},content:{category:"Right Click"}}),i.Z.sendMessage(e.messageType,e.messagePayload)}}))):[]}updateLink(e=!1){var t=this;return O(x().mark((function r(){var n,i,o,s,c,l,u,d;return x().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.isPendingUpdate){r.next=2;break}return r.abrupt("return");case 2:n=t._link.getLocalData(),i=n.linkedAsset,o=/^(.*?)(?:\.\w+)?$/.exec(i.name)||[],s=E(o,2),c=s[1],l=i.linkReference,(u=Object.assign({},t._data,{linkReference:l,name:c,modified:e?t._data.modified:Date.now(),renditionURL:t._getLinkedAssetRenditionURL(a.Z.getThumbnailSize(t))})).representations.length&&((d=u.representations[0]).contentURL=t._link.primaryContentURL,d.contentURL||(d.content=t._link.primaryContent),delete d.width,delete d.height),t._update(u,!0);case 8:case"end":return r.stop()}}),r)})))()}},h=T(p.prototype,"_data",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{representations:[]}}}),f=T(p.prototype,"_link",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=T(p.prototype,"_representations",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),g=T(p.prototype,"_changeCount",[n.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),T(p.prototype,"_update",[d],Object.getOwnPropertyDescriptor(p.prototype,"_update"),p.prototype),T(p.prototype,"linkedAsset",[n.computed],Object.getOwnPropertyDescriptor(p.prototype,"linkedAsset"),p.prototype),T(p.prototype,"updateLink",[n.action],Object.getOwnPropertyDescriptor(p.prototype,"updateLink"),p.prototype),p)},99049:(e,t,r)=>{"use strict";r.d(t,{Z:()=>m});var n,i,o,a=r(5939),s=r.n(a),c=r(50265),l=r(33275),u=r(99386),d=r(76485);function p(){p=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function h(){}function f(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(O([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=f,s(y,"constructor",f),s(f,"constructor",h),h.displayName=s(f,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function h(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function f(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let m=(n=c.observable.ref,i=class extends(s()){static areReferencesEqual(e,t){return 0!==d.Z.apiVersion&&e&&t?JSON.stringify(e,Object.keys(e).sort())===JSON.stringify(t,Object.keys(t).sort()):e===t}constructor(e){var t;super(),(t=o)&&Object.defineProperty(this,"_link",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0}),this._onChange=()=>this.emit("change"),this._link=e,this._link.on("change",this._onChange)}dispose(){this._link.off("change",this._onChange)}get linkReference(){var e;return null===(e=this._link)||void 0===e?void 0:e.getAssetLinkRef()}get isSyncing(){return this.linkStatus===u.Z.SAM_LINK_STATES.NORMAL&&!this.linkedAsset}get isNormalLinkState(){return this.linkStatus===u.Z.SAM_LINK_STATES.NORMAL}get isPendingUpdate(){return this.linkStatus===u.Z.SAM_LINK_STATES.PENDING_UPDATE||this.linkStatus===u.Z.SAM_LINK_STATES.PENDING_METADATA_UPDATE}get isMissingLink(){return this.linkStatus===u.Z.SAM_LINK_STATES.DISCARDED||this.linkStatus===u.Z.SAM_LINK_STATES.BROKEN||this.linkStatus===u.Z.SAM_LINK_STATES.RESTRICTED}get isRestricted(){return this.linkStatus===u.Z.SAM_LINK_STATES.RESTRICTED}get linkStatus(){var e;const t=null===(e=this._link)||void 0===e?void 0:e.linkStatus;return t===u.Z.SAM_LINK_STATES.PENDING_METADATA_UPDATE?u.Z.SAM_LINK_STATES.NORMAL:t}get linkedAsset(){var e;return null===(e=this._link)||void 0===e?void 0:e.adobeAsset}getNewLinkRef(){const e=this._getNewLinkRef();return 0===d.Z.apiVersion?JSON.stringify(e,Object.keys(e).sort()):e}get permission(){const e=u.Z.SAM_PERMISSIONS;return[e.EDIT,e.VIEW,e.ACK,e.NONE].find((e=>{var t;const r=u.Z.SAM_LEGACY_PERMISSIONS_MAP[e]||e;return null===(t=this.linkedAsset)||void 0===t?void 0:t.hasPermission(r)}))}getLocalData(){const e=this.linkedAsset,t=e&&{"repo:assetId":e.cloudID,"repo:repositoryId":e.repositoryID,resource:this._resource,name:e.name,linkReference:this.getNewLinkRef(),permission:this.permission,_links:e.links};return{linkState:this.linkStatus,linkedAsset:t}}getRenditionURL(e){var t;return null===(t=this.linkedAsset)||void 0===t?void 0:t.getRenditionURL(e)}get primaryContentURL(){var e,t,r;return null===(e=this.linkedAsset)||void 0===e||null===(t=e.links)||void 0===t||null===(r=t["http://ns.adobe.com/adobecloud/rel/primary"])||void 0===r?void 0:r.href}get primaryContent(){var e,t;return null===(e=this.linkedAsset)||void 0===e||null===(t=e.embedded)||void 0===t?void 0:t["http://ns.adobe.com/adobecloud/rel/primary"]}update(e){var t,r=this;return(t=p().mark((function t(){var n;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&r._link){t.next=2;break}return t.abrupt("return");case 2:return e=l.P6.parseLinkReference(e),t.abrupt("return",null===(n=r._link)||void 0===n?void 0:n.updateWithLinkRef(e));case 4:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){h(o,n,i,a,s,"next",e)}function s(e){h(o,n,i,a,s,"throw",e)}a(void 0)}))})()}get _resource(){return{reltype:"http://ns.adobe.com/adobecloud/rel/primary"}}_getNewLinkRef(){var e;return null===(e=this._link)||void 0===e?void 0:e.getNewAssetLinkRef(this.linkedAsset)}get assetId(){return this.linkReference["repo:assetId"]}get repositoryId(){return this.linkReference["repo:repositoryId"]}get documentId(){return this.linkReference["stRef:documentID"]}get name(){return this.linkReference["repo:name"]}get type(){return this.linkReference["dc:format"]}get instanceId(){return this.linkReference["stRef:instanceID"]}get fragmentIdentifier(){return this.linkReference["stRef:fromPart"]}get fragmentName(){return this.linkReference["stRef:fromPartName"]}get fragmentInstanceId(){return this.linkReference["stRef:fromPartInstanceID"]}get sourceRef(){return this.linkReference["stRef:fromPartDerivedFrom"]}},o=f(i.prototype,"_link",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f(i.prototype,"linkReference",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"linkReference"),i.prototype),f(i.prototype,"permission",[c.computed],Object.getOwnPropertyDescriptor(i.prototype,"permission"),i.prototype),i)},69377:(e,t,r)=>{"use strict";r.d(t,{zA:()=>Z,Ir:()=>K,kN:()=>P,ZS:()=>M,z9:()=>V,fs:()=>X,zF:()=>S,LK:()=>E,ij:()=>w,T9:()=>h,_x:()=>F,pQ:()=>W,R6:()=>R,r1:()=>z,uf:()=>I,V8:()=>A,GT:()=>$,gh:()=>j,M5:()=>Y,Ar:()=>T,Z0:()=>N,Lj:()=>H,mK:()=>q,$H:()=>O}),r(76485),r(99386),r(72373);var n=r(50265),i=r(46931);class o{constructor(e){this._onChange=()=>{this._changeAtom.reportChanged()},this._onSyncChange=()=>{const e=this._representation.getExternalLinkDownloadProgress();this._lastExternalLinkDownloadProgress!==e&&(this._lastExternalLinkDownloadProgress=e,this._syncAtom.reportChanged())},this._representation=e,this._changeAtom=new n.Atom("representationChange",(()=>!this._representation.isDeletedLocally&&this._representation.element.on("change",this._onChange)),(()=>this._representation.element.off("change",this._onChange)));const t=i.Z.libraryManager.dangerouslyAccessCCLibraries();this._syncAtom=t._syncAtom}get id(){return this._representation.id}get element(){return N(this._representation.element)}get isWritable(){return this._representation.isWritable}get type(){return this._representation.type}get relationship(){return this._representation.relationship}set relationship(e){this._representation.relationship=e}get width(){return this._representation.width}set width(e){this._representation.width=e}get height(){return this._representation.height}set height(e){this._representation.height=e}get isFullSize(){return this._representation.isFullSize}set isFullSize(e){this._representation.isFullSize=e}get isPreferredThumbnail(){return this._representation.isPreferredThumbnail}set isPreferredThumbnail(e){this._representation.isPreferredThumbnail=e}get contentLength(){return this._representation.contentLength}set contentLength(e){this._representation.contentLength=e}get isDeletedLocally(){return this._representation.isDeletedLocally}get isExternalLink(){return this._representation.isExternalLink}get children(){return this._changeAtom.reportObserved(),this._representation.children.map(O)}get isCommitted(){return this._changeAtom.reportObserved(),this._representation.isCommitted}get committed(){return new Promise((e=>(0,n.when)((()=>this.isCommitted),e)))}isCompatibleType(e){return this._representation.isCompatibleType(e)}getValue(e,t){return this._representation.getValue(e,t)}getValues(){return this._representation.getValues()}setValue(e,t,r,n){this._representation.setValue(e,t,r,n)}setContent(e,t,r,n={}){return this._representation.setContent(e,t,r,n)}setContentFromPath(e,t){return this._representation.setContentFromPath(e,t)}setStagedContent(e){return this._representation.setStagedContent(e)}setContentFromURL(e,t,r){return this._representation.setContentFromURL(e,t,r)}getContentPath(){return this._representation.getContentPath()}getCachedContentPath(){return this._changeAtom.reportObserved(),this._representation.getCachedContentPath()}getContent(){return this._representation.getContent()}getContentURL(){return this._representation.getContentURL()}getAuthenticatedContentURL(){return this._representation.getAuthenticatedContentURL()}testExternalLink(){return new Promise(((e,t)=>{this._representation.testExternalLink(((r,n)=>r?t(r):e(n)))}))}clearCachedExternalLink(){return this._representation.clearCachedExternalLink()}getCachedExternalLinkError(){return this._changeAtom.reportObserved(),this._representation.getCachedExternalLinkError()}getExternalLinkDownloadProgress(){return this._syncAtom.reportObserved(),this._representation.getExternalLinkDownloadProgress()}createChild(e){return O(this._representation.createChild(e))}removeChild(e){this._representation.removeChild(e._representation),I(e)}}var a=r(44853),s=r(90459),c=r(30949);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const p={},h=e=>Object.keys(e).forEach((t=>p[t]=e[t]));let f,m,g={},v={},y={},b={},_={};const E=()=>{f=void 0,m=void 0,g={},v={}},w=()=>{y={},_={},b={}},x=(e,t,r)=>{if(!e)return;const n=e.element,i=n.id,o=n.library,a=o.documentId||o.id,s=e.id,c=t[a]=t[a]||{};c[i]=c[i]||{};const l=c[i].representationsById=c[i].representationsById||{};return l[s]&&l[s]._representation===e||(l[s]=new r(e)),l[s]},L=(e,t)=>{if(!e)return;const r=t[e.library.documentId||e.library.id],n=r&&r[e.id],i=n&&n.representationsById;if(i){const t={};e.representations.forEach((e=>t[e.id]=i[e.id])),n.representationsById=t}},O=e=>x(e,g,o),S=e=>L(e,g),T=e=>x(e,y,p.DocumentRepresentation),P=e=>L(e,y),I=e=>{const t=e&&e.element,r=t&&t.library,n=r&&g[r.documentId||r.id],i=n&&n[t.id]&&n[t.id].representationsById;i&&delete i[e.id]},A=e=>{const t=e&&e.library,r=t&&g[t.documentId||t.id],n=r&&r[e.id];n&&delete n.representationsById},C=(e,t,r)=>{if(!e)return;const n=e.library.documentId||e.library.id,i=t[n]=t[n]||{},o=e.id;return i[o]=i[o]||{},i[o].element&&i[o].element._element===e||(i[o].element=new r(e)),i[o].element},k=(e,t)=>{if(!e)return;const r=t[e.library.documentId||e.library.id];r&&delete r[e.id]},D=(e,t)=>{if(!e)return;const r=e.documentId||e.id,n=t[r];if(n){const i={};e.elements.forEach((e=>i[e.id]=n[e.id])),t[r]=i}},N=e=>C(e,g,a.Z),R=e=>k(e,g),M=e=>D(e,g),j=e=>C(e,y,p.DocumentElement),F=e=>k(e,y),Z=e=>D(e,y),B=(e,t,r)=>{if(!e)return;const n=e.library,i=n.documentId||n.id,o=t[i]=t[i]||{},a=e.id;return o[a]&&o[a]._group===e||(o[a]=new r(e)),o[a]},G=(e,t)=>{if(!e)return;const r=e.library,n=t[r.documentId||r.id];n&&delete n[e.id]},U=(e,t)=>{if(!e)return;const r=e.documentId||e.id,n=t[r];if(n){const i={};e.getGroups().forEach((e=>i[e.id]=n[e.id])),t[r]=i}},H=e=>B(e,v,s.Z),z=e=>G(e,v),V=e=>U(e,v),Y=e=>B(e,_,p.DocumentGroup),W=e=>G(e,_),K=e=>U(e,_),$=e=>{if(!e)return;const t=e.documentId;return b[t]&&b[t]._library===e||(b[t]=new p.DocumentAssetsContainer(e)),b[t]},q=e=>{if(!e)return;const t=e.id,r=f=f||{},n=m=m||new Map;if(n.has(e)&&(r[t]=n.get(e)),!r[t]||r[t]._library!==e){const i=new c.Z(e);n.set(e,i),r[t]=i}return r[t]},X=()=>{const e=f,t=m;if(e&&t){const o={},a=new Map,s=i.Z.libraryManager.dangerouslyAccessCCLibraries();Object.entries(f).forEach((([e,t])=>{t&&!t.isMockBoundToCCLibraries&&(o[e]=t)}));var r,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=u(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(m.entries());try{for(n.s();!(r=n.n()).done;){const e=l(r.value,2),t=e[0],n=e[1];t.isMockBoundToCCLibraries||a.set(t,n)}}catch(e){n.e(e)}finally{n.f()}s._ccLibraries.libraries.forEach((r=>{o[r.id]=e[r.id],a.set(r,t.get(r))})),f=o,m=a}}},90543:(e,t,r)=>{var n;window.performance&&window.performance.mark("ccac:libraries-panel:eval:begin");const i=r(89368).basename,o=r(41616),a=o.init,s=o.makeBrowserOfflineTransport,c=o.makeFetchTransport,l=r(38682),u=(l.CaptureConsole,l.RewriteFrames),d=r(51548).inferEnvironment,p=/(?!.*sentry.*).*libraries.*/,h=[new u({iteratee:e=>{var t;const r=(null===(t=e.filename)||void 0===t?void 0:t.toLowerCase())||"",n=!r.match(/.jsx?$/);return e.in_app=!n&&p.test(r),e.filename=`/${i(e.filename)}`,e}})];a({environment:d({version:"4.11.88",hostname:null===(n=window)||void 0===n?void 0:n.location.hostname,environment:"production"}),dsn:"https://cf682462403b43869f5daeeee58f9d45@o1383653.ingest.sentry.io/4504000583761920",release:"cc-libraries-panel@4.11.88",tracesSampleRate:1,integrations:h,ignoreErrors:[/Failed to fetch/],transport:s(c),beforeBreadcrumb(e,t){var r,n,i;if("ui.click"===e.category&&t&&null!==(r=t.event)&&void 0!==r&&null!==(n=r.target)&&void 0!==n&&null!==(i=n.dataset)&&void 0!==i&&i.testId&&(e.message=e.message+`[test-id=${t.event.target.dataset.testId}]`),("xhr"===e.category||"fetch"===e.category)&&t){var o,a,s,c;const r=(null===(o=t.xhr)||void 0===o||null===(a=o._cdtXHR)||void 0===a?void 0:a.headers)||Object.fromEntries((null===(s=t.response)||void 0===s||null===(c=s.headers)||void 0===c?void 0:c.entries())||[])||{};e.data["x-request-id"]=r["X-Request-Id"]||r["x-request-id"]}return e},beforeSend(e){var t,r,n;if(e.exception&&!((null===(r=e.exception.values[0])||void 0===r||null===(n=r.stacktrace)||void 0===n?void 0:n.frames)||[]).some((e=>e.in_app)))return null;const i=null===(t=e.message)||void 0===t?void 0:t.toLowerCase();return"error"===e.level||null!=i&&i.includes("reactjs.org")||null!=i&&i.includes("fb.me")||null!=i&&i.includes("failed prop type")?e:null}})},70403:(e,t,r)=>{"use strict";r.d(t,{Z:()=>I});var n,i,o,a,s,c,l,u,d,p,h=r(50265),f=r(75067),m=r(31600),g=r(72373),v=r(99386),y=r(20290),b=r(30131),_=r(51461),E=r(31870),w=r(36351),x=r(43393);function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function S(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const T=(e,t,r,n,i)=>(0,m.WY)(t,r,n,i,v.Z.STOCK_SEARCH_RESULT_SIZE,!0).then((t=>[e,t])).catch((t=>Promise.reject([e,t]))),P=(0,y.Ds)(200,T);let I=(n=h.observable.ref,i=h.action.bound,o=h.action.bound,a=h.action.bound,s=h.action.bound,c=class extends x.Z{constructor(...e){super(...e),O(this,"_isLoading",l,this),O(this,"_searchResults",u,this),O(this,"_hasSearchFailed",d,this),O(this,"_isOnLine",p,this),this._currentSearchContext=0}get isLoading(){return this._isLoading}get searchResults(){return this._searchResults}get searchResultsCount(){return this._searchResults.length}get hasSearchFailed(){return this._hasSearchFailed}get isOnLine(){return this._isOnLine}get findSimilarData(){return this.viewState.getFindSimilarData()}get filterTypeOptions(){return E.Tu()}init(){var e,t=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return L(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?L(e,t):void 0}}(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(this.viewState.getStockSearchOptionValuesArray());try{for(t.s();!(e=t.n()).done;){const t=e.value;this._searchTypeOptions.set(t,!0)}}catch(e){t.e(e)}finally{t.f()}window.addEventListener("online",this._handleOnLineTransition),window.addEventListener("offline",this._handleOnLineTransition)}search(e=!0){if(!this.viewState.isStockSearchMode())return;this._isLoading=!0,this._hasSearchFailed=!1,this._searchResults=[],this._currentSearchContext=this._currentSearchContext+1;const t=f.ZP.userId,r=this.viewState.getSearchText(),n=this.viewState.getFindSimilarData();(e?P:T)(this._currentSearchContext,t,r,n,this._searchTypeOptions.toJS()).then(this._handleSearchSuccess).catch(this._handleSearchFailure)}_handleSearchSuccess([e,t]){e===this._currentSearchContext&&this.viewState.isStockSearchMode()&&(t.forEach((e=>e.thumbnail_url=e.thumbnail_url?`${e.thumbnail_url}?_uncache=${Math.random()}`:"")),0===t.length&&_.ZP.reportStockEvent("Search","render","no-results"),this._searchResults=t,this._isLoading=!1)}_handleSearchFailure([e,t]){e===this._currentSearchContext&&this.viewState.isStockSearchMode()&&(_.ZP.reportStockEvent("Search","render","error",{event:{error_code:t}}),this._isLoading=!1,this._hasSearchFailed=!0)}_handleOnLineTransition(){this._isOnLine=w.Z.isOnline}dispose(){window.removeEventListener("online",this._handleOnLineTransition),window.removeEventListener("offline",this._handleOnLineTransition)}setSearchOption(e,t){t&&this.clearFilters(),this._searchTypeOptions.set(e,t),this._persistSearchOptions(this._searchTypeOptions),_.ZP.reportStockEvent("Search","click",t?"add-filter":"remove-filter",{ui:{filter:e}}),this.search(!1)}_persistSearchOptions(e){const t=Array.from(e.entries()).filter((([,e])=>e)).map((([e])=>e));g.Z.setValue("searchOptionValues",t)}searchOnWeb(){const e=(this.findSimilarData||{}).id;e?(0,b.TZ)(e,this._searchTypeOptions.toJS()):(0,b.v7)(this.viewState.getSearchText(),this._searchTypeOptions.toJS())}clearFilters(){super.clearFilters(),this.search()}},l=S(c.prototype,"_isLoading",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),u=S(c.prototype,"_searchResults",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),d=S(c.prototype,"_hasSearchFailed",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),p=S(c.prototype,"_isOnLine",[h.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return w.Z.isOnline}}),S(c.prototype,"init",[h.action],Object.getOwnPropertyDescriptor(c.prototype,"init"),c.prototype),S(c.prototype,"search",[i],Object.getOwnPropertyDescriptor(c.prototype,"search"),c.prototype),S(c.prototype,"_handleSearchSuccess",[o],Object.getOwnPropertyDescriptor(c.prototype,"_handleSearchSuccess"),c.prototype),S(c.prototype,"_handleSearchFailure",[a],Object.getOwnPropertyDescriptor(c.prototype,"_handleSearchFailure"),c.prototype),S(c.prototype,"_handleOnLineTransition",[s],Object.getOwnPropertyDescriptor(c.prototype,"_handleOnLineTransition"),c.prototype),S(c.prototype,"setSearchOption",[h.action],Object.getOwnPropertyDescriptor(c.prototype,"setSearchOption"),c.prototype),c)},53849:(e,t,r)=>{"use strict";r.d(t,{Z:()=>x});var n,i,o,a,s,c,l,u,d,p=r(50265),h=r(75067),f=r(86351),m=r(16993),g=r(90459),v=r(99386),y=r(76485),b=r(69233);function _(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function E(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const w=[v.Z.ROLE_LOGO],x=new(n=p.observable.ref,i=p.observable.ref,o=p.observable.ref,a=p.observable.ref,c=E((s=class{constructor(){this._listenerManager=(0,f.N)(),_(this,"_selectedElements",c,this),_(this,"_itemPendingScroll",l,this),_(this,"_focusedElement",u,this),_(this,"_disableScrollEasing",d,this),this._getElementSection=e=>{var t,r;const n=e.roles,i=e.type;return"role"===m.Z.viewByState&&n.length&&null!==(t=null===(r=n.find((e=>w.includes(e.usage))))||void 0===r?void 0:r.usage)&&void 0!==t?t:i}}isSelected(e){return this.selection.includes(e)}isFocused(e){return this._focusedElement===e}get selection(){return m.Z.isRemovedElementsMode()?this._selectedElements.filter((e=>!e.isDeletedLocally&&e.removed)):this._selectedElements.filter((e=>!e.isDeletedLocally&&!e.removed))}get _allElements(){if(m.Z.isSearchMode()||m.Z.isDocumentSearchType()||m.Z.librariesSearchState.hasSelectedTypeFilters)return m.Z.librariesSearchState.searchResults;const e=this.selection[0].library;return m.Z.isRemovedElementsMode()?e.removedElements:e.elements}get _allElementsInViewOrder(){return m.Z.isGroupView()&&!m.Z.librariesSearchState.hasSelectedTypeFilters?m.Z.getLibraryElementsInViewOrder(this.selection[0].library):m.Z.getElementsInViewOrder(this._allElements)}setItemPendingScroll(e){this._itemPendingScroll=e}ensureSelection(e){e&&!this.selection.includes(e)&&this.setSelection(e)}setFocusedElement(e,t=!1){this._focusedElement=e,t&&(this._itemPendingScroll=e)}setSelection(e,t=!1,r=!0){const n=e=>{if(["type","role"].includes(m.Z.viewByState)){const t=this._getElementSection(e);m.Z.setTypeCollapsed(t,!1)}else{const t=e.getGroups()[0];if(!t)return;const r=[...(0,b._y)(t),t];if(!r.length)return;r.forEach((e=>m.Z.setGroupCollapsed(e.id,!1)))}},i=()=>{y.Z.setHeader&&y.Z.setHeader()};if(e=e||[],Array.isArray(e))return this._selectedElements=e,delete this._lastSelectedElement,t&&(e=m.Z.getElementsInViewOrder(e),this._itemPendingScroll=e[0]),r&&e.forEach(n),void i();r&&n(e),this._selectedElements=[e],this._lastSelectedElement=e,this._lastSelectedElementWithShift=void 0,this._focusedElement=void 0,i(),t&&(this._itemPendingScroll=e)}setSelectionRange(e,t=!1,r=!1,n=!0){if(0===this.selection.length)return void this.setSelection(e);const i=this._allElementsInViewOrder;let o;const a=i.indexOf(e),s=this.selection.map((e=>i.indexOf(e))).reduce(((e,t)=>Math.max(e,t)),0);if(r){const e=this.selection.map((e=>i.indexOf(e))).reduce(((e,t)=>Math.min(e,t)),i.length-1);o=a<e?s:e}else o=this._lastSelectedElement?i.indexOf(this._lastSelectedElement):s;this._selectedElements=a<o?i.slice(a,o+1):i.slice(o,a+1),n&&this.selection.forEach((e=>{m.Z.isElementSectionCollapsed(e)&&m.Z.setTypeCollapsed(e.type,!1)})),this._lastSelectedElementWithShift=e,t&&(this._itemPendingScroll=e)}clearSelection(e){0!==this.selection.length&&(this._selectedElements=e?this.selection.filter((t=>!e.includes(t))):[],this._lastSelectedElementWithShift=void 0,this._focusedElement=void 0,delete this._lastSelectedElement)}toggleSelection(e){e&&(this.isSelected(e)?(this._selectedElements=this.selection.filter((t=>t!==e)),this._lastSelectedElement=void 0):(this._selectedElements=this.selection.concat([e]),this._lastSelectedElement=e),this._focusedElement=void 0)}revealElements(e){if(!e||!e.length)return;const t=e[0].library;e.every((e=>e.library===t))&&(!t.isDocumentAssets&&m.Z.isDocumentSearchType()&&m.Z.setSearchType("library"),m.Z.resetMode(),h.ZP.currentLibrary=t,setTimeout((()=>{this.setSelection(e,!0)}),y.Z.hasUXPRevealElementBug?500:0))}revealElement(e){if(e)return this.revealElements([e])}revealGroup(e,t=!1){e&&(m.Z.setCurrentSection(e.id||e),this.setItemPendingScroll(e),(0,b._y)(e,!0).forEach((e=>{m.Z.isGroupCollapsed(e.id)&&m.Z.setGroupCollapsed(e.id,!1)})),t&&(this._disableScrollEasing=!0,setTimeout((()=>{this._disableScrollEasing=!1}),0)))}get itemPendingScroll(){return this._itemPendingScroll}get lastSelectedElementWithShift(){return this._lastSelectedElementWithShift}get currentFocusedElement(){return this._focusedElement}clearItemPendingScroll(){this._itemPendingScroll=void 0}get scrollToAlignment(){return(this._itemPendingScroll instanceof g.Z||this._itemPendingScroll===v.Z.UNGROUPED_GROUP||"string"==typeof this._itemPendingScroll)&&v.Z.currentProduct.config.groupScrollAlignment||"auto"}addSelectionChangedListener(e){return(0,p.reaction)((()=>this.selection),(t=>{e(t)}))}get shouldEaseScrolling(){return!this._disableScrollEasing}}).prototype,"_selectedElements",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),l=E(s.prototype,"_itemPendingScroll",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=E(s.prototype,"_focusedElement",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=E(s.prototype,"_disableScrollEasing",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E(s.prototype,"selection",[p.computed],Object.getOwnPropertyDescriptor(s.prototype,"selection"),s.prototype),E(s.prototype,"_allElements",[p.computed],Object.getOwnPropertyDescriptor(s.prototype,"_allElements"),s.prototype),E(s.prototype,"_allElementsInViewOrder",[p.computed],Object.getOwnPropertyDescriptor(s.prototype,"_allElementsInViewOrder"),s.prototype),E(s.prototype,"scrollToAlignment",[p.computed],Object.getOwnPropertyDescriptor(s.prototype,"scrollToAlignment"),s.prototype),E(s.prototype,"shouldEaseScrolling",[p.computed],Object.getOwnPropertyDescriptor(s.prototype,"shouldEaseScrolling"),s.prototype),s)},10440:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p});var n,i,o,a=r(50265),s=r(86351),c=r(69233),l=r(16993),u=r(53849);function d(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const p=new(n=a.observable.ref,o=d((i=class{constructor(){var e;this._listenerManager=(0,s.N)(),(e=o)&&Object.defineProperty(this,"_selectedGroups",{enumerable:e.enumerable,configurable:e.configurable,writable:e.writable,value:e.initializer?e.initializer.call(this):void 0})}isSelected(e){return!!this.groupSelection.find((t=>t===e))}setSelection(e,t=!0){if(!e)return;this.groupSelection.length>0&&this.clearSelection();const r=t?(0,c.xF)(e,!0):[e];this._selectedGroups=this.groupSelection.concat(r)}setSelectionRange(e){0===this.groupSelection.length&&this.setSelection(e);const t=l.Z.groupsInViewOrder,r=t.indexOf(e);let n=this.groupSelection.map((e=>t.indexOf(e))).reduce(((e,t)=>Math.max(e,t)),0);r>n&&(n=t.indexOf(this.groupSelection[0])),this._selectedGroups=r<n?t.slice(r,n+1):t.slice(n,r+1)}clearSelection(e){this._selectedGroups=e?this._selectedGroups.filter((t=>!e.includes(t))):[]}toggleSelection(e){const t=(0,c.xF)(e,!0);this.isSelected(e)?this._selectedGroups=this.groupSelection.filter((e=>!t.includes(e))):this._selectedGroups=this.groupSelection.concat([...t.filter((e=>!this.groupSelection.includes(e)))])}get groupSelection(){const e=this._selectedGroups[0];return e&&!e.library.getGroups().length?[]:this._selectedGroups.filter((e=>!e.isDeletedLocally))}getSelectionCommonAncestor(){const e=this.groupSelection,t=u.Z.selection;if(!e.length&&1===t.length)return t[0].getGroups()[0];const r=!e.length&&t.length?t:e;return r.length?(0,c.Q_)(r):void 0}findHighestSelectedGroups(){return this.groupSelection.filter((e=>!e.parent||!(0,c._y)(e).find((e=>this.isSelected(e)))))}}).prototype,"_selectedGroups",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),d(i.prototype,"groupSelection",[a.computed],Object.getOwnPropertyDescriptor(i.prototype,"groupSelection"),i.prototype),i)},16993:(e,t,r)=>{"use strict";r.d(t,{Z:()=>le});var n,i,o,a,s,c,l,u,d=r(99386),p=r(47320),h=r(72373),f=r(76485),m=r(34038),g=r(86351),v=r(84824),y=r(75067),b=r(50265),_=r(53849),E=r(10440),w=r(51461),x=r(70403),L=r(43393),O=r(69233),S=r(10441),T=r(44914);function P(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function I(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let A=(n=b.observable.ref,i=b.action.bound,o=b.computed.equals(((e,t)=>e.elements===t.elements&&e.count===t.count)),a=b.computed.equals(((e,t)=>e.elements===t.elements&&e.count===t.count)),s=class extends L.Z{constructor(...e){super(...e),P(this,"searchLoader",c,this),P(this,"_loaderSearchResults",l,this),P(this,"visibleResultsLimit",u,this)}resetSearchLoader(){this.searchLoader&&(this.searchLoader.abort(),this.resultsReaction&&this.resultsReaction(),this.completeReaction&&this.completeReaction(),this.visibleResultsLimit=void 0,this._loaderSearchResults=void 0)}search(){if(this.viewState.isSearchMode()&&this.viewState.isStockSearchMode())return;const e=this.viewState.getSearchText(),t={},r={sectionType:"type",sections:p.Z.getElementTypes(),field:"name"===this.viewState.elementSearchSort?"name":"modifiedDate",direction:"name"===this.viewState.elementSearchSort?"ascending":"descending"};(this.viewState.isLibrarySearchMode()||this._isDocumentSearch)&&y.ZP.currentLibrary&&(t.library_id=y.ZP.currentLibrary.id),this.resetSearchLoader(),e&&(this.searchLoader=y.ZP.getSearchResults(e,t,r,this.viewState),this.resultsReaction=(0,b.reaction)((()=>this.searchLoader.results.length),(()=>{this._loaderSearchResults=this.searchLoader.results,this.setVisibleResultsCursor()})),this.completeReaction=(0,b.reaction)((()=>this.searchLoader.isComplete),(()=>this.seachCompleteHandler())))}seachCompleteHandler(){this.visibleResultsLimit=void 0}setVisibleResultsCursor(){const e="name"===this.viewState.elementSearchSort?"name":"modified",t=this.searchLoader.results[this.searchLoader.results.length-1];t&&(this.visibleResultsLimit={orderedValue:t[e],type:t.type,name:t.name})}get isLoading(){return this.viewState.isSearchMode()&&(!this.searchLoader||!this.searchLoader.isComplete)}get elementTypeOrder(){return p.Z.getElementTypes()}get visibleSearchResults(){const e=this._matchingElements.elements;if(!this.isLoading)return{elements:e,count:e.length};const t=e.filter((e=>{if(!this.visibleResultsLimit)return!1;const t=this.elementTypeOrder.indexOf(e.type)<this.elementTypeOrder.indexOf(this.visibleResultsLimit.type),r="name"===this.viewState.elementSearchSort?e[this.viewState.elementSearchSort]<=this.visibleResultsLimit.orderedValue:e[this.viewState.elementSearchSort]>=this.visibleResultsLimit.orderedValue,n=e.type===this.visibleResultsLimit.type;return t||r&&n}));return{elements:t,count:t.length}}get _matchingElements(){if(this._loaderSearchResults)return{elements:this._loaderSearchResults,count:this._loaderSearchResults.length};const e=y.ZP.currentLibrary;if((this._isDocumentSearch||e&&!this._isSearchMode)&&(0,S.fs)(this.viewState.getSearchText())){const t=(this._isDocumentSearch?y.ZP.documentAssetsContainer:e).elements;return{elements:t,count:t.length}}const t=(this.viewState.isLibrariesSearchMode()?y.ZP.searchableLibraries:[e]).filter((e=>e)),r=(0,S.OX)(this.viewState.getSearchText(),t);return{elements:r,count:r.length}}get _isDocumentSearch(){return this.viewState.isDocumentSearchType()}get _isSearchMode(){return this.viewState.isSearchMode()}get _searchResultsTypes(){const e={};return this.visibleSearchResults.elements.forEach((t=>e[t.type]=!0)),Object.keys(e)}get _searchResultsLibraries(){const e={};return this.visibleSearchResults.elements.forEach((t=>{t.library.isDocumentAssets||(e[t.library.id]=!0)})),Object.keys(e)}get searchResults(){if(this.viewState.isSearchMode()&&this.viewState.isStockSearchMode())return[];const e=this.hasSelectedTypeFilters,t=this.hasSelectedLibraryFilters,r=this.hasSelectedDocumentGroupFilters,n=this.hasSelectedDocumentLinkFilters,i=d.Z.currentProduct.config.includeGroupFilters;if(this.viewState.isDocumentSearchType()&&(r||n)||i&&!e){const e=i?y.ZP.currentLibrary:y.ZP.documentAssetsContainer,t=p.Z.groupElementsByTopLevelGroup(this._matchingElements.elements,e.getGroups());return this.visibleSearchResults.elements.filter((i=>{const o=t.find((e=>e.children.map((e=>e.item)).includes(i))),a=d.Z.currentProduct.config.allowNestedGroupFiltering?"id":"name";let s=o&&o.item&&o.item[a];d.Z.currentProduct.config.allowUngroupedFiltering&&(s=s||"*"===o.item.id&&"ungrouped");const c=s&&this._searchDocumentGroupFilters.includes(s),l=i.isLinked?(0,T.Q7)(i.linkReference):e.name,u=this._searchDocumentLinkFilters.includes(l);return(c||!r)&&(u||!n)}))}return e||t?this.visibleSearchResults.elements.filter((r=>{const n=this._searchTypeFilters.includes(r.type),i=this._searchLibrariesFilters.includes(r.library.id);return t?e?n&&i:i:n})):this.visibleSearchResults.elements}get searchResultsCount(){return this.searchResults.length}get searchResultsGroups(){const e=[],t=(0,O.Oi)(this.searchResults,y.ZP.currentLibrary.getGroups(),{includeEmpty:!1}).branches;return Object.values(t).forEach((t=>{if(t.item.isGroup&&(t.item!==d.Z.UNGROUPED_GROUP||t.children.length)){var r,n,i;const o=this.viewState.viewByGroupMode===d.Z.VIEW_BY_GROUP_MODES.PATH,a=null===(r=t.item)||void 0===r||null===(n=r.library)||void 0===n?void 0:n.pathViewMaxDepth,s=a&&t.depth<a;o&&null!==(i=t.children[0])&&void 0!==i&&i.item.isGroup&&!s||e.push(t.item)}})),e}get hasSelectedLibraryFilters(){return!!this._searchLibrariesFilters.length}get hasSelectedTypeFilters(){return!!this._searchTypeFilters.length}get hasSelectedDocumentGroupFilters(){return!!this._searchDocumentGroupFilters.length}get hasSelectedDocumentLinkFilters(){return!!this._searchDocumentLinkFilters.length}get filterLibrariesOptions(){if(this._isDocumentSearch){const e={};return e[y.ZP.documentAssetsContainer.name]={label:"DOCUMENT_ASSETS_FILTER",id:y.ZP.documentAssetsContainer.name,type:"document"},this.visibleSearchResults.elements.forEach((t=>{t.isLegacyDocumentLink&&t.linkedDocumentName&&(e[t.linkedDocumentName]={label:t.linkedDocumentName,id:(0,T.Q7)(t.linkReference),type:"document",removable:!0})})),this.visibleSearchResults.elements.forEach((t=>{var r,n;const i=null!==(r=null===(n=t.linkedLibrary)||void 0===n?void 0:n.name)&&void 0!==r?r:t.cachedLinkedLibraryName;t.isLinked&&!t.isLegacyDocumentLink&&i&&(e[i]={label:i,id:(0,T.Q7)(t.linkReference),type:"document"})})),Object.values(e)}return this._searchResultsLibraries.concat(this._searchLibrariesFilters.filter((e=>!this._searchResultsLibraries.includes(e)))).map((e=>({id:e,label:y.ZP.getLibraryById(e).name,type:"library"})))}get filterTypeOptions(){return this._isDocumentSearch?p.Z.groupElementsByTopLevelGroup(this._matchingElements.elements,y.ZP.documentAssetsContainer.getGroups()).filter((e=>e.item&&e.children&&e.children.length||this._searchDocumentGroupFilters.includes(e.item&&e.item.name))).map((e=>({id:e.item.name,label:(0,v.Iu)(e.item.nameLocalizationKey),type:"group"}))):this._searchResultsTypes.concat(this._searchTypeFilters.filter((e=>!this._searchResultsTypes.includes(e)))).map((e=>({id:e,label:p.Z.getTypeName(e),type:"type"})))}clearUnusedTypeOptions(){this._searchTypeFilters.filter((e=>!this._searchResultsTypes.includes(e))).forEach((e=>this.setSearchOption(e,!1,"type")))}setSearchOption(e,t,r){switch(r){case"library":return void this._searchLibrariesOptions.set(e,t);case"group":return void this._searchDocumentGroupOptions.set(e,t);case"document":return void this._searchDocumentLinkOptions.set(e,t);default:this._searchTypeOptions.set(e,t)}}clearLibrariesFilters(){this._searchLibrariesOptions=new Map}clearDocumentFilters(){this._searchDocumentGroupOptions=new Map,this._searchDocumentLinkOptions=new Map}},c=I(s.prototype,"searchLoader",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=I(s.prototype,"_loaderSearchResults",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),u=I(s.prototype,"visibleResultsLimit",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I(s.prototype,"search",[i],Object.getOwnPropertyDescriptor(s.prototype,"search"),s.prototype),I(s.prototype,"isLoading",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"isLoading"),s.prototype),I(s.prototype,"visibleSearchResults",[o],Object.getOwnPropertyDescriptor(s.prototype,"visibleSearchResults"),s.prototype),I(s.prototype,"_matchingElements",[a],Object.getOwnPropertyDescriptor(s.prototype,"_matchingElements"),s.prototype),I(s.prototype,"_isDocumentSearch",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"_isDocumentSearch"),s.prototype),I(s.prototype,"_isSearchMode",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"_isSearchMode"),s.prototype),I(s.prototype,"_searchResultsTypes",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"_searchResultsTypes"),s.prototype),I(s.prototype,"_searchResultsLibraries",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"_searchResultsLibraries"),s.prototype),I(s.prototype,"searchResults",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"searchResults"),s.prototype),I(s.prototype,"searchResultsCount",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"searchResultsCount"),s.prototype),I(s.prototype,"searchResultsGroups",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"searchResultsGroups"),s.prototype),I(s.prototype,"filterLibrariesOptions",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"filterLibrariesOptions"),s.prototype),I(s.prototype,"filterTypeOptions",[b.computed],Object.getOwnPropertyDescriptor(s.prototype,"filterTypeOptions"),s.prototype),s);var C,k,D,N,R,M,j,F,Z,B,G,U,H,z=r(84074),V=r(79799),Y=r(46931),W=r(46903),K=r(39293),$=r(85834);function q(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function X(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const J=["image"],Q={normal:{enableMultiSelect:!0,enableContextMenu:!0},relink:{enableMultiSelect:!1,enableContextMenu:!1},removed_elements:{enableMultiSelect:!0,enableContextMenu:!1},search:{enableMultiSelect:!0,enableContextMenu:!0},one_up:{enableMultiSelect:!0,enableContextMenu:!0}},ee={type:"#collapsedTypes",group:"#collapsedGroups",groupNavigation:"#collapsedGroupNavigation"},te=["relevance","creation","popularity","nb_downloads"],re=["name","order","modified"],ne=["modified","name"],ie=["modified","name"],oe={type:["name","modified"],group:["order","name"],role:["name","modified"]},ae=d.Z.STORED_RECENT_SEARCH_LIBRARIES_KEY,se=d.Z.STORED_RECENT_SEARCH_STOCK_KEY;let ce=(C=b.observable.ref,D=X((k=class{constructor(){q(this,"mode",D,this),q(this,"isImportExportInProgress",N,this),q(this,"isTourInProgress",R,this),q(this,"modeParams",M,this),q(this,"currentSection",j,this),q(this,"gridZoomFactor",F,this),q(this,"showNavigation",Z,this),q(this,"collapsedGroupNavToDrag",B,this),q(this,"view",G,this),q(this,"librarySortOrderDescending",U,this)}}).prototype,"mode",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"normal"}}),N=X(k.prototype,"isImportExportInProgress",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),R=X(k.prototype,"isTourInProgress",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),M=X(k.prototype,"modeParams",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),j=X(k.prototype,"currentSection",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),F=X(k.prototype,"gridZoomFactor",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Z=X(k.prototype,"showNavigation",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),B=X(k.prototype,"collapsedGroupNavToDrag",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Array}}),G=X(k.prototype,"view",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"grid"}}),U=X(k.prototype,"librarySortOrderDescending",[b.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),k);const le=new(X((H=class{init(){this._state.elementSortDescending=h.Z.getValue("elementSortDescendingState")||this._state.elementSortDescending;const e=h.Z.getValue("librarySortState")||d.Z.currentProduct.config.defaultLibrarySortState||this._state.librarySort;this._state.librarySort=e,this._state.librarySortOrderDescending="name"!==e,this._state.gridZoomFactor=h.Z.getValue("gridZoomFactor")||this._state.gridZoomFactor,this._state.view=h.Z.getValue("viewState")||this._state.view,this._state.showNavigation=void 0===h.Z.getValue("showNavigationState")?this._state.showNavigation:h.Z.getValue("showNavigationState"),this._stockSearchState.init()}constructor(){this._currentSearchTimeout=null,this._listenerManager=(0,g.N)(this,["resetMode"]),this._stockSearchState=new x.Z(this),this._librariesSearchState=new A(this),this._state=new ce,this._state.elementSearchSort="modified",this._state.elementSortDescending=!1,this._state.librarySort="name",this._state.librarySortOrderDescending=!1,this._state.gridZoomFactor=d.Z.GRID_TYPE_MEDIUM,this._state.view=d.Z.ELEMENTS_VIEW_STATES.GRID,this._state.librariesView=d.Z.LIBRARIES_VIEW_STATES.GRID,this._state.viewBy="group",this._state.numResults=0,this._state.enableMultiSelect=!0,this._state.enableContextMenu=!0,this._state.elementTypeFilter=[],this._state.contextMenuPosition={x:0,y:0},this._state.showNavigation=!0,this._state.collapsedGroupNavToDrag=[]}setHeaderView(e){this._headerView=e}_setState(e,t){this._state[e]=t,h.Z.setValue(e+"State",t)}_setMode(e,t,r){const n=Q[e];this._state.enableMultiSelect=n.enableMultiSelect,this._state.enableContextMenu=n.enableContextMenu,this._state.elementTypeFilter=r,this._state.mode=e,this._state.modeParams=Object.assign({},this._state.modeParams,t||{}),this.isSearchMode()&&this.searchState.search()}_deleteFindSimilarFile(){const e=this._state.modeParams.findSimilarData;e&&e.path&&e.deleteFileAfterUse&&m._I(e.path)}startDragFromProduct(e){this._draggingData=e}endDragFromProduct(){this._draggingData=null}getDraggingData(){let e,t=0;return new Promise(((r,n)=>{e=setInterval((()=>{this._draggingData?(clearInterval(e),r(this._draggingData)):++t>9&&(clearInterval(e),n("Listener did not receive drag data"))}),10)}))}setCurrentWorkflow(e){this._currentWorkflow=e}get currentWorkflowName(){return this._currentWorkflow&&this._currentWorkflow.name}notifyWorkflowAction(e){this._currentWorkflow&&this._currentWorkflow.notifyAction&&this._currentWorkflow.notifyAction(e)}get viewState(){return h.Z.getValue("viewState")||d.Z.currentProduct.config.defaultViewState||d.Z.ELEMENTS_VIEW_STATES.GRID}get librariesViewState(){return h.Z.getValue("librariesViewState")||d.Z.currentProduct.config.defaultViewState||d.Z.LIBRARIES_VIEW_STATES.GRID}_getViewByStateKey(e=y.ZP.currentLibrary){const t="viewByState",r=(null==e?void 0:e.previousPlaceHolderId)||(null==e?void 0:e.id);return e?`${t}#${r}`:t}get viewByState(){var e;if(y.ZP.currentLibrary&&y.ZP.currentLibrary.isDocumentAssets)return d.Z.currentProduct.config.defaultViewByState||"group";const t=h.Z.getValue(this._getViewByStateKey());let r="type";(null===(e=y.ZP.currentLibrary)||void 0===e?void 0:e.getGroups().length)>=1?r="group":(0,K.Ol)(y.ZP.currentLibrary)&&$.Z.get("brandFeatureEnabled")&&(r="role");const n=t||d.Z.currentProduct.config.defaultViewByState||r;return"role"!==n||(0,K.Ol)(y.ZP.currentLibrary)&&$.Z.get("brandFeatureEnabled")?n:"type"}get viewByGroupMode(){return h.Z.getValue("viewByGroupModeState")||d.Z.currentProduct.config.defaultViewByGroupMode||"tree"}getViewByStateOptions(){return $.Z.get("brandFeatureEnabled")&&(0,K.Ol)(y.ZP.currentLibrary)?["role","type","group"]:["type","group"]}getViewByGroupModeOptions(){return["tree","path"]}getViewStateOptions(){return["grid","list"]}get currentLibrariesFilter(){return("GenStudio"!==d.Z.currentProduct.config.code||f.Z.isBrandCreator)&&h.Z.getValue("currentLibrariesFilter")||"all"}setCurrentLibrariesFilter(e){return h.Z.setValue("currentLibrariesFilter",e)}resetCurrentLibrariesFilter(){return h.Z.setValue("currentLibrariesFilter","all")}getLibraryListFilterOptions(){return["all","personal","shared","public","team"]}get elementSortState(){const e=d.Z.currentProduct.config.defaultElementSortState||oe[this.viewByState][0];return h.Z.getValue(`elementSortState#${this.viewByState}`)||e}get _elementSearchSortState(){return h.Z.getValue("elementSearchSortState")||"modified"}get elementSortDescendingState(){return h.Z.getValue("elementSortDescendingState")||!1}get librarySortState(){return h.Z.getValue("librarySortState")||d.Z.currentProduct.config.defaultLibrarySortState||"name"}get librarySortOrderDescendingState(){var e;const t=h.Z.getValue("librarySortOrderDescendingState");return null!==(e=null!=t?t:this._state.librarySortOrderDescending)&&void 0!==e&&e}get showNavigation(){return this._state.showNavigation}get gridZoomFactor(){return this._state.gridZoomFactor}get stockSearchState(){return this._stockSearchState}get librariesSearchState(){return this._librariesSearchState}get searchState(){return this.isStockSearchMode()?this._stockSearchState:this._librariesSearchState}get nameVisibility(){return h.Z.getValue("nameVisibility")||d.Z.currentProduct.config.nameVisibilityOverride||"elementHover"}get elementBackgroundPattern(){return h.Z.getValue("elementBackground")||d.Z.ELEMENT_BACKGROUNDS.SOLID}get contextMenuPositionState(){return this._state.contextMenuPosition}getState(){return this._state}isDefaultMode(){return"normal"===this._state.mode}isRelinkLayerMode(){return"relink"===this._state.mode}isLocked(e){return e&&e.toolkitId&&!h.Z.getValue(this._getUnlockedKey(e))}unlock(e){w.ZP.reportEvent("Library Operations","Library","click","unlock",null,e),h.Z.setValue(this._getUnlockedKey(e),!0)}lockToolkit(e){h.Z.setValue(this._getUnlockedKey(e),!1)}_getUnlockedKey(e){return`unlockedToolkit#${e.toolkitId}`}isLibraryWritable(e,t,r){return e&&e.isWritable&&(r||e.areElementsLoaded)&&!this.isLocked(e)&&(t||!e.documentId)}isRemovedElementsMode(){return"removed_elements"===this._state.mode}isSearchMode(){return"search"===this._state.mode}isOneUpMode(){return"one_up"===this._state.mode}isGroupView(){const e="document"===this.getSearchType();return"group"===this.viewByState&&(e||!this.isSearchMode()&&!this.isRelinkLayerMode())}isLibraryNameSearchType(){return"libraryName"===this.getSearchType()}isContextMenuEnabled(){return this._state.enableContextMenu}isNewUserState(){return!y.ZP.libraries.some((e=>{const t=e.elementCount>0||e.removedElementCount>0;return e.isWritable&&t&&!e.toolkitId}))}isLibrarySearchMode(){return"search"===this._state.mode&&"library"===this._state.modeParams.type}isLibraryNameSearchMode(){return"search"===this._state.mode&&"libraryName"===this._state.modeParams.type}isLibrariesSearchMode(){return"search"===this._state.mode&&"libraries"===this._state.modeParams.type}isStockSearchMode(){return"search"===this._state.mode&&"stock"===this._state.modeParams.type}isDocumentSearchMode(){return"search"===this._state.mode&&"document"===this._state.modeParams.type}isDocumentSearchType(){return"document"===this.getSearchType()||"libraries"===this.getSearchType()&&y.ZP.currentLibrary&&y.ZP.currentLibrary.isDocumentAssets&&(0,S.fs)(this.getSearchText())}getSearchText(){var e;return null===(e=this._state.modeParams.text)||void 0===e?void 0:e.trimStart()}getSearchId(){return this._state.modeParams.searchId}getLocalMachineSetting(e){if(!y.ZP.disableCCLibraries)return V.Z.getLocalMachineSetting(e);h.Z.getValue(e)}setLocalMachineSetting(e,t){y.ZP.disableCCLibraries?h.Z.setValue(e,t):V.Z.setLocalMachineSetting(e,t)}_getRecentSearchKey(){return`${y.ZP.disableCCLibraries?f.Z.imsUserId:y.ZP.userId}#recentSearches`}getRecentSearches(){return this.getLocalMachineSetting(this._getRecentSearchKey())||{libraries:[],stock:[]}}_addRecentSearch(e,t){const r=this.getRecentSearches(),n="stock"===e?d.Z.STORED_RECENT_STOCK_SEARCH_LIMIT:d.Z.STORED_RECENT_LIBRARIES_SEARCH_LIMIT,i=r[e].filter((e=>e!==t)),o=i.indexOf(t);i.splice(-1===o?n-1:o,1),i.unshift(t);const a=this._getRecentSearchKey();r[e]=i,this.setLocalMachineSetting(a,r)}clearRecentSearch(e,t){const r=this.getRecentSearches(),n=r[e];n.length>0&&(r[e]=n.filter((e=>e!==t)),this.setLocalMachineSetting(this._getRecentSearchKey(),r))}clearAllRecentSearches(){this.setLocalMachineSetting(this._getRecentSearchKey(),{libraries:[],stock:[]})}hasRecentSearches(){const e=this.getRecentSearches();return e[ae].length>0||e[se].length>0}_storeRecentSearch(){this._currentSearchTimeout&&clearTimeout(this._currentSearchTimeout);const e=this.getSearchText();if(!e||!e.trim()||e===(0,v.Iu)("DL_STOCK_FIND_SIMILAR_PLACEHOLDER"))return;const t=this.isStockSearchMode()?se:ae;this._currentSearchTimeout=setTimeout((()=>{this._addRecentSearch(t,e)}),d.Z.RECENT_SEARCH_TIMER)}setSearchText(e){const t=this.getSearchText();let r=t!==e;t||e||(r=!1),r&&!t&&w.ZP.reportSearchEvent("Search","Search","keydown","input",{ui:{filter:this.getSearchType()}}),this._state.modeParams=Object.assign({},this._state.modeParams,{text:e,type:this.getSearchType()}),!(0,S.fs)(this.getSearchText())||this._state.modeParams.findSimilarData&&this._state.modeParams.findSimilarData.findSimilarId?(this.isSearchMode()||this.setSearchMode(this._state.modeParams),this._state.modeParams.text!==(0,v.Iu)("DL_STOCK_FIND_SIMILAR_PLACEHOLDER")&&this.clearFindSimilarSearchMode()):this.isSearchMode()&&this.resetMode(),this.clearAllSelections(),this.isSearchMode()&&this.searchState.search(),this._storeRecentSearch()}clearAllSelections(){E.Z.clearSelection(),_.Z.clearSelection()}getElementSortOptions(){return d.Z.currentProduct.config.elementsSortOptions?d.Z.currentProduct.config.elementsSortOptions:re}getLibrariesSearchSortOptions(){return ie}getElementSearchSortOptions(){return this.isStockSearchMode()?te:ne}setElementSearchSort(e){this.isStockSearchMode()&&te.includes(e)?(h.Z.setValue("stockSearchSort",e),this._stockSearchState.search()):ne.includes(e)&&(this._setElementSearchSortState(e),this.searchState.search())}isValidElementSortOption(e){return this.isSearchMode()?this.isStockSearchMode()?te.includes(e):ne.includes(e):oe[this.viewByState].includes(e)}get elementSearchSort(){return this.isStockSearchMode()?h.Z.getValue("stockSearchSort")||"relevance":this._elementSearchSortState}get thumbnailType(){return this.viewState+(this.isDefaultMode()&&"group"===this.viewByState?"-group":"")}getSearchType(){if(y.ZP.currentLibrary&&y.ZP.currentLibrary.isDocumentAssets)return h.Z.getValue("searchType")&&"libraries"===h.Z.getValue("searchType")?"libraries":"document";if(this._state.modeParams.type)return this._state.modeParams.type;if(this.isRootView())return this.isRootView()&&d.Z.currentProduct.config.enableLibraryNameSearch?"libraryName":"libraries";{const e=h.Z.getValue("searchType");return e&&"libraryName"!==e?e:"library"}}getSearchTypes(){return y.ZP.isRestrictedAccount?["library","libraries"]:y.ZP.currentLibrary&&y.ZP.currentLibrary.isDocumentAssets?["document","libraries"]:["stock","library","libraries"]}getStockSearchOptionValuesArray(){const e=h.Z.getValue("searchOptionValues");return e&&(0,b.isArrayLike)(e)?e:d.Z.currentProduct.config.defaultStockSearchOptions||[]}getFindSimilarData(){return this._state.modeParams.findSimilarData}setStockSearchOptionValuesArray(e){e&&h.Z.setValue("searchOptionValues",Object.keys(e).filter((t=>e[t])))}setSearchType(e){"libraries"!==e&&this.librariesSearchState.clearLibrariesFilters(),h.Z.setValue("searchType",e),this._state.modeParams=Object.assign({},this._state.modeParams,{type:e}),this.searchState.search(),this._storeRecentSearch()}setElementSortState(e){h.Z.setValue(`elementSortState#${this.viewByState}`,e)}_setElementSearchSortState(e){this._setState("elementSearchSort",e)}setElementSortDescendingState(e){this._setState("elementSortDescending",e)}setLibrarySortState(e){this.setLibrarySortOrderDescendingState("name"!==e),this._setState("librarySort",e)}setLibrarySortOrderDescendingState(e){this._setState("librarySortOrderDescending",e)}setGridZoomFactor(e){this._setState("gridZoomFactor",e)}setShowNavigation(e){this._setState("showNavigation",e)}setViewState(e){this._setState("view",e)}setLibrariesViewState(e){this._setState("librariesView",e)}resetViewStates(){this._setState("view",d.Z.currentProduct.config.defaultViewState||d.Z.ELEMENTS_VIEW_STATES.GRID),this._setState("librariesView",d.Z.currentProduct.config.defaultViewState||d.Z.LIBRARIES_VIEW_STATES.GRID)}setRemoveDialogPadding(e){this._setState("removePadding",e)}getRemovePadding(){return this._state.removePadding}setViewByState(e){if(this.setCurrentSection(null),this._state.viewBy=e,h.Z.setValue(this._getViewByStateKey(),e),!y.ZP.currentLibrary)return;let t;"type"!==e&&"role"!==e||!y.ZP.currentLibrary.elements.length||(t=this.getTypeSectionsInViewOrder(y.ZP.currentLibrary.elements).type),"group"===e&&(t=this.groupsInViewOrder&&this.groupsInViewOrder[0]),t&&_.Z.revealGroup(t,!0)}setViewByGroupMode(e){this._setState("viewByGroupMode",e)}setNameVisibility(e){h.Z.setValue("nameVisibility",e)}setElementBackgroundPattern(e){h.Z.setValue("elementBackground",e)}setContextMenuPositionState(e){this._setState("contextMenuPosition",e)}setRelinkLayerMode(e,t){e=e||{},t||(t=J),t=(t=Array.isArray(t)?t:[t]).map((e=>d.Z.getElementType(e))),this._setMode("relink",e,t),z.ZP.openDialog("relinkLayerOverlay")}showRootView(){y.ZP.currentLibrary=null}isRootView(){return!y.ZP.currentLibrary&&!this.isOneUpMode()}setRemovedElementsMode(){this._setMode("removed_elements",{})}setSearchMode(e){!e||null!=e&&e.searchId||(e.searchId=m.Rl()),this._setMode("search",e)}clearSearchMode(){var e,t;null===(e=this.searchState)||void 0===e||null===(t=e.resetSearchLoader)||void 0===t||t.call(e),delete this._state.modeParams.searchId}setOneUpMode(e){if(!e)throw new Error('setOneUpMode must have the parameter "element" to properly display the one up view.');this._setMode("one_up",{element:e,previousMode:this.getState().mode})}setOneUpSubElement(e){this._state.modeParams.subElement=e}setStateBeforeOneUpMode(){const e=this.getState().modeParams;"search"===e.previousMode?(this.setSearchMode(e),this.clearOneUpModeParams()):this.resetMode()}clearOneUpModeParams(){delete this._state.modeParams.element,delete this._state.modeParams.previousMode,delete this._state.modeParams.subElement}setNumResults(e){this._state.numResults=e}resetMode(){this._listenerManager.notify("resetMode"),this.clearFindSimilarSearchMode(),this.clearSearchMode(),this.librariesSearchState.clearFilters(),"normal"!==this._state.mode&&(this._setMode("normal"),this._state.modeParams=Object.assign({},this._state.modeParams,{text:""}))}setFindSimilarSearchMode(e,t,r,n){this._deleteFindSimilarFile(),this._state.modeParams=Object.assign({},this._state.modeParams,{text:(0,v.Iu)("DL_STOCK_FIND_SIMILAR_PLACEHOLDER"),type:"stock",findSimilarData:{id:e,url:t,path:r,deleteFileAfterUse:n}}),this.setSearchMode(this._state.modeParams)}clearFindSimilarSearchMode(){this._deleteFindSimilarFile(),this._state.modeParams.findSimilarData=void 0}_getCollapsedKey(){if("search"===this._state.mode)return"search";const e=y.ZP.currentLibrary;return e&&e.id}_getCollapsedMap(e){return h.Z.getValue(y.ZP.userId+"#"+ee[e])||{}}_setCollapsedMap(e,t){if(!y.ZP.areLibrariesLoaded)return;const r=y.ZP.searchableLibraries.map((e=>e.id));Object.keys(e).filter((e=>"search"!==e&&!r.includes(e))).forEach((t=>delete e[t])),h.Z.setValue(y.ZP.userId+"#"+ee[t],e)}_isCollapsed(e,t){const r=d.Z.currentProduct.config.disabledCollapseSectionIds;if(r&&r.includes(e))return!1;const n=this._getCollapsedKey();if(!n)return!1;const i=!this.isSearchMode()&&d.Z.currentProduct.config.collapsedTypes||[];return(this._getCollapsedMap(e)[n]||i).includes(t)}_setCollapsed(e,t,r){const n=this._getCollapsedKey();if(!n)return;const i=this._getCollapsedMap(e),o=!this.isSearchMode()&&d.Z.currentProduct.config.collapsedTypes||[],a=i[n]||o;if(a.includes(t)===r)return;const s=Object.assign({},i);s[n]=a.filter((e=>e!==t)),r&&s[n].push(t),this._setCollapsedMap(s,e)}resetCollapsedTypes(){this._setCollapsedMap({},"type")}isTypeCollapsed(e){return this._isCollapsed("type",e)}isElementSectionCollapsed(e){const t="role"===this.viewByState&&p.Z.getElementRole(e)||e.type;return this.isTypeCollapsed(t)}isGroupCollapsed(e){return this._isCollapsed("group","*"===e?"ungrouped":e)}isGroupNavigationCollapsed(e){return this._isCollapsed("groupNavigation",e)}setTypeCollapsed(e,t){this._setCollapsed("type",e,t)}setGroupCollapsed(e,t){this._setCollapsed("group","*"===e?"ungrouped":e,t)}setGroupNavigationCollapsed(e,t){this._setCollapsed("groupNavigation",e,t)}setCollapsedGroupNavigationToDrag(e){this._state.collapsedGroupNavToDrag.push(e)}collapsedGroupNavigationToDrag(e){return!!this._state.collapsedGroupNavToDrag.find((t=>t===e))}clearCollapsedGroupNavigationToDrag(){this._state.collapsedGroupNavToDrag=[]}_getElementsFromBranches(e){return e.reduce(((e,t)=>{const r=t.children.map((e=>e.item));return e.concat(r)}),[])}_getElementsInNestedGroupOrder(e){if(!e.length)return[];const t="modified"===this.elementSortState?"order":this.elementSortState,r=e[0].library,n=p.Z.groupElementsByCustomGroup(e,r.getGroups(),0,t);return this._getElementsFromBranches(n)}getElementsInViewOrder(e){return this.isGroupView()?this._getElementsInNestedGroupOrder(e):this.getTypeSectionsInViewOrder(e).reduce(((e,t)=>e.concat(t.children)),[])}getLibraryElementsInViewOrder(e){if(this.isGroupView()){const t="modified"===this.elementSortState?"order":this.elementSortState,r=(0,O.GI)(e,{sortBy:t,maxDepth:0}).root;return this._getElementsFromBranches(r.children)}return this.getElementsInViewOrder(e.elements)}getTypeSectionsInViewOrder(e){const t=this.isSearchMode()||this.isRelinkLayerMode()?this._elementSearchSortState:this.elementSortState;return this.isRemovedElementsMode()?p.Z.groupElementsByTime(e,"removed"):p.Z.groupElementsByType(e,t)}get groupsInViewOrder(){if(!y.ZP.currentLibrary)return[];const e=this.elementSortState,t=y.ZP.currentLibrary&&y.ZP.currentLibrary.fixedSortOrder||e;return(0,O.GI)(y.ZP.currentLibrary,{maxDepth:0,sortBy:t}).root.children.reduce(((e,t)=>e.concat(t.item)),[])}get librariesInViewOrder(){const e=Y.Z.libraryManager.getCCLibraries(),t=this.librarySortState,r=this.currentLibrariesFilter,n=this.getSearchText(),i=!this.librarySortOrderDescendingState;return(0,W.zc)(e,{sortBy:t,filterBy:r,searchText:n,isAscending:i})}setImportExportInProgress(e){this._state.isImportExportInProgress=e}get isImportExportInProgress(){return this._state.isImportExportInProgress}setTourInProgress(e){this._state.isTourInProgress=e}get isTourInProgress(){return this._state.isTourInProgress}get isPlainRootView(){return this.isRootView()&&!this.isRelinkLayerMode()&&!this.isRemovedElementsMode()&&!this.isSearchMode()}setCurrentSection(e){this._state.currentSection=e}get currentSection(){return this._state.currentSection}get searchBarBottom(){return this._headerView&&this._headerView.getSearchBarBottom()||0}get panelHeaderHeight(){var e;const t=null===(e=f.Z.getCustomHeaderView)||void 0===e?void 0:e.call(f.Z);return(t&&t.height||0)+(this._headerView&&this._headerView.getHeight()||0)}}).prototype,"_setState",[b.action],Object.getOwnPropertyDescriptor(H.prototype,"_setState"),H.prototype),X(H.prototype,"_setMode",[b.action],Object.getOwnPropertyDescriptor(H.prototype,"_setMode"),H.prototype),X(H.prototype,"showNavigation",[b.computed],Object.getOwnPropertyDescriptor(H.prototype,"showNavigation"),H.prototype),X(H.prototype,"gridZoomFactor",[b.computed],Object.getOwnPropertyDescriptor(H.prototype,"gridZoomFactor"),H.prototype),X(H.prototype,"groupsInViewOrder",[b.computed],Object.getOwnPropertyDescriptor(H.prototype,"groupsInViewOrder"),H.prototype),X(H.prototype,"librariesInViewOrder",[b.computed],Object.getOwnPropertyDescriptor(H.prototype,"librariesInViewOrder"),H.prototype),H)},2169:(e,t,r)=>{"use strict";r.d(t,{E0:()=>l,Nk:()=>f,ev:()=>u,fk:()=>d,j6:()=>h,rP:()=>p});var n=r(50265),i=r(21271),o=r.n(i),a=r(76485);const s=n.observable.map(),c={};function l(e,t,r,n){const i=JSON.stringify({text:e,className:t}),o=s.get(i);if(o&&o.maxWidth===r)return o.dimensions;let l=c[i];if(!l){var u;const r=document.createElement("span");r.className=t,r.style.display="inline-block",r.style.visibility="hidden",r.textContent=e,(n||(null===(u=a.Z.getRootPanelElement())||void 0===u?void 0:u.shadowDOM)||document.body).appendChild(r),l=c[i]={domElement:r}}l.maxWidth!==r&&(l.domElement.style.maxWidth=r+"px",l.maxWidth=r);const d=()=>{const e=l.domElement.clientWidth,t=l.domElement.clientHeight;if(e||t){l.domElement.parentNode.removeChild(l.domElement),clearInterval(l.interval),delete c[i];const r={width:e,height:t};return setTimeout((()=>s.set(i,{maxWidth:l.maxWidth,dimensions:r}))),r}},p=d();return p||l.interval||(l.interval=setInterval(d,10)),p||(o?o.dimensions:{width:0,height:0})}function u(e){return new Promise(((t,r)=>{const n=document.createElement("video");n.src=e,n.id="videoDurationElement",n.preload="metadata",n.style.display="inline-block",n.style.visibility="hidden",document.body.appendChild(n),n.onloadedmetadata=()=>{t(1e3*n.duration),n.parentNode.removeChild(n)},n.onerror=()=>{r(),n.parentNode.removeChild(n)}}))}function d(e,t,r){return l(e,t,r).height}function p(e,t){const r=function(e){if(o().ignoreEventPaths)return;if((e=e.nativeEvent||e).path||e.composedPath)return e.path||e.composedPath&&e.composedPath();const t=[];let r=e.target;for(;r;){if(t.push(r),"HTML"===r.tagName)return t.push(document),t.push(window),t;r=r.parentElement}}(e);return r?r.includes(t):t.contains(e.target)}function h(e){var t,r,n;const i=null==e||null===(t=e.target)||void 0===t||null===(r=t.getRootNode)||void 0===r?void 0:r.call(t),o=e.path||(null==e||null===(n=e.composedPath)||void 0===n?void 0:n.call(e));let a;return i&&o&&(a=o.find((e=>{var t;return(null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e))===i&&e===i.activeElement}))),a}function f(e,t,r=window.customElements){if(r&&e&&t)try{r.get(e)||r.define(e,t)}catch(n){class i extends t{}r.define(e,i)}}},21360:(e,t,r)=>{"use strict";r.d(t,{$0:()=>o,L8:()=>s,_q:()=>a,bC:()=>n});const n=new Proxy({},{get:(e,t)=>e[t]||(e[t]={start:`brands-${t.toLowerCase()}:start`,end:`brands-${t.toLowerCase()}:end`,measure:`brands:brands-${t.toLowerCase()}`})});function i(){return!(!window.performance||"function"!=typeof window.performance.getEntriesByName)}function o(e){return i()&&1===window.performance.getEntriesByName(e).length}const a=e=>{i()&&(o(e)&&window.performance.clearMarks(e),window.performance.mark(e))};function s(e){if(i()){performance.getEntriesByName(e,"measure").length>0&&window.performance.clearMeasures(e);const t=Object.values(n).find((t=>t.measure===e));t&&o(t.start)&&o(t.end)&&window.performance.measure(e,t.start,t.end)}}},74149:(e,t,r)=>{"use strict";r.d(t,{$J:()=>A,Bm:()=>T,Bq:()=>z,Cf:()=>C,D5:()=>D,GT:()=>I,RO:()=>G,e4:()=>N,fS:()=>P,fY:()=>H,nA:()=>k,oC:()=>R,pI:()=>U,uP:()=>Z,wS:()=>j});var n=r(99386),i=r(47320),o=r(15909),a=r(34038),s=r(46903),c=r(75067),l=r(84824),u=r(4784),d=r(51461),p=r(53849),h=r(76485),f=r(84074),m=r(2169),g=r(30460),v=r(92098),y=r(16993),b=r(33275),_=r(2315),E=r(50265),w=r(26964);function x(){x=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function L(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function O(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){L(o,n,i,a,s,"next",e)}function s(e){L(o,n,i,a,s,"throw",e)}a(void 0)}))}}function S(e,t,r=[],o,c,l,u=[]){for(let e=0;e<r.length;e++){var d;if(null!==(d=n.Z.currentProduct.config)&&void 0!==d&&d.copyTempFileIfNecessary&&(r[e].path=n.Z.currentProduct.config.copyTempFileIfNecessary(r[e].path)),!a.xW(r[e].path))return Promise.reject(`Could not add new element: path ${r[e].path} does not exist`)}if(o&&!a.xW(o))return Promise.reject(`Could not add new element: thumbnail path ${o} does not exist`);if(!c)return Promise.reject("Could not add new element: no library");if(!(0,s.oY)(c,!0))return Promise.reject("Could not create element: library is read-only");if(!(0,s.mM)(r,!0))return Promise.reject("Could not create element: one or more files exceed 1GB limit");const p=(0,s.MN)(c,t,e,{opType:l}),h=[];if(r.forEach((t=>{const r=t.type||a.pH(t.path,e),n=p.createRepresentation(r,t.relationship);t.data&&t.data.forEach((e=>n.setValue(e.namespace,e.key,e.value))),h.push(n.setContentFromPath(t.path,t.moveFile).then((()=>{t.dimensions&&(n.width=t.dimensions.width,n.height=t.dimensions.height)})))})),o){const e=i.Z.getThumbnailSize(p);h.push((0,s.bf)(p,e,o))}return u.forEach((e=>p.setValue(e.namespace,e.key,e.value))),Promise.all(h).then((()=>(p.endOperation(),p))).catch((e=>(c.removeElement(p,!0),Promise.reject(`Could not create element: ${e}`))))}function T(e,t,r,i,a,c,l){return e=(0,s.In)(i,e),S(n.Z.IMAGE_ELEMENT_TYPE,e,t,r,i,a,l).then((e=>(o.Z.sendElementCreated(e,c),e)))}function P(e,t=[],r,i,c,l,u=[]){return function(e,t=[],r,i,o,c=[]){const l=n.Z.PATTERN_ELEMENT_TYPE;for(let e=0;e<t.length;e++){var u;if(null!==(u=n.Z.currentProduct.config)&&void 0!==u&&u.copyTempFileIfNecessary&&(t[e].path=n.Z.currentProduct.config.copyTempFileIfNecessary(t[e].path)),!a.xW(t[e].path))return Promise.reject(`Could not add new element: path ${t[e].path} does not exist`)}if(r&&!a.xW(r))return Promise.reject(`Could not add new element: thumbnail path ${r} does not exist`);if(!i)return Promise.reject("Could not add new element: no library");if(!(0,s.oY)(i,!0))return Promise.reject("Could not create element: library is read-only");if(!(0,s.mM)(t,!0))return Promise.reject("Could not create element: one or more files exceed 1GB limit");const d=(0,s.MN)(i,e,l,{opType:o}),p=[];if(t.forEach((e=>{const t=e.type||a.pH(e.path,l),r=d.createRepresentation(t,e.relationship);e.data&&e.data.forEach((e=>r.setValue(e.namespace,e.key,e.value))),p.push(r.setContentFromPath(e.path,e.moveFile).then((()=>{e.dimensions&&(r.width=e.dimensions.width,r.height=e.dimensions.height)})))})),r){const e=d.createRepresentation("image/png","rendition");e.isPreferredThumbnail=!0;const t=e.setContentFromPath(r);p.push(t)}return c.forEach((e=>d.setValue(e.namespace,e.key,e.value))),Promise.all(p).then((()=>d)).catch((e=>(i.removeElement(d,!0),Promise.reject(`Could not create element: ${e}`))))}(e,t,r,i,c,u).then((e=>(o.Z.sendElementCreated(e,l),p.Z.revealElement(e),e.endOperation(),e))).catch((e=>Promise.reject(e)))}function I(e,t,r,i,a,c){return e=(0,s.In)(r,e),S(n.Z.AUDIO_ELEMENT_TYPE,e,t,void 0,r,i,c).then((e=>(o.Z.sendElementCreated(e,a),e)))}function A(e,t,r,i,a,c,l){return e=(0,s.In)(i,e),S(n.Z.VIDEO_ELEMENT_TYPE,e,t,r,i,a,l).then((e=>(o.Z.sendElementCreated(e,c),e)))}function C(e,t,r,i,a,c,l){return e=(0,s.In)(i,e),S(n.Z.ANIMATION_ELEMENT_TYPE,e,t,r,i,a,l).then((e=>(o.Z.sendElementCreated(e,c),e)))}function k(e,t,r,i,o){return t.relationship="primary",S(n.Z.LAYER_STYLE_ELEMENT_TYPE,e,[t],r,i,o)}function D(e,t,r,i,o){return t.relationship="primary",S(n.Z.BRUSH_ELEMENT_TYPE,e,[t],r,i,o)}function N(e,t,r,i,a,c,l){return e=(0,s.In)(i,e),S(n.Z.THREE_D_ELEMENT_TYPE,e,t,r,i,a,l).then((e=>(o.Z.sendElementCreated(e,c),e)))}function R(e){return M.apply(this,arguments)}function M(){return(M=O(x().mark((function e({content:t,contentURL:r},n="",i){var o,s;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!(t&&t instanceof File)){e.next=3;break}return e.abrupt("return",t);case 3:if(!(t&&t instanceof Blob)){e.next=7;break}o=t,e.next=14;break;case 7:if(!r){e.next=14;break}return e.next=10,fetch(r);case 10:return s=e.sent,e.next=13,s.blob();case 13:o=e.sent;case 14:if(!o){e.next=18;break}return i=o.type,n=n||`${a.Rl()}.${a.vn(i)[0]}`,e.abrupt("return",new File([o],n,{type:i}));case 18:e.next=22;break;case 20:e.prev=20,e.t0=e.catch(0);case 22:return e.abrupt("return",t);case 23:case"end":return e.stop()}}),e,null,[[0,20]])})))).apply(this,arguments)}function j(e,t,r){return F.apply(this,arguments)}function F(){return F=O(x().mark((function e(t,r,i){var o,a;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u.Z.incrementPendingElements(r),e.prev=1,e.next=4,Promise.all(t.representations.map(function(){var e=O(x().mark((function e(t){var n;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,R(t);case 2:if(!(n=e.sent)){e.next=7;break}return e.next=6,r.stageRepresentationForCommit(n,t.type);case 6:t.stagedData=e.sent;case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),w.Z.log(e.t0);case 9:return e.prev=9,u.Z.decrementPendingElements(r),e.finish(9);case 12:if(!r.isDeletedLocally&&r.isWritable){e.next=14;break}return e.abrupt("return",Promise.reject("Library was deleted (or became read-only)."));case 14:if(r.elementCount>=c.ZP.MAX_ELEMENTS&&(r=c.ZP.getOverflowLibrary(r.name)),o=(0,s.MN)(r,t.name||"",t.type,i)){e.next=18;break}return e.abrupt("return",Promise.reject("Could not create element during upload."));case 18:return t.roles&&(o.roles=t.roles),t.group&&(a=r.getGroupById(t.group.id))&&o.setOrderInGroup(a,t.group.order),t.sourceRef&&(o.sourceRef=t.sourceRef),t.customData&&t.customData.forEach((({namespace:e,key:t,value:r})=>o.setValue(e,t,r))),d.ZP.setExtraEventMetrics("updateElement",{disableReport:!0}),e.prev=23,e.next=26,Promise.all(t.representations.map(function(){var e=O(x().mark((function e(t){var r,i,a;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=o.createRepresentation(t.type,t.relationship||"primary"),!t.stagedData){e.next=4;break}return e.next=4,r.setStagedContent(t.stagedData);case 4:if(t.customData&&t.customData.forEach((({namespace:e,key:t,value:n})=>r.setValue(e,t,n))),!t.setDuration){e.next=16;break}return e.prev=6,e.next=9,(0,m.ev)(r.getCachedContentPath());case 9:i=e.sent,a=o.type===n.Z.VIDEO_ELEMENT_TYPE?"video":"audio",r.setValue(a,"data",{duration:i}),e.next=16;break;case 14:e.prev=14,e.t0=e.catch(6);case 16:case"end":return e.stop()}}),e,null,[[6,14]])})));return function(t){return e.apply(this,arguments)}}()));case 26:e.next=32;break;case 28:return e.prev=28,e.t1=e.catch(23),!r.isDeletedLocally&&r.isWritable&&r.removeElement(o,!0),e.abrupt("return");case 32:return o.endOperation(),e.abrupt("return",o);case 34:case"end":return e.stop()}}),e,null,[[1,6,9,12],[23,28]])}))),F.apply(this,arguments)}function Z(e,t,r){return B.apply(this,arguments)}function B(){return B=O(x().mark((function e(t,r,o,s=!1){var l,u,m,v,_,E;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=new g.T("Add Elements"),c.ZP.showSyncSpinner(),y.Z.clearAllSelections(),u=new Map,m=function(){var e=O(x().mark((function e(t){var i,f,m,g,v,y,b;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.name,f=t.extension||a.MZ(i),m=t.size,g=f?a.JF(a.Cj(f)):a.pH(i,n.Z.IMAGE_ELEMENT_TYPE)){e.next=6;break}return e.abrupt("return",Promise.reject("Unsupported drag data"));case 6:return v=a.xJ(g),e.prev=7,y=a.K3(i),e.next=11,j({name:s?y.trim():y,type:v,roles:t.role&&[t.role],group:t.group,customData:t.customData,representations:[{content:t,type:g,setDuration:[n.Z.VIDEO_ELEMENT_TYPE,n.Z.AUDIO_ELEMENT_TYPE].includes(v)&&h.Z.videoElementsSupported}]},r,{opType:o||"dragDrop",extension:f,size:t.size});case 11:return(b=e.sent)&&r===c.ZP.currentLibrary&&0===p.Z.selection.length&&p.Z.setSelection(b),l.done(),u.set(b.id,{fileExtension:f,fileSize:m}),e.abrupt("return",b);case 18:e.prev=18,e.t0=e.catch(7),d.ZP.reportError("Add Assets","Element",void 0,void 0,void 0,{content:{category:o||"Bulk Upload"}},r);case 21:case"end":return e.stop()}}),e,null,[[7,18]])})));return function(t){return e.apply(this,arguments)}}(),v=Array.from(t),!a.oR(v[0].extension)){e.next=14;break}if(!n.Z.currentProduct.config.disableImport){e.next=9;break}return e.abrupt("return",Promise.resolve());case 9:return _=v.map((e=>e.path)),d.ZP.reportEvent("Library Operations","Import Library","click","start",{content:{category:"Bulk Upload"}}),d.ZP.setExtraEventMetrics("importLibrary",{content:{category:"Bulk Upload"}}),f.ZP.openDialog("importExportLibrary",{library:r,mode:"import",paths:_}),e.abrupt("return",Promise.resolve());case 14:if(!(b.P6.estimateUploadTime(v)>=n.Z.WARN_EXTENDED_UPLOAD_TIME&&n.Z.currentProduct.config.warnLargeFileUpload)){e.next=20;break}return n.Z.currentProduct.config.warnLargeFileUpload(),d.ZP.reportEvent("Navigation","Large Upload","render","warning-modal-displayed",{ccl:{file_count:v.length,upload_size:v.reduce(((e,t)=>e+t.size),0)}}),e.next=20,new Promise((e=>setTimeout(e,10)));case 20:return E=v.map(m),e.abrupt("return",Promise.all(E).then((e=>{e=e.filter((e=>e));const t=[],n=[],a=[],s=[],c=[];return e.length&&(e.forEach((e=>{const r=u.get(e.id);t.push(null==r?void 0:r.fileSize),n.push(null==r?void 0:r.fileExtension),a.push("logo"===i.Z.getElementRole(e)?"logo":i.Z.getShortType(e.type)),s.push(i.Z.getElementRole(e)||"none"),c.push(i.Z.getElementPriority(e)||"none")})),d.ZP.reportEvent("Add Assets","Element","click","add",{event:{value:"agg",count:e.length},content:{category:o||"Bulk Upload",type:a.join(","),extension:n.join(","),size:t.join(",")},"custom.library":{asset_role:s.join(","),asset_priority:c.join(",")}},r)),e})));case 22:case"end":return e.stop()}}),e)}))),B.apply(this,arguments)}function G(e,t,r=(0,l.Iu)("DL_REPLACE_GRAPHIC_SUCCESS")){if(e.size>c.ZP.MAX_COMPONENT_SIZE){const e=(0,l.Iu)("DL_DESIGN_LIBRARY_NATIVE_FILE_SIZE_TITLE"),r=[(0,l.Iu)("DL_DESIGN_LIBRARY_NATIVE_FILE_SIZE_MESSAGE")];return f.ZP.openDialog("dropFiles",{title:e,messages:r,files:[],library:t.library}),Promise.resolve()}const i=e.name,o=a.MZ(i);let s;s=o?a.JF(a.Cj(o)):a.pH(i,n.Z.IMAGE_ELEMENT_TYPE);const u=t.library;return d.ZP.setExtraEventMetrics("updateElementContent",{opType:"replace",content:{category:"Right Click"}}),u.stageRepresentationForCommit(e,s).then((e=>{if(u.isDeletedLocally||!u.isWritable)return Promise.reject("Library was deleted (or became read-only).");t.beginOperation(),t.removeAllRepresentations();const n=t.createRepresentation(s,"primary"),i=()=>{h.Z.ccLibrariesDriver instanceof b.Si||v.Z.deleteTempFile(e),t.endOperation()};return n.setStagedContent(e).then((()=>{i(),(0,E.when)((()=>t.getPrimaryRepresentation().isCommitted),(()=>_.Z.openToast("message",{message:r,variant:"success"})))}),(e=>(i(),Promise.reject(e))))}))}function U(e,t){const r=t.dataTransfer.files||t.dataTransfer.uxpEntries;r&&r.length>0&&(t.preventDefault(),(h.Z.getDragFileList?h.Z.getDragFileList.bind(h.Z,t.dataTransfer):()=>Promise.resolve(r))().then((t=>{z(e,t)})))}function H(e,t,r,n,i=!1){const o=r?a.Fe(r,i):void 0;return a.fz({multiple:!0,fileTypes:o}).then((r=>{n&&(r=Array.from(r)).forEach((e=>e.role=n)),z(e,r,t)}),(()=>{d.ZP.reportEvent("Add Assets","Element","click","add-cancel",{content:{category:t}})})).catch((()=>{}))}function z(e,t,r){return new Promise(((n,i)=>{const o=(0,s.vI)(e,Array.from(t));if(o.title)if(h.Z.showDialog){const t=0!==o.files.length;h.Z.showDialog("confirm",{title:o.title,variant:"error",confirmLabel:t?(0,l.Iu)("DL_UPLOAD"):(0,l.Iu)("DL_OK"),content:o.messages[0],onConfirm:t?()=>{Z(o.files,e).then(n).catch(i)}:void 0,cancelLabel:t?(0,l.Iu)("DL_CANCEL"):void 0})}else f.ZP.openDialog("dropFiles",o);else if(o.files.length>0)return Z(o.files,e,r).then(n).catch(i)}))}},6739:(e,t,r)=>{"use strict";r.d(t,{c:()=>l});var n=r(99386),i=r(47320),o=r(75067),a=r(31870),s=r(31600);function c(e,t,r){const s=[];return o.ZP.libraries.forEach((o=>{o.isWritable&&o.elements.forEach((o=>{a.wq(o)!==e||a.kv(o)||s.push(function(e,t,r,o){const s=o.purchase_details,c=a.dF(null,e)&&o.comp,l=o.thumbnail,u=a.Ht(e),d=a.kV(e),p=a.Tw(e),h={content_id:t,license:s.license,state:n.Z.STOCK_STATE_PURCHASED,method:d,premiumLevel:p};r&&(h.stock_id=r.toString()),e.beginOperation();const f=[],m=e=>{e.setValue(n.Z.STOCK_NAMESPACE,n.Z.STOCK_DATA_KEY,h),u&&a.mn(e,u),i.Z.setStockMetadata(e,s);const t=e.setContentFromURL(!0,s.url,{}).then((()=>{s.width&&(e.width=s.width),s.height&&(e.height=s.height),e.isFullSize=!0,s.content_length&&(e.contentLength=s.content_length)}));f.push(t)},g=e.getPrimaryRepresentation(),v=c&&c.url;if(g&&g.isExternalLink&&""!==g.getContentURL()&&""!==v)g.relationship="rendition",m(e.createRepresentation(s.content_type,"primary",0,!0));else{if(e.removeAllRepresentations(),m(e.createRepresentation(s.content_type,"primary")),c){const r=e.createRepresentation(c.content_type,"rendition");r.setValue(n.Z.STOCK_NAMESPACE,n.Z.STOCK_DATA_KEY,{content_id:t,state:n.Z.STOCK_STATE_NOT_PURCHASED,method:d}),i.Z.setStockMetadata(r,c);const o=r.setContentFromURL(!0,c.url,{}).then((()=>{c.width&&(r.width=c.width),c.height&&(r.height=c.height),c.content_length&&(r.contentLength=c.content_length)}));f.push(o)}if(e.type===n.Z.CAPSULE_ELEMENT_TYPE){const t=s.capsule;if(t.url_json){const r=e.createRepresentation(n.Z.CAPSULE_DEFINITION_REPRESENTATION_TYPE,"alternate").setContentFromURL(!1,t.url_json,{});f.push(r)}if(t.url_png){const r=e.createRepresentation("image/png","rendition"),n=r.setContentFromURL(!1,t.url_png,{}).then((()=>{t.width&&t.height&&(r.width=t.width,r.height=t.height)}));f.push(n)}}const r=e.createRepresentation(l.content_type,"rendition"),o=r.setContentFromURL(!1,l.url,{}).then((()=>(l.width&&(r.width=l.width),l.height&&(r.height=l.height),r.getContentPath().then((t=>{t&&e.setThumbnailCache(i.Z.getThumbnailSize(e),t)})))));f.push(o)}const y=()=>{e.endOperation()};return Promise.all(f).then(y,y)}(o,e,t,r))}))})),Promise.all(s)}function l(e,t){const r=String(t.id),n=t.is_licensed;return(0,s.Tl)(e,r,n).then((e=>{const t=e&&e.contents&&e.contents[r],n=e&&e.member&&e.member.stock_id;return t&&["purchase_details","thumbnail"].every((e=>{const r=t[e];return r&&r.url&&r.content_type}))?c(r,n,t):Promise.reject("Invalid data from license API: "+JSON.stringify(t))}))}},31870:(e,t,r)=>{"use strict";r.d(t,{dF:()=>te,q$:()=>ge,Qj:()=>fe,tX:()=>de,u$:()=>Q,BG:()=>oe,ST:()=>J,Y8:()=>$,tt:()=>me,Tu:()=>re,Xz:()=>M,si:()=>B,EH:()=>q,wq:()=>z,kV:()=>V,S5:()=>j,Tw:()=>Y,Ht:()=>W,hr:()=>X,gB:()=>ie,U:()=>ee,kv:()=>H,Jw:()=>U,S8:()=>ue,LU:()=>le,i2:()=>G,mn:()=>K,Zg:()=>ne,PS:()=>Z});var n=r(75067),i=r(99386),o=r(76485),a=r(51461),s=r(84824),c=r(34038),l=r(30131),u=r(53849),d=r(20290),p=r(46903),h=r(4784),f=r(84074),m=r(46753),g=r(16993),v=r(47320),y=r(6739),b=r(89526),_=r(72279),E=r(44853),w=r(2652),x=r.n(w),L=r(27611);class O extends b.Component{constructor(...e){super(...e),this.onClickButton=()=>{a.ZP.reportStockEvent("License","click","start",{ui:{sequence:"info-panel"}},this.props.element),l.WS(z(this.props.element),this.props.element.type)}}render(){return b.createElement(_.Z,{"data-test-id":"stock-license-button",onClick:this.onClickButton,className:"stock-license-button"},b.createElement(L.Z,{id:"ShoppingCart",height:18}),b.createElement("div",{className:"stock-license-button-label"},(0,s.Iu)("DL_INFO_BUY_STOCK_LICENSE")))}}O.propTypes={element:x().instanceOf(E.Z).isRequired};var S=r(26964),T=r(31600),P=r(46931),I=r(89526);function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){k(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function k(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const D="cancelled",N="limit",R=["Internal_Use","Digital_Use","Social_Media","Video_HD_Standard","Video_HD_Internal_Use","Video_HD_Digital_Use","Video_HD_Social_Media"];function M(e){if(e)return e.getValue(i.Z.STOCK_NAMESPACE,i.Z.STOCK_DATA_KEY)}function j(e){if(!e||!U(e))return[];const t=[],r=B(e);if(r.content_id){const n=t=>{"Enter"===t.key&&(0,l.WS)(r.content_id,e.type)},i=I.createElement("a",{tabIndex:"0","data-test-id":"stock-id-link",onKeyPress:n,onClick:()=>(0,l.WS)(r.content_id,e.type)},r.content_id);t.push({label:(0,s.Iu)("DL_INFO_STOCK_ID"),value:i})}let n;if(r.creator_name&&t.push({label:(0,s.Iu)("DL_INFO_STOCK_AUTHOR"),value:r.creator_name}),r.license){const t=()=>(0,l.A8)(),o=e=>{"Enter"===e.key&&(0,l.A8)()};n=I.createElement("a",{tabIndex:"0","data-test-id":"stock-licenses-link",onKeyPress:o,onClick:t},(0,s.Iu)(function(e,t){const r=t.license,n=a.ZP.currentUserId;if(n&&!n.includes("@AdobeID")){const n="Standard"===r&&(e.type===i.Z.IMAGE_ELEMENT_TYPE||[0,1].includes(t.premium_level_id));return R.includes(r)?F(r):n?"DL_INFO_STOCK_LICENSE_STANDARD":"DL_INFO_STOCK_LICENSE_EXTENDED"}return t.is_editorial?["Standard_M","Video_HD"].includes(r)?"DL_INFO_STOCK_LICENSE_STANDARD":"DL_INFO_STOCK_LICENSE_ENHANCED":F(r)}(e,r)))}else n=I.createElement(O,{element:e});return g.Z.isOneUpMode()||t.push({label:(0,s.Iu)("DL_INFO_STOCK_LICENSE"),value:n}),r.is_editorial&&t.push({label:(0,s.Iu)("DL_INFO_STOCK_RESTRICTION"),value:(0,s.Iu)("DL_INFO_STOCK_RESTRICTION_EDITORIAL")}),t}function F(e){switch(e){case"Standard":case"Standard_M":case"Video_HD_Standard":return"DL_INFO_STOCK_LICENSE_STANDARD";case"Extended":return"DL_INFO_STOCK_LICENSE_EXTENDED";case"Enhanced":case"Video_HD":case"Video_4K":return"DL_INFO_STOCK_LICENSE_ENHANCED";case"Video_HD_Internal_Use":case"Internal_Use":return"DL_INFO_STOCK_LICENSE_INTERNAL_USE";case"Digital_Use":case"Video_HD_Digital_Use":return"DL_INFO_STOCK_LICENSE_DIGITAL_USE";case"Social_Media":case"Video_HD_Social_Media":return"DL_INFO_STOCK_LICENSE_SOCIAL_MEDIA";default:return"DL_INFO_STOCK_LICENSE_NA"}}function Z(e){const t=B(e);t&&(void 0!==t.is_editorial&&void 0!==t.creator_name&&void 0!==t.premium_level_id||(0,T.W6)(P.Z.libraryManager.userId,t.content_id).then((r=>{const n=r&&r.files&&r.files[0]||{},o=e.getPrimaryRepresentation();if(o){const e=Object.assign({},t,n);o.setValue(i.Z.STOCK_NAMESPACE,i.Z.STOCK_DATA_KEY,e,!0)}})).catch((()=>{S.Z.log("Error with getStockAssetMetadata")})))}function B(e,t){const r=void 0===t?e.getPrimaryRepresentation():e.representations[t];let n=M(r);return n&&r.isExternalLink&&r.getCachedExternalLinkError()&&""!==r.getContentURL()&&(n=B(e,void 0===t?0:t+1)||{content_id:n.content_id,stock_id:n.stock_id,state:"not_purchased",method:n.method,premiumLevel:n.premiumLevel}),n}function G(e,t){e.setValue(i.Z.STOCK_NAMESPACE,i.Z.STOCK_DATA_KEY,t)}function U(e){const t=""!==$(e),r=void 0!==B(e);return t&&r}function H(e){if(i.Z.currentProduct.config.disableLicenseFlow)return!0;const t=B(e);return!(!t||t.state!==i.Z.STOCK_STATE_PURCHASED)}function z(e){const t=B(e);return t?String(t.content_id):null}function V(e){const t=B(e);return t?String(t.method):null}function Y(e){const t=B(e);return t?t.premiumLevel:null}function W(e){let t;return e.representations.some((function(e){return t=e.getValue("stock","query"),t})),t}function K(e,t){e&&e.setValue("stock","query",t)}function $(e){if(e){if(e.type===i.Z.IMAGE_ELEMENT_TYPE)return"_PHOTO";if(e.type===i.Z.VIDEO_ELEMENT_TYPE)return"_VIDEO";if(e.type===i.Z.TEMPLATE_ELEMENT_TYPE)return"_TEMPLATE";if(e.type===i.Z.THREE_D_ELEMENT_TYPE||e.type===i.Z.LIGHT_ELEMENT_TYPE||e.type===i.Z.MATERIAL_ELEMENT_TYPE)return"_THREE_D";if(e.type===i.Z.CAPSULE_ELEMENT_TYPE)return"_CAPSULE";if(e.type===i.Z.AUDIO_ELEMENT_TYPE)return"_AUDIO"}return""}function q(e){const t=e.getPrimaryRepresentation(),r=t&&M(t);if(r&&r.state===i.Z.STOCK_STATE_PURCHASED&&t.isExternalLink&&t.getCachedExternalLinkError())return"DL_STOCK_LICENSE_TO_EDIT"+$(e)}function X(e){if(e.type===i.Z.TEMPLATE_ELEMENT_TYPE){const t=e.getPrimaryRepresentation(),r=t&&M(t),n=r&&r.state===i.Z.STOCK_STATE_PURCHASED;if(t.isExternalLink&&t.getCachedExternalLinkError())return n?"DL_STOCK_LICENSE_TO_USE_TEMPLATE_OWNED":"DL_STOCK_LICENSE_TO_USE_TEMPLATE";if(!t.getCachedContentPath())return"DL_ERROR_PLACE_TEMPLATE_DOWNLOADING"}}function J(e){const t=[];let r,n;return 4===e.media_type_id?(r=i.Z.STOCK_VIDEO_LICENSE_TYPES,n=e.comps):(r=i.Z.STOCK_IMAGE_LICENSE_TYPES,n=e.licenses),n&&r.forEach((function(e){if(n[e.field]){const r=n[e.field];t.push({field:e.field,label:e.label,resolution:r.width+" x "+r.height})}})),t}function Q(e){const t=e.comp_height,r=e.comp_width;if(3===e.media_type_id||4===e.media_type_id)return{width:r,height:t};const n=72/(r/e.width*300);return{width:r*n,height:t*n}}function ee(e){return e.premium_level_id===i.Z.STOCK_FREE_CONTENT_LEVEL_ID}function te(e,t){if(e){const t=e.media_type_id,r=e.comps,n=7!==t&&6!==t,i=!!r&&0!==r.length;return n&&!ee(e)&&i}if(!t)return!1;switch(t.type){case i.Z.TEMPLATE_ELEMENT_TYPE:case i.Z.THREE_D_ELEMENT_TYPE:case i.Z.MATERIAL_ELEMENT_TYPE:case i.Z.LIGHT_ELEMENT_TYPE:return!1;default:return!0}}function re(){const e=i.Z.currentProduct.config.code,t=i.Z.STOCK_TEMPLATES_SUPPORTED_PRODUCTS.indexOf(e)>-1?i.Z.STOCK_SEARCH_UI_OPTIONS:i.Z.STOCK_SEARCH_UI_OPTIONS.filter((e=>e!==i.Z.STOCK_SEARCH_OPTION_TEMPLATE));return i.Z.currentProduct.config.STOCK_SEARCH_UI_OPTIONS||t}function ne(e,t,r,s,c){const l=c&&""!==c.is_licensed,u=c||{},d=u.id,p=void 0===d?z(e):d,h=u.is_licensed,f="CCLibrariesPanel";return new Promise(((r,u)=>{a.ZP.reportStockEvent("License","render","window",{},e);let d=e;if(!e.getLegacyReference){const e=de(p,n.ZP.getLibraryById(t)||n.ZP.currentLibrary);e&&(d=e)}if(o.Z.hasUXPStockExtension)return r(o.Z.openStockLicenseExtension({element:d,contentId:p,skipQuotaCheck:l,licenseType:h,metadata:s,addToLibraryID:t,stockSearchAsset:c,invokerId:f}));function m(t){t.data.isError?a.ZP.reportStockEvent("License","render","error",{event:{error_code:t.data.statusCode,error_type:t.data.errorType}},e):e&&e.id&&a.ZP.reportCheckoutElement(e,t.data.cartId,t.data.opType)}const g=i.Z.STOCK_PURCHASE_EXTENSION_ID,v="com.adobe.stock.panel.license.init";function y(e){if("com.adobe.csxs.events.ExtensionUnloaded"===e.type){const t=(new DOMParser).parseFromString(e.data,"text/xml");if(t.getElementsByTagName("Id")[0].childNodes[0].nodeValue!==g||"1"!==t.getElementsByTagName("ClosingType")[0].childNodes[0].nodeValue)return}o.Z.removeEventListener(b,y),o.Z.removeEventListener("com.adobe.csxs.events.ExtensionUnloaded",y),o.Z.removeEventListener("com.adobe.inapp.purchase.reportMetric",m);const t=e.data;var n;t&&t.didFinish?r(C(C({},t.data),{},{elementRef:t.elementRef||(null===(n=t.data)||void 0===n?void 0:n.elementRef)})):u(t&&t.data)}o.Z.addEventListener(v,(function r(){o.Z.removeEventListener(v,r);const n=o.Z.createEvent("com.adobe.stock.panel.license.perform","APPLICATION","CCLibrariesPanel",o.Z.getExtensionID());let i;"function"==typeof d.getLegacyReference&&(i=d.getLegacyReference()),n.data={elementRef:i,elementType:e.type,elementName:e.name,contentId:p,skipQuotaCheck:l,licenseType:h,metadata:s,addToLibraryID:t,stockSearchAsset:c,invokerId:f},o.Z.dispatchEvent(n)})),o.Z.addEventListener("com.adobe.inapp.purchase.reportMetric",m);const b="com.adobe.stock.panel.license.closed";o.Z.addEventListener(b,y),o.Z.addEventListener("com.adobe.csxs.events.ExtensionUnloaded",y),o.Z.requestOpenExtension(g)}))}function ie(e){const t=e.title,r=e.media_type_id,n=e.content_type,i=[];if(t&&i.push(t),!r)return i;const o=(0,s.Iu)(`DL_STOCK_ASSET_TOOLTIP_TYPE_${r}`),a=oe(r),l=(c.i_(a,n)||{}).badge;if(!l)return i.push(o),i;const u=(0,s.Iu)("DL_STOCK_ASSET_TOOLTIP_DESCRIPTION",{type:o,contentType:l});return i.push(u),i}function oe(e,t){const r={[c.PJ]:i.Z.CAPSULE_ELEMENT_TYPE,[c.e5]:i.Z.CAPSULE_ELEMENT_TYPE},n={[c.Q1]:i.Z.LIGHT_ELEMENT_TYPE,[c.a5]:i.Z.MATERIAL_ELEMENT_TYPE};switch(e){case 4:return i.Z.VIDEO_ELEMENT_TYPE;case 7:return r[t]||i.Z.TEMPLATE_ELEMENT_TYPE;case 6:return n[t]||i.Z.THREE_D_ELEMENT_TYPE;case 9:return i.Z.AUDIO_ELEMENT_TYPE;default:return i.Z.IMAGE_ELEMENT_TYPE}}function ae(e,t){return h.Z.canAddElements(t)?e.id&&e.content_type&&e.media_type_id&&(0,p.oY)(t,!1,!0)?Promise.resolve({asset:e,library:t}):Promise.reject():Promise.reject({reason:N})}const se={[N]:{title:"DL_DESIGN_LIBRARY_HAS_LIMIT_TITLE",message:"DL_DESIGN_LIBRARY_HAS_LIMIT"},UNKNOWN:{title:"DL_STOCK_SAVE_UNKNOWN_ERROR_TITLE",message:"DL_STOCK_SAVE_UNKNOWN_ERROR"}};function ce({reason:e}={}){const t=se[e||"UNKNOWN"];if(t)return f.ZP.openDialog("stockError",t),Promise.reject()}function le({asset:e,library:t,img:r}){const n=oe(e.media_type_id,e.content_type);let o;return ae(e,t).then((()=>(o=(0,m.E)(r,{},"png"),function(e){const t=oe(e.media_type_id,e.content_type);if((t!==i.Z.IMAGE_ELEMENT_TYPE||!e.is_editorial&&!e.is_premium)&&t!==i.Z.VIDEO_ELEMENT_TYPE)return Promise.resolve(i.Z.STOCK_LICENSE_TYPE_STANDARD);const r=J(e);return 0===r.length?Promise.reject():t===i.Z.IMAGE_ELEMENT_TYPE?Promise.resolve(r[0].field):t===i.Z.VIDEO_ELEMENT_TYPE?e.is_licensed===i.Z.STOCK_VIDEO_LICENSE_TYPE_4K.field?Promise.resolve(i.Z.STOCK_VIDEO_LICENSE_TYPE_4K.label):1===r.length?Promise.resolve(r[0].label):new Promise(((e,t)=>{f.ZP.openDialog("stockVideoCompPicker",{licenseA:r[0],licenseB:r[1],onClickOK:t=>e(t.label),onClickCancel:()=>t({reason:D})})})):void 0}(e)))).then((r=>fe({library:t,elementType:n,asset:e,thumbnailDetails:o,licenseType:r}).promise)).then((e=>(u.Z.revealElement(e),e))).catch((e=>e&&e.reason===D?Promise.reject():ce(e)))}function ue({asset:e,library:t}){return ae(e,t).then((()=>ne({type:oe(e.media_type_id,e.content_type)},t.id,0,he(e),e).catch((()=>Promise.reject({reason:D}))))).then((({createdElementRef:e,elementRef:t}={})=>e||t?(0,d.XD)(100,30,(()=>n.ZP.resolveElementReference(e||t))):Promise.reject())).then((e=>{if(e)return u.Z.revealElement(e),e})).catch((e=>ce(e)))}function de(e,t){if(!e||!t)return;const r=String(e),n=t.getFilteredElements((e=>r===z(e)));return n[n.length-1]}function pe(e){const t=e||{},r=t.id,n=t.url,i=t.path;return r?"similarSearch":n||i?"visualSearch":"search"}function he(e){return{searchText:g.Z.getSearchText(),method:pe(g.Z.getFindSimilarData()),premiumLevel:e.premium_level_id}}function fe({library:e,elementType:t,asset:r,thumbnailDetails:n,licenseType:o}){if(!h.Z.canAddElements(e))return{promise:Promise.reject({reason:N})};const s=he(r),l=e.createElement(r.title,t),u=[],d=l.createRepresentation(r.content_type,"primary");G(d,{content_id:r.id,stock_id:r.stock_id,state:i.Z.STOCK_STATE_NOT_PURCHASED,method:s&&s.method,premiumLevel:r.premium_level_id}),a.ZP.reportElementEvent("Add Assets","Element","click","add",l,{event:{value:"single"},content:{category:"Stock Search"}}),s&&s.searchText&&K(d,s.searchText);let p={url:"",width:0,height:0};if(te(r)){const e=v.Z.getStockCompKeyForLicenseType(t,o);p=r.comps[e]}const f=d.setContentFromURL(!0,p.url,{}).then((()=>{if(d.width=p.width,d.height=p.height,r.content_length&&(d.contentLength=r.content_length),r.framerate||r.duration){const e=t===i.Z.VIDEO_ELEMENT_TYPE?i.Z.VIDEO_NAMESPACE:i.Z.AUDIO_NAMESPACE;t===i.Z.AUDIO_ELEMENT_TYPE?d.setValue(e,"data",{duration:r.duration}):d.setValue(e,"data",{framerate:r.framerate,duration:r.duration})}r.audio_samplerate&&d.setValue(i.Z.AUDIO_NAMESPACE,"data",{samplerate:r.isLicensed?r.audio_samplerate:r.audio_samplerate_preview})}));u.push(f);const m=[];if(n&&n.path){const e=l.createRepresentation(c.pH(n.path,t),"rendition"),r=e.setContentFromPath(n.path,!1).then((()=>{n.width&&(e.width=n.width),n.height&&(e.height=n.height)}));u.push(r),m.push(l.setThumbnailCache(v.Z.getThumbnailSize(l),n.path))}else if(n&&n.dataURL){const e=l.createRepresentation("image/png","rendition"),t=e.setContent(n.dataURL,"base64",`${c.Rl()}.png`).then((()=>{n.width&&(e.width=n.width),n.height&&(e.height=n.height)}));u.push(t)}else if(r.thumbnail_url){const e=r.thumbnail_url.split("?")[0],n=c.pH(e,t)||"image/jpeg",i=l.createRepresentation(n,"rendition"),o=i.setContentFromURL(!1,e).then((()=>{const e=v.Z.getThumbnailSize(l);m.push(i.getContentPath().then((t=>l.setThumbnailCache(e,t))))}));u.push(o)}return{promise:Promise.all(u).then((()=>{if(r.is_licensed){const e=P.Z.libraryManager.userId;m.push((0,y.c)(e,r).then((()=>l.endOperation())))}else m.push(l.endOperation());return Promise.all(m)})).then((()=>l)).catch((()=>(l.library.removeElement(l,!0),Promise.reject()))),element:l}}function me(){const e=i.Z.currentProduct.config.code,t=i.Z.currentProduct.config.productVersion,r=i.Z.STOCK_SEARCH_PRODUCT_MOGRT_VERSION_MAP[e];if(!r)return;const n=Object.keys(r).sort().reverse().find((e=>t>=e));return n&&r[n]}function ge(){if(o.Z.hasUXPStockExtension)return!0;const e=!!o.Z.requestOpenExtension,t=o.Z.getAvailableExtensions().some((e=>e.name===i.Z.STOCK_PURCHASE_EXTENSION_ID));return e&&t}},39293:(e,t,r)=>{"use strict";r.d(t,{F:()=>c,GR:()=>f,Hc:()=>l,Is:()=>s,Ol:()=>p,QE:()=>u,lv:()=>h,ns:()=>d,re:()=>a});var n=r(99386),i=r(76485),o=r(85834);function a(e,t){const r=t||i.Z.isBrandCreator,n=l(e);return!(!r||!n)}function s(){return o.Z.get("useFakeProjectName")?"Fake Project":"Adobe GenStudio Brands"}function c(e){return!e.isDocumentAssets&&e.isParentWritable&&e.isWritable&&!e.isDeletedFromServer}function l(e){return!(null==e||!e.publishedFrom)}function u(e){return!(null!=e&&e.publishedFrom||null!=e&&e.publishedTo)}function d(e,t){const r=null==e?void 0:e.publishedTo;let n=!1;return r&&(n=t.find((e=>e.assetId===r))),!(r&&n)}function p(e){var t;return!(null==e||null===(t=e.roles)||void 0===t||!t.find((e=>e.type===n.Z.ROLE_TYPE_BRAND)))}function h(e){return/\/brands\/.+/.test(e)}function f(e,t){return new Promise(((r,n)=>{const i=setTimeout((()=>{const e=new Error("timeout");e.statusCode="408",n(e)}),e);t.then((e=>{clearTimeout(i),r(e)}),(e=>{clearTimeout(i),n(e)}))}))}},36351:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(76485);const i=new class{get isOnline(){return n.Z&&void 0!==n.Z.isOnline?n.Z.isOnline:window.navigator.onLine}}},50777:(e,t,r)=>{"use strict";r.d(t,{BQ:()=>j,RI:()=>Z,Sz:()=>F,jK:()=>M,x3:()=>B});var n=r(76485),i=r(53849),o=r(75067),a=r(79799),s=r(46903),c=r(99386),l=r(8733),u=r(47320),d=r(76325),p=r(51461),h=r(85834),f=r(69834),m=r(17179),g=r(84824);function v(){v=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==t&&r.call(g,i)&&(f=g);var y=h.prototype=d.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=h,s(y,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function y(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const b="com.adobe.capture.extension",_="com.adobe.capture.extension.init",E="com.adobe.capture.extension.image",w="com.adobe.capture.extension.save",x="com.adobe.capture.extension.close",L="com.adobe.capture.extension.setCapturePreference",O="com.adobe.capture.extension.getCapturePreference",S="com.adobe.capture.extension.preferenceKey";let T,P,I;const A={colorTheme:"Colors",shape:"Shapes",gradient:"Gradients",pattern:"Patterns",type:"Type"},C=(e,t)=>{if(e&&e.data){const r=e.data;let n=null;const a=(0,s.l8)("personal",o.ZP.libraries);o.ZP.currentLibrary?n=o.ZP.currentLibrary:a&&(m.Z.sortByModified(a),n=a[0]),n||(n=o.ZP.createLibrary((0,g.Iu)("DL_CAPTURE_DEFAULT_LIBRARY_NAME")));const c=(0,s.In)(n,"",r.prefix),l=n.createElement(c,r.type),u=[];l.setValue("capture","data",r.captureData||{}),r.representations.forEach(((e,t)=>{const n=l.createRepresentation(e.type,e.relationship);if(e.metadata)for(const t in e.metadata)n.setValue(r.namespace,t,e.metadata[t]);e.filePath?u.push(n.setContentFromPath(e.filePath)):"json"===e.extension?n.setValue(r.namespace,"data",e.data):u.push(n.setContent(e.data,e.encoding,`asset${t}.${e.extension}`))})),Promise.all(u).then((()=>{l.endOperation(),p.ZP.reportEvent("Add Assets","Element","click","add",{event:{value:"agg",count:1},content:{category:"Capture",mimetype:r.type}}),i.Z.revealElement(l),t&&t([l])}))}},k=function e(){n.Z.removeEventListener(_,T),n.Z.removeEventListener(w,I),n.Z.removeEventListener(x,e),n.Z.removeEventListener(L,z),n.Z.removeEventListener(O,V)},D=function(){const e=c.Z.currentProduct.config.captureModules||[];return o.ZP.isRestrictedAccount?e.filter((e=>"Type"!==e)):e};function N(){const e=D();return(n.Z.hasUXPCaptureExtension||function(){if(void 0===P){const e=document.createElement("canvas").getContext("webgl");P=null!=e}return P}())&&e.length>0}function R(){return Boolean(c.Z.currentProduct.config.isCaptureEnabled)}function M(){return!R()&&N()}function j(){return N()&&(R()||h.Z.get("capture"))}function F(){return u.Z.getAddOperations(l.Z.getLayerInfo(),o.ZP.currentLibrary).some((e=>"DL_CAPTURE"===e.name))}function Z(e=!1,t,r){l.Z.getLayerInfo()&&l.Z.getLayerInfo().selectionExists?(0,s.g0)("",1024,1024).then((n=>{H(e,n.rendition,t,r)}),(()=>H(e,void 0,t,r))):H(e,void 0,t,r)}function B(e,t){Array.isArray(t)&&t.length?H(!1,t[0],null,e):Z(!1,null,e)}function G(e){return`${o.ZP.userId}#capture#${e}`}function U(e){return a.Z.getLocalMachineSetting(G(e))}function H(e,t,r,i){n.Z.hasUXPCaptureExtension?function(e,t,r,i){n.Z.getBase64DataFromImage(t).then((t=>{const a=window.nodeRequire("uxp").pluginManager,s=Array.from(a.plugins).find((e=>"com.adobe.cclibrariespanel"===e.id)).pluginPath+"extensions/capture",c=a.createPlugin(s,a.PLUGIN_TYPE_FIRST_PARTY,{name:"Extract from Image",allowCodeGenerationFromStrings:!0});a.addPlugin(c,!0);const l=c.runtime;l.addEventListener(a.RUNTIME_INITIALIZE,(()=>{l.registerUxpModule("host",(()=>window.nodeRequire("uxp").host)),l.registerUxpModule("licensing",(()=>window.nodeRequire("uxp").licensing)),l.registerUxpModule("eventTarget",(()=>{const e=new f.Z;return e.addEventListener(w,(e=>{e.detail&&C(e.detail,r)})),n.Z.addEventListener(L,z),n.Z.addEventListener(O,V),e})),n.Z.additionalCaptureCoreModules&&n.Z.additionalCaptureCoreModules.forEach((e=>l.registerCoreModule(e,(()=>window.nodeRequire(e)))))})),l.load(),window.nodeRequire("uxp").licensing.fetchProfile().then((r=>{const n=D(),s={takeTour:e,imageURI:t,modules:n,selectedModule:i?A[i]:n[0],env:d.Z.getEnvironment().label,tempDir:o.ZP.tempDir,analyticsEnabled:o.ZP.ANALYTICS_ENABLED},u=JSON.parse(r).UserProfile;u&&(s.userId=u.userId,s.userAccountStatus="type3"===u.accountType?"paid":"free"),l.invokeCommand("createFromImage",s).then(function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){y(o,n,i,a,s,"next",e)}function s(e){y(o,n,i,a,s,"throw",e)}a(void 0)}))}}(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.unload();case 2:a.removePlugin(c);case 4:case"end":return e.stop()}}),e)}))))}))}))}(e,t,r,i):function(e,t,r,i){k(),T=function(){n.Z.removeEventListener(_,T);const r=r=>{const a=n.Z.createEvent(E,"APPLICATION","CCLibrariesPanel",n.Z.getExtensionID()),s=D();a.data={takeTour:e,imageURI:t,modules:s,selectedModule:i?A[i]:s[0],userId:o.ZP.userId,userAccountStatus:r&&r.userAccountStatus,env:d.Z.getEnvironment().label,tempDir:o.ZP.tempDir,analyticsEnabled:o.ZP.ANALYTICS_ENABLED},n.Z.dispatchEvent(a)};c.Z.currentProduct.getUserData?c.Z.currentProduct.getUserData((e=>r(e))):r()},I=e=>C(e,r),n.Z.addEventListener(_,T),n.Z.addEventListener(w,I),n.Z.addEventListener(x,k),n.Z.addEventListener(L,z),n.Z.addEventListener(O,V),n.Z.requestOpenExtension(b)}(e,t,r,i)}function z(e){const t=e&&e.data;if(t){let e=U(S);e||(e={}),Object.assign(e,t),r=S,n=e,a.Z.setLocalMachineSetting(G(r),n)}var r,n}function V(e){const t=e&&e.data,r=t.eventId,i=t.preferenceKey;if(r&&i){const e=n.Z.createEvent(r,"APPLICATION","CCLibrariesPanel",n.Z.getExtensionID());if(t){const t=U(S);t&&(e.data=t[i])}n.Z.dispatchEvent(e)}}},74379:(e,t,r)=>{"use strict";r.d(t,{$W:()=>y,At:()=>I,CV:()=>B,E9:()=>b,Lo:()=>w,Nh:()=>H,Zi:()=>V,Zw:()=>F,_b:()=>L,bA:()=>P,dF:()=>j,ds:()=>W,eO:()=>z,hx:()=>G,lP:()=>U,m3:()=>S,mj:()=>E,mr:()=>Z,su:()=>O,tX:()=>k,vq:()=>v,wo:()=>h,xc:()=>Y});var n=r(99386),i=r(76485),o=r(47320),a=r(84824);const s=["alpha"],c=["alpha"];function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}const h={MONITOR:"monitor",SRGB:"srgb"};function f(e,t,r){return Math.max(0,Math.min(255,e))<<16|Math.max(0,Math.min(255,t))<<8|Math.max(0,Math.min(255,r))}const m=Math.pow(2,24);function g(e,t=1){return(t=Math.round(255*t))*m+e}function v(e,t,r){let n=f(e,t,r).toString(16).toUpperCase();for(;n.length<6;)n="0"+n;return"#"+n}function y(e){return e="#"===e.charAt(0)?e.substring(1):e,{red:parseInt(e.substring(0,2),16),green:parseInt(e.substring(2,4),16),blue:parseInt(e.substring(4,6),16)}}function b(e){e="#"===e.charAt(0)?e.substring(1):e;let t=parseInt(e.substring(6,8),16);return t=isNaN(t)?255:t,Object.assign({alpha:t},y(e))}function _(e){return(e.red+e.green+e.blue)/3}function E(e,t){return Math.abs(_(e)-_(t))}function w(e){const t=y(e),r=t.red,n=t.green,i=t.blue,o=Math.max(r,n,i);let a;const s=o-Math.min(r,n,i);return a=0===s?0:o===r?(n-i)/s%6:o===n?(i-r)/s+2:(r-n)/s+4,a=Math.round(60*a),a<0&&(a+=360),a}const x=(e,t)=>r=>{const n=Array.isArray(r)?H(r):r;return n&&n.value?e(Math.round(n.value.r),Math.round(n.value.g),Math.round(n.value.b),n.alpha):t},L=x(((e,t,r,n)=>({red:e,green:t,blue:r,alpha:n}))),O=x(((e,t,r)=>({red:e,green:t,blue:r}))),S=x(v,""),T=x(f),P=x((function(e,t,r,n=1){return g(f(e,t,r),n)})),I=(e,t)=>{const r=T(e);return r&&g(r,t)},A=(e,t)=>x(((e,r,n)=>`rgba(${e},${r},${n},${t})`))(e),C=e=>Math.round(100*e)/100;function k(e,t,r){if(!e)return;let n=U(e);if(!n)return;let i=void 0===n.alpha?1:n.alpha;if(void 0!==r){const e=r(u(u({},n.value),{},{alpha:i})),t=e.alpha,o=p(e,s),a=u(u({},n),{},{value:u({},n.value)});a.value=o,n=a,i=t}return A(n,t?.2:i)}function D(e,t,r){return C(t+(r-t)*e)}function N(e,t,r){const n=H(t),i=H(r);if(n&&i)return[{mode:"RGB",value:{r:D(e,n.value.r,i.value.r),g:D(e,n.value.g,i.value.g),b:D(e,n.value.b,i.value.b)}}]}function R(e,t){const r=[];for(let n=0;n<t.length;n++){const i=t[n],o=t[n+1];if(r.push(i),o&&o.midpoint&&.5!==C(o.midpoint)){const t="color"===e?N:D;r.push({offset:D(o.midpoint,i.offset,o.offset),[e]:t(.5,i[e],o[e])})}}return r}function M(e,t,r,n){const i=r.find((e=>e.offset>t));return i?n?("color"===e?N:D)(((e,t,r)=>(r-e.offset)/(t.offset-e.offset))(n,i,t),n[e],i[e]):i[e]:n[e]}function j(e,t,r=!0){let n=e.slice(0);return n.forEach((e=>e.opacity=void 0)),r&&(n=R("color",e)),t&&0!==t.length?n=function(e,t,r=!0){const n=e=>e.forEach((e=>{i[e.offset]=i[e.offset]||{},Object.assign(i[e.offset],e)})),i={};let o;return n(e),n(t),Object.keys(i).sort().map((n=>{const a=i[n];return r&&(a.color=a.color||M("color",n,e,o)),void 0===a.opacity&&r&&(a.opacity=M("opacity",n,t,o)),o=a,a}))}(n,r?R("opacity",t):t,r):n.forEach((e=>e.opacity=1)),n}function F(e,t,r,n=!1,i){if(!e||!e.representations||0===e.representations.length)return;const o=e.getPrimaryRepresentation().getValue("gradient","data");return o?Z(o,t,r,n,i):void 0}function Z(e,t,r=!0,n=!1,o){let a=e.type,s=e.stops,l=e.opacities,d=e.angle,h=e.aspectRatio,f=e.scale,m=e.centerPoint;if(n&&(a="linear",d=0),!["linear","radial"].includes(a)||!s)return;d=d||0,h=h||1,f=f||1;const g=.5*f,v=m&&void 0!==m.x?m.x:.5,y=m&&void 0!==m.y?m.y:.5;let b;s=j(s,l);const _="radial"===a&&!i.Z.hasUXPTransformBug&&r,E=[];for(let e=0;e<s.length;e++){const r=s[e],n=r.color&&r.color.length&&r.color.find((e=>"RGB"===e.mode));if(!n)return;let i=t?.2:r.opacity,a=n;if(void 0!==o){const e=o(u(u({},n.value),{},{alpha:i})),t=e.alpha,r=p(e,c);a=u(u({},n),{},{value:u({},n.value)}),a.value=r,i=t}const l=A(a,i),d=r.offset&&`${Math.round(100*r.offset)}%`;E.push(`${l} ${d||""}`)}if("linear"===a&&E.unshift(90-d+"deg"),_){const e=Math.ceil(2*Math.max(Math.max(1,Math.abs(v))/g,Math.max(1,Math.abs(y))/(g*h)));"radial"===a&&E.unshift(`ellipse ${50/e}% ${50/e}% at 50% 50%`),b=`translate(${C(100*(v-.5))}%, ${C(100*(y-.5))}%) rotate(${-1*d}deg) scale(${f*e},${f*e*h})`}else"radial"===a&&E.unshift(`ellipse ${C(100*g)}% ${C(100*g*h)}% at ${C(100*v)}% ${C(100*y)}%`);return{backgroundImage:`${a}-gradient(${E.join(",")})`,transform:b}}function B(e,t){if(!e||!Array.isArray(e))return;const r=e.find((e=>"RGB"===e.mode));return r?A(r,t?.2:1):void 0}function G(e,t=!0){let r;return e&&(t?"CMYK"===e.mode?r="C"+Math.round(e.value.c)+" M"+Math.round(e.value.m)+" Y"+Math.round(e.value.y)+" K"+Math.round(e.value.k):"RGB"===e.mode?r="R"+Math.round(e.value.r)+" G"+Math.round(e.value.g)+" B"+Math.round(e.value.b):"Lab"===e.mode?r="L"+Math.round(e.value.l)+" A"+Math.round(e.value.a)+" B"+Math.round(e.value.b):"HSB"===e.mode?r="H"+Math.round(e.value.h)+" S"+Math.round(e.value.s)+" B"+Math.round(e.value.b):"Gray"===e.mode&&(r="G"+Math.round(e.value)):"CMYK"===e.mode?r=Math.round(e.value.c)+", "+Math.round(e.value.m)+", "+Math.round(e.value.y)+", "+Math.round(e.value.k):"RGB"===e.mode?r=Math.round(e.value.r)+", "+Math.round(e.value.g)+", "+Math.round(e.value.b):"Lab"===e.mode?r=Math.round(e.value.l)+", "+Math.round(e.value.a)+", "+Math.round(e.value.b):"HSB"===e.mode?r=Math.round(e.value.h)+", "+Math.round(e.value.s)+", "+Math.round(e.value.b):"Gray"===e.mode&&(r=Math.round(e.value))),r}function U(e){if(e&&e.representations)return H(e.representations.map((e=>e.getValue("color","data"))))}function H(e){const t=e.filter((e=>e&&"RGB"===e.mode));return t.find((e=>!e.profileName||e.profileName===n.Z.DEFAULT_SRGB_PROFILE))||t[0]}const z=x(((e,t,r)=>(e+t+r)/3>=230),!1);function V(e){const t=(Array.isArray(e)?e:[e]).filter((e=>!!e)),r=[],n=t.find((e=>e.type));n&&(r.push({label:(0,a.Iu)("DL_INFO_COLOR_TYPE"),value:(0,a.Iu)(`DL_INFO_${n.type.toUpperCase()}_COLOR_TYPE`)}),"spot"===n.type&&n.profileName&&r.push({label:(0,a.Iu)("DL_INFO_COLOR_PROFILE"),value:n.profileName})),t.forEach((e=>{if("RGB"===e.mode){const t=S(e).toUpperCase();t&&r.push({label:"HEX",value:t})}const t=G(e,!1);r.push({label:e.mode,value:t})}));const i=t.find((e=>e.spotColorName));i&&r.push({label:"SPOT",value:i.spotColorName});const o=t.find((e=>void 0!==e.alpha));return o&&r.push({label:(0,a.Iu)("DL_INFO_OPACITY"),value:(0,a.Iu)("DL_PERCENTAGE",{percent:100*o.alpha})}),r}function Y(e){const t=o.Z.findUsableRepresentation(e,"application/vnd.adobe.colortheme+json"),r=t&&t.getValue("colortheme","data");return r&&Array.isArray(r.swatches)?r.swatches.map((e=>({hex:S(e),data:V(e),swatch:e}))):[]}function W(e){const t=e.getPrimaryRepresentation(),r=t&&t.getValue("gradient","data");if(r&&Array.isArray(r.stops)){const e=j(r.stops,r.opacities,!1);return e.map(((t,r)=>{let n=[];t.color&&(n=n.concat(V(t.color)));const i=r>0?e[r-1]:null;if(i){const e=(t.offset-i.offset)/2;t.midpoint=t.offset-e}else t.midpoint=void 0;return t.opacity&&n.push({label:(0,a.Iu)("DL_INFO_OPACITY"),value:(0,a.Iu)("DL_PERCENTAGE",{percent:Math.round(100*t.opacity)})}),n.push({label:(0,a.Iu)("DL_INFO_GRADIENT_OFFSET"),value:(0,a.Iu)("DL_PERCENTAGE",{percent:Math.round(100*t.offset)})}),t.midpoint&&n.push({label:(0,a.Iu)("DL_INFO_GRADIENT_MIDPOINT"),value:(0,a.Iu)("DL_PERCENTAGE",{percent:Math.round(100*t.midpoint)})}),{offset:t.offset,data:n}}))}return[]}},26964:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(76485),i=r(34038),o=r(86351);const a=()=>window.nodeRequire("fs"),s=".log",c=new class{constructor(e={}){this._progressMap=new Map,this._enabled=!0,this.pendingLogWrite=null,this.writingToLog=!1,this._isInitialized=!1,this._messagesBeforeInit="",this._duplicateMessageCount=0,this._maxLogSize=e.maxLogSize||5242880}_swapLogIfNeeded(e){const t=a();t.stat(this.logFilePath,((r,n)=>{!r&&n.size>this._maxLogSize?t.rename(this.logFilePath,this.prevLogFilePath,e):e(null)}))}_doLogWrite(){i.u2(this.logRoot,(e=>{if(e)return this.pendingLogWrite=void 0,console.error(e),void this._listenerManager.notify("flushed");this._swapLogIfNeeded((e=>{if(e)return this.pendingLogWrite=void 0,console.error(e),void this._listenerManager.notify("flushed");const t=this.pendingLogWrite;this.pendingLogWrite=void 0,this.writingToLog=!0,a().appendFile(this.logFilePath,t,(e=>{e&&console.error(e),this.writingToLog=!1,this.pendingLogWrite?this._doLogWrite():this._listenerManager.notify("flushed")}))}))}))}init(){if(this._isInitialized||!n.Z.supportsFileSystem)return;this._listenerManager=(0,o.N)(this,["flushed"]);const e=window.process.env;if(n.Z.isWindowsOS()){const t=e&&e.TEMP.replace(/\\/g,"/");this.logRoot=t+"/CreativeCloud/Creative Cloud Libraries"}else this.logRoot=e&&e.HOME+"/Library/Logs/CreativeCloud/Creative Cloud Libraries";this.logFilePrefix="CC Library Panel "+n.Z.getAppName()+" "+n.Z.getAppVersion(),this.logFilePath=this.logRoot+"/"+this.logFilePrefix+s,this.prevLogFilePath=this.logRoot+"/"+this.logFilePrefix+" (prev)"+s,this.jsxLogFilePath=this.logRoot+"/"+this.logFilePrefix+" (jsx)"+s,n.Z.exec("CORE","setLogPath",[this.jsxLogFilePath]),n.Z.exec("CORE","writeToLog",["","--- Starting new session ---"]),this._isInitialized=!0,this._messagesBeforeInit&&(this.pendingLogWrite=this._messagesBeforeInit,this._messagesBeforeInit="",this._doLogWrite())}enable(){this._enabled=!0}disable(){this._enabled=!1}log(e){if(!this._enabled)return;if(e===this._previousMessage)return void this._duplicateMessageCount++;if(n.Z.debugLog(e)||!n.Z.supportsFileSystem)return;let t=`${(new Date).toString()} ${e}\n`;this._previousMessage&&this._duplicateMessageCount>0&&(t=`${(new Date).toString()} ${this._previousMessage} (${this._duplicateMessageCount})\n${t}`),this._previousMessage=e,this._duplicateMessageCount=0,this._isInitialized?this.pendingLogWrite?this.pendingLogWrite+=t:(this.pendingLogWrite=t,this.writingToLog||this._doLogWrite()):this._messagesBeforeInit+=t}showLogFile(e){const t=n.Z.isWindowsOS()?"start":"/usr/bin/open";window.cep.process.createProcess(t,e?this.jsxLogFilePath:this.logFilePath)}getLogFolder(){return this.logRoot}progress(e){let t=this._progressMap.get(e);if(t)return t;const r=Date.now();return t={log:t=>this.log(`${e}: ${t}: ${Date.now()-r}ms`),end:()=>this._progressMap.delete(e)},this._progressMap.set(e,t),t}}},26981:(e,t,r)=>{"use strict";r.d(t,{Ig:()=>f,SF:()=>h,_C:()=>d,gc:()=>p,jY:()=>m,rr:()=>u});var n=r(99386),i=r(47320),o=r(53849),a=r(8733),s=r(46903),c=(r(74149),r(76485));function l(e,t){const r=a.Z.getLayerInfo();return i.Z.getAddOperations(r,t).find((t=>t.dropSupport&&function(e,t){return!t||e.type===n.Z.getElementType(t)}(t,e)))}function u(e,t){const r=e.assetList[0],n=r&&r.data,i=l(r&&r.type,t);return i&&t?i.apply(t,"dragToPanel",n).then((e=>(o.Z.setSelection(e,!0),e))):Promise.reject("Unsupported drag data")}function d(e,t){const r=e.assetList[0],n=l(r.type,t),i=e=>n&&n.getDropLabel?n.getDropLabel(e,t):e;return r.name?Promise.resolve([i(r.name)]):(0,s.Ph)(t).then((e=>[i(e)]))}function p(e){const t=e.includes?"includes":"contains";return e[t]("Files")&&!e[t]("com.adobe.cep.dnd.pasteboardtype")||e[t]("application/uxp-entry-type")}function h(e){return!!e&&!!(e.feedback||e.assetList&&e.assetList.length>0)}function f(){return!c.Z.isWindowsOS()&&!c.Z.disableCustomDragImage}function m(){return Boolean(n.Z.currentProduct.config.addSupportForTextStyle)}},68895:(e,t,r)=>{"use strict";r.d(t,{EZ:()=>p,Fb:()=>h,VH:()=>d,tw:()=>u,wH:()=>m});var n=r(99386),i=r(76485),o=r(31870),a=r(84824);function s(e,t,r){if(r&&n.Z.currentProduct.config.disableDefaultEditError)return;const o=(0,a.Iu)(e,t);i.Z.showError(o)}function c(e){return e.getActions("edit").filter((e=>e.appCode&&e.appCode!==n.Z.currentProduct.config.code))}function l(e,t){e?0!==e.installedVersions.length?e.isCompatibleVersionInstalled?e.invoke((e=>{e&&("APP_LAUNCH_TIMEOUT"===e.underlyingError||"APP_LAUNCH_FAILED"===e.underlyingError?s("DL_ERROR_APP_LAUNCH_TAKING_TIME"):"APP_SEND_ACTION_FAILED"===e.underlyingError?s("DL_ERROR_EDIT_FAILED"):s(t,void 0,!0))})):s(i.Z.canPlaceElements?"DL_ERROR_UPDATE_NEEDED":"DL_ERROR_UPDATE_NEEDED_NO_PLACE",{app:e.appName}):s(i.Z.canPlaceElements?"DL_ERROR_INSTALL_NEEDED":"DL_ERROR_INSTALL_NEEDED_NO_PLACE",{app:e.appName}):s(t,void 0,!0)}function u(e){return c(e).length>0}function d(e,t=!1){const r=(0,o.EH)(e);t&&r?s(r):l(c(e)[0],"DL_ERROR_INVALID_FILE_FORMAT_"+n.Z.currentProduct.config.translationSuffix)}function p(e){return!(!(e.library?e.library.documentId:e.documentId)||!e.isWritable)&&e.getActions("editInSource").length>0}function h(e){l((i.Z.getDocumentEditActions&&i.Z.getDocumentEditActions(e)||e.getActions("editInSource"))[0],"DL_ERROR_EDIT_IN_SOURCE")}const f={"application/vnd.adobe.xd.cloudproject+dcx":".xdc"};function m(e){const t=f[e.documentType]||"";return`${e.name}${t}`}},87694:(e,t,r)=>{"use strict";r.d(t,{IS:()=>M,lJ:()=>f,zw:()=>h});var n=r(84824),i=r(99386),o=r(47320),a=r(62061),s=r(16203),c=r(74379);const l={process:"DL_COLOR_TYPE_PROCESS",spot:"DL_COLOR_TYPE_SPOT",registration:"DL_COLOR_TYPE_REGISTRATION",none:"DL_COLOR_TYPE_NONE"};function u(e){return function(t){return function(r){const n=r.getPrimaryRepresentation();if(n)return t(n.getValue(e,"data"))}}}function d(e){return function(t,r){const n=o.Z.findUsableRepresentation(t,`application/vnd.adobe.${r}+json`);if(!n)return;const a=n.getValue(r,"data");return e(t.type===i.Z.FONT_ELEMENT_TYPE?{adbeFont:a}:a)}}function p(e){return function(t){const r=t.representations.find((e=>"RGB"===e.getValue("color","data").mode));if(r)return e(r.getValue("color","data"))}}function h(e,t=[]){const r=o.Z.getShortType(e.type);return t.reduce(((t,n)=>{const i=n(e,r);return i&&t.push(i),t}),[])}function f(e){if(e.type!==i.Z.COMPONENT_ELEMENT_TYPE)return;const t=e.getPrimaryRepresentation(),r=(null==t?void 0:t.getValue("symbol","data"))||(null==t?void 0:t.getValue("xd","data"));return null==r?void 0:r.symbolId}const m=p((e=>e&&{label:(0,n.Iu)("DL_INFO_COLOR_TYPE"),value:(0,n.Iu)(l[e.type||"none"])})),g=p(((e={})=>e.profileName&&{label:(0,n.Iu)("DL_INFO_COLOR_PROFILE"),value:e.profileName})),v=d((e=>{const t=s.BN(e);return t&&{label:(0,n.Iu)("DL_INFO_FONT_FAMILY"),value:t}})),y=d((e=>{const t=s.pJ(e);return t&&{label:(0,n.Iu)("DL_INFO_FONT_STYLE"),value:t}})),b=d((e=>{const t=s.yv(e);return t&&{label:(0,n.Iu)("DL_INFO_FONT_SIZE"),value:t}})),_=d((e=>{const t=e&&Array.isArray(e.color)&&e.color.find((e=>e.alpha));if(t)return{label:(0,n.Iu)("DL_INFO_OPACITY"),value:(0,n.Iu)("DL_PERCENTAGE",{percent:100*t.alpha})}})),E=d((e=>{const t=e&&Array.isArray(e.color)&&e.color.find((e=>e.type));if(t)return{label:(0,n.Iu)("DL_INFO_COLOR_TYPE"),value:(0,n.Iu)(`DL_INFO_${t.type.toUpperCase()}_COLOR_TYPE`)}})),w=d((e=>{const t=e&&e.color&&c.m3(e.color);if(t)return{label:"HEX",value:t&&t.toUpperCase()}})),x=d((e=>{const t=e&&e.color&&c.su(e.color);if(t)return{label:"RGB",value:`${Math.round(t.red)}, ${Math.round(t.green)}, ${Math.round(t.blue)}`}})),L=d((e=>{const t=e&&Array.isArray(e.color)&&e.color.find((e=>"CMYK"===e.mode));if(t)return{label:"CMYK",value:`${Math.round(t.value.c)}, ${Math.round(t.value.m)}, ${Math.round(t.value.y)}, ${Math.round(t.value.k)}`}})),O=d((e=>{const t=e&&Array.isArray(e.color)&&e.color.find((e=>"Lab"===e.mode));if(t)return{label:"Lab",value:`${Math.round(t.value.l)}, ${Math.round(t.value.a)}, ${Math.round(t.value.b)}`}})),S=d((e=>{const t=e&&Array.isArray(e.color)&&e.color.find((e=>"HSB"===e.mode));if(t)return{label:"HSB",value:`${Math.round(t.value.h)}, ${Math.round(t.value.s)}, ${Math.round(t.value.b)}`}})),T=d((e=>{const t=e&&Array.isArray(e.color)&&e.color.find((e=>"Gray"===e.mode));if(t)return{label:"Gray",value:`${Math.round(t.value)}`}})),P=d((e=>{const t=e&&Array.isArray(e.color)&&e.color.find((e=>e.spotColorName));if(t)return{label:"SPOT",value:t.spotColorName}})),I=d((e=>{const t=s.mi(e);return t&&{label:(0,n.Iu)("DL_INFO_ALIGNMENT"),value:t}})),A=d((e=>{if(e&&e.textDecoration&&0!==e.textDecoration.length)return{label:(0,n.Iu)("DL_INFO_TEXT_DECORATION"),value:e.textDecoration.map((e=>(0,n.Iu)(`DL_INFO_${e.replace("-","").toUpperCase()}`))).join(", ")}})),C=(e,t)=>d((r=>{if(!r||!r[e])return;const i=r[e],o=i.value,a=i.type;return{label:(0,n.Iu)(t),value:`${o} ${a}`}})),k=C("adbeLeftIndent","DL_INFO_LEFT_INDENT"),D=C("adbeRightIndent","DL_INFO_RIGHT_INDENT"),N=C("adbeSpaceBefore","DL_INFO_SPACE_BEFORE"),R=C("adbeSpaceAfter","DL_INFO_SPACE_AFTER"),M={colorType:m,colorProfileName:g,fontFamily:v,fontSize:b,fontStyle:y,fontColorType:E,fontOpacity:_,fontHexColor:w,fontRgbColor:x,fontCmykColor:L,fontLabColor:O,fontHsbColor:S,fontGrayColor:T,fontSpotColor:P,fontDecoration:A,alignment:I,paragraphLeftIndent:k,paragraphRightIndent:D,paragraphFirstLineIndent:C("adbeFirstLineIndent","DL_INFO_FIRST_LINE_INDENT"),paragraphSpaceBefore:N,paragraphSpaceAfter:R,videoFramesPerSecond:u("video")(((e={})=>e.framerate&&{label:(0,n.Iu)("DL_INFO_FRAMERATE"),value:(0,n.Iu)("DL_FRAMERATE",{framerate:e.framerate})})),capsuleFramesPerSecond:u("graphic")(((e={})=>e.framerate&&{label:(0,n.Iu)("DL_INFO_FRAMERATE"),value:(0,n.Iu)("DL_FRAMERATE",{framerate:e.framerate})})),videoDuration:u("video")(((e={})=>e.duration&&{label:(0,n.Iu)("DL_INFO_DURATION"),value:a.zW(e.duration)})),capsuleDuration:u("graphic")(((e={})=>e.duration&&{label:(0,n.Iu)("DL_INFO_DURATION"),value:a.zW(e.duration)})),elementSize:function(e){const t=e.getPrimaryRepresentation()||{};return t.contentLength&&{label:(0,n.Iu)("DL_INFO_SIZE"),value:a.d3(t.contentLength,1)}},width:function(e){const t=e.getPrimaryRepresentation()||{};return t.width&&{label:(0,n.Iu)("DL_INFO_WIDTH"),value:(0,n.Iu)("DL_LENGTH",{length:t.width})}},height:function(e){const t=e.getPrimaryRepresentation()||{};return t.height&&{label:(0,n.Iu)("DL_INFO_HEIGHT"),value:(0,n.Iu)("DL_LENGTH",{length:t.height})}},dimensions:function(e){const t=e.getPrimaryRepresentation()||{};return t.height&&t.width&&{label:(0,n.Iu)("DL_INFO_DIMENSIONS"),value:(0,n.Iu)("DL_DIMENSIONS",{width:t.width,height:t.height})}},elementType:function(e){return{label:(0,n.Iu)("DL_INFO_TYPE"),value:(0,n.Iu)(o.Z.getTypeName(e.type,!0))}}}},44914:(e,t,r)=>{"use strict";r.d(t,{LR:()=>c,Q7:()=>h,UI:()=>s,a3:()=>o,dP:()=>p,ds:()=>l,o1:()=>u,ss:()=>a,t5:()=>d});var n=r(99386),i=r(33275);function o(e){var t,r;if(e.sourceRef)return null===(t=e.sourceRef)||void 0===t||null===(r=t["stRef:fromPart"])||void 0===r?void 0:r.substr(3)}function a(e){var t;if(e.sourceRef)return null===(t=e.sourceRef)||void 0===t?void 0:t["stRef:fromPartInstanceID"]}function s(e){const t=function(e){if(e.cachedLinkedElementSourceRef)return{"stRef:fromPart":e.cachedLinkedElementSourceRef["stRef:fromPart"]}}(e);if(t)return JSON.stringify(t,Object.keys(t).sort())}function c(e){const t=function(e){if(e.sourceRef)return{"stRef:fromPart":e.sourceRef["stRef:fromPart"]}}(e);if(t)return JSON.stringify(t,Object.keys(t).sort())}function l(e){var t;return null===(t=e.linkReference)||void 0===t?void 0:t["stRef:fromPartDerivedFrom"]}function u(e){const t=function(e){const t=e&&e.sourceRef;return t&&t["dc:format"]}(e);return t&&t.includes(n.Z.FIREFLY_RECIPE_TYPE)}function d(e){const t=n.Z.XD_ASSET_LINK_REFERENCE_TYPES;return"string"==typeof e?/^cloud-asset:/.test(e)?t.LEGACY_CCLIBRARIES_ELEMENT:/^https:/.test(e)?t.LEGACY_CLOUD_DOCUMENT_ASSET:t.LEGACY_DOCUMENT_ASSET:"object"==typeof e?t.CCLIBRARIES_ELEMENT:void 0}function p(e){if(e=i.P6.parseLinkReference(e))return e["dc:format"]===n.Z.LIBRARY_TYPE}function h(e){return"object"==typeof e?e["repo:assetId"]:e.split(";node")[0]}},29219:(e,t,r)=>{"use strict";function n(e,t){return((e,t="image/png")=>`data:${t};base64,${e}`)(function(e){let t="";const r=new Uint8Array(e),n=r.byteLength;for(let e=0;e<n;e++)t+=String.fromCharCode(r[e]);return window.btoa(t)}(e),t)}r.d(t,{Hf:()=>o,UL:()=>i,mD:()=>n,n5:()=>s});const i=e=>decodeURIComponent(escape(window.atob(e))),o=e=>window.btoa(unescape(encodeURIComponent(e))),a=e=>new Promise((t=>{const r=new FileReader;r.onload=()=>{t(r.result)},r.readAsDataURL(e)}));function s(e,t){return FileReader?a(e):e.arrayBuffer().then(n,t)}},37642:(e,t,r)=>{"use strict";r.d(t,{Cu:()=>s,Jf:()=>u,sB:()=>c,yN:()=>l});var n=r(84824),i=r(30131);const o={fs:["DL_FS_ERROR","DL_FS_ERROR"],general:["DL_NO_LIBS_ERROR_SYNCING","DL_SYNC_ERROR"],jsx:["DL_NO_LIBS_ERROR_INIT","DL_INIT_ERROR"],library:["DL_NO_LIBS_ERROR_SYNCING","DL_SYNC_ERROR_LIBRARY"],loggedOut:["DL_NO_LIBS_LOGGED_OUT","DL_SYNC_LOGGED_OUT"],appLoggedOut:["DL_NO_LIBS_APP_LOGGED_OUT","DL_NO_LIBS_APP_LOGGED_OUT"],network:["DL_NO_LIBS_ERROR_CONNECTING","DL_SYNC_ERROR_CONNECTING"],noAccess:["DL_NO_LIBS_NO_ACCESS","DL_SYNC_ERROR_NO_ACCESS"],noService:["DL_NO_LIBS_SERVICE_NOT_INSTALLED","DL_SYNC_SERVICE_NOT_INSTALLED"],quota:["DL_NO_LIBS_ERROR_SYNCING","DL_SYNC_ERROR_QUOTA_EXCEEDED"],sharedQuota:["DL_NO_LIBS_ERROR_SYNCING","DL_SYNC_ERROR_QUOTA_EXCEEDED"],server:["DL_SYNC_ERROR_SERVER","DL_SYNC_ERROR_SERVER"],serviceError:["DL_NO_LIBS_SERVICE_NOT_RUNNING","DL_SYNC_SERVICE_NOT_RUNNING"],syncDisabled:["DL_NO_LIBS_SYNC_DISABLED","DL_SYNC_DISABLED"],updateClient:["DL_NO_LIBS_UPDATE_CLIENT","DL_SYNC_UPDATE_CLIENT"],updateServer:["DL_NO_LIBS_UPDATE_SERVER","DL_SYNC_UPDATE_SERVER"],excludeHostnameOSX:["DL_NO_LIBS_NETWORK_PROBLEM","DL_SYNC_NETWORK_PROBLEM"],excludeHostnameWin:["DL_NO_LIBS_NETWORK_PROBLEM","DL_SYNC_NETWORK_PROBLEM"],excludeHostnameWin10:["DL_NO_LIBS_NETWORK_PROBLEM","DL_SYNC_NETWORK_PROBLEM"],verifyDnsSettings:["DL_NO_LIBS_NETWORK_PROBLEM","DL_SYNC_NETWORK_PROBLEM"],verifySocketConnection:["DL_NO_LIBS_SOCKET_BLOCKED","DL_SYNC_SOCKET_BLOCKED"],requestFailed:["DL_SYNC_REQUEST_ERROR","DL_SYNC_REQUEST_ERROR"]},a=["noService","serviceError","updateClient","updateServer","loggedOut","appLoggedOut","jsx","syncDisabled","excludeHostnameOSX","excludeHostnameWin","excludeHostnameWin10","verifyDnsSettings","verifySocketConnection"];function s(e){return!a.includes(e.errorType)}function c(e){return(0,n.Iu)(o[e.errorType]&&o[e.errorType][0]||o.general[0])}function l(e){const t=o[e.errorType]&&o[e.errorType][1]||o.general[1];return"library"===e.errorType?(0,n.Iu)(t,{name:e.library.name}):(0,n.Iu)(t)}function u(e){return"error"!==e.state?null:{serviceError:i.Em(),noService:i.mr(),excludeHostnameOSX:i.Em("excludeHostnameOSX"),excludeHostnameWin:i.Em("excludeHostnameWin"),excludeHostnameWin10:i.Em("excludeHostnameWin10"),verifyDnsSettings:i.Em("verifyDnsSettings"),updateServer:i.gZ(),updateClient:i.gZ()}[e.errorType]}},34038:(e,t,r)=>{"use strict";r.d(t,{Bc:()=>M,Cj:()=>C,Dk:()=>T,Fe:()=>J,JF:()=>U,K3:()=>j,KU:()=>P,MZ:()=>F,Mu:()=>k,NC:()=>W,PJ:()=>m,PX:()=>w,Q1:()=>p,Rl:()=>K,Zh:()=>O,_2:()=>I,_I:()=>z,a5:()=>h,e5:()=>f,fz:()=>X,g5:()=>V,i_:()=>b,kJ:()=>D,ku:()=>E,lc:()=>G,mI:()=>R,oR:()=>Z,pH:()=>N,pJ:()=>Y,rD:()=>$,rx:()=>S,u2:()=>q,vn:()=>A,xJ:()=>_,xW:()=>H});var n=r(99386),i=r(76485),o=r(22708),a=r.n(o),s=r(89368),c=r.n(s),l=r(33275),u=r(64705);const d=()=>window.nodeRequire("fs"),p="application/vnd.adobe.ibl.light+zip",h="application/vnd.adobe.mdl.material+zip",f="application/vnd.adobe.ae.graphic+zip",m="application/vnd.adobe.ppro.graphic+zip",g={};g[n.Z.IMAGE_ELEMENT_TYPE]={"image/vnd.adobe.photoshop":{exts:["psd"],badge:"Ps",displayName:"DL_REPRESENTATION_TYPE_PHOTOSHOP",app:"PHXS",createdIn:"DL_APP_PHOTOSHOP"},"application/photoshop":{exts:["psd"],badge:"Ps",displayName:"DL_REPRESENTATION_TYPE_PHOTOSHOP",app:"PHXS",createdIn:"DL_APP_PHOTOSHOP"},"application/photoshop.large":{exts:["psb"],badge:"Ps",displayName:"DL_REPRESENTATION_TYPE_PHOTOSHOP",app:"PHXS",createdIn:"DL_APP_PHOTOSHOP"},"application/illustrator":{exts:["ai"],badge:"Ai",displayName:"DL_REPRESENTATION_TYPE_ILLUSTRATOR",app:"ILST",createdIn:"DL_APP_ILLUSTRATOR"},"application/vnd.adobe.indesign-idms":{exts:["idms"],badge:"Id",displayName:"DL_REPRESENTATION_TYPE_INDESIGN",app:"IDSN",createdIn:"DL_APP_INDESIGN"},"application/vnd.adobe.muse-collection":{exts:["muse"],badge:"Mu",displayName:"DL_REPRESENTATION_TYPE_MUSE",app:"MUSE",createdIn:"DL_APP_MUSE"},"application/vnd.adobe.charts+zip":{exts:["zip"],badge:"PDF",displayName:"DL_REPRESENTATION_TYPE_CHART",app:"ILST",createdIn:"DL_APP_ILLUSTRATOR"},"image/vnd.adobe.shape+svg":{exts:["shape"],badge:"SVG",displayName:"DL_REPRESENTATION_TYPE_SHAPE"},"application/vnd.adobe.element.agc+json":{exts:["agc"],badge:"Xd",displayName:"DL_REPRESENTATION_TYPE_XD",app:"SPRK",createdIn:"DL_APP_XD"},"application/vnd.adobe.xd.cloudproject+dcx":{exts:["xdc"],badge:"Xd",displayName:"DL_REPRESENTATION_TYPE_XD",app:"SPRK",createdIn:"DL_APP_XD"},"document/vnd.adobe.cpsd+dcx":{exts:["psdc"],badge:"Ps",displayName:"DL_REPRESENTATION_TYPE_PHOTOSHOP",app:"PHXS",createdIn:"DL_APP_PHOTOSHOP"},"document/vnd.adobe.illustrator+dcx":{exts:["aic"],badge:"Ai",displayName:"DL_REPRESENTATION_TYPE_ILLUSTRATOR",app:"ILST",createdIn:"DL_APP_ILLUSTRATOR"},"application/pdf":{exts:["pdf"],badge:"PDF"},"image/png":{exts:["png"],badge:"PNG"},"image/jpeg":{exts:["jpeg"],badge:"JPEG"},"image/jpg":{exts:["jpg"],badge:"JPG"},"image/gif":{exts:["gif"],badge:"GIF"},"image/tiff":{exts:["tif","tiff"],badge:"TIF"},"image/bmp":{exts:["bmp"],badge:"BMP"},"image/svg+xml":{exts:["svg"],badge:"SVG"},"image/heic":{exts:["heic"],badge:"HEIC"},"image/heif":{exts:["heif"],badge:"HEIF"},"image/x-adobe-dng":{exts:["dng"],badge:"DNG"},"image/dng":{exts:["dng"],badge:"DNG"}},g[n.Z.COLOR_ELEMENT_TYPE]={"application/vnd.adobe.color+json":{exts:["ase"],displayName:"DL_REPRESENTATION_TYPE_COLOR"}},g[n.Z.CHANNEL_ELEMENT_TYPE]={"application/vnd.adobe.channel+json":{exts:["json"],displayName:"DL_REPRESENTATION_TYPE_CHANNEL"}},g[n.Z.GRADIENT_ELEMENT_TYPE]={"application/vnd.adobe.gradient+json":{exts:["grd"],displayName:"DL_REPRESENTATION_TYPE_GRADIENT"},"application/vnd.adobe.gradient.noise+json":{exts:["grd"],displayName:"DL_REPRESENTATION_TYPE_GRADIENT"},"image/png":{exts:["png"]}},g[n.Z.IMAGE_GUIDELINE_ELEMENT_TYPE]={"application/vnd.adobe.imageguideline+json":{exts:["json"],displayName:"DL_REPRESENTATION_TYPE_IMAGE_GUIDELINE"}},g[n.Z.COLOR_THEME_ELEMENT_TYPE]={"application/vnd.adobe.colortheme+json":{exts:["ase"],displayName:"DL_REPRESENTATION_TYPE_COLOR"}},g[n.Z.BRUSH_ELEMENT_TYPE]={"application/vnd.adobe.scatter.brush+zip":{exts:["brush"],displayName:"DL_REPRESENTATION_TYPE_BRUSH"},"application/vnd.adobe.ribbon.brush+zip":{exts:["brush"],displayName:"DL_REPRESENTATION_TYPE_BRUSH"},"image/x-adobe-photoshop-brush":{exts:["abr"],displayName:"DL_REPRESENTATION_TYPE_BRUSH"},"application/vnd.adobe.vector.brush+zip":{exts:["brush"],displayName:"DL_REPRESENTATION_TYPE_BRUSH"}},g[n.Z.CAPSULE_ELEMENT_TYPE]={"application/vnd.adobe.ae.graphic+zip":{exts:["aegraphic"],displayName:"DL_REPRESENTATION_TYPE_CAPSULE",app:"AEFT",createdIn:"DL_APP_AE"},"application/vnd.adobe.ppro.graphic+zip":{exts:["prgraphic"],displayName:"DL_REPRESENTATION_TYPE_CAPSULE",app:"PPRO",createdIn:"DL_APP_PPRO"}},g[n.Z.CHARACTER_STYLE_ELEMENT_TYPE]={"application/vnd.adobe.characterstyle+json":{exts:["style"],displayName:"DL_REPRESENTATION_TYPE_TEXT_STYLE"},"application/vnd.adobe.characterstyle+snippet":{exts:["idms"],displayName:"DL_REPRESENTATION_TYPE_TEXT_STYLE"}},g[n.Z.PARAGRAPH_STYLE_ELEMENT_TYPE]={"application/vnd.adobe.paragraphstyle+json":{exts:["style"],displayName:"DL_REPRESENTATION_TYPE_PARA_STYLE"},"application/vnd.adobe.paragraphstyle+snippet":{exts:["idms"],displayName:"DL_REPRESENTATION_TYPE_PARA_STYLE"}},g[n.Z.FONT_ELEMENT_TYPE]={"application/vnd.adobe.font+json":{exts:["style"],displayName:"DL_REPRESENTATION_TYPE_FONT"}},g[n.Z.LAYER_STYLE_ELEMENT_TYPE]={"application/vnd.adobe.layerstyle":{exts:["asl"],displayName:"DL_REPRESENTATION_TYPE_LAYER_STYLE"}},g[n.Z.LOOK_ELEMENT_TYPE]={"application/vnd.adobe.cube+txt":{exts:["cube"],displayName:"DL_REPRESENTATION_TYPE_CUBE_LUT"},"application/vnd.adobe.look+xml":{exts:["look"],displayName:"DL_REPRESENTATION_TYPE_LOOK"}},g[n.Z.THREE_D_ELEMENT_TYPE]={"application/vnd.adobe.obj.3d+zip":{exts:["obj"],displayName:"DL_REPRESENTATION_TYPE_MODEL"},"application/vnd.adobe.fbx.3d+zip":{exts:["fbx"],displayName:"DL_REPRESENTATION_TYPE_MODEL"},"image/vnd.adobe.photoshop":{exts:["psd"],displayName:"DL_REPRESENTATION_TYPE_PHOTOSHOP_3D"},"model/gltf-binary":{exts:["glb"],displayName:"DL_REPRESENTATION_TYPE_MODEL"},"model/gltf+json":{exts:["gltf"],displayName:"DL_REPRESENTATION_TYPE_MODEL"},"model/vnd.usdz+zip":{exts:["usdz"],displayName:"DL_REPRESENTATION_TYPE_MODEL"},"3d/vnd.adobe.dn+dcxucf":{exts:["dn"],displayName:"DL_REPRESENTATION_TYPE_MODEL"},"model/vnd.adobe.dn+dcxucf":{exts:["dn"],displayName:"DL_REPRESENTATION_TYPE_MODEL"}},g[n.Z.LIGHT_ELEMENT_TYPE]={"application/vnd.adobe.ibl.light+zip":{exts:["ibl"],displayName:"DL_REPRESENTATION_TYPE_LIGHT"},"application/vnd.adobe.exr.light+zip":{exts:["exr"],displayName:"DL_REPRESENTATION_TYPE_LIGHT"},"image/vnd.radiance":{exts:["hdr"],displayName:"DL_REPRESENTATION_TYPE_LIGHT"}},g[n.Z.MATERIAL_ELEMENT_TYPE]={"application/vnd.adobe.mdl.material+zip":{exts:["mdl"],displayName:"DL_REPRESENTATION_TYPE_MATERIAL"},"application/vnd.adobe.sbsar+zip":{exts:["sbsar"],displayName:"DL_REPRESENTATION_TYPE_MATERIAL"}},g[n.Z.PATTERN_ELEMENT_TYPE]={"image/vnd.adobe.pattern+png":{exts:["png"],displayName:"DL_REPRESENTATION_TYPE_BITMAP_PATTERN"},"image/svg+xml":{exts:["svg"],displayName:"DL_REPRESENTATION_TYPE_VECTOR_PATTERN"},"application/illustrator":{exts:["ai"],displayName:"DL_REPRESENTATION_TYPE_ILLUSTRATOR"}},g[n.Z.VIDEO_ELEMENT_TYPE]={"video/quicktime":{exts:["mov"],badge:"MOV",displayName:"DL_REPRESENTATION_TYPE_VIDEO"},"video/mp4":{exts:["mp4"],badge:"MP4",displayName:"DL_REPRESENTATION_TYPE_VIDEO"},"video/x-quicktime":{exts:["mov"],badge:"MOV",displayName:"DL_REPRESENTATION_TYPE_VIDEO"},"video/x-ms-wmv":{exts:["wmv"],badge:"WMV",displayName:"DL_REPRESENTATION_TYPE_VIDEO"},"video/x-ms-asf":{exts:["wmv"],badge:"WMV",displayName:"DL_REPRESENTATION_TYPE_VIDEO"},"video/mpeg":{exts:["mpeg","mpg"],badge:"MPEG",displayName:"DL_REPRESENTATION_TYPE_VIDEO"}},g[n.Z.AUDIO_ELEMENT_TYPE]={"audio/aac":{exts:["aac"],badge:"AAC",displayName:"DL_REPRESENTATION_TYPE_AUDIO"},"audio/x-aac":{exts:["aac"],badge:"AAC",displayName:"DL_REPRESENTATION_TYPE_AUDIO"},"audio/aacp":{exts:["aacp"],badge:"AAC",displayName:"DL_REPRESENTATION_TYPE_AUDIO"},"audio/mpeg":{exts:["mp2","mpeg","mpg"],badge:"MP2",displayName:"DL_REPRESENTATION_TYPE_AUDIO"},"audio/mpeg3":{exts:["mp3","mpeg3"],badge:"MP3",displayName:"DL_REPRESENTATION_TYPE_AUDIO"},"audio/m4a":{exts:["m4a"],badge:"M4A",displayName:"DL_REPRESENTATION_TYPE_AUDIO"},"audio/mp3":{exts:["mp3"],badge:"MP3",displayName:"DL_REPRESENTATION_TYPE_AUDIO"},"audio/3gpp":{exts:["3gpp"],badge:"3GPP",displayName:"DL_REPRESENTATION_TYPE_AUDIO"},"audio/3gpp2":{exts:["3gpp2"],badge:"3GPP",displayName:"DL_REPRESENTATION_TYPE_AUDIO"},"audio/x-aiff":{exts:["aiff"],badge:"AIFF",displayName:"DL_REPRESENTATION_TYPE_AUDIO"},"audio/aif":{exts:["aif"],badge:"AIF",displayName:"DL_REPRESENTATION_TYPE_AUDIO"},"audio/wav":{exts:["wav"],badge:"WAV",displayName:"DL_REPRESENTATION_TYPE_AUDIO"},"audio/x-wav":{exts:["wav"],badge:"WAV",displayName:"DL_REPRESENTATION_TYPE_AUDIO"}},g[n.Z.TEMPLATE_ELEMENT_TYPE]={"image/vnd.adobe.photoshop.template":{exts:["psdt"],badge:"Ps",displayName:"DL_REPRESENTATION_TYPE_TEMPLATE"},"application/vnd.adobe.photoshop.template":{exts:["psdt"],badge:"Ps",displayName:"DL_REPRESENTATION_TYPE_TEMPLATE"},"application/illustrator.template":{exts:["ait"],badge:"Ai",displayName:"DL_REPRESENTATION_TYPE_TEMPLATE"},"application/vnd.adobe.illustrator.template":{exts:["ait"],badge:"Ai",displayName:"DL_REPRESENTATION_TYPE_TEMPLATE"},"application/vnd.adobe.indesign.template":{exts:["indt"],badge:"Id",displayName:"DL_REPRESENTATION_TYPE_TEMPLATE"}},g[n.Z.TEXT_ELEMENT_TYPE]={"application/vnd.adobe.text+json":{exts:["text"],displayName:"DL_REPRESENTATION_TYPE_TEXT"},"application/illustrator-text":{exts:["ai"],badge:"Ai",displayName:"DL_REPRESENTATION_TYPE_TEXT"},"application/vnd.adobe.indesign-idms-text":{exts:["idms"],badge:"Id",displayName:"DL_REPRESENTATION_TYPE_TEXT"}},g[n.Z.ANIMATION_ELEMENT_TYPE]={"application/vnd.adobe.animate-xfl+zip":{exts:["fla","xfl"],badge:"An",displayName:"DL_REPRESENTATION_TYPE_ANIMATION",app:"FLPR",createdIn:"DL_APP_ANIMATE"},"application/vnd.adobe.animate-sym+zip":{exts:["sym"],badge:"SYM",displayName:"DL_REPRESENTATION_TYPE_ANIMATION",app:"FLPR",createdIn:"DL_APP_ANIMATE"}},g[n.Z.COMPONENT_ELEMENT_TYPE]={"application/vnd.adobe.element.agc+json":{exts:["agc"],badge:"Xd",displayName:"DL_REPRESENTATION_TYPE_XD_COMPONENT",app:"SPRK",createdIn:"DL_APP_XD"},"application/vnd.adobe.xdcomponent+dcx":{exts:["agc"],badge:"Xd",displayName:"DL_REPRESENTATION_TYPE_XD_COMPONENT",app:"SPRK",createdIn:"DL_APP_XD"},"application/vnd.adobe.nxdcomponent+dcx":{exts:["agc"],badge:"Xd",displayName:"DL_REPRESENTATION_TYPE_XD_COMPONENT",app:"SPRK",createdIn:"DL_APP_XD"}};const v={};function y(e,t){const r=g[e]||{};return Object.keys(r).filter((e=>t(r[e])))}function b(e,t){return g[e]&&g[e][t]}function _(e){return Object.keys(v).find((t=>v[t].some((t=>t===e))))}function E(e){return y(e,(e=>e.usable))}function w(e){return y(e,(e=>e.editable))}function x(e,t,r){const n=g[e];n&&t.forEach((e=>{const t=n[e];if(t)t.usable=!0,t.editable=!!r;else{const t=A(e);if(t&&t.length>0){const i=t[0];n[e]={exts:t,badge:i.toUpperCase(),usable:!0,editable:!!r}}}}))}function L(e,t,r){const n=g[e];n&&t.forEach((e=>{C(e=e.toLowerCase()).filter((e=>e)).forEach((t=>{const i=n[t];i?(i.exts.includes(e)||i.exts.push(e),i.usable=!0,i.editable=!!r):n[t]={exts:[e],badge:e.toUpperCase(),usable:!0,editable:!!r}}))}))}function O(e,t){x(e,t)}function S(e,t){L(e,t)}function T(e,t){x(e,t,!0)}function P(e,t){L(e,t,!0)}function I(e){const t=e.lastIndexOf(".")+1;if(t>0)return t!==e.length?e.substr(t).toLowerCase().trim():""}function A(e){return l.P6.mimeTypeToExtensions(e)}function C(e){return l.P6.extensionToMimeTypes(e)}function k(e){return l.P6.canComputeRenditionFromMimeType(e)}function D(e){return["image/svg+xml","application/pdf","application/illustrator","application/postscript","image/vnd.adobe.shape+svg","application/vnd.adobe.charts+zip",n.Z.AGC_REPRESENTATION_TYPE].includes(e)}function N(e,t){const r=g[t];if(e){const t=I(e);if(t){let e=Object.keys(r).find((e=>r[e].exts.includes(t)));if(!e){const r=C(t);e=r&&r[0]}return e}}}function R(e){return e&&e.replace(/(<|>|:|"|\/|\\|\||\?|\*|[\x00-\x1F])|\(|\)|\{|\}|,|\s/g,"")}function M(e){const t=i.Z.isWindowsOS()?"\\":"/",r=e&&e.lastIndexOf(t);return r>=0&&(e=e.substr(r+1)),e&&e.normalize()}function j(e){const t=e&&e.lastIndexOf(".");return t>=0&&(e=e.substr(0,t)),e&&e.normalize()}function F(e){const t=e&&e.lastIndexOf(".");return t>=0?e.substr(t+1):""}function Z(e){return n.Z.LIBRARY_ALLOWED_EXTENSIONS.includes(e)}function B(e){return Object.keys(v).some((t=>!!g[t][e]))}function G(e){return!!e&&C(I(e)).some(B)}function U(e){return e.find(B)}function H(e){const t=d();return!t||t.existsSync(e)}function z(e){if(i.Z.deleteFile)return i.Z.deleteFile(e);try{d().unlinkSync(e)}catch(e){}}function V(e){try{return d().statSync(e)}catch(e){return{}}}function Y(e,t,r){if(!r)return d().readFileSync(e,t);d().readFile(e,t,r)}function W(e,t,r,n){if(!n)return d().writeFileSync(e,t,r);d().writeFile(e,t,r,n)}function K(){return a()()}function $(e){const t=c().parse(e);return c().join(t.dir,t.name)+"_"+K()+t.ext}function q(e,t){!function e(t,r,n){const i=r.slice(0,t).join("/"),o=()=>{t<r.length?e(t+1,r,n):n(null)},a=d();a.exists(i,(e=>e?o():a.mkdir(i,o)))}(2,e.split("/"),t)}function X({fileTypes:e,multiple:t}={}){return u.Z.getFilesToImport()?Promise.resolve(u.Z.getFilesToImport()):new Promise(((r,n)=>{const o=Object.assign(document.createElement("input"),{type:"file",multiple:t});e&&o.setAttribute("accept",e.map((e=>`.${e}`)).join(", "));const a=()=>{const e=o.files;o.removeEventListener("change",a),o.remove(),e.length&&r(e)||n()};i.Z.getRootPanelElement().prepend(o),o.addEventListener("change",a),o.dispatchEvent(new MouseEvent("click"))}))}function J(e,t=!1){let r=v[e];t&&(r=r.filter((t=>function(e,t){return!!function(e,t,r){if(t){const n=g[t];return n&&n[e]&&r(n[e])}return Object.keys(g).some((t=>g[t]&&g[t][e]&&r(g[t][e])))}(e,t,(e=>e.usable))}(t,e))));const n=g[e];if(!n||!r)return;let i=[];return r.forEach((e=>{i=i.concat(n[e].exts)})),i}v[n.Z.IMAGE_ELEMENT_TYPE]=["application/illustrator","image/png","image/bmp","image/vnd.adobe.photoshop","application/photoshop","image/svg+xml","image/gif","image/jpg","image/jpeg","image/tiff","application/pdf","image/heic","image/heif","image/x-adobe-dng","image/dng"],v[n.Z.TEMPLATE_ELEMENT_TYPE]=["image/vnd.adobe.photoshop.template","application/vnd.adobe.photoshop.template","application/illustrator.template","application/vnd.adobe.illustrator.template","application/vnd.adobe.indesign.template"],v[n.Z.ANIMATION_ELEMENT_TYPE]=["application/vnd.adobe.animate-xfl+zip"],v[n.Z.VIDEO_ELEMENT_TYPE]=["video/mp4","video/quicktime","video/x-quicktime","video/x-ms-wmv","video/x-ms-asf","video/mpeg"],v[n.Z.AUDIO_ELEMENT_TYPE]=["audio/aac","audio/x-aac","audio/aacp","audio/mpeg","audio/mpeg3","audio/m4a","audio/mp3","audio/3gpp","audio/3gpp2","audio/x-aiff","audio/aif","audio/vnd.wave","audio/wav","audio/x-wav"],v[n.Z.MATERIAL_ELEMENT_TYPE]=["application/vnd.adobe.mdl.material+zip","application/vnd.adobe.sbsar+zip"],v[n.Z.THREE_D_ELEMENT_TYPE]=["3d/vnd.adobe.dn+dcxucf","model/vnd.adobe.dn+dcxucf","application/vnd.adobe.fbx.3d+zip","application/vnd.adobe.obj.3d+zip","model/gltf-binary","model/gltf+json","model/vnd.usdz+zip"],v[n.Z.LIGHT_ELEMENT_TYPE]=["application/vnd.adobe.exr.light+zip","application/vnd.adobe.ibl.light+zip","image/vnd.radiance"]},69233:(e,t,r)=>{"use strict";r.d(t,{mB:()=>Q,kQ:()=>le,M_:()=>se,SH:()=>ee,yF:()=>D,gw:()=>V,$3:()=>Y,DB:()=>ie,_y:()=>z,hL:()=>H,xF:()=>U,Oy:()=>j,Oi:()=>Z,xr:()=>oe,xe:()=>ae,RH:()=>N,GI:()=>G,Nt:()=>te,Av:()=>R,GN:()=>W,zA:()=>J,tl:()=>k,k5:()=>F,fr:()=>re,Q_:()=>$,eV:()=>X,aX:()=>he,JO:()=>ue,r5:()=>ne,ez:()=>M,PR:()=>C});var n=r(17179),i=r(99386),o=r(46903),a=r(25585),s=r(84824),c=r(51461),l=r(16993),u=r(26964);class d{constructor(e,t){const r=e.branches;this.existingItems={},this.library=t;const n=[],o=[];[...t.getGroups(),...t.elements].forEach((e=>{this.existingItems[e.id]=e,r[e.id]||(e.isGroup?n:o).push(e)})),this.existingItems[i.Z.UNGROUPED_GROUP.id]=i.Z.UNGROUPED_GROUP;const a=e.root;this._root=new h(a,this),o.forEach((e=>t.removeElement(e,!1))),n.forEach((e=>t.removeGroup(e,!1)))}}class p{constructor(e,t){this._oldBranch=e,this._tree=t,this._restore()}get _existingItems(){return this._tree.existingItems}get _library(){return this._tree.library}get _oldParentGroup(){if(this._oldBranch.parent)return this._oldBranch.parent.item}get _restoredParentGroup(){if(this._oldParentGroup)return this._existingItems[this._oldParentGroup.id]}_restore(){const e=this._oldBranch.item;e&&(this._item=this._existingItems[e.id]||this._restoreItem(),this._restoreMetadata(),this._existingItems[e.id]=this._item),(this._oldBranch.children||[]).forEach((e=>{new(e.item.isGroup?h:f)(e,this._tree)}))}_restoreItem(){throw"You need to implement this in the subclass."}_restoreMetadata(){throw"You need to implement this in the subclass."}}class h extends p{_createGroup(...e){return this._restoredParentGroup?this._restoredParentGroup.createChild(...e):this._library.createGroup(...e)}_restoreItem(){const e=this._oldBranch,t=e.name,r=e.order;return this._createGroup(t,r)}_restoreMetadata(){const e=this._oldBranch,t=e.order,r=e.name;this._item.name=r,this._item.parent=this._restoredParentGroup,this._item.order=t}}class f extends p{_restoreItem(){const e=this._oldBranch.item;return this._library.restoreElement(e),e}_restoreMetadata(){const e=this._oldBranch,t=e.order,r=e.name;this._item.name=r;const n=t?this._restoredParentGroup:this._item.getGroups()[0];n&&this._item.setOrderInGroup(n,t)}}class m{get root(){return this._root}get branches(){return this._branches}get options(){return this._options}addBranch(e){this._branches[e.item.id]=e}constructor(e,t,r){this._root=void 0,this._branches={},this._options={sortBy:"order",maxDepth:-1,includeEmpty:!0,includeUngrouped:!0},this._options=Object.assign(this._options,r);const n=this.options,o=n.includeEmpty,a=n.includeUngrouped,s=new Set(t);this._root=new v(this),a&&this._addNodesToGroupBranch([i.Z.UNGROUPED_GROUP]),ae(e).forEach(((e,t)=>{this._addNodesToGroupBranch(e,t),s.delete(t)})),o&&s.forEach((e=>{this.branches[e.id]||this._addNodesToGroupBranch([e],e.parent)})),this.root.sort()}_addNodesToGroupBranch(e,t){if(!t||this.branches[t.id]){const r=t&&this.branches[t.id],n=e.map((e=>{const t=new(e.isGroup?v:y)(this,e,r);return this.addBranch(t),t}));n[0].parent.insertChildren(n)}else this._addNodesToGroupBranch([t],t.parent),this._addNodesToGroupBranch(e,t)}}class g{get item(){return this._item}get parent(){return this._parent}get order(){return this._order}get name(){return this._name}get depth(){return this._depth}get tree(){return this._tree}constructor(e,t,r){this._item=void 0,this._order=void 0,this._name=void 0,this._parent=void 0,this._depth=void 0,this._tree=void 0,this.compareBranches=(e,t)=>e.item.isGroup&&t.item.isGroup?this._compareGroupBranches(e,t):e.item.isGroup||t.item.isGroup?e.item.isGroup?1:-1:this._compareElementBranches(e,t),this._tree=e,this._item=t,this._depth=r?r.originalDepth+1:0,this._parent=r,this._order=this._getOrder(),this._name=this._getName()}getSortValue(){return"name"===this.tree.options.sortBy?this._name:this._order}_getName(){return this.item&&this.item.name}_compareElementBranches(e,t){return n.Z.compare(e.getSortValue(),t.getSortValue())}_compareGroupBranches(e,t){const r=this.tree.branches;return[e.item,t.item].includes(i.Z.UNGROUPED_GROUP)?e.item===i.Z.UNGROUPED_GROUP?1:-1:e.item.parent===t.item.parent?n.Z.compare(e.getSortValue(),t.getSortValue()):e.item.parent===t.item||t.item.parent===e.item?e.item.parent===t.item?1:-1:t.originalDepth>e.originalDepth?this._compareGroupBranches(e,r[t.item.parent.id]):e.originalDepth>t.originalDepth?this._compareGroupBranches(r[e.item.parent.id],t):this._compareGroupBranches(r[e.item.parent.id],r[t.item.parent.id])}}class v extends g{constructor(e,t,r){super(e,t,r),this._originalDepth=void 0,this._children=[];const n=e.branches,i=e.root,o=e.options.maxDepth;if(this._originalDepth=this.depth,r&&o>=0)for(;this.depth>o;){const e=r.item.parent;r=e&&n[e.id],this._depth-=1}this._parent=r||i}get children(){return this._children}set children(e){this._children=e}get originalDepth(){return this._originalDepth}_getOrder(){return this.item&&this.item.order}insertChildren(e){this.children=this.children.concat(e)}sort(){const e=this._children;if(e){const t=e.length;if(t>1&&e.sort(this.compareBranches),t){let t=e.length-1,r=e[t];for(;t>=0&&r.children;)r.sort(),t--,r=e[t]}}}}class y extends g{get isUngrouped(){return this.parent.item===i.Z.UNGROUPED_GROUP}_getOrder(){return!this.isUngrouped&&this.item.getOrderInGroup(this.parent.item)}getSortValue(){return this.isUngrouped?this._name:super.getSortValue()}}var b=r(72373),_=r(31870),E=r(46931);function w(){w=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||S(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function O(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=S(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function S(e,t){if(e){if("string"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?T(e,t):void 0}}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const P="/",I=new RegExp(P,"g"),A=/(?:^|\/)([^/]+)/g;function C(e,t,r){if(e.match(/[\\/]/gm))return i.Z.RENAME_STATES.SLASH_GROUP;const n=t=>t&&e.toLocaleLowerCase()===t.toLocaleLowerCase();if(t&&(n(t.name)||!k(t)))return i.Z.RENAME_STATES.VALID;const o=!!r.children.find((e=>n(e.item&&e.item.name)));return o?i.Z.RENAME_STATES.DUPLICATE_GROUP:i.Z.RENAME_STATES.VALID}function k(e){var t;return!e.library||!(null!==(t=G(e.library).branches[e.id])&&void 0!==t&&t.children.length)}function D(e,t){if(!e)return;const r=function(e){const t=e.children.length>0&&n.Z.sortByOrder(e.children),r=e.library.elements.filter((t=>t.getGroups()[0]===e)),i=n.Z.sortByOrderInGroup(e,r);let o;return t&&t.length?o=t[0].order:i&&i.length&&(o=i[0].getOrderInGroup(e)),(0,a.Tk)(void 0,o)}(e),i=Z([],e.library.getGroups()).branches;return e.createChild(t||oe(i[e.id]),r)}function N(e){const t=(e,r=0)=>{const n=e.parent;return n?t(n,r+1):r};return t(e)}function R(e){if(!e)return;const t=e=>{const r=e.parent;return r?t(r):e},r=t(e),n=r&&r.nameLocalizationKey&&r.nameLocalizationKey.match(/^(?:ASSETS_PANEL_)(.*?)(?:_TITLE)$/);return n&&n[1]&&n[1].replace("_"," ").toLowerCase()}function M(e,t){const r=t.shouldCollapse,n=t.expandNonMeaningfulChildren,i=l.Z.elementSortState;G(e.library,{sortBy:i}).branches[e.id].children.forEach((e=>{e.item.isGroup&&(n?F(e)||l.Z.setGroupCollapsed(e.item.id,!1):l.Z.setGroupCollapsed(e.item.id,r),M(e.item,{shouldCollapse:r,expandNonMeaningfulChildren:n}))}))}function j(e){return(e.isGroup&&z(e).reverse()).find((e=>l.Z.isGroupCollapsed(e.id)))}function F(e){const t=!!e.children.find((e=>!e.item.isGroup)),r=e.item.children&&e.item.children.length,n=e.item.library&&e.item.library.pathViewMaxDepth,i=n&&e.depth<n;return t||!r||!!i}function Z(e,t,r){return new m(e,t,r)}const B=new Map;function G(e,t={}){if(!e)return;t=Object.keys(t).sort().reduce(((e,r)=>(e[r]=t[r],e)),{});const r=`${E.Z.libraryManager.userId}${e.id}${JSON.stringify(t)}`,n=setTimeout((()=>B.delete(r)),i.Z.GROUPS_TREE_CACHE_KEEPALIVE_TIME),o=B.get(r),a=e.modified||e.changeCount,s=e.elementCount;if(o&&!b.Z.getDebugValue("disableGroupsTreeCache")&&(clearTimeout(o.timeout),o.modified===a&&o.elementCount===s))return o.timeout=n,o.value;const c=Z(e.elements,e.getGroups(),t);return b.Z.getDebugValue("disableGroupsTreeCache")||!e.areElementsLoaded||e.syncState||B.set(r,{value:c,modified:a,timeout:n,elementCount:s}),c}function U(e,t=!1){const r=t?[e]:[],n=e=>{e&&e.children&&(r.push(...e.children),e.children.forEach((e=>n(e))))};return n(e),r}function H(e){if(!e.children)return[];const t=Z(e.library.elements,e.library.getGroups()).branches[e.id],r=[],n=e=>{(e.children||[]).forEach((e=>{e.item.isGroup?n(e):r.push(e.item)}))};return n(t),r}function z(e,t=!1){if(!e.parent)return t?[e]:[];const r=[...z(e.parent),e.parent];return t&&r.push(e),r}function V(e){if(!e.library)return;const t=l.Z.elementSortState,r=G(e.library,{sortBy:t}).branches,n=e=>{if(!e||!e.children.length)return;const t=[];var r,i=O(e.children);try{for(i.s();!(r=i.n()).done;){const e=r.value;if(!e.item.isGroup)return e.item;t.push(e)}}catch(e){i.e(e)}finally{i.f()}return t.reduce(((e,t,r,i)=>{const o=n(t);return o&&i.splice(r-1),o}),void 0)};return n(r[e.id])}function Y(e){const t=l.Z.elementSortState,r=G(e.library,{sortBy:t}).branches,n=[],i=e=>{if(e&&e.children&&e.children.length){n.unshift(e.item);var t,r=O(e.children);try{for(r.s();!(t=r.n()).done;){const e=t.value;e.item.isGroup&&(n.unshift(e.item),e.children.forEach((e=>i(e))))}}catch(e){r.e(e)}finally{r.f()}}};i(r[e.id]);for(var o=0,a=n;o<a.length;o++){const e=r[a[o].id].children;if(e&&e.length>0)for(let t=e.length-1;t>=0;t--)if(!e[t].item.isGroup)return e[t].item}}function W(e){return e.getGroups().filter((e=>e&&!e.parent))}function K(e,t){return e===t.parent||t===e.parent?e===t.parent?e.parent:t.parent:e.parent===t.parent?e.parent:e.depth<t.depth?t.parent&&K(e,t.parent):e.depth>t.depth?e.parent&&K(e.parent,t):K(e.parent,t.parent)}function $(e){if(!e.length)return;if(1===e.length)return e[0].isGroup?e[0].parent:e[0].getGroups()[0];const t=G(e[0].library).branches;return e.reduce(((r,n)=>{if(!r)return;if(!e.includes(r)&&function(e){if(!e.children||!e.children.length)return[];const t=[],r=e=>{e.children&&e.children.forEach((e=>{t.push(e),r(e)}))};return r(e),t}(t[r.id]).includes(t[n.id]))return r;const i=K(t[r.id],t[n.id]);return i&&i.item}))}function q(e,t){t.beginOperation();const r=[];return e.forEach(((e,n)=>{const i=e.isGroup?e:((e,n)=>0===n?(0,o.sS)(t,e.trim()):D(r[n-1],e.trim()))(e.name,n);0===n?i.parent=void 0:e.isGroup&&(i.parent=r[n-1]),r.push(i)})),t.endOperation(),r}function X(e,t,r){if(r=Object.assign({deleteEmpty:!1,moveSubgroups:!0},r),!e)return;const n=r,i=n.deleteEmpty,a=n.moveSubgroups,s=e.library,l=G(s).branches;s.beginOperation();const u=z(e,!0),d=q(t,s),p=d[d.length-1],h=[],f=[];l[e.id].children.forEach((e=>{const t=e.item,r=t.isGroup?f:h;!d.includes(t)&&(!t.isGroup||a)&&r.push(t)})),h.length&&(c.ZP.reportEvent("Element Operations","Element","move","element",{event:{value:"agg",count:h.length},content:{category:"Path Menu"}},s),c.ZP.setExtraEventMetrics("updateElement",{subtype:"add-to-group",content:{category:"Path Menu"}})),(0,o.c_)(h,p);const m=a?f.map((e=>ee(e,s,p,{isMove:!0}))):[Promise.resolve()];return Promise.all(m).then((()=>{if(i){const e=e=>{const t=!l[e.id].children.find((e=>![...f,...h].includes(e.item)));return t&&f.push(e),t};u.reverse().forEach((t=>{!d.includes(t)&&e(t)&&t.library.removeGroup(t)}))}return s.endOperation(),d}))}function J(e,t){if(!e||!t)return!1;for(let r=0;r<t.library.getGroupCount();r++){if(e===t)return!0;if(!(e=e&&e.parent))break}return!1}function Q(e,t,r=!1){if(!e.length||!t)return!1;const n=e[0].isGroup?e:[...new Set(e.map((e=>e.getGroups()[0])))];return!!n.length&&((e,t,r)=>{const n=e=>{for(let t=e;t;t=t.parent)if(t.disableDraggingFromOutside)return t},i=n(t),o=e.some((e=>n(e)!==i));return r&&!o?!t.disableDraggingFromOutside:!o})(n,t,r)}function ee(e,t,r,i){return i=Object.assign({isMove:!1,includeContents:!0},i),t.beginOperation(),((e,t,r,n)=>{const i=n.isMove,o=n.includeContents;return i&&e.library.id===t.id?(e.parent=r,Promise.resolve(e)):e.library.copyGroup.call(e.library,e,t,o).then((i=>{if(i.parent=r,!e.children.length)return i;const o=[];return e.children.forEach((e=>{o.push(ee(e,t,i,n))})),Promise.all(o).then((()=>i))}))})(e,t,r,i).then((e=>{const i=(r?r.children:W(t)).filter((t=>t!==e)),a=n.Z.sortByOrder(i)[0];return a&&a!==e&&(0,o.dB)(e,void 0,a,{merge:!1}),e})).catch((e=>{throw u.Z.log(e),e})).finally((()=>{i.isMove&&e.library.id!==t.id&&e.library.removeGroup(e,!0),t.endOperation()}))}function te(e,t){if(!e||!t)return[];const r=t.children.map((e=>e.item));return[t.item,...r].filter((t=>t&&function(e,t){return!(!e.isGroup||!t.isGroup||e===t||[t,e].includes(i.Z.UNGROUPED_GROUP)||J(t,e)||e.name.toLocaleLowerCase()!==t.name.toLocaleLowerCase())}(e,t)))}function re(e,t){if(e.library!==t.library)throw new Error("Cannot merge groups from different libraries.");const r=e.library,n=Z(r.elements,r.getGroups()).branches,i=(e,t)=>(n[e.id].children.forEach((e=>{const r=e.item;if(((e,t)=>{const r=n[e.id].parent.children.findIndex((t=>t.item===e)),i=n[t.id],o=i.children[r],s=i.children[r+1],c=(0,a.Tk)(o&&o.order,s&&s.order);e.isGroup?(e.parent=t,e.order=c):e.setOrderInGroup(t,c)})(r,t),r.isGroup){const e=te(r,n[t.id])[0];e&&i(r,e)}})),r.removeGroup(e),t);return r.beginOperation(),i(e,t),r.endOperation(),t}function ne(e){return function(e){const t=Object.values(e.branches).find((e=>e.item.library)).item.library;return t.beginOperation(),new d(e,t),t.endOperation(),e}(e)}function ie(e){const t=[...z(e),e].map((e=>e.name));return(0,a.Zj)(t,{maxWidth:i.Z.TOOLTIP_MAX_WIDTH})}function oe(e){const t=e=>`${(0,s.Iu)("DL_NEW_GROUP_NAME")}${e?` ${e}`:""}`,r=n.Z.sortByName(e.children);let i=0;for(let e=0;e<r.length;e++)r[e].name===t(i)&&i++;return t(i)}function ae(e){return e.reduce(((e,t)=>{const r=t.getGroups()[0]||i.Z.UNGROUPED_GROUP,n=e.get(r)||[];return n.push(t),e.set(r,n),e}),new Map)}function se(e){return ce.apply(this,arguments)}function ce(){return(ce=function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){L(o,n,i,a,s,"next",e)}function s(e){L(o,n,i,a,s,"throw",e)}a(void 0)}))}}(w().mark((function e(t){var r,n,i,o,a,s,c,l,u,d,p,h,f,m,g;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.beginOperation(),r=O(t.getGroups()),e.prev=2,r.s();case 4:if((n=r.n()).done){e.next=17;break}if((i=n.value).name&&i.name.includes(P)){e.next=8;break}return e.abrupt("continue",15);case 8:if(o=z(i),a=pe(t,o,i.name),o.length!==a.length){e.next=13;break}return de(i),e.abrupt("continue",15);case 13:return e.next=15,X(i,a,{deleteEmpty:!0});case 15:e.next=4;break;case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(2),r.e(e.t0);case 22:return e.prev=22,r.f(),e.finish(22);case 25:s=0,c=[...t.elements,...t.removedElements];case 26:if(!(s<c.length)){e.next=44;break}if(le(u=c[s])){e.next=30;break}return e.abrupt("continue",41);case 30:if(d=null===(l=u.getGroups())||void 0===l?void 0:l[0],o=d?z(d,!0):[],a=pe(t,o,u.name),o.length!==a.length){e.next=36;break}return de(u),e.abrupt("continue",41);case 36:p=a.splice(a.length-1),h=x(p,1),f=h[0],m=q(a,t),g=m[m.length-1],u.setOrderInGroup(g,"a"),u.name=f.name;case 41:s++,e.next=26;break;case 44:t.endOperation();case 45:case"end":return e.stop()}}),e,null,[[2,19,22,25]])})))).apply(this,arguments)}function le(e){return!(null==e||!e.name)&&(null==e?void 0:e.name.includes(P))&&!e.disableRename&&!e.isLinked&&!(0,_.Jw)(e)}function ue(e){if(e.isWritable){e.beginOperation();for(var t=0,r=[...e.getGroups(),...e.elements,...e.removedElements];t<r.length;t++)de(r[t]);e.endOperation()}}const de=e=>{var t;(!e.isElement||e.isElement&&le(e))&&(e.name=null===(t=e.name)||void 0===t?void 0:t.replace(I,"-"))};function pe(e,t,r){const n=t.concat();var i,o=O(null==r?void 0:r.matchAll(A));try{for(o.s();!(i=o.n()).done;){let e=x(i.value,2)[1];e=e.trim(),e&&n.push({name:e})}}catch(e){o.e(e)}finally{o.f()}return he(e,t,n)}function he(e,t,r,n){const i=n?t.slice(0,n):[],o=(e,t)=>e.name.toLowerCase()===t.name.trim().toLowerCase(),a=(t,r)=>t?((e,t)=>{if(e.isGroup)return e.getFilteredChildren((e=>o(e,t)))[0]})(t,r):((e,t)=>e.getFilteredGroups(void 0,(e=>!e.parent&&o(e,t)))[0])(e,r);return r.forEach((e=>{if(!e.isGroup){const t=i[i.length-1];e=a(t,e)||e}i.push(e)})),i}},46753:(e,t,r)=>{"use strict";r.d(t,{E:()=>o,b:()=>a});var n=r(34038),i=r(26964);function o(e,t,r){const n=t.width,o=void 0===n?e.naturalWidth:n,a=t.height,s=void 0===a?e.naturalHeight:a,c=document.createElement("canvas");if(c.width=o,c.height=s,0===c.width||0===c.height)return{width:0,height:0,dataURL:void 0};let l;try{c.getContext("2d").drawImage(e,0,0,o,s),l=c.toDataURL("image/"+r),l=l.replace(/^data:image\/(png|jpg|jpeg);base64,/,"")}catch(e){i.Z.log("Error using Canvas API to download image")}return{width:c.width,height:c.height,dataURL:l}}function a(e,t,r={},i="png"){const a=o(e,r,i),s=a.width,c=a.height,l=a.dataURL,u=`${t}/${(0,n.Rl)()}.${i}`;return(0,n.NC)(u,l,"base64"),{path:u,width:s,height:c}}},17552:(e,t,r)=>{"use strict";r.d(t,{Lg:()=>u,Ue:()=>l,iO:()=>d,vs:()=>c});var n=r(76485),i=r(75067),o=r(64705),a=r(84824),s=r(99386);function c(e,t){return o.Z.getFilePath()?Promise.resolve(o.Z.getFilePath()):function(e,t){if(n.Z.getFileForSaving)return n.Z.getFileForSaving(`${t}.${s.Z.LIBRARY_SNAPSHOT_EXTENSION}`).then((e=>e?e.nativePath:Promise.reject("No file selected.")));const r=(0,a.Iu)("DL_SELECT_FOLDER");return n.Z.exec("CORE","chooseFileLocation",[r,encodeURIComponent(e),encodeURIComponent(t)]).then((e=>"null"===e||""===e?Promise.reject("No file selected."):decodeURIComponent(e)))}(e,t)}function l(e){return o.Z.getFilePath()?Promise.resolve(o.Z.getFilePath()):function(e){if(n.Z.getFileForOpening)return n.Z.getFileForOpening(s.Z.LIBRARY_ALLOWED_EXTENSIONS).then((e=>e?e.nativePath:Promise.reject("No file selected.")));const t=(0,a.Iu)("DL_SELECT_LIBRARY");return n.Z.exec("CORE","chooseFile",[t,encodeURIComponent(e)]).then((e=>"null"===e||""===e?Promise.reject("No file selected."):decodeURIComponent(e)))}(e)}function u(e,t){if(e)return i.ZP.importLibrary(e,t);t("No file selected")}function d(e,t,r){if(t)return i.ZP.exportLibrary(e,t,r);r("No location selected")}},46903:(e,t,r)=>{"use strict";r.d(t,{$_:()=>De,$h:()=>Ae,D3:()=>Me,EU:()=>Ke,GL:()=>He,IA:()=>Ge,IO:()=>ce,In:()=>H,Iu:()=>ze,J3:()=>Ie,JT:()=>qe,MN:()=>W,Mo:()=>he,NB:()=>Se,NR:()=>we,P:()=>et,Ph:()=>z,Q1:()=>me,QZ:()=>Pe,R3:()=>Fe,RW:()=>fe,SS:()=>Te,UE:()=>ee,Uu:()=>Ne,V5:()=>Oe,VI:()=>ve,W:()=>Ue,Wv:()=>je,XT:()=>rt,Xv:()=>j,Y3:()=>nt,__:()=>ge,a3:()=>Ye,au:()=>$e,bf:()=>de,cC:()=>se,cL:()=>oe,c_:()=>re,cm:()=>Ve,dB:()=>Q,dN:()=>Y,fR:()=>ie,g0:()=>M,hp:()=>Ze,iM:()=>Xe,ii:()=>Z,ix:()=>$,jT:()=>be,kg:()=>Je,l:()=>ne,l8:()=>Ee,mM:()=>F,oY:()=>K,p6:()=>We,pN:()=>Le,rU:()=>Ce,sS:()=>te,u4:()=>xe,vF:()=>ye,vI:()=>U,vM:()=>V,vo:()=>q,wP:()=>Re,w_:()=>tt,yD:()=>ue,zW:()=>Be,zc:()=>_e});var n=r(27611),i=r(98949),o=r(99386),a=r(47320),s=r(76485),c=r(75067),l=r(8733),u=r(17179),d=r(34038),p=r(51461),h=r(84824),f=r(25585),m=r(4784),g=r(16993),v=r(26964),y=r(53849),b=r(84074),_=r(30460),E=r(46931),w=r(69233),x=r(99409),L=r(44914),O=r(18580),S=r(22708),T=r.n(S),P=r(10441),I=r(72373),A=r(73675),C=r(8502),k=r(85834),D=r(39293),N=r(89526);function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function M(e="",t,r){const n={name:d.Rl(),maxWidth:t,maxHeight:r};return s.Z.execApp("saveAssets",[n,!0,e]).then((e=>"undefined"===e?Promise.reject():JSON.parse(e)))}function j(e,t,r,n,i,o){const a={name:d.Rl(),maxWidth:t,maxHeight:r};return s.Z.execApp("saveAssetsPattern",[a,e,n,i,o]).then((e=>"undefined"===e?Promise.reject():JSON.parse(e)))}function F(e,t){let r=!1;return e.forEach((e=>{const t=d.g5(e.path);t&&t.size>c.ZP.MAX_COMPONENT_SIZE&&(r=!0)})),!r||(t&&e.forEach((function(e){d._I(e.path)})),s.Z.showError((0,h.Iu)("DL_ERROR_FILE_TOO_BIG")),!1)}function Z(e,t){return F([{path:e}],t)}const B=(e,t)=>{t?p.ZP.reportError("Library Operations","Import Library",e,void 0,"invalidData"):p.ZP.reportError("Add Assets","Element",e,void 0,"batch-upload",{content:{category:"Bulk Upload"}})},G={hasUnsupportedExtensions:["UNSUPPORTED_ASSET_TITLE","UNSUPPORTED_ASSET_MESSAGE_CONTINUE","graphics-only"],hasOverSizedFiles:["FILE_SIZE_TITLE","FILE_SIZE_MESSAGE_CONTINUE","large-file"],slowUpload:["LARGE_UPLOAD_TITLE","LARGE_UPLOAD_MESSAGE","slow-upload"]};function U(e,t){const r={};let n=[],i=0;if(t.forEach((t=>{t.extension=d.MZ(t.name).toLowerCase();const o=d.oR(t.extension);(e||o)&&(ke().includes(t.extension)?t.size>c.ZP.MAX_COMPONENT_SIZE&&!o?r.hasOverSizedFiles=!0:(n.push(t),i+=t.size):r.hasUnsupportedExtensions=!0)})),n.length>o.Z.NATIVE_DROP_MAX_FILE_COUNT&&(r.exceedsFileCountLimit=!0),(n.length>o.Z.NATIVE_DROP_FILES_SLOW_PERFORMANCE_THRESHOLD||i>10*c.ZP.MAX_COMPONENT_SIZE)&&(r.slowUpload=!0),e&&!m.Z.canAddElements(e,n.length))return B("exceeded-library-limit"),{title:(0,h.Iu)("DL_DESIGN_LIBRARY_NATIVE_EXCEEDED_LIMIT_TITLE"),messages:[(0,h.Iu)("DL_DESIGN_LIBRARY_NATIVE_EXCEEDED_LIMIT_MESSAGE",{num:c.ZP.MAX_ELEMENTS})],files:[],library:e};const a=Object.keys(r),s=ke().join(", ");let l,u;if(r.exceedsFileCountLimit)B("exceeded-max-file-count"),l=(0,h.Iu)("DL_DESIGN_LIBRARY_NATIVE_EXCEEDED_FILE_COUNT_TITLE"),u=[(0,h.Iu)("DL_DESIGN_LIBRARY_NATIVE_EXCEEDED_FILE_COUNT_MESSAGE",{limit:o.Z.NATIVE_DROP_MAX_FILE_COUNT})],n=[];else if(0===n.length)r.hasUnsupportedExtensions?(B("unsupported-asset"),l=(0,h.Iu)("DL_DESIGN_LIBRARY_NATIVE_UNSUPPORTED_ASSET_TITLE"),u=[(0,h.Iu)("DL_DESIGN_LIBRARY_NATIVE_UNSUPPORTED_ASSET_MESSAGE",{supportedExtensions:s})]):r.hasOverSizedFiles&&(B("oversized-file"),l=(0,h.Iu)("DL_DESIGN_LIBRARY_NATIVE_FILE_SIZE_TITLE"),u=[(0,h.Iu)("DL_DESIGN_LIBRARY_NATIVE_FILE_SIZE_MESSAGE",{supportedExtensions:s})]);else if(n.some((e=>d.oR(e.extension)))&&n.some((e=>!d.oR(e.extension))))B("unsupported-file-type-mix",!0),l=(0,h.Iu)("DL_IMPORT_ERROR"),u=[(0,h.Iu)("DL_IMPORT_LIBRARY_ELEMENT_MIX_MESSAGE")],n=[];else if(a.length>0)if(u=a.map((e=>(0,h.Iu)(`DL_DESIGN_LIBRARY_NATIVE_${G[e][1]}`,{supportedExtensions:s}))),a.length>1)l=(0,h.Iu)("DL_DESIGN_LIBRARY_NATIVE_MULTIPLE_ERRORS_TITLE");else{const e=a[0];l=(0,h.Iu)(`DL_DESIGN_LIBRARY_NATIVE_${G[e][0]}`),f=G[e][2],p.ZP.reportEvent("Add Assets","Element","add","element-warning",{event:{error_type:"batch-upload",error_desc:f},content:{category:"Bulk Upload"}})}var f;return{title:l,messages:u,files:n,library:e}}function H(e,t,r="DL_ARTWORK_LABEL"){if("string"==typeof t&&t)return t;const n=(0,h.Iu)(r),i=new RegExp("^"+n+"\\s+(\\d+)$");let o=0;return e.elements.forEach((e=>{const t=i.exec(e.name);if(t&&t[1]){const e=parseInt(t[1],10);e>o&&(o=e)}})),n+" "+(o+1)}function z(e){return l.Z.getLayerName().then((t=>H(e,t)))}function V(e,t,r,n){e?(p.ZP.setExtraEventMetrics("useElement",n),p.ZP.reportUseElement(e,t),r&&p.ZP.reportCreateLink(e.element,t),p.ZP.clearExtraEventMetrics("useElement")):v.Z.log("Error: reporting analytics for invalid representation")}function Y(e,t,r,n){V({type:"image/png",element:e},t,r,n)}function W(e,t,r,n={}){if(o.Z.DISABLE_CREATE_ELEMENT_METRIC_OPTYPES.includes(n.opType)&&(n.disableReport=!0),e)try{p.ZP.setExtraEventMetrics("createElement",n);const i=e.createElement(t,r);return C.ZP.sendCreateElementEvent(i,n),i}catch(e){p.ZP.clearExtraEventMetrics("createElement")}}function K(e,t,r){return!!g.Z.isLibraryWritable(e,t,r)||(s.Z.showError((0,h.Iu)("DL_ERROR_EDIT_READ_ONLY_LIBRARY",{name:e.name})),!1)}function $(e){return!!e.library.isWritable||(s.Z.showError((0,h.Iu)("DL_ERROR_EDIT_READ_ONLY_ELEMENT")),!1)}function q(e){if(e&&e.name)return(0,f.aS)(e.name,150).trim()}function X(e){if((e=u.Z.sortByOrder(e)).some((e=>!(0,f.Ax)(e.order)))){const t=(0,f.Tg)(e.length);e.forEach(((e,r)=>e.order=t[r]))}else for(let t=0;t<e.length-1;t++){const r=e[t],n=r.order,i=e[t+1].order;if(n===i){const n=e[t-1]&&e[t-1].order;r.order=(0,f.Tk)(n,i)}}}class J{constructor(e,t){this.element=e,this.group=t}get order(){return this.element.getOrderInGroup(this.group)}set order(e){this.element.setOrderInGroup(this.group,e)}}function Q(e,t,r,n){const i=(n=Object.assign({merge:!0},n)).merge,o=i&&(0,w.GI)(e.library);e.library.beginOperation(),X(e.library.getGroups());const a=(t||r).parent;e.parent=a,e.order=(0,f.Tk)(t&&t.order,r&&r.order),i&&le(!1,e,e.library,e.library,a,o,o),e.library.endOperation()}function ee(e,t){return e.isGroup?function(e,t){if(!t)return;const r=(0,w.GI)(e.library);return e.name=t,le(!1,e,e.library,e.library,e.parent,r,r)}(e,t):(e.name=t,e)}function te(e,t,r,n){if(r||n||(n=u.Z.sortByOrder(e.getGroups())[0]),!t){const i=(0,w.GI)(e),o=i.root,a=i.branches,s=n||r,c=s?a[s.id].parent:o;t=(0,w.xr)(c)}const i=(0,f.Tk)(r&&r.order,n&&n.order);return e.createGroup(t,i)}function re(e,t,r,n=!0){if(0===e.length)return;if(!t)return e[0].library.beginOperation(),e.forEach((e=>{e.getGroups()[0]&&e.setOrderInGroup(e.getGroups()[0],void 0)})),void e[0].library.endOperation();if(!r){const e=function(e){const t=e.library.elements.filter((t=>t.getGroups()[0]===e));return u.Z.sortByOrderInGroup(e,t)}(t),n=e[e.length-1];r=n?(0,f.Tk)(n.getOrderInGroup(t)):""}const i=(0,f.Tg)(e.length);n&&(e=g.Z.getElementsInViewOrder(e)),t.library.beginOperation(),e.forEach(((e,n)=>{e.group||e.setOrderInGroup(t,r+i[n])})),t.library.endOperation(),g.Z.setGroupCollapsed(t.id,!1)}function ne(e,t,r,n=!1){const i=t&&t.getGroups()[0],o=r&&r.getGroups()[0],a=i||o;a&&(a.library.beginOperation(),function(e){X(e.library.elements.filter((t=>t.getGroups()[0]===e)).map((t=>new J(t,e))))}(a));const s=t&&t.getOrderInGroup(a),c=r&&r.getOrderInGroup(a);re(e,a,(0,f.Tk)(s,c)),a&&a.library.endOperation(),n&&e.length>0&&y.Z.setItemPendingScroll(e[0])}function ie(e){const t={},r={};return e.forEach((e=>{t[`${e.library.id}#${e.id}`]=e,r[e.library.id]=e.library})),Object.keys(r).some((e=>r[e].elements.some((e=>!t[`${e.library.id}#${e.id}`]&&e.dependencies.some((e=>t[`${e.library.id}#${e.id}`]))))))}function oe(e,t){b.ZP.openDialog("confirm",{title:(0,h.Iu)("DL_DELETE_ELEMENTS"),message:(0,h.Iu)("DL_DELETE_ELEMENTS_MESSAGE",{num:e.length}),okText:(0,h.Iu)("DL_DELETE"),onClickOK:t})}function ae(e,t,r,n){const i=`DL_${e.toUpperCase()}`;b.ZP.openDialog("confirm",{title:(0,h.Iu)(i),message:(0,h.Iu)(`${i}_${t.toUpperCase()}_${r}`),okText:(0,h.Iu)(i),onClickOK:n})}function se(e,t,r){ae(e,t,"WITH_DEPENDENTS",r)}function ce(e,t,r,n,i=!1,o=!0){if(e&&o&&ie(t))return void se("move",t.length>1?"elements":"element",(()=>ce(e,t,r,n,i,!1)));const a=new _.T("Element "+(e?"Move":"Copy")),s=t.map(((e,t)=>({element:e,index:t,modified:e.modified}))),c=u.Z.sortByModified(s,!0),l=new Map,d=[],p=c.map((({element:t,index:n})=>{const i=t.library;if(!e||i!==r)return e&&!l.has(i.id)&&(i.beginOperation(),l.set(i.id,i)),(e?i.moveElement(t,r):i.copyElement(t,r)).then((e=>d[n]=e))})),h={};return r.beginOperation(),Promise.all(p).then((()=>{if(i)for(let e=0;e<t.length;e++){const n=t[e].getGroups()[0];if(n){let i=h[n.id];i||(i=r.getGroupById(n.id),i&&i.name===n.name||(i=te(r,n.name)),h[n.id]=i),d[e].setOrderInGroup(i,t[e].getOrderInGroup(n))}}else re(d.length>0?d:t,n);return a.done(),d})).finally((()=>{r.endOperation(),l.forEach((e=>e.endOperation()))}))}function le(e,t,r,n,i,o,a){const s=r!==n,c=(0,w.hL)(t),l=i?a.branches[i.id]:a.root,u=(0,w.Nt)(t,l)[0];if(!u)return t;const d=(0,w.fr)(t,u);return E.Z.panel.toastManager.openToast("undoMergeGroups",{undo:()=>(e&&s?ce(e,c,r,null,!1,!1):Promise.resolve()).then((()=>{(s?[o,a]:[o]).forEach((e=>{(0,w.r5)(e)}))}))}),d}function ue(e,t,r,n,i=!0,o=!0,a=!0){if(!t||!r)return;const s=(0,w.hL)(t);if(e&&i&&o&&ie(s))return void se("move","group",(()=>ue(e,t,r,n,i,!1,a)));if(i&&a&&function(e){const t={};return e.forEach((e=>t[`${e.library.id}#${e.id}`]=e)),e.some((e=>e.dependencies.some((e=>!t[`${e.library.id}#${e.id}`]))))}(s))return void ae(e?"move":"copy","group","WITH_DEPENDENCIES",(()=>ue(e,t,r,n,i,o,!1)));const c=t.library,l=(0,w.GI)(c),u=(0,w.GI)(r);return r.beginOperation(),c.beginOperation(),(0,w.SH)(t,r,n,{isMove:e,includeContents:i}).then((i=>(n&&g.Z.setGroupCollapsed(n.id,!1),le(e,i,t.library,r,n,l,u)))).catch((r=>{v.Z.log(r),e?p.ZP.reportError("Group Operations","Group",r&&r.description,"context-menu","move-group-error",{content:{category:"Right Click"}},t.library):p.ZP.reportError("Add Group","Group",r&&r.description,"context-menu","copy-group-error",void 0,t.library)})).finally((()=>{r.endOperation(),c.endOperation()}))}function de(e,t,r){const n=[];if(!e.representations.some((e=>d.Mu(e.type)))){const t=e.createRepresentation("image/png","rendition");n.push(t.setContentFromPath(r))}return e.setThumbnailCache(t,r).catch((()=>{})),Promise.all(n)}function pe(e){return e.isExternalLink&&!e.getCachedContentPath()&&!e.getCachedExternalLinkError()}function he(e){const t=a.Z.isDownloadInProgress(e),r=function(e){const t=e.representations.find((e=>e.getExternalLinkDownloadProgress()));return t&&t.getExternalLinkDownloadProgress()}(e);return{isDownloadPending:t,percentDownloaded:r,hasFailed:-1===r}}function fe(e){return e.representations.some(pe)?e.modified-1:e.modified}function me(e){const t=e.getPrimaryRepresentation();if(t){const r=d.i_(e.type,t.type);return r&&r.badge}}function ge(e){if(e){const t=d.i_(e.element.type,e.type);return t&&t.exts&&t.exts[0]}}function ve(e){return ge(e.getPrimaryRepresentation())}function ye(e){e.representations.forEach((e=>{pe(e)&&e.getContentPath()}))}function be(e){const t={};return c.ZP.libraries.forEach((r=>{t[r.id]=g.Z.isLibraryWritable(r,!1,!0)&&m.Z.canAddElements(r,e)})),t}function _e(e,t){const r=o.Z.currentProduct.config.defaultLibrarySortState||"name";Object.assign({sortBy:r,filterBy:"all",searchText:"",isAscending:"name"!==r},t);const n=t.sortBy,i=t.filterBy,a=t.searchText,s=t.isAscending;let c;return e=Ee(i,e),a&&(e=(0,P.GZ)(a,e)),k.Z.get("brandFeatureEnabled")&&(c=Ee("brand",e),e=Ee("notBrand",e)),"modified"===n?(e=u.Z.sortByModified(e,s),c&&(c=u.Z.sortByModified(c,s),e=c.concat(e)),e):"created"===n?(e=u.Z.sortByCreated(e,s),c&&(c=u.Z.sortByCreated(c,s),e=c.concat(e)),e):(e=u.Z.sortByName(e,s),c&&(c=u.Z.sortByName(c,s),e=c.concat(e)),e)}function Ee(e,t){switch(e){case"personal":case"yours":return t.filter((e=>!(Fe(e)||Me(e)||De(e)||Be(e))));case"shared":return t.filter((e=>Fe(e)&&!Be(e)));case"public":return t.filter((e=>Me(e)));case"team":return t.filter((e=>De(e)));case"notAdded":return[];case"brand":return t.filter((e=>(0,D.Ol)(e)));case"notBrand":return t.filter((e=>!(0,D.Ol)(e)));case"active":return t.filter((e=>{var t;return E.Z.libraryManager.isLibraryActive(e)&&e.id!==(null===(t=E.Z.libraryManager.publishedDocumentLibrary)||void 0===t?void 0:t.id)}));case"drafts":return t.filter((e=>(0,D.QE)(e)));case"created":return t.filter((e=>function(e){return E.Z.libraryManager.userId===e.createdBy}(e)&&(0,D.ns)(e,t)));case"published":return t.filter((e=>(0,D.Hc)(e)));case"all":return t.filter((e=>(0,D.ns)(e,t)));default:return t}}function we(e){return e.representations.some((e=>d.kJ(e.type)))}function xe(){const e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),2!==o.length);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e)||function(e,t){if(e){if("string"==typeof e)return R(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((c.ZP.getInstalledVersion("ACCC")||"0.0").split(".").map(Number)),t=e[0],r=e[1];return t>5||5===t&&r>=3}function Le(e){return Re(e)||Me(e)}function Oe(e){if("group"===g.Z.viewByState){c.ZP.currentLibrary.beginOperation();const t=te(c.ZP.currentLibrary);e.length>0&&!g.Z.isLibrariesSearchMode()&&re(e,t),c.ZP.currentLibrary.endOperation(),y.Z.revealGroup(t),g.Z.resetMode(),E.Z.panel.viewManager.startRename(t)}}function Se(e){return e.match(/[\\/]/gm)?o.Z.RENAME_STATES.SLASH_ELEMENT:o.Z.RENAME_STATES.VALID}function Te(e,t){return e.length>o.Z.MAX_INPUT_STRING_LENGTH?o.Z.RENAME_STATES.INVALID_LIBRARY_LENGTH:e.endsWith(".")?o.Z.RENAME_STATES.INVALID_LIBRARY_PERIOD:Pe(e)?t&&Ie(e,t)?o.Z.RENAME_STATES.DUPLICATE_LIBRARY:o.Z.RENAME_STATES.VALID:o.Z.RENAME_STATES.INVALID_CHARACTER}function Pe(e){if(!e)return!1;const t=e.trim(),r=t.match(/[/:*\\?"|<>]/),n=t.endsWith("."),i=t.length>0&&t.length<=o.Z.MAX_INPUT_STRING_LENGTH,a=o.Z.WINDOWS_RESERVED_NAMES.find((e=>e.toLowerCase()===t.toLowerCase()));return!r&&!n&&!a&&i}function Ie(e,t){const r=e.trim().toLowerCase();return!!c.ZP.libraries.find((e=>e.name&&e.name.toLowerCase()===r&&e.parentDirectoryId&&t.id===e.parentDirectoryId))}function Ae(e){return e?De(e)?(0,h.Iu)("DL_LIBRARY_STATUS_TEAM"):Me(e)?(0,h.Iu)("DL_LIBRARY_STATUS_PUBLIC"):Fe(e)?(0,h.Iu)("DL_LIBRARY_STATUS_SHARED"):(0,h.Iu)("DL_LIBRARY_STATUS_PERSONAL"):""}function Ce(e,t){if(e){if(Fe(e)&&!De(e)){if(e.collaborators.length){const r=e.visibleCollaborators;if(t){const e=[],t=e=>{const t=(null==e?void 0:e.name)||(null==e?void 0:e.email);return"owner"===e.role?(0,h.Iu)("DL_INFO_OWNER",{name:t}):t};if(r.forEach((r=>{const n=t(r);if(n)if("owner"===r.role){const t=e[0];t?(e[0]=n,e.length<o.Z.MAX_COLLABORATORS&&e.push(t)):e.push(n)}else e.length<o.Z.MAX_COLLABORATORS&&e.push(n)})),r.length>e.length){const t=r.length-e.length;e.push((0,h.Iu)("DL_INFO_MORE_COLLABORATORS",{number:t}))}return e}return r.length>1?(0,h.Iu)("DL_INFO_COLLABORATORS",{number:r.length}):(0,h.Iu)("DL_INFO_COLLABORATOR")}return t&&Re(e)?(0,h.Iu)("DL_INFO_SHARED_WITH_YOU"):(0,h.Iu)("DL_INFO_SHARED")}if(Me(e))return(0,h.Iu)("DL_INFO_PUBLIC");if(De(e)){const t=c.ZP.platformFolders.find((t=>t.id===e.parentDirectoryId))||{};return k.Z.get("enableProjects")?[t.name]:[t.name||(0,h.Iu)("DL_INFO_TEAM"),t.ownerName]}return(0,h.Iu)("DL_INFO_ONLY_YOU")}}function ke(){let e=o.Z.NATIVE_DROP_ALLOWED_FILE_EXTENSIONS;return(c.ZP.isRestrictedAccount||o.Z.currentProduct.config.disableImport)&&(e=o.Z.NATIVE_DROP_ALLOWED_FILE_EXTENSIONS.filter((e=>!d.oR(e)))),e}function De(e){var t;const r="incoming"===e.ownership&&"org"===e.ownerType,n=null===(t=c.ZP.projects)||void 0===t?void 0:t.some((t=>{var r;return(null==t?void 0:t.id)===(null===(r=e.project)||void 0===r?void 0:r.id)}));return Boolean("incoming"===e.ownership&&e.project||r)&&n}function Ne(e){return c.ZP.platformFolders.find((t=>t.id===e.parentDirectoryId))}function Re(e){return("incoming"===e.ownership||o.Z.currentProduct.config.adminFilterFallback&&!function(e){return E.Z.libraryManager.userId===e.owner}(e))&&!De(e)}function Me(e){return"public"===e.ownership}function je(e){return["private","outgoing"].includes(e.ownership)}function Fe(e){var t;return Re(e)||"outgoing"===e.collaboration||"outgoing"===(null===(t=e.collaboration)||void 0===t?void 0:t.state)}function Ze(e){return e&&e.isPushedToServer&&!e.toolkitId&&!Me(e)&&!e.isDeletedFromServer&&e.isWritable&&!c.ZP.isRestrictedAccount}function Be(e){var t;return(0,D.Hc)(e)&&Re(e)&&!(null!==(t=e.bookmark)&&void 0!==t&&t.id)}function Ge(){return 0!==c.ZP.platformFolders.length}function Ue(e){const t=!De(e)||e.isParentWritable;return Boolean(!e.toolkitId&&!e.documentId&&e.isWritable&&t)}function He(e){if(o.Z.currentProduct.config.readOnlyPanelUI)return!1;const t=De(e)?e.isParentWritable&&e.isWritable:!Le(e)&&!e.toolkitId;return Boolean(!e.isDeletedFromServer&&t)}function ze(){return(c.ZP.syncErrors||[]).reduce(((e,t)=>{const r=c.ZP.getLibraryById(t.libraryId);return t.code===c.ZP.errors.EXCEEDS_QUOTA&&r?e.concat([r]):e}),[])}function Ve(){return c.ZP.syncErrors.reduce(((e,t)=>{const r=c.ZP.getLibraryById(t.libraryId);if(r&&"incoming"!==r.ownership)return e;const n=t.code===c.ZP.errors.EXCEEDS_QUOTA;return r&&n?e.concat([r]):e}),[])}function Ye(e){return L.a3(e)}function We(e,t){const r=s.Z.getLocale(),n=new Intl.RelativeTimeFormat(r,{numeric:"auto"}),i=new Intl.DateTimeFormat(r,{numeric:"auto"}),o=Date.now(),a=36e5,c=24*a,l=7*c,u=30*c,d=365*c,p=[{type:d,divisor:d,unit:"year"},{type:u,divisor:u,unit:"month"},{type:l,divisor:l,unit:"week"},{type:c,divisor:c,unit:"day"},{type:a,divisor:a,unit:"hour"},{type:6e4,divisor:6e4,unit:"minute"},{type:3e4,divisor:1e3,unit:"seconds"},{type:0,divisor:1,text:(0,h.Iu)("DL_JUST_NOW")}],f=("object"==typeof o?o.getTime():new Date(o).getTime())-("object"==typeof e?e:new Date(e)).getTime(),m=Math.abs(f);if(t&&f>t)return i.format(e);for(var g=0,v=p;g<v.length;g++){const e=v[g];if(m>=e.type){const t=Math.round(Math.abs(f)/e.divisor),r=f<0;return e.unit?n.format(r?t:-t,e.unit):e.text}}}function Ke(e){if((0,D.Hc)(e))return N.createElement(n.Z,{id:"Building",height:12,"data-test-id":"building-icon"});if(De(e)){var t;const r=null===(t=c.ZP.platformFolders)||void 0===t?void 0:t.find((t=>t.id===e.parentDirectoryId));return k.Z.get("enableProjects")?N.createElement(i.Z,{project:r}):N.createElement(n.Z,{id:"Building",height:12,"data-test-id":"building-icon"})}return Fe(e)?N.createElement(n.Z,{id:"UserGroup",height:12,"data-test-id":"user-group-icon"}):Me(e)?N.createElement(n.Z,{id:"Globe",height:12,"data-test-id":"globe-icon"}):N.createElement(n.Z,{id:"User",height:12,"data-test-id":"user-alone-icon"})}function $e(e,t){const r=o.Z.currentProduct.config.disabledLibraryContextMenuActions||[];e.stopPropagation();let n=[];n=o.Z.currentProduct.config.useBrandActions?E.Z.panel.brandActions.getBrandActions(t):E.Z.panel.libraryActions.getLibraryActions(t,!1,!1,!0).filter((e=>!r.includes(e.id))),x.Z.openContextMenu(n,e)}function qe(e){const t=o.Z.currentProduct.config.disableDelimitedNamesConversion;return!(!g.Z.isLibraryWritable(e)||t)&&!![...e.elements,...e.getGroups()].find((e=>e.isGroup?(e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.includes("/")})(e):(0,w.kQ)(e)))}function Xe(e){return O.Z.isStyleguideEnabled()&&(g.Z.isLibraryWritable(e)||e.documentationElementCount>0)}function Je(e){return(0,h.Iu)(e.documentationElementCount>0?"DL_FLYOUT_VIEW_STYLEGUIDE":"DL_FLYOUT_ADD_STYLEGUIDE")}new Proxy({},{get:(e,t)=>(console.warn("LibraryUtils.libraryActions is deprecated, use this.context.libraryActions instead"),E.Z.panel.libraryActions[t])});const Qe=new WeakMap;function et(e){if(Qe.get(e))return Qe.get(e);const t=T()();return Qe.set(e,t),t}function tt(e){const t="group"===g.Z.viewByState?(()=>{const t=[],r=e=>{e.item&&e.item.isGroup&&t.push(`${e.item.classifierName}#${e.item.id}`),e.children&&e.children.forEach(r)},n=g.Z.elementSortState,i=w.GI(e,{sortBy:n}).root;return r(i),t})():a.Z.getElementTypes(),r="role"===g.Z.viewByState?"type":g.Z.viewByState;e.loadElements({sectionType:r,sections:t,field:"modified"===g.Z.elementSortState?"modifiedDate":"name",direction:g.Z.elementSortDescendingState?"descending":"ascending"})}function rt(e){e.preventDefault(),e.stopPropagation(),o.Z.currentProduct.config.noFlyoutMenu&&I.Z.showDebugMenu()&&e.shiftKey&&e.altKey&&x.Z.openContextMenu((0,A.I0)(),e)}function nt(e,t,r=!1){switch(e){case t.RETRYABLE_SERVER_ERROR:return"server";case t.NETWORK_ERROR:case t.LOGGED_OUT:return"network";case t.FS_ERROR:return"fs";case t.EXCEEDS_QUOTA:return r?"sharedQuota":"quota";case t.ACCESS_DENIED:return"noAccess";case t.REQUEST_FAILED:return"requestFailed";default:return"general"}}},30131:(e,t,r)=>{"use strict";r.d(t,{A8:()=>J,Az:()=>H,BF:()=>ee,Bx:()=>N,Ds:()=>M,Em:()=>j,Gh:()=>F,Hu:()=>A,I0:()=>I,LP:()=>V,NA:()=>Q,Nn:()=>S,Oh:()=>U,Pi:()=>D,TZ:()=>W,UK:()=>k,WS:()=>$,_y:()=>oe,aF:()=>B,df:()=>X,f2:()=>z,gZ:()=>G,jg:()=>re,kX:()=>R,m_:()=>ie,mr:()=>Z,nR:()=>q,nd:()=>P,q4:()=>T,rT:()=>te,rb:()=>ne,tD:()=>C,uF:()=>L,v7:()=>K,w3:()=>O,yO:()=>x});var n=r(99386),i=r(75067),o=r(98218),a=r(76485),s=r(31870),c=r(76325),l=r(51461),u=r(16993),d=r(57806);function p(e,t,r,n){t?a.Z.launchInBrowserAsync(h(e,0,r,n)):a.Z.launchInBrowser(e)}function h(e,t,r,a,s){return c.Z.getAccessToken(i.ZP.userId).then((t=>{const i=c.Z.getEnvironment(),l={method:"POST",url:`https://${i.ims}/ims/jumptoken/v1`,headers:{"Content-type":"application/x-www-form-urlencoded","User-Agent":o.Z.getUserAgent()},body:y({client_id:i.clientId,bearer_token:t,target_client_id:r||"CreativeCloudWeb1",target_redirect_uri:e,target_scope:a||"openid,creative_cloud,read_organizations,additional_info.screen_name,additional_info.secondary_email",target_response_type:r===n.Z.STOCK_CLIENT_ID?"code":"token"})},u=new Request(l.url,l);return fetch(u).then((e=>e&&401!==e.status?e.json():Promise.reject(e))).then((e=>e.jump?e.jump:Promise.reject(e))).catch((t=>401!==t.status||s?e:(c.Z.clearAccessToken(),h(e,0,r,a,!0))))})).catch((()=>e))}function f(){return c.Z.getEnvironment().ccwebHost}function m(e){return e.publicLinkId||e.assetId||e.id}function g(e){const t=f();let r=n.Z.CCWEB_LIBRARIES_URL;return r=r.replace(/ZZZZ/,t),r=r.replace(/YYYY/,m(e)),r}function v(e){const t=f();let r=n.Z.CCWEB_ELEMENT_URL;return r=r.replace(/ZZZZ/,t),r=r.replace(/YYYY/,m(e.library)),r=r.replace(/XXXX/,e.id),r}function y(e){return Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}function b(e){const t=y(e);return t.length?"?"+t:""}function _(e){let t=a.Z.getLocale().substring(3).toLowerCase();return t="fr-CA"===a.Z.getLocale()?"_fr_ca":n.Z.AVAILABLE_HELP_LANGUAGES[t]?"_"+t:"",e+t}function E(){const e=l.ZP.addProductHeaders({});let t=a.Z.getLocale();return t&&0!==t.length||(t="en-US"),{"x-product":e["X-Product"],"x-product-location":e["X-Product-Location"],as_camptype:n.Z.currentProduct.config.fullName,as_channel:"adobe_apps",as_campclass:"brand",as_campaign:"cc15_app",as_source:"app",as_content:"library",locale:t,sso_inbound:1}}function w(e,t){let r=!1;const i=(e,r,n)=>{t[e]&&n?t[e]+="%2C"+r:t[e]=r};e&&n.Z.STOCK_SEARCH_OPTIONS.forEach((t=>{e[t.id]&&(i("filters[content_type:"+t.param+"]",1),t.filterKey&&i("filters["+t.filterKey+"][]",t.filterValue,!0),r=!0)})),r||s.Tu().forEach((e=>{i("filters[content_type:"+e.param+"]",1)}))}function x(e){if(e){const t=g(e);l.ZP.reportOutgoingUrlEvent("Navigation","Flyout Menu","click","view-website",t),p(t,!0)}}function L(e,t){t=t||"Flyout Menu";const r=function(e){const t=f();let r=e?n.Z.CCWEB_LIBRARY_ARCHIVE_URL:n.Z.CCWEB_LIBRARIES_ARCHIVE_URL;return r=r.replace(/ZZZZ/,t),r=r.replace(/YYYY/,e&&m(e)),r}(e);l.ZP.reportOutgoingUrlEvent("Navigation",t,"click","view-deleted-items",r),p(r,!0)}function O(e,t,r){if(e){const n=r||{};t&&(n.section=t),l.ZP.reportEvent("Navigation","View Element on Website","click","success"),p(v(e)+b(n),!0)}}function S(e){if(e){const t={dialog:"report_abuse"};l.ZP.reportEvent("Navigation","Report Abuse on Website","click","success"),p(v(e)+b(t),!0)}}function T(e){if(e){const t=g(e)+"/styleguide";l.ZP.reportOutgoingUrlEvent("Styleguide","Flyout Menu","click","view-website",t),p(t,!0)}}function P(e){if(e){const t=g(e)+b({dialog:"collaborate",mv:n.Z.SHARE_LINK_HOST_TYPE_PARAM,mv2:n.Z.currentProduct.config.code});l.ZP.reportOutgoingUrlEvent("Library Operations","Collaboration","click","invite",t),p(t,!0)}}function I(e){const t=_(n.Z.LEARN_MORE_URL_ROOT);l.ZP.reportOutgoingUrlEvent("Navigation",e?"Flyout Menu":"","click","learn-more",t),p(t,!1)}function A(){const e=_(n.Z.LEARN_MORE_TEAMS_URL_ROOT);l.ZP.reportOutgoingUrlEvent("Navigation","Teams Onboarding","click","learn-more",e),p(e,!1)}function C(){const e=_(n.Z.LEARN_MORE_QUOTA_URL_ROOT);l.ZP.reportOutgoingUrlEvent("Navigation","Onboarding","click","learn-more-quota",e),p(e,!1)}function k(){var e;p(_(null!==(e=n.Z.currentProduct.config.customGroupLearnMoreLink)&&void 0!==e?e:n.Z.PATH_VIEW_URL_ROOT),!1)}function D(){const e=_(n.Z.WHATS_NEW_URL_ROOT);l.ZP.reportOutgoingUrlEvent("Navigation","Whats New","click","learn-more",e),p(e,!1)}function N(){p(_(n.Z.FEEDBACK_URL_ROOT),!1)}function R(){p(_(c.Z.getEnvironment().supportContactGoURL),!1)}function M(e){let t=_(n.Z.SERVICE_ERROR_URL_ROOT);e&&(t=t+"#"+e),p(t,!1)}function j(e){let t=_(n.Z.SERVICE_ERROR_URL_ROOT);return e&&(t=t+"#"+e),t}function F(){p(_(n.Z.INSTALL_CC_APP_URL_ROOT),!1)}function Z(){return _(n.Z.INSTALL_CC_APP_URL_ROOT)}function B(){p(_(n.Z.UPDATE_CC_LIBRARIES_URL_ROOT),!1)}function G(){return _(n.Z.UPDATE_CC_LIBRARIES_URL_ROOT)}function U(e){if(e){const t=g(e)+b({dialog:"share",mv:n.Z.SHARE_LINK_HOST_TYPE_PARAM,mv2:n.Z.currentProduct.config.code});l.ZP.reportOutgoingUrlEvent("Library Operations","Collaboration","click","share-link",t),p(t,!0)}}function H(){const e=_(n.Z.XD_MISSING_LINKS_ASK_FOR_ACCESS_LEARN_MORE);l.ZP.reportOutgoingUrlEvent("ResolveBrokenLinksDialog","Ask collaborators for access","click","learn-more",e),p(e,!1)}function z(){const e=_(n.Z.XD_MIGRATE_TO_CCLIBRARIES_LEARN_MORE);l.ZP.reportOutgoingUrlEvent("ResolveBrokenLinksDialog","Migrate xd to cc libraries","click","learn-more",e),p(e,!1)}function V(){const e=_(n.Z.XD_UI_KITS_ROOT);return p(e,!1),e}function Y(){return"https://"+c.Z.getEnvironment().stockWebHost}function W(e,t){const r=E();r.similar_content_id=e,w(t,r),p(Y()+n.Z.STOCK_SEARCH_PATH+b(r),!0,n.Z.STOCK_CLIENT_ID,n.Z.STOCK_TARGET_SCOPE)}function K(e,t,r=!1){t=t||{};const i=E();i.k=encodeURIComponent(e),w(t,i);let o=`${Y()}${n.Z.STOCK_SEARCH_PATH}${r?"/audio":""}${b(i)}`;if(l.ZP.reportOutgoingUrlEvent("Stock","Search","click","show-more",o,{ui:{filter:u.Z.getStockSearchOptionValuesArray().length?u.Z.getStockSearchOptionValuesArray().join(", "):"none"}},!0),t.template){const e=n.Z.currentProduct.config.code,t=n.Z.STOCK_SEARCH_PRODUCT_TEMPLATE_ID_MAP[e];t&&t.forEach((e=>{o+="&filters[template_type_id][]="+e}))}p(o,!0,n.Z.STOCK_CLIENT_ID,n.Z.STOCK_TARGET_SCOPE)}function $(e,t){const r=t===n.Z.AUDIO_ELEMENT_TYPE,i=Y(),o=new URL(i);Object.entries(E()).forEach((([e,t])=>o.searchParams.set(e,t))),r?(o.pathname="/search/audio",o.searchParams.set("k",e)):function(e){return new RegExp("^urn:astk:asset:t:(.+)$").test(e)}(e)?(o.pathname="/generate/details",o.searchParams.set("urn",e)):o.pathname=`/${e}`,p(o.href,!0,n.Z.STOCK_CLIENT_ID,n.Z.STOCK_TARGET_SCOPE)}function q(e){const t=function(e){const t=c.Z.getEnvironment().linkServiceWebHost;let r=n.Z.PUBLIC_LIBRARY_URL;return r=r.replace(/ZZZZ/,t),r=r.replace(/YYYY/,e),r}(e);p(t,!0,n.Z.PUBLIC_LINK_CLIENT_ID,n.Z.PUBLIC_LINK_TARGET_SCOPE)}function X(){return h(function(){const e="Staging"===c.Z.getEnvironment().label?"-stg":"";let t=`${n.Z.CCWEB_TEAM_LIBRARIES_URL}${e}`,r=a.Z.getLocale();r&&0!==r.length||(r="en-US");const i=c.Z.getEnvironment().clientId;return t+=b({locale:n.Z.ASSETS_WEB_SPECIALTY_LANGUAGE_MAP[r]||r.substr(0,2),source:i,theme:d.ZP.reactSpectrumTheme}),t}())}function J(){p(_(n.Z.STOCK_LICENSE_INFORMATION_URL_ROOT),!1)}function Q(){p(Y(),!0,n.Z.STOCK_CLIENT_ID,n.Z.STOCK_TARGET_SCOPE)}function ee(){p(function(){const e=f();let t=n.Z.CCWEB_BROWSE_ALL_URL;return t=t.replace(/ZZZZ/,e),t}(),!0)}function te(){let e="staging"===a.Z.imsEnvironment?n.Z.CCWEB_MARKETPLACE_STAGE:n.Z.CCWEB_MARKETPLACE_PROD;e=e.replace(/ZZZZ/,a.Z.getLocale()),p(e,!1)}function re(){p(_(n.Z.DELETE_HELPX_ROOT),!1)}function ne(){p(_(n.Z.PUBLISH_LEARN_MORE_ROOT),!1)}function ie(e,t){let r="staging"===a.Z.imsEnvironment?n.Z.EXPRESS_STAGE:n.Z.EXPRESS_PROD;return r=r.replace(/ZZZZ/,e?"brands":"libraries"),r=r.replace(/XXXX/,t),r}function oe(e,t,r){let i=n.Z.FLOODGATE_URL;return i=i.replace(/ZZZZ/,c.Z.getEnvironment().personalizationHost),i+=b(Object.assign({clientId:e},t?{ISUserSelectedID:t}:null,r?{CommonOrgID:r}:null)),i}},86351:(e,t,r)=>{"use strict";function n(e,t){let r,n;e?(r=e,n={}):(r={},n=r);const i={};function o(e){return!t||i[e]}return t&&t.forEach((function(e){i[e]=[]})),n.notify=function(e,...t){if(i[e]){const r=i[e].slice();i[e]=i[e].filter((e=>!e.isOneTime)),r.forEach((e=>e(...t)))}},n.hasListeners=function(e){return i[e]&&i[e].length>0},r.addListener=function(e,t,r){if(!o(e))throw new Error("Invalid listener event: "+e);i[e]=i[e]||[],i[e].push(t),r&&(t.isOneTime=!0)},r.removeListener=function(e,t){if(!o(e))throw new Error("Invalid listener event: "+e);i[e]=i[e]||[];const r=i[e].indexOf(t);-1!==r&&i[e].splice(r,1)},n}r.d(t,{N:()=>n})},17179:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(76485);const i=new class{init(e=n.Z.getLocale()){this._collator=new Intl.Collator(e,{numeric:!0})}compare(e,t){return e===t?0:"string"==typeof e&&"string"==typeof t?this._collator.compare(e,t):e<t?-1:1}_sort(e,t,r){return e.sort(((e,n)=>r?this.compare(t(e),t(n)):this.compare(t(n),t(e))))}sortByCreated(e,t=!1){return this._sort(e,(e=>e.created),t)}sortByModified(e,t=!1){return this._sort(e,(e=>e.modified),t)}sortByName(e,t=!0){return this._sort(e,(e=>e.name),t)}sortByOrder(e){return e.sort(((e,t)=>e.order<t.order?-1:e.order>t.order?1:0))}sortByOrderInGroup(e,t){return t.sort(((t,r)=>{const n=t.getOrderInGroup&&t.getOrderInGroup(e),i=r.getOrderInGroup&&r.getOrderInGroup(e);return n<i?-1:n>i?1:0}))}}},68370:(e,t,r)=>{"use strict";r.d(t,{o:()=>s,s:()=>a});var n=r(75067),i=r(47320),o=r(8733);function a(e,t,r=!0){(t=t.filter((e=>e))).length>0&&(e.length>0&&r&&e.push({divider:!0}),e.push.apply(e,t))}function s(e,t){const r=o.Z.getLayerInfo();if(!r)return[];const s=[],c=i.Z.getAddOperations(r,n.ZP.currentLibrary),l=r=>({label:r.name,onClick:()=>{r.interactive?r.apply(e):r.apply(n.ZP.currentLibrary,t).then((r=>{r=Array.isArray(r)?r:[r],e&&e(r,t)}))},divider:r.divider,icon:r.icon,style:r.style}),u=c.filter((e=>e.interactive)).map((e=>l(e))),d=c.filter((e=>!e.interactive)).map((e=>l(e)));return a(s,u),a(s,d),d.length>1&&s.push({label:"DL_ADD_ALL",icon:"Add",onClick:()=>Promise.all(d.map((e=>e.onClick(n.ZP.currentLibrary,t))))}),s}},97536:(e,t,r)=>{"use strict";r.d(t,{y6:()=>F,V1:()=>G,iy:()=>B,tf:()=>K,g9:()=>H,XI:()=>R,Kf:()=>Y,zW:()=>$,Sy:()=>W,Lp:()=>z,UK:()=>M,k3:()=>j,cb:()=>U,ny:()=>X,Zc:()=>ee,jh:()=>V});var n,i,o=r(75067),a=r(79799),s=r(16993),c=r(84074),l=r(50777),u=r(50265);const d={init:{"click-add-button":"onboarding"},onboarding:{},end:{}};let p=(n=class{constructor(){var e;this.name="CaptureOnboarding",(e=i)&&Object.defineProperty(this,"_state",{enumerable:e.enumerable,configurable:e.configurable,writable:e.writable,value:e.initializer?e.initializer.call(this):void 0})}notifyAction(e){this._state=d[this._state][e]||"end","onboarding"===this._state&&(0,l.Sz)()?c.ZP.openDialog("captureOnboardingPopover"):c.ZP.closeDialog()}},h=n.prototype,f="_state",m=[u.observable],g={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"init"}},v={},Object.keys(g).forEach((function(e){v[e]=g[e]})),v.enumerable=!!v.enumerable,v.configurable=!!v.configurable,("value"in v||v.initializer)&&(v.writable=!0),v=m.slice().reverse().reduce((function(e,t){return t(h,f,e)||e}),v),void 0===v.initializer&&(Object.defineProperty(h,f,v),v=null),i=v,n);var h,f,m,g,v,y=r(46903),b=r(99386),_=r(84824),E=r(46931),w=r(5837),x=r(30131),L=r(89526);function O(){O=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function S(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function T(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){S(o,n,i,a,s,"next",e)}function s(e){S(o,n,i,a,s,"throw",e)}a(void 0)}))}}const P={firstEnteredLibrary:{check:function(){return!s.Z.isRootView()&&!s.Z.isOneUpMode()&&o.ZP.currentLibrary.isWritable},start:function(){const e="shown"===k("newUserRoot");e&&s.Z.setTourInProgress(!0),c.ZP.openDialog("firstEnteredLibraryOnboardingPopoverTour",{isNewUserTour:e},(()=>{e&&F("groupsPathView"),j()}))}},groupsPathView:{check:function(){return o.ZP.libraries.filter((e=>!e.collaboration||"outgoing"===e.collaboration)).some((e=>e.elements.length>1))&&R()},start:M},capture:{check:function(){return(0,l.BQ)()&&!s.Z.isNewUserState()&&!s.Z.isRootView()},start:function(){s.Z.setCurrentWorkflow(new p)}},quotaUpdate:{check:J,start:Q}},I={panelRootOnboarding:{check:Y,start:function(){const e=Date.now();(0,u.when)((()=>["ok","syncing"].includes(o.ZP.syncStatus.state)),(()=>{Date.now()-e<=5e3&&s.Z.isRootView()&&c.ZP.openDialog("rootViewOnboardingPopover",{},V)}))}},quotaUpdate:{check:J,start:Q}},A=["teamLibraryOneUpPanel","teamsLibraryOpen","teamsLibraryCreate"];function C(e){return`${o.ZP.userId}#onboarding#${e}`}function k(e){return a.Z.getLocalMachineSetting(C(e))}function D(e,t){return N.apply(this,arguments)}function N(){return(N=T(O().mark((function e(t,r){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.Z.setLocalMachineSetting(C(t),r);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function R(){return s.Z.viewByState===b.Z.VIEW_BY_MODES.GROUP&&!s.Z.isRootView()&&"shown"!==k("groupsPathView")}function M(){R()&&c.ZP.openDialog("pathViewOnboarding",{},j)}function j(){if(b.Z.currentProduct.config.disableOnboarding)return;const e=Object.keys(P).find((e=>"shown"!==k(e)&&P[e].check()));e&&P[e].start()}function F(e){return Z.apply(this,arguments)}function Z(){return(Z=T(O().mark((function e(t){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(k(t)){e.next=3;break}return e.next=3,D(t,"shown");case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function B(){D("newUserRoot",null),D("librariesManager",null),D("deleteNestedGroupContents",null),D("pathViewEditToast",null),D("treeViewEditToast",null),Object.keys(P).forEach((e=>D(e,null))),Object.keys(I).forEach((e=>D(e,null))),A.forEach((e=>D(e,null)))}function G(){D("librariesManager",null)}function U(e){"shown"!==k("librariesManager")&&e.dialogManager.openDialog("managerOnboardingPopoverTour")}function H(){return"shown"!==k("deleteNestedGroupContents")}function z(e){H()&&c.ZP.openDialog("confirm",{title:(0,_.Iu)("DL_DELETE_NESTED_TITLE"),message:(0,_.Iu)("DL_DELETE_NESTED_MESSAGE"),okText:(0,_.Iu)("DL_DELETE"),hasDismissCheckbox:"deleteNestedGroupContents",onClickOK:()=>o.ZP.deleteGroups(e,{deleteContents:!0,checkForDependents:!1,hasSeenWarning:!0})})}function V(){if(b.Z.currentProduct.config.disableOnboarding)return;const e=Object.keys(I).find((e=>"shown"!==k(e)&&I[e].check()));e&&I[e].start()}function Y(){return!b.Z.currentProduct.config.disableOnboarding&&"shown"!==k("panelRootOnboarding")&&!b.Z.currentProduct.config.mustHaveCurrentLibrary}function W(){(function(){if(!b.Z.currentProduct.config.showCCDTeamsOnboarding)return!1;const e="shown"===k("teamsLibraryOpen");return!s.Z.isRootView()&&!s.Z.isOneUpMode()&&y.$_(o.ZP.currentLibrary)&&!e})()&&c.ZP.openDialog("teamsLibraryCCDOneUpOnboardingDialog")}function K(){return y.IA()&&"shown"!==k("teamsLibraryCreate")}function $(e,t){return q.apply(this,arguments)}function q(){return(q=T(O().mark((function e(t,r){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(K()){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,F("teamsLibraryCreate");case 4:s.Z.setRemoveDialogPadding(!0),c.ZP.openDialog("teamsLibraryCreateCCDOnboardingDialog",{removePadding:!0,onCreate:t,onClose:r});case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function X(){(function(){if(b.Z.currentProduct.config.disableOnboarding&&!b.Z.currentProduct.config.showTeamsOnboarding||b.Z.currentProduct.config.disableCCDTeamsOneUpOnboarding)return;const e="shown"===k("teamLibraryOneUpPanel");return!s.Z.isRootView()&&!s.Z.isOneUpMode()&&y.$_(o.ZP.currentLibrary)&&!e})()&&c.ZP.openDialog("panelTeamLibraryOneUpOnboardingPopover")}function J(){return"shown"!==k("quotaUpdate")}function Q(){let e,t;const r=()=>{e&&e(),t&&t()};t=(0,u.when)((()=>!!o.ZP.userQuota),(()=>{r();const e=o.ZP.userQuota,t=o.ZP.storageUsed;(e.storage_used+t)/e.storage_quota*100>=b.Z.QUOTA_WARNING_THRESHOLD&&c.ZP.openDialog("quotaWarningPopover",{},s.Z.isRootView()?V:j)})),e=(0,u.reaction)((()=>s.Z.isRootView()),r)}function ee(e){if(!function(e){return"shown"!==k(`${e}ViewEditToast`)}(e=e.toLowerCase()))return;const t=e===b.Z.VIEW_BY_GROUP_MODES.PATH?(0,_.Iu)("DL_GROUP_PATH_VIEW_EDIT_TOAST_MESSAGE"):L.createElement(w.Z,{linkClickMethods:{learnMore:()=>(0,x.UK)()},html:(0,_.Iu)("DL_GROUP_TREE_VIEW_EDIT_TOAST_MESSAGE")});E.Z.panel.toastManager.openToast("message",{message:t}),F(`${e}ViewEditToast`)}},30460:(e,t,r)=>{"use strict";r.d(t,{T:()=>i});var n=r(26964);class i{constructor(e){this._startTime=Date.now(),this._name=e,this._timeout=setTimeout((()=>{n.Z.log(`[PERFORMANCE] Metric: ${this._name}, Duration: Max time reached (1hr)`)}),36e5)}done(){n.Z.log(`[PERFORMANCE] Metric: ${this._name}, Duration: ${Date.now()-this._startTime}ms`),clearTimeout(this._timeout)}}},20290:(e,t,r)=>{"use strict";function n(){n=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function f(){}var m={};c(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(O([])));v&&v!==t&&r.call(v,o)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=f,c(y,"constructor",f),c(f,"constructor",h),h.displayName=c(f,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),c(y,s,"Generator"),c(y,o,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function o(e,t=(()=>{})){return new Promise((r=>{setTimeout((()=>{r(t())}),e)}))}function a(e,t){let r;return(...n)=>new Promise(((i,o)=>{r&&clearTimeout(r),r=setTimeout((()=>{t(...n).then(i,o),r=void 0}),e)}))}function s(e,t,r){return c.apply(this,arguments)}function c(){return(c=function(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function s(e){i(a,n,o,s,c,"next",e)}function c(e){i(a,n,o,s,c,"throw",e)}s(void 0)}))}}(n().mark((function e(t,r,i){var a;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i();case 2:if(!(a=e.sent)){e.next=5;break}return e.abrupt("return",Promise.resolve(a));case 5:if(!(r<=0)){e.next=7;break}return e.abrupt("return",Promise.reject(a));case 7:return e.abrupt("return",o(t).then((()=>s(t,r-1,i))));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(e,t){let r,n;return function(...i){return r||n&&!(n<Date.now()-t)?Promise.resolve():(r=!0,e(...i).finally((()=>{n=Date.now(),r=!1})))}}r.d(t,{Ds:()=>a,P2:()=>l,XD:()=>s,gw:()=>o})},10441:(e,t,r)=>{"use strict";r.d(t,{GZ:()=>s,OX:()=>a,fs:()=>i});var n=r(47320);function i(e){var t;return!(e=e&&e.trim().toLowerCase()&&('"'===(t=e).charAt(0)&&'"'===t.charAt(t.length-1)?t.substring(1,t.length-1):t))}function o(e){if(!(e=e&&e.trim().toLowerCase()))return[];let t;return t=e.length>2&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?[e.substring(1,e.length-1)]:e.indexOf(" ")>-1||e.indexOf("/")>-1?e.split(/[ /]+/):[e],t}function a(e,t){if(!(t&&Array.isArray(t)&&t.length&&e))return[];const r=o(e);if(0===r.length)return[];const i=(e=>t=>n.Z.getElementSearchFunction(t.type)(t,e))(r);let a=[];return t.forEach((e=>a=a.concat(e.getFilteredElements(i)))),a}function s(e,t){if(!t||!Array.isArray(t)||!e)return[];const r=o(e);return 0===r.length?[]:t.filter((e=>{const t=e.name.toLowerCase();for(let e=0;e<r.length;e++){const n=r[e];if(!t.includes(n))return!1}return!0}))}},25585:(e,t,r)=>{"use strict";r.d(t,{Ax:()=>b,BJ:()=>w,CI:()=>x,E4:()=>f,NJ:()=>p,Tg:()=>E,Tk:()=>_,Wf:()=>L,Zj:()=>d,aS:()=>u,q8:()=>h});var n=r(21947),i=r.n(n),o=r(76485),a=r(99386),s=r(2169),c=r(5837),l=r(89526);function u(e,t,r=!0){const n=r?"...":"";return e.length<=t?e:i().ucs2.encode(i().ucs2.decode(e).slice(0,t))+n}function d(e,t){const r=e.join(a.Z.PATH_VIEW_GROUP_SEPARATOR),n=t.maxWidth,i=t.className;if(!n||1===e.length)return r;if((0,s.E0)(r,i).width>=n){const r="..."===e[1];return 2===e.length||r&&3===e.length?["...",e[e.length-1]].join(a.Z.PATH_VIEW_GROUP_SEPARATOR):d([e[0],"...",...e.slice(r?3:2)],t)}return r}function p(e){return i().ucs2.decode(e).length}function h(e){const t=Math.floor(e/6e4),r=(e%6e4/1e3).toFixed(0);return t+":"+(r<10?"0":"")+r}function f(e){if(!e.length)return a.Z.DEFAULT_TOAST_TIMEOUT;const t=o.Z.getLocale(),r=a.Z.DISPLAY_TIME_PER_CHARACTER[t]||a.Z.DISPLAY_TIME_PER_CHARACTER["en-US"];return Math.max(e.length*r,a.Z.DEFAULT_TOAST_TIMEOUT)}function m(e,t,r){return(e=e<t?t:e)>r?r:e}function g(e,t){return String.fromCharCode(Math.round((e.charCodeAt(0)+t.charCodeAt(0))/2))}const v="a",y=/^[a-z]*[b-z][a-z]*$/;function b(e){return"string"==typeof e&&y.test(e)}function _(e,t){if(e=m(e||v,v,"{"),(t=m(t||"{",v,"{"))===e)return e;if(t<e){const r=e;e=t,t=r}for(let r=0;r<e.length;r++){const n=e[r],i=t[r];if(!i||n<i){const t=g(n,i);return t===i?e.substring(0,r+1)+_(e.substring(r+1),"{"):e.substring(0,r)+t}}return e+_(v,t.substring(e.length))}function E(e,t,r){if(0===e)return[];const n=_(t,r),i=Math.floor(e/2),o=e-i-1,a=E(i,t,n),s=E(o,n,r);return a.concat([n]).concat(s)}function w(e,t){return(e=e.replace(/[<>:"/\\|?*\x00-\x1F]/g,"_").trim())||t}function x(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function L(e){const t=e.message,r=e.actions;if(r&&r.validationNeeded){const e=r.validationNeeded,n=e.delimiter,i=`<a href="${e.href}">${e.text}</a>`,o=t.replace(n,i);return l.createElement(c.Z,{className:"panel-toast-sharesheet-message",html:o})}return t}},16203:(e,t,r)=>{"use strict";r.d(t,{Ac:()=>v,Aj:()=>A,BN:()=>_,DO:()=>S,GD:()=>b,Hb:()=>C,Id:()=>f,JG:()=>O,Mr:()=>P,O7:()=>L,cu:()=>g,hR:()=>h,mi:()=>x,nP:()=>m,pJ:()=>E,xO:()=>I,yv:()=>w,zH:()=>y,zQ:()=>T});var n=r(84824),i=r(62061),o=r(74379),a=r(99386),s=r(75067),c=r(47320),l=r(90885);let u;function d(){return u||(u={Underline:(0,n.Iu)("DL_TEXT_ATTRIBUTE_UNDERLINE"),Strikethrough:(0,n.Iu)("DL_TEXT_ATTRIBUTE_STRIKETHROUGH"),Kerning:(0,n.Iu)("DL_TEXT_ATTRIBUTE_KERNING"),Alignment:(0,n.Iu)("DL_TEXT_ATTRIBUTE_ALIGNMENT"),Hyphenate:(0,n.Iu)("DL_TEXT_ATTRIBUTE_HYPHENATE"),KerningAuto:(0,n.Iu)("DL_TEXT_KERNING_AUTO"),KerningOptical:(0,n.Iu)("DL_TEXT_KERNING_OPTICAL"),KerningMetricsRomanOnly:(0,n.Iu)("DL_TEXT_KERNING_METRICSROMANONLY"),"Alignment.LEFT_ALIGN":(0,n.Iu)("DL_TEXT_ALIGNMENT_LEFT"),"Alignment.CENTER_ALIGN":(0,n.Iu)("DL_TEXT_ALIGNMENT_CENTER"),"Alignment.RIGHT_ALIGN":(0,n.Iu)("DL_TEXT_ALIGNMENT_RIGHT"),"Alignment.LEFT_JUSTIFIED":(0,n.Iu)("DL_TEXT_ALIGNMENT_LEFT_JUSTIFY"),"Alignment.CENTER_JUSTIFIED":(0,n.Iu)("DL_TEXT_ALIGNMENT_CENTER_JUSTIFY"),"Alignment.RIGHT_JUSTIFIED":(0,n.Iu)("DL_TEXT_ALIGNMENT_RIGHT_JUSTIFY"),"Alignment.FULLY_JUSTIFIED":(0,n.Iu)("DL_TEXT_ALIGNMENT_FULL_JUSTIFY")}),u}function p(e){return e.textDecorationObject?[e.textDecorationObject.adbeUnderline&&"underline",e.textDecorationObject.adbeStrikethrough&&"line-through"].filter((e=>e)):e.textDecoration||[]}function h(e){return p(e).includes("underline")}function f(e){return p(e).includes("line-through")}function m(e={},t="capitalize"){return e.fontFeatureSettingsObject&&"FontCapsOption.ALLCAPS"===e.fontFeatureSettingsObject.adbeCapitalization?"uppercase":{capitalize:"uppercase",titlecase:t}[e.textTransform]||e.textTransform}function g(e={}){const t=e.fontFeatureSettings;return t&&t.includes("subs")?"subscript":t&&t.includes("sups")?"superscript":void 0}function v(e={}){if(void 0!==e.adbeTracking)return e.adbeTracking;if(e.letterSpacing&&"em"===e.letterSpacing.type)return 1e3*e.letterSpacing.value;if(e.letterSpacing&&e.fontSize&&e.fontSize.value){const t=(0,i.hI)(e.fontSize,"px");return(0,i.hI)(e.letterSpacing,"px")/t*1e3}}function y(e){const t=[],r=d();if(_(e)){const r=w(e),n=E(e);t.push(_(e)+(n?` ${n}`:"")+(r?` — ${r}`:""))}if(h(e)&&t.push(r.Underline),f(e)&&t.push(r.Strikethrough),e.adbeAutoLeading){const e=(0,n.Iu)("DL_TEXT_LEADING_AUTO");t.push((0,n.Iu)(a.Z.currentProduct.config.customTextStyleLeadingString||"DL_TEXT_ATTRIBUTE_LEADING",{fontLeading:e}))}else if(e.lineHeight){const r=e.lineHeight.value&&Math.round(100*e.lineHeight.value)/100,i=(0,n.Iu)("DL_TEXT_ATTRIBUTE_FONT_SIZE",{size:r,type:e.lineHeight.type});t.push((0,n.Iu)(a.Z.currentProduct.config.customTextStyleLeadingString||"DL_TEXT_ATTRIBUTE_LEADING",{fontLeading:i}))}if(e.paragraphSpacing){const r=e.paragraphSpacing.value&&Math.round(100*e.paragraphSpacing.value)/100,i=(0,n.Iu)("DL_TEXT_ATTRIBUTE_FONT_SIZE",{size:r,type:e.paragraphSpacing.type});t.push((0,n.Iu)("DL_TEXT_ATTRIBUTE_PARAGRAPH_SPACING",{fontLeading:i}))}switch(e.adbeIlstKerningMethod){case"AutoKernType.AUTO":t.push(r.Kerning+": "+r.KerningAuto);break;case"AutoKernType.OPTICAL":t.push(r.Kerning+": "+r.KerningOptical);break;case"AutoKernType.METRICSROMANONLY":t.push(r.Kerning+": "+r.KerningMetricsRomanOnly)}const i=v(e);void 0!==i&&t.push((0,n.Iu)(a.Z.currentProduct.config.customTextStyleTrackingString||"DL_TEXT_ATTRIBUTE_TRACKING",{fontTracking:i}));const o=x(e);return o&&t.push(`${r.Alignment}: ${o}`),e.adbeHyphenation&&t.push(r.Hyphenate),t.filter((e=>e))}function b(e={}){var t;return(null==e||null===(t=e.adbeFont)||void 0===t?void 0:t.postScriptName)||e.postScriptName}function _(e={}){var t;return(null==e||null===(t=e.adbeFont)||void 0===t?void 0:t.family)||(null==e?void 0:e.fontFamily)}function E(e={}){var t,r;const n=null===(r=e=(null===(t=e.adbeFont)||void 0===t?void 0:t.style)||e.fontStyle)||void 0===r?void 0:r.toLowerCase();if(n&&!n.includes("normal")&&!n.includes("regular"))return e}function w(e={}){if(e.fontSize){const t=e.fontSize.value,r=e.fontSize.type;if(void 0===t||void 0===r)return"";const i=Math.round(100*e.fontSize.value)/100,o="pt"===r.toLowerCase()?(0,n.Iu)("DL_UNIT_PT"):r;return(0,n.Iu)("DL_TEXT_ATTRIBUTE_FONT_SIZE",{size:i,type:o})}}function x(e={}){const t=d();if(e.adbeParaAlignment)return t[e.adbeParaAlignment]}function L(e={},t=a.Z.DEFAULT_MIN_PREVIEW_FONT_SIZE,r=a.Z.DEFAULT_MAX_PREVIEW_FONT_SIZE){const n=e.fontSize&&e.fontSize.value?(0,i.hI)(e.fontSize,"px"):a.Z.DEFAULT_PREVIEW_FONT_SIZE;return Math.min(Math.max(n,t),r)}function O(e={}){return e.color&&Array.isArray(e.color)&&e.color.length>0}function S(e={},t="#ffffff"){if(!O(e))return!1;const r=o.su(o.Nh(e.color));return o.mj(o.$W(t),r)<=a.Z.CONTRAST_THRESHOLD}function T(e={},t=a.Z.DEFAULT_MIN_PREVIEW_FONT_SIZE,r=a.Z.DEFAULT_MAX_PREVIEW_FONT_SIZE,n=!0){const i=e.color?o.m3(e.color):"#000000",c=b(e);let l=s.ZP.isFontAvailable(e)?[c,_(e)]:[];l=l.filter((e=>e)).map((e=>`"${e}"`)).join(", "),l=l||"inherit";const u=L(e,t,r),d=`${u}px`,h=c?void 0:e.fontWeight,f=c?["oblique"].find((t=>t===e.fontStyle)):E(e),g=m(e),v=p(e)[0];let y;return n&&(y=void 0!==e.adbeTracking?e.adbeTracking/1e3+"em":e.letterSpacing&&`${e.letterSpacing.value}${e.letterSpacing.type}`),{color:i,fontFamily:l,fontSize:u,fontWeight:h,lineHeight:d,textTransform:g,textDecoration:v,fontStyle:f,letterSpacing:y}}function P(e){const t=_(e),r=e&&e.adbeFont&&e.adbeFont.style||(0,n.Iu)("DL_INFO_REGULAR"),i=w(e);return(t?`${t} `:"")+r+(i?` — ${i}`:"")}function I(e,t){if(!e)return{};const r={properties:y(e),missingFont:!s.ZP.isFontAvailable(e)},n=b(e),i=n&&s.ZP.getTypekitFontData(n);return!t&&i&&i.fontId&&(r.isTypekitFont=!0,r.isSyncable=i.fontActions&&0===i.fontActions.length,r.isUpgradable=i.fontActions&&i.fontActions.indexOf("upgrade")>-1),r.isDisabled=t,t&&(r.disabledMessage=`DL_ERROR_UNSUPPORTED_${a.Z.currentProduct.config.translationSuffix}`),r}function A(e){const t=e.name,r=e.group,i=e.missingFont,o=e.isSyncable,a=e.isUpgradable,s=e.description,c=e.isDisabled,l=e.disabledMessage;let u="";return u=o?"DL_TYPEKIT_SYNC_TOOLTIP":a?"DL_TYPEKIT_UPGRADE_TOOLTIP":"DL_ERROR_MISSING_FONT",[t,r,...e.properties||[],l&&(0,n.Iu)(l),!c&&i&&(0,n.Iu)(u),s&&{divider:!0},s]}function C(e){return c.Z.getComponent(e.type)===l.Z}},13293:(e,t,r)=>{"use strict";r.d(t,{R:()=>w,h:()=>x});var n,i,o=r(84824),a=r(47320),s=r(75067),c=r(89526),l=r(50265),u=r(62631),d=r(2652),p=r.n(d),h=r(72279);let f=(0,u.Pi)(((i=class extends c.Component{render(){return c.createElement(h.Z,{className:"toggle-switch-wrapper",onClick:this.props.onChange},c.createElement("div",{className:"spectrum-ToggleSwitch",onClick:this.props.onChange},c.createElement("input",{type:"checkbox",className:"spectrum-ToggleSwitch-input",id:"toggle-onoff-0",checked:this.props.checked,readOnly:!0}),c.createElement("span",{className:"spectrum-ToggleSwitch-switch"})))}}).defaultProps={checked:!1},i.propTypes={checked:p().bool,onChange:p().func.isRequired},n=i))||n;var m,g,v=r(53849);function y(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}let b=(0,u.Pi)((y((g=class extends c.Component{constructor(...e){super(...e),this.onClick=()=>{"sync"===this.typekitAction&&(this.isFontActivated?this.typekitFont.unsync(this.style,"info-panel",this.element):this.typekitFont.sync(this.style,"info-panel",this.element))}}get element(){if(v.Z.selection.length>=1)return v.Z.selection[v.Z.selection.length-1]}get typekitFont(){const e=this.style&&this.style.adbeFont&&this.style.adbeFont.postScriptName;return s.ZP.getTypekitFontData(e)}get typekitAction(){const e=this.typekitFont.fontActions;return e&&0===e.length?"sync":e&&e.includes("upgrade")?"upgrade":void 0}get style(){const e=a.Z.getShortType(this.element.type),t=a.Z.findUsableRepresentation(this.element,`application/vnd.adobe.${e}+json`);return t&&t.getValue(e,"data")}get isMissingFont(){return!s.ZP.isFontAvailable(this.style)}get isFontActivated(){return"sync"===this.typekitAction&&s.ZP.isFontAvailable(this.style)}render(){if(!this.typekitFont)return null;if("sync"===this.typekitAction){const e=this.isFontActivated?"DL_INFO_DEACTIVATE_FONT":"DL_INFO_ACTIVATE_FONT";return c.createElement(c.Fragment,null,c.createElement("div",{className:"font-activation-switch"},c.createElement(f,{checked:this.isFontActivated,onChange:this.onClick})),(0,o.Iu)(e))}return"upgrade"===this.typekitAction?c.createElement("div",null,(0,o.Iu)("DL_INFO_SUBSCRIBE_FONT")):c.createElement("div",null,(0,o.Iu)("DL_INFO_UNAVAILABLE_FONT"))}}).prototype,"element",[l.computed],Object.getOwnPropertyDescriptor(g.prototype,"element"),g.prototype),y(g.prototype,"typekitFont",[l.computed],Object.getOwnPropertyDescriptor(g.prototype,"typekitFont"),g.prototype),y(g.prototype,"style",[l.computed],Object.getOwnPropertyDescriptor(g.prototype,"style"),g.prototype),y(g.prototype,"isMissingFont",[l.computed],Object.getOwnPropertyDescriptor(g.prototype,"isMissingFont"),g.prototype),y(g.prototype,"isFontActivated",[l.computed],Object.getOwnPropertyDescriptor(g.prototype,"isFontActivated"),g.prototype),m=g))||m;var _=r(16993),E=r(89526);function w(e){const t=a.Z.getShortType(e.type),r=a.Z.findUsableRepresentation(e,`application/vnd.adobe.${t}+json`),n=r&&r.getValue(t,"data"),i=n&&n.postScriptName||n&&n.adbeFont&&n.adbeFont.postScriptName;return s.ZP.getTypekitFontData(i)}function x(e){const t=w(e);return t&&t.fontId&&!_.Z.isOneUpMode()?[{label:(0,o.Iu)("DL_INFO_STATUS"),value:E.createElement(b,null)}]:[]}},62061:(e,t,r)=>{"use strict";r.d(t,{Eq:()=>d,ME:()=>u,Mb:()=>c,Ny:()=>l,d3:()=>a,hI:()=>o,zW:()=>s});var n=r(84824),i=r(99386);function o(e,t){if(!e||!t)return;let r=e.type,n=e.value;if(n=parseFloat(n),isNaN(n))return;if(r===t)return n;const i=72/25.4,o=96/25.4;if("pt"===t){if("mm"===r)return n*i;if("px"===r)return.75*n}else if("px"===t){if("pt"===r)return n/.75;if("mm"===r)return n*o}else if("mm"===t){if("pt"===r)return n/i;if("px"===r)return n/o}}function a(e,t){const r=i.Z.BYTE_MULTIPLIER;if(Math.round(e)<=0)return(0,n.Iu)("DL_FILESIZE_KB",{size:"--"});let o="B";e>=r&&(o="KB",(e/=r)>=r&&(o="MB",(e/=r)>=r&&(e/=r,o="GB")));const a=Math.pow(10,t||0);return e=(0,n.SU)(Math.round(e*a)/a),(0,n.Iu)("DL_FILESIZE_"+o,{size:e})}function s(e){let t=Math.round(e/1e3),r=Math.floor(t/60);if(t-=60*r,t<10&&(t="0"+t),r){const e=Math.floor(r/60);return r-=60*e,e?(r<10&&(r="0"+r),(0,n.Iu)("DL_DURATION_HMS",{hours:e,minutes:r,seconds:t})):(0,n.Iu)("DL_DURATION_MS",{minutes:r,seconds:t})}return(0,n.Iu)("DL_DURATION_S",{seconds:t})}function c(e){return(0,n.Iu)("DL_FRAMERATE",{framerate:e.toString()})}function l(e,t){return(0,n.Iu)("DL_DIMENSIONS",{width:e.toString(),height:t.toString()})}function u(e){return(0,n.Iu)("DL_TEMPO",{tempo:e.toString()})}function d(e,t=2){return e&&"number"==typeof e&&e%1!=0?e.toFixed(t):e}},69834:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(75067),i=r(79799),o=r(76325);const a=window.EventTarget||class{};class s extends a{constructor(){super()}createEvent(e,t){return new CustomEvent(e,{detail:t})}getLibraries(){return n.ZP.libraries}resolveElementReference(e){return n.ZP.resolveElementReference(e)}getServiceInfo(){return i.Z.getServiceInfo()}getEnvironment(){return o.Z.getEnvironment().label}getLibraryById(e){return n.ZP.getLibraryById(e)}getDeviceDescription(){return n.ZP.DEVICE_DESCRIPTION}writeToClipBoard(e){return new Promise(((t,r)=>{navigator.clipboard.writeText(e).then((()=>t()),(()=>r())).catch((()=>r()))}))}}},94201:function(e,t,r){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=o(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw a}}}}function o(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var s=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),c=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return c(t,e),t},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),r(1438);const d=u(r(1438)),p=l(r(3570)),h=u(r(61635)),f=u(r(89526)),m=u(r(39002));class g{constructor(e){this.valid=!1,this.column=null,this.totalItemWidth=0,this.totalItemHeight=0,this.totalItemCount=0,this.type=e}invalidate(){this.valid=!1,this.totalItemCount=0,this.totalItemWidth=0,this.totalItemHeight=0}setItemSize(e,t){this.totalItemWidth+=e,this.totalItemHeight+=t,this.totalItemCount++,this.width=Math.round(this.totalItemWidth/this.totalItemCount),this.height=Math.round(this.totalItemHeight/this.totalItemCount)}setFromCss(e){null==this.cssInline&&(this.cssInline=(e.display||"").indexOf("inline")>=0),this.cssMargin=p.default.fromCssMargin(e);let t=e.getPropertyValue("--column-count-self").trim(),r=null;if(t){let n="auto"===t?null:parseInt(t),i=null;if(null==n&&(i=(0,p.parseCssSize)(e.getPropertyValue("--optimum-width")),0===i)){let t=(0,p.parseCssSize)(e.minWidth),r=(0,p.parseCssSize)(e.maxWidth);if(0===t||0===r)throw new Error("Expected either --optimum-width or min-width and max-width");i=Math.ceil((t+r)/2)}r={count:n,optimumWidth:i}}this.column=r}}class v{constructor(e){this.x=0,this.y=0,this.width=0,this.height=0,this.rendered=!1,this.type=e}}function y(e){return null!=e&&1===e.nodeType}const b=(()=>{const e=[];return t=>{let r=e[t];return void 0===r&&(r=e[t]=`${t}px`),r}})();class _{constructor(e){this.itemProperties={},this.classProperties=new Map,this.containerPadding=new p.default(0),this.scrollAnchor=null,this.isScrolling=!1,this.lastScrollTop=0,this.scrollDirection=0,this.scrollDuration=.5,this.scrollWaitAfterFinish=.2,this.container=e.container,this.containerWidth=this.container.clientWidth,this.container[_.symbol]=this,this.horizontal=e.horizontal,this.itemLookup=new Map,this.itemKey=e.itemKey,this.itemType=e.itemType,this.itemRect=e.itemRect,this.onresize=this.onresize.bind(this),this.resizeObserver=new d.default(this.onresize),this.updateAndLayout=this.updateAndLayout.bind(this),this.container.addEventListener("scroll",(e=>{this.updateAndLayout()})),this.container.addEventListener("wheel",(e=>{this.cancelScrollAnimation()})),this.placeholder=document.createElement("div"),this.container.appendChild(this.placeholder),this.update(e)}update(e){if(this.items=e.items,this.renderKeys=e.renderKeys,this.setRenderKeys=e.setRenderKeys,this.onLayout=e.onLayout,!this.isScrolling){let n=new Set;var t,r=i(this.items);try{for(r.s();!(t=r.n()).done;){let e=t.value,r=this.itemKey(e);if(n.has(r))throw console.error("Duplicate items:",this.itemLookup.get(r),e),new Error(`Item keys must be unique. Found duplicate: ${r}`);n.add(r),this.itemLookup.set(r,e)}}catch(e){r.e(e)}finally{r.f()}this.updateAndLayout(!0)}return this.renderKeys}static getReactElements(e,t,r,n,o,a){const s=new Map;var c,l=i(e);try{for(l.s();!(c=l.n()).done;){let e=c.value;s.set(r(e),e)}}catch(e){l.e(e)}finally{l.f()}return t.map(((e,t)=>{const r=String(t),i=s.get(e);return null==i?a[e]||null:a[e]=f.default.cloneElement(o(i),{key:r,"data-key":e,"data-type":n(i)})}))}getItemRect(e,t){if(null==e&&null!=t&&(e=this.itemLookup.get(t)||null),null!=e){let r=null!=this.itemRect?this.itemRect(e):null;if(null!=r){if(null==r.x||null==r.y||null==r.width||null==r.height)throw new Error(`Item rect missing required properties (x,y,width,height): ${JSON.stringify(r)}`);return r}if(null==t&&(t=this.itemKey(e)),null!=t){let e=this.itemProperties[t];if(null!=e)return e}}return null}updateAndLayout(e=!1){this.isScrolling=!0;let t=this.updateIndexes();this.ensureElementsObservedAndSized(),(t||e)&&(this.layoutChildren(),this.onLayout&&this.onLayout()),this.isScrolling=!1}layoutChildren(){let e=window.getComputedStyle(this.container),t=(0,p.parseCssSize)(e.getPropertyValue("--column-gap")),r=(0,p.parseCssSize)(e.getPropertyValue("--row-gap")),n=this.getElementLookupByKey(),o=0,a=0,s=this.containerWidth-this.containerPadding.horizontal,c=0;var l,u=i(this.items);try{for(u.s();!(l=u.n()).done;){let e=l.value,i=this.itemKey(e),u=n.get(i);if(null!=this.itemRect){let t=this.getItemRect(e,i);if(u){const e=u.style;e.position="absolute",e.left=b(t.x),e.top=b(t.y),e.width=b(t.width),e.height=b(t.height)}c=t.y+t.height;continue}let d=this.itemType(e),p=this.getItemProperties(i,d),h=this.classProperties.get(d);if(!h)break;let f,g,v=h.cssMargin,y=h.cssInline,_=p.width+v.horizontal,E=p.height+v.vertical,w=h.column;if(w){let e=w.count||Math.max(1,Math.round(s/(w.optimumWidth+t))),r=Math.round(o/(_+t));_=Math.floor((s-t*(e-1))/e);let n=r*(_+t),i=s-(e-r)*(_+t)+t,a=1==e?0:r/(e-1);o=Math.round((0,m.default)(n,i,a))}if(o>0&&!this.horizontal&&(!y||o+_>s)&&(o=0,a=c+r),f=o+this.containerPadding.left,g=a+this.containerPadding.top,this.horizontal&&(s=Math.max(s,o+_)),c=Math.max(c,a+E),y?o+=_+t:a+=E+r,p.x=f,p.y=g,u){p.rendered=!0;const e=u.style;"absolute"!==e.position&&(e.position="absolute"),e.left=b(f),e.top=b(g),null!=w&&(e.width=b(_)),y||(e.width=b(s-v.horizontal))}}}catch(e){u.e(e)}finally{u.f()}this.scrollAnimationCallback(),this.horizontal?this.placeholder.style.width=b(s):this.placeholder.style.height=b(c)}getElementLookupByKey(){let e=new Map,t=0;for(let r=this.container.firstChild;null!=r;r=r.nextSibling){if(y(r)){let n=r.dataset.key;if(n)e.set(n,r);else if(null!=r.previousSibling){let e=this.items[t];throw new Error(`Virtualizer item error: Function and Class components must pass through ...otherProps to rendered element. ie: <div {...otherProps}></div>. Check element created for ${JSON.stringify(e)}`)}}t++}return e}ensureElementsObservedAndSized(){this.resizeObserver.observe(this.container);for(let e=this.container.firstChild;null!=e;e=e.nextSibling)1===e.nodeType&&(this.resizeObserver.observe(e),this.onElementSized(e))}getVisibleRect(){return{x:this.container.scrollLeft,y:this.container.scrollTop,width:this.container.clientWidth,height:this.container.clientHeight}}get pageSize(){return this.container[this.horizontal?"clientWidth":"clientHeight"]}get prerenderOtherDirection(){return 100}get prerenderScrollDirection(){return 500}get isManualLayout(){return null!=this.itemRect}getRenderItemIndices(e){let t=this.horizontal,r=Math.max(0,this.container[t?"scrollLeft":"scrollTop"]),n=this.pageSize,o=this.prerenderScrollDirection,a=this.prerenderOtherDirection;0===e&&(o=a);let s=r+n,c=n+o+a;r=Math.max(0,r-(e>=0?a:o)),s=r+c;const l=new Set,u=new Set,d=this.isManualLayout?null:new Map;let p=t?"width":"height",h=t?"x":"y";for(let e=0;e<this.items.length;e++){const t=this.items[e],n=this.itemKey(t);u.add(n);const i=this.getItemRect(t,n);if(i&&i[h]+i[p]>r&&i[h]<=s)l.add(n);else if(null!=d){let e=this.itemType(t);d.has(e)||d.set(e,n)}}if(0===l.size)for(let e=0;e<30&&e<this.items.length;e++)l.add(this.itemKey(this.items[e]));const f=this.getFocusedItemKey();if(f&&l.add(f),d&&d.size>0){var m,g=i(d.values());try{for(g.s();!(m=g.n()).done;){let e=m.value;l.add(e)}}catch(e){g.e(e)}finally{g.f()}}return[l,u]}getClippedScrollTarget(e){const t=this.container[this.horizontal?"scrollWidth":"scrollHeight"],r=this.container[this.horizontal?"clientWidth":"clientHeight"];return Math.max(0,Math.min(e,t-r))}getFocusedItemKey(){for(let e=document.activeElement;null!=e;e=e.parentNode)if(y(e)){const t=e.dataset.key;if(t)return t}return null}updateIndexes(){if(0===this.pageSize)return;const e=this.getClippedScrollTarget(this.container.scrollTop);this.container.scrollTop!==e&&(this.container.scrollTop=e);const t=e-this.lastScrollTop;this.lastScrollTop=e;const r=this.previousItems||this.items;this.previousItems=this.items,this.items.length!==r.length?this.scrollDirection=0:0!==t&&(this.scrollDirection=Math.sign(t));const i=n(this.getRenderItemIndices(this.scrollDirection),2),o=i[0],a=i[1],s=e=>{if(null!=e){const t=this.itemLookup.get(e);if(t)return this.itemType(t)}return null};let c=this.renderKeys,l=(0,h.default)(c,o,s,s);const u=this.getElementLookupByKey();return l.forEach((e=>{let t=u.get(e);if(t){const r=!a.has(e);t.style.display=r?"none":""}})),(c.length!==l.length||JSON.stringify(c)!==JSON.stringify(l))&&(this.setRenderKeys(l),!0)}onElementSized(e){e===this.container&&(this.containerPadding=p.default.fromCssPadding(getComputedStyle(e)));let t=e.dataset,r=t.key,n=t.type;if(r&&n){let t=this.itemProperties[r];null==t&&(t=this.getItemProperties(r,n));const i=e.offsetWidth,o=e.offsetHeight;if(i>0&&o>0){let r=i!==t.width||o!==t.height;if(t.width=i,t.height=o,r){let t=this.classProperties.get(n);if(null==t||!t.valid){let r=getComputedStyle(e);null==t&&(t=new g(n),this.classProperties.set(n,t)),t.setFromCss(r)}t.setItemSize(i,o)}}}}onresize(e){var t,r=i(e);try{for(r.s();!(t=r.n()).done;){let r=t.value;if(r.target===this.container){this.containerWidth=this.container.clientWidth;var n,o=i(this.classProperties.values());try{for(o.s();!(n=o.n()).done;)n.value.invalidate()}catch(e){o.e(e)}finally{o.f()}this.placeholder.style.width="1px",this.placeholder.style.height="1px";for(let e in this.itemProperties){let t=this.itemProperties[e];t.width=0,t.height=0}}else this.onElementSized(r.target)}}catch(e){r.e(e)}finally{r.f()}this.updateAndLayout(!0)}getItemTargetScrollPosition(e){var t,r;let n=this.itemLookup.get(e.itemKey);if(n){let i=null!==(t=e.itemPin)&&void 0!==t?t:0,o=null!==(r=e.windowPin)&&void 0!==r?r:0;const a=this.getItemRect(n);if(a){const e=this.container[this.horizontal?"clientWidth":"clientHeight"];return a[this.horizontal?"x":"y"]+i*a[this.horizontal?"width":"height"]-o*e}}return null}scrollToItem(e,t){var r,n,i;null!=t&&null!=t.behavior&&null==t.duration&&(t.duration="smooth"===t.behavior?.5:0);const o={itemKey:e,itemPin:null!==(r=null==t?void 0:t.position)&&void 0!==r?r:0,windowPin:null!==(n=null==t?void 0:t.position)&&void 0!==n?n:0,duration:null!==(i=null==t?void 0:t.duration)&&void 0!==i?i:.5};null!=this.getItemTargetScrollPosition(o)&&this.startScrollAnimation(o)}startScrollAnimation(e){this.scrollAnchor=e,this.scrollStartTime=Date.now(),this.scrollStartPosition=this.container[this.horizontal?"scrollLeft":"scrollTop"],this.scrollDuration=e.duration,this.scrollAnimationCallback()}cancelScrollAnimation(){null!=this.scrollAnimating&&("function"==typeof cancelAnimationFrame&&cancelAnimationFrame(this.scrollAnimating),delete this.scrollAnimating),this.scrollAnchor=null}scrollAnimationCallback(){let e=!1;if(delete this.scrollAnimating,null!=this.scrollAnchor){let t=this.getItemTargetScrollPosition(this.scrollAnchor);if(null!=t){let r=t-this.scrollStartPosition;const n=2e3;Math.abs(r)>n&&(r=Math.sign(r)*n);let i=(Date.now()-this.scrollStartTime)/1e3,o=Math.min(i,this.scrollDuration),a=t-(1-(this.scrollDuration>0?o/this.scrollDuration:1))*r;this.container[this.horizontal?"scrollLeft":"scrollTop"]=this.getClippedScrollTarget(a),e=i<this.scrollDuration+this.scrollWaitAfterFinish}}e?null==this.scrollAnimating&&"function"==typeof requestAnimationFrame&&(this.scrollAnimating=requestAnimationFrame(this.scrollAnimationCallback.bind(this))):this.cancelScrollAnimation()}getItemProperties(e,t){let r=this.itemProperties[e];null==r&&(r=this.itemProperties[e]=new v(t));let n=this.classProperties.get(t);return n&&(0===r.width&&(r.width=n.width),0===r.height&&(r.height=n.height)),r}static instance(e,t){let r=e[_.symbol];return null==r&&null!=t&&(r=new _(t)),r}static update(e){let t=_.instance(e.container,e);return t.update(e),t.renderKeys}}t.default=_,_.symbol=Symbol("VirtualManager.symbol")},77760:function(e,t,r){"use strict";const n=["items","itemKey","itemType","itemRect","scrollToItem","onLayout","cacheElements","style","children"];function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),u=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&c(t,e,r);return l(t,e),t},d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const p=u(r(89526)),h=d(r(94201)),f=d(r(9401));function m(e,t,r){if(null==e)return"function"==typeof t?t():void 0;if("function"==typeof e)return t=>{const n=e(t);return r&&r(n,t),n};if("string"==typeof e||"symbol"==typeof e)return t=>t[e];throw new Error(`Unsupported property: ${String(e)}`)}r(35582),t.default=(0,p.forwardRef)((function(e,t){let r=e.items,s=e.itemKey,c=e.itemType,l=e.itemRect,u=e.scrollToItem,d=e.onLayout,g=e.cacheElements,v=void 0===g||g,y=e.style,b=e.children,_=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,n),E="horizontal"===e.direction;const w=(0,p.useMemo)((()=>(0,f.default)(m(s,(()=>{const e=new Map(r.map(((e,t)=>[e,String(t)])));return t=>e.get(t)}),((e,t)=>{if("string"!=typeof e||0===e.length)throw new Error(`Invalid key, expected a unique string, actual: (${JSON.stringify(e||null)}) for item: ${JSON.stringify(t)}`)})))),[s,r]),x=(0,p.useMemo)((()=>(0,f.default)(m(c,(()=>()=>"default")))),[c,r]),L=(0,p.useMemo)((()=>m(l)),[l,r]);let O=a((0,p.useState)(new Array),2),S=O[0],T=O[1];const P=(0,p.useRef)();function I(e,t){const r=P.current.container;if(r&&t){const e=r.clientHeight,n=r.scrollHeight,i=Math.max(0,n-e),o=Math.max(0,Math.min(i,r.scrollTop+t));r.scrollTo({top:o})}}function A(e,t){let r=P.current.container;if(r){let n=h.default.instance(r);null==n||n.scrollToItem(e,t)}}function C(){var e;let t=null===(e=P.current)||void 0===e?void 0:e.container;return t?h.default.instance(t):null}function k(){return S}function D(e){let t=C();if(t){let r=t.getItemRect(null,e);if(r)return{x:r.x,y:r.y,width:r.width,height:r.height}}return{x:0,y:0,width:0,height:0}}function N(){var e;return(null===(e=C())||void 0===e?void 0:e.getVisibleRect())||{x:0,y:0,width:0,height:0}}function R(e){e&&(P.current.container=e,S=h.default.update({container:e,horizontal:E,items:r,renderKeys:S,setRenderKeys:T,itemKey:w,itemType:x,itemRect:L,onLayout:d}),u&&A(u))}return null==P.current&&(P.current={}),(0,p.useImperativeHandle)(t,(()=>({scrollToItem:A,scrollBy:I,getRenderKeys:k,getItemRect:D,getVisibleRect:N,container:P.current.container})),[P.current.container]),P.current.container&&R(P.current.container),y=Object.assign({position:"relative",overflowX:E?"scroll":"hidden",overflowY:E?"hidden":"scroll",flex:"1 1 auto",zIndex:0},y),p.default.createElement("div",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({ref:R,style:y},_),h.default.getReactElements(r,S,w,x,b,v?P.current:{}))}))},62624:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},61635:(e,t)=>{"use strict";function r(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw a}}}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(t,"__esModule",{value:!0});const i=()=>"default";t.default=function(e,t,n=i,o=i){let a=Math.max(e.length,t.size),s=function(e){let t=new Map;for(let r=0;r<e.length;r++)t.set(e[r],r);return t}(e),c=new Map,l=[];function u(e,t){l[t]=e,c.set(e,t)}var d,p=r(t);try{for(p.s();!(d=p.n()).done;){let e=d.value,t=s.get(e);null!=t&&u(e,t)}}catch(e){p.e(e)}finally{p.f()}let h=0;var f,m=r(t);try{for(m.s();!(f=m.n()).done;){let t=f.value;if(null==s.get(t)){let r=!1;for(let i=h;;i++){let a=e[i],s=null!=a?n(a):null,c=o(t);if(void 0===l[i]){if(r=!0,null==s||s===c){u(t,i);break}}else r||(h=i)}}}}catch(e){m.e(e)}finally{m.f()}for(let t=0;t<a;t++)void 0===l[t]&&u(e[t],t);return l}},10206:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i(r(77760),t),i(r(62624),t);var a=r(77760);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o(a).default}})},3570:(e,t)=>{"use strict";function r(e){if(e&&"none"!==e){if(e.endsWith("px"))return parseFloat(e.slice(0,-2));console.warn("Unsupported units: "+e)}return 0}Object.defineProperty(t,"__esModule",{value:!0}),t.parseCssSize=void 0,t.parseCssSize=r;class n{constructor(e,t=e,r=e,n=t){this.left=e,this.top=t,this.right=r,this.bottom=n}get horizontal(){return this.left+this.right}get vertical(){return this.top+this.bottom}static fromCssMargin(e){let t=e.margin||"",i=n.cache.get(t);return null==i&&n.cache.set(t,i=new n(r(e.marginLeft),r(e.marginTop),r(e.marginRight),r(e.marginBottom))),i}static fromCssPadding(e){let t=e.padding||"",i=n.cache.get(t);return null==i&&n.cache.set(t,i=new n(r(e.paddingLeft),r(e.paddingTop),r(e.paddingRight),r(e.paddingBottom))),i}toString(){return`Margin(${this.left},${this.top},${this.right},${this.bottom})`}}t.default=n,n.cache=new Map},1438:(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.UxpResizeObserver=void 0;const i=r(46662);class o{constructor(e){const t=this;this.elements=new Set,this.pendingEntries=[],this.externalObserver=e,this.internalObserver=function(){let e=this,r=e.offsetWidth,n=e.offsetHeight;t.queueCallback({target:e,contentRect:new DOMRect(0,0,r,n)})},this.queuedCallback=()=>{if(this.queuedCallbackId=null,this.pendingEntries.length>0){let t=this.pendingEntries;this.pendingEntries=[],e(t,this)}}}queueCallback(e){this.pendingEntries.push(e),null==this.queuedCallbackId&&(this.queuedCallbackId=setTimeout(this.queuedCallback,0))}observe(e,t){null!=t&&"border-box"!==t.box&&console.warn(`ResizeObserver shim only supports 'border-box', not ${t.box}`),e.addEventListener("resize",this.internalObserver),this.elements.add(e)}unobserve(e){this.elements.has(e)&&(e.removeEventListener("resize",this.internalObserver),this.elements.delete(e))}disconnect(){var e,t=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e))){r&&(e=r);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw a}}}}(this.elements.values());try{for(t.s();!(e=t.n()).done;){let t=e.value;this.unobserve(t)}}catch(e){t.e(e)}finally{t.f()}}}t.UxpResizeObserver=o;let a=o;"undefined"!=typeof window&&(null==window.ResizeObserver?i.isUXP?window.ResizeObserver=a:console.error("This browser requires a ResizeObserver shim"):a=window.ResizeObserver),t.default=a},39002:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){return e*(1-r)+t*r}},9401:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=Symbol(),r=new WeakMap;return n=>{const i=Object.isExtensible(n);let o=i?n[t]:r.get(n);return void 0===o&&(o=e(n),i?n[t]=o:r.set(n,o)),o}}},33978:()=>{"use strict";"undefined"!=typeof Element&&null==Element.prototype.scrollTo&&(Element.prototype.scrollTo=function(t,r){let n,i="auto";"object"==typeof t&&null!=t&&(i=t.behavior,n=t.left,r=t.top),null==n&&(n=this.scrollLeft),null==r&&(r=this.scrollTop),null!=this[e]&&(cancelAnimationFrame(this[e]),this[e]=null),"smooth"===i?function(t,r,n){const i=t.scrollLeft,o=t.scrollTop,a=(e,t,r)=>Math.round(e+(t-e)*r),s=Date.now(),c=()=>{const l=(Date.now()-s)/1e3,u=((e,t=1.8)=>Math.pow(e,t)/(Math.pow(e,t)+Math.pow(1-e,t)))(Math.min(1,l/.5));t.scrollLeft=a(i,r,u),t.scrollTop=a(o,n,u),t[e]=u<1?requestAnimationFrame(c):null};c()}(this,n,r):(this.scrollLeft=n,this.scrollTop=r)});const e=Symbol("Element.scrollToAnimateId")},35582:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(33978)},46662:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUXP=void 0,t.isUXP="undefined"!=typeof document&&"plugin:"===document.location.protocol},33275:(e,t,r)=>{"use strict";r.d(t,{Si:()=>Ji,W_:()=>Rs,ZA:()=>Qs,B:()=>da,Zu:()=>Lc,Ut:()=>ca,Lr:()=>Ma,te:()=>xa,Zb:()=>ba,ZP:()=>Rd,HH:()=>Ta,P6:()=>Md,RX:()=>ka}),r(40627);const n={"application/andrew-inset":{exts:["ez"]},"application/applixware":{exts:["aw"]},"application/atom+xml":{exts:["atom"]},"application/atomcat+xml":{exts:["atomcat"]},"application/atomsvc+xml":{exts:["atomsvc"]},"application/ccxml+xml":{exts:["ccxml"]},"application/cdmi-capability":{exts:["cdmia"]},"application/cdmi-container":{exts:["cdmic"]},"application/cdmi-domain":{exts:["cdmid"]},"application/cdmi-object":{exts:["cdmio"]},"application/cdmi-queue":{exts:["cdmiq"]},"application/cu-seeme":{exts:["cu"]},"application/davmount+xml":{exts:["davmount"]},"application/docbook+xml":{exts:["dbk"]},"application/dssc+der":{exts:["dssc"]},"application/dssc+xml":{exts:["xdssc"]},"application/ecmascript":{exts:["ecma"]},"application/emma+xml":{exts:["emma"]},"application/epub+zip":{exts:["epub"]},"application/exi":{exts:["exi"]},"application/font-tdpfr":{exts:["pfr"]},"application/gml+xml":{exts:["gml"]},"application/gpx+xml":{exts:["gpx"]},"application/gxf":{exts:["gxf"]},"application/hyperstudio":{exts:["stk"]},"application/illustrator":{exts:["ai"],badge:"Ai"},"application/illustrator-text":{exts:["ai"],badge:"Ai"},"application/illustrator.template":{exts:["ait"],badge:"Ai"},"application/inkml+xml":{exts:["ink","inkml"]},"application/ipfix":{exts:["ipfix"]},"application/java-archive":{exts:["jar"]},"application/java-serialized-object":{exts:["ser"]},"application/java-vm":{exts:["class"]},"application/javascript":{exts:["js"]},"application/json":{exts:["json"]},"application/jsonml+json":{exts:["jsonml"]},"application/lost+xml":{exts:["lostxml"]},"application/mac-binhex40":{exts:["hqx"]},"application/mac-compactpro":{exts:["cpt"]},"application/mads+xml":{exts:["mads"]},"application/marc":{exts:["mrc"]},"application/marcxml+xml":{exts:["mrcx"]},"application/mathematica":{exts:["ma","nb","mb"]},"application/mathml+xml":{exts:["mathml"]},"application/mbox":{exts:["mbox"]},"application/mediaservercontrol+xml":{exts:["mscml"]},"application/metalink+xml":{exts:["metalink"]},"application/metalink4+xml":{exts:["meta4"]},"application/mets+xml":{exts:["mets"]},"application/mods+xml":{exts:["mods"]},"application/mp21":{exts:["m21","mp21"]},"application/mp4":{exts:["mp4s"]},"application/msword":{exts:["doc","dot"]},"application/mxf":{exts:["mxf"]},"application/octet-stream":{exts:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy"]},"application/oda":{exts:["oda"]},"application/oebps-package+xml":{exts:["opf"]},"application/ogg":{exts:["ogx"]},"application/omdoc+xml":{exts:["omdoc"]},"application/onenote":{exts:["onetoc","onetoc2","onetmp","onepkg"]},"application/oxps":{exts:["oxps"]},"application/patch-ops-error+xml":{exts:["xer"]},"application/pdf":{exts:["pdf"],badge:"PDF"},"application/pgp-encrypted":{exts:["pgp"]},"application/pgp-signature":{exts:["asc","sig"]},"application/photoshop":{exts:["psd"],badge:"Ps"},"application/photoshop.large":{exts:["psb"],badge:"Ps"},"application/pics-rules":{exts:["prf"]},"application/pkcs10":{exts:["p10"]},"application/pkcs7-mime":{exts:["p7m","p7c"]},"application/pkcs7-signature":{exts:["p7s"]},"application/pkcs8":{exts:["p8"]},"application/pkix-attr-cert":{exts:["ac"]},"application/pkix-cert":{exts:["cer"]},"application/pkix-crl":{exts:["crl"]},"application/pkix-pkipath":{exts:["pkipath"]},"application/pkixcmp":{exts:["pki"]},"application/pls+xml":{exts:["pls"]},"application/postscript":{exts:["ai","eps","ps"]},"application/prs.cww":{exts:["cww"]},"application/pskc+xml":{exts:["pskcxml"]},"application/rdf+xml":{exts:["rdf"]},"application/reginfo+xml":{exts:["rif"]},"application/relax-ng-compact-syntax":{exts:["rnc"]},"application/resource-lists+xml":{exts:["rl"]},"application/resource-lists-diff+xml":{exts:["rld"]},"application/rls-services+xml":{exts:["rs"]},"application/rpki-ghostbusters":{exts:["gbr"]},"application/rpki-manifest":{exts:["mft"]},"application/rpki-roa":{exts:["roa"]},"application/rsd+xml":{exts:["rsd"]},"application/rss+xml":{exts:["rss"]},"application/rtf":{exts:["rtf"]},"application/sbml+xml":{exts:["sbml"]},"application/scvp-cv-request":{exts:["scq"]},"application/scvp-cv-response":{exts:["scs"]},"application/scvp-vp-request":{exts:["spq"]},"application/scvp-vp-response":{exts:["spp"]},"application/sdp":{exts:["sdp"]},"application/set-payment-initiation":{exts:["setpay"]},"application/set-registration-initiation":{exts:["setreg"]},"application/shf+xml":{exts:["shf"]},"application/smil+xml":{exts:["smi","smil"]},"application/sparql-query":{exts:["rq"]},"application/sparql-results+xml":{exts:["srx"]},"application/srgs":{exts:["gram"]},"application/srgs+xml":{exts:["grxml"]},"application/sru+xml":{exts:["sru"]},"application/ssdl+xml":{exts:["ssdl"]},"application/ssml+xml":{exts:["ssml"]},"application/tei+xml":{exts:["tei","teicorpus"]},"application/thraud+xml":{exts:["tfi"]},"application/timestamped-data":{exts:["tsd"]},"application/vnd.3gpp.pic-bw-large":{exts:["plb"]},"application/vnd.3gpp.pic-bw-small":{exts:["psb"]},"application/vnd.3gpp.pic-bw-var":{exts:["pvb"]},"application/vnd.3gpp2.tcap":{exts:["tcap"]},"application/vnd.3m.post-it-notes":{exts:["pwn"]},"application/vnd.accpac.simply.aso":{exts:["aso"]},"application/vnd.accpac.simply.imp":{exts:["imp"]},"application/vnd.acucobol":{exts:["acu"]},"application/vnd.acucorp":{exts:["atc","acutc"]},"application/vnd.adobe.ae.graphic+zip":{exts:["aegraphic","mogrt"]},"application/vnd.adobe.air-application-installer-package+zip":{exts:["air"]},"application/vnd.adobe.animate-xfl+zip":{exts:["fla","xfl"],badge:"An"},"application/vnd.adobe.animate-oam+zip":{exts:["oam"]},"application/vnd.adobe.animate-sym+zip":{exts:["sym"],badge:"SYM"},"application/vnd.adobe.animate-swf+zip":{exts:["swa"]},"application/vnd.adobe.characterstyle+json":{exts:["style"]},"application/vnd.adobe.characterstyle+snippet":{exts:["idms"]},"application/vnd.adobe.charts+zip":{exts:["zip"],badge:"PDF"},"application/vnd.adobe.ch.puppet+zip":{exts:["puppet"]},"application/vnd.adobe.color+json":{exts:["ase"]},"application/vnd.adobe.colortheme+json":{exts:["ase"]},"application/vnd.adobe.cube+txt":{exts:["cube"]},"application/vnd.adobe.element.agc+json":{exts:["agc"],badge:"Xd"},"application/vnd.adobe.exr.light+zip":{exts:["exr"]},"application/vnd.adobe.fbx.3d+zip":{exts:["fbx"]},"application/vnd.adobe.formscentral.fcdt":{exts:["fcdt"]},"application/vnd.adobe.fxp":{exts:["fxp","fxpl"]},"application/vnd.adobe.hz.express+dcxucf":{exts:["dcxucf"]},"application/vnd.adobe.ibl.light+zip":{exts:["ibl","zip"]},"application/vnd.adobe.illustrator.template":{exts:["ait"],badge:"Ai"},"application/vnd.adobe.indesign-idms":{exts:["idms"],badge:"Id"},"application/vnd.adobe.indesign-idms-text":{exts:["idms"],badge:"Id"},"application/vnd.adobe.indesign.template":{exts:["indt"],badge:"Id"},"application/vnd.adobe.layerstyle":{exts:["asl"]},"application/vnd.adobe.look+xml":{exts:["look"]},"application/vnd.adobe.graphic+json":{exts:["json"]},"application/vnd.adobe.mdl.material+zip":{exts:["mdl","zip"]},"application/vnd.adobe.muse-collection":{exts:["muse"],badge:"Mu"},"application/vnd.adobe.nxdcomponent+dcx":{exts:["agc"],badge:"Xd"},"application/vnd.adobe.obj.3d+zip":{exts:["obj","zip"]},"application/vnd.adobe.paragraphstyle+json":{exts:["style"]},"application/vnd.adobe.paragraphstyle+snippet":{exts:["idms"]},"application/vnd.adobe.photoshop.template":{exts:["psdt"],badge:"Ps"},"application/vnd.adobe.ppro.graphic+zip":{exts:["prgraphic","mogrt"]},"application/vnd.adobe.ribbon.brush+zip":{exts:["brush"]},"application/vnd.adobe.sbsar+zip":{exts:["sbsar"]},"application/vnd.adobe.scatter.brush+zip":{exts:["brush"]},"application/vnd.adobe.vector.brush+zip":{exts:["brush"]},"application/vnd.adobe.text+json":{exts:["text-json"]},"application/vnd.adobe.theo.document+dcxucf":{exts:["dcxucf"]},"application/vnd.adobe.xdcomponent+dcx":{exts:["agc"],badge:"Xd"},"application/vnd.adobe.xd.cloudproject+dcx":{exts:["dcx"],badge:"Xd"},"application/vnd.adobe.xdp+xml":{exts:["xdp"]},"application/vnd.adobe.xfdf":{exts:["xfdf"]},"application/vnd.ahead.space":{exts:["ahead"]},"application/vnd.airzip.filesecure.azf":{exts:["azf"]},"application/vnd.airzip.filesecure.azs":{exts:["azs"]},"application/vnd.amazon.ebook":{exts:["azw"]},"application/vnd.americandynamics.acc":{exts:["acc"]},"application/vnd.amiga.ami":{exts:["ami"]},"application/vnd.android.package-archive":{exts:["apk"]},"application/vnd.anser-web-certificate-issue-initiation":{exts:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{exts:["fti"]},"application/vnd.antix.game-component":{exts:["atx"]},"application/vnd.apple.installer+xml":{exts:["mpkg"]},"application/vnd.apple.mpegurl":{exts:["m3u8"]},"application/vnd.aristanetworks.swi":{exts:["swi"]},"application/vnd.astraea-software.iota":{exts:["iota"]},"application/vnd.audiograph":{exts:["aep"]},"application/vnd.blueice.multipass":{exts:["mpm"]},"application/vnd.bmi":{exts:["bmi"]},"application/vnd.businessobjects":{exts:["rep"]},"application/vnd.chemdraw+xml":{exts:["cdxml"]},"application/vnd.chipnuts.karaoke-mmd":{exts:["mmd"]},"application/vnd.cinderella":{exts:["cdy"]},"application/vnd.claymore":{exts:["cla"]},"application/vnd.cloanto.rp9":{exts:["rp9"]},"application/vnd.clonk.c4group":{exts:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{exts:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{exts:["c11amz"]},"application/vnd.commonspace":{exts:["csp"]},"application/vnd.contact.cmsg":{exts:["cdbcmsg"]},"application/vnd.cosmocaller":{exts:["cmc"]},"application/vnd.crick.clicker":{exts:["clkx"]},"application/vnd.crick.clicker.keyboard":{exts:["clkk"]},"application/vnd.crick.clicker.palette":{exts:["clkp"]},"application/vnd.crick.clicker.template":{exts:["clkt"]},"application/vnd.crick.clicker.wordbank":{exts:["clkw"]},"application/vnd.criticaltools.wbs+xml":{exts:["wbs"]},"application/vnd.ctc-posml":{exts:["pml"]},"application/vnd.cups-ppd":{exts:["ppd"]},"application/vnd.curl.car":{exts:["car"]},"application/vnd.curl.pcurl":{exts:["pcurl"]},"application/vnd.dart":{exts:["dart"]},"application/vnd.data-vision.rdz":{exts:["rdz"]},"application/vnd.dece.data":{exts:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{exts:["uvt","uvvt"]},"application/vnd.dece.unspecified":{exts:["uvx","uvvx"]},"application/vnd.dece.zip":{exts:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{exts:["fe_launch"]},"application/vnd.dna":{exts:["dna"]},"application/vnd.dolby.mlp":{exts:["mlp"]},"application/vnd.dpgraph":{exts:["dpg"]},"application/vnd.dreamfactory":{exts:["dfac"]},"application/vnd.ds-keypoint":{exts:["kpxx"]},"application/vnd.dvb.ait":{exts:["ait"]},"application/vnd.dvb.service":{exts:["svc"]},"application/vnd.dynageo":{exts:["geo"]},"application/vnd.ecowin.chart":{exts:["mag"]},"application/vnd.enliven":{exts:["nml"]},"application/vnd.epson.esf":{exts:["esf"]},"application/vnd.epson.msf":{exts:["msf"]},"application/vnd.epson.quickanime":{exts:["qam"]},"application/vnd.epson.salt":{exts:["slt"]},"application/vnd.epson.ssf":{exts:["ssf"]},"application/vnd.eszigno3+xml":{exts:["es3","et3"]},"application/vnd.ezpix-album":{exts:["ez2"]},"application/vnd.ezpix-package":{exts:["ez3"]},"application/vnd.fdf":{exts:["fdf"]},"application/vnd.fdsn.mseed":{exts:["mseed"]},"application/vnd.fdsn.seed":{exts:["seed","dataless"]},"application/vnd.adobe.firefly.cme.weights":{exts:["pt"]},"application/vnd.adobe.firefly.cme.weights+gzip":{exts:["pt.gzip"]},"application/vnd.flographit":{exts:["gph"]},"application/vnd.fluxtime.clip":{exts:["ftc"]},"application/vnd.framemaker":{exts:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{exts:["fnc"]},"application/vnd.frogans.ltf":{exts:["ltf"]},"application/vnd.fsc.weblaunch":{exts:["fsc"]},"application/vnd.fujitsu.oasys":{exts:["oas"]},"application/vnd.fujitsu.oasys2":{exts:["oa2"]},"application/vnd.fujitsu.oasys3":{exts:["oa3"]},"application/vnd.fujitsu.oasysgp":{exts:["fg5"]},"application/vnd.fujitsu.oasysprs":{exts:["bh2"]},"application/vnd.fujixerox.ddd":{exts:["ddd"]},"application/vnd.fujixerox.docuworks":{exts:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{exts:["xbd"]},"application/vnd.fuzzysheet":{exts:["fzs"]},"application/vnd.genomatix.tuxedo":{exts:["txd"]},"application/vnd.geogebra.file":{exts:["ggb"]},"application/vnd.geogebra.tool":{exts:["ggt"]},"application/vnd.geometry-explorer":{exts:["gex","gre"]},"application/vnd.geonext":{exts:["gxt"]},"application/vnd.geoplan":{exts:["g2w"]},"application/vnd.geospace":{exts:["g3w"]},"application/vnd.gmx":{exts:["gmx"]},"application/vnd.google-earth.kml+xml":{exts:["kml"]},"application/vnd.google-earth.kmz":{exts:["kmz"]},"application/vnd.grafeq":{exts:["gqf","gqs"]},"application/vnd.groove-account":{exts:["gac"]},"application/vnd.groove-help":{exts:["ghf"]},"application/vnd.groove-identity-message":{exts:["gim"]},"application/vnd.groove-injector":{exts:["grv"]},"application/vnd.groove-tool-message":{exts:["gtm"]},"application/vnd.groove-tool-template":{exts:["tpl"]},"application/vnd.groove-vcard":{exts:["vcg"]},"application/vnd.hal+xml":{exts:["hal"]},"application/vnd.handheld-entertainment+xml":{exts:["zmm"]},"application/vnd.hbci":{exts:["hbci"]},"application/vnd.hhe.lesson-player":{exts:["les"]},"application/vnd.hp-hpgl":{exts:["hpgl"]},"application/vnd.hp-hpid":{exts:["hpid"]},"application/vnd.hp-hps":{exts:["hps"]},"application/vnd.hp-jlyt":{exts:["jlt"]},"application/vnd.hp-pcl":{exts:["pcl"]},"application/vnd.hp-pclxl":{exts:["pclxl"]},"application/vnd.ibm.minipay":{exts:["mpy"]},"application/vnd.ibm.modcap":{exts:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{exts:["irm"]},"application/vnd.ibm.secure-container":{exts:["sc"]},"application/vnd.iccprofile":{exts:["icc","icm"]},"application/vnd.igloader":{exts:["igl"]},"application/vnd.immervision-ivp":{exts:["ivp"]},"application/vnd.immervision-ivu":{exts:["ivu"]},"application/vnd.insors.igm":{exts:["igm"]},"application/vnd.intercon.formnet":{exts:["xpw","xpx"]},"application/vnd.intergeo":{exts:["i2g"]},"application/vnd.intu.qbo":{exts:["qbo"]},"application/vnd.intu.qfx":{exts:["qfx"]},"application/vnd.ipunplugged.rcprofile":{exts:["rcprofile"]},"application/vnd.irepository.package+xml":{exts:["irp"]},"application/vnd.is-xpr":{exts:["xpr"]},"application/vnd.isac.fcs":{exts:["fcs"]},"application/vnd.jam":{exts:["jam"]},"application/vnd.jcp.javame.midlet-rms":{exts:["rms"]},"application/vnd.jisp":{exts:["jisp"]},"application/vnd.joost.joda-archive":{exts:["joda"]},"application/vnd.kahootz":{exts:["ktz","ktr"]},"application/vnd.kde.karbon":{exts:["karbon"]},"application/vnd.kde.kchart":{exts:["chrt"]},"application/vnd.kde.kformula":{exts:["kfo"]},"application/vnd.kde.kivio":{exts:["flw"]},"application/vnd.kde.kontour":{exts:["kon"]},"application/vnd.kde.kpresenter":{exts:["kpr","kpt"]},"application/vnd.kde.kspread":{exts:["ksp"]},"application/vnd.kde.kword":{exts:["kwd","kwt"]},"application/vnd.kenameaapp":{exts:["htke"]},"application/vnd.kidspiration":{exts:["kia"]},"application/vnd.kinar":{exts:["kne","knp"]},"application/vnd.koan":{exts:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{exts:["sse"]},"application/vnd.las.las+xml":{exts:["lasxml"]},"application/vnd.llamagraphics.life-balance.desktop":{exts:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{exts:["lbe"]},"application/vnd.lotus-1-2-3":{exts:["123"]},"application/vnd.lotus-approach":{exts:["apr"]},"application/vnd.lotus-freelance":{exts:["pre"]},"application/vnd.lotus-notes":{exts:["nsf"]},"application/vnd.lotus-organizer":{exts:["org"]},"application/vnd.lotus-screencam":{exts:["scm"]},"application/vnd.lotus-wordpro":{exts:["lwp"]},"application/vnd.macports.portpkg":{exts:["portpkg"]},"application/vnd.mcd":{exts:["mcd"]},"application/vnd.medcalcdata":{exts:["mc1"]},"application/vnd.mediastation.cdkey":{exts:["cdkey"]},"application/vnd.mfer":{exts:["mwf"]},"application/vnd.mfmp":{exts:["mfm"]},"application/vnd.micrografx.flo":{exts:["flo"]},"application/vnd.micrografx.igx":{exts:["igx"]},"application/vnd.mif":{exts:["mif"]},"application/vnd.mobius.daf":{exts:["daf"]},"application/vnd.mobius.dis":{exts:["dis"]},"application/vnd.mobius.mbk":{exts:["mbk"]},"application/vnd.mobius.mqy":{exts:["mqy"]},"application/vnd.mobius.msl":{exts:["msl"]},"application/vnd.mobius.plc":{exts:["plc"]},"application/vnd.mobius.txf":{exts:["txf"]},"application/vnd.mophun.application":{exts:["mpn"]},"application/vnd.mophun.certificate":{exts:["mpc"]},"application/vnd.mozilla.xul+xml":{exts:["xul"]},"application/vnd.ms-artgalry":{exts:["cil"]},"application/vnd.ms-cab-compressed":{exts:["cab"]},"application/vnd.ms-excel":{exts:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{exts:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{exts:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{exts:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{exts:["xltm"]},"application/vnd.ms-fontobject":{exts:["eot"]},"application/vnd.ms-htmlhelp":{exts:["chm"]},"application/vnd.ms-ims":{exts:["ims"]},"application/vnd.ms-lrm":{exts:["lrm"]},"application/vnd.ms-officetheme":{exts:["thmx"]},"application/vnd.ms-pki.seccat":{exts:["cat"]},"application/vnd.ms-pki.stl":{exts:["stl"]},"application/vnd.ms-powerpoint":{exts:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{exts:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{exts:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{exts:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{exts:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{exts:["potm"]},"application/vnd.ms-project":{exts:["mpp","mpt"]},"application/vnd.ms-word.document.macroenabled.12":{exts:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{exts:["dotm"]},"application/vnd.ms-works":{exts:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{exts:["wpl"]},"application/vnd.ms-xpsdocument":{exts:["xps"]},"application/vnd.mseq":{exts:["mseq"]},"application/vnd.musician":{exts:["mus"]},"application/vnd.muvee.style":{exts:["msty"]},"application/vnd.mynfc":{exts:["taglet"]},"application/vnd.neurolanguage.nlu":{exts:["nlu"]},"application/vnd.nitf":{exts:["ntf","nitf"]},"application/vnd.noblenet-directory":{exts:["nnd"]},"application/vnd.noblenet-sealer":{exts:["nns"]},"application/vnd.noblenet-web":{exts:["nnw"]},"application/vnd.nokia.n-gage.data":{exts:["ngdat"]},"application/vnd.nokia.radio-preset":{exts:["rpst"]},"application/vnd.nokia.radio-presets":{exts:["rpss"]},"application/vnd.novadigm.edm":{exts:["edm"]},"application/vnd.novadigm.edx":{exts:["edx"]},"application/vnd.novadigm.ext":{exts:["ext"]},"application/vnd.oasis.opendocument.chart":{exts:["odc"]},"application/vnd.oasis.opendocument.chart-template":{exts:["otc"]},"application/vnd.oasis.opendocument.database":{exts:["odb"]},"application/vnd.oasis.opendocument.formula":{exts:["odf"]},"application/vnd.oasis.opendocument.formula-template":{exts:["odft"]},"application/vnd.oasis.opendocument.graphics":{exts:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{exts:["otg"]},"application/vnd.oasis.opendocument.image":{exts:["odi"]},"application/vnd.oasis.opendocument.image-template":{exts:["oti"]},"application/vnd.oasis.opendocument.presentation":{exts:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{exts:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{exts:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{exts:["ots"]},"application/vnd.oasis.opendocument.text":{exts:["odt"]},"application/vnd.oasis.opendocument.text-master":{exts:["odm"]},"application/vnd.oasis.opendocument.text-template":{exts:["ott"]},"application/vnd.oasis.opendocument.text-web":{exts:["oth"]},"application/vnd.olpc-sugar":{exts:["xo"]},"application/vnd.oma.dd2+xml":{exts:["dd2"]},"application/vnd.openofficeorg.extension":{exts:["oxt"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{exts:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide":{exts:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{exts:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.template":{exts:["potx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{exts:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{exts:["xltx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{exts:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{exts:["dotx"]},"application/vnd.osgeo.mapguide.package":{exts:["mgp"]},"application/vnd.osgi.dp":{exts:["dp"]},"application/vnd.osgi.subsystem":{exts:["esa"]},"application/vnd.palm":{exts:["pdb","pqa","oprc"]},"application/vnd.pawaafile":{exts:["paw"]},"application/vnd.pg.format":{exts:["str"]},"application/vnd.pg.osasli":{exts:["ei6"]},"application/vnd.picsel":{exts:["efif"]},"application/vnd.pmi.widget":{exts:["wg"]},"application/vnd.pocketlearn":{exts:["plf"]},"application/vnd.powerbuilder6":{exts:["pbd"]},"application/vnd.previewsystems.box":{exts:["box"]},"application/vnd.proteus.magazine":{exts:["mgz"]},"application/vnd.publishare-delta-tree":{exts:["qps"]},"application/vnd.pvi.ptid1":{exts:["ptid"]},"application/vnd.quark.quarkxpress":{exts:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.realvnc.bed":{exts:["bed"]},"application/vnd.recordare.musicxml":{exts:["mxl"]},"application/vnd.recordare.musicxml+xml":{exts:["musicxml"]},"application/vnd.rig.cryptonote":{exts:["cryptonote"]},"application/vnd.rim.cod":{exts:["cod"]},"application/vnd.rn-realmedia":{exts:["rm"]},"application/vnd.rn-realmedia-vbr":{exts:["rmvb"]},"application/vnd.route66.link66+xml":{exts:["link66"]},"application/vnd.sailingtracker.track":{exts:["st"]},"application/vnd.seemail":{exts:["see"]},"application/vnd.sema":{exts:["sema"]},"application/vnd.semd":{exts:["semd"]},"application/vnd.semf":{exts:["semf"]},"application/vnd.shana.informed.formdata":{exts:["ifm"]},"application/vnd.shana.informed.formtemplate":{exts:["itp"]},"application/vnd.shana.informed.interchange":{exts:["iif"]},"application/vnd.shana.informed.package":{exts:["ipk"]},"application/vnd.simtech-mindmapper":{exts:["twd","twds"]},"application/vnd.smaf":{exts:["mmf"]},"application/vnd.smart.teacher":{exts:["teacher"]},"application/vnd.solent.sdkm+xml":{exts:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{exts:["dxp"]},"application/vnd.spotfire.sfs":{exts:["sfs"]},"application/vnd.stardivision.calc":{exts:["sdc"]},"application/vnd.stardivision.draw":{exts:["sda"]},"application/vnd.stardivision.impress":{exts:["sdd"]},"application/vnd.stardivision.math":{exts:["smf"]},"application/vnd.stardivision.writer":{exts:["sdw","vor"]},"application/vnd.stardivision.writer-global":{exts:["sgl"]},"application/vnd.stepmania.package":{exts:["smzip"]},"application/vnd.stepmania.stepchart":{exts:["sm"]},"application/vnd.sun.xml.calc":{exts:["sxc"]},"application/vnd.sun.xml.calc.template":{exts:["stc"]},"application/vnd.sun.xml.draw":{exts:["sxd"]},"application/vnd.sun.xml.draw.template":{exts:["std"]},"application/vnd.sun.xml.impress":{exts:["sxi"]},"application/vnd.sun.xml.impress.template":{exts:["sti"]},"application/vnd.sun.xml.math":{exts:["sxm"]},"application/vnd.sun.xml.writer":{exts:["sxw"]},"application/vnd.sun.xml.writer.global":{exts:["sxg"]},"application/vnd.sun.xml.writer.template":{exts:["stw"]},"application/vnd.sus-calendar":{exts:["sus","susp"]},"application/vnd.svd":{exts:["svd"]},"application/vnd.symbian.install":{exts:["sis","sisx"]},"application/vnd.syncml+xml":{exts:["xsm"]},"application/vnd.syncml.dm+wbxml":{exts:["bdm"]},"application/vnd.syncml.dm+xml":{exts:["xdm"]},"application/vnd.tao.intent-module-archive":{exts:["tao"]},"application/vnd.tcpdump.pcap":{exts:["pcap","cap","dmp"]},"application/vnd.tmobile-livetv":{exts:["tmo"]},"application/vnd.trid.tpt":{exts:["tpt"]},"application/vnd.triscape.mxs":{exts:["mxs"]},"application/vnd.trueapp":{exts:["tra"]},"application/vnd.ufdl":{exts:["ufd","ufdl"]},"application/vnd.uiq.theme":{exts:["utz"]},"application/vnd.umajin":{exts:["umj"]},"application/vnd.unity":{exts:["unityweb"]},"application/vnd.uoml+xml":{exts:["uoml"]},"application/vnd.vcx":{exts:["vcx"]},"application/vnd.visio":{exts:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{exts:["vis"]},"application/vnd.vsf":{exts:["vsf"]},"application/vnd.wap.wbxml":{exts:["wbxml"]},"application/vnd.wap.wmlc":{exts:["wmlc"]},"application/vnd.wap.wmlscriptc":{exts:["wmlsc"]},"application/vnd.webturbo":{exts:["wtb"]},"application/vnd.wolfram.player":{exts:["nbp"]},"application/vnd.wordperfect":{exts:["wpd"]},"application/vnd.wqd":{exts:["wqd"]},"application/vnd.wt.stf":{exts:["stf"]},"application/vnd.xara":{exts:["xar"]},"application/vnd.xfdl":{exts:["xfdl"]},"application/vnd.yamaha.hv-dic":{exts:["hvd"]},"application/vnd.yamaha.hv-script":{exts:["hvs"]},"application/vnd.yamaha.hv-voice":{exts:["hvp"]},"application/vnd.yamaha.openscoreformat":{exts:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{exts:["osfpvg"]},"application/vnd.yamaha.smaf-audio":{exts:["saf"]},"application/vnd.yamaha.smaf-phrase":{exts:["spf"]},"application/vnd.yellowriver-custom-menu":{exts:["cmp"]},"application/vnd.zul":{exts:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{exts:["zaz"]},"application/voicexml+xml":{exts:["vxml"]},"application/widget":{exts:["wgt"]},"application/winhlp":{exts:["hlp"]},"application/wsdl+xml":{exts:["wsdl"]},"application/wspolicy+xml":{exts:["wspolicy"]},"application/x-7z-compressed":{exts:["7z"]},"application/x-abiword":{exts:["abw"]},"application/x-ace-compressed":{exts:["ace"]},"application/x-apple-diskimage":{exts:["dmg"]},"application/x-authorware-bin":{exts:["aab","x32","u32","vox"]},"application/x-authorware-map":{exts:["aam"]},"application/x-authorware-seg":{exts:["aas"]},"application/x-bcpio":{exts:["bcpio"]},"application/x-bittorrent":{exts:["torrent"]},"application/x-blorb":{exts:["blb","blorb"]},"application/x-bzip":{exts:["bz"]},"application/x-bzip2":{exts:["bz2","boz"]},"application/x-cbr":{exts:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{exts:["vcd"]},"application/x-cfs-compressed":{exts:["cfs"]},"application/x-chat":{exts:["chat"]},"application/x-chess-pgn":{exts:["pgn"]},"application/x-conference":{exts:["nsc"]},"application/x-cpio":{exts:["cpio"]},"application/x-csh":{exts:["csh"]},"application/x-debian-package":{exts:["deb","udeb"]},"application/x-dgc-compressed":{exts:["dgc"]},"application/x-director":{exts:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{exts:["wad"]},"application/x-dtbncx+xml":{exts:["ncx"]},"application/x-dtbook+xml":{exts:["dtb"]},"application/x-dtbresource+xml":{exts:["res"]},"application/x-dvi":{exts:["dvi"]},"application/x-envoy":{exts:["evy"]},"application/x-eva":{exts:["eva"]},"application/x-font-bdf":{exts:["bdf"]},"application/x-font-ghostscript":{exts:["gsf"]},"application/x-font-linux-psf":{exts:["psf"]},"application/x-font-otf":{exts:["otf"]},"application/x-font-pcf":{exts:["pcf"]},"application/x-font-snf":{exts:["snf"]},"application/x-font-ttf":{exts:["ttf","ttc"]},"application/x-font-type1":{exts:["pfa","pfb","pfm","afm"]},"application/font-woff":{exts:["woff"]},"application/x-freearc":{exts:["arc"]},"application/x-futuresplash":{exts:["spl"]},"application/x-gca-compressed":{exts:["gca"]},"application/x-glulx":{exts:["ulx"]},"application/x-gnumeric":{exts:["gnumeric"]},"application/x-gramps-xml":{exts:["gramps"]},"application/x-gtar":{exts:["gtar"]},"application/x-hdf":{exts:["hdf"]},"application/x-install-instructions":{exts:["install"]},"application/x-iso9660-image":{exts:["iso"]},"application/x-java-jnlp-file":{exts:["jnlp"]},"application/x-latex":{exts:["latex"]},"application/x-lzh-compressed":{exts:["lzh","lha"]},"application/x-mie":{exts:["mie"]},"application/x-mobipocket-ebook":{exts:["prc","mobi"]},"application/x-ms-application":{exts:["application"]},"application/x-ms-shortcut":{exts:["lnk"]},"application/x-ms-wmd":{exts:["wmd"]},"application/x-ms-wmz":{exts:["wmz"]},"application/x-ms-xbap":{exts:["xbap"]},"application/x-msaccess":{exts:["mdb"]},"application/x-msbinder":{exts:["obd"]},"application/x-mscardfile":{exts:["crd"]},"application/x-msclip":{exts:["clp"]},"application/x-msdownload":{exts:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{exts:["mvb","m13","m14"]},"application/x-msmetafile":{exts:["wmf","wmz","emf","emz"]},"application/x-msmoney":{exts:["mny"]},"application/x-mspublisher":{exts:["pub"]},"application/x-msschedule":{exts:["scd"]},"application/x-msterminal":{exts:["trm"]},"application/x-mswrite":{exts:["wri"]},"application/x-netcdf":{exts:["nc","cdf"]},"application/x-nzb":{exts:["nzb"]},"application/x-pkcs12":{exts:["p12","pfx"]},"application/x-pkcs7-certificates":{exts:["p7b","spc"]},"application/x-pkcs7-certreqresp":{exts:["p7r"]},"application/x-rar-compressed":{exts:["rar"]},"application/x-research-info-systems":{exts:["ris"]},"application/x-sh":{exts:["sh"]},"application/x-shar":{exts:["shar"]},"application/x-shockwave-flash":{exts:["swf"]},"application/x-silverlight-app":{exts:["xap"]},"application/x-sql":{exts:["sql"]},"application/x-stuffit":{exts:["sit"]},"application/x-stuffitx":{exts:["sitx"]},"application/x-subrip":{exts:["srt"]},"application/x-sv4cpio":{exts:["sv4cpio"]},"application/x-sv4crc":{exts:["sv4crc"]},"application/x-t3vm-image":{exts:["t3"]},"application/x-tads":{exts:["gam"]},"application/x-tar":{exts:["tar"]},"application/x-tcl":{exts:["tcl"]},"application/x-tex":{exts:["tex"]},"application/x-tex-tfm":{exts:["tfm"]},"application/x-texinfo":{exts:["texinfo","texi"]},"application/x-tgif":{exts:["obj"]},"application/x-ustar":{exts:["ustar"]},"application/x-wais-source":{exts:["src"]},"application/x-x509-ca-cert":{exts:["der","crt"]},"application/x-xfig":{exts:["fig"]},"application/x-xliff+xml":{exts:["xlf"]},"application/x-xpinstall":{exts:["xpi"]},"application/x-xz":{exts:["xz"]},"application/x-zmachine":{exts:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/xaml+xml":{exts:["xaml"]},"application/xcap-diff+xml":{exts:["xdf"]},"application/xenc+xml":{exts:["xenc"]},"application/xhtml+xml":{exts:["xhtml","xht"]},"application/xml":{exts:["xml","xsl"]},"application/xml-dtd":{exts:["dtd"]},"application/xop+xml":{exts:["xop"]},"application/xproc+xml":{exts:["xpl"]},"application/xslt+xml":{exts:["xslt"]},"application/xspf+xml":{exts:["xspf"]},"application/xv+xml":{exts:["mxml","xhvml","xvml","xvm"]},"application/yang":{exts:["yang"]},"application/yin+xml":{exts:["yin"]},"application/zip":{exts:["zip"]},"audio/3gpp":{exts:["3gpp"],badge:"3GPP"},"audio/3gpp2":{exts:["3gpp2"],badge:"3GPP"},"audio/aac":{exts:["aac"],badge:"AAC"},"audio/aacp":{exts:["aacp"],badge:"AAC"},"audio/adpcm":{exts:["adp"]},"audio/aif":{exts:["aif"],badge:"AIF"},"audio/basic":{exts:["au","snd"]},"audio/m4a":{exts:["m4a"],badge:"M4A"},"audio/midi":{exts:["mid","midi","kar","rmi"]},"audio/mp3":{exts:["mp3"],badge:"MP3"},"audio/mp4":{exts:["mp4a"]},"audio/mpeg":{exts:["mpga","mp2","mp2a","m2a"],badge:"MP2"},"audio/mpeg3":{exts:["mp3","m3a"],badge:"MP3"},"audio/ogg":{exts:["oga","ogg","spx"]},"audio/s3m":{exts:["s3m"]},"audio/silk":{exts:["sil"]},"audio/vnd.dece.audio":{exts:["uva","uvva"]},"audio/vnd.digital-winds":{exts:["eol"]},"audio/vnd.dra":{exts:["dra"]},"audio/vnd.dts":{exts:["dts"]},"audio/vnd.dts.hd":{exts:["dtshd"]},"audio/vnd.lucent.voice":{exts:["lvp"]},"audio/vnd.ms-playready.media.pya":{exts:["pya"]},"audio/vnd.nuera.ecelp4800":{exts:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{exts:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{exts:["ecelp9600"]},"audio/vnd.rip":{exts:["rip"]},"audio/wav":{exts:["wav"],badge:"WAV"},"audio/webm":{exts:["weba"]},"audio/x-aac":{exts:["aac"],badge:"AAC"},"audio/x-aiff":{exts:["aiff","aifc"],badge:"AIFF"},"audio/x-caf":{exts:["caf"]},"audio/x-flac":{exts:["flac"]},"audio/x-matroska":{exts:["mka"]},"audio/x-mpegurl":{exts:["m3u"]},"audio/x-ms-wax":{exts:["wax"]},"audio/x-ms-wma":{exts:["wma"]},"audio/x-pn-realaudio":{exts:["ram","ra"]},"audio/x-pn-realaudio-plugin":{exts:["rmp"]},"audio/x-wav":{exts:["wav"]},"audio/xm":{exts:["xm"]},"chemical/x-cdx":{exts:["cdx"]},"chemical/x-cif":{exts:["cif"]},"chemical/x-cmdf":{exts:["cmdf"]},"chemical/x-cml":{exts:["cml"]},"chemical/x-csml":{exts:["csml"]},"chemical/x-xyz":{exts:["xyz"]},"document/vnd.adobe.cpsd+dcx":{exts:["psdc"],badge:"Ps"},"document/vnd.adobe.illustrator+dcx":{exts:["aic"],badge:"Ai"},"image/bmp":{exts:["bmp"],badge:"BMP"},"image/cgm":{exts:["cgm"]},"image/dng":{exts:["dng"],badge:"DNG"},"image/g3fax":{exts:["g3"]},"image/gif":{exts:["gif"],badge:"GIF"},"image/heic":{exts:["heic"],badge:"HEIC"},"image/heif":{exts:["heif"],badge:"HEIF"},"image/ief":{exts:["ief"]},"image/jpeg":{exts:["jpeg","jpg","jpe"],badge:"JPEG"},"image/jpg":{exts:["jpeg","jpg"],badge:"JPG"},"image/ktx":{exts:["ktx"]},"image/png":{exts:["png"],badge:"PNG"},"image/prs.btif":{exts:["btif"]},"image/sgi":{exts:["sgi"]},"image/svg+xml":{exts:["svg","svgz"],badge:"SVG"},"image/tiff":{exts:["tiff","tif"],badge:"TIFF"},"image/vnd.adobe.photoshop":{exts:["psd"],badge:"Ps"},"image/vnd.adobe.photoshop.template":{exts:["psdt"],badge:"Ps"},"image/vnd.adobe.pattern+png":{exts:["png"]},"image/vnd.adobe.shape+svg":{exts:["shape"],badge:"SVG"},"image/vnd.dece.graphic":{exts:["uvi","uvvi","uvg","uvvg"]},"image/vnd.dvb.subtitle":{exts:["sub"]},"image/vnd.djvu":{exts:["djvu","djv"]},"image/vnd.dwg":{exts:["dwg"]},"image/vnd.dxf":{exts:["dxf"]},"image/vnd.fastbidsheet":{exts:["fbs"]},"image/vnd.fpx":{exts:["fpx"]},"image/vnd.fst":{exts:["fst"]},"image/vnd.fujixerox.edmics-mmr":{exts:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{exts:["rlc"]},"image/vnd.ms-modi":{exts:["mdi"]},"image/vnd.ms-photo":{exts:["wdp"]},"image/vnd.net-fpx":{exts:["npx"]},"image/vnd.radiance":{exts:["hdr"]},"image/vnd.wap.wbmp":{exts:["wbmp"]},"image/vnd.xiff":{exts:["xif"]},"image/webp":{exts:["webp"]},"image/x-3ds":{exts:["3ds"]},"image/x-adobe-dng":{exts:["dng"],badge:"DNG"},"image/x-adobe-photoshop-brush":{exts:["abr"]},"image/x-cmu-raster":{exts:["ras"]},"image/x-cmx":{exts:["cmx"]},"image/x-freehand":{exts:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{exts:["ico"]},"image/x-mrsid-image":{exts:["sid"]},"image/x-pcx":{exts:["pcx"]},"image/x-pict":{exts:["pic","pct"]},"image/x-portable-anymap":{exts:["pnm"]},"image/x-portable-bitmap":{exts:["pbm"]},"image/x-portable-graymap":{exts:["pgm"]},"image/x-portable-pixmap":{exts:["ppm"]},"image/x-rgb":{exts:["rgb"]},"image/x-tga":{exts:["tga"]},"image/x-xbitmap":{exts:["xbm"]},"image/x-xpixmap":{exts:["xpm"]},"image/x-xwindowdump":{exts:["xwd"]},"message/rfc822":{exts:["eml","mime"]},"model/gltf-binary":{exts:["glb"]},"model/gltf+json":{exts:["gltf"]},"model/iges":{exts:["igs","iges"]},"model/mesh":{exts:["msh","mesh","silo"]},"model/vnd.usdz+zip":{exts:["usdz"]},"model/vnd.adobe.dn+dcx":{exts:["dn"]},"model/vnd.adobe.dn+dcxucf":{exts:["dn"]},"model/vnd.collada+xml":{exts:["dae"]},"model/vnd.dwf":{exts:["dwf"]},"model/vnd.gdl":{exts:["gdl"]},"model/vnd.gtw":{exts:["gtw"]},"model/vnd.mts":{exts:["mts"]},"model/vnd.vtu":{exts:["vtu"]},"model/vrml":{exts:["wrl","vrml"]},"model/x3d+binary":{exts:["x3db","x3dbz"]},"model/x3d+vrml":{exts:["x3dv","x3dvz"]},"model/x3d+xml":{exts:["x3d","x3dz"]},"text/cache-manifest":{exts:["appcache"]},"text/calendar":{exts:["ics","ifb"]},"text/css":{exts:["css"]},"text/csv":{exts:["csv"]},"text/html":{exts:["html","htm"]},"text/n3":{exts:["n3"]},"text/plain":{exts:["txt","text","conf","def","list","log","in"]},"text/prs.lines.tag":{exts:["dsc"]},"text/richtext":{exts:["rtx"]},"text/sgml":{exts:["sgml","sgm"]},"text/tab-separated-values":{exts:["tsv"]},"text/troff":{exts:["t","tr","roff","man","me","ms"]},"text/turtle":{exts:["ttl"]},"text/uri-list":{exts:["uri","uris","urls"]},"text/vcard":{exts:["vcard"]},"text/vnd.curl":{exts:["curl"]},"text/vnd.curl.dcurl":{exts:["dcurl"]},"text/vnd.curl.scurl":{exts:["scurl"]},"text/vnd.curl.mcurl":{exts:["mcurl"]},"text/vnd.dvb.subtitle":{exts:["sub"]},"text/vnd.fly":{exts:["fly"]},"text/vnd.fmi.flexstor":{exts:["flx"]},"text/vnd.graphviz":{exts:["gv"]},"text/vnd.in3d.3dml":{exts:["3dml"]},"text/vnd.in3d.spot":{exts:["spot"]},"text/vnd.sun.j2me.app-descriptor":{exts:["jad"]},"text/vnd.wap.wml":{exts:["wml"]},"text/vnd.wap.wmlscript":{exts:["wmls"]},"text/x-asm":{exts:["s","asm"]},"text/x-c":{exts:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-fortran":{exts:["f","for","f77","f90"]},"text/x-java-source":{exts:["java"]},"text/x-opml":{exts:["opml"]},"text/x-pascal":{exts:["p","pas"]},"text/x-nfo":{exts:["nfo"]},"text/x-setext":{exts:["etx"]},"text/x-sfv":{exts:["sfv"]},"text/x-uuencode":{exts:["uu"]},"text/x-vcalendar":{exts:["vcs"]},"text/x-vcard":{exts:["vcf"]},"video/3gpp":{exts:["3gp"]},"video/3gpp2":{exts:["3g2"]},"video/h261":{exts:["h261"]},"video/h263":{exts:["h263"]},"video/h264":{exts:["h264"]},"video/jpeg":{exts:["jpgv"]},"video/jpm":{exts:["jpm","jpgm"]},"video/mj2":{exts:["mj2","mjp2"]},"video/mp4":{exts:["mp4","mp4v","mpg4"],badge:"MP4"},"video/mpeg":{exts:["mpeg","mpg","mpe","m1v","m2v"],badge:"MPEG"},"video/ogg":{exts:["ogv"]},"video/quicktime":{exts:["mov","qt"],badge:"MOV"},"video/vnd.dece.hd":{exts:["uvh","uvvh"]},"video/vnd.dece.mobile":{exts:["uvm","uvvm"]},"video/vnd.dece.pd":{exts:["uvp","uvvp"]},"video/vnd.dece.sd":{exts:["uvs","uvvs"]},"video/vnd.dece.video":{exts:["uvv","uvvv"]},"video/vnd.dvb.file":{exts:["dvb"]},"video/vnd.fvt":{exts:["fvt"]},"video/vnd.mpegurl":{exts:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{exts:["pyv"]},"video/vnd.uvvu.mp4":{exts:["uvu","uvvu"]},"video/vnd.vivo":{exts:["viv"]},"video/webm":{exts:["webm"]},"video/x-f4v":{exts:["f4v"]},"video/x-fli":{exts:["fli"]},"video/x-flv":{exts:["flv"]},"video/x-m4v":{exts:["m4v"]},"video/x-matroska":{exts:["mkv","mk3d","mks"]},"video/x-mng":{exts:["mng"]},"video/x-ms-asf":{exts:["asf","asx","wmv"],badge:"WMV"},"video/x-ms-vob":{exts:["vob"]},"video/x-ms-wm":{exts:["wm"]},"video/x-ms-wmv":{exts:["wmv"],badge:"WMV"},"video/x-ms-wmx":{exts:["wmx"]},"video/x-ms-wvx":{exts:["wvx"]},"video/x-msvideo":{exts:["avi"]},"video/x-quicktime":{exts:["mov"],badge:"MOV"},"video/x-sgi-movie":{exts:["movie"]},"video/x-smv":{exts:["smv"]},"x-conference/x-cooltalk":{exts:["ice"]},"3d/vnd.adobe.dn+dcxucf":{exts:["dn"]}},i=new Set(["application/x-indesign","application/postscript","application/illustrator","application/pdf","application/vnd.adobe.psremix","application/vnd.adobe.pstouch","application/vnd.adobe.ideas","application/vnd.adobe.ase","image/jpeg","image/jpg","image/pjpeg","image/tiff","image/gif","image/bmp","image/x-ms-bmp","image/svg+xml","image/png","image/x-png","image/jp2","image/psd","image/vnd.adobe.photoshop","image/heic","application/photoshop","application/x-photoshop","image/raw","image/dng","image/x-adobe-dng","video/mp4","video/mpeg","video/x-ms-wmv","video/3gpp","video/3gpp2","video/quicktime","video/x-msvideo","video/x-flv","video/x-ms-asf","video/x-m4v","video/mp2t","application/mxf","application/x-shockwave-flash","application/vnd.adobe.brushes.brush+ucf","application/vnd.adobe.collage","application/vnd.adobe.proto","application/msword","application/msexcel","application/mspowerpoint","application/vnd.ms-publisher","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","text/plain","text/rtf","application/illustrator.template","application/vnd.adobe.indesign.template","application/vnd.adobe.photoshop.template","image/vnd.adobe.photoshop.template"]),o={};function a(e){var t;return e?(null===(t=n[e.toLowerCase()])||void 0===t?void 0:t.exts)||function(e){const t=e.match(/application\/x-adobe-libraries-(.+)/);return t?[t[1]]:[]}(e.toLowerCase()):[]}function s(e){return e?o[e.toLowerCase()]||function(e){return[`application/x-adobe-libraries-${e}`]}(e.toLowerCase()):[]}function c(e){return i.has(e)}Object.keys(n).forEach((e=>{n[e].exts.forEach((t=>{o[t]=o[t]||[],o[t].push(e)}))}));const l=[1,1,2,3,5,8,13,21,34,55],u=10485760,d=[45623,45625],p=[15e3,3e4],h=p.length,f=5242880,m={photoshop:"TOOLKIT_NAME_PHOTOSHOP",photoshop_swatches:"TOOLKIT_NAME_PHOTOSHOP_SWATCHES",photoshop_brushes:"TOOLKIT_NAME_PHOTOSHOP_BRUSHES",photoshop_gradients:"TOOLKIT_NAME_PHOTOSHOP_GRADIENTS",photoshop_patterns:"TOOLKIT_NAME_PHOTOSHOP_PATTERNS",photoshop_styles:"TOOLKIT_NAME_PHOTOSHOP_STYLES",photoshop_shapes:"TOOLKIT_NAME_PHOTOSHOP_SHAPES",photoshop_swatches_prerelease:"TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR",photoshop_brushes_prerelease:"TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR",photoshop_gradients_prerelease:"TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR",photoshop_patterns_prerelease:"TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR",photoshop_styles_prerelease:"TOOLKIT_NAME_PHOTOSHOP_STYLES_PR",photoshop_shapes_prerelease:"TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR"},g={IMAGE_ELEMENT_TYPE:"application/vnd.adobe.element.image+dcx",COLOR_ELEMENT_TYPE:"application/vnd.adobe.element.color+dcx",COLOR_THEME_ELEMENT_TYPE:"application/vnd.adobe.element.colortheme+dcx",BRUSH_ELEMENT_TYPE:"application/vnd.adobe.element.brush+dcx",CHARACTER_STYLE_ELEMENT_TYPE:"application/vnd.adobe.element.characterstyle+dcx",PARAGRAPH_STYLE_ELEMENT_TYPE:"application/vnd.adobe.element.paragraphstyle+dcx",FONT_ELEMENT_TYPE:"application/vnd.adobe.element.font+dcx",LAYER_STYLE_ELEMENT_TYPE:"application/vnd.adobe.element.layerstyle+dcx",LOOK_ELEMENT_TYPE:"application/vnd.adobe.element.look+dcx",CAPSULE_ELEMENT_TYPE:"application/vnd.adobe.element.graphic+dcx",VIDEO_ELEMENT_TYPE:"application/vnd.adobe.element.video+dcx",THREE_D_ELEMENT_TYPE:"application/vnd.adobe.element.3d+dcx",LIGHT_ELEMENT_TYPE:"application/vnd.adobe.element.light+dcx",MATERIAL_ELEMENT_TYPE:"application/vnd.adobe.element.material+dcx",PATTERN_ELEMENT_TYPE:"application/vnd.adobe.element.pattern+dcx",TEMPLATE_ELEMENT_TYPE:"application/vnd.adobe.element.template+dcx",TEXT_ELEMENT_TYPE:"application/vnd.adobe.element.text+dcx",ANIMATION_ELEMENT_TYPE:"application/vnd.adobe.element.animation+dcx",LIBRARY_TYPE:"application/vnd.adobe.library+dcx",GRADIENT_ELEMENT_TYPE:"application/vnd.adobe.element.gradient+dcx",COMPONENT_ELEMENT_TYPE:"application/vnd.adobe.element.component+dcx",AUDIO_ELEMENT_TYPE:"application/vnd.adobe.element.audio+dcx",ML_MODEL_ELEMENT_TYPE:"application/vnd.adobe.element.mlmodel+dcx"},v=/^application\/vnd\.adobe\.element\.(.*)\+dcx$/,y={ACCC:"Creative Cloud Desktop",AEFT:"After Effects",CCX:"CCX",DRWV:"Dreamweaver",Figma:"Figma",FLPR:"FlashPro",FRED:"Fred",GoogleSlides:"Google Slides",IDSN:"InDesign",ILST:"Illustrator",ILST_UXP:"Illustrator",KBRG:"Bridge",PHXS:"Photoshop",PHXS_UXP:"Photoshop",PowerPoint:"Microsoft PowerPoint",PPRO:"Premiere Pro",SPRK:"XD",STGR:"Stager",StyleGuide:"Style Guide",Word:"Microsoft Word"},b={MAX_ELEMENTS:1e4,MAX_REMOVED_ELEMENTS:2e3,MAX_COMPONENT_SIZE:1073741824,DL_NAMESPACE:"library",VALID_RELATIONS:["primary","rendition","alternate"],DEFAULT_GROUP_CLASSIFIER:"$default",ELEMENT_ACTIONS:["edit","openStock","editInSource"],LIBRARY_ACTIONS:["editInSource"],DOCUMENT_LIBRARY_ACTION_PRODUCT_MAP:{types:{"application/vnd.adobe.xd.cloudproject+dcx":["SPKR"]},products:{}},ELEMENT_ACTION_PRODUCT_MAP:{types:{"application/vnd.adobe.element.image+dcx":{"application/illustrator":["ILST_EDIT","ILST_PLACE","IDSN_PLACE"],"image/svg+xml":["ILST_EDIT","ILST_PLACE"],"application/vnd.adobe.indesign-idms":["IDSN_EDIT","IDSN_PLACE"],"image/vnd.adobe.photoshop":["PHXS_EDIT","PHXS_PLACE","IDSN_PLACE"],"application/photoshop":["PHXS_EDIT","PHXS_PLACE","IDSN_PLACE"],"application/photoshop.large":["PHXS_EDIT","PHXS_PLACE","IDSN_PLACE"],"image/png":["PHXS_EDIT","PHXS_PLACE","ILST_PLACE","IDSN_PLACE","PPRO_PLACE","AEFT_PLACE"],"image/jpeg":["PHXS_EDIT","PHXS_PLACE","ILST_PLACE","IDSN_PLACE","PPRO_PLACE","AEFT_PLACE"],"image/jpg":["PHXS_EDIT","PHXS_PLACE","IDSN_PLACE","ILST_PLACE","PPRO_PLACE","AEFT_PLACE"],"image/gif":["PHXS_EDIT","PHXS_PLACE","ILST_PLACE","IDSN_PLACE","PPRO_PLACE","AEFT_PLACE"],"image/bmp":["PHXS_EDIT","PHXS_PLACE","ILST_PLACE","IDSN_PLACE","PPRO_PLACE","AEFT_PLACE"],"image/x-portable-bitmap":["PHXS_EDIT","PHXS_PLACE"],"image/x-pict":["PHXS_EDIT","PHXS_PLACE"],"image/x-pcx":["PHXS_EDIT","PHXS_PLACE"],"image/x-portable-graymap":["PHXS_EDIT","PHXS_PLACE"],"image/x-portable-anymap":["PHXS_EDIT","PHXS_PLACE"],"image/x-portable-pixmap":["PHXS_EDIT","PHXS_PLACE"],"image/x-tga":["PHXS_EDIT","PHXS_PLACE"],"image/tiff":["PHXS_EDIT","PHXS_PLACE"],"image/vnd.wap.wbmp":["PHXS_EDIT","PHXS_PLACE"]},"application/vnd.adobe.element.text+dcx":{"application/illustrator-text":["ILST_EDIT_TEXT"],"application/vnd.adobe.indesign-idms-text":["IDSN_EDIT_TEXT"]},"application/vnd.adobe.element.template+dcx":{"image/vnd.adobe.photoshop.template":["PHXS_PLACE"],"application/illustrator.template":["ILST_PLACE"],"application/vnd.adobe.indesign.template":["IDSN_PLACE"]},"application/vnd.adobe.element.3d+dcx":{"application/vnd.adobe.obj.3d+zip":["ESHR_PLACE"]},"application/vnd.adobe.element.material+dcx":{"application/vnd.adobe.mdl.material+zip":["ESHR_PLACE"]},"application/vnd.adobe.element.light+dcx":{"application/vnd.adobe.ibl.light+zip":["ESHR_PLACE"]},"application/vnd.adobe.element.animation+dcx":{"application/vnd.adobe.animate-xfl+zip":["FLPR_EDIT"],"application/vnd.adobe.animate-sym+zip":["FLPR_EDIT"]}},products:{}},VECTOR_RENDITION_ELEMENT_TYPES:["application/illustrator"],ANALYTICS_ENABLED:!1,DEVICE_DESCRIPTION:!1},_="cclibraries",E="LIBS",w=JSON.stringify({apiVersion:12}),x=["start","limit","selector","type","orderBy","group","owner"],L={OK:200,CREATED:201,ACCEPTED:202,NO_CONTENT:204,MULTIPLE_CHOICES:300,BAD_REQUEST:400,UNAUTHORIZED:401,FORBIDDEN:403,NOT_FOUND:404,CONFLICT:409,PRECONDITION_FAILED:412,UNSUPPOERTED_MEDIA_TYPE:415,IM_A_TEAPOT:418,INTERNAL_SERVER_ERROR:500,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503},O="AbortError";var S=r(50586);function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const I="@PLACEHOLDER-[a-f0-9]{8}-(?:[a-f0-9]{4}-){3}[a-f0-9]{12}",A=new RegExp(`^${I}$`),C=new RegExp(`(${I})`),k=()=>`@PLACEHOLDER-${(0,S.v4)()}`,D=e=>A.test(e),N=e=>Object.assign({ownership:"private",groups:[],elements:[],documentationElements:[],deletable:!0,removedElements:[],areElementsLoaded:!0,isLibraryLoaded:!0,isWritable:!0,isParentWritable:!0,details:{elementCount:0,documentationElementCount:0,removedElementCount:0},removeType:"delete"},e);function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function M(e){try{if(e&&"object"==typeof e&&!Array.isArray(e))return e;const t=JSON.parse(e);if(t&&"object"==typeof t&&!Array.isArray(t))return t}catch(e){return}}function j(e){const t=Z(e);return t?JSON.stringify(t,Object.keys(t).sort()):""}const F=new RegExp("([^/]+);node=(.*)");function Z(e){return M(e)||function(e){const t=e.match(F);if(!t)return;const r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),3!==o.length);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e)||function(e,t){if(e){if("string"==typeof e)return R(e,3);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,3):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t);return{"dc:format":"application/vnd.adobe.library+dcx","stRef:documentID":r[1],"stRef:fromPart":`id=${r[2]}`}}(e)}function B(e){var t;const r=Z(e);if(r)return{libraryAssetId:r["repo:assetId"],libraryId:r["stRef:documentID"],elementId:null===(t=r["stRef:fromPart"])||void 0===t?void 0:t.substring(3)}}function G(){G=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function U(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function z(e){const t=e&&e.replace(/^.*[\\/]/,""),r=t?t.lastIndexOf("."):-1;if(-1!==r)return t.substr(r+1).toLowerCase()}function V(e){return function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),1!==o.length);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e)||function(e,t){if(e){if("string"==typeof e)return H(e,1);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?H(e,1):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(s(z(e))||[])[0]||"application/octet-stream"}function Y(e){e.sort(((e,t)=>t.size-e.size));const t=Math.ceil(e.length/6);return e.splice(0,t).reduce(((e,t)=>e+Math.round(t.size/1024*2.5)),0)}function W(e){return new Promise((t=>{const r=new FileReader;r.onload=e=>{var r;const n=new Image;n.onload=()=>{t({width:n.width,height:n.height})},n.onerror=()=>{t(void 0)},n.src=null===(r=e.target)||void 0===r?void 0:r.result},r.readAsDataURL(e)}))}function K(e,t){return $.apply(this,arguments)}function $(){return($=function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){U(o,n,i,a,s,"next",e)}function s(e){U(o,n,i,a,s,"throw",e)}a(void 0)}))}}(G().mark((function e(t,r){return G().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c(r)){e.next=2;break}return e.abrupt("return");case 2:if(e.prev=2,"undefined"==typeof window||!window.FileReader||!window.Image){e.next=7;break}return e.abrupt("return",W(t));case 7:return e.abrupt("return");case 8:e.next=13;break;case 10:return e.prev=10,e.t0=e.catch(2),e.abrupt("return");case 13:case"end":return e.stop()}}),e,null,[[2,10]])})))).apply(this,arguments)}class q extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}const X=["OPERATION_CANCELLED","EXCEEDS_MAX_LIBRARY_SIZE","THUMBNAIL_NOT_AVAILABLE","RENDITION_NOT_AVAILABLE","URL_VALIDATION_FAILED","CORRUPTED_LIBRARY","TRANSFER_ABORTED","TRANSFER_ERROR","NETWORK_ERROR","EXCEEDS_QUOTA","EXCEEDS_COMPONENT_LIMIT","RETRYABLE_SERVER_ERROR","LOGGED_OUT","FILE_TOO_LARGE","INVALID_DATA","FS_ERROR","OUT_OF_SPACE","ACCESS_DENIED","NOT_ALLOWED","DELETED_LOCALLY","REQUIRES_FILESYSTEM","NOT_SUPPORTED","NOT_IMPLEMENTED","INVALID_PARAMETER","READ_ONLY","CONNECTION_FAILED","REQUEST_FAILED","INVALID_RESPONSE","INVALID_JSON"];class J extends q{constructor(e,t,r,n){(function(e){const t=e;return!!t.code&&!!t.message})(e)&&(t=e.message,r=e.libraryId,n=e.underlyingError,e=e.code),super(`[${e}] ${t}`),this.code=e,this.libraryId=r,this.underlyingError=n}}var Q=r(5939),ee=r.n(Q);class te{constructor(){this._emitter=new Q.EventEmitter}get DANGEROUS(){return{removeAllListeners:e=>(e?this._emitter.removeAllListeners(e):this._emitter.removeAllListeners(),this)}}addListener(e,t){return this._emitter.addListener(e,t),this}on(e,t){return this.addListener(e,t)}once(e,t){return this._emitter.once(e,t),this}removeListener(e,t){return this._emitter.removeListener(e,t),this}off(e,t){return this.removeListener(e,t)}setMaxListeners(e){return this._emitter.setMaxListeners(e),this}getMaxListeners(){return this._emitter.getMaxListeners()}listeners(e){return this._emitter.listeners(e)}rawListeners(e){return this._emitter.rawListeners(e)}emit(e,...t){return this._emitter.emit(e,...t)}listenerCount(e){return this._emitter.listenerCount(e)}prependListener(e,t){return this._emitter.prependListener(e,t),this}prependOnceListener(e,t){return this._emitter.prependOnceListener(e,t),this}eventNames(){return this._emitter.eventNames()}}var re=r(85878);class ne extends Event{constructor(e,t){super("messageLogged"),this.message=e,this.logLevel=t}}class ie extends Q.EventEmitter{_loggerEvent(e,t){this.emit("messageLogged",new ne(`[CCLibs] ${e}`,t))}log(e){this._loggerEvent(e,re.in.Info)}warn(e){this._loggerEvent(e,re.in.Warn),console.warn(e)}error(e){this._loggerEvent(e,re.in.Err),console.error(e)}info(e){this._loggerEvent(e,re.in.Info)}debug(e){this._loggerEvent(e,re.in.Debug)}}const oe=new ie;class ae{constructor(e){this.data=e}get config(){return this.data.config}get user(){return this.data.user}get ignoreRenditionGrids(){return this.data.ignoreRenditionGrids}get installedApps(){return this.data.installedApps||[]}get processInfo(){return this.data.processInfo}get environment(){return this.data.environment}get renditionSize(){return this.data.config.RENDITION_SIZES}get fullRenditionConfig(){return this.data.config.FULL_RENDITION_CONFIG}}function se(e,t){return new Promise(((r,n)=>{const i=()=>{clearTimeout(o),null==t||t.removeEventListener("abort",i),n(new DOMException("Request aborted","AbortError"))},o=setTimeout((()=>{null==t||t.removeEventListener("abort",i),r()}),e);t&&(t.addEventListener("abort",i),t.aborted&&i())}))}function ce(e,...t){for(var r=0,n=t;r<n.length;r++){const t=n[r];for(const r in t)"object"==typeof t[r]&&e[r]?ce(e[r],t[r]):Object.assign(e,{[r]:t[r]})}return e}function le(e){const t={};return Object.keys(e).forEach((r=>{if("object"==typeof e[r]){const n=le(e[r]);Object.keys(n).forEach((e=>{t[`${r}.${e}`]=n[e]}))}else t[r]=e[r]})),t}function ue(e){let t;return function(r,n,i){const o=i.value;i.value=function(...r){clearTimeout(t),t=setTimeout((()=>o.apply(this,r)),e)}}}function de(e,t){return`CCLibraries_${null==e?void 0:e.id}_${t}`}var pe;function he(e,t){let r;return{future:new Promise(((...n)=>{r=setTimeout(n[e],t)})),cancel:()=>clearTimeout(r)}}!function(e){e[e.RESOLVE=0]="RESOLVE",e[e.REJECT=1]="REJECT"}(pe||(pe={}));const fe=(...e)=>{const t=new AbortController,r=()=>{t.abort(),e.forEach((e=>e.removeEventListener("abort",r)))};return e.some((e=>e.aborted))?r():e.forEach((e=>e.addEventListener("abort",r))),t.signal},me=new class{constructor(){this.signalToReasonMap=new WeakMap}getSignal(e){var t;return null!==(t=e.signal)&&void 0!==t?t:e}reason(e){return this.signalToReasonMap.get(this.getSignal(e))}give(e,t){this.signalToReasonMap.set(this.getSignal(e),t)}};function ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ve(){ve=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ye(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function be(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ye(o,n,i,a,s,"next",e)}function s(e){ye(o,n,i,a,s,"throw",e)}a(void 0)}))}}var _e,Ee=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,(t=e[r](t)).done,t.value)}))}}};function we(e){return xe.apply(this,arguments)}function xe(){return xe=be(ve().mark((function e(t){var r,n,i,o,a,s,c,l,u;return ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=[],e.prev=1,s=!0,c=Ee(t);case 3:return e.next=5,c.next();case 5:if(l=e.sent,r=l.done){e.next=13;break}o=l.value,s=!1;try{u=o,a.push(...u)}finally{s=!0}case 11:e.next=3;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(1),n={error:e.t0};case 18:if(e.prev=18,e.prev=19,s||r||!(i=c.return)){e.next=23;break}return e.next=23,i.call(c);case 23:if(e.prev=23,!n){e.next=26;break}throw n.error;case 26:return e.finish(23);case 27:return e.finish(18);case 28:return e.abrupt("return",a);case 29:case"end":return e.stop()}}),e,null,[[1,15,18,28],[19,,23,27]])}))),xe.apply(this,arguments)}!function(e){e.CONNECTED="connected",e.CONNECTING="connecting",e.LOADING="loading",e.ERROR="error"}(_e||(_e={}));class Le extends te{constructor(e){super(),this._connector=e,this._isConnected=!1,this._failedConnectionAttempt=!1,this._options={},this._config=new ae({config:{},environment:"production"}),this._cachedFetch=function(e){const t=new Map;return(...r)=>{const n=JSON.stringify(r),i=t.get(n);if(i)return i;const o=e.apply(void 0,r);return t.set(n,o),setTimeout((()=>o.finally((()=>t.delete(n))))),o}}(fetch),this._loadElementsAbortController=new AbortController}get config(){return this._config}get environment(){return this._config.environment}get token(){return this._token}get isConnected(){return this._isConnected}get connectionState(){return this._failedConnectionAttempt?_e.ERROR:this.isConnected?_e.CONNECTED:this._connectionPromise?_e.CONNECTING:_e.LOADING}resetAbortController(){this._abortController=new AbortController}get abortController(){return this._abortController}init(e={},t=(()=>{}),r=(()=>{})){return this._options=Object.assign(Object.assign({},this._options),e),this.on("connect",t),this.on("disconnect",r),this._options.skipConnectingOnInit?Promise.resolve():this.connect()}get _isConnectingOrConnected(){return Boolean(this._abortController&&!this._abortController.signal.aborted)}connect(){return this._isConnectingOrConnected||(this.resetAbortController(),this._connectionPromise=this._connect(),this.emit("connecting")),this._connectionPromise}_attemptToConnect(e){var t=this;return be(ve().mark((function r(){return ve().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",new Promise(function(){var r=be(ve().mark((function r(n){var i,o,a,s,c;return ve().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,i=he(pe.REJECT,1e4),o=i.future,a=i.cancel,s=new AbortController,r.next=5,Promise.race([t._connector(s.signal),o]).finally((()=>{s.abort(),a()}));case 5:if(c=r.sent,!(null==e?void 0:e.aborted)){r.next=8;break}return r.abrupt("return",n(!1));case 8:return r.next=10,t._handleConnected(c);case 10:return t._isConnected=!0,r.abrupt("return",n(!0));case 14:return r.prev=14,r.t0=r.catch(0),r.abrupt("return",n(!1));case 17:case"end":return r.stop()}}),r,null,[[0,14]])})));return function(e){return r.apply(this,arguments)}}()).then((e=>(t._failedConnectionAttempt=!e,t._failedConnectionAttempt&&t.emit("failedConnection"),e))));case 1:case"end":return r.stop()}}),r)})))()}_connect(){var e=this;return be(ve().mark((function t(){var r,n,i,o;return ve().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=null===(r=e._abortController)||void 0===r?void 0:r.signal,i=0;case 2:return t.next=4,e._attemptToConnect(n);case 4:if(t.sent){t.next=23;break}if(!(void 0!==e._options.retryCount&&e._options.retryCount<=i)){t.next=8;break}return oe.log(`[DRIVER] Failed to connect to server (Attempt: ${i}). Exceeded max retries.`),t.abrupt("return");case 8:return o=1e3*l[Math.min(i,l.length-1)],oe.log(`[DRIVER] Failed to connect to server (Attempt: ${i}). Will retry in ${o}ms.`),t.prev=10,t.next=13,se(o,n);case 13:t.next=20;break;case 15:if(t.prev=15,t.t0=t.catch(10),!(t.t0 instanceof Error&&"AbortError"===t.t0.name)){t.next=19;break}return t.abrupt("return");case 19:throw t.t0;case 20:i+=1,t.next=2;break;case 23:e.emit("connect",e);case 24:case"end":return t.stop()}}),t,null,[[10,15]])})))()}disconnect(){var e,t;null===(e=this._abortController)||void 0===e||e.abort(),this._isConnected=!1,this._failedConnectionAttempt=!1,null===(t=this._handleDisconnected)||void 0===t||t.call(this),this.emit("disconnect",this)}reconnect(){var e=this;return be(ve().mark((function t(){return ve().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return oe.warn("Process restart. Attempting to reconnect"),e.disconnect(),t.next=4,e.connect();case 4:case"end":return t.stop()}}),t)})))()}sleep(e,t){var r,n;return se(e,t&&(null===(r=this._abortController)||void 0===r?void 0:r.signal)?fe(t,this._abortController.signal):null===(n=this._abortController)||void 0===n?void 0:n.signal)}getAllLibraries(e,t){return we(this.getLibraries(e,t))}getAllElements(e,t,r){return we(this.getElements(e,t,r))}getAllDocumentationElements(e,t,r){return we(this.getDocumentationElements(e,t,r))}getAllRemovedElements(e,t,r){return we(this.getRemovedElements(e,t,r))}getAllGroups(e){return we(this.getGroups(e))}publishBrand(e){throw new J("NOT_IMPLEMENTED","Driver.publishBrand is not implemented.")}unpublishBrand(e){throw new J("NOT_IMPLEMENTED","Driver.unpublishBrand is not implemented.")}setRenditionCacheChangeListener(e){}addWatchedLibrary(e){}removeWatchedLibrary(e){}addLibrariesSyncGroupListener(e){}removeLibrariesSyncGroupListener(){}operationFactory(e,t,r){return new e(t,r)}getOperationTypes(e){return this._operationTypes}constructOperation(e){var t;if(0===e.actions.length)return;if(this._options.readOnly)throw new J("NOT_ALLOWED","Cannot perform write action -- in read-only mode.");const r=null===(t=this.getOperationTypes(e))||void 0===t?void 0:t.find((t=>t.supportsAction(e.actions[0])));if(!r)throw new Error;const n=this.operationFactory(r,this,e);var i,o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return ge(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ge(e,t):void 0}}(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(e.actions);try{for(o.s();!(i=o.n()).done;){const e=i.value;if(!n.addAction(e))break}}catch(e){o.e(e)}finally{o.f()}return n}getLocalSettings(){var e;const t=null!==(e=this._localStorage)&&void 0!==e?e:new Map;return{config:Object.fromEntries(t.entries())}}}class Oe extends te{constructor(){super(...arguments),this._abortController=new AbortController,this._isComplete=!1,this._progress=0}abort(){this.DANGEROUS.removeAllListeners(),this._abortController.abort()}get isComplete(){return 100===this.progress}get progress(){return this._progress}set progress(e){this._progress=Math.min(e,100)}}class Se extends q{static isRequestError(e){return!!e.code}constructor(e,t,r,n){super(`[${e}] ${t}`),this._code=e,this._response=r,this._underlyingError=n}get code(){return this._code}get response(){return this._response}get underlyingError(){return this._underlyingError}set underlyingError(e){this._underlyingError=e}setResponse(e){return this.response?oe.warn("Request Error response reference is already set."):this._response=e,this}}function Te(e,t){return Pe(null==e?void 0:e.status,t).setResponse(e)}function Pe(e,t){switch(e){case 304:return new Se("NOT_MODIFIED","Response has not changed.");case 401:return new Se("UNAUTHORIZED","Token expired or invalid");case 403:return new Se("INVALID_CREDENTIALS","You do not have access to this resource.");case 404:return new Se("ENOENT"===t?t:"NOT_FOUND","Resource not found");case 408:return new Se("REQUEST_TIMEOUT","Server could not respond in a timely manner");case 412:return new Se("PRECONDITION_FAILED","This resource does not match the requisite conditions.");case 422:return new Se("INVALID_DATA","Library is corrupt, unzipping failed.");case 507:return new Se("OUT_OF_SPACE","Hard disk ran out of space.");default:return new Se("GENERIC_ERROR",`Something went wrong: ${e}`)}}function Ie(e){const t=Te(e._additionalInfo.response);return t.underlyingError=e,t}function Ae(){Ae=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ce(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function ke(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ce(o,n,i,a,s,"next",e)}function s(e){Ce(o,n,i,a,s,"throw",e)}a(void 0)}))}}class De{constructor(e,t,r,n,i){this.url=e,this.headers=t,this.status=r,this.statusText=n,this._text=i}get ok(){const e=this.status;return e>=L.OK&&e<L.MULTIPLE_CHOICES}get redirected(){return!1}get type(){return"basic"}json(){var e=this;return ke(Ae().mark((function t(){return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.abrupt("return",JSON.parse(e._text));case 4:throw t.prev=4,t.t0=t.catch(0),new J("INVALID_DATA",`Failed to parse JSON response from '${e.url}' async request.`,void 0,t.t0);case 7:case"end":return t.stop()}}),t,null,[[0,4]])})))()}text(){var e=this;return ke(Ae().mark((function t(){return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._text);case 1:case"end":return t.stop()}}),t)})))()}get trailer(){throw new J("NOT_IMPLEMENTED","AsyncResponse.trailer not implemented.")}clone(){const e=new Headers;return this.headers.forEach(((t,r)=>e.set(r,t))),new De(this.url,e,this.status,this.statusText,this._text)}get bodyUsed(){throw new J("NOT_IMPLEMENTED","AsyncResponse.bodyUsed not implemented.")}get body(){throw new J("NOT_IMPLEMENTED","AsyncResponse.body not implemented.")}arrayBuffer(){return ke(Ae().mark((function e(){return Ae().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new J("NOT_IMPLEMENTED","AsyncResponse.arrayBuffer not implemented.");case 1:case"end":return e.stop()}}),e)})))()}blob(){return ke(Ae().mark((function e(){return Ae().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new J("NOT_IMPLEMENTED","AsyncResponse.blob not implemented.");case 1:case"end":return e.stop()}}),e)})))()}formData(){return ke(Ae().mark((function e(){return Ae().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new J("NOT_IMPLEMENTED","AsyncResponse.formData not implemented.");case 1:case"end":return e.stop()}}),e)})))()}}const Ne=function(){let e=33;const t=["^(["];for(let r=34;r<=127;++r)127!==r&&-1==='()<@,;:"/[]={}'.indexOf(String.fromCharCode(r))||(t.push("\\"+e.toString(8)),e<r-1&&t.push("-\\"+(r-1).toString(8)),e=r+1);return t.push("]+):(.*)$"),new RegExp(t.join(""))}(),Re=/^[^\s]+\s+(\d+)\s*(.*)$/;class Me{constructor(e){this._text=e,this._index=0}readLine(){const e=this._index,t=this._text,r=t.indexOf("\n",e);if(-1===r)return;this._index=r+1;let n=t.slice(e,r);return n.endsWith("\r")&&(n=n.slice(0,-1)),n}get remainderText(){return this._text.slice(this._index)}}function je(e,t){if(!t)throw new J("INVALID_DATA","Invalid async response body.");const r=new Me(t);let n,i;const o=r.readLine();if(o){const e=o.match(Re);if(!e)throw new J("INVALID_DATA","Invalid status line for async response.");if(n=parseInt(e[1],10),!n)throw new J("INVALID_DATA","Could not find status code for async response.");i=e[2]}else n=L.OK,i="";const a=[];let s,c=r.readLine();for(;c;){const e=c.match(Ne);e?(s=e[1],a.push([s,e[2]])):s&&a.push([s,c]),c=r.readLine()}return new De(e,new Headers(a),n,i,r.remainderText)}function Fe(){Fe=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ze(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class Be extends Oe{constructor(e,t){super(),this._driver=e,this._handleResponse(t)}cancel(){this.abort(),this._location&&(this._driver.abortOperation(this._location),this._location=void 0)}get error(){return this._error}_handleResponse(e){var t,r=this;return(t=Fe().mark((function t(){var n,i,o,a,s,c,l,u;return Fe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e;case 3:if(i=t.sent,![L.NO_CONTENT,L.OK].includes(i.status)){t.next=17;break}if(r.progress=100,i.status!==L.OK){t.next=10;break}return t.next=9,i.text().then((e=>(o=e,je("",e)))).then((e=>(s=e.headers,e.json().catch((()=>{}))))).catch((()=>JSON.parse(o))).catch((()=>{oe.error(`Error parsing async response: ${i}`)}));case 9:a=t.sent;case 10:if(!(null==a?void 0:a.exception_code)){t.next=14;break}throw new Se(a.status,a.message,i,a);case 14:return r.emit("change",!0,a,s),r.DANGEROUS.removeAllListeners(),t.abrupt("return");case 17:if(i.status!==L.ACCEPTED){t.next=36;break}return c={},t.prev=19,t.next=22,i.json();case 22:c=t.sent,t.next=27;break;case 25:t.prev=25,t.t0=t.catch(19);case 27:if(c.progress&&(r.progress=c.progress,r.emit("change")),(l=null!==(n=i.headers.get("location"))&&void 0!==n?n:c.href)&&(r._location=l),u=i.headers.get("retry-after")?parseInt(i.headers.get("retry-after"),10):1,r._location){t.next=33;break}throw new Se("MALFORMED_RESPONSE","Location header is missing from ops monitor response");case 33:return t.next=35,r._driver.sleep(1e3*u,r._abortController.signal);case 35:return t.abrupt("return",r._handleResponse(r._driver.fetch(r._location,{signal:r._abortController.signal})));case 36:throw new Se("UNEXPECTED_RESPONSE",`Unexpected response from ops monitor: ${i.status}`);case 39:t.prev=39,t.t1=t.catch(0),r._error=t.t1,r.progress=100,r.emit("change",!0),r.DANGEROUS.removeAllListeners();case 45:case"end":return t.stop()}}),t,null,[[0,39],[19,25]])})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){Ze(o,n,i,a,s,"next",e)}function s(e){Ze(o,n,i,a,s,"throw",e)}a(void 0)}))})()}}const Ge={staging:{hostname:"ccx-melville-stage.adobe.io",invitation_hostname:"invitations-stage.adobe.io",teams_hostname:"ccprojects-stage.adobe.io",platform_hostname:"platform-cs-stage.adobe.io"},production:{hostname:"libraries.adobe.io",invitation_hostname:"invitations.adobe.io",teams_hostname:"ccprojects.adobe.io",platform_hostname:"platform-cs.adobe.io"}};function Ue(){Ue=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function He(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function ze(e,t,r){const n=r.value;r.value=function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){He(o,n,i,a,s,"next",e)}function s(e){He(o,n,i,a,s,"throw",e)}a(void 0)}))}}(Ue().mark((function e(...t){return Ue().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this._actions.length){e.next=2;break}throw new J("NOT_SUPPORTED","Operation must have at least one action to be executed.",this._library.id);case 2:return oe.log(`[OPERATION] Performing ${this._actions.length} actions.`),e.abrupt("return",n.apply(this,t));case 4:case"end":return e.stop()}}),e,this)})))}class Ve{static supportsAction(e){return this.prototype.supportsAction(e)}constructor(e,t){this._actions=[],this._driver=e,this._library=t}addAction(e){return!!this.supportsAction(e)&&(this._actions.push(e),!0)}get actions(){return this._actions}}function Ye(){Ye=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function We(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class Ke extends Ve{constructor(){super(...arguments),this._actionMappers={}}get action(){return this._actions[0]}execute(){var e,t=this;return(e=Ye().mark((function e(){var r;return Ye().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._actionMappers[t.action.name||""](t.action);case 2:return r=e.sent,e.abrupt("return",{actions:[r]});case 4:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){We(o,n,i,a,s,"next",e)}function s(e){We(o,n,i,a,s,"throw",e)}a(void 0)}))})()}addAction(e){return 1!==this._actions.length&&super.addAction(e)}}!function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);o>3&&a&&Object.defineProperty(t,r,a)}([ze],Ke.prototype,"execute",null);var $e=r(20859),qe=r.n($e);const Xe="platform-cs",Je=["https://platform-cs.adobe.io/index","https://platform-cs-stage.adobe.io/index"],Qe={Priority:"u=1"};function et(e){const t=e.split(".");if(3===t.length)try{return JSON.parse(atob(t[1]))}catch(e){return}}function tt(e){const t=et(e);if(t)return{user:{id:t.user_id,clientId:t.client_id}}}function rt(e){const t=et(e);if(t){const e=Date.now()-parseInt(t.created_at,10);return Math.max(parseInt(t.expires_in,10)-e,0)}}function nt(e){let t;try{t=new URL(e)}catch(t){return{url:e,headers:{}}}return t.hostname.includes(Xe)?(Je.includes(e)&&(t.hostname=t.hostname.replace(Xe,"platform-cs-edge")),{url:t.href,headers:Object.assign({},Qe)}):{url:e,headers:{}}}function it(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ot(e,t=200){const r=e.data.renditionUrl,n=void 0===r?{}:r,i="string"==typeof n?{template:n}:n,o=i.template,a=i.substitutions,s=void 0===a?{}:a;if(o)return nt(qe()(o).fill(Object.assign(Object.assign({},s),{size:`${t}`,type:"image/png"}))).url}function at(e){let t;switch(e.type){case"application/vnd.adobe.element.color+dcx":t=e=>{const t=e.representations.map((e=>e.getValue("color","data"))).find((e=>e&&"RGB"===e.mode));if(t)return{id:e.id,type:"application/vnd.adobe.element.color+dcx",rendition:{swatches:[[{alpha:t.alpha,mode:t.mode,type:t.type,value:t.value}]]}}};break;case"application/vnd.adobe.element.colortheme+dcx":t=e=>{const t=e.getPrimaryRepresentation();return t&&{id:e.id,type:"application/vnd.adobe.element.colortheme+dcx",rendition:t.getValue("colortheme","data")}};break;case"application/vnd.adobe.element.gradient+dcx":t=e=>{const t=e.getPrimaryRepresentation();return t&&{id:e.id,type:"application/vnd.adobe.element.gradient+dcx",rendition:t.getValue("gradient","data")}};break;default:t=e=>{let t=ot(e);if(t||(t=e.getThumbnailURL(202)),t)return{id:e.id,type:"href",rendition:t}}}return t(e)}function st(e){if(0===e.elements.length)return;const t=[...e.elements].sort(((e,t)=>t.modified-e.modified)),r=[...e.elements].sort(((e,t)=>e.created-t.created));let n=r.find((e=>{if("application/vnd.adobe.element.image+dcx"!==e.type)return;const t=at(e);return t&&"href"===t.type}));const i={gridGenerationEtag:e.etag};n&&(i.main=at(n));for(let e=0;e<r.length&&!i.main;e++)i.main=at(r[e])||void 0,n=i.main&&r[e];i.tiles=[];for(let e=0;e<t.length&&i.tiles.length<3;e++){if(t[e]===n)continue;const r=at(t[e]);r&&i.tiles.push(r)}return i}function ct(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return lt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ut;function dt(e,t=e.manifest.data){var r,n,i,o,a,s,c;const l=null===(r=e.manifest)||void 0===r?void 0:r.etag,u=pt(e,null===(n=t.children)||void 0===n?void 0:n.find((e=>"elements"===e.name))),d=pt(e,null===(i=t.children)||void 0===i?void 0:i.find((e=>"removed_elements"===e.name))),p=pt(e,null===(o=t.children)||void 0===o?void 0:o.find((e=>"documentation_elements"===e.name))),h=null===(a=t.children)||void 0===a?void 0:a.find((e=>"groups"===e.name)),f=(null===(s=null==h?void 0:h.children)||void 0===s?void 0:s.map((e=>({id:e.id,name:e.name,classifier:e["library#classifier"],order:e["library#order"],parentId:e["library#parentId"],sourceRef:e["library#sourceRef"],customData:mt(e)}))))||[],m={id:t.id,name:t.name,etag:l,localizedNames:t["library#localizedName"],toolkitId:t["toolkit#id"],documentId:t["library#documentId"],documentType:t["library#documentType"],createdBy:e.createdBy,createdDate:e.created.valueOf(),modifiedDate:e.modified.valueOf(),version:t.components&&t.components[0].version,roles:t["library#roles"],description:t["library#description"],details:{elementCount:u.length,documentationElementCount:p.length,removedElementCount:d.length},groups:f,elements:u,documentationElements:p,removedElements:d,customData:mt(t),isLibraryLoaded:!0,areElementsLoaded:!0,appMetadata:null===(c=e.appMetadata)||void 0===c?void 0:c.data};return t.components&&t.components[0].version&&(m.version=t.components[0].version),m}function pt(e,t){var r;return t&&(null===(r=t.children)||void 0===r?void 0:r.map((t=>{const r={id:t.id,name:t.name,isAutoNamed:t["library#autoName"],type:t.type,tags:t.tags||[],dependencyIds:t["library#dependencies"]||[],localizedNames:t["library#localizedName"],createdDate:t["library#created"],createdLocally:!1,createdContext:t["library#createdData"]||{},modifiedDate:t["library#modified"],modifiedLocally:!1,description:t["library#description"],descriptionModifiedLocally:!1,removedLocally:!1,representations:ft(e,t),groups:t["library#groups"]?Object.entries(t["library#groups"]).map((([e,{order:t}])=>{const r=ct(e.split("#"),2),n=r[0];return{id:r[1],classifier:n,order:t}})):[],sourceRef:t["library#sourceRef"],roles:t["library#roles"],customData:mt(t)};return function(e,t){var r;const n=e.links[ut.RENDITION],i=null===(r=null==n?void 0:n[0])||void 0===r?void 0:r.href,o=function(e=[]){let t,r=0;var n,i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return it(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?it(e,t):void 0}}(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(e);try{for(i.s();!(n=i.n()).done;){const e=n.value,i=e.isFullSize?Number.POSITIVE_INFINITY:Math.max(e.height||0,e.width||0);(!t||e.isPreferredThumbnail&&!t.isPreferredThumbnail||"primary"===e.relationship&&"primary"!==t.relationship||"rendition"===e.relationship&&!["primary","rendition"].includes(null==t?void 0:t.relationship)||"rendition"===e.relationship&&"rendition"===t.relationship&&i>r)&&c(e.type)&&(t=e,r=i)}}catch(e){i.e(e)}finally{i.f()}return t}(t.representations);o&&(t.renditionUrl={template:i,substitutions:{fragment:`id=${o.id}`,size:200}})}(e,r),r})))||[]}function ht(e,t){var r;const n=e.links[ut.COMPONENT],i=null===(r=null==n?void 0:n[0])||void 0===r?void 0:r.href,o=i&&qe()(i);return null==o?void 0:o.fill({revision:t.version,component_id:t.id})}function ft(e,t){var r,n;return[...(null===(r=t.components)||void 0===r?void 0:r.map((t=>({id:t.id,type:t.type,relationship:t.rel,url:ht(e,t),isFullSize:t["library#isFullSize"]||t["library#isfullSize"],isExternalLink:!1,width:t.width,height:t.height,contentLength:t.length,isPreferredThumbnail:t["library#isPreferredThumbnail"],customData:mt(t)}))))||[],...(null===(n=t.children)||void 0===n?void 0:n.map((e=>({id:e.id,type:e.type,linktype:e["library#linktype"],relationship:e["library#rel"],isFullSize:!1,isExternalLink:!1,customData:mt(e)}))))||[]]}function mt(e){const t={};for(var r=0,n=Object.entries(e);r<n.length;r++){const e=ct(n[r],2),i=e[0],o=e[1],a=ct(i.split("#"),2),s=a[0],c=a[1];"library"!==s&&c&&(t[i]=o)}return t}function gt(e,t){var r;const n=null===(r=t.links)||void 0===r?void 0:r[ut.MANIFEST].href,i=n?qe()(n):void 0;return{id:t.versionId,assetId:e,createdDate:t.created.getTime(),createdBy:t.createdBy,manifestUrl:null==i?void 0:i.fill({})}}function vt(e,t){return{id:t.collaboratorID,assetId:e,imsUserId:t.imsUserId,email:t.email,name:t.name,role:t.role,type:t.type,inheritances:t.inheritances,isDirect:t.isDirect,hasContributorRole:t.hasContributorRole,hasName:t.hasName,invited:t.invited,isAdmin:t.isAdmin}}function yt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return bt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}!function(e){e.DOWNLOAD="http://ns.adobe.com/adobecloud/rel/download",e.MANIFEST="http://ns.adobe.com/adobecloud/rel/manifest",e.APPLICATION="http://ns.adobe.com/adobecloud/rel/metadata/application",e.EMBEDDED="http://ns.adobe.com/adobecloud/rel/metadata/embedded",e.REPOSITORY="http://ns.adobe.com/adobecloud/rel/metadata/repository",e.PRIMARY="http://ns.adobe.com/adobecloud/rel/primary",e.RENDITION="http://ns.adobe.com/adobecloud/rel/rendition",e.COMPONENT="http://ns.adobe.com/adobecloud/rel/component",e.RESOLVE="http://ns.adobe.com/adobecloud/rel/resolve/id",e.BLOCK_INIT="http://ns.adobe.com/adobecloud/rel/block/init",e.BLOCK_TRANSFER="http://ns.adobe.com/adobecloud/rel/block/transfer",e.BLOCK_FINALIZE="http://ns.adobe.com/adobecloud/rel/block/finalize"}(ut||(ut={}));const _t=/^[A-Z0-9]{30}$/,Et=["color#data","colortheme#data","channel#data","imageguideline#data","gradient#data","audio#data","font#data","characterstyle#data","paragraphstyle#data","text#data","3d#data","video#data","pattern#data","candy#data","graphic#data","clio#data","firefly#cme"];function wt(e){return(null==e?void 0:e.id)&&(null==e?void 0:e.storage_href)&&(null==e?void 0:e.asset_id)&&(null==e?void 0:e.type)&&(null==e?void 0:e.content_length)&&(null==e?void 0:e.etag)&&(null==e?void 0:e.version)}function xt(e){var t,r;const n={id:null!==(t=e.elementId)&&void 0!==t?t:(0,S.v4)(),name:"temp rendition element",type:e.type,createdDate:Date.now(),modifiedDate:Date.now(),representations:[{id:(0,S.v4)(),type:e.rendition_mimetype,relationship:"primary",isFullSize:!1,isExternalLink:!1,isPreferredThumbnail:!0}],groups:[]};switch(e.type){case"application/vnd.adobe.gradient.noise+json":case"href":n.type="application/vnd.adobe.element.image+dcx",n.renditionUrl=e.rendition,n.representations[0].type="image/png",n.representations[0].url=e.rendition;break;case"application/vnd.adobe.color+json":case"application/vnd.adobe.element.color+dcx":n.representations[0].customData={"color#data":null===(r=e.rendition.swatches[0])||void 0===r?void 0:r.find((e=>"RGB"===e.mode))};break;case"application/vnd.adobe.colortheme+json":case"application/vnd.adobe.element.colortheme+dcx":n.representations[0].type="application/vnd.adobe.colortheme+json",n.representations[0].customData={"colortheme#data":e.rendition};break;case"application/vnd.adobe.gradient+json":case"application/vnd.adobe.element.gradient+dcx":n.representations[0].customData={"gradient#data":e.rendition};break;default:return}return n}function Lt(e){return"public"===e.ownership&&_t.test(e.id)}function Ot(e,t=!1,r=!1){var n,i,o,a;const s=e.manifest_etag||'""',c=!t&&(e=>{const t=e.asset_acl;if(!t)return;const r=t["http://ns.adobe.com/adobecloud/rel/primary"];if(r)return r.includes("write");const n=t["*"];return!!n&&n.includes("write")})(e),l=Object.assign({id:"public"===e.ownership&&(null===(n=e.bookmark)||void 0===n?void 0:n.id)||e.id,name:e.name,ownership:"team"===e.ownership?"incoming":e.ownership,etag:s,version:e.version,default:e.default,localizedNames:e.localized_names,toolkitId:e.toolkit_id,documentId:e.document_id,documentType:e.document_type,createdDate:e.created_date,modifiedDate:e.modified_date,createdBy:e.created_by,modifiedBy:e.modified_by,groups:null===(i=e.groups)||void 0===i?void 0:i.map(Tt),details:{elementCount:e.elements_count,documentationElementCount:0,removedElementCount:e.removed_elements_count},appMetadata:e.application_metadata,collaboration:e.collaboration,assetId:e.library_urn,isWritable:c,isParentWritable:!0,removeType:c?"discard":"none",deletable:c,roles:e.roles,description:e.description,owner:null===(o=e.storage_assignee)||void 0===o?void 0:o.id,ownerType:e.ownership?"team"===e.ownership?"org":"user":void 0,customData:mt(e),isLibraryLoaded:!0,publicLinkId:Lt(e)?e.id:void 0,bookmark:e.bookmark,thumbnail:e.thumbnail},r?function(e,t){var r;if(!e||!e.main)return{};const n=xt(e.main),i=(null===(r=e.tiles)||void 0===r?void 0:r.filter(Boolean).map(xt))||[];return{renditionGrid:{main:n?{id:n.id}:void 0,tiles:i.map((e=>e?{id:e.id}:void 0)).filter(Boolean),gridGenerationEtag:t},elements:[n,...i].filter(Boolean)}}(e.rendition_grid,s):{});return(e.workspace_urn||e.parent_assetId)&&(l.team={id:null!==(a=e.workspace_urn)&&void 0!==a?a:e.parent_assetId}),l}function St(e){var t,r,n,i,o;return{id:e.id,name:e.name,isAutoNamed:e.is_auto_named,type:e.type,tags:e.tags||[],dependencyIds:e.dependency_ids||[],localizedNames:e.localized_names||{},createdDate:e.created_date,createdLocally:!1,createdContext:(null===(t=e.details)||void 0===t?void 0:t.created)||{},modifiedDate:e.modified_date,modifiedLocally:!1,description:null===(r=e.details)||void 0===r?void 0:r.description,descriptionModifiedLocally:!1,removedLocally:!1,representations:(null===(n=e.representations)||void 0===n?void 0:n.map(It))||[],renditionUrl:"href"===(null===(i=e.thumbnail)||void 0===i?void 0:i.type)&&e.thumbnail.rendition,groups:(null===(o=e.groups)||void 0===o?void 0:o.map(Pt))||[],sourceRef:e.sourceRef,roles:e.roles,customData:mt(e)}}function Tt(e){return{id:e.id,classifier:e.classifier,name:e.name,order:e.order,parentId:e.parent_id,createdDate:e.created_date,modifiedDate:e.modified_date,sourceRef:e.sourceRef}}function Pt(e){return{id:e.id,classifier:e.classifier,order:e.order}}function It(e){var t,r,n,i;return{id:e.id,type:e.type,linktype:e.linktype,relationship:e.relationship,isFullSize:e.is_full_size,isExternalLink:e.is_external_link,height:e.height,width:e.width,contentLength:e.content_length,url:null===(r=null===(t=e._links)||void 0===t?void 0:t["http://ns.adobe.com/melville/rel/primary"])||void 0===r?void 0:r.href,blockDownloadUrl:null===(i=null===(n=e._links)||void 0===n?void 0:n["http://ns.adobe.com/melville/rel/download"])||void 0===i?void 0:i.href,customData:{"channel#data":e["channel#data"],"imageguideline#data":e["imageguideline#data"],"color#data":e["color#data"],"characterstyle#data":e["characterstyle#data"],"paragraphstyle#data":e["paragraphstyle#data"],"gradient#data":e["gradient#data"],"colortheme#data":e["colortheme#data"],"font#data":e["font#data"],"adobestock#trackingdata":e["adobestock#trackingdata"],"firefly#cme":e["firefly#cme"]}}}function At(e){return{name:e.name,id:e.id,isWritable:"editor"===e.collaboratorRole,owner:e.repositoryOwner,ownerName:e.repositoryName}}function Ct(e){var t;return Object.assign({id:e.id,name:e.name,roles:e.roles,description:e.description,tags:e.tags,sourceRef:e.sourceRef,group:null===(t=e.groups)||void 0===t?void 0:t[0]},Nt(e.customData))}function kt(e){return{id:e.id,libraryAssetId:e.parent_id,name:e.name,type:e.type,createdDate:e.created_date,modifiedDate:e.modified_date,renditionUrl:e.thumbnail.rendition,tags:e.tags,roles:e.roles,representations:e.representations.map(It),groups:(e.groups||[]).map(Pt)}}function Dt(e){var t,r,n,i,o;const a=wt(e.source)?e.source:void 0;return Object.assign({id:null!==(t=null==a?void 0:a.id)&&void 0!==t?t:e.id,type:null!==(r=null==a?void 0:a.type)&&void 0!==r?r:e.type,relationship:e.relationship,path:e.path,is_full_size:e.isFullSize,is_external_link:e.isExternalLink,width:null!==(n=null==a?void 0:a.width)&&void 0!==n?n:e.width,height:null!==(i=null==a?void 0:a.height)&&void 0!==i?i:e.height,content_length:null!==(o=null==a?void 0:a.content_length)&&void 0!==o?o:e.contentLength,is_preferred_thumbnail:e.isPreferredThumbnail,name:null==a?void 0:a.name,storage_href:null==a?void 0:a.storage_href,asset_id:null==a?void 0:a.asset_id,etag:null==a?void 0:a.etag,md5:null==a?void 0:a.md5,version:null==a?void 0:a.version},Nt(e.customData,Et))}function Nt(e={},t){const r={};for(var n=0,i=Object.entries(e);n<i.length;n++){const e=yt(i[n],2),o=e[0],a=e[1],s=o;!(null==t?void 0:t.includes(s))&&t||(r[s]=a)}return r}function Rt(e,t){var r;return Object.assign(Object.assign({},Ct(e)),{client:t,type:e.type,representations:null===(r=e.representations)||void 0===r?void 0:r.map(Dt)})}function Mt(e){return Symbol.for(e)}var jt=new function e(t){var r=this;r._currentContext=t?new Map(t):new Map,r.getValue=function(e){return r._currentContext.get(e)},r.setValue=function(t,n){var i=new e(r._currentContext);return i._currentContext.set(t,n),i},r.deleteValue=function(t){var n=new e(r._currentContext);return n._currentContext.delete(t),n}},Ft=function(){function e(){}return e.prototype.active=function(){return jt},e.prototype.with=function(e,t,r){for(var n=[],i=3;i<arguments.length;i++)n[i-3]=arguments[i];return t.call.apply(t,function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}([r],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}(n),!1))},e.prototype.bind=function(e,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),Zt="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof r.g?r.g:{},Bt="1.3.0",Gt=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,Ut=function(e){var t=new Set([e]),r=new Set,n=e.match(Gt);if(!n)return function(){return!1};var i=+n[1],o=+n[2],a=+n[3];if(null!=n[4])return function(t){return t===e};function s(e){return r.add(e),!1}function c(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(Gt);if(!n)return s(e);var l=+n[1],u=+n[2],d=+n[3];return null!=n[4]||i!==l?s(e):0===i?o===u&&a<=d?c(e):s(e):o<=u?c(e):s(e)}}(Bt),Ht=Bt.split(".")[0],zt=Symbol.for("opentelemetry.js.api."+Ht),Vt=Zt;function Yt(e,t,r,n){var i;void 0===n&&(n=!1);var o=Vt[zt]=null!==(i=Vt[zt])&&void 0!==i?i:{version:Bt};if(!n&&o[e]){var a=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(a.stack||a.message),!1}return o.version!==Bt?(a=new Error("@opentelemetry/api: All API registration versions must match"),r.error(a.stack||a.message),!1):(o[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v1.3.0."),!0)}function Wt(e){var t,r,n=null===(t=Vt[zt])||void 0===t?void 0:t.version;if(n&&Ut(n))return null===(r=Vt[zt])||void 0===r?void 0:r[e]}function Kt(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v1.3.0.");var r=Vt[zt];r&&delete r[e]}var $t,qt=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Xt("debug",this._namespace,e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Xt("error",this._namespace,e)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Xt("info",this._namespace,e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Xt("warn",this._namespace,e)},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Xt("verbose",this._namespace,e)},e}();function Xt(e,t,r){var n=Wt("diag");if(n)return r.unshift(t),n[e].apply(n,function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}([],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}(r),!1))}!function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"}($t||($t={}));var Jt,Qt=function(){function e(){function e(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=Wt("diag");if(n)return n[e].apply(n,function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}([],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}(t),!1))}}var t=this;t.setLogger=function(e,r){var n,i,o;if(void 0===r&&(r={logLevel:$t.INFO}),e===t){var a=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(n=a.stack)&&void 0!==n?n:a.message),!1}"number"==typeof r&&(r={logLevel:r});var s=Wt("diag"),c=function(e,t){function r(r,n){var i=t[r];return"function"==typeof i&&e>=n?i.bind(t):function(){}}return e<$t.NONE?e=$t.NONE:e>$t.ALL&&(e=$t.ALL),t=t||{},{error:r("error",$t.ERROR),warn:r("warn",$t.WARN),info:r("info",$t.INFO),debug:r("debug",$t.DEBUG),verbose:r("verbose",$t.VERBOSE)}}(null!==(i=r.logLevel)&&void 0!==i?i:$t.INFO,e);if(s&&!r.suppressOverrideMessage){var l=null!==(o=(new Error).stack)&&void 0!==o?o:"<failed to generate stacktrace>";s.warn("Current logger will be overwritten from "+l),c.warn("Current logger will overwrite one already registered from "+l)}return Yt("diag",c,t,!0)},t.disable=function(){Kt("diag",t)},t.createComponentLogger=function(e){return new qt(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),er="context",tr=new Ft,rr=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(e){return Yt(er,e,Qt.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,t,r){for(var n,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return(n=this._getContextManager()).with.apply(n,function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}([e,t,r],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}(i),!1))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return Wt(er)||tr},e.prototype.disable=function(){this._getContextManager().disable(),Kt(er,Qt.instance())},e}(),nr=rr.getInstance(),ir=Qt.instance(),or=(Jt=function(e,t){return Jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Jt(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Jt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),ar=function(){function e(){}return e.prototype.createHistogram=function(e,t){return vr},e.prototype.createCounter=function(e,t){return gr},e.prototype.createUpDownCounter=function(e,t){return yr},e.prototype.createObservableGauge=function(e,t){return _r},e.prototype.createObservableCounter=function(e,t){return br},e.prototype.createObservableUpDownCounter=function(e,t){return Er},e.prototype.addBatchObservableCallback=function(e,t){},e.prototype.removeBatchObservableCallback=function(e){},e}(),sr=function(){},cr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return or(t,e),t.prototype.add=function(e,t){},t}(sr),lr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return or(t,e),t.prototype.add=function(e,t){},t}(sr),ur=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return or(t,e),t.prototype.record=function(e,t){},t}(sr),dr=function(){function e(){}return e.prototype.addCallback=function(e){},e.prototype.removeCallback=function(e){},e}(),pr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return or(t,e),t}(dr),hr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return or(t,e),t}(dr),fr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return or(t,e),t}(dr),mr=new ar,gr=new cr,vr=new ur,yr=new lr,br=new pr,_r=new hr,Er=new fr,wr=new(function(){function e(){}return e.prototype.getMeter=function(e,t,r){return mr},e}()),xr="metrics",Lr=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(e){return Yt(xr,e,Qt.instance())},e.prototype.getMeterProvider=function(){return Wt(xr)||wr},e.prototype.getMeter=function(e,t,r){return this.getMeterProvider().getMeter(e,t,r)},e.prototype.disable=function(){Kt(xr,Qt.instance())},e}().getInstance(),Or=function(){function e(){}return e.prototype.inject=function(e,t){},e.prototype.extract=function(e,t){return e},e.prototype.fields=function(){return[]},e}(),Sr={get:function(e,t){if(null!=e)return e[t]},keys:function(e){return null==e?[]:Object.keys(e)}},Tr={set:function(e,t,r){null!=e&&(e[t]=r)}},Pr=Mt("OpenTelemetry Baggage Key");function Ir(e){return e.getValue(Pr)||void 0}function Ar(e,t){return e.setValue(Pr,t)}function Cr(e){return e.deleteValue(Pr)}var kr=function(){function e(e){this._entries=e?new Map(e):new Map}return e.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map((function(e){var t=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}(e,2);return[t[0],t[1]]}))},e.prototype.setEntry=function(t,r){var n=new e(this._entries);return n._entries.set(t,r),n},e.prototype.removeEntry=function(t){var r=new e(this._entries);return r._entries.delete(t),r},e.prototype.removeEntries=function(){for(var t,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=new e(this._entries);try{for(var a=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),s=a.next();!s.done;s=a.next()){var c=s.value;o._entries.delete(c)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return o},e.prototype.clear=function(){return new e},e}();function Dr(e){return void 0===e&&(e={}),new kr(new Map(Object.entries(e)))}Qt.instance();var Nr,Rr="propagation",Mr=new Or,jr=function(){function e(){this.createBaggage=Dr,this.getBaggage=Ir,this.setBaggage=Ar,this.deleteBaggage=Cr}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(e){return Yt(Rr,e,Qt.instance())},e.prototype.inject=function(e,t,r){return void 0===r&&(r=Tr),this._getGlobalPropagator().inject(e,t,r)},e.prototype.extract=function(e,t,r){return void 0===r&&(r=Sr),this._getGlobalPropagator().extract(e,t,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){Kt(Rr,Qt.instance())},e.prototype._getGlobalPropagator=function(){return Wt(Rr)||Mr},e}(),Fr=jr.getInstance();!function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"}(Nr||(Nr={}));var Zr="0000000000000000",Br="00000000000000000000000000000000",Gr={traceId:Br,spanId:Zr,traceFlags:Nr.NONE},Ur=function(){function e(e){void 0===e&&(e=Gr),this._spanContext=e}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return this},e.prototype.setAttributes=function(e){return this},e.prototype.addEvent=function(e,t){return this},e.prototype.setStatus=function(e){return this},e.prototype.updateName=function(e){return this},e.prototype.end=function(e){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(e,t){},e}(),Hr=Mt("OpenTelemetry Context Key SPAN");function zr(e){return e.getValue(Hr)||void 0}function Vr(){return zr(rr.getInstance().active())}function Yr(e,t){return e.setValue(Hr,t)}function Wr(e){return e.deleteValue(Hr)}function Kr(e,t){return Yr(e,new Ur(t))}function $r(e){var t;return null===(t=zr(e))||void 0===t?void 0:t.spanContext()}var qr=/^([0-9a-f]{32})$/i,Xr=/^[0-9a-f]{16}$/i;function Jr(e){return r=e.traceId,qr.test(r)&&r!==Br&&(t=e.spanId,Xr.test(t)&&t!==Zr);var t,r}function Qr(e){return new Ur(e)}var en=rr.getInstance(),tn=function(){function e(){}return e.prototype.startSpan=function(e,t,r){if(Boolean(null==t?void 0:t.root))return new Ur;var n,i=r&&$r(r);return"object"==typeof(n=i)&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&Jr(i)?new Ur(i):new Ur},e.prototype.startActiveSpan=function(e,t,r,n){var i,o,a;if(!(arguments.length<2)){2===arguments.length?a=t:3===arguments.length?(i=t,a=r):(i=t,o=r,a=n);var s=null!=o?o:en.active(),c=this.startSpan(e,i,s),l=Yr(s,c);return en.with(l,a,void 0,c)}},e}(),rn=new tn,nn=function(){function e(e,t,r,n){this._provider=e,this.name=t,this.version=r,this.options=n}return e.prototype.startSpan=function(e,t,r){return this._getTracer().startSpan(e,t,r)},e.prototype.startActiveSpan=function(e,t,r,n){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):rn},e}(),on=new(function(){function e(){}return e.prototype.getTracer=function(e,t,r){return new tn},e}()),an=function(){function e(){}return e.prototype.getTracer=function(e,t,r){var n;return null!==(n=this.getDelegateTracer(e,t,r))&&void 0!==n?n:new nn(this,e,t,r)},e.prototype.getDelegate=function(){var e;return null!==(e=this._delegate)&&void 0!==e?e:on},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t,r){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(e,t,r)},e}(),sn="trace";const cn={context:nr,diag:ir,metrics:Lr,propagation:Fr,trace:function(){function e(){this._proxyTracerProvider=new an,this.wrapSpanContext=Qr,this.isSpanContextValid=Jr,this.deleteSpan=Wr,this.getSpan=zr,this.getActiveSpan=Vr,this.getSpanContext=$r,this.setSpan=Yr,this.setSpanContext=Kr}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(e){var t=Yt(sn,this._proxyTracerProvider,Qt.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},e.prototype.getTracerProvider=function(){return Wt(sn)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){Kt(sn,Qt.instance()),this._proxyTracerProvider=new an},e}().getInstance()};function ln(e){return(t,r,n)=>{const i=n.value;return n.value=function(...t){const r=cn.trace.getTracer("cclibraries-jsapi"),n=cn.context.active();return r.startActiveSpan(e,{},n,(e=>{const r=i.apply(this,t);return Promise.resolve(r).then((()=>{e.end()})).catch((()=>{e.end()})),r}))},n}}function un(e,t){var r;null===(r=cn.trace.getActiveSpan())||void 0===r||r.setAttribute(e,t||"")}function dn(){dn=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function pn(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function hn(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){pn(o,n,i,a,s,"next",e)}function s(e){pn(o,n,i,a,s,"throw",e)}a(void 0)}))}}const fn={read:"team_view",all:"team_edit"},mn=["createLibrary","removeLibrary","unfollowLibrary","leaveLibrary","permanentlyDeleteLibrary","copyLibrary","moveLibrary"];class gn extends Ke{constructor(){var e,t,r,n,i,o;super(...arguments),e=this,this._actionMappers={createLibrary:e=>this._createLibraryActionMap(e),copyLibrary:e=>this._createLibraryActionMap(e),removeLibrary:(o=hn(dn().mark((function t(r){return dn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._removeLibrary();case 2:return t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)}))),function(e){return o.apply(this,arguments)}),permanentlyDeleteLibrary:(i=hn(dn().mark((function t(r){return dn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._permanentlyDeleteLibrary();case 2:return t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)}))),function(e){return i.apply(this,arguments)}),unfollowLibrary:(n=hn(dn().mark((function t(r){return dn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._unfollowLibrary();case 2:return t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)}))),function(e){return n.apply(this,arguments)}),leaveLibrary:(r=hn(dn().mark((function t(r){return dn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._leaveLibrary();case 2:return t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)}))),function(e){return r.apply(this,arguments)}),moveLibrary:(t=hn(dn().mark((function t(r){var n;return dn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._moveLibrary();case 2:return n=t.sent,t.abrupt("return",Object.assign(Object.assign({},r),{data:n,originalAction:r}));case 4:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})},this._createLibraryActionMap=function(){var t=hn(dn().mark((function t(r){var n;return dn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._createLibrary(r);case 2:return n=t.sent,t.abrupt("return",Object.assign(Object.assign({},r),{type:"update",data:n,originalAction:r}));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}supportsAction(e){return mn.includes(e.name)}_createLibrary(e){return new Promise(((t,r)=>{var n,i;const o=null!==(n=e.data)&&void 0!==n?n:{},a=o.name,s=o.team,c=o.roles,l=o.documentExtractionData,u=null!==(i=e.flags)&&void 0!==i?i:{},d=u.permissionInheritance,p=u.source,h=u.includeAppMetadata,f={name:a,roles:c,"brand:extractedFrom":(null==l?void 0:l.length)>0?(m=l,m.map((e=>{const t=e.id,r=e.version,n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(e,["id","version"]);return Object.assign(Object.assign({},n),{"repo:assetId":t,"repo:version":r})}))):void 0,source:null==p?void 0:p.assetId,parent_assetId:null==s?void 0:s.id,access:fn[d]||void 0,includeResources:h?[{relType:"http://ns.adobe.com/adobecloud/rel/metadata/application"},{relType:"http://ns.adobe.com/adobecloud/rel/primary"}]:void 0};var m;const g=this._driver.fetch("/api/v1/libraries?invocation_mode=async",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(f)}),v=new Be(this._driver,g);v.on("change",((e,n)=>{if(e)if(v.error)r(v.error);else if(n){const e=Ot(n);e.isWritable=!0,e.isParentWritable=!0,t(e)}else t(void 0)}))}))}_removeLibrary(){return this._driver.fetch(`/api/v1/libraries/${this._library.assetId}`,{method:"DELETE"})}_permanentlyDeleteLibrary(){return this._driver.fetch(`/api/v1/libraries/${this._library.assetId}?permanent=true`,{method:"DELETE"})}_unfollowLibrary(){var e;return this._driver.fetch(`/api/v1/libraries/bookmarks/${null===(e=this._library.bookmark)||void 0===e?void 0:e.id}`,{method:"DELETE"})}_leaveLibrary(){var e=this;return hn(dn().mark((function t(){var r,n,i,o,a;return dn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=null===(r=e._driver.config.user)||void 0===r?void 0:r.id,t.next=3,e._driver.fetch(`https://${e._driver.driverConfig.invitation_hostname}/api/v4/share/${e._library.assetId}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({collaborators:[{action:"remove",id:i}]})});case 3:return o=t.sent,t.next=6,o.json();case 6:if(a=t.sent,null===(n=a.collaborators)||void 0===n?void 0:n.find((e=>e.statusCode>300))){t.next=12;break}return t.abrupt("return",e._unfollowLibrary());case 12:throw Te(o);case 13:case"end":return t.stop()}}),t)})))()}_moveLibrary(){return this._driver.moveLibrary(this._library.assetId,this.action.data.team.id,this.action.data.owner)}}function vn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}!function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);o>3&&a&&Object.defineProperty(t,r,a)}([ln("cclibraries-cloudDriver-createLibrary")],gn.prototype,"_createLibrary",null);const bn=e=>e.replace(/ |\t|\n/g,""),_n=/^(\$\.(?:elements|removedElements|documentationElements))\[\?\(@\.id=="([^"]+)"\)\]$/,En=/^\$\.groups\[\?\(@\.id=="([^"]+)"\)\]$/;function wn(e){return e=bn(e),vn(_n.exec(e)||[],3)[2]}function xn(e){return e=bn(e),vn(_n.exec(e)||[],2)[1]}function Ln(e){return e=bn(e),vn(En.exec(e)||[],2)[1]}function On(){On=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Sn(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class Tn extends Ve{supportsAction(e){return["moveElement","copyElement","dependent"].includes(e.name)}addAction(e){var t,r,n,i,o,a;if(!this.supportsAction(e))return!1;const s=this._actions[this._actions.length-1];return s||"dependent"===e.name?e.library===(null===(t=e.link)||void 0===t?void 0:t.library)?"dependent"===e.name?s.link===e&&(this._actions.push(e),!0):(null===(r=e.library)||void 0===r?void 0:r.actions.indexOf(e))+1===(null===(i=null===(n=e.link)||void 0===n?void 0:n.library)||void 0===i?void 0:i.actions.indexOf(e.link))&&super.addAction(e):(null===(o=s.link)||void 0===o?void 0:o.library)===(null===(a=e.link)||void 0===a?void 0:a.library)&&s.type===e.type&&super.addAction(e):super.addAction(e)}execute(){var e,t=this;return(e=On().mark((function e(){var r,n,i,o,a,s,c,l,u,d,p;return On().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="moveElement"===t._actions[0].name,i=null===(r=t._actions[0].link)||void 0===r?void 0:r.library,o=t._actions.filter((e=>"dependent"!==e.name)),a=o.map((e=>wn(e.path))),e.next=6,t._doMoveCopyRequest(n,t._library,i,a);case 6:if(s=e.sent,c=s.elements,l=s.etag,u=s.sourceEtag,c.length===o.length){e.next=12;break}throw new Error;case 12:return i===t._library?(d=[],p=t._actions.map((e=>{if("dependent"!==e.name)return e;const t=o.findIndex((t=>t===e.link||t.originalAction===e.link));return Object.assign(Object.assign({},e),{data:c[t],originalAction:e})}))):(p=t._actions,d=t._actions.map(((e,t)=>Object.assign(Object.assign({},e.link),{data:c[t],originalAction:e.link})))),e.abrupt("return",{actions:p,etag:u,linkedActions:d,linkedEtag:l});case 14:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Sn(o,n,i,a,s,"next",e)}function s(e){Sn(o,n,i,a,s,"throw",e)}a(void 0)}))})()}}function Pn(){Pn=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function In(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}!function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);o>3&&a&&Object.defineProperty(t,r,a)}([ze],Tn.prototype,"execute",null);class An extends Tn{_doMoveCopyRequest(e,t,r,n){var i,o=this;return(i=Pn().mark((function t(){var i,a,s,c;return Pn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=o._library.assetId,a=r.assetId,t.next=4,o._driver.fetch(`/api/v1/libraries/${a}/elements`,{method:"POST",headers:{"Content-Type":"application/json","If-Match":r.etag},body:JSON.stringify({[e?"self":"source"]:{id:i,elements:n,"if-match":o._library.etag}})});case 4:return s=t.sent,t.next=7,s.json();case 7:return c=t.sent,t.abrupt("return",{elements:c.elements.map(St),etag:s.headers.get("etag"),sourceEtag:s.headers.get("x-source-etag")});case 9:case"end":return t.stop()}}),t)})),function(){var e=this,t=arguments;return new Promise((function(r,n){var o=i.apply(e,t);function a(e){In(o,r,n,a,s,"next",e)}function s(e){In(o,r,n,a,s,"throw",e)}a(void 0)}))})()}}function Cn(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return kn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?kn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function kn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Dn(e){return"undefined"!=typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}function Nn(e,t,r){var n;const i=r.reduce(((e,r)=>r(e,t)),e);return i!==e&&(i.originalAction=e),"aggregate"===i.type&&(i.actions=null===(n=i.actions)||void 0===n?void 0:n.map((e=>Nn(e,t,r)))),i}function Rn(e,t){var r,n,i;t||(t=e);const o={};var a,s=Cn(e);try{for(s.s();!(a=s.n()).done;){const e=a.value;D(null===(n=null===(r=e.originalAction)||void 0===r?void 0:r.data)||void 0===n?void 0:n.id)&&(o[null===(i=e.originalAction)||void 0===i?void 0:i.data.id]=e.data)}}catch(e){s.e(e)}finally{s.f()}const c=[Mn,jn,Fn];return t.map((e=>Nn(e,o,c)))}function Mn(e,t){var r;const n=e.path&&function(e){const t=wn(e)||Ln(e);return D(t)&&t}(e.path);if(n){const s=null===(r=t[n])||void 0===r?void 0:r.id;if(s)return Object.assign(Object.assign({},e),{path:(i=e.path,o=n,a=s,i.replace(o,a))})}var i,o,a;return e}function jn(e,t){var r,n,i,o,a,s,c,l,u,d;let p=!1;const h=[];if(null===(n=null===(r=e.data)||void 0===r?void 0:r.groups)||void 0===n||n.forEach((e=>{var r;if(e.id&&D(e.id)){const n=null===(r=t[e.id])||void 0===r?void 0:r.id;if(n)return p=!0,void h.push(Object.assign(Object.assign({},e),{id:n}))}h.push(e)})),p)return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{groups:h})});if((null===(i=e.data)||void 0===i?void 0:i.id)&&D(null===(o=e.data)||void 0===o?void 0:o.id)){const r=null===(s=t[null===(a=e.data)||void 0===a?void 0:a.id])||void 0===s?void 0:s.id;r&&(e.data.id=r)}if((null===(c=e.data)||void 0===c?void 0:c.parentId)&&D(null===(l=e.data)||void 0===l?void 0:l.parentId)){const r=null===(d=t[null===(u=e.data)||void 0===u?void 0:u.parentId])||void 0===d?void 0:d.id;r&&(e.data.parentId=r)}return e}function Fn(e,t){var r,n;const i=[];let o=!1;const a=e=>{let r=Object.assign({},e);if(e.id&&D(e.id)){const n=t[e.id];n&&(r=n,o=!0)}return r};return null===(n=null===(r=e.data)||void 0===r?void 0:r.representations)||void 0===n||n.forEach((e=>{e.source&&(e.source=a(e.source)),i.push(a(e))})),o?Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{representations:i})}):e}function Zn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||Gn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bn(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Gn(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function Gn(e,t){if(e){if("string"==typeof e)return Un(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Un(e,t):void 0}}function Un(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Hn(e){var t;const r={};for(let a=0;a<e.length;a+=1){const s=e[a],c=null===(t=s.body)||void 0===t?void 0:t.id;if("POST"===s.method&&D(c)&&(r[c]=`$${a}.id`,delete s.body.id),["PUT","DELETE"].includes(s.method)){const e=(o=s.path,T(C.exec(o)||[],1)[0]);if(e){if(!r[e])throw new Error(`Unmapped placeholder ID: ${e}`);s.path=s.path.replace(e,r[e])}}if(["PUT","POST"].includes(s.method)){if(s.path.startsWith("elements")&&s.body.representations&&Vn(s.body.representations),s.path.startsWith("elements")&&s.body.groups){var n,i=Bn(s.body.groups);try{for(i.s();!(n=i.n()).done;){const e=n.value;if(D(e.id)){if(!r[e.id])throw new Error(`Unmapped placeholder ID: ${e.id}`);e.id=r[e.id]}}}catch(e){i.e(e)}finally{i.f()}}if(s.path.startsWith("groups")&&s.body.parent_id&&D(s.body.parent_id)){if(!r[s.body.parent_id])throw new Error(`Unmapped placeholder ID: ${s.body.parent_id}`);s.body.parent_id=r[s.body.parent_id]}}}var o;return e}function zn(e,t){const r={};for(var n=0,i=Object.entries(e);n<i.length;n++){const e=Zn(i[n],2),o=e[0],a=e[1];(void 0!==a||(null==t?void 0:t.includes(o)))&&(r[o]=a)}return r}function Vn(e){var t,r=Bn(e);try{for(r.s();!(t=r.n()).done;){const e=t.value;D(e.id)&&(e.id=void 0)}}catch(e){r.e(e)}finally{r.f()}return e}function Yn(){Yn=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Wn(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const Kn=["updateLibrary","createElement","updateElement","removeElement","restoreElement","deleteElement","createGroup","removeGroup"];function $n(e,t){return Object.assign(Object.assign({},e),{data:t,originalAction:e})}const qn={updateLibrary:(e,t)=>$n(e,zn(Ot(t,!1,!1),["documentId","documentType","roles"])),createElement:(e,t)=>$n(e,St(t.elements[0])),updateElement:(e,t)=>$n(e,St(t.elements[0])),restoreElement:e=>e,removeElement:e=>e,deleteElement:e=>e,createGroup:(e,t)=>$n(e,Tt(t)),removeGroup:e=>e};class Xn extends Ve{constructor(){super(...arguments),this._baseLibraryOperationPath=`/api/v1/libraries/${this._library.assetId}`,this._actionMappers={updateLibrary:e=>{return{method:"PUT",path:"metadata",body:(t=e.data,Object.assign({name:t.name,document_id:t.documentId,roles:t.roles,description:t.description},Nt(t.customData)))};var t},createElement:e=>({method:"POST",path:"elements",body:Rt(e.data,this._driver.getClientInfo())}),updateElement:e=>({method:"PUT",path:"elements/metadata",body:{elements:[Ct(Object.assign({id:wn(e.path)},e.data))]}}),removeElement:e=>({method:"DELETE",path:`elements/${wn(e.path)}`}),restoreElement:e=>({method:"POST",path:"archive",body:{elementIds:[`${e.data.id}`]}}),deleteElement:e=>({method:"DELETE",path:`elements/${wn(e.path)}`,query_params:{permanent:"true"}}),createGroup:e=>{return{method:"POST",path:"groups",body:(t=e.data,r=this._driver.getClientInfo(),{group:{name:t.name,classifier:t.classifier,order:t.order,parent_id:t.parentId},client:r})};var t,r},removeGroup:e=>{var t;return{method:"DELETE",path:`groups/${Ln(e.path)}`,query_params:(null===(t=e.flags)||void 0===t?void 0:t.includeElements)?{include_contents:"true"}:void 0}}},this._actions=[]}execute(){var e,t=this;return(e=Yn().mark((function e(){var r,n,i,o,a,s;return Yn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t._actions.map((e=>t._actionMappers[e.name](e))),n=Hn(r),e.next=4,t._driver.fetch(t._baseLibraryOperationPath,{method:"PATCH",headers:{"Content-Type":"application/json","If-Match":t._library.etag},body:JSON.stringify({requests:n.map((e=>Object.assign(Object.assign({},e),{path:`${t._baseLibraryOperationPath}/${e.path}`})))})});case 4:return i=e.sent,e.next=7,i.json();case 7:if(o=e.sent,a=o.responses,Array.isArray(a)&&a.length===t._actions.length){e.next=11;break}throw new J("INVALID_RESPONSE","Malformed batch response.",t._library.id);case 11:return s=Rn(s=t._actions.map(((e,t)=>qn[e.name](e,a[t])))),e.abrupt("return",{actions:s,etag:i.headers.get("ETag")});case 14:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Wn(o,n,i,a,s,"next",e)}function s(e){Wn(o,n,i,a,s,"throw",e)}a(void 0)}))})()}supportsAction(e){return function(e){return Kn.includes(e.name)}(e)}}function Jn(){Jn=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Qn(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}!function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);o>3&&a&&Object.defineProperty(t,r,a)}([ze,ln("cclibraries-cloudDriver-batchOperation")],Xn.prototype,"execute",null);class ei extends Ve{supportsAction(e){return"updateElementContent"===e.name}addAction(e){return(!this._actions[0]||this._actions[0].path===e.path)&&super.addAction(e)}execute(){var e,t=this;return(e=Jn().mark((function e(){var r,n,i,o,a;return Jn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t._actions[t._actions.length-1],e.next=3,t._updateElementContent(wn(r.path),r.data);case 3:return n=e.sent,e.next=6,n.json();case 6:return i=e.sent,o=St(i.elements[0]),a=t._actions.map(((e,r)=>r!==t._actions.length-1?Object.assign(Object.assign({},e),{type:"no-op",originalAction:e}):Object.assign(Object.assign({},e),{data:o,originalAction:e}))),e.abrupt("return",{actions:a,etag:n.headers.get("ETag")});case 10:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Qn(o,n,i,a,s,"next",e)}function s(e){Qn(o,n,i,a,s,"throw",e)}a(void 0)}))})()}_updateElementContent(e,t){return Vn(t.representations),this._driver.fetch(`/api/v1/libraries/${this._library.assetId}/elements/${e}/representations`,{method:"PUT",headers:{"If-Match":this._library.etag,"Content-Type":"application/json"},body:JSON.stringify(Rt(t,this._driver.getClientInfo()))})}}function ti(){ti=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ri(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}!function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);o>3&&a&&Object.defineProperty(t,r,a)}([ze,ln("cclibraries-cloudDriver-updateElementContent")],ei.prototype,"execute",null);class ni extends Ve{constructor(){super(...arguments),this._actionMappers={}}execute(){var e,t=this;return(e=ti().mark((function e(){var r;return ti().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.actions.map((e=>t._actionMappers[e.name](e))),e.next=3,Promise.all(r);case 3:return e.t0=e.sent,e.abrupt("return",{actions:e.t0});case 5:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ri(o,n,i,a,s,"next",e)}function s(e){ri(o,n,i,a,s,"throw",e)}a(void 0)}))})()}}function ii(){ii=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function oi(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}!function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);o>3&&a&&Object.defineProperty(t,r,a)}([ze],ni.prototype,"execute",null);class ai extends ni{constructor(){var e,t,r;super(...arguments),e=this,this._actionMappers={uploadComponent:(t=ii().mark((function t(r){var n;return ii().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=JSON,t.next=3,e._driver.stageRepresentationForCommit(r.library,r.data.file,r.data.type);case 3:return t.t1=t.sent,n=t.t0.parse.call(t.t0,t.t1),t.abrupt("return",Object.assign(Object.assign({},r),{data:n,originalAction:r}));case 6:case"end":return t.stop()}}),t)})),r=function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){oi(o,n,i,a,s,"next",e)}function s(e){oi(o,n,i,a,s,"throw",e)}a(void 0)}))},function(e){return r.apply(this,arguments)})}}supportsAction(e){return"uploadComponent"===e.name}}function si(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ci(e){const t={};do{const r=e.indexOf("<");if(-1===r)break;let n=e.indexOf("<",r+1);-1===n&&(n=e.length);const i=li(e.substring(r,n));i&&(t[i.rel]=i),e=e.substring(n)}while(e.length>0);return t}function li(e){const t=e.match(/^<(.*)>;/);if(!t)return;const r={href:t[1]};var n,i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return si(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?si(e,t):void 0}}(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(e.matchAll(/\s([\w:]*)="([^"]*)"[;,]?/g));try{for(i.s();!(n=i.n()).done;){const e=n.value,t=e[1],i=e[2];r[t]=ui(i)}}catch(e){i.e(e)}finally{i.f()}return r}function ui(e){if("true"===e||"false"===e)return"true"===e;const t=+e;return isNaN(t)?e:t}var di=r(24560),pi=r(59614),hi=r.n(pi);function fi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return mi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mi(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gi(){gi=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}var vi=function(e){return this instanceof vi?(this.v=e,this):new vi(e)},yi=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,(t=e[r](t)).done,t.value)}))}}},bi=function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:vi(e[n](t)),done:"return"===n}:i?i(t):t}:i}},_i=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||s(e,t)}))})}function s(e,t){try{(r=i[e](t)).value instanceof vi?Promise.resolve(r.value.v).then(c,l):u(o[0][2],r)}catch(e){u(o[0][3],e)}var r}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}};const Ei={field:"modifiedDate",direction:"descending"},wi={modifiedDate:"modified_date",name:"name"};class xi{constructor(e){this._driver=e}routePublicLibraryRequestIfNeeded(e,t,r,...n){return"public"===e.ownership&&e.data.publicLinkId?t(e.data.publicLinkId,this.getLibraryParams(e),...n):r(e.assetId,...n)}getLibraryParams(e){return{modifiedDate:e.modified,areElementsLoaded:e.areElementsLoaded,elements:e.data.elements}}getLibraryByPublicLinkId(e,t,r={}){var n,i;return _i(this,arguments,gi().mark((function o(){var a;return gi().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,vi(this._getLibrary(e));case 3:return a=o.sent,(null==t?void 0:t.areElementsLoaded)&&(a.elements=t.elements),o.next=7,vi(a);case 7:return o.next=9,o.sent;case 9:if(!(null==t?void 0:t.areElementsLoaded)||t.modifiedDate!==a.modifiedDate){o.next=13;break}return o.next=12,vi(void 0);case 12:return o.abrupt("return",o.sent);case 13:return o.t0=vi,o.delegateYield(bi(yi(this._getAllElements(e,Object.assign({},r.elementParams)))),"t1",15);case 15:return o.t2=o.t1,o.next=18,(0,o.t0)(o.t2);case 18:o.next=24;break;case 20:if(o.prev=20,o.t3=o.catch(0),null===(i=null===(n=r.elementParams)||void 0===n?void 0:n.abortController)||void 0===i?void 0:i.signal.aborted){o.next=24;break}throw o.t3;case 24:case"end":return o.stop()}}),o,this,[[0,20]])})))}getElementsByPublicLinkId(e,t,r=Ei,n=100,i){return _i(this,arguments,gi().mark((function t(){var o,a,s;return gi().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=e=>e.elements.map(St),a=`${"descending"===r.direction?"-":""}${wi[r.field]}`,s={limit:n,orderBy:a,selector:["default","representations","details"]},t.t0=vi,t.delegateYield(bi(yi(this.fetchAllPages(`/api/v1/public/libraries/${e}/elements?${(0,di.stringify)(s,{arrayFormat:"comma"})}`,o,i))),"t1",5);case 5:return t.t2=t.t1,t.next=8,(0,t.t0)(t.t2);case 8:case"end":return t.stop()}}),t,this)})))}getRemovedElementsByPublicLinkId(e,t,r=Ei,n=100,i){return _i(this,arguments,gi().mark((function e(){return gi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,vi(void 0);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))}getDocumentationElementsByPublicLinkId(e,t,r=Ei,n=100,i){return _i(this,arguments,gi().mark((function e(){return gi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,vi(void 0);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))}getElement(e,t,r){return this.fetch(`/api/v1/public/libraries/${e}/elements/${r}?selector=default,representations,details,tags`).then((e=>e.json())).then((e=>St(e)))}_getLibrary(e){return this.fetch(`/api/v1/public/libraries/${e}?selector=default,rendition_grid,details`).then((e=>e.json())).then((e=>Ot(e,!0)))}_getAllElements(e,t){var r,n,i;return _i(this,arguments,gi().mark((function o(){var a,s,c,l,u,d,p,h,f,m,g,v,y,b;return gi().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:u={},d=0,p=[["elements","getElementsByPublicLinkId"],["documentationElements","getDocumentationElementsByPublicLinkId"],["removedElements","getRemovedElementsByPublicLinkId"]];case 3:if(!(d<p.length)){o.next=47;break}if(h=fi(p[d],2),f=h[0],m=h[1],!(null===(r=null==t?void 0:t.types)||void 0===r?void 0:r.includes(f))){o.next=44;break}o.prev=6,g=!0,s=void 0,v=yi(this[m](e,void 0,null==t?void 0:t.sort,void 0,null===(n=null==t?void 0:t.abortController)||void 0===n?void 0:n.signal));case 8:return o.next=10,vi(v.next());case 10:if(y=o.sent,a=y.done){o.next=29;break}if(l=y.value,g=!1,o.prev=15,b=l,u[f]=u[f]||[],null===(i=u[f])||void 0===i||i.push(...b),!(null==t?void 0:t.loadProgressively)){o.next=24;break}return o.next=22,vi({[f]:u[f]});case 22:return o.next=24,o.sent;case 24:return o.prev=24,g=!0,o.finish(24);case 27:o.next=8;break;case 29:o.next=34;break;case 31:o.prev=31,o.t0=o.catch(6),s={error:o.t0};case 34:if(o.prev=34,o.prev=35,g||a||!(c=v.return)){o.next=39;break}return o.next=39,vi(c.call(v));case 39:if(o.prev=39,!s){o.next=42;break}throw s.error;case 42:return o.finish(39);case 43:return o.finish(34);case 44:d++,o.next=3;break;case 47:return o.next=49,vi(Object.assign({areElementsLoaded:!0},t.loadProgressively?{}:u));case 49:return o.next=51,o.sent;case 51:case"end":return o.stop()}}),o,this,[[6,31,34,44],[15,,24,27],[35,,39,43]])})))}fetchAllPages(e,t,r){var n,i;return _i(this,arguments,gi().mark((function o(){var a,s,c,l,u,d,p;return gi().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:s=e;case 1:if(!s){o.next=21;break}return o.next=4,vi(this.fetch(s,{signal:r}).then((e=>e.json())));case 4:return c=o.sent,o.next=7,vi(t(c));case 7:return o.next=9,o.sent;case 9:if(null!=a||(a=c.total_count),l=null===(i=null===(n=c._links)||void 0===n?void 0:n.page)||void 0===i?void 0:i.href,u=c._page,d=l&&qe()(l),p=parseInt(u.start)+u.count,d&&u&&!(p>a)){o.next=18;break}return o.next=17,vi(void 0);case 17:return o.abrupt("return",o.sent);case 18:s=d.fill({orderBy:u.orderBy,start:`${p}`,limit:`${u.count}`,selector:"default,representations,details"}),o.next=1;break;case 21:case"end":return o.stop()}}),o,this)})))}fetch(e,t){var r,n;return(null===(r=this._driver.config.user)||void 0===r?void 0:r.id)&&((t=t||{}).headers=t.headers||{},t.headers["x-gw-ims-user-id"]=null===(n=this._driver.config.user)||void 0===n?void 0:n.id),this._driver.fetch(e,t)}}function Li(){Li=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Oi(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Si(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Oi(o,n,i,a,s,"next",e)}function s(e){Oi(o,n,i,a,s,"throw",e)}a(void 0)}))}}class Ti extends te{constructor(e){super(),this._driver=e,this._onChangeCallback=e=>{var t;null===(t=this._changeCallback)||void 0===t||t.call(this,e)}}connect(){var e;this._librariesToMonitor=this._driver.createAssetLinkList(),null===(e=this._librariesToMonitor)||void 0===e||e.on("notified",this._onChangeCallback)}disconnect(){var e,t;this._changeCallback=void 0,null===(e=this._librariesToMonitor)||void 0===e||e.clear(),null===(t=this._librariesToMonitor)||void 0===t||t.off("notified",this._onChangeCallback),this._librariesToMonitor=void 0}get isConnected(){return!!this._librariesToMonitor}setWatchedLibraries(e,t){var r=this;return Si(Li().mark((function n(){var i,o;return Li().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r._librariesToMonitor){n.next=2;break}return n.abrupt("return");case 2:i=r._librariesToMonitor,o=new Set(e.map((e=>e.assetId))),i.monitoredAssetIDs.forEach((e=>!o.has(e)&&i.removeAssetID(e))),o.forEach((e=>e&&i.addAssetID(e))),r._changeCallback=t;case 7:case"end":return n.stop()}}),n)})))()}addWatchedLibrary(e){var t=this;return Si(Li().mark((function r(){var n;return Li().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e.assetId&&(null===(n=t._librariesToMonitor)||void 0===n||n.addAssetID(e.assetId));case 1:case"end":return r.stop()}}),r)})))()}removeWatchedLibrary(e){var t;e.assetId&&(null===(t=this._librariesToMonitor)||void 0===t||t.removeAssetID(e.assetId))}addLibrariesSyncGroupListener(e){var t=this;return Si(Li().mark((function r(){var n,i;return Li().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!t._syncGroupListener&&e){r.next=2;break}return r.abrupt("return");case 2:return t._syncGroupListener={notify:e},i=void 0,r.prev=4,r.next=7,null===(n=t._driver.sam)||void 0===n?void 0:n.hostAssetContext.getAssetWithRepoPath("/assets/adobe-libraries");case 7:i=r.sent,r.next=15;break;case 10:if(r.prev=10,r.t0=r.catch(4),21!==r.t0.code){r.next=14;break}return r.abrupt("return");case 14:throw r.t0;case 15:if(i){r.next=18;break}return delete t._syncGroupListener,r.abrupt("return");case 18:t._syncGroupListener.asset=i,i.on("change",e);case 20:case"end":return r.stop()}}),r,null,[[4,10]])})))()}removeLibrariesSyncGroupListener(){if(this._syncGroupListener){const e=this._syncGroupListener,t=e.asset,r=e.notify;null==t||t.off("change",r),delete this._syncGroupListener}}}function Pi(){Pi=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}var Ii=function(e){return this instanceof Ii?(this.v=e,this):new Ii(e)};function Ai(e,t){return e.next().then((e=>({result:e,index:t})))}function Ci(...e){return function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||s(e,t)}))})}function s(e,t){try{(r=i[e](t)).value instanceof Ii?Promise.resolve(r.value.v).then(c,l):u(o[0][2],r)}catch(e){u(o[0][3],e)}var r}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}(this,arguments,Pi().mark((function t(){var r,n,i;return Pi().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e.map(Ai),n=r.length;case 2:if(!n){t.next=18;break}return t.next=5,Ii(Promise.race(r));case 5:if((i=t.sent).result.done){t.next=14;break}return t.next=9,Ii(i.result.value);case 9:return t.next=11,t.sent;case 11:r[i.index]=Ai(e[i.index],i.index),t.next=16;break;case 14:r[i.index]=new Promise((()=>{})),n--;case 16:t.next=2;break;case 18:case"end":return t.stop()}}),t)})))}class ki{constructor(){this._data=new Map}get length(){return this._data.size}key(e){return Array.from(this._data.keys())[e]}getItem(e){return this._data.get(e)}setItem(e,t){this._data.set(e,t)}removeItem(e){this._data.delete(e)}clear(){this._data.clear()}}class Di{constructor(e,t){this._settings=new Map,this._storageKey=e,this._storage=null!=t?t:"undefined"!=typeof window?window.localStorage:new ki,this._load()}entries(){return this._settings.entries()}setItem(e,t){this._settings.set(e,t),this._save()}getItem(e){return this._settings.get(e)}_setItem(e,t){this._storage.setItem(e,t)}_load(){const e=this._storage.getItem(this._storageKey);if(e)try{this._settings=new Map(JSON.parse(e))}catch(e){oe.error("Error restoring previous settings."),this._storage.removeItem(this._storageKey)}}_save(){const e=JSON.stringify(Array.from(this._settings.entries()));this._setItem(this._storageKey,e)}}function Ni(e){var t;return{name:e.name,id:e.id,owner:e.storageAssignee,ownerName:null!==(t=e.storageAssignee.displayName)&&void 0!==t?t:"",isWritable:!0}}function Ri(e){return{type:e.type,angle:e.angle,stops:e.stops}}function Mi(e){return new Promise(((t,r)=>{function n(){e.status!==re.ak.Loading&&(e.errors&&r(e.errors),e.off(re.mC,n),t())}e.on(re.mC,n),n()}))}function ji(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||Fi(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fi(e,t){if(e){if("string"==typeof e)return Zi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zi(e,t):void 0}}function Zi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Bi(){Bi=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Gi(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Ui(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Gi(o,n,i,a,s,"next",e)}function s(e){Gi(o,n,i,a,s,"throw",e)}a(void 0)}))}}var Hi=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},zi=function(e){return this instanceof zi?(this.v=e,this):new zi(e)},Vi=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,(t=e[r](t)).done,t.value)}))}}},Yi=function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:zi(e[n](t)),done:"return"===n}:i?i(t):t}:i}},Wi=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||s(e,t)}))})}function s(e,t){try{(r=i[e](t)).value instanceof zi?Promise.resolve(r.value.v).then(c,l):u(o[0][2],r)}catch(e){u(o[0][3],e)}var r}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}},Ki=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};const $i={field:"modifiedDate",direction:"descending"},qi={modifiedDate:"modified_date",name:"name"},Xi=["off","error","warn","info","debug"];class Ji extends Le{constructor(){super(...arguments),this._fetch=fetch,this._notificationManager=new Ti(this),this._assets=new Map,this._operationTypes=[An,gn,Xn,ei,ai],this._publicExt=new xi(this)}getLibrary(e,t){return this._publicExt.routePublicLibraryRequestIfNeeded(e,this._publicExt.getLibraryByPublicLinkId.bind(this._publicExt),this.getLibraryByAssetId.bind(this),t)}getElements(e,...t){return this._publicExt.routePublicLibraryRequestIfNeeded(e,this._publicExt.getElementsByPublicLinkId.bind(this._publicExt),this._getElementsByAssetId.bind(this),...t)}getRemovedElements(e,...t){return this._publicExt.routePublicLibraryRequestIfNeeded(e,this._publicExt.getRemovedElementsByPublicLinkId.bind(this._publicExt),this._getRemovedElementsByAssetId.bind(this),...t)}getDocumentationElements(e,...t){return this._publicExt.routePublicLibraryRequestIfNeeded(e,this._publicExt.getDocumentationElementsByPublicLinkId.bind(this._publicExt),this._getDocumentationElementsByAssetId.bind(this),...t)}getElement(e,t){return this._publicExt.routePublicLibraryRequestIfNeeded(e,this._publicExt.getElement.bind(this._publicExt),this._getElement.bind(this),t)}_handleConnected(e){var t=this;return Ui(Bi().mark((function r(){var n,i,o,a,s,c,l,u,d,p;return Bi().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return p=tt(e.token),t._localStorage=new Di(de(null==p?void 0:p.user,"cloud"),e.localStorage),t._env=e.env,t._token=e.token,t._refreshAccessToken=e.refreshAccessToken,t._clientId=null===(n=null==p?void 0:p.user)||void 0===n?void 0:n.clientId,t._analyticsEnabled=(null===(o=null===(i=e.config)||void 0===i?void 0:i.processInfo)||void 0===o?void 0:o.analyticsEnabled)||!1,t._ignoreRenditionGrids=(null===(a=e.config)||void 0===a?void 0:a.ignoreRenditionGrids)||!1,t._codeVersion=null===(c=null===(s=e.config)||void 0===s?void 0:s.processInfo)||void 0===c?void 0:c.codeVersion,t._fetch=e.fetch||fetch,r.prev=10,r.next=13,(0,re.jz)({USER_ID:null===(l=null==p?void 0:p.user)||void 0===l?void 0:l.id,CLIENT_ID:t._clientId,ACCESS_TOKEN:t._token,ENVIRONMENT:"staging"===t._env?re.Xb.Stage:re.Xb.Production,HOST_PRODUCT_DATA:{PRODUCT_ID:"CCLibraries",PRODUCT_LOCATION:"cc-libraries-js/1.0"},DISABLE_ONS:null!==(u=e.samDisableOns)&&void 0!==u&&u,HIGH_PRIORITY_RAPI_REQUESTS:!0},{persistentCache:e.samPersistentCache,refreshAccessToken:e.refreshAccessToken});case 13:t._sam=r.sent,t._sam.on(re.Hf,t._samLoggingHandler),r.next=26;break;case 17:if(r.prev=17,r.t0=r.catch(10),!((e.handleConnectRetries||0)<3)){r.next=25;break}if(19!==r.t0.code){r.next=25;break}return r.next=23,null===(d=t._refreshAccessToken)||void 0===d?void 0:d.call(t);case 23:e.handleConnectRetries=(e.handleConnectRetries||0)+1,t._handleConnected(e);case 25:throw r.t0;case 26:return t._notificationManager.connect(),r.next=29,t.getConfiguration();case 29:case"end":return r.stop()}}),r,null,[[10,17]])})))()}_handleDisconnected(){var e,t;null===(e=this._sam)||void 0===e||e.off(re.Hf,this._samLoggingHandler),null===(t=this._notificationManager)||void 0===t||t.disconnect(),this._assets.clear()}_samLoggingHandler(e){e.logLevel&&oe[Xi[e.logLevel]](`[SAM] ${e.message}`)}getConfiguration(){var e=this;return Ui(Bi().mark((function t(){var r,n;return Bi().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.getLocalSettings(),n=tt(e._token),e._config=new ae(Object.assign(Object.assign(Object.assign({},r),n),{environment:e._env,processInfo:{analyticsEnabled:e._analyticsEnabled,codeVersion:e._codeVersion,syncingEnabled:!0},ignoreRenditionGrids:e._ignoreRenditionGrids})),t.abrupt("return",e.config);case 4:case"end":return t.stop()}}),t)})))()}get driverConfig(){return Ge[this._env]}get sam(){return this._sam}updateOptions(e){this._options=e}fetchAccessToken(e,t,r,n){return Promise.resolve({access_token:this._token,expires_in:rt(this._token)})}getLibraryById(e){var t=this;return Ui(Bi().mark((function r(){var n,i;return Bi().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,t.getLibraryByAssetId(e).next();case 4:return n=r.sent,i=n.value,r.abrupt("return",i);case 7:case"end":return r.stop()}}),r)})))()}getLibraryByAssetId(e,t={}){var r,n,i;return Wi(this,arguments,Bi().mark((function o(){var a,s,c,l,u;return Bi().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(e){o.next=4;break}return o.next=3,zi({});case 3:case 23:return o.abrupt("return",o.sent);case 4:if(a=t.etag,s=["default"],t.getRenditionGrid&&s.push("rendition_grid"),t.getAppMetadata&&s.push("app_metadata"),c=this._options.loadBrandFromMelvilleOnUpdate&&t.isNotificationLoad&&!(null===(r=t.elementParams)||void 0===r?void 0:r.loadProgressively),t.elementParams&&!c){o.next=24;break}return o.prev=10,o.next=13,zi(this._getLibrary(e,a,s));case 13:return o.next=15,o.sent;case 15:o.next=21;break;case 17:if(o.prev=17,o.t0=o.catch(10),o.t0 instanceof Se&&"NOT_MODIFIED"===o.t0.code){o.next=21;break}throw o.t0;case 21:return o.next=23,zi(void 0);case 24:if((l=this._getManifest(e,t)).then((()=>{var e;const r=null===(e=t.elementParams)||void 0===e?void 0:e.abortController;r&&(r.abort(),me.give(r,"REQUEST NOT NEEDED"))})),!(null===(n=t.elementParams)||void 0===n?void 0:n.loadProgressively)){o.next=54;break}return o.prev=27,o.prev=28,o.next=31,zi(this._getLibrary(e,a,s));case 31:return u=o.sent,a=u.etag,o.next=35,zi(u);case 35:return o.next=37,o.sent;case 37:o.next=43;break;case 39:if(o.prev=39,o.t1=o.catch(28),o.t1 instanceof Se&&"NOT_MODIFIED"===o.t1.code&&t.elementParams){o.next=43;break}throw o.t1;case 43:return o.t2=zi,o.delegateYield(Yi(Vi(this._getAllElements(e,Object.assign(Object.assign({},t.elementParams),{etag:a})))),"t3",45);case 45:return o.t4=o.t3,o.next=48,(0,o.t2)(o.t4);case 48:o.next=54;break;case 50:if(o.prev=50,o.t5=o.catch(27),(null===(i=t.elementParams.abortController)||void 0===i?void 0:i.signal.aborted)||o.t5 instanceof Se&&"NOT_FOUND"===o.t5.code){o.next=54;break}throw o.t5;case 54:return o.next=56,zi(l);case 56:return o.next=58,o.sent;case 58:case"end":return o.stop()}}),o,this,[[10,17],[27,50],[28,39]])})))}_getLibrary(e,t,r=["default"]){const n={};n["if-none-match"]=t||"*";const i=new URLSearchParams({selector:r});r.includes("app_metadata")&&i.set("randomizer",(0,S.v4)());const o=`/api/v1/libraries/${e}?${i.toString()}`;return this.fetch(o,{headers:n}).then((e=>e.json())).then((e=>Ot(e,this._options.readOnly,null==r?void 0:r.includes("rendition_grid"))))}getAssetWithCloudID(e){var t=this;return Ui(Bi().mark((function r(){var n,i;return Bi().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.t0=t._assets.get(e),r.t0){r.next=5;break}return r.next=4,null===(n=t._sam)||void 0===n?void 0:n.hostAssetContext.getAssetWithCloudID(e);case 4:r.t0=r.sent;case 5:return i=r.t0,t._assets.set(e,i),r.abrupt("return",i);case 8:case"end":return r.stop()}}),r)})))()}createAssetLinkList(){var e;return null===(e=this._sam)||void 0===e?void 0:e.assetLinkManager.createList()}_getManifest(e,t){var r=this;return Ui(Bi().mark((function n(){var i,o,a;return Bi().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,r.getAssetWithCloudID(e);case 3:i=n.sent,n.next=9;break;case 6:throw n.prev=6,n.t0=n.catch(0),Ie(n.t0);case 9:if(i&&!(null==i?void 0:i.isDiscarded)){n.next=11;break}throw Pe(404);case 11:return n.prev=11,o=[i.manifest],t.getAppMetadata&&o.push(i.appMetadata),n.next=16,Promise.all(o.map((e=>!e.isLoaded&&e.load())));case 16:return a=dt(i),i.manifest.unload(),n.abrupt("return",a);case 21:throw n.prev=21,n.t1=n.catch(11),Ie(n.t1);case 24:case"end":return n.stop()}}),n,null,[[0,6],[11,21]])})))()}getLibraries(e,t=!0){return Wi(this,arguments,Bi().mark((function r(){var n,i,o,a,s,c;return Bi().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!this._options.enableBrandLifecycleManagement){r.next=29;break}return r.next=3,zi(this.getProjectByName("Adobe GenStudio Brands"));case 3:if(n=r.sent){r.next=17;break}return oe.error("[CLOUD DRIVER] M3 - Adobe GenStudio Brands project not found."),i={itemFilter:["publishedBrands"],roles:["brand"]},r.t0=zi,r.delegateYield(Yi(Vi(this.getLibrariesList(e,i))),"t1",9);case 9:return r.t2=r.t1,r.next=12,(0,r.t0)(r.t2);case 12:return r.next=14,zi(void 0);case 14:case 26:return r.abrupt("return",r.sent);case 17:return oe.info("[CLOUD DRIVER] M3 - Loading brands inside project."),o={team:[n.id],roles:["brand"]},r.t3=zi,r.delegateYield(Yi(Vi(this.getLibrariesList(e,o))),"t4",21);case 21:return r.t5=r.t4,r.next=24,(0,r.t3)(r.t5);case 24:return r.next=26,zi(void 0);case 27:r.next=38;break;case 29:return oe.info("[CLOUD DRIVER] M2 - Loading all libraries."),a={owner:["private","incoming"],selector:t?["rendition_grid"]:["default"]},s={owner:["public"],selector:t?["rendition_grid","details"]:["default","details"]},c=[this.getLibrariesList(e,a),this.getLibrariesList(e,s)],r.t6=zi,r.delegateYield(Yi(Vi(Ci(...c))),"t7",35);case 35:return r.t8=r.t7,r.next=38,(0,r.t6)(r.t8);case 38:case"end":return r.stop()}}),r,this)})))}getLibrariesList(e,t){return Wi(this,arguments,Bi().mark((function r(){return Bi().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=zi,r.delegateYield(Yi(Vi(this.fetchAllPages(this._getLibrariesURL(t),{},this._getLibrariesResponseMapper(t),e))),"t1",2);case 2:return r.t2=r.t1,r.next=5,(0,r.t0)(r.t2);case 5:case"end":return r.stop()}}),r,this)})))}getLibrariesPage(e,t){return Wi(this,arguments,Bi().mark((function r(){return Bi().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=zi,r.delegateYield(Yi(Vi(this.fetchOnePage(this._getLibrariesURL(t),this._getLibrariesResponseMapper(t),e,!1))),"t1",2);case 2:return r.t2=r.t1,r.next=5,(0,r.t0)(r.t2);case 5:case"end":return r.stop()}}),r,this)})))}getPresignedDownloadUrl(e){var t=this;return Ui(Bi().mark((function r(){var n,i,o;return Bi().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.fetch(e);case 2:return n=r.sent,r.next=5,n.json();case 5:return i=r.sent,o={size:(a=i).size,type:a.type,url:a.href},r.abrupt("return",o);case 8:case"end":return r.stop()}var a}),r)})))()}loadVersionHistory(e){var t=this;return Ui(Bi().mark((function r(){var n,i,o,a;return Bi().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=null===(n=t._sam)||void 0===n?void 0:n.hostAssetContext,r.next=3,i.getAssetWithCloudID(e);case 3:return o=r.sent,r.next=6,new Promise(((e,t)=>{(a=o.versions.getList(re.Fp.default,void 0,{loadAllPages:!0})).on(re.mC,(function r(){(null==a?void 0:a.status)!==re.ak.Loading&&(null==a||a.off(re.mC,r),(null==a?void 0:a.errors)&&t(),e())}))}));case 6:return r.abrupt("return",null==a?void 0:a.items.map((t=>gt(e,t))));case 7:case"end":return r.stop()}}),r)})))()}loadVersion(e,t){var r=this;return Ui(Bi().mark((function n(){var i,o,a,s,c;return Bi().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=null===(i=r._sam)||void 0===i?void 0:i.hostAssetContext,n.next=3,o.getAssetWithCloudID(e);case 3:return a=n.sent,n.next=6,r.fetch(t);case 6:return s=n.sent,n.next=9,s.json();case 9:return c=n.sent,n.abrupt("return",dt(a,c));case 11:case"end":return n.stop()}}),n)})))()}getCollaborators(e){var t=this;return Ui(Bi().mark((function r(){var n,i,o;return Bi().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=null===(n=t._sam)||void 0===n?void 0:n.collaborationContext.getCollaborators(e),r.next=3,new Promise(((e,t)=>{null==(o=null==i?void 0:i.getList(re.kc.default,void 0,{loadAllPages:!0}))||o.on(re.mC,(function r(){(null==o?void 0:o.status)!==re.ak.Loading&&(null==o||o.off(re.mC,r),(null==o?void 0:o.errors)?t():e())}))}));case 3:return r.abrupt("return",null==o?void 0:o.items.map((t=>vt(e,t))));case 4:case"end":return r.stop()}}),r)})))()}followLibrary(e,t){return this.fetch("/api/v1/libraries/bookmarks",{method:"POST",body:JSON.stringify({bookmarks:[{type:"collab",id:t,urn:e}]}),headers:{"content-type":"application/json"}}).then((()=>{}))}moveLibrary(e,t,r){return new Promise(((n,i)=>{const o={"content-type":"application/json"};r&&(o["x-organization-id"]=r);const a=this.fetch(`/api/v1/libraries?${(0,di.stringify)({invocation_mode:"async"})}`,{method:"POST",body:JSON.stringify({self:e,repository:t}),headers:o}),s=new Be(this,a);s.on("change",((e,t)=>{e&&(s.error?i(s.error):n(zn(Ot(t))))}))}))}importLibrary(e){throw new Error("Not implemented")}exportLibrary(e,t){throw new Error("Not implemented")}publishBrand(e){if(!e.assetId)throw new J("INVALID_PARAMETER","Brand asset id must be defined for publishing. Please wait before trying again.");return this.fetch(`/api/v1/brands/${e.assetId}/publish`,{method:"POST",headers:{"content-type":"application/json"}})}unpublishBrand(e){let t;if(e.publishedTo)t=e.publishedTo;else{if(!e.publishedFrom)throw new J("INVALID_PARAMETER","Brand must be publsihed before unpublishing. Please wait before trying again.");t=e.assetId}return this.fetch(`/api/v1/brands/${t}/unpublish`,{method:"POST",headers:{"content-type":"application/json"}})}abortOperation(e){return Ui(Bi().mark((function e(){return Bi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("Not supported in cloud mode.");case 1:case"end":return e.stop()}}),e)})))()}setLibraryChangeListener(e,t){this._notificationManager.setWatchedLibraries(e,(e=>t(e,"assetId")))}setSyncStateListener(){}removeLibraryChangeListener(){this._notificationManager.disconnect()}removeSyncStateListener(){}removeFontDataChangeListeners(){}addWatchedLibrary(e){this._notificationManager.addWatchedLibrary(e)}removeWatchedLibrary(e){this._notificationManager.removeWatchedLibrary(e),this._assets.delete(e.assetId)}addLibrariesSyncGroupListener(e){this._notificationManager.addLibrariesSyncGroupListener(e)}removeLibrariesSyncGroupListener(){this._notificationManager.removeLibrariesSyncGroupListener()}_getLibrariesURL(e){return`/api/v1/libraries?${new URLSearchParams(e).toString()}`}_getLibrariesResponseMapper(e){return t=>void 0===t.libraries?[]:t.libraries.map((t=>{var r,n;return Ot(t,this._options.readOnly,null===(n=null===(r=null==e?void 0:e.selector)||void 0===r?void 0:r.includes("rendition_grid"))||void 0===n||n)}))}_getElement(e,t){return this.fetch(`/api/v1/libraries/${e}/elements/${t}?selector=default,representations,details,tags`).then((e=>e.json())).then((e=>St(e)))}_getAllElements(e,t){var r,n;return Wi(this,arguments,Bi().mark((function i(){var o,a,s,c,l,u,d,p,h,f,m,g,v,y;return Bi().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:l={},u=0,d=[["elements","_getElementsByAssetId"],["documentationElements","_getDocumentationElementsByAssetId"],["removedElements","_getRemovedElementsByAssetId"]];case 3:if(!(u<d.length)){i.next=47;break}if(p=ji(d[u],2),h=p[0],f=p[1],!t.types.includes(h)){i.next=44;break}i.prev=6,m=!0,a=void 0,g=Vi(this[f](e,t.sort,t.etag,void 0,null===(r=t.abortController)||void 0===r?void 0:r.signal));case 8:return i.next=10,zi(g.next());case 10:if(v=i.sent,o=v.done){i.next=29;break}if(c=v.value,m=!1,i.prev=15,y=c,l[h]=l[h]||[],null===(n=l[h])||void 0===n||n.push(...y),!t.loadProgressively){i.next=24;break}return i.next=22,zi({[h]:l[h]});case 22:return i.next=24,i.sent;case 24:return i.prev=24,m=!0,i.finish(24);case 27:i.next=8;break;case 29:i.next=34;break;case 31:i.prev=31,i.t0=i.catch(6),a={error:i.t0};case 34:if(i.prev=34,i.prev=35,m||o||!(s=g.return)){i.next=39;break}return i.next=39,zi(s.call(g));case 39:if(i.prev=39,!a){i.next=42;break}throw a.error;case 42:return i.finish(39);case 43:return i.finish(34);case 44:u++,i.next=3;break;case 47:return i.next=49,zi(Object.assign({areElementsLoaded:!0},t.loadProgressively?{}:l));case 49:return i.next=51,i.sent;case 51:case"end":return i.stop()}}),i,this,[[6,31,34,44],[15,,24,27],[35,,39,43]])})))}_getElementsByAssetId(e,t=$i,r,n=100,i){return Wi(this,arguments,Bi().mark((function o(){return Bi().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.t0=zi,o.delegateYield(Yi(Vi(this._getElementsOfTypeByAssetId("elements",e,t,r,n,i))),"t1",2);case 2:return o.t2=o.t1,o.next=5,(0,o.t0)(o.t2);case 5:case"end":return o.stop()}}),o,this)})))}_getRemovedElementsByAssetId(e,t=$i,r,n=100,i){return Wi(this,arguments,Bi().mark((function o(){return Bi().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.t0=zi,o.delegateYield(Yi(Vi(this._getElementsOfTypeByAssetId("archive",e,t,r,n,i))),"t1",2);case 2:return o.t2=o.t1,o.next=5,(0,o.t0)(o.t2);case 5:case"end":return o.stop()}}),o,this)})))}_getDocumentationElementsByAssetId(e,t=$i,r,n=100,i){return Wi(this,arguments,Bi().mark((function e(){return Bi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,zi(Promise.resolve([]));case 2:return e.next=4,e.sent;case 4:case"end":return e.stop()}}),e)})))}_getElementsOfTypeByAssetId(e,t,r=$i,n,i=100,o){return Wi(this,arguments,Bi().mark((function a(){var s,c,l;return Bi().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s=e=>e.elements.map((e=>{if(!e.manifest_etag&&'""'===n||e.manifest_etag===n)return St(e);throw new Se("PRECONDITION_FAILED",`An element did not match the provided etag: ${n}`)})),c=`${"descending"===r.direction?"-":""}${qi[r.field]}`,l={limit:i,orderBy:c,selector:["default","representations","details"]},a.t0=zi,a.delegateYield(Yi(Vi(this.fetchAllPages(`/api/v1/libraries/${t}/${e}?${(0,di.stringify)(l,{arrayFormat:"comma"})}`,{},s,o))),"t1",5);case 5:return a.t2=a.t1,a.next=8,(0,a.t0)(a.t2);case 8:case"end":return a.stop()}}),a,this)})))}getSearchResults(e,t,r,n){return Wi(this,arguments,Bi().mark((function i(){var o,a,s;return Bi().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=r.field,a=r.direction,s="modifiedDate"===o?"modified_date":"name","descending"===a&&(s=`-${s}`),i.t0=zi,i.delegateYield(Yi(Vi(this.fetchAllPages("/api/v1/search",{method:"POST",signal:n,headers:{"Content-Type":"application/json"},body:JSON.stringify({query_string:e,library_id:t.library_id,asset_type:["element"],orderBy:s,limit:300})},(e=>e.elements.map(kt))))),"t1",5);case 5:return i.t2=i.t1,i.next=8,(0,i.t0)(i.t2);case 8:case"end":return i.stop()}}),i,this)})))}getTeams(){var e=this;return Ui(Bi().mark((function t(){var r,n;return Bi().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetch(`https://${e.driverConfig.teams_hostname}/api/v2/teams`);case 2:return r=t.sent,t.next=5,r.json();case 5:if(void 0!==(n=t.sent).teams){t.next=8;break}return t.abrupt("return",[]);case 8:return t.abrupt("return",n.teams.filter((e=>"org"===e.repositoryOwner.type)).map(At));case 9:case"end":return t.stop()}}),t)})))()}getProjects(){var e=this;return Ui(Bi().mark((function t(){var r;return Bi().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._sam){t.next=2;break}return t.abrupt("return",[]);case 2:return t.next=4,e._sam.projectContext.projects().getList(re.G$.default,re.R8.AllProjects,{loadAllPages:!0});case 4:return r=t.sent,t.next=7,Mi(r);case 7:return t.abrupt("return",r.items.map(Ni));case 8:case"end":return t.stop()}}),t)})))()}getProjectByName(e){var t=this;return Ui(Bi().mark((function r(){var n;return Bi().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._sam){r.next=2;break}return r.abrupt("return",void 0);case 2:return r.prev=2,r.next=5,t._sam.projectContext.resolveProjectByName(e);case 5:if(n=r.sent){r.next=8;break}return r.abrupt("return",void 0);case 8:return r.abrupt("return",Ni(n));case 11:return r.prev=11,r.t0=r.catch(2),r.abrupt("return",void 0);case 14:case"end":return r.stop()}}),r,null,[[2,11]])})))()}getProjectGradient(e){var t=this;return Ui(Bi().mark((function r(){var n;return Bi().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._sam){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,t._sam.projectContext.getProjectbyID(e.id);case 4:return n=r.sent,r.abrupt("return",t._sam.projectContext.getGradient(n.gradientID).then(Ri));case 6:case"end":return r.stop()}}),r)})))()}getGroups(e){return Wi(this,arguments,Bi().mark((function e(){return Bi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,zi(Promise.resolve(void 0));case 2:return e.next=4,e.sent;case 4:case"end":return e.stop()}}),e)})))}getRenditionUrl(e,t){let r;try{const n=ot(e,t);if(!n)return"";r=new URL(n)}catch(e){return oe.log(String(e)),""}return r.searchParams.set("api_key",this._clientId),r.searchParams.set("user_token",this._token),r.toString()}getAuthenticatedThumbnailURL(e,t){return Promise.resolve(this.getRenditionUrl(e,t))}getRenditionPath(e,t,r){return Promise.resolve("")}getRendition(e,t){return this.fetch(ot(e,t))}getRepresentationContent(e){var t=this;return Ui(Bi().mark((function r(){var n,i,o,a,s,c;return Bi().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e.contentLength<u)){r.next=4;break}o=e.data.url,r.next=23;break;case 4:if(!(e.contentLength>u)||(null===(n=e.data)||void 0===n?void 0:n.blockDownloadUrl)){r.next=18;break}return r.next=7,t.getElement(e.element.library,e.element.id);case 7:if(a=r.sent,s=null===(i=a.representations.find((e=>"primary"===e.relationship)))||void 0===i?void 0:i.blockDownloadUrl){r.next=11;break}throw new Error("No download link found for representation");case 11:return r.next=13,t.getPresignedDownloadUrl(s);case 13:return c=r.sent,o=null==c?void 0:c.url,r.abrupt("return",t.fetch(o,void 0,{includeAuthHeader:!1}));case 18:return r.next=20,t.getPresignedDownloadUrl(e.data.blockDownloadUrl);case 20:c=r.sent,(o=c&&c.url)||(o=e.data.url);case 23:return r.abrupt("return",t.fetch(o));case 24:case"end":return r.stop()}}),r)})))()}setLocalSetting(e,t){var r=this;return Ui(Bi().mark((function n(){var i;return Bi().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=JSON.stringify(t),null===(i=r._localStorage)||void 0===i||i.setItem(e,t);case 2:case"end":return n.stop()}}),n)})))()}getLocalSetting(e){var t;const r=null===(t=this._localStorage)||void 0===t?void 0:t.getItem(e);return r&&JSON.parse(r)}getInstalledVersion(e){throw new Error("Not supported in cloud mode.")}setFontDataChangeListener(e){}moveUrlQueryParamsToHeaders(e,t={}){const r=ji(e.split("?"),2),n=r[0],i=r[1],o=new URLSearchParams(i);var a,s=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Fi(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(x);try{for(s.s();!(a=s.n()).done;){const e=a.value,r=o.get(e);r&&(t[e]=r,o.delete(e))}}catch(e){s.e(e)}finally{s.f()}return[`${n}${[...o].length>0?"?":""}${o}`,t]}sendAction(e){return Ui(Bi().mark((function t(){return Bi().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:throw new J("NOT_SUPPORTED","Application actions are not supported in a cloud environment",e.item.id);case 1:case"end":return t.stop()}}),t)})))()}openInCCD(e){return Ui(Bi().mark((function e(){return Bi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("Not supported in cloud mode.");case 1:case"end":return e.stop()}}),e)})))()}fetch(e,t,r={}){var n=this;return Ui(Bi().mark((function i(){var o,a,s,c,l,u,d,p,h;return Bi().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return un("path",e),(t=t||{}).headers=t.headers||{},t.headers["x-api-key"]=n._clientId,!1!==r.includeAuthHeader&&(t.headers.Authorization=`Bearer ${n._token}`),c=nt(e),l=c.url,u=c.headers,e=l,t.headers=Object.assign(Object.assign({},u),t.headers),t.signal=t.signal?fe(t.signal,null===(o=n._abortController)||void 0===o?void 0:o.signal):null===(a=n._abortController)||void 0===a?void 0:a.signal,e.startsWith("/")&&(e=`https://${n.driverConfig.hostname}${e}`),d=Date.now(),i.next=13,n._fetch(e,t).catch((e=>{if(e.name===O)return new Response("{}");throw oe.info(`Error - ${e} (${Date.now()-d}ms)`),e}));case 13:if(p=i.sent,h=p.headers.get("X-Request-Id")||"no requestId",oe.info(`[${h}] ${t.method||"GET"} ${e} ${p.status} (${Date.now()-d}ms)`),!(p.status>=300)){i.next=22;break}return"UNAUTHORIZED"===Te(p).code&&(null===(s=n._refreshAccessToken)||void 0===s||s.call(n)),i.next=21,n._getFetchError(p);case 21:throw i.sent;case 22:return i.abrupt("return",p);case 23:case"end":return i.stop()}}),i)})))()}_getFetchError(e){return Ui(Bi().mark((function t(){var r;return Bi().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(403!==e.status){t.next=11;break}return t.prev=1,t.next=4,e.json();case 4:if("string"!=typeof(r=t.sent).type||"quota"!==r.type.toLowerCase()){t.next=7;break}return t.abrupt("return",new J("EXCEEDS_QUOTA",r.problem_type_message||"Storage quota exceeded"));case 7:t.next=11;break;case 9:t.prev=9,t.t0=t.catch(1);case 11:return t.abrupt("return",Te(e));case 12:case"end":return t.stop()}}),t,null,[[1,9]])})))()}fetchAllPages(e,t,r,n,i=!0){var o,a;return Wi(this,arguments,Bi().mark((function s(){var c,l,u,d,p,h,f;return Bi().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:c=e;case 1:if(!c){s.next=14;break}return l=t.headers,u=void 0===l?{}:l,d=Ki(t,["headers"]),i&&(p=this.moveUrlQueryParamsToHeaders(c,u),h=ji(p,1),c=h[0]),s.next=6,zi(this.fetch(c,Object.assign(Object.assign({signal:n},d),{headers:u})).then((e=>e.json())));case 6:return f=s.sent,s.next=9,zi(r(f));case 9:return s.next=11,s.sent;case 11:c=null===(a=null===(o=f._links)||void 0===o?void 0:o.next)||void 0===a?void 0:a.href,s.next=1;break;case 14:case"end":return s.stop()}}),s,this)})))}fetchOnePage(e,t,r,n=!0){return Wi(this,arguments,Bi().mark((function i(){var o,a,s,c;return Bi().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n&&(a=this.moveUrlQueryParamsToHeaders(e),s=ji(a,2),e=s[0],o=s[1]),i.next=3,zi(this.fetch(e,{signal:r,headers:o}).then((e=>e.json())));case 3:return c=i.sent,i.next=6,zi(t(c));case 6:return i.next=8,i.sent;case 8:case"end":return i.stop()}}),i,this)})))}copyFile(e,t,r){return Ui(Bi().mark((function e(){return Bi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("Not supported in cloud mode.");case 1:case"end":return e.stop()}}),e)})))()}getFileSize(e){return Ui(Bi().mark((function e(){return Bi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("Not supported in cloud mode.");case 1:case"end":return e.stop()}}),e)})))()}getRenditionGrid(e){throw new Error("Not supported in cloud mode.")}stageRepresentationForCommit(e,t,r){var n=this;return Ui(Bi().mark((function i(){var o,a,s,c,l,d,p,h,f,m,g,v,y,b;return Bi().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return a=r||t.type,i.next=3,n._fetchLibraryLinks(e);case 3:if(s=i.sent,c=s[ut.COMPONENT],l=s[ut.BLOCK_INIT],d=(null==l?void 0:l["repo:maxSingleTransferSize"])||u,c){i.next=9;break}throw new J("NOT_ALLOWED","Library is missing component upload link",e.id);case 9:return p=(0,S.v4)(),h=qe()(c.href),f=h.fill({component_id:p}),i.next=14,K(t,a);case 14:if(m=i.sent,g={id:p,storage_href:f,asset_id:e.assetId,type:a,content_length:t.size,name:t.name,width:null==m?void 0:m.width,height:null==m?void 0:m.height},!(t.size>d&&l)){i.next=27;break}return i.next=19,n._initializeBlockUpload(l,p,t,a);case 19:return v=i.sent,i.next=22,n._transferBlocks(v,t);case 22:return i.next=24,n._finalizeBlockUpload(v);case 24:return y=i.sent,Object.assign(g,y),i.abrupt("return",JSON.stringify(g));case 27:return i.t0=n,i.t1=f,i.t2={"Content-Type":a},i.next=32,t.arrayBuffer();case 32:return i.t3=i.sent,i.t4={method:"PUT",headers:i.t2,body:i.t3},i.next=36,i.t0.fetch.call(i.t0,i.t1,i.t4);case 36:return b=i.sent,Object.assign(g,{etag:b.headers.get("etag"),md5:null!==(o=b.headers.get("content-md5"))&&void 0!==o?o:void 0,version:b.headers.get("revision")}),i.abrupt("return",JSON.stringify(g));case 39:case"end":return i.stop()}}),i)})))()}_fetchLibraryLinks(e){var t=this;return Ui(Bi().mark((function r(){var n,i,o,a,s,c,l;return Bi().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.assetId){r.next=2;break}throw new J("NOT_SUPPORTED","Library does not have an assetId",e.id);case 2:return r.next=4,t.fetch(`https://${t.driverConfig.platform_hostname}`);case 4:return n=r.sent,r.next=7,n.json();case 7:return i=r.sent._links,o=i[ut.RESOLVE],a=qe()(o.href),s=a.fill({id:e.assetId}),r.next=13,t.fetch(s,{method:"HEAD"});case 13:return c=r.sent,l=c.headers.get("link"),r.abrupt("return",l?ci(l):{});case 16:case"end":return r.stop()}}),r)})))()}_initializeBlockUpload(e,t,r,n){var i=this;return Ui(Bi().mark((function o(){var a,s;return Bi().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a={"repo:size":r.size,"repo:blocksize":e["repo:maxSingleTransferSize"]||u,"repo:reltype":ut.COMPONENT,component_id:t,"dc:format":n},o.next=3,i.fetch(e.href,{method:"POST",headers:{"Content-Type":"application/vnd.adobecloud.bulk-transfer+json"},body:JSON.stringify(a)});case 3:return s=o.sent,o.next=6,s.json();case 6:return o.abrupt("return",o.sent);case 7:case"end":return o.stop()}}),o)})))()}_transferBlocks(e,t){var r=this;return Ui(Bi().mark((function n(){var i,o,a,s,c,l;return Bi().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:for(i=e["repo:blocksize"],o=e._links[ut.BLOCK_TRANSFER],a=0,s=[],c=0;a<=t.size;c+=1)l=Math.min(a+i,t.size),s.push(r.fetch(o[c].href,{method:"PUT",headers:{"Content-Length":String(l-a)},body:t.slice(a,l),duplex:"half"},{includeAuthHeader:!1})),a+=i;return n.next=7,Promise.all(s);case 7:return n.abrupt("return",n.sent);case 8:case"end":return n.stop()}}),n)})))()}_finalizeBlockUpload(e){var t=this;return Ui(Bi().mark((function r(){var n,i,o,a,s,c;return Bi().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=e._links[ut.BLOCK_FINALIZE],o=i.href,i.templated&&(a=qe()(i.href),o=a.fill({})),s=t.fetch(o,{method:"POST",headers:{"Content-Type":"application/vnd.adobecloud.bulk-transfer+json"},body:JSON.stringify(e)}),r.next=6,s;case 6:if((c=r.sent).status!==L.ACCEPTED){r.next=9;break}return r.abrupt("return",new Promise(((e,r)=>{const n=new Be(t,s);n.on("change",((t,i,o)=>{var a;t&&(n.error?r(n.error):e({etag:o.get("etag"),md5:null!==(a=o.get("content-md5"))&&void 0!==a?a:void 0,version:o.get("version")}))}))})));case 9:return r.abrupt("return",{etag:c.headers.get("etag"),md5:null!==(n=c.headers.get("content-md5"))&&void 0!==n?n:void 0,version:c.headers.get("version")});case 10:case"end":return r.stop()}}),r)})))()}getLocalDriver(){return new ca((()=>this._requestProcessToUploadData((0,S.v4)(),Date.now())))}_requestProcessToUploadData(e,t){var r=this;return Ui(Bi().mark((function n(){var i,o,a,s,c,l,u,p;return Bi().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(Date.now()-t>15e3)){n.next=3;break}throw oe.log("Timed out and no response received from process and/or server"),new Error("Unable to get process connection info (timed out)");case 3:for(o=hi()(null===(i=r.config.user)||void 0===i?void 0:i.id),a=`https://${e}.${o}.adobelocalhost.com`,s=[],c=d[0];c<=d[1];c+=1)s.push(`${a}:${c}`);return r.resetAbortController(),n.next=10,Promise.allSettled(s.map((e=>fetch(e))));case 10:return n.prev=10,n.next=13,Promise.all([r._fetchProcessConnectInfo(e).catch((()=>{})),se(1e3)]);case 13:if(l=n.sent,u=ji(l,1),p=u[0]){n.next=18;break}throw new Se("MALFORMED_RESPONSE",`Invalid response retrieving process connection data for uuid: ${e}`);case 18:return n.abrupt("return",p);case 21:return n.prev=21,n.t0=n.catch(10),oe.error(String(n.t0)),n.abrupt("return",r._requestProcessToUploadData(e,t));case 25:case"end":return n.stop()}}),n,null,[[10,21]])})))()}_fetchProcessConnectInfo(e){var t=this;return Ui(Bi().mark((function r(){var n,i,o,a,s;return Bi().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=`https://${t.driverConfig.hostname}/api/v1/client-tokens/${e}`,r.next=3,t.fetch(n).then((e=>e.json()),(e=>oe.error(e)));case 3:if(i=r.sent,o=JSON.parse(i.token),a=o.restApiToken,s=o.restApiPort,a&&s){r.next=7;break}throw new Se("MALFORMED_RESPONSE","Response did not include necessary process connection data");case 7:return r.abrupt("return",{hostname:`http://127.0.0.1:${s}`,token:a});case 8:case"end":return r.stop()}}),r)})))()}getClientInfo(){var e;return{deviceId:`${this._clientId}-${null===(e=this.config.user)||void 0===e?void 0:e.id}`,device:"undefined"!=typeof window?window.navigator.userAgent:"node-js",app:this._clientId}}getTempDir(e){return Ui(Bi().mark((function e(){return Bi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("Not supported in cloud mode.");case 1:case"end":return e.stop()}}),e)})))()}ignoreLocalSyncEvents(){return!1}}Hi([ln("cclibraries-cloudDriver-getLibraryById")],Ji.prototype,"getLibraryById",null),Hi([ln("cclibraries-cloudDriver-getAllElements")],Ji.prototype,"_getAllElements",null),Hi([ln("cclibraries-cloudDriver-getElementsOfTypeByAssetId")],Ji.prototype,"_getElementsOfTypeByAssetId",null),Hi([ln("cclibraries-cloudDriver-getTeams")],Ji.prototype,"getTeams",null),Hi([ln("cclibraries-cloudDriver-getProjects")],Ji.prototype,"getProjects",null),Hi([ln("cclibraries-cloudDriver-getProjectByName")],Ji.prototype,"getProjectByName",null),Hi([ln("cclibraries-cloudDriver-getProjectGradient")],Ji.prototype,"getProjectGradient",null),Hi([ln("cclibraries-cloudDriver-getRendition")],Ji.prototype,"getRendition",null),Hi([ln("cclibraries-cloudDriver-fetch")],Ji.prototype,"fetch",null),Hi([ln("cclibraries-cloudDriver-stageRepresentationForCommit")],Ji.prototype,"stageRepresentationForCommit",null);class Qi{static getInstance(e){let t=this.libAbortControllerMap.get(e);return t||(t=new AbortController,this.libAbortControllerMap.set(e,t)),t}static removeInstance(e){return this.libAbortControllerMap.delete(e)}}function eo(e,t=!1){var r;const n=!t&&e.is_writable,i={id:e.id,etag:e.etag,name:e.name,ownership:e.ownership,default:e.default,localizedNames:e.localized_names,toolkitId:e.toolkit_id,documentId:e.document_id,documentType:e.document_type,createdDate:e.created_date,modifiedDate:e.modified_date,groups:(e.groups||[]).map(io),details:{elementCount:e.details.num_elements,documentationElementCount:e.details.num_documentation_elements,removedElementCount:e.details.num_archived_elements},renditionGrid:e.rendition_grid,collaboration:e.collaboration,assetId:e.asset_id,isWritable:n,isParentWritable:!t&&e.is_parent_writable,team:e.team_id?{id:e.team_id}:void 0,roles:e.roles,owner:e.owner,ownerType:e.owner_type,customData:e.custom_data,isLibraryLoaded:!0,storageUsed:e.storage_used,publicLinkId:(o=e.public_link,null==o?void 0:o.substring(o.lastIndexOf("/")+1)),locallyManaged:e.locally_managed,bookmark:e.bookmark,removeType:null!==(r=e.remove_type)&&void 0!==r?r:n?"delete":"none",deletable:n};var o;return e.elements&&(i.elements=e.elements.map(ro)),i}function to(e){var t,r;return{id:e.id,name:e.name,ownership:e.ownership,default:e.default,localized_names:e.localizedNames,toolkit_id:e.toolkitId,document_id:e.documentId,document_type:e.documentType,groups:null===(t=e.groups)||void 0===t?void 0:t.map(oo),collaboration:e.collaboration,details:{num_elements:0,num_documentation_elements:0,num_archived_elements:0},team_id:null===(r=e.team)||void 0===r?void 0:r.id,roles:e.roles,custom_data:e.customData}}function ro(e){var t,r,n;return{id:e.id,name:e.name,isAutoNamed:e.is_auto_named,autoName:e.auto_name,type:e.type,libraryId:null===(t=e.library)||void 0===t?void 0:t.id,sourceRef:e.source_ref,sourceModifiedDate:e.source_modified_date,tags:e.tags,dependencyIds:e.dependency_ids,localizedNames:e.localized_names,createdDate:e.created_date,createdLocally:e.created_locally,createdBy:e.created_by,createdContext:e.created_context,modifiedDate:e.modified_date,modifiedLocally:e.modified_locally,modifiedBy:e.modified_by,modifiedContext:e.modified_context,description:e.description,descriptionModifiedDate:e.description_modified_date,descriptionModifiedLocally:e.description_modified_locally,descriptionModifiedBy:e.description_modified_by,descriptionModifiedContext:e.description_modified_context,removedDate:e.removed_date,removedLocally:e.removed_locally,removedBy:e.removed_by,removedContext:e.removed_context,representations:null===(r=e.representations)||void 0===r?void 0:r.map(co),groups:null===(n=e.groups)||void 0===n?void 0:n.map(ao),roles:e.roles,customData:e.custom_data,elementRef:e.element_ref}}function no(e){var t,r;return{id:e.id,name:e.name,is_auto_named:e.isAutoNamed,auto_name:e.autoName,type:e.type,source_ref:e.sourceRef,description:e.description,tags:e.tags,dependency_ids:e.dependencyIds,localized_names:e.localizedNames,created_date:e.createdDate,modified_date:e.modifiedDate,representations:null===(t=e.representations)||void 0===t?void 0:t.map((e=>lo(e,!1))),groups:null===(r=e.groups)||void 0===r?void 0:r.map(so),roles:e.roles,custom_data:e.customData}}function io(e){return{id:e.id,classifier:e.classifier,name:e.name,order:e.order,parentId:e.parent_id,localizedNames:e.localized_names,createdDate:e.created_date,createdBy:e.created_by,createdContext:e.created_context,createdLocally:e.created_locally,modifiedDate:e.modified_date,modifiedBy:e.modified_by,modifiedContext:e.modified_context,modifiedLocally:e.modified_locally,sourceRef:e.source_ref,customData:e.custom_data}}function oo(e){return{id:e.id,classifier:e.classifier,name:e.name,order:e.order,parent_id:e.parentId,localized_names:e.localizedNames,created_date:e.createdDate,modified_date:e.modifiedDate,source_ref:e.sourceRef,custom_data:e.customData}}function ao(e){return{id:e.id,classifier:e.classifier,order:e.order}}function so(e){return{id:e.id,classifier:e.classifier,order:e.order}}function co(e){var t;return{id:e.id,type:e.type,relationship:e.relationship,isFullSize:e.is_full_size,isExternalLink:e.is_external_link,isPreferredThumbnail:e.is_preferred_thumbnail,customData:e.custom_data,path:e.path,width:e.width,height:e.height,contentLength:e.content_length,url:e.url,children:null===(t=e.children)||void 0===t?void 0:t.map(co)}}function lo(e,t=!1){var r;return{id:e.id,type:e.type,relationship:t?void 0:e.relationship,is_full_size:!1,is_external_link:!1,source:e.source,children:null===(r=e.children)||void 0===r?void 0:r.map((e=>lo(e,!0))),custom_data:e.customData}}function uo(e){return{name:e.name,id:e.id,owner:{type:e.ownerType,id:e.ownerId},ownerName:e.ownerName,isWritable:e.permissions.includes("write")}}function po(e){return{name:e.name,id:e.id,owner:{type:e.storageAssignee.type,id:e.storageAssignee.id},ownerName:e.storageAssignee.displayName,isReadOnly:e.isReadOnly,isWritable:!0}}function ho(e,t){if(e=(e||"0").toString().replace(/(\.0)*$/,"").replace(/[^.0-9]+/gim,"."),t=(t||"0").toString().replace(/(\.0)*$/,"").replace(/[^.0-9]+/gim,"."),(isNaN(parseInt(e,10))||parseInt(e,10)>250)&&(e="0"),(isNaN(parseInt(t,10))||parseInt(t,10)>250)&&(t="0"),e===t)return 0;const r=e.split("."),n=t.split(".");let i;for(let e=0;e<r.length&&e<n.length;e++){if(i=parseInt(r[e],10)-parseInt(n[e],10),isNaN(i))return isNaN(parseInt(r[e],10))?1:-1;if(i>0)return-1;if(i<0)return 1}return i=r.length-n.length,i>0?-1:i<0?1:0}function fo(){fo=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function mo(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}Qi.libAbortControllerMap=new Map;const go=["updateLibrary","createElement","updateElement","removeElement","restoreElement","deleteElement","createGroup","updateGroup","removeGroup"];function vo(e,t){return Object.assign(Object.assign({},e),{data:t,originalAction:e})}const yo={updateLibrary:(e,t)=>vo(e,eo(t)),createElement:(e,t)=>vo(e,ro(t)),updateElement:(e,t)=>vo(e,ro(t)),restoreElement:(e,t)=>vo(e,ro(t)),removeElement:e=>e,deleteElement:e=>e,createGroup:(e,t)=>vo(e,io(t)),updateGroup:(e,t)=>vo(e,io(t)),removeGroup:e=>e};class bo extends Ve{constructor(){super(...arguments),this._actionMappers={updateLibrary:e=>({method:"PUT",path:"",body:to(e.data)}),createElement:e=>({method:"POST",path:"elements",body:no(e.data)}),updateElement:e=>({method:"PUT",path:`elements/${wn(e.path)}`,body:no(e.data)}),removeElement:e=>({method:"DELETE",path:`elements/${wn(e.path)}`}),restoreElement:e=>({method:"POST",path:`removed_elements/${e.data.id}/restore`}),deleteElement:e=>({method:"DELETE",path:`elements/${wn(e.path)}?permanent=true`}),createGroup:e=>({method:"POST",path:"groups",body:oo(e.data)}),updateGroup:e=>({method:"PUT",path:`groups/${Ln(e.path)}`,body:oo(e.data)}),removeGroup:e=>{var t;return{method:"DELETE",path:`groups/${Ln(e.path)}${(null===(t=e.flags)||void 0===t?void 0:t.includeElements)?"?include_contents=true":""}`}}},this._actions=[]}execute(){var e,t=this;return(e=fo().mark((function e(){var r,n,i,o,a;return fo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t._actions.map((e=>t._actionMappers[e.name](e))),n=Hn(r),e.next=4,t._driver.fetch(`/libraries/${t._library.id}`,{method:"PATCH",headers:{"If-Match":t._library.etag},body:JSON.stringify(n)});case 4:return i=e.sent,e.next=7,i.json();case 7:if(o=e.sent,Array.isArray(o)&&o.length===t._actions.length){e.next=10;break}throw new J("INVALID_RESPONSE","Malformed batch response.",t._library.id);case 10:return a=Rn(a=t._actions.map(((e,t)=>yo[e.name](e,o[t])))),e.abrupt("return",{actions:a,etag:i.headers.get("ETag")});case 13:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){mo(o,n,i,a,s,"next",e)}function s(e){mo(o,n,i,a,s,"throw",e)}a(void 0)}))})()}supportsAction(e){return function(e){return go.includes(e.name)}(e)}}function _o(){_o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Eo(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}!function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);o>3&&a&&Object.defineProperty(t,r,a)}([ze],bo.prototype,"execute",null);class wo extends Ve{supportsAction(e){return"updateElementContent"===e.name}addAction(e){return(!this._actions[0]||this._actions[0].path===e.path)&&super.addAction(e)}execute(){var e,t=this;return(e=_o().mark((function e(){var r,n,i,o,a;return _o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t._actions[t._actions.length-1],e.next=3,t._updateElementContent(wn(r.path),r.data);case 3:return n=e.sent,e.next=6,n.json();case 6:return i=e.sent,o=ro(i),a=t._actions.map(((e,r)=>r!==t._actions.length-1?Object.assign(Object.assign({},e),{type:"no-op",originalAction:e}):Object.assign(Object.assign({},e),{data:o,originalAction:e}))),e.abrupt("return",{actions:a,etag:n.headers.get("ETag")});case 10:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Eo(o,n,i,a,s,"next",e)}function s(e){Eo(o,n,i,a,s,"throw",e)}a(void 0)}))})()}_updateElementContent(e,t){const r=Object.assign(Object.assign({},t),{representations:Vn(Dn(t.representations))});return this._driver.fetch(`/libraries/${this._library.id}/elements/${e}`,{method:"PUT",headers:{"If-Match":this._library.etag},body:JSON.stringify(no(r))})}}function xo(){xo=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Lo(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Oo(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Lo(o,n,i,a,s,"next",e)}function s(e){Lo(o,n,i,a,s,"throw",e)}a(void 0)}))}}!function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);o>3&&a&&Object.defineProperty(t,r,a)}([ze],wo.prototype,"execute",null);class So extends Ke{constructor(){var e,t,r,n,i;super(...arguments),e=this,this._actionMappers={createLibrary:e=>this._createLibraryActionMap(e),copyLibrary:e=>this._createLibraryActionMap(e),permanentlyDeleteLibrary:e=>this._permanentlyDeleteLibrary(e),removeLibrary:(i=Oo(xo().mark((function t(r){return xo().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._removeLibrary();case 2:return t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)}))),function(e){return i.apply(this,arguments)}),unfollowLibrary:(n=Oo(xo().mark((function t(r){return xo().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._removeLibrary("unfollow");case 2:return t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)}))),function(e){return n.apply(this,arguments)}),leaveLibrary:(r=Oo(xo().mark((function t(r){return xo().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._removeLibrary("leave");case 2:return t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)}))),function(e){return r.apply(this,arguments)}),moveLibrary:(t=Oo(xo().mark((function t(r){var n;return xo().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._moveLibrary();case 2:return n=t.sent,t.abrupt("return",Object.assign(Object.assign({},r),{data:n,originalAction:r}));case 4:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})}}supportsAction(e){return["createLibrary","removeLibrary","permanentlyDeleteLibrary","unfollowLibrary","leaveLibrary","copyLibrary","moveLibrary"].includes(e.name)}_createLibraryActionMap(e){var t=this;return Oo(xo().mark((function r(){var n;return xo().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._createLibrary(e);case 2:return n=r.sent,r.abrupt("return",Object.assign(Object.assign({},e),{type:"update",data:n,originalAction:e}));case 4:case"end":return r.stop()}}),r)})))()}_createLibrary(e){const t=e.data,r=void 0===t?{}:t,n=e.flags,i=void 0===n?{}:n;return new Promise(((e,t)=>{var n,o;const a=this._driver.fetch("/libraries",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:r.name,team_id:null===(n=r.team)||void 0===n?void 0:n.id,roles:r.roles,team_permission_inheritance:i.permissionInheritance,source:null===(o=i.source)||void 0===o?void 0:o.id})}),s=new Be(this._driver,a);s.on("change",((r,n)=>{if(r){s.error&&t(s.error);const r=n?eo(n):void 0;e(r)}}))}))}_permanentlyDeleteLibrary(e){throw new Error("permanentlyDeleteLibrary not supported by LocalDriver, use removeLibrary instead")}_removeLibrary(e="remove"){return"remove"===e&&Qi.getInstance(this._library.id).abort(),this._driver.fetch(`/libraries/${this._library.id}?action=${e}`,{method:"DELETE"}).then((()=>{"remove"===e&&Qi.removeInstance(this._library.id)}))}_moveLibrary(){return this._driver.moveLibrary(this._library.id,this.action.data.team.id)}}function To(){To=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Po(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class Io extends ni{constructor(){var e,t,r;super(...arguments),e=this,this._actionMappers={uploadComponent:(t=To().mark((function t(r){var n;return To().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._driver.stageRepresentationForCommit(r.library,r.data.file,r.data.type);case 2:return n=t.sent,t.abrupt("return",Object.assign(Object.assign({},r),{data:{path:n},originalAction:r}));case 4:case"end":return t.stop()}}),t)})),r=function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){Po(o,n,i,a,s,"next",e)}function s(e){Po(o,n,i,a,s,"throw",e)}a(void 0)}))},function(e){return r.apply(this,arguments)})}}supportsAction(e){return"uploadComponent"===e.name}}function Ao(){Ao=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Co(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class ko extends Tn{_doMoveCopyRequest(e,t,r,n){var i,o=this;return(i=Ao().mark((function t(){var i,a,s,c;return Ao().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=o._library.id,a=r.id,t.next=4,o._driver.fetch(`/libraries/${a}/elements`,{method:"POST",headers:{"If-Match":r.etag},body:JSON.stringify({[e?"self":"source"]:{id:i,elements:n,etag:o._library.etag}})});case 4:return s=t.sent,t.next=7,s.json();case 7:return c=t.sent,t.abrupt("return",{elements:c.elements.map(ro),etag:s.headers.get("ETag"),sourceEtag:s.headers.get("Source-ETag")});case 9:case"end":return t.stop()}}),t)})),function(){var e=this,t=arguments;return new Promise((function(r,n){var o=i.apply(e,t);function a(e){Co(o,r,n,a,s,"next",e)}function s(e){Co(o,r,n,a,s,"throw",e)}a(void 0)}))})()}}function Do(){Do=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function No(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class Ro extends Ve{get action(){return this._actions[0]}supportsAction(e){return["moveGroup","copyGroup","dependent"].includes(e.name)}addAction(e){return!!this.supportsAction(e)&&(this._actions[this._actions.length-1]||"dependent"===e.name?"dependent"===e.name&&super.addAction(e):super.addAction(e))}execute(){var e,t=this;return(e=Do().mark((function e(){var r,n,i,o,a,s,c,l,u,d,p;return Do().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i="moveGroup"===t.action.name,o=t._library.id,a=null===(r=t.action.link)||void 0===r?void 0:r.library,s=null==a?void 0:a.id,c=Ln(t.action.path),e.next=7,t._driver.fetch(`/libraries/${s}/groups`,{method:"POST",headers:{"If-Match":null==a?void 0:a.etag},body:JSON.stringify({[i?"self":"source"]:{id:o,group_id:c,include_contents:null===(n=t.action.flags)||void 0===n?void 0:n.includeElements,etag:t._library.etag}})});case 7:return l=e.sent,e.next=10,l.json();case 10:return u=e.sent,a===t._library?(d=[],p=t._actions.map((e=>"dependent"!==e.name?e:Object.assign(Object.assign({},e),{data:u,originalAction:e})))):(p=t._actions,d=t._actions.map((e=>Object.assign(Object.assign({},e.link),{data:u,originalAction:e.link})))),e.abrupt("return",{actions:p,etag:l.headers.get("Source-ETag"),linkedActions:d});case 13:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){No(o,n,i,a,s,"next",e)}function s(e){No(o,n,i,a,s,"throw",e)}a(void 0)}))})()}}!function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);o>3&&a&&Object.defineProperty(t,r,a)}([ze],Ro.prototype,"execute",null);class Mo extends(ee()){constructor(e){super(),this._listenedEvents=new Set,this._errorCount=0,this._eventSource=new EventSource(e),this._eventSource.onopen=()=>{this._errorCount=0},this._eventSource.onerror=e=>{this._errorCount+=1,this._errorCount>=3&&(this.close(),this.emit("error",e))}}on(e,t){return super.on(e,t),this._listenedEvents.has(e)||(this._listenedEvents.add(e),this._eventSource.addEventListener(e,(t=>{oe.log(`[NOTIFICATIONS] Received event: ${e}`);try{this.emit(e,JSON.parse(t.data))}catch(e){t.data?this.emit("error",new J("INVALID_JSON","Received invalid JSON")):this.emit("error",new J("INVALID_RESPONSE","Received invalid response (no data)"))}}))),this}close(){this.removeAllListeners(),this._eventSource.close()}}class jo extends(ee()){constructor(e){super();const t=e.replace(/http(s?):\/\//,"ws$1://");this._ws=new WebSocket(t),this._ws.addEventListener("message",(e=>{try{const t=JSON.parse(e.data),r=t.type,n=t.message;oe.log(`[NOTIFICATIONS] Received event: ${r}`),this.emit(r,n)}catch(e){this.emit("error",new J("INVALID_JSON","Received invalid JSON"))}})),this._ws.addEventListener("error",(e=>{this.close(),this.emit("error",e)}))}get isOpen(){return this._ws.readyState===this._ws.OPEN}close(){this.isOpen&&(this.removeAllListeners(),this._ws.close())}}var Fo,Zo,Bo,Go=r(20286),Uo=r.n(Go);class Ho extends(ee()){constructor(e){super();const t=e.replace(/http(s?):\/\//,"ws$1://");this._ws=new(Uo())(t),this._ws.addEventListener("message",(e=>{try{const t=JSON.parse(e.data),r=t.type,n=t.message;oe.log(`[NOTIFICATIONS] Received event: ${r}`),this.emit(r,n)}catch(e){this.emit("error",new J("INVALID_JSON","Received invalid JSON"))}})),this._ws.addEventListener("error",(e=>{this.close(),this.emit("error",e)}))}get isOpen(){return this._ws.readyState===this._ws.OPEN}close(){this.isOpen&&(this.removeAllListeners(),this._ws.close())}}const zo="undefined"==typeof window?Ho:(null===(Bo=null===(Zo=null===(Fo=null===window||void 0===window?void 0:window.navigator)||void 0===Fo?void 0:Fo.userAgent)||void 0===Zo?void 0:Zo.startsWith)||void 0===Bo?void 0:Bo.call(Zo,"Adobe UXP Runtime"))?jo:Mo;function Vo(){Vo=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Yo(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Wo(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Yo(o,n,i,a,s,"next",e)}function s(e){Yo(o,n,i,a,s,"throw",e)}a(void 0)}))}}class Ko{constructor(e,t,r=2e3,n=8e3){this.vulcanInterface=e,this.VulcanMessage=t,this._timeout=r,this._launchTimeout=n}_generateListener(e,t){const r=n=>{clearTimeout(this._timeoutId),this.removeListener(r,t),e(n)};return r}_connectionInfoHandler(e,t){var r=this;return Wo(Vo().mark((function n(){var i,o;return Vo().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(null==t?void 0:t.aborted)){n.next=2;break}return n.abrupt("return");case 2:if(e){n.next=4;break}throw new J("REQUEST_FAILED","No Vulcan response received");case 4:if(n.prev=4,i=JSON.parse(r.getPayload(e)),o={apiVersion:i.apiVersion,apiMinVersion:i.apiMinVersion,apiMaxVersion:i.apiMaxVersion},!i.updateRequired){n.next=9;break}return n.abrupt("return",Object.assign(Object.assign({},o),{updateRequired:i.updateRequired}));case 9:if(!i.serviceToken||!i.serviceHostname){n.next=11;break}return n.abrupt("return",Object.assign(Object.assign({},o),{token:i.serviceToken,hostname:i.serviceHostname}));case 11:throw new J("INVALID_RESPONSE","Incorrect data was returned via Vulcan");case 14:throw n.prev=14,n.t0=n.catch(4),new J("INVALID_RESPONSE","Incorrect data was returned via Vulcan",void 0,n.t0);case 17:case"end":return n.stop()}}),n,null,[[4,14]])})))()}_launchProcessHandler(e,t){var r=this;return Wo(Vo().mark((function n(){return Vo().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(null==t?void 0:t.aborted)){n.next=2;break}return n.abrupt("return");case 2:if(e){n.next=4;break}throw new J("REQUEST_FAILED","No Vulcan response received");case 4:return n.abrupt("return",r._requestConnectionInfo(t));case 5:case"end":return n.stop()}}),n)})))()}_launchProcess(e){return new Promise((t=>{const r=this._generateListener((r=>t(this._launchProcessHandler(r,e))),this.getMessageType("INITIALIZE"));this._timeoutId=setTimeout(r,this._launchTimeout),this.sendMessage(r,this.getMessageType("INITIALIZE")),this.launchApp(r)}))}_requestConnectionInfo(e){return new Promise((t=>{const r=this._generateListener((r=>{t(this._connectionInfoHandler(r,e))}));this._timeoutId=setTimeout(r,this._timeout),this.sendMessage(r)}))}connect(e){var t=this;return Wo(Vo().mark((function r(){return Vo().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._requestConnectionInfo(e).catch(function(){var r=Wo(Vo().mark((function r(n){return Vo().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.isAppRunning().catch((()=>!1));case 2:if(r.sent){r.next=4;break}return r.abrupt("return",t._launchProcess(e));case 4:throw n;case 5:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()));case 1:case"end":return r.stop()}}),r)})))()}getMessageType(e){return this.messageTypes[e]}}function $o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||Xo(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qo(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Xo(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function Xo(e,t){if(e){if("string"==typeof e)return Jo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Jo(e,t):void 0}}function Jo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Qo(){Qo=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ea(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function ta(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ea(o,n,i,a,s,"next",e)}function s(e){ea(o,n,i,a,s,"throw",e)}a(void 0)}))}}var ra=function(e){return this instanceof ra?(this.v=e,this):new ra(e)},na=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||s(e,t)}))})}function s(e,t){try{(r=i[e](t)).value instanceof ra?Promise.resolve(r.value.v).then(c,l):u(o[0][2],r)}catch(e){u(o[0][3],e)}var r}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}},ia=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,(t=e[r](t)).done,t.value)}))}}},oa=function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:ra(e[n](t)),done:"return"===n}:i?i(t):t}:i}};const aa={field:"modifiedDate",direction:"descending"},sa={reconnectOnErrors:[401,403],reconnectOnNoResponse:!0};class ca extends Le{constructor(e,t={}){super(e),this._libraryChangeListener=()=>{},this._renditionCacheChangeListener=()=>{},this._lastNotificationPayload={},this._operationTypes=[bo,wo,So,ko,Ro,Io],this._handleConfigurationMutation=e=>{const t=new ae(e);return this._needToReconnect(t)&&this.reconnect(),this._config=t,this.emit("configChange"),this.config},this._handleRenditionCacheMutation=e=>{this._renditionCacheChangeListener(ro(e))},this._handleLibraryMutation=e=>{if(!e)return;const t=new Set(Object.keys(e)),r=Object.keys(this._lastNotificationPayload).filter((r=>{const n=e[r];return t.delete(r),!n||"number"!=typeof n&&"string"!=typeof n}));r.push(...t),this._lastNotificationPayload=Object.keys(e).reduce(((t,r)=>{const n=e[r];return"number"==typeof n||"string"==typeof n?n&&(t[r]=n):t[r]=n.modified_date,t}),{}),this._libraryChangeListener(r)},this._options=t}getLibrary(e,t){return this._getLibraryById(e.id,t)}getElements(e,...t){return this._getElementsByLibraryId(e.id,...t)}getRemovedElements(e,...t){return this._getRemovedElementsByLibraryId(e.id,...t)}getDocumentationElements(e,...t){return this._getDocumentationElementsByLibraryId(e.id,...t)}getElement(e,t){return this._getElement(e.id,t)}reconnect(){var e;return null===(e=this._notificationEventSource)||void 0===e||e.close(),this.isConnected?super.reconnect():Promise.resolve()}_handleConnected(e){var t=this;return ta(Qo().mark((function r(){return Qo().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!("updateRequired"in e)){r.next=3;break}throw t._handleConfigurationMutation({config:{},environment:t._config.environment,processInfo:{updateRequired:e.updateRequired,apiVersion:e.apiVersion}}),new J("CONNECTION_FAILED",`LocalDriver failed to connect - ${e.updateRequired} update required`);case 3:return t._hostname=e.hostname,t._token=e.token,t._cloudParams=e.cloudParams,t._notificationEventSource=new zo(`${t._hostname}/notifications?token=${t._token}`),t._notificationEventSource.on("error",(e=>{e instanceof J&&"INVALID_JSON"===e.code?oe.log("[NOTIFICATIONS] Received invalid JSON object."):t.reconnect()})),r.next=10,t.getConfiguration();case 10:t._notificationEventSource.on("configurationMutation",t._handleConfigurationMutation.bind(t)),t._notificationEventSource.on("libraryMutation",t._handleLibraryMutation.bind(t)),t._notificationEventSource.on("renditionCacheMutation",t._handleRenditionCacheMutation.bind(t));case 13:case"end":return r.stop()}}),r)})))()}_handleDisconnected(){var e;null===(e=this._notificationEventSource)||void 0===e||e.close()}get cloudParams(){var e,t;if(this._cloudParams&&(null===(e=this.config.user)||void 0===e?void 0:e.id))return Object.assign(Object.assign({},this._cloudParams),{userId:null===(t=this.config.user)||void 0===t?void 0:t.id})}getCloudDriver(){var e=this;if(!this.cloudParams)return;const t=function(){var t=ta(Qo().mark((function t(){var r,n,i,o,a,s,c;return Qo().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.cloudParams,n=r.userId,i=r.clientId,o=r.clientSecret,a=r.scopes,t.next=3,e.fetchAccessToken(n,i,o,a);case 3:return s=t.sent,c=s.access_token,t.abrupt("return",{env:e.config.environment,token:c});case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return new Ji(t)}fetchAccessToken(e,t,r,n){var i;return this.fetch("/configuration/access_token",{method:"POST",body:JSON.stringify({userId:null===(i=this._config.user)||void 0===i?void 0:i.id,clientId:t,clientSecret:r,scopes:n})}).then((e=>e.json()))}_getElement(e,t){return this.fetch(`/libraries/${e}/elements/${t}`).then((e=>e.json())).then(ro)}_getElementsOfType(e,t,r=aa,n,i){return na(this,arguments,Qo().mark((function r(){var o,a,s;return Qo().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o={},n&&(o["if-none-match"]=n),r.next=4,ra(this.fetch(`/libraries/${t}/${e}`,{headers:o,signal:i}));case 4:return a=r.sent,r.next=7,ra(a.json());case 7:return s=r.sent,r.next=10,ra(s.elements.map(ro));case 10:return r.next=12,r.sent;case 12:case"end":return r.stop()}}),r,this)})))}_getElementsByLibraryId(e,t=aa,r,n,i){return na(this,arguments,Qo().mark((function n(){return Qo().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=ra,n.delegateYield(oa(ia(this._getElementsOfType("elements",e,t,r,i))),"t1",2);case 2:return n.t2=n.t1,n.next=5,(0,n.t0)(n.t2);case 5:case"end":return n.stop()}}),n,this)})))}getSearchResults(e,t,r,n){return na(this,arguments,Qo().mark((function i(){var o,a,s,c,l,u,d;return Qo().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t.elements_only=!0,o="name"===r.field?"name":"modified_date","descending"===r.direction&&(o=`-${o}`),a=e=>{var t,r;return null!==(r=null===(t=e.results)||void 0===t?void 0:t.map(ro))&&void 0!==r?r:[]},s={method:"POST",headers:{"Content-Type":"application/json"},signal:n},c=300,"type"===r.sectionType){i.next=15;break}return s.body=JSON.stringify({q:e,order_by:o,filters:t,limit:c}),i.t0=ra,i.delegateYield(oa(ia(this.fetchAllPages("/search",s,a))),"t1",10);case 10:return i.t2=i.t1,i.next=13,(0,i.t0)(i.t2);case 13:i.next=37;break;case 15:l=qo(r.sections),i.prev=16,l.s();case 18:if((u=l.n()).done){i.next=29;break}return d=u.value,t.element_types=t.element_types=[d],s.body=JSON.stringify({q:e,order_by:o,filters:t,limit:c}),i.t3=ra,i.delegateYield(oa(ia(this.fetchAllPages("/search",s,a))),"t4",24);case 24:return i.t5=i.t4,i.next=27,(0,i.t3)(i.t5);case 27:i.next=18;break;case 29:i.next=34;break;case 31:i.prev=31,i.t6=i.catch(16),l.e(i.t6);case 34:return i.prev=34,l.f(),i.finish(34);case 37:case"end":return i.stop()}}),i,this,[[16,31,34,37]])})))}fetchAllPages(e,t,r){var n,i,o,a;return na(this,arguments,Qo().mark((function s(){var c,l,u;return Qo().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:c=e;case 1:if(!c){s.next=14;break}return s.next=4,ra(this.fetch(c,t).then((e=>e.json())));case 4:return l=s.sent,s.next=7,ra(r(l));case 7:return s.next=9,s.sent;case 9:c=null===(i=null===(n=l._links)||void 0===n?void 0:n.next)||void 0===i?void 0:i.uri,(u=null===(a=null===(o=l._links)||void 0===o?void 0:o.next)||void 0===a?void 0:a.body)&&(t.body=JSON.stringify(u)),s.next=1;break;case 14:case"end":return s.stop()}}),s,this)})))}_getDocumentationElementsByLibraryId(e,t=aa,r){return na(this,arguments,Qo().mark((function n(){return Qo().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=ra,n.delegateYield(oa(ia(this._getElementsOfType("documentation_elements",e,t,r))),"t1",2);case 2:return n.t2=n.t1,n.next=5,(0,n.t0)(n.t2);case 5:case"end":return n.stop()}}),n,this)})))}_getRemovedElementsByLibraryId(e,t=aa,r){return na(this,arguments,Qo().mark((function n(){return Qo().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=ra,n.delegateYield(oa(ia(this._getElementsOfType("removed_elements",e,t,r))),"t1",2);case 2:return n.t2=n.t1,n.next=5,(0,n.t0)(n.t2);case 5:case"end":return n.stop()}}),n,this)})))}getTeams(){var e=this;return ta(Qo().mark((function t(){var r,n;return Qo().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetch("/teams");case 2:return r=t.sent,t.next=5,r.json();case 5:return n=t.sent,t.abrupt("return",void 0!==n.teams?n.teams.map(uo):[]);case 7:case"end":return t.stop()}}),t)})))()}getProjects(){var e=this;return ta(Qo().mark((function t(){var r,n,i,o;return Qo().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetch("/projects");case 2:return i=t.sent,t.next=5,i.json();case 5:return o=t.sent,t.abrupt("return",null!==(n=null===(r=null==o?void 0:o.projects)||void 0===r?void 0:r.map(po))&&void 0!==n?n:[]);case 7:case"end":return t.stop()}}),t)})))()}getProjectGradient(e){var t=this;return ta(Qo().mark((function r(){var n,i;return Qo().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.fetch(`/projects/${e.id}/gradient`);case 2:return n=r.sent,r.next=5,n.json();case 5:return i=r.sent,r.abrupt("return",i.gradient?{type:(o=i.gradient).type,angle:o.angle,stops:o.stops}:void 0);case 7:case"end":return r.stop()}var o}),r)})))()}getGroups(e){return na(this,arguments,Qo().mark((function e(){return Qo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ra(Promise.resolve(void 0));case 2:return e.next=4,e.sent;case 4:case"end":return e.stop()}}),e)})))}getLibraries(){return na(this,arguments,Qo().mark((function e(){var t;return Qo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="/libraries",this._options.ignoreRenditionGrids||(t+="?includeRenditionGrid=true"),e.next=4,ra(this.fetch(t).then((e=>e.json())).then((e=>void 0!==e.libraries?e.libraries.map((e=>eo(e,this._options.readOnly))):[])));case 4:return e.next=6,e.sent;case 6:case"end":return e.stop()}}),e,this)})))}getLibrariesList(){return na(this,arguments,Qo().mark((function e(){return Qo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ra(Promise.resolve(void 0));case 2:return e.next=4,e.sent;case 4:case"end":return e.stop()}}),e)})))}getLibrariesPage(){return na(this,arguments,Qo().mark((function e(){return Qo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ra(Promise.resolve(void 0));case 2:return e.next=4,e.sent;case 4:case"end":return e.stop()}}),e)})))}_getAllElements(e,t){var r,n;return na(this,arguments,Qo().mark((function i(){var o,a,s,c,l,u,d,p,h,f,m,g,v,y;return Qo().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:l={},u=0,d=[["elements","_getElementsByLibraryId"],["documentationElements","_getDocumentationElementsByLibraryId"],["removedElements","_getRemovedElementsByLibraryId"]];case 3:if(!(u<d.length)){i.next=47;break}if(p=$o(d[u],2),h=p[0],f=p[1],!t.types.includes(h)){i.next=44;break}i.prev=6,m=!0,a=void 0,g=ia(this[f](e,t.sort,t.etag,void 0,null===(r=t.abortController)||void 0===r?void 0:r.signal));case 8:return i.next=10,ra(g.next());case 10:if(v=i.sent,o=v.done){i.next=29;break}if(c=v.value,m=!1,i.prev=15,y=c,l[h]=l[h]||[],null===(n=l[h])||void 0===n||n.push(...y),!t.loadProgressively){i.next=24;break}return i.next=22,ra({[h]:l[h]});case 22:return i.next=24,i.sent;case 24:return i.prev=24,m=!0,i.finish(24);case 27:i.next=8;break;case 29:i.next=34;break;case 31:i.prev=31,i.t0=i.catch(6),a={error:i.t0};case 34:if(i.prev=34,i.prev=35,m||o||!(s=g.return)){i.next=39;break}return i.next=39,ra(s.call(g));case 39:if(i.prev=39,!a){i.next=42;break}throw a.error;case 42:return i.finish(39);case 43:return i.finish(34);case 44:u++,i.next=3;break;case 47:return i.next=49,ra(Object.assign({areElementsLoaded:!0},t.loadProgressively?{}:l));case 49:return i.next=51,i.sent;case 51:case"end":return i.stop()}}),i,this,[[6,31,34,44],[15,,24,27],[35,,39,43]])})))}getLibraryById(e,t){var r=this;return ta(Qo().mark((function n(){var i,o;return Qo().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._getLibraryById(e,t).next();case 2:return i=n.sent,o=i.value,n.abrupt("return",o);case 5:case"end":return n.stop()}}),n)})))()}_getLibraryById(e,t={}){var r;return na(this,arguments,Qo().mark((function n(){var i,o,a,s,c,l,u;return Qo().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=t.etag,n.prev=1,o={},i&&(o["if-none-match"]=i),void 0!==t.optimisticFetch&&(a={optimisticFetch:t.optimisticFetch}),s=`/libraries/${e}`,this._options.ignoreRenditionGrids||(s+="?includeRenditionGrid=true"),n.next=9,ra(this.fetch(s,{headers:o},a));case 9:if(202!==(c=n.sent).status){n.next=14;break}return n.next=13,ra(void 0);case 13:return n.abrupt("return",n.sent);case 14:return n.next=16,ra(c.json());case 16:return(l=n.sent).etag=c.headers.get("ETag"),t.elementParams?delete l.elements:null!==(r=l.elements)&&void 0!==r||(l.elements=[]),u=eo(l,this._options.readOnly),n.next=22,ra(u);case 22:return n.next=24,n.sent;case 24:n.next=30;break;case 26:if(n.prev=26,n.t0=n.catch(1),n.t0 instanceof Se&&"NOT_MODIFIED"===n.t0.code&&t.elementParams){n.next=30;break}throw n.t0;case 30:if(!t.elementParams){n.next=36;break}return n.t1=ra,n.delegateYield(oa(ia(this._getAllElements(e,Object.assign(Object.assign({},t.elementParams),{etag:t.firstElementsLoad?void 0:i})))),"t2",33);case 33:return n.t3=n.t2,n.next=36,(0,n.t1)(n.t3);case 36:case"end":return n.stop()}}),n,this,[[1,26]])})))}followLibrary(e,t){return this.fetch("/libraries",{method:"POST",body:JSON.stringify({follow:!0,type:"collab",id:t,assetId:e})}).then((()=>{}))}moveLibrary(e,t){return new Promise(((r,n)=>{const i=this.fetch("/libraries",{method:"POST",body:JSON.stringify({self:e,team_id:t})}),o=new Be(this,i);o.on("change",((e,t)=>{e&&(o.error?n(o.error):t?r(eo(t)):r())}))}))}importLibrary(e,t=(()=>{})){if("string"!=typeof e)throw new Error("Input must be a local path in local mode.");const r=this.fetch("/libraries",{method:"POST",body:JSON.stringify({source:{path:e}})}),n=new Be(this,r);return n.on("change",((e,r)=>{if(e){const e=r?eo(r):void 0;t(n.error,e)}})),n}exportLibrary(e,t,r=(()=>{})){if(!t)throw new Error("Destination path is required in local mode.");const n=this.fetch(`/libraries/${e.id}/export`,{method:"POST",body:JSON.stringify({path:t})}),i=new Be(this,n);return i.on("change",(e=>{e&&r(i.error)})),i}abortOperation(e){var t=this;return ta(Qo().mark((function r(){return Qo().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t.fetch(e,{method:"DELETE"}));case 1:case"end":return r.stop()}}),r)})))()}getRenditionUrl(e,t){return`${this._hostname}/libraries/${e.library.id}/elements/${e.id}/renditions/${t}?token=${this._token}`}getAuthenticatedThumbnailURL(e,t){return this.fetch(`/libraries/${e.library.id}/elements/${e.id}/renditions/${t}/url`,{headers:{"cache-control":"none"}}).then((e=>e.json())).then((e=>e.url))}getRenditionPath(e,t,r){const n=Qi.getInstance(e);return this.fetch(`/libraries/${e}/elements/${t}/renditions/${r}/path`,{headers:{"cache-control":"none"},signal:n.signal}).then((e=>e.json())).then((e=>e.path))}getRendition(e,t){return this.fetch(`/libraries/${e.library.id}/elements/${e.id}/renditions/${t}`)}getRepresentationContent(e){return this.fetch(`/libraries/${e.library.id}/elements/${e.element.id}/representations/${e.id}`)}setLibraryChangeListener(e,t){this._libraryChangeListener=t}setRenditionCacheChangeListener(e){this._renditionCacheChangeListener=e}setFontDataChangeListener(e){var t;this.removeFontDataChangeListeners(),null===(t=this._notificationEventSource)||void 0===t||t.on("fontDataMutation",e)}setSyncStateListener(e){var t,r;null===(t=this._notificationEventSource)||void 0===t||t.removeAllListeners("syncMutation"),null===(r=this._notificationEventSource)||void 0===r||r.on("syncMutation",e)}removeLibraryChangeListener(){var e;null===(e=this._notificationEventSource)||void 0===e||e.removeAllListeners("libraryMutation")}removeFontDataChangeListeners(){var e;null===(e=this._notificationEventSource)||void 0===e||e.removeAllListeners("fontDataMutation")}removeSyncStateListener(){var e;null===(e=this._notificationEventSource)||void 0===e||e.removeAllListeners("syncMutation")}removeRenditionCacheChangeListener(){var e;null===(e=this._notificationEventSource)||void 0===e||e.removeAllListeners("renditionCacheMutation")}_needToReconnect(e){var t,r,n;return(null===(r=null===(t=this.config)||void 0===t?void 0:t.user)||void 0===r?void 0:r.id)&&this.config.user.id!==(null===(n=e.user)||void 0===n?void 0:n.id)||!1}getConfiguration(){var e=this;return ta(Qo().mark((function t(){var r,n;return Qo().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetch("/configuration");case 2:return r=t.sent,t.next=5,r.json();case 5:return n=t.sent,e._handleConfigurationMutation(n),t.abrupt("return",e.config);case 8:case"end":return t.stop()}}),t)})))()}updateRenditionCacheConfiguration(e,t){var r=this;return ta(Qo().mark((function n(){return Qo().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e||t){n.next=2;break}return n.abrupt("return",r.config);case 2:return n.next=4,r.updateConfiguration({RENDITION_SIZES:e,FULL_RENDITION_CONFIG:t}).catch((e=>{oe.error(`Unable to update process configuration. ${e}`)}));case 4:return n.abrupt("return",r.config);case 5:case"end":return n.stop()}}),n)})))()}updateConfiguration(e){var t=this;return ta(Qo().mark((function r(){var n,i;return Qo().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!Object.keys(e).length){r.next=8;break}return r.next=3,t.fetch("/configuration",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});case 3:return n=r.sent,r.next=6,n.json();case 6:i=r.sent,t._handleConfigurationMutation(i);case 8:return r.abrupt("return",t.config);case 9:case"end":return r.stop()}}),r)})))()}setLocalSetting(e,t){var r=this;return ta(Qo().mark((function n(){return Qo().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return void 0===t&&(t=null),n.next=3,r.updateConfiguration(Object.fromEntries([[e,t]]));case 3:r._config.config[e]=t;case 4:case"end":return n.stop()}}),n)})))()}getLocalSetting(e){var t;return null===(t=this._config.config)||void 0===t?void 0:t[e]}getInstalledVersion(e){return this._config.installedApps.filter((t=>t.code.toLowerCase()===e.toLowerCase())).map((e=>e.version)).sort(ho)[0]}sendAction(e){var t=this;return ta(Qo().mark((function r(){return Qo().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t.fetch("/action",{method:"POST",body:e.toJSON()}));case 1:case"end":return r.stop()}}),r)})))()}openInCCD(e){var t=this;return ta(Qo().mark((function r(){return Qo().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t.fetch("/action/open_ccd",{method:"POST",body:JSON.stringify({path:e})}));case 1:case"end":return r.stop()}}),r)})))()}fetch(e,t,r={}){var n=this;return ta(Qo().mark((function i(){var o,a,s,c,l,u,d,p;return Qo().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return(t=t||{}).headers=t.headers||{},t.headers.token=n._token,t.headers["Content-Type"]=t.headers["Content-Type"]||"application/json",t.headers["x-client-version"]="15",r=Object.assign(Object.assign({},sa),r),!n._options.optimistic||void 0!==r.optimisticFetch&&!0!==r.optimisticFetch||(t.headers["x-optimism"]="true"),t.signal=t.signal?fe(t.signal,null===(o=n._abortController)||void 0===o?void 0:o.signal):null===(a=n._abortController)||void 0===a?void 0:a.signal,i.prev=8,i.next=11,fetch(`${/^https?:\/\//.test(e)?"":n._hostname}${e}`,t);case 11:if(!((l=i.sent).status>=300)){i.next=18;break}return i.next=15,l.text();case 15:throw u=i.sent,d=u.replace(/["]+/g,""),Te(l,d);case 18:return i.abrupt("return",l);case 21:if(i.prev=21,i.t0=i.catch(8),!Se.isRequestError(i.t0)){i.next=33;break}if(!(p=(null===(s=null==r?void 0:r.reconnectOnErrors)||void 0===s?void 0:s.includes(null===(c=i.t0.response)||void 0===c?void 0:c.status))&&n.isConnected)){i.next=29;break}n.reconnect(),i.next=31;break;case 29:if(p||i.t0.name!==O){i.next=31;break}return i.abrupt("return",new Response("{}"));case 31:i.next=34;break;case 33:"Failed to fetch"===i.t0.message&&(null==r?void 0:r.reconnectOnNoResponse)?(oe.warn(`Fetch request failed to respond: ${i.t0}`),n.reconnect()):"Network request failed"===i.t0.message&&(oe.warn(`Network request failed to respond: ${i.t0}`),n.reconnect());case 34:throw i.t0;case 35:case"end":return i.stop()}}),i,null,[[8,21]])})))()}copyFile(e,t,r=!1){var n=this;return ta(Qo().mark((function i(){var o,a;return Qo().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.fetch("/util/file/copy",{method:"POST",body:JSON.stringify({source:e,destination:t,allowOverride:Boolean(r)})},{reconnectOnNoResponse:!0,reconnectOnErrors:[401]});case 2:return o=i.sent,i.next=5,o.json();case 5:return a=i.sent,i.abrupt("return",a.path);case 7:case"end":return i.stop()}}),i)})))()}getFileSize(e){var t=this;return ta(Qo().mark((function r(){var n,i;return Qo().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.fetch("/util/file/size",{method:"POST",body:JSON.stringify({path:e})});case 2:return n=r.sent,r.next=5,n.json();case 5:return i=r.sent,r.abrupt("return",i.size);case 7:case"end":return r.stop()}}),r)})))()}getRenditionGrid(e){return e.renditionGrid}stageRepresentationForCommit(e,t,r){var n=this;return ta(Qo().mark((function e(){var r,i,o,a,c;return Qo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!(t instanceof File)){e.next=9;break}return e.next=4,n.fetch("/util/file",{method:"POST",headers:{"Content-Type":null===(i=s(null===(r=t.name)||void 0===r?void 0:r.split(".")[1]))||void 0===i?void 0:i[0]},body:t});case 4:return a=e.sent,e.next=7,a.json();case 7:return c=e.sent,e.abrupt("return",c.path);case 9:e.next=15;break;case 11:if(e.prev=11,e.t0=e.catch(0),(null===(o=null===e.t0||void 0===e.t0?void 0:e.t0.response)||void 0===o?void 0:o.status)!==L.INTERNAL_SERVER_ERROR){e.next=15;break}return e.abrupt("return",Promise.reject(e.t0));case 15:return e.abrupt("return",t.path);case 16:case"end":return e.stop()}}),e,null,[[0,11]])})))()}isSystemFontAvailable(e,t){var r=this;return ta(Qo().mark((function n(){var i,o;return Qo().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.fetch("/util/font/available",{method:"POST",body:JSON.stringify({font_name:e,match_family:t})});case 2:return i=n.sent,n.next=5,i.json();case 5:return o=n.sent,n.abrupt("return",o.is_font_available);case 7:case"end":return n.stop()}}),n)})))()}getFontData(e){var t=this;return ta(Qo().mark((function r(){var n,i;return Qo().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.fetch("/util/font/data",{method:"POST",body:JSON.stringify({font_id:e})});case 2:return n=r.sent,r.next=5,n.json();case 5:return i=r.sent,r.abrupt("return",i.font_data);case 7:case"end":return r.stop()}}),r)})))()}getTempDir(e){var t=this;return ta(Qo().mark((function r(){var n,i;return Qo().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e&&e.id){r.next=2;break}throw new J("INVALID_PARAMETER","Need to pass a library with an ID");case 2:return r.next=4,t.fetch(`/libraries/${e.id}/temp_dir`);case 4:return n=r.sent,r.next=7,n.json();case 7:return i=r.sent,r.abrupt("return",i.path);case 9:case"end":return r.stop()}}),r)})))()}getCollaborators(e){throw new J("NOT_IMPLEMENTED","LocalDriver.getCollaborators not implemented.")}ignoreLocalSyncEvents(){return!0}}function la(){la=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ua(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class da extends Ji{constructor(e,t,r={}){super((()=>t().then((e=>Object.assign({samDisableOns:!0},e))))),this._localConnector=e,this._cloudConnector=t,this._localDriver=new ca(e,Object.assign(Object.assign({},r),{optimistic:!0}))}connect(){return Promise.all([this.localDriver.connect(),super.connect()]).then((()=>{}))}get localDriver(){return this._localDriver}call(e,t,...r){return e.locallyManaged?this._localDriver[t](...r):super[t](...r)}_handleDisconnected(){super._handleDisconnected(),this.localDriver.isConnected&&this.localDriver.disconnect()}setLibraryChangeListener(e,t){this.localDriver.setLibraryChangeListener(e,t)}setFontDataChangeListener(e){this.localDriver.setFontDataChangeListener(e)}removeFontDataChangeListeners(){this.localDriver.removeFontDataChangeListeners()}getLibraries(){return this.localDriver.getLibraries()}getLibrary(e,t){return e.locallyManaged||(null==t?void 0:t.optimisticFetch)?this.localDriver.getLibrary(e,t):super.getLibrary(e,t)}getElements(e,t,r,n,i){return this.call(e,"getElements",t,r,n,i)}getElement(e,t){return this.call(e,"getElement",e,t)}getLibraryById(e,t){var r,n=()=>super.getLibraryById,i=this;return(r=la().mark((function r(){return la().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(null==t?void 0:t.optimisticFetch)&&!(null==t?void 0:t.locallyManaged)){r.next=2;break}return r.abrupt("return",i._localDriver._getLibraryById(e,t).next());case 2:return r.abrupt("return",n().call(i,e));case 3:case"end":return r.stop()}}),r)})),function(){var e=this,t=arguments;return new Promise((function(n,i){var o=r.apply(e,t);function a(e){ua(o,n,i,a,s,"next",e)}function s(e){ua(o,n,i,a,s,"throw",e)}a(void 0)}))})()}getRenditionUrl(e,t){return this.call(e.library,"getRenditionUrl",e,t)}getRendition(e,t){return this.call(e.library,"getRendition",e,t)}getRepresentationContent(e){return this.call(e.library,"getRepresentationContent",e)}getOperationTypes(e){return e.locallyManaged?this._localDriver.getOperationTypes(e):super.getOperationTypes(e)}operationFactory(e,t,r){return new e(r.locallyManaged?this._localDriver:this,r)}ignoreLocalSyncEvents(){return this.localDriver.isConnected?this.localDriver.ignoreLocalSyncEvents():super.ignoreLocalSyncEvents()}}function pa(e){return void 0!==e.launchAppEx?new ma(e):new fa(e)}class ha extends class{}{constructor(e){super(),this._specifer=_,this._vulcanInterface=e}addMessageListener(e,t,r){this.vulcanInterface.addMessageListener(e,t,r)}removeMessageListener(e,t,r){this.vulcanInterface.removeMessageListener(e,t,r)}dispatchMessage(e){this.vulcanInterface.dispatchMessage(e)}getPayload(e){return this.vulcanInterface.getPayload(e)}}class fa extends ha{constructor(e){super(e),this._vulcanInterface=e,this._specifer=_}get vulcanInterface(){return this._vulcanInterface}getTargetSpecifiers(){return this.vulcanInterface.getTargetSpecifiers()}launchApp(e,t){return this.vulcanInterface.launchApp(this._specifer,e,t)}isAppRunning(){return this.vulcanInterface.isAppRunning(this._specifer)}isAppInstalled(){return this.vulcanInterface.isAppInstalled(this._specifer)}getAppPath(){return this.vulcanInterface.getAppPath(this._specifer)}}class ma extends ha{constructor(e){super(e),this._specifer=E}get vulcanInterface(){return this._vulcanInterface}getTargetSpecifiers(){return this.vulcanInterface.getTargetSpecifiersEx()}launchApp(e,t){return this.vulcanInterface.launchAppEx(this._specifer,e,t)}isAppRunning(){return this.vulcanInterface.isAppRunningEx(this._specifer)}isAppInstalled(){return this.vulcanInterface.isAppInstalledEx(this._specifer)}getAppPath(){return this.vulcanInterface.getAppPathEx(this._specifer)}}function ga(){ga=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function va(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class ya extends Ko{constructor(e,t,r){super(pa(e),t,r),this.messageTypes={REQUEST:"vulcan.SuiteMessage.cclibraries.api.QueryRequest",RESPONSE:"vulcan.SuiteMessage.cclibraries.api.QueryResponse",INITIALIZE:"vulcan.SuiteMessage.cclibraries.service.Initialized"}}removeListener(e,t){return this.vulcanInterface.removeMessageListener(t||this.messageTypes.RESPONSE,e)}sendMessage(e,t){if(this.vulcanInterface.addMessageListener(t||this.messageTypes.RESPONSE,e),t!==this.messageTypes.INITIALIZE){const e=new this.VulcanMessage(this.messageTypes.REQUEST);e.setPayload(w),this.vulcanInterface.dispatchMessage(e)}}isAppRunning(){var e,t=this;return(e=ga().mark((function e(){return ga().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.vulcanInterface.isAppRunning());case 1:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){va(o,n,i,a,s,"next",e)}function s(e){va(o,n,i,a,s,"throw",e)}a(void 0)}))})()}launchApp(e){this.vulcanInterface.launchApp()}getPayload(e){return this.vulcanInterface.getPayload(e)}}const ba=(e,t,r=8e3)=>{const n=new ya(e,t,r);return e=>n.connect(e)};function _a(){_a=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ea(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class wa extends Ko{constructor(e,t,r){super(pa(e),t,r),this.messageTypes={REQUEST:"cclibraries.api.QueryRequest",RESPONSE:"cclibraries.api.QueryResponse",INITIALIZE:"cclibraries.service.Initialized"}}_wrapHandler(e){return(t,r)=>e(r)}removeListener(e,t){return this.vulcanInterface.removeMessageListener(t||this.messageTypes.RESPONSE,e)}sendMessage(e,t){if(this.vulcanInterface.addMessageListener(t||this.messageTypes.RESPONSE,this._wrapHandler(e)),t!==this.messageTypes.INITIALIZE){const e=new this.VulcanMessage(this.messageTypes.REQUEST);e.data=w,this.vulcanInterface.dispatchMessage(e)}}isAppRunning(){var e,t=this;return(e=_a().mark((function e(){return _a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.vulcanInterface.isAppRunning());case 1:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ea(o,n,i,a,s,"next",e)}function s(e){Ea(o,n,i,a,s,"throw",e)}a(void 0)}))})()}launchApp(e){this.vulcanInterface.launchApp()}getPayload(e){return e}}const xa=(e,t,r=8e3)=>{const n=new wa(e,t,r);return e=>n.connect(e)};function La(){La=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Oa(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class Sa extends Ko{constructor(e,t,r){super(pa(e),t,r),this.messageTypes={REQUEST:"cclibraries.api.QueryRequest",RESPONSE:"cclibraries.api.QueryResponse",INITIALIZE:"cclibraries.service.Initialized"}}_wrapHandler(e){return(t,r)=>e(t)}removeListener(e,t){return this.vulcanInterface.removeMessageListener(t||this.messageTypes.RESPONSE,e)}sendMessage(e,t){if(this.vulcanInterface.addMessageListener(t||this.messageTypes.RESPONSE,this._wrapHandler(e)),t!==this.messageTypes.INITIALIZE){const e={message:w,type:t||this.messageTypes.REQUEST};this.vulcanInterface.dispatchMessage(e)}}isAppRunning(){var e,t=this;return(e=La().mark((function e(){return La().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.vulcanInterface.isAppRunning());case 1:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Oa(o,n,i,a,s,"next",e)}function s(e){Oa(o,n,i,a,s,"throw",e)}a(void 0)}))})()}launchApp(e){this.vulcanInterface.launchApp()}getPayload(e){return e}}const Ta=(e,t,r=8e3)=>{const n=new Sa(e,t,r);return e=>n.connect(e)};function Pa(){Pa=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ia(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Aa(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ia(o,n,i,a,s,"next",e)}function s(e){Ia(o,n,i,a,s,"throw",e)}a(void 0)}))}}class Ca extends Ko{constructor(){super(...arguments),this.messageTypes={REQUEST:"vulcan.SuiteMessage.cclibraries.api.QueryRequest",RESPONSE:"vulcan.SuiteMessage.cclibraries.api.QueryResponse",INITIALIZE:null}}get _installedAppsFn(){const e=this.vulcanInterface.control,t=e.getInstalledApps,r=e.getInstalledAppsEx;return r?r.bind(this.vulcanInterface.control):t.bind(this.vulcanInterface.control)}_getCCLibrariesInstall(){var e=this;return Aa(Pa().mark((function t(){return Pa().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._installedAppsFn();case 2:return t.abrupt("return",t.sent.find((e=>e.name===_||e.sapCode===E)));case 3:case"end":return t.stop()}}),t)})))()}removeListener(e,t){null!==t&&this.vulcanInterface.dispatcher.removeEventListener(this.messageTypes.RESPONSE,e)}sendMessage(e,t){null!==t&&(this.vulcanInterface.dispatcher.addEventListener(this.messageTypes.RESPONSE,e),this.vulcanInterface.dispatcher.broadcastMessage(new this.vulcanInterface.message(this.messageTypes.REQUEST,w)))}isAppRunning(){var e=this;return Aa(Pa().mark((function t(){var r;return Pa().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._getCCLibrariesInstall();case 2:if(t.t1=r=t.sent,t.t0=null===t.t1,t.t0){t.next=6;break}t.t0=void 0===r;case 6:if(!t.t0){t.next=10;break}t.t2=void 0,t.next=11;break;case 10:t.t2=r.isRunning();case 11:return t.abrupt("return",t.t2);case 12:case"end":return t.stop()}}),t)})))()}launchApp(e){var t=this;return Aa(Pa().mark((function r(){var n;return Pa().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._getCCLibrariesInstall();case 2:if(!(n=r.sent)){r.next=7;break}return r.next=6,n.launch();case 6:e("launched");case 7:case"end":return r.stop()}}),r)})))()}getPayload(e){return e.payload}}const ka=(e,t=8e3)=>{const r=new Ca(e,void 0,t);return e=>r.connect(e)};function Da(){Da=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Na(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}var Ra=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,(t=e[r](t)).done,t.value)}))}}};class Ma extends Oe{constructor(e){super(),this._generator=e,this._results=[],this._getPages()}_getPages(){var e,t=this;return(e=Da().mark((function e(){var r,n,i,o,a,s,c,l;return Da().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,a=!0,s=Ra(t._generator(t._abortController.signal));case 2:return e.next=4,s.next();case 4:if(c=e.sent,r=c.done){e.next=12;break}o=c.value,a=!1;try{l=o,t._results.push(...l),t.emit("change",!1)}finally{a=!0}case 10:e.next=2;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),n={error:e.t0};case 17:if(e.prev=17,e.prev=18,a||r||!(i=s.return)){e.next=22;break}return e.next=22,i.call(s);case 22:if(e.prev=22,!n){e.next=25;break}throw n.error;case 25:return e.finish(22);case 26:return e.finish(17);case 27:t.progress=100,t.emit("change",!0);case 29:case"end":return e.stop()}}),e,null,[[0,14,17,27],[18,,22,26]])})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Na(o,n,i,a,s,"next",e)}function s(e){Na(o,n,i,a,s,"throw",e)}a(void 0)}))})()}get results(){return this._results}}function ja(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||Fa(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fa(e,t){if(e){if("string"==typeof e)return Za(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Za(e,t):void 0}}function Za(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Ba=new class{constructor(){this._contexts=new Map}register(e,t){const r=(0,S.v4)();return this._contexts.set(r,{createAtom:e,transaction:t}),()=>this._contexts.delete(r)}transaction(e){const t=Array.from(this._contexts.values()).reduce(((e,{transaction:t})=>()=>t((()=>e()))),e);return t()}reportObserved(e,t){var r,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Fa(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(this._contexts);try{for(n.s();!(r=n.n()).done;){const n=ja(r.value,2),i=n[0],o=n[1].createAtom,a=`_atom_${i}_${t}`;let s=e[a];if(!s){const r=()=>s.reportChanged();s=o(`${e.constructor.name}${a}`,(()=>e.on(t,r)),(()=>e.off(t,r))),e[a]=s}s.reportObserved()}}catch(e){n.e(e)}finally{n.f()}}};function Ga(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ua(...e){return function(t,r,n){const i=n.get?"get":n.value?"value":void 0;if(i){const t=n[i];n[i]=function(...r){var n,i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Ga(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ga(e,t):void 0}}(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(e);try{for(i.s();!(n=i.n()).done;){const e=n.value;Ba.reportObserved(this,e)}}catch(e){i.e(e)}finally{i.f()}return t.apply(this,r)}}}}function Ha(...e){return(e=>"string"!=typeof e[0])(e)?Ua("change")(...e):Ua(...e)}function za(e){return class extends e{constructor(...e){super(...e);for(var t=0,r=Object.values(this._childModelCaches);t<r.length;t++){const e=r[t].cache;e.on("change",(()=>this.emit("change"))),e.on("modelChange",(()=>this.emit("change")))}this._updateCaches()}}}class Va extends te{constructor(e,t,r){super(),this._modelCache=e,this._parent=t,this._data=r,this._childModelCaches={},this._isCommitted=!1,this._waitingForCommit=!1,this._isSquelched=!1,this._receivedEventDuringSquelchPeriod=!1,this._commitFuture=new Promise(((e,t)=>{this._commitResolver=()=>{this._isCommitted=!0,e()},D(this._data.id)||this._commitResolver(),this.on("remove",(()=>{this._waitingForCommit&&!this._isCommitted&&t()}))}))}get id(){return this.data.id}get data(){return this._data}update(e,t=!0){var r;const n=D(this.id)&&e.id&&this.id!==e.id;return null===(r=this._modelCache)||void 0===r||r.updateIndices(this,e),Object.assign(this._data,e),this._updateCaches(t),t&&this.emit("change"),n&&this._commitResolver&&this._commitResolver(),this._data}get committed(){return this._waitingForCommit=!0,this._commitFuture}get isCommitted(){return this._isCommitted}squelchChangeEvents(){this._isSquelched=!0}unsquelchChangeEvents(){this._isSquelched=!1,this._receivedEventDuringSquelchPeriod&&(this._receivedEventDuringSquelchPeriod=!1,this.emit("change"))}emit(e,...t){return this._isSquelched&&"change"===e?(this._receivedEventDuringSquelchPeriod=!0,this.listenerCount(e)>0):super.emit(e,...t)}_updateCaches(e=!0){for(var t=0,r=Object.values(this._childModelCaches);t<r.length;t++){const n=r[t],i=n.cache,o=(0,n.accessor)(this.data);o&&i.replace(o,e)}}get apiRoot(){return this._parent.apiRoot}get driver(){var e;return(null===(e=this._modelCache)||void 0===e?void 0:e.driver)||this.apiRoot.driver}get isLocallyManaged(){return this.apiRoot.isLocallyManaged}}function Ya(e,t,r){const n=r.set?"set":r.value?"value":void 0;if(n){const e=r[n];r[n]=function(...r){if(!(this.library?this.library:this).isWritable)throw new J("NOT_ALLOWED",`${t} requires write access`,this.id);return e.apply(this,r)}}}function Wa(e,t,r){const n=r.set?"set":r.value?"value":void 0;if(n){const e=r[n];r[n]=function(...r){if(!this.apiRoot.cloudDriver)throw new J("NOT_ALLOWED",`${t} requires a cloud driver`);return e.apply(this,r)}}}function Ka(e,t,r){const n=r.set?"set":r.value?"value":void 0;if(n){const e=r[n];r[n]=function(...r){if(!(this.apiRoot.driver instanceof ca))throw new J("NOT_ALLOWED",`${t} requires a local driver`);return e.apply(this,r)}}}function $a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qa(e,t){var r,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return $a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$a(e,t):void 0}}(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(t);try{for(n.s();!(r=n.n()).done;){const t=r.value;if(t.id===e.id)return t;if(t.children){const r=qa(e,t.children);if(r)return r}}}catch(e){n.e(e)}finally{n.f()}}function Xa(e,t){if(e instanceof Rs)return t;const r=Dn(e.element.data.representations),n=qa(e,r);return n&&(n.children=t),r}const Ja={Date:!0,RegExp:!0,String:!0,Number:!0};function Qa(e,t,r={cyclesFix:!0},n=[]){let i=[];const o=Array.isArray(e);for(const a in e){const s=e[a],c=o?+a:a;if(!(a in t)){i.push({type:"REMOVE",path:[c],oldValue:e[a]});continue}const l=t[a],u="object"==typeof s&&"object"==typeof l;if(!(s&&l&&u)||Ja[Object.getPrototypeOf(s).constructor.name]||r.cyclesFix&&n.includes(s))s===l||u&&(isNaN(s)?s+""==l+"":+s==+l)||i.push({path:[c],type:"CHANGE",value:l,oldValue:s});else{const e=Qa(s,l,r,r.cyclesFix?n.concat([s]):[]);i.push.apply(i,e.map((e=>(e.path.unshift(c),e))))}}const a=Array.isArray(t);for(const r in t)r in e||i.push({type:"CREATE",path:[a?+r:r],value:t[r]});return i}function es(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||rs(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ts(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=rs(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function rs(e,t){if(e){if("string"==typeof e)return ns(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ns(e,t):void 0}}function ns(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var is=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};function os(e,t,r){const n=r.value;r.value=function(...e){let t;this._squelchModelChangeEvents();try{t=n.apply(this,e)}finally{this._unsquelchModelChangeEvents()}return t}}class as extends te{constructor(e,t,r=(null==e?void 0:e.driver)){super(),this._parent=e,this._Class=t,this._driver=r,this._models=[],this._indices=new Map,this._isSquelched=!1,this._changedModelsQueue=new Set,this._receivedEventDuringSquelchPeriod=!1,this._dataSinceLastReport=[],this._onModelChange=e=>{if(this._isSquelched)return this._receivedEventDuringSquelchPeriod=!0,void this._changedModelsQueue.add(e);this.emit("modelChange",[e])},this._squelchModelChangeEvents=()=>{this._receivedEventDuringSquelchPeriod=!1,this._isSquelched=!0},this._unsquelchModelChangeEvents=()=>{this._isSquelched=!1,this._receivedEventDuringSquelchPeriod&&(this.emit("modelChange",Array.from(this._changedModelsQueue)),this._changedModelsQueue.clear())},this.registerIndex("id")}registerIndex(e){this._indices.set(e,new Map)}updateIndices(e,t){var r,n=ts(this._indices.entries());try{for(n.s();!(r=n.n()).done;){const n=es(r.value,2),i=n[0],o=n[1],a=e.data[i],s=t[i];s&&a!==s&&(D(a)||o.delete(a),o.set(s,e))}}catch(e){n.e(e)}finally{n.f()}}get(e){return this.getByIndex("id",e)}getByIndex(e,t){var r;return null===(r=this._indices.get(e))||void 0===r?void 0:r.get(t)}add(e,t=!0){return this._add(e,t)}remove(e,t=!0){this._remove(e,t)}replace(e,t=!0){const r=Array.isArray(e)?e:[e];this._replace(r,t)}upsert(...e){this._upsertItems(e)&&this.emit("change")}all(){return this._models}get length(){return this._models.length}get driver(){return this._driver}get changes(){const e=[...this._dataSinceLastReport],t=this._models.map((e=>{const t=e.data;return t.elements,t.removedElements,t.documentationElements,t.groups,function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(t,["elements","removedElements","documentationElements","groups"])})),r=Qa(e,t,{cyclesFix:!1}).reduce(((r,n)=>{const i="REMOVE"===n.type?e[n.path[0]]:t[n.path[0]],o=i.id,a=i.previousPlaceholderId,s=r.get(o)||{id:o,previousPlaceholderId:a,changes:[]};return s.changes.push(n),r.set(o,s),r}),new Map);return this._dataSinceLastReport=t,[...r.values()]}_upsertItems(e,t=!0){let r=!1;var n,i=ts(this._findCachedModels(...e));try{for(i.s();!(n=i.n()).done;){const e=es(n.value,2),i=e[0],o=e[1];o?o.update(i,t):(this._add(i),r=!0)}}catch(e){i.e(e)}finally{i.f()}return r}_findCachedModels(...e){var t;const r=[];if(!(null===(t=this._indices)||void 0===t?void 0:t.size)||!(null==e?void 0:e.length))return r;const n=Array.from(this._indices.entries());for(var i=0,o=e;i<o.length;i++){const t=o[i];let c;var a,s=ts(n);try{for(s.s();!(a=s.n()).done;){const e=es(a.value,2),r=e[0];if(c=e[1].get(t[r]),c)break}}catch(e){s.e(e)}finally{s.f()}c?r.push([t,c]):r.push([t,this.getByIndex("id",t.previousPlaceholderId)])}return r}_add(e,t=!1){const r=new this._Class(this,this._parent,e);this._models.push(r);var n,i=ts(this._indices);try{for(i.s();!(n=i.n()).done;){const e=es(n.value,2),t=e[0];e[1].set(r.data[t],r)}}catch(e){i.e(e)}finally{i.f()}return t&&this.emit("change"),r.on("change",(()=>this._onModelChange(r))),r}_remove(e,t=!0){const r="string"==typeof e?this.get(e):e;if(r){this._models.splice(this._models.indexOf(r),1);var n,i=ts(this._indices.entries());try{for(i.s();!(n=i.n()).done;){const e=es(n.value,2),t=e[0],i=e[1];i.delete(r.data[t]),i.delete(r.data.previousPlaceholderId)}}catch(e){i.e(e)}finally{i.f()}r.emit("remove"),r.DANGEROUS.removeAllListeners(),t&&this.emit("change")}}_replace(e,t=!0){let r=this._upsertItems(e,t);const n=e.map((e=>e.id));this._models.filter((e=>!n.includes(e.id))).forEach((e=>{this._remove(e,!1),r=!0})),r&&t&&this.emit("change")}}is([os],as.prototype,"replace",null),is([os],as.prototype,"upsert",null);const ss=new WeakMap;function cs(e){return class extends e{constructor(){super(...arguments),this._isChangeListenerBound=!1}emit(e,...t){if("change"===e){if(this._isChangeListenerBound)return!0;this._isChangeListenerBound=!0;let e=ss.get(this._parent);if(!e){e=[],ss.set(this._parent,e);const t=()=>{var r;ss.delete(this._parent),this._parent.off("change",t),r=()=>{e&&e.forEach((e=>e()))},Ba.transaction(r)};this._parent.on("change",t)}return e.push(((...e)=>{this._isChangeListenerBound=!1,super.emit("change",...e)})),!0}return super.emit(e,...t)}}}function ls(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return us(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?us(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function us(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ds(e){e=null!=e?e:{};const t=[];for(var r=0,n=Object.entries(e);r<n.length;r++){const e=ls(n[r],2),i=e[0],o=e[1],a=ls(i.split("#",2),2),s=a[0],c=a[1];t.push({namespace:s,key:c,value:o})}return t}var ps,hs=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let fs=ps=class extends Va{constructor(){super(...arguments),this._childModelCaches={children:{cache:new as(this,cs(ps)),accessor:e=>e.children}}}get _childCache(){return this._childModelCaches.children.cache}get children(){return this._childCache.all()}get parent(){return this._parent}get element(){let e=this._parent;for(;e instanceof ps;)e=e._parent;return e}get library(){return this.element.library}get id(){return this._data.id}get isWritable(){return this.element.isWritable}get type(){const e=this._data.type;return"application/vnd.adobe.library.link+dcx"===e?this._data.linktype:e}get relationship(){return this._data.relationship}set relationship(e){this._updateRepresentationData({relationship:e})}get width(){return this._data.width}set width(e){this._updateRepresentationData({width:e})}get height(){return this._data.height}set height(e){this._updateRepresentationData({height:e})}get isFullSize(){return this._data.isFullSize}set isFullSize(e){this._updateRepresentationData({isFullSize:e})}get isPreferredThumbnail(){return this._data.isPreferredThumbnail}set isPreferredThumbnail(e){this._updateRepresentationData({isPreferredThumbnail:e})}get contentLength(){return this._data.contentLength}set contentLength(e){this._updateRepresentationData({contentLength:e})}get isDeletedLocally(){return!1}get isExternalLink(){return this._data.isExternalLink}isCompatibleType(e){const t=this.getCachedContentPath();if(t&&!this.isExternalLink){const r=z(t);if(-1===a(e).indexOf(r))return!1}return e===this.type}getValue(e,t){var r;return null===(r=this._data.customData)||void 0===r?void 0:r[`${e}#${t}`]}getValues(){return ds(this.data.customData)}setValue(e,t,r,n){this._updateRepresentationData({customData:Object.assign(Object.assign({},this.data.customData),{[`${e}#${t}`]:r})})}removeValue(e,t,r){this.setValue(e,t,null,r)}setContent(e,t,r){if(e instanceof Blob)return this.driver.stageRepresentationForCommit(this.library,new File([e],r,{type:e instanceof File?e.type:V(r)})).then((e=>this.setStagedContent(e)));let n;if("string"!=typeof e||!["base64","utf8"].includes(t))throw new Error("Not implemented");return n=e,this._updateRepresentationData({source:{filename:r,data:n}})}setContentFromPath(e,t){if(!this.library.locallyManaged)throw new Error;return this._updateRepresentationData({source:{path:e,moveFile:!1}})}setStagedContent(e){try{const t=JSON.parse(e);if(!(wt(t)||t&&D(t.id)))throw new Error;return this._updateRepresentationData({source:t})}catch(e){throw new J("INVALID_PARAMETER","Payload is not consumable by remote target",this.library.id,e)}}setContentFromURL(e,t,r){return this._updateRepresentationData({source:{url:t,createLink:e,headers:r}})}getContentPath(){return Promise.resolve(this.getCachedContentPath())}getCachedContentPath(){return this._data.path}getContent(){return this.driver.getRepresentationContent(this).then((e=>e.blob()))}getContentURL(){return this._data.url}getAuthenticatedContentURL(){return Promise.resolve("")}createChild(e){const t=k(),r=this.data.children?[...this.data.children]:[];return r.push({id:t,type:e,isFullSize:!1,isExternalLink:!1}),this.element.actionDispatch({name:"updateElementContent",type:"update",data:{representations:Xa(this,r)}}),this.children.find((e=>e.id===t))}removeChild(e){const t=this.data.children?[...this.data.children]:[],r=t.findIndex((t=>t.id===e.id));-1!==r&&(t.splice(r,1),this.element.actionDispatch({name:"updateElementContent",type:"update",data:{representations:Xa(this,t)}}))}testExternalLink(){return Promise.resolve(!1)}clearCachedExternalLink(){}getCachedExternalLinkError(){}getExternalLinkDownloadProgress(){if(this.isExternalLink){const e=`${this.library.id}.${this.element.id}.${this.id}`;return this.library.apiRoot.syncState.getExternalLinkDownloadProgressByKey(e)}}_updateRepresentationData(e){const t=(this.parent instanceof Rs?this.parent.data.representations:this.parent.data.children||[]).filter((e=>e.id!==this.id));return this.element.actionDispatch({name:"updateElementContent",type:"update",data:{representations:Xa(this.parent,[...t,Object.assign(Object.assign({},this.data),e)])}}),Promise.resolve()}};hs([Ya],fs.prototype,"relationship",null),hs([Ya],fs.prototype,"width",null),hs([Ya],fs.prototype,"height",null),hs([Ya],fs.prototype,"isFullSize",null),hs([Ya],fs.prototype,"isPreferredThumbnail",null),hs([Ya],fs.prototype,"contentLength",null),hs([Ya],fs.prototype,"setValue",null),hs([Ya],fs.prototype,"removeValue",null),hs([Ya],fs.prototype,"setContent",null),hs([Ya],fs.prototype,"setContentFromPath",null),hs([Ya],fs.prototype,"setStagedContent",null),hs([Ya],fs.prototype,"setContentFromURL",null),fs=ps=hs([za],fs);const ms=fs;function gs(e){return e=e.toString().replace(/(\.0)*$/,"").replace(/[^.0-9]+/gim,"."),(isNaN(parseInt(e,10))||parseInt(e,10)>250)&&(e="0"),e}function vs(e="0",t="0"){if(e===t)return 0;const r=gs(e).split("."),n=gs(t).split(".");let i;for(let e=0;e<r.length&&e<n.length;e++){const t=parseInt(r[e],10);if(i=t-parseInt(n[e],10),isNaN(i))return isNaN(t)?1:-1;if(i>0)return-1;if(i<0)return 1}return i=r.length-n.length,i>0?-1:i<0?1:0}function ys(){ys=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function bs(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class _s{constructor(e,t){this._item=e,this._applicationActionData=t}get item(){return this._item}get minVersion(){return this._applicationActionData.minVersion}get appCode(){return this._applicationActionData.appCode}get appName(){return this._applicationActionData.appName}get action(){return this._applicationActionData.action}get installedVersions(){return this.item.apiRoot.driver.config.installedApps.filter((e=>e.code===this._applicationActionData.appCode)).map((e=>e.version)).sort(vs)}isCompatibleVersionInstalled(){return this.installedVersions.length&&vs(this._applicationActionData.minVersion,this.installedVersions[0])>=0}invoke(){var e,t=this;return(e=ys().mark((function e(){return ys().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.isCompatibleVersionInstalled()){e.next=2;break}throw new J("NOT_SUPPORTED","A compatible version of the application is needed for this action",t.item instanceof Rs?t.item.library.id:t.item.id);case 2:return e.abrupt("return",t.item.apiRoot.driver.sendAction(t));case 3:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){bs(o,n,i,a,s,"next",e)}function s(e){bs(o,n,i,a,s,"throw",e)}a(void 0)}))})()}toJSON(){return JSON.stringify(Object.assign(Object.assign({},this._applicationActionData),this.item instanceof Rs?{libraryId:this.item.library.id,elementId:this.item.id}:{libraryId:this.item.id}))}}function Es(e,t,r,n){return r.map((r=>{const i=n[r];if(i&&(!t||t===i.action))return new _s(e,i)})).filter(Boolean).sort(((e,t)=>(null==e?void 0:e.isCompatibleVersionInstalled)&&!(null==t?void 0:t.isCompatibleVersionInstalled)?-1:!(null==e?void 0:e.isCompatibleVersionInstalled)&&(null==t?void 0:t.isCompatibleVersionInstalled)?1:0))}const ws=e=>"RGB"===e.mode,xs=e=>ws(e)&&(!e.profileName||"sRGB IEC61966-2.1"===e.profileName),Ls=(e,t,r)=>{let n=(Math.round(e)<<16|Math.round(t)<<8|Math.round(r)).toString(16);for(;n.length<6;)n="0"+n;return`#${n}`.toUpperCase()},Os=(e,t,r)=>{const n=`application/vnd.adobe.${t}+json`;for(let i=0;i<e.representations.length;i++){const o=e.representations[i];if(o.type===n){const e=o.getValue(t,"data");if(e&&(!r||r(e)))return e}}},Ss=e=>t=>{const r=Os(t,e);if(r){const e=r.adbeFont&&r.adbeFont.style.toLowerCase();return!e||e.includes("normal")||e.includes("regular")?r.fontFamily:`${r.fontFamily} ${r.adbeFont.style}`}},Ts={"application/vnd.adobe.element.color+dcx":e=>(e=>{const t=Array.isArray(e)?e.find(xs)||e.find(ws):e;return t&&t.value?Ls(t.value.r,t.value.g,t.value.b):""})(Os(e,"color",xs)||Os(e,"color",ws)),"application/vnd.adobe.element.characterstyle+dcx":Ss("characterstyle"),"application/vnd.adobe.element.paragraphstyle+dcx":Ss("paragraphstyle"),"application/vnd.adobe.element.font+dcx":e=>{const t=Os(e,"font");return(null==t?void 0:t.name)||""}};function Ps(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Is=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};class As extends Va{get library(){return this._parent}get sourceRefString(){return this.data.sourceRef}get sourceRef(){if(!this.sourceRefString)return;let e=M(this.sourceRefString);if(!e){const t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),2!==o.length);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e)||function(e,t){if(e){if("string"==typeof e)return Ps(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ps(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.sourceRefString.split("#"));e={"repo:assetId":t[0],"stRef:fromPart":t[1]};const r=this.data.sourceModifiedDate;r&&(e["stRef:fromPartInstanceID"]=`${r}`)}return e}set sourceRef(e){if("object"!=typeof e||!M(e))throw new J("INVALID_PARAMETER","sourceRef must be a valid JSON object",this.library.id);this.actionDispatch({name:this._updateAction,type:"update",data:{sourceRef:JSON.stringify(e,Object.keys(e).sort())}})}}function Cs(){Cs=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ks(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}Is([Ha],As.prototype,"sourceRefString",null),Is([Ha,Ya],As.prototype,"sourceRef",null);var Ds=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let Ns=class extends As{constructor(){super(...arguments),this.isElement=!0,this._updateAction="updateElement",this._childModelCaches={representations:{cache:new as(this,cs(ms)),accessor:e=>e.representations}},this._lastLocalUpdateDate=0}get id(){return this.data.id}get type(){return this.data.type}get modified(){return Math.max(this.data.modifiedDate,this._lastLocalUpdateDate)}get created(){return this.data.createdDate}get instanceId(){const e=this.getPrimaryRepresentation();return null==e?void 0:e.id}getReference(){const e={"dc:format":this.library.type,"repo:assetId":this.library.assetId,"repo:name":this.library.name,"stRef:manager":"Adobe Cloud","stRef:documentID":this.library.id,"stRef:fromPart":`id=${this.id}`,"stRef:fromPartName":this.name};return this.instanceId&&(e["stRef:fromPartInstanceID"]=this.instanceId),this.sourceRef&&"application/vnd.adobe.firefly-recipe+dcx"!==this.sourceRef["dc:format"]&&(e["stRef:fromPartDerivedFrom"]=this.sourceRef),e}getReferenceString(){return j(this.getReference())}getLegacyReference(){var e;return null!==(e=this.data.elementRef)&&void 0!==e?e:`cloud-asset://${this.library.id};node=${this.id}`}get name(){return this.isAutoNamed?(e=>{const t=Ts[e.type];return t?t(e):""})(this):this.data.name}set name(e){this.actionDispatch({name:"updateElement",type:"update",data:{name:null==e?void 0:e.normalize()}})}get isAutoNamed(){const e=this.data.name,t=this.data.autoName;return!e||e===t}get isCommitted(){return!D(this.id)}getLocalizedName(e="en_US"){var t;return null===(t=this.data.localizedNames)||void 0===t?void 0:t[e]}getLocalizedNames(){return this.data.localizedNames||{}}setLocalizedName(e,t){return this.actionDispatch({name:"updateElement",type:"update",data:{localizedNames:Object.assign(Object.assign({},this.data.localizedNames),{[e]:t})}})}get library(){return this._parent}get isWritable(){return this.library.isWritable}get tags(){return this.data.tags||[]}set tags(e){this.actionDispatch({name:"updateElement",type:"update",data:{tags:e}})}get dependencies(){var e;return(null===(e=this._data.dependencyIds)||void 0===e?void 0:e.map((e=>this.library.getElementById(e))).filter((e=>!!e)))||[]}set dependencies(e){const t=e.map((e=>e.id));this.actionDispatch({name:"updateElement",type:"update",data:{dependencyIds:t}})}createGroup(){}getGroups(e="$default"){return this.library.getGroups(e).filter((e=>this.data.groups.find((t=>t.id===e.id))))}getOrderInGroup(e){if(e.library!==this.library)return;const t=this.data.groups.find((t=>t.classifier===e.classifierName&&t.id===e.id));return t&&t.order}setOrderInGroup(e,t,r=!0){const n=r?this.data.groups.filter((t=>t.classifier!==e.classifierName)):[...this.data.groups],i=this.data.groups.findIndex((({id:t})=>t===e.id)),o={id:e.id,classifier:e.classifierName,order:t};t||-1===i?t&&-1!==i?n.splice(i,1,o):-1===i&&n.push(o):n.splice(i,1),this.actionDispatch({name:"updateElement",type:"update",data:{groups:n}})}get description(){return this.data.description}set description(e){this.actionDispatch({name:"updateElement",type:"update",data:{description:e}})}get descriptionModified(){return this.data.descriptionModifiedDate}get descriptionModifiedBy(){return this.data.descriptionModifiedBy}get descriptionModifiedContext(){return this.data.descriptionModifiedContext}get wasDescriptionModifiedLocally(){return this.data.descriptionModifiedLocally}get modifiedBy(){return this.data.modifiedBy}get modifiedContext(){return this.data.modifiedContext}get wasModifiedLocally(){return this.data.modifiedLocally}get createdBy(){return this.data.createdBy}get createdContext(){return this.data.createdContext}get wasCreatedLocally(){return this.data.createdLocally}get removed(){return this._removed||this.data.removedDate}set removed(e){this._removed=e}get removedBy(){return this.data.removedBy}get removedContext(){return this.data.removedContext}get wasRemovedLocally(){return this.data.removedLocally}get isDeletedLocally(){return!1}beginOperation(){return this.library.beginOperation()}endOperation(e){return this.library.endOperation(e)}get representations(){return this._representationCache.all()}getPrimaryRepresentation(){return this.representations.find((e=>"primary"===e.relationship))}getRepresentationById(e){return this.representations.find((t=>t.id===e))}createRepresentation(e,t,r,n){const i=k(),o=[...this.data.representations];return o.splice(1,0,{id:i,type:e,relationship:t,isFullSize:!1,isExternalLink:!1}),this.actionDispatch({name:"updateElementContent",type:"update",data:{representations:o}}),this.getRepresentationById(i)}removeRepresentation(e){const t=[...this.data.representations],r=t.findIndex((t=>t.id===e.id));-1!==r&&(t.splice(r,1),this.actionDispatch({name:"updateElementContent",type:"update",data:{representations:t}}))}removeAllRepresentations(){this.actionDispatch({name:"updateElementContent",type:"update",data:{renditionUrl:{},representations:[]}})}getValue(e,t){var r;return null===(r=this.data.customData)||void 0===r?void 0:r[`${e}#${t}`]}getValues(){return ds(this.data.customData)}setValue(e,t,r){this.actionDispatch({name:"updateElement",type:"update",data:{customData:{[`${e}#${t}`]:r}}})}removeValue(e,t){this.setValue(e,t,null)}getThumbnailURL(e){return this.driver.getRenditionUrl(this,e)}getAuthenticatedThumbnailURL(e){return this.driver.getAuthenticatedThumbnailURL(this,e)}getThumbnailPath(e="full"){var t,r=this;return(t=Cs().mark((function t(){return Cs().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.committed;case 2:return t.abrupt("return",r.driver.getRenditionPath(r.library.id,r.id,e));case 3:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){ks(o,n,i,a,s,"next",e)}function s(e){ks(o,n,i,a,s,"throw",e)}a(void 0)}))})()}getThumbnailContent(e){return this.driver.getRendition(this,e).then((e=>e.blob()))}setThumbnailCache(e,t){return Promise.resolve({})}getCachedThumbnailPath(e){return""}supportsVectorThumbnail(){const e=this.getPrimaryRepresentation();return!!e&&b.VECTOR_RENDITION_ELEMENT_TYPES.includes(e.type)}getActions(e){const t=this.getPrimaryRepresentation();if(!t)return[];if(this.library.documentType){const t=this.apiRoot.getOption("DOCUMENT_LIBRARY_ACTION_PRODUCT_MAP"),r=t.types[this.library.documentType]||[];return Es(this.library,e,r,t.products)}const r=this.apiRoot.getOption("ELEMENT_ACTION_PRODUCT_MAP");return Es(this,e,(r.types[this.type]||{})[t.type]||[],r.products)}get roles(){return this.data.roles||[]}set roles(e){this.actionDispatch({name:"updateElement",type:"update",data:{roles:e}})}get isStockAsset(){const e=Object.values(g).includes(this.type),t=void 0!==this.getStockDataForElement();return e&&t}get isLicensed(){var e;return"purchased"===(null===(e=this.getStockDataForElement())||void 0===e?void 0:e.state)}get _representationCache(){return this._childModelCaches.representations.cache}update(e,t=!0){const r=super.update(e,!1);return t&&this.emit("change"),r}actionDispatch(e){e.path||(e.path=`$.elements[?(@.id == "${this.id}")]`),this._lastLocalUpdateDate=Date.now(),this.library.actionDispatch(e)}getStockDataForElement(e){const t=void 0===e?this.getPrimaryRepresentation():this.representations[e];let r=null==t?void 0:t.getValue("adobestock","trackingdata");return r&&(null==t?void 0:t.isExternalLink)&&(null==t?void 0:t.getCachedExternalLinkError())&&""!==(null==t?void 0:t.getContentURL())&&(r=this.getStockDataForElement(void 0===e?0:e+1)||Object.assign(Object.assign({},r),{state:"not_purchased"})),r}};Ds([Ha],Ns.prototype,"id",null),Ds([Ha],Ns.prototype,"modified",null),Ds([Ha],Ns.prototype,"created",null),Ds([Ha,Ya],Ns.prototype,"name",null),Ds([Ha],Ns.prototype,"isAutoNamed",null),Ds([Ha],Ns.prototype,"isCommitted",null),Ds([Ha],Ns.prototype,"getLocalizedName",null),Ds([Ha],Ns.prototype,"getLocalizedNames",null),Ds([Ya],Ns.prototype,"setLocalizedName",null),Ds([Ha],Ns.prototype,"isWritable",null),Ds([Ha],Ns.prototype,"tags",null),Ds([Ha,Ya],Ns.prototype,"dependencies",null),Ds([Ya],Ns.prototype,"createGroup",null),Ds([Ha],Ns.prototype,"getGroups",null),Ds([Ha],Ns.prototype,"getOrderInGroup",null),Ds([Ya],Ns.prototype,"setOrderInGroup",null),Ds([Ha,Ya],Ns.prototype,"description",null),Ds([Ha],Ns.prototype,"descriptionModified",null),Ds([Ha],Ns.prototype,"descriptionModifiedBy",null),Ds([Ha],Ns.prototype,"descriptionModifiedContext",null),Ds([Ha],Ns.prototype,"wasDescriptionModifiedLocally",null),Ds([Ha],Ns.prototype,"modifiedBy",null),Ds([Ha],Ns.prototype,"modifiedContext",null),Ds([Ha],Ns.prototype,"wasModifiedLocally",null),Ds([Ha],Ns.prototype,"createdBy",null),Ds([Ha],Ns.prototype,"createdContext",null),Ds([Ha],Ns.prototype,"wasCreatedLocally",null),Ds([Ha,Ya],Ns.prototype,"removed",null),Ds([Ha],Ns.prototype,"removedBy",null),Ds([Ha],Ns.prototype,"removedContext",null),Ds([Ha],Ns.prototype,"wasRemovedLocally",null),Ds([Ha],Ns.prototype,"isDeletedLocally",null),Ds([Ha],Ns.prototype,"representations",null),Ds([Ha],Ns.prototype,"getPrimaryRepresentation",null),Ds([Ha],Ns.prototype,"getRepresentationById",null),Ds([Ya],Ns.prototype,"createRepresentation",null),Ds([Ya],Ns.prototype,"removeRepresentation",null),Ds([Ya],Ns.prototype,"removeAllRepresentations",null),Ds([Ha],Ns.prototype,"getValue",null),Ds([Ha],Ns.prototype,"getValues",null),Ds([Ya],Ns.prototype,"setValue",null),Ds([Ya],Ns.prototype,"removeValue",null),Ds([Ha],Ns.prototype,"getCachedThumbnailPath",null),Ds([Ha],Ns.prototype,"supportsVectorThumbnail",null),Ds([Ha],Ns.prototype,"getActions",null),Ds([Ha,Ya],Ns.prototype,"roles",null),Ns=Ds([za],Ns);const Rs=Ns;function Ms(e){return"insert"===e.type}function js(e){return"update"===e.type}function Fs(e){return"remove"===e.type}function Zs(e){return"aggregate"===e.type}function Bs(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Gs=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};const Us=/(\.[a-zA-Z0-9]+)|(\[\?\(([^\[\]]+)\)\])/g,Hs=/^\$(?:(\.[a-zA-Z0-9]+)|(\[\?\(([^\[\]]+)\)\]))*$/,zs=/^([^ ]+) *== *"(.+)"$/;function Vs(){return function(e,t,r){const n=r.value;return r.value=function(e,t,...r){if(!Hs.test(t))throw new J("INVALID_PARAMETER","JSON Path is not valid");return n.apply(this,[e,t,...r])},r}}class Ys{static get(e,t){var r;return"$"===t?e:null===(r=t.match(Us))||void 0===r?void 0:r.reduce(((e,t)=>e&&this._handlePathPart(e,t)),e)}static set(e,t,r){if("$"===t)throw new J("INVALID_PARAMETER","Cannot set in root of object");const n=t.match(Us);if(n){const t=n.pop(),i=n.join("");if(!t)throw new J("INVALID_PARAMETER","JSON path must end in a field");let o=e;if(i&&(o=this.get(e,`$${i}`),!o))throw new J("INVALID_PARAMETER","JSON path parent does not exist");return o[t.substring(1)]=r,r}}static insert(e,t,r){var n;const i=null!==(n=this.get(e,t))&&void 0!==n?n:this.set(e,t,[]);Array.isArray(i)?i.push(r):oe.warn("JSONPath.insert failed to insert into non-array")}static remove(e,t){const r=null==t?void 0:t.match(Us),n=null==r?void 0:r.pop(),i=(null==r?void 0:r.reduce(((e,t)=>e&&this._handlePathPart(e,t)),e))||[];if(!(null==n?void 0:n.startsWith("[?(")))throw new J("INVALID_PARAMETER","JSON Path must end in a filter");if(!Array.isArray(i))return;const o=this._handleFilterExpression(i,n.substring(3,n.length-2)),a=i.indexOf(o);-1!==a&&i.splice(a,1)}static _handlePathPart(e,t){return t.startsWith("[?(")?this._handleFilterExpression(e,t.substring(3,t.length-2)):e[t.substring(1)]}static _handleFilterExpression(e,t){const r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),3!==o.length);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e)||function(e,t){if(e){if("string"==typeof e)return Bs(e,3);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Bs(e,3):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(zs.exec(t)||[]),n=r[1],i=r[2],o=n.replace(/^@/,"$");if(Array.isArray(e))return e.find((e=>this.get(e,o)===i))}}function Ws(e,t){return Zs(t)?t.actions.reduce(((e,t)=>Ws(e,t)),e):Ms(t)?function(e,t){return Ys.insert(e,t.path,t.data),e}(e,t):js(t)?function(e,t){const r=Ys.get(e,t.path);return Object.assign(r,t.data),e}(e,t):Fs(t)?function(e,t){return Ys.remove(e,t.path),e}(e,t):e}Gs([Vs()],Ys,"get",null),Gs([Vs()],Ys,"set",null),Gs([Vs()],Ys,"insert",null),Gs([Vs()],Ys,"remove",null);class Ks{constructor(e=10){this._cache=new Map,this._capacity=e}has(e){if(this._cache.get(e))return e}add(e){if(this._cache.has(e))this._cache.delete(e);else if(this._cache.size>=this._capacity){const e=Array.from(this._cache.entries()).reduce(((e,t)=>e[1]<t[1]?e:t))[0];this._cache.delete(e)}this._cache.set(e,Date.now())}}function $s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const qs=Symbol("operationPending");class Xs extends Va{constructor(e,t,r){super(e,t,r),this._actions=[],this._reducer=Ws,this._operation=void 0,this._pendingActionSemaphore=0,this._pendingOperationResolvers=[],this._lastLocalUpdateDate=0,this._previouslySeenEtags=new Ks,this._pendingActions=[],this._baseData=r,this._currentData=Dn(r)}get data(){return this._currentData}get baseData(){return this._baseData}get actions(){return this._actions}actionDispatch(e,t=!0){return this._actionDispatch(e,t)}revert(){this._actions=[],this._pendingActions=[],this._pendingActionSemaphore=0,this._currentData=Dn(this._baseData),this._updateCaches(),this.emit("change")}commit(e,t){this._confirmActionsAtHead(e),function(e){var t,r,n,i,o=Cn(e);try{for(o.s();!(i=o.n()).done;){const e=i.value;e.data&&D(null===(r=null===(t=e.originalAction)||void 0===t?void 0:t.data)||void 0===r?void 0:r.id)&&(e.data.previousPlaceholderId=null===(n=e.originalAction)||void 0===n?void 0:n.data.id)}}catch(e){o.e(e)}finally{o.f()}}(e);let r=Object.assign({},this._baseData);var n,i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return $s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$s(e,t):void 0}}(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(e);try{for(i.s();!(n=i.n()).done;){const e=n.value;r=this._reducer(r,e),this._actions.shift()}}catch(e){i.e(e)}finally{i.f()}this._actions=Rn(e,this._actions),t&&(this._previouslySeenEtags.add(this.etag),r.etag=t),this._lastLocalUpdateDate=Date.now(),this.update(r),e.forEach((e=>{var t;(function(e){return["removeLibrary","unfollowLibrary","leaveLibrary","permanentlyDeleteLibrary"].includes(e.name)})(e)&&(null===(t=this._modelCache)||void 0===t||t.remove(this,!1))})),this.emit("action",...e.map((e=>({type:"commit",action:e})))),this.emit("commit")}_confirmActionsAtHead(e){if(this._actions.length<e.length)return!1;for(const t in e)if(e[t]!==this._actions[t])return!1;return!0}update(e,t=!0){const r=D(this.id)&&e.id&&this.id!==e.id;return this._modelCache&&this._modelCache.updateIndices(this,e),this._baseData=Object.assign(Object.assign({},this._baseData),e),this._rebaseActions(),t&&this.emit("change"),r&&this._commitResolver&&this._commitResolver(),this._baseData}beginOperation(){this.squelchChangeEvents(),this._pendingActionSemaphore+=1,oe.log(`[STORE] Starting operation (Depth: ${this._pendingActionSemaphore})`)}endOperation(e){if(this._pendingActionSemaphore=Math.max(0,this._pendingActionSemaphore-1),oe.log(`[STORE] Ending operation (Depth: ${this._pendingActionSemaphore})`),0===this._pendingActionSemaphore){oe.log("[STORE] Reached end of operation stack. Adding actions to queue...");const e=this._collapseActions(this._pendingActions);return this._actions=this.actions.concat(e),this._pendingActions=[],this.emit("action",...e.map((e=>({type:"dispatch",action:e})))),this.unsquelchChangeEvents(),new Promise((e=>{const t=()=>{this._actions.length||(this._pendingOperationResolvers.forEach((e=>e())),this._pendingOperationResolvers=[],e(),this.off("commit",t))};this.on("commit",t)}))}return new Promise((e=>{this._pendingOperationResolvers.push(e)}))}get etag(){return this._baseData.etag}set etag(e){this._baseData.etag=e}get isOperationInProgress(){return 0!==this._pendingActionSemaphore}set operation(e){this._operation=e}get operation(){return this._operation}_actionDispatch(e,t=!0){(Ms(e)||js(e))&&(e.data=Dn(e.data));const r=this._reducer(this._currentData,e);this.isOperationInProgress?this._pendingActions.push(e):this._actions.push(e),this._currentData=r,this._lastLocalUpdateDate=Date.now(),t&&this.emit("change"),this.isOperationInProgress||this.emit("action",{type:"dispatch",action:e})}_rebaseActions(){this._currentData=[...this._actions,...this._pendingActions].reduce(((e,t)=>this._reducer(e,t)),Dn(this._baseData))}_collapseActions(e){return e}}var Js=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};class Qs extends As{constructor(){super(...arguments),this.isGroup=!0,this._isDeletedLocally=!1,this._updateAction="updateGroup"}get id(){return this.data.id}get classifierName(){return this.data.classifier}get name(){return this.data.name}set name(e){this.actionDispatch({name:"updateGroup",type:"update",data:{name:e}})}get order(){return this.data.order}set order(e){this.actionDispatch({name:"updateGroup",type:"update",data:{order:e}})}get modified(){return this.data.modifiedDate}get modifiedBy(){return this.data.modifiedBy}get modifiedContext(){return this.data.modifiedContext}get wasModifiedLocally(){return this.data.modifiedLocally}get created(){return this.data.createdDate}get createdBy(){return this.data.createdBy}get createdContext(){return this.data.createdContext}get wasCreatedLocally(){return this.data.createdLocally}getValue(e,t){var r;return null===(r=this.data.customData)||void 0===r?void 0:r[`${e}#${t}`]}getValues(){return ds(this.data.customData)}get children(){return this.library.getGroups(this.classifierName).filter((e=>e.parent&&e.parent.id===this.id))}getFilteredChildren(e){return this.children.filter(e)}get elements(){const e=[],t=t=>void 0!==t.getOrderInGroup(this)&&e.push(t);return this.library.elements.forEach(t),this.library.documentationElements.forEach(t),e}isEmpty(){return 0===this.elements.length&&0===this.children.length}setValue(e,t,r,n){this.actionDispatch({name:"updateGroup",type:"update",data:{customData:Object.assign(Object.assign({},this.data.customData),{[`${e}#${t}`]:r})}})}removeValue(e,t,r){this.setValue(e,t,null,r)}get isDeletedLocally(){return this._isDeletedLocally}set isDeletedLocally(e){this._isDeletedLocally=e,this.emit("change")}get library(){return this._parent}getLocalizedName(e="en_US"){var t;return null===(t=this.data.localizedNames)||void 0===t?void 0:t[e]}getLocalizedNames(){return this.data.localizedNames||{}}setLocalizedName(e,t){return this.actionDispatch({name:"updateGroup",type:"update",data:{localizedNames:Object.assign(Object.assign({},this.data.localizedNames),{[e]:t})}})}get parent(){return this.library.getGroupById(this._data.parentId)}set parent(e){this.actionDispatch({name:"updateGroup",type:"update",data:{parentId:(null==e?void 0:e.id)||null}})}createChild(e,t){const r=k();return this.actionDispatch({name:"createGroup",type:"insert",data:{id:r,name:e,order:t,classifier:this.classifierName,parentId:this.id},path:"$.groups"}),this.library.getGroupById(r)}actionDispatch(e){e.path||(e.path=`$.groups[?(@.id == "${this.id}")]`),this.library.actionDispatch(e)}update(e,t=!0){const r=super.update(e,!1);return t&&this.emit("change"),r}}Js([Ha,Ya],Qs.prototype,"name",null),Js([Ha,Ya],Qs.prototype,"order",null),Js([Ha],Qs.prototype,"modified",null),Js([Ha],Qs.prototype,"modifiedBy",null),Js([Ha],Qs.prototype,"modifiedContext",null),Js([Ha],Qs.prototype,"wasModifiedLocally",null),Js([Ha],Qs.prototype,"created",null),Js([Ha],Qs.prototype,"createdBy",null),Js([Ha],Qs.prototype,"createdContext",null),Js([Ha],Qs.prototype,"wasCreatedLocally",null),Js([Ha],Qs.prototype,"getValue",null),Js([Ha],Qs.prototype,"getValues",null),Js([Ha],Qs.prototype,"children",null),Js([Ha],Qs.prototype,"getFilteredChildren",null),Js([Ha],Qs.prototype,"elements",null),Js([Ha],Qs.prototype,"isEmpty",null),Js([Ya],Qs.prototype,"setValue",null),Js([Ya],Qs.prototype,"removeValue",null),Js([Ha],Qs.prototype,"isDeletedLocally",null),Js([Ha],Qs.prototype,"getLocalizedName",null),Js([Ha],Qs.prototype,"getLocalizedNames",null),Js([Ya],Qs.prototype,"setLocalizedName",null),Js([Ya,Ha],Qs.prototype,"parent",null);class ec extends Va{constructor(e,t,r){super(e,t,r),this._groupCache=new as(this,Qs),this._elementCache=new as(this,Rs),this._documentationElementCache=new as(this,Rs),this._removedElementCache=new as(this,Rs);const n=this.data,i=n.groups,o=n.elements,a=n.documentationElements,s=n.removedElements;i&&this._groupCache.replace(i),o&&this._elementCache.replace(o),a&&this._documentationElementCache.replace(a),s&&this._removedElementCache.replace(s)}get isPublic(){return"public"===this.data.ownership}get collaboration(){return this.data.collaboration}get elements(){return this._elementCache.all()}get elementCount(){return this.elements.length}get documentationElements(){return this._documentationElementCache.all()}get documentationElementCount(){return this.documentationElements.length}get removedElements(){return this._removedElementCache.all()}get removedElementCount(){return this.removedElements.length}getElementById(e){return this.elements.find((t=>t.id===e))}getElementsAndDependencies(e){const t={},r=e=>{const n=this.getElementById(e);n&&!t[e]&&(t[e]=n,(n.dependencies.map((e=>e.id))||[]).forEach(r))};return e.forEach((e=>r(e.id))),Object.keys(t).map((e=>t[e]))}getFilteredElements(e){return this.elements.filter(e)}getGroupCount(e){return this.getGroups(e).length}getGroups(e){return this._groupCache.all().filter((t=>t.classifierName===e))}getGroupById(e){return this._groupCache.get(e)}getFilteredGroups(e="$default",t){var r;return(null===(r=this.getGroups(e))||void 0===r?void 0:r.filter(t))||[]}hasUngroupedElements(e="$default"){return this.elementCount>this.getGroups(e).reduce(((e,t)=>e+t.elements.length),0)}getLocalizedName(e){var t;return null===(t=this.data.localizedNames)||void 0===t?void 0:t[e]}getValue(e,t){var r;return null===(r=this.data.customData)||void 0===r?void 0:r[`${e}#${t}`]}getActions(){return[]}get areElementsLoaded(){return!0}get assetId(){return this.data.assetId}get created(){return this.data.createdDate}get documentId(){return this.data.documentId}get documentType(){return this.data.documentType}get isLibraryLoaded(){return!0}get isTransient(){return!0}get isDeletedLocally(){return!1}get isParentWritable(){return!1}get isPushedToServer(){return!0}get isWritable(){return!1}get modified(){return this.data.modifiedDate}get name(){return this.data.name}get owner(){return this.data.owner}get ownerType(){return this.data.ownerType}get ownership(){return this.data.ownership}get parentDirectoryId(){var e;return null===(e=this.data.team)||void 0===e?void 0:e.id}get team(){return this.apiRoot.teams.find((e=>{var t;return e.id===(null===(t=this.data.team)||void 0===t?void 0:t.id)}))||this.data.team}get toolkitId(){return this.data.toolkitId}get isDeletedFromServer(){return!1}get renditionGrid(){}get storageUsed(){return 0}get syncProgress(){return 0}get syncState(){}get isQuotaExceeded(){return!1}}function tc(){tc=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function rc(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class nc extends Va{get id(){return this._data.id}get createdDate(){return this._data.createdDate}get createdBy(){return this._data.createdBy}get library(){return this._parent}load(){var e,t=this;return(e=tc().mark((function e(){var r;return tc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t._libraryVersion){e.next=2;break}return e.abrupt("return",t._libraryVersion);case 2:return e.next=4,t.apiRoot.cloudDriver.loadVersion(t.library.assetId,t._data.manifestUrl);case 4:return r=e.sent,t._libraryVersion=new ec(void 0,t,r),e.abrupt("return",t._libraryVersion);case 7:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){rc(o,n,i,a,s,"next",e)}function s(e){rc(o,n,i,a,s,"throw",e)}a(void 0)}))})()}}!function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);o>3&&a&&Object.defineProperty(t,r,a)}([Wa],nc.prototype,"load",null);class ic extends Va{get imsUserId(){return this.data.imsUserId}get email(){return this.data.email}get name(){return this.data.name}get role(){return this.data.role}get inheritances(){return this.data.inheritances}get type(){return this.data.type}get isDirect(){return this.data.isDirect}get hasContributorRole(){return this.data.hasContributorRole}get hasName(){return this.data.hasName}get invited(){return this.data.invited}get isAdmin(){return this.data.isAdmin}get isPredefinedGroup(){return"predefinedPrincipal"===this.type}get isStorageAdminOnly(){var e;return 1===(null===(e=this.inheritances)||void 0===e?void 0:e.length)&&"deep_override"===this.inheritances[0]}}function oc(){oc=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ac(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class sc extends te{constructor(){super(...arguments),this._isLocked=!1,this._queue=[]}execute(e){const t=e=>(this.release(),e);return this.obtain().then(e).then((e=>t(e)),(e=>t(Promise.reject(e))))}_obtain(e){this._isLocked?this._queue.push(e):(this._isLocked=!0,this.emit("change"),e(null))}obtain(){return new Promise(((e,t)=>this._obtain((r=>r?t(r):e()))))}release(){if(this._queue.length>0){const e=this._queue.shift();setTimeout((()=>e(null)))}else this._isLocked=!1,this.emit("change")}abortPendingOperations(e){const t=this._queue;this._queue=[],t.forEach((t=>t(e)))}get isLocked(){return this._isLocked}hasPendingRequest(){return this._queue.length>0}}function cc(e,t,r){const n=r.value;r.value=function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ac(o,n,i,a,s,"next",e)}function s(e){ac(o,n,i,a,s,"throw",e)}a(void 0)}))}}(oc().mark((function e(...t){var r;return oc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._lock=this._lock||new sc,e.next=3,this._lock.obtain();case 3:return e.prev=3,e.next=6,n.apply(this,t);case 6:return r=e.sent,this._lock.release(),e.abrupt("return",r);case 11:throw e.prev=11,e.t0=e.catch(3),this._lock.release(),e.t0;case 15:case"end":return e.stop()}}),e,this,[[3,11]])})))}function lc(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return uc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?uc(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function uc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const dc=[{test:e=>Zs(e)&&["moveGroup","copyGroup"].includes(e.name),handler:function(e,t){var r;const n=[],i=Ln(t.path),o=t.actions.map((e=>"removeElement"===e.name&&e.baseData)),a=(null===(r=e.elements)||void 0===r?void 0:r.filter((e=>e.groups.find((e=>e.id===i)))))||[];var s,c=lc(a.filter((e=>!o.find((t=>t.id===e.id)))));try{for(c.s();!(s=c.n()).done;){const e=s.value;n.push({name:"updateElement",type:"update",path:`$.elements[?(@.id == "${e.id}")]`,data:{groups:e.groups.filter((e=>e.id!==i))}})}}catch(e){c.e(e)}finally{c.f()}const l=o.filter((e=>!a.find((t=>t.id===e.id))));for(let e=t.actions.length-1;e>=0;e-=1){const r=t.actions[e];l.find((e=>e.id===r.baseData.id))&&t.actions.splice(e,1)}return n.push(t),n}},{test:e=>js(e)&&"updateElementContent"===e.name,handler:function(e,t){const r=Ys.get(e,t.path);return r&&r.modifiedDate!==t.baseData.modifiedDate&&!Qa(r.representations,t.baseData.representations,{cyclesFix:!1}).find((e=>"id"!==e.path[1]&&"CREATE"!==e.type&&!(void 0===e.oldValue&&"REMOVE"===e.type)))||r&&r.modifiedDate===t.baseData.modifiedDate?[t]:[{name:"createElement",type:"insert",path:xn(t.path),data:Dn(Object.assign(Object.assign(Object.assign({},t.baseData),t.data),{id:k()}))}]}},{test:e=>js(e)&&"updateGroup"===e.name,handler:function(e,t){const r=Ys.get(e,t.path);return r?[Object.assign(Object.assign({},t),{baseData:Dn(r)})]:[{name:"createGroup",type:"insert",path:"$.groups",data:Dn(Object.assign(Object.assign(Object.assign({},t.baseData),t.data),{id:k()}))}]}},{test:e=>js(e)&&"updateElement"===e.name,handler:function(e,t){const r=Ys.get(e,t.path);return r?[Object.assign(Object.assign({},t),{baseData:Dn(r)})]:[]}},{test:e=>Zs(e)&&"removeElement"===e.name,handler:function(e,t){const r=Ys.get(e,t.path),n=t.actions.find((e=>"removeElement"===e.name));return r&&r.modifiedDate===(null==n?void 0:n.baseData.modifiedDate)?[t]:[]}},{test:e=>Fs(e),handler:function(e,t){const r=Ys.get(e,t.path);return r&&r.modifiedDate===t.baseData.modifiedDate?[t]:[]}}];function pc(e,t){var r,n=lc(dc);try{for(n.s();!(r=n.n()).done;){const n=r.value,i=n.test,o=n.handler;if(i(t))return o(e,t)}}catch(e){n.e(e)}finally{n.f()}return[t]}function hc(e){const t="incoming"===e.ownership&&"org"===e.ownerType;return Boolean("incoming"===e.ownership&&e.team||t)}function fc(e){var t;return!!(null===(t=e.roles)||void 0===t?void 0:t.find((e=>"brand"===e.type)))}function mc(e,t){var r,n;if(!e||function(e){var t;return!!(null===(t=e.roles)||void 0===t?void 0:t.some((e=>"cm_training_set"===e.type)))}(e))return!1;const i="incoming"===e.ownership,o="private"===e.ownership||"outgoing"===e.ownership,a=t?i:o,s=!!(null===(r=e.bookmark)||void 0===r?void 0:r.id),c=!!(null===(n=e.roles)||void 0===n?void 0:n.find((e=>"approvedbrand"===e.type)));return a||s||c}function gc(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return vc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vc(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function vc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yc(){yc=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function bc(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function _c(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){bc(o,n,i,a,s,"next",e)}function s(e){bc(o,n,i,a,s,"throw",e)}a(void 0)}))}}var Ec=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},wc=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,(t=e[r](t)).done,t.value)}))}}};let xc=class extends Xs{constructor(e,t,r){super(e,t,Object.assign({groups:[],elements:[],documentationElements:[],removedElements:[]},r)),this._lock=new sc,this._versionCache=new as(this,nc),this._collaboratorCache=new as(this,ic),this._isDeletedLocally=!1,this._childModelCaches={groups:{cache:new as(this,cs(Qs)),accessor:e=>e.groups},elements:{cache:new as(this,cs(Rs)),accessor:e=>e.elements},documentationElements:{cache:new as(this,cs(Rs)),accessor:e=>e.documentationElements},removedElements:{cache:new as(this,cs(Rs)),accessor:e=>e.removedElements}},this._hasExplicitlyLoadedElements=!1,this.isLibrary=!0,this.on("action",(()=>this.syncStatus={})),this.on("commit",(()=>this.syncStatus={})),this._lock.on("change",(()=>this.syncStatus={}))}obtainLock(){return this._lock.obtain()}releaseLock(){return this._lock.release()}get isLocked(){return this._lock.isLocked}load(e,t){return this._load(!1,e,t)}loadElements(e){var t=this;return _c(yc().mark((function r(){return yc().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.areElementsLoaded&&t._hasExplicitlyLoadedElements){r.next=4;break}return t._hasExplicitlyLoadedElements=!0,r.next=4,t._load(!0,e);case 4:case"end":return r.stop()}}),r)})))()}clearElements(e=!0){const t=0===this.elements.length&&0===this.documentationElements.length;this.areElementsLoaded||t||this.update({elements:[],documentationElements:[],removedElements:[],areElementsLoaded:!1},e)}abortLoadElements(){this._loadElementsAbortController&&this._loadElementsAbortController.abort()}_load(e=!1,t,r){var n=this;return _c(yc().mark((function i(){var o,a,s,c,l,u,d,p,h,f,m,g,v,y,b,_;return yc().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:n._loadElementsAbortController=new AbortController,e&&!n.areElementsLoaded&&(n.apiRoot.abortSearch(),n.clearElements()),f={etag:n.data.appMetadata?void 0:n.data.etag,optimisticFetch:!0,firstElementsLoad:!n.areElementsLoaded,getRenditionGrid:!n.apiRoot.options.loadBrandFromMelvilleOnUpdate||!e&&!n.areElementsLoaded,elementParams:e||n.areElementsLoaded?{types:n.apiRoot.options.elementTypes,sort:t,abortController:n._loadElementsAbortController,loadProgressively:!n.areElementsLoaded}:void 0},r&&(f.optimisticFetch=!1),n.data.appMetadata&&(f.getAppMetadata=!0),"notification"===r&&(f.isNotificationLoad=!0),i.prev=6,i.prev=7,m=!0,g=wc(n.driver.getLibrary(n,f));case 9:return i.next=11,g.next();case 11:if(v=i.sent,o=v.done){i.next=32;break}if(c=v.value,m=!1,i.prev=16,!(y=c).etag||f.getAppMetadata){i.next=22;break}if(!n._previouslySeenEtags.has(y.etag)){i.next=21;break}return i.abrupt("continue",30);case 21:n._previouslySeenEtags.add(y.etag);case 22:n.update(y),(b=null===(u=null===(l=y.appMetadata)||void 0===l?void 0:l["brand:publishedTo"])||void 0===u?void 0:u["repo:assetId"])&&n.apiRoot.resolveLibraryWithoutCache(b),(_=null===(p=null===(d=y.appMetadata)||void 0===d?void 0:d["brand:publishedFrom"])||void 0===p?void 0:p["repo:assetId"])&&n.apiRoot.resolveLibraryWithoutCache(_);case 27:return i.prev=27,m=!0,i.finish(27);case 30:i.next=9;break;case 32:i.next=37;break;case 34:i.prev=34,i.t0=i.catch(7),a={error:i.t0};case 37:if(i.prev=37,i.prev=38,m||o||!(s=g.return)){i.next=42;break}return i.next=42,s.call(g);case 42:if(i.prev=42,!a){i.next=45;break}throw a.error;case 45:return i.finish(42);case 46:return i.finish(37);case 47:i.next=60;break;case 49:if(i.prev=49,i.t1=i.catch(6),!(i.t1 instanceof Se)){i.next=59;break}if("PRECONDITION_FAILED"!==i.t1.code){i.next=54;break}return i.abrupt("return",n._load(e,t,r));case 54:if("NOT_MODIFIED"!==i.t1.code){i.next=56;break}return i.abrupt("return");case 56:if("NOT_FOUND"!==i.t1.code){i.next=59;break}return D(n.id)||null===(h=n._modelCache)||void 0===h||h.remove(n.id),i.abrupt("return");case 59:throw i.t1;case 60:case"end":return i.stop()}}),i,null,[[6,49],[7,34,37,47],[16,,27,30],[38,,42,46]])})))()}loadGivenElements(e,t=!1,r=!1){if(!t&&this.data.areElementsLoaded)return;if(t||(e=e.filter((e=>!this.getElementById(e.id)))),0===e.length)return;const n=(this.data.elements||[]).concat(e);this.update({elements:n},r)}get type(){return"application/vnd.adobe.library+dcx"}get id(){return this.data.id}get version(){return this.data.version}get publicLinkId(){return this.data.publicLinkId}get bookmark(){var e;return{id:null===(e=this.data.bookmark)||void 0===e?void 0:e.id}}get previousPlaceHolderId(){return this._baseData.previousPlaceholderId}get isPublic(){return"public"===this.data.ownership}get ownership(){return this.data.ownership}get locallyManaged(){return!!this.data.locallyManaged}set locallyManaged(e){this.data.locallyManaged=e}get name(){return this.data.name}set name(e){this.actionDispatch({name:"updateLibrary",type:"update",data:{name:e}})}getLocalizedName(e="en_US"){return this.data.localizedNames[e]}getLocalizedNames(){return this.data.localizedNames||{}}setLocalizedName(e,t){return this.actionDispatch({name:"updateLibrary",type:"update",path:"$",data:{localizedNames:Object.assign(Object.assign({},this.data.localizedNames),{[e]:t})}})}get created(){return this.data.createdDate}get modified(){return Math.max(this.data.modifiedDate,this._lastLocalUpdateDate)}get createdBy(){return this.data.createdBy}get modifiedBy(){return this.data.modifiedBy}get toolkitId(){return this.data.toolkitId}set toolkitId(e){this.actionDispatch({name:"updateLibrary",type:"update",data:{toolkitId:e}})}get roles(){return this.data.roles||[]}set roles(e){this.actionDispatch({name:"updateLibrary",type:"update",data:{roles:e}})}get description(){return this.data.description}set description(e){this.actionDispatch({name:"updateLibrary",type:"update",data:{description:e}})}get copyGuidelines(){var e;return(null===(e=this.apiRoot.options.featureFlags)||void 0===e?void 0:e.enableGenStudioAPIs)?this.getValue("brand","copyGuidelines")||{}:(oe.warn("library.copyGuidelines is only accessible when the feature flag enableGenStudioAPIs is enabled."),{})}set copyGuidelines(e){var t;(null===(t=this.apiRoot.options.featureFlags)||void 0===t?void 0:t.enableGenStudioAPIs)?this.setValue("brand","copyGuidelines",e):oe.warn("library.copyGuidelines is only accessible when the feature flag enableGenStudioAPIs is enabled.")}get documentId(){return this.data.documentId}get renditionGrid(){var e;const t=this.data.etag!==(null===(e=this.data.renditionGrid)||void 0===e?void 0:e.gridGenerationEtag);return this.areElementsLoaded&&t?st(this)||void 0:this.data.renditionGrid}get thumbnail(){return this.data.thumbnail}get documentType(){return this.data.documentType}get collaboration(){return this.data.collaboration}get appMetadata(){return this.data.appMetadata||{}}get assetId(){return this.data.assetId}get isWritable(){return this.data.isWritable}get isParentWritable(){return this.data.isParentWritable}get removeType(){return this.data.removeType}get deletable(){return this.data.deletable}get owner(){var e;return this.data.owner||("private"===this.data.ownership?null===(e=this.driver.config.user)||void 0===e?void 0:e.id:void 0)}get ownerType(){return this.data.ownerType}get parentDirectoryId(){var e;return null===(e=this.data.team)||void 0===e?void 0:e.id}get team(){return"staging"===this.driver.config.environment&&oe.warn("Library.team is deprecated. Use Library.project instead."),this.apiRoot.teams.find((e=>{var t;return e.id===(null===(t=this.data.team)||void 0===t?void 0:t.id)}))||this.data.team}get project(){return this.apiRoot.projects.find((e=>{var t;return e.id===(null===(t=this.data.team)||void 0===t?void 0:t.id)}))||this.data.team}get isDeletedFromServer(){return!1}get isDeletedLocally(){return this._isDeletedLocally}set isDeletedLocally(e){this._isDeletedLocally=e,this.emit("change")}get isQuotaExceeded(){return!1}get storageUsed(){return this.data.storageUsed}set syncStatus({syncState:e,syncProgress:t}){const r=this._syncState,n=this._syncProgress;this._syncState=e,this._syncProgress=t,(this.isLocked||this._actions.length>0)&&(this._syncState=this._syncState||this._actions.length>0?"uploading":"downloading"),this._syncState===r&&this._syncProgress===n||this.emit("sync")}get syncState(){return this._syncState}get syncProgress(){return this._syncProgress}get syncError(){var e;return null===(e=this.apiRoot.syncState.errorMap.get(this.id))||void 0===e?void 0:e.error}get isPushedToServer(){return Boolean(this.assetId)}get areElementsLoaded(){return Boolean(this.data.areElementsLoaded)}get elements(){return this._elementCache.all()}get elementCount(){return this.elements.length}getFilteredElements(e){return this.elements.filter(e)}get documentationElements(){return this._documentationElementCache.all()}get documentationElementCount(){return this.documentationElements.length}get removedElements(){return this._removedElementCache.all()}get removedElementCount(){return this.removedElements.length}get publishedTo(){var e,t;return null===(t=null===(e=this.data.appMetadata)||void 0===e?void 0:e["brand:publishedTo"])||void 0===t?void 0:t["repo:assetId"]}get publishedFrom(){var e,t;return null===(t=null===(e=this.data.appMetadata)||void 0===e?void 0:e["brand:publishedFrom"])||void 0===t?void 0:t["repo:assetId"]}get lastPublishedVersion(){var e;return null===(e=this.data.appMetadata)||void 0===e?void 0:e["brand:lastPublishedVersion"]}get extractedFrom(){var e,t;return null===(t=null===(e=this.data.appMetadata)||void 0===e?void 0:e["brand:extractedFrom"])||void 0===t?void 0:t.map((e=>e["repo:assetId"]))}getElementById(e,t=!1,r=!1){var n,i=gc([this.elements,!t&&this.removedElements,!r&&this.documentationElements].filter(Boolean));try{for(i.s();!(n=i.n()).done;){const t=n.value.find((t=>t.id===e||t.data.previousPlaceholderId===e));if(t)return t}}catch(e){i.e(e)}finally{i.f()}}getReference(){return{"dc:format":this.type,"repo:assetId":this.assetId,"repo:name":this.name,"stRef:manager":"Adobe Cloud","stRef:documentID":this.id}}getReferenceString(){return j(this.getReference())}createElement(e,t){return this._createElementAtPath(e,t,"$.elements")}createDocumentationElement(e,t){return this._createElementAtPath(e,t,"$.documentationElements")}_createElementAtPath(e,t,r){this.beginOperation();const n=k();return this.actionDispatch({name:"createElement",type:"insert",path:r,data:{id:n,name:e,type:t,createdDate:Date.now(),modifiedDate:Date.now(),representations:[],groups:[]}}),this.getElementById(n)}removeElement(e,t){e.removed=Date.now();const r={name:"removeElement",path:`$.elements[?(@.id == "${e.id}")]`};if(t)this.actionDispatch(Object.assign(Object.assign({},r),{type:"remove"}));else{const t=[Object.assign(Object.assign({},r),{type:"remove"})];t.push({name:"createElement",type:"insert",path:"$.removedElements",data:e.data}),this.actionDispatch(Object.assign(Object.assign({},r),{type:"aggregate",actions:t}))}}restoreElement(e){const t=[{name:"restoreElement",type:"insert",path:"$.elements",data:e.data},{name:"removeElement",type:"remove",path:`$.removedElements[?(@.id == "${e.id}")]`}];return this.actionDispatch({name:"restoreElement",type:"aggregate",data:e.data,actions:t}),this.getElementById(e.id)}copyElement(e,t){return this._transferElement(e,t,!1)}moveElement(e,t){return this._transferElement(e,t,!0)}_transferElement(e,t,r){const n=k(),i={name:r?"moveElement":"copyElement",type:r?"remove":"no-op",path:`$.elements[?(@.id == "${e.id}")]`,library:this},o={name:"dependent",type:"insert",path:"$.elements",library:t,data:Object.assign(Object.assign({},e.data),{id:n})};return i.link=o,o.link=i,this.actionDispatch(i),t.actionDispatch(o),Promise.resolve(t.getElementById(n))}stageRepresentationForCommit(e,t){var r=this;return _c(yc().mark((function n(){var i;return yc().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=k(),r.actionDispatch({name:"uploadComponent",type:"no-op",data:{id:i,type:t,file:e}}),n.abrupt("return",JSON.stringify({id:i,type:t}));case 3:case"end":return n.stop()}}),n)})))()}getGroups(e="$default"){return this._groupCache.all().filter((t=>t.classifierName===e))}getGroupCount(e="$default"){return this.getGroups(e).length}getFilteredGroups(e="$default",t){var r;return(null===(r=this.getGroups(e))||void 0===r?void 0:r.filter(t))||[]}getGroupById(e){return this._groupCache.get(e)}createGroup(e,t,r="$default"){const n=k();return this.actionDispatch({name:"createGroup",type:"insert",path:"$.groups",data:{id:n,name:e,order:t,classifier:r}}),this.getGroupById(n)}removeGroup(e,t){const r={name:"removeGroup",path:`$.groups[?(@.id == "${e.id}")]`};if(e.isDeletedLocally=!0,t){const t=[Object.assign(Object.assign({},r),{type:"remove"})];var n,i=gc(e.elements);try{for(i.s();!(n=i.n()).done;){const e=n.value;t.push({name:"removeElement",type:"remove",path:`$.elements[?(@.id == "${e.id}")]`})}}catch(e){i.e(e)}finally{i.f()}this.actionDispatch(Object.assign(Object.assign({},r),{type:"aggregate",flags:{includeElements:!0},actions:t}))}else this.actionDispatch(Object.assign(Object.assign({},r),{type:"remove"}))}copyGroup(e,t,r){return this._transferGroup(e,t,r,!1)}moveGroup(e,t,r){return this._transferGroup(e,t,r,!0)}_transferGroup(e,t,r,n){const i=[];if(n&&(i.push({type:"remove",path:`$.groups[?(@.id == "${e.id}")]`}),r)){var o,a=gc(e.elements);try{for(a.s();!(o=a.n()).done;){const e=o.value;i.push({type:"remove",path:`$.elements[?(@.id == "${e.id}")]`})}}catch(e){a.e(e)}finally{a.f()}}const s=k(),c={name:n?"moveGroup":"copyGroup",type:n?"aggregate":"no-op",path:`$.groups[?(@.id == "${e.id}")]`,library:this,actions:i,flags:{includeElements:r}},l={name:"dependent",type:"insert",path:"$.groups",library:t,data:Object.assign(Object.assign({},e.data),{id:s})};return c.link=l,l.link=c,this.actionDispatch(c),t.actionDispatch(l),Promise.resolve(t.getGroupById(s))}hasUngroupedElements(e="$default"){return this.elementCount>this.getGroups(e).reduce(((e,t)=>e+t.elements.length),0)}getAuthenticatedRenditionURL(e){return Promise.resolve("")}getRenditionPath(e){return Promise.reject()}getRenditionURL(e){}setRendition(e,t,r,n){return Promise.reject()}setRenditionFromPath(e,t,r){return Promise.reject()}removeRendition(e){return Promise.reject()}sync(){return Promise.resolve(void 0)}getValue(e,t){var r;return null===(r=this.data.customData)||void 0===r?void 0:r[`${e}#${t}`]}getValues(){return ds(this.data.customData)}setValue(e,t,r,n){this.actionDispatch({name:"updateLibrary",type:"update",data:{customData:{[`${e}#${t}`]:r}}})}removeValue(e,t,r){this.setValue(e,t,null,r)}linkToDocument(e,t){if(this.isDeletedLocally)throw new J("DELETED_LOCALLY","deleted/orphan object");if(e||t){if(!e||!t)throw new J("INVALID_PARAMETER","Need to pass strings for both documentId and documentType");this.actionDispatch({name:"updateLibrary",type:"update",data:{documentId:e,documentType:t}})}else this.actionDispatch({name:"updateLibrary",type:"update",data:{documentId:null,documentType:null}})}getElementsAndDependencies(e){const t={},r=e=>{const n=this.getElementById(e);n&&!t[e]&&(t[e]=n,(n.dependencies.map((e=>e.id))||[]).forEach(r))};return e.forEach((e=>r(e.id))),Object.keys(t).map((e=>t[e]))}getActions(e){if(!this.documentType)return[];const t=this.apiRoot.getOption("DOCUMENT_LIBRARY_ACTION_PRODUCT_MAP");return Es(this,e,t.types[this.documentType]||[],t.products)}get _elementCache(){return this._childModelCaches.elements.cache}get _documentationElementCache(){return this._childModelCaches.documentationElements.cache}get _removedElementCache(){return this._childModelCaches.removedElements.cache}get _groupCache(){return this._childModelCaches.groups.cache}update(e,t=!0){const r=super.update(e,!1);return this._updateCaches(t),t&&this.emit("change"),r}get isLibraryLoaded(){return Boolean(this.data.isLibraryLoaded)}get isTransient(){return Boolean(this.data.isTransient)}loadVersionHistory(){var e=this;return _c(yc().mark((function t(){var r;return yc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.apiRoot.cloudDriver.loadVersionHistory(e.assetId);case 2:return r=t.sent,e._versionCache.upsert(...r),e.emit("change"),t.abrupt("return",e.versions);case 6:case"end":return t.stop()}}),t)})))()}get versions(){return this._versionCache.all()}loadCollaborators(){var e=this;return _c(yc().mark((function t(){var r;return yc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.assetId){t.next=6;break}return t.next=3,e.apiRoot.cloudDriver.getCollaborators(e.assetId);case 3:r=t.sent,e._collaboratorCache.upsert(...r),e.emit("change");case 6:return t.abrupt("return",e.collaborators);case 7:case"end":return t.stop()}}),t)})))()}get collaborators(){return this._collaboratorCache.all()}get visibleCollaborators(){return this.collaborators.filter((e=>!e.isPredefinedGroup&&!e.isStorageAdminOnly))}_actionDispatch(e){var t;if(this.isDeletedLocally)oe.log(`[LIBRARY] Cannot dispatch action on deleted library: ${this.id}`);else{if(e.path||(e.path="$"),e.library||(e.library=this),"aggregate"===e.type&&(null===(t=e.actions)||void 0===t||t.map((t=>{if("remove"===t.type){const r=Ys.get(this._currentData,e.path);t.baseData={modifiedDate:r.modifiedDate}}return t}))),"remove"===e.type){const t=Ys.get(this._currentData,e.path);e.baseData={modifiedDate:t.modifiedDate}}"update"===e.type&&(e.baseData=Dn(Ys.get(this._currentData,e.path))),super._actionDispatch(e,!1),"no-op"!==e.type&&(this._updateCaches(),this.emit("change"))}}_collapseActions(e){const t=[],r={},n={};var i,o=gc(e);try{for(o.s();!(i=o.n()).done;){const e=i.value;if(["updateElement","updateElementContent"].includes(e.name)&&js(e)){const t=wn(e.path),i=r[t];if(i){oe.log("[LIBRARY] Identified collapsible action (updateElement). Combining with (createElement)"),i.data=Object.assign(Object.assign({},i.data),e.data);continue}const o=n[t];if(o){o.data=Object.assign(Object.assign({},o.data),e.data);continue}}"createElement"===e.name&&Ms(e)&&(r[e.data.id]=e),"updateElementContent"===e.name&&js(e)&&(n[wn(e.path)]=e),t.push(e)}}catch(e){o.e(e)}finally{o.f()}return t}_rebaseActions(){let e=Dn(this._baseData);this._actions=this._actions.map((t=>{const r=pc(e,t);return e=r.reduce(((t,r)=>this._reducer(e,r)),e),r})).flat(),this._pendingActions=this._pendingActions.map((t=>{const r=pc(e,t);return e=r.reduce(((t,r)=>this._reducer(e,r)),e),r})).flat(),this._currentData=e}};Ec([cc],xc.prototype,"load",null),Ec([cc],xc.prototype,"loadElements",null),Ec([Ha],xc.prototype,"id",null),Ec([Ha],xc.prototype,"version",null),Ec([Ha],xc.prototype,"publicLinkId",null),Ec([Ha],xc.prototype,"bookmark",null),Ec([Ha],xc.prototype,"previousPlaceHolderId",null),Ec([Ha],xc.prototype,"locallyManaged",null),Ec([Ha,Ya],xc.prototype,"name",null),Ec([Ha],xc.prototype,"getLocalizedName",null),Ec([Ha],xc.prototype,"getLocalizedNames",null),Ec([Ya],xc.prototype,"setLocalizedName",null),Ec([Ha],xc.prototype,"created",null),Ec([Ha],xc.prototype,"modified",null),Ec([Ha],xc.prototype,"createdBy",null),Ec([Ha],xc.prototype,"modifiedBy",null),Ec([Ha,Ya],xc.prototype,"toolkitId",null),Ec([Ha,Ya],xc.prototype,"roles",null),Ec([Ha,Ya],xc.prototype,"description",null),Ec([Ha,Ya],xc.prototype,"copyGuidelines",null),Ec([Ha],xc.prototype,"documentId",null),Ec([Ha],xc.prototype,"renditionGrid",null),Ec([Ha],xc.prototype,"thumbnail",null),Ec([Ha],xc.prototype,"documentType",null),Ec([Ha],xc.prototype,"collaboration",null),Ec([Ha],xc.prototype,"appMetadata",null),Ec([Ha],xc.prototype,"assetId",null),Ec([Ha],xc.prototype,"isWritable",null),Ec([Ha],xc.prototype,"isParentWritable",null),Ec([Ha],xc.prototype,"removeType",null),Ec([Ha],xc.prototype,"deletable",null),Ec([Ha],xc.prototype,"owner",null),Ec([Ha],xc.prototype,"ownerType",null),Ec([Ha],xc.prototype,"parentDirectoryId",null),Ec([Ha],xc.prototype,"team",null),Ec([Ha],xc.prototype,"project",null),Ec([Ha],xc.prototype,"isDeletedFromServer",null),Ec([Ha],xc.prototype,"isDeletedLocally",null),Ec([Ha],xc.prototype,"isQuotaExceeded",null),Ec([Ha],xc.prototype,"storageUsed",null),Ec([Ha("sync")],xc.prototype,"syncState",null),Ec([Ha("sync")],xc.prototype,"syncProgress",null),Ec([Ha("sync")],xc.prototype,"syncError",null),Ec([Ha],xc.prototype,"isPushedToServer",null),Ec([Ha],xc.prototype,"areElementsLoaded",null),Ec([Ha],xc.prototype,"elements",null),Ec([Ha],xc.prototype,"elementCount",null),Ec([Ha],xc.prototype,"getFilteredElements",null),Ec([Ha],xc.prototype,"documentationElements",null),Ec([Ha],xc.prototype,"documentationElementCount",null),Ec([Ha],xc.prototype,"removedElements",null),Ec([Ha],xc.prototype,"removedElementCount",null),Ec([Ha],xc.prototype,"publishedTo",null),Ec([Ha],xc.prototype,"publishedFrom",null),Ec([Ha],xc.prototype,"lastPublishedVersion",null),Ec([Ha],xc.prototype,"extractedFrom",null),Ec([Ha],xc.prototype,"getElementById",null),Ec([Ya],xc.prototype,"createElement",null),Ec([Ya],xc.prototype,"createDocumentationElement",null),Ec([Ya],xc.prototype,"removeElement",null),Ec([Ya],xc.prototype,"restoreElement",null),Ec([Ya],xc.prototype,"moveElement",null),Ec([Ya],xc.prototype,"stageRepresentationForCommit",null),Ec([Ha],xc.prototype,"getGroups",null),Ec([Ha],xc.prototype,"getGroupCount",null),Ec([Ha],xc.prototype,"getFilteredGroups",null),Ec([Ha],xc.prototype,"getGroupById",null),Ec([Ya],xc.prototype,"createGroup",null),Ec([Ya],xc.prototype,"removeGroup",null),Ec([Ya],xc.prototype,"moveGroup",null),Ec([Ha],xc.prototype,"hasUngroupedElements",null),Ec([Ha],xc.prototype,"getAuthenticatedRenditionURL",null),Ec([Ha],xc.prototype,"getRenditionPath",null),Ec([Ha],xc.prototype,"getRenditionURL",null),Ec([Ya],xc.prototype,"setRendition",null),Ec([Ya],xc.prototype,"setRenditionFromPath",null),Ec([Ya],xc.prototype,"removeRendition",null),Ec([Ha],xc.prototype,"getValue",null),Ec([Ha],xc.prototype,"getValues",null),Ec([Ya],xc.prototype,"setValue",null),Ec([Ya],xc.prototype,"removeValue",null),Ec([Ya],xc.prototype,"linkToDocument",null),Ec([Ha],xc.prototype,"getElementsAndDependencies",null),Ec([Ha],xc.prototype,"getActions",null),Ec([Wa],xc.prototype,"loadVersionHistory",null),Ec([Ha,Wa],xc.prototype,"versions",null),Ec([Wa],xc.prototype,"loadCollaborators",null),Ec([Ha],xc.prototype,"collaborators",null),Ec([Ha],xc.prototype,"visibleCollaborators",null),xc=Ec([za],xc);const Lc=xc;function Oc(){Oc=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Sc(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class Tc extends Va{get id(){return this._data.id}get name(){return this._data.name}get owner(){return this._data.owner}get ownerName(){return this._data.ownerName}get isReadOnly(){return this._data.isReadOnly}get isWritable(){return this._data.isWritable}_refreshGradient(){var e,t=this;return(e=Oc().mark((function e(){var r;return Oc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t._data.gradient){e.next=2;break}return e.abrupt("return",t._data.gradient);case 2:return e.next=4,t.apiRoot.driver.getProjectGradient(t);case 4:r=e.sent,t.update({gradient:r});case 6:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Sc(o,n,i,a,s,"next",e)}function s(e){Sc(o,n,i,a,s,"throw",e)}a(void 0)}))})()}get gradientData(){return this._refreshGradient(),this._data.gradient}}function Pc(){Pc=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ic(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Ac(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ic(o,n,i,a,s,"next",e)}function s(e){Ic(o,n,i,a,s,"throw",e)}a(void 0)}))}}!function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);o>3&&a&&Object.defineProperty(t,r,a)}([Ha],Tc.prototype,"gradientData",null);var Cc=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};const kc=[e=>{e.createObjectStore("libraries",{keyPath:"id"})}];function Dc(e){return function(t,r,n){const i=n.value;n.value=Ac(Pc().mark((function t(...n){return Pc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.connect();case 2:if(this.supported){t.next=5;break}return oe.info(`IndexedDB not supported. Cannot complete ${r} request`),t.abrupt("return",e);case 5:return t.abrupt("return",i.apply(this,n));case 6:case"end":return t.stop()}}),t,this)})))}}class Nc{constructor(e){this._databaseName=e}get supported(){if(void 0!==this._supported)return this._supported;"undefined"!=typeof window&&window.indexedDB||(this._supported=!1);try{const e=window.indexedDB.open("cclibs_indexeddb_test",1);e.onsuccess=()=>e.result.close(),this._supported=!0}catch(e){this._supported=!1}return this._supported||oe.info("IndexedDB not supported."),this._supported}connect(){return this.supported?(this._connectPromise=this._connectPromise||new Promise(((e,t)=>{const r=window.indexedDB.open(this._databaseName,kc.length);r.onerror=()=>{t(new J("CONNECTION_FAILED","Unable to connect to IndexedDB database"))},r.onupgradeneeded=e=>{this._database=r.result,this._createSchema(e.oldVersion)},r.onsuccess=()=>{this._database=r.result,e(this)}})),this._connectPromise):Promise.resolve(this)}get(e){return this.transaction("readonly",(t=>new Promise((r=>{const n=t.get(e);n.onsuccess=()=>{r(n.result)}}))))}getAll(){return this.transaction("readonly",(e=>new Promise((t=>{const r=e.getAll();r.onsuccess=()=>t(r.result)}))))}set(...e){var t=this;return Ac(Pc().mark((function r(){return Pc().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.transaction("readwrite",(t=>{e.forEach((e=>t.put(e)))}));case 2:case"end":return r.stop()}}),r)})))()}delete(e){var t=this;return Ac(Pc().mark((function r(){return Pc().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.transaction("readwrite",(t=>{t.delete(e)}));case 2:case"end":return r.stop()}}),r)})))()}deleteAll(){var e=this;return Ac(Pc().mark((function t(){return Pc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.transaction("readwrite",(e=>{e.clear()}));case 2:case"end":return t.stop()}}),t)})))()}_createSchema(e){kc.slice(e).forEach((e=>e(this._database)))}transaction(e,t){return new Promise(((r,n)=>{var i;const o=null===(i=this._database)||void 0===i?void 0:i.transaction("libraries",e),a=o.objectStore("libraries"),s=t(a);o.onerror=()=>{n(o.error)},o.oncomplete=()=>{r(s||void 0)}}))}}function Rc(){Rc=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Mc(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function jc(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Mc(o,n,i,a,s,"next",e)}function s(e){Mc(o,n,i,a,s,"throw",e)}a(void 0)}))}}Cc([Dc()],Nc.prototype,"get",null),Cc([Dc([])],Nc.prototype,"getAll",null),Cc([Dc()],Nc.prototype,"set",null),Cc([Dc()],Nc.prototype,"delete",null),Cc([Dc()],Nc.prototype,"deleteAll",null);class Fc{constructor(e,t,r){this._fs=e,this._path=t,this._getData=r}get supported(){return!0}connect(){return Promise.resolve(this)}get(e){return Promise.reject("not implemented")}getAll(){var e=this;return jc(Rc().mark((function t(){var r;return Rc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e._fs.readFile(e._path,{encoding:"utf8"});case 3:if("string"==typeof(r=t.sent)){t.next=6;break}throw new Error("expected a string, got something else: "+typeof r);case 6:return t.abrupt("return",JSON.parse(r));case 9:return t.prev=9,t.t0=t.catch(0),oe.warn(`Unable to read cache file: ${t.t0}`),t.abrupt("return",[]);case 13:case"end":return t.stop()}}),t,null,[[0,9]])})))()}set(...e){return this._debouncedWriteFile()}delete(e){return this._debouncedWriteFile()}deleteAll(){return this._debouncedWriteFile()}_debouncedWriteFile(){var e=this;return jc(Rc().mark((function t(){return Rc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._writeFile());case 1:case"end":return t.stop()}}),t)})))()}_writeFile(){var e=this;return jc(Rc().mark((function t(){var r;return Rc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r=JSON.stringify(e._getData()),t.next=4,e._fs.writeFile(e._path,r,{encoding:"utf8"});case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),oe.warn(`Unable to write cache file: ${t.t0}`);case 9:case"end":return t.stop()}}),t,null,[[0,6]])})))()}}function Zc(){Zc=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Bc(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Gc(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Bc(o,n,i,a,s,"next",e)}function s(e){Bc(o,n,i,a,s,"throw",e)}a(void 0)}))}}!function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);o>3&&a&&Object.defineProperty(t,r,a)}([ue(1e3)],Fc.prototype,"_debouncedWriteFile",null);class Uc extends as{constructor(e,t){var r;super(e,(r=t,class extends r{update(e,t=!0){var r;const n=super.update(e,t);return null===(r=this._modelCache)||void 0===r||r.persistUpdate(n),n}})),this.waitForHydrate()}init(e,t=!0,r){var n=this;return Gc(Zc().mark((function i(){return Zc().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!n.db){i.next=2;break}return i.abrupt("return");case 2:if(n.db=new Nc(e),n.db.supported||!r){i.next=6;break}return i.next=6,n._createFileSystemCache(e,r);case 6:t&&n.hydrate();case 7:case"end":return i.stop()}}),i)})))()}_createFileSystemCache(e,t){var r=this;return Gc(Zc().mark((function n(){var i,o,a,s;return Zc().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=t.fs,o=t.dir,a=!1,n.prev=2,n.next=5,i.lstat(o);case 5:n.sent&&(a=!0),n.next=11;break;case 9:n.prev=9,n.t0=n.catch(2);case 11:if(a){n.next=21;break}return n.prev=12,n.next=15,i.mkdir(o,{recursive:!0});case 15:a=!0,n.next=21;break;case 18:n.prev=18,n.t1=n.catch(12),oe.warn(`Unable to create cache directory: ${n.t1}`);case 21:if(a){n.next=23;break}return n.abrupt("return");case 23:s=o+e,r.db=new Fc(i,s,(()=>r.all().map((e=>e.data))));case 25:case"end":return n.stop()}}),n,null,[[2,9],[12,18]])})))()}hydrate(){var e=()=>super._replace,t=this;return Gc(Zc().mark((function r(){var n,i;return Zc().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!t.db){r.next=8;break}if(!t.db.supported){r.next=6;break}return r.next=4,t.db.getAll();case 4:(i=r.sent).length&&!t.length&&(oe.info(`Loaded ${i.length} libraries from local cache.`),t._bookmarkMigration(i),e().call(t,i));case 6:null===(n=t._resolveWaitForCacheRestore)||void 0===n||n.call(t),t.emit("hydrate");case 8:case"end":return r.stop()}}),r)})))()}waitForHydrate(){return this._cacheRestorePromise||(this._cacheRestorePromise=new Promise((e=>{this._resolveWaitForCacheRestore=e}))),this._cacheRestorePromise}persistUpdate(e){var t;(null===(t=this.db)||void 0===t?void 0:t.supported)&&(oe.info(`Library ${e.id} updated. Updating database entry`),this.driver.addWatchedLibrary(e),this.db.set(e))}_add(e,t=!1){var r;const n=super._add(e,t);return(null===(r=this.db)||void 0===r?void 0:r.supported)&&!D(n.id)&&(oe.info(`New library ${e.id} found. Adding database entry`),this.driver.addWatchedLibrary(n.data),this.db.set(e)),n}_remove(e){var t;const r="string"==typeof e?this.get(e):e;if(super._remove(e),null===(t=this.db)||void 0===t?void 0:t.supported){const t="string"==typeof e?e:e.id;r&&this.driver.removeWatchedLibrary(r.data),oe.info(`Library ${t} deleted. Deleting database entry`),this.db.delete(t)}}_replace(e,t=!0){var r;super._replace(e,t),(null===(r=this.db)||void 0===r?void 0:r.supported)&&(oe.info(`Replacing Stored Libraries with new ${e.length} libraries`),this.db.deleteAll(),this.db.set(...this.all().map((e=>e.data))))}_bookmarkMigration(e){e.map((e=>{(function(e){return e.ownership&&e.details})(e)&&"public"===e.ownership&&e.bookmark&&e.bookmark.id!==e.id&&(e.id=e.bookmark.id)}))}}class Hc extends te{constructor(e,t){super(),this._driver=e,this._orchestrator=t,this._state="ok",this._syncErrors=new Map,this._progress=100,this._transientProgress=[],this._externalLinkDownloadProgress={},this._handleLocalUpdate=this._handleUpdate.bind(this,"local"),this._handleRemoteUpdate=this._handleUpdate.bind(this,"remote")}init(){this._driver.setSyncStateListener(this._handleRemoteUpdate),this._orchestrator.on("syncChange",this._handleLocalUpdate),this._orchestrator.on("change",this._handleLocalUpdate)}halt(){this._driver.removeSyncStateListener(),this._orchestrator.off("syncChange",this._handleLocalUpdate),this._orchestrator.off("change",this._handleLocalUpdate)}get status(){return this._state}get primaryError(){return this._primaryError}get transientProgress(){var e;return null!==(e=this._transientProgress)&&void 0!==e?e:[]}get progress(){return this._progress}get errors(){return[...this._syncErrors.values()].map((e=>e.error))}get errorMap(){return this._syncErrors}get commitError(){return this._commitError}get externalLinkDownloadProgress(){return this._externalLinkDownloadProgress}getExternalLinkDownloadProgressByKey(e){return this._externalLinkDownloadProgress[e]}sync(){this._orchestrator.doOperations()}changeDriver(e){this._driver.removeSyncStateListener(),this._driver=e,this._driver.setSyncStateListener(this._handleRemoteUpdate)}_update(){const e=this._serialize();this._lastUpdate!==e&&(this._lastUpdate=e,oe.info(`SYNC STATUS UPDATE: ${this._lastUpdate}`),this.emit("change"))}_handleUpdate(e,t={}){var r,n,i,o,a,s,c;"local"===e?this._resolveLocalErrors(null===(r=t.details)||void 0===r?void 0:r.resolvedErrors):this._resolveRemoteErrors(null===(n=t.details)||void 0===n?void 0:n.errors),this._setErrors(null===(i=t.details)||void 0===i?void 0:i.errors,e),this._setPrimaryError(),this._setCommitError(t.commitError,e),this._setProgress(null===(o=t.details)||void 0===o?void 0:o.progress,null===(a=t.details)||void 0===a?void 0:a.operations,e),this._setState(t.state,e),this._setTransientProgress(null===(s=t.details)||void 0===s?void 0:s.newLibraryProgress,e),this._setExternalLinkDownloadProgress(null===(c=t.details)||void 0===c?void 0:c.externalLinkProgress,e),this._update()}_setState(e,t="local"){if(e&&"remote"===t)return void(this._state=e);if(this._driver.ignoreLocalSyncEvents())return;const r="object"==typeof window&&!window.navigator.onLine;this.errors.length||this.commitError||r?this._state="error":this._orchestrator.all().some((e=>!e.isDeletedLocally&&e.syncState))?this._state="syncing":this._state=null!=e?e:"ok"}_setPrimaryError(){this._primaryError=this.errors.reduce(((e,t)=>!e||X.indexOf(t.code)>X.indexOf(e.code)?t:e),void 0)}_setCommitError(e,t="local"){"remote"===t&&(this._commitError=e?new J(e):void 0)}_resolveLocalErrors(e={}){Object.keys(e).forEach((e=>{const t=this._syncErrors.get(e);t&&"local"===t.source&&this._syncErrors.delete(e)}))}_resolveRemoteErrors(e={}){this._syncErrors.forEach((({source:t},r)=>{"remote"!==t||e[r]||this._syncErrors.delete(r)}))}_setErrors(e,t="local"){e&&Object.entries(e).forEach((([e,r])=>{const n=this._syncErrors.get(e);if("local"===(null==n?void 0:n.source)&&"remote"===t)return;const i=this._orchestrator.get(e);i&&(i.syncStatus={syncState:void 0}),this._syncErrors.set(e,{error:new J(r),source:t})}))}_setProgress(e=100,t,r="local"){this._orchestrator.all().filter((e=>!e.isDeletedLocally)).map((e=>("remote"===r&&e.syncProgress&&(e.syncStatus={syncState:void 0}),e))).map((e=>{const r=null==t?void 0:t[e.id];r&&(r.type="unknown"===r.type?void 0:r.type,e.syncStatus={syncState:r.type,syncProgress:r.progress})})),"remote"===r&&(this._progress=e)}_setTransientProgress(e,t="local"){"remote"===t&&(this._transientProgress=e)}_setExternalLinkDownloadProgress(e,t="local"){"remote"===t&&(this._externalLinkDownloadProgress=null!=e?e:{})}_serialize(){const e=this.status,t=this.progress,r=this.commitError,n=this.primaryError,i=this.errors,o=this.transientProgress,a=this.externalLinkDownloadProgress;return JSON.stringify({status:e,progress:t,commitError:r,primaryError:n,errors:i,transientProgress:o,externalLinkDownloadProgress:a})}}function zc(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Vc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vc(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function Vc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Yc(){Yc=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Wc(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Kc(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Wc(o,n,i,a,s,"next",e)}function s(e){Wc(o,n,i,a,s,"throw",e)}a(void 0)}))}}var $c=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,(t=e[r](t)).done,t.value)}))}}};class qc extends Uc{constructor(e,t,r={}){var n;super(e,Lc),n=this,this._driver=t,this._options=r,this._isPaused=!1,this._initialLibrariesLoaded=!1,this._isLoaded=!1,this._isLoading=!0,this._quietPeriodDuration=0,this._libraryPullLockCount=0,this._libraryRequestRetryMap=new Map,this._lockedLibraryPullCallbacks=[],this._isSyncGroupChangeInProgress=!1,this._hasUnhandledSyncGroupNotification=!1,this._loadedLibraryLists=new Map,this._inFlightOperations={},this._halt=()=>{this._isLoaded=!1,this._isLoading=!0,this._initialLibrariesLoaded=!1,this._driver.removeLibraryChangeListener(),this._driver.removeFontDataChangeListeners(),this.syncStatus.halt(),this.syncStatus.DANGEROUS.removeAllListeners(),this._driver.removeLibrariesSyncGroupListener(),this.isPaused&&this._setDriverConnectionListeners("off")},this._handleLibraryChange=(e,t)=>{this.emit("syncChange",{state:"syncing"}),0===e.length&&this._options.enableBrandLifecycleManagement&&this._handleRefreshGrid(),e.forEach((e=>{var r;const n=this.getByIndex(t||"id",e),i=t=>{t.then((()=>this.emit("syncChange",{details:{resolvedErrors:{[e]:{code:"REQUEST_FAILED"}}}}))).catch((t=>this.emit("syncChange",{state:"error",details:{errors:{[e]:{code:"REQUEST_FAILED",message:"Failed to fetch library",libraryId:e,underlyingError:t}}}})))},o=null!==(r=null==n?void 0:n.load(void 0,"notification"))&&void 0!==r?r:(()=>{if(!(this._libraryPullLockCount>0))return this._driver.getLibraryById(e,{optimisticFetch:!1}).then((e=>this.upsert(e)));this._lockedLibraryPullCallbacks.push((()=>i(this.lockedNewLibraryUpdate(e))))})();o&&i(o)}))},this._handleRenditionChange=function(){var e=Kc(Yc().mark((function e(t){var r,i,o,a,s,c,l;return Yc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.elementRef){e.next=2;break}return e.abrupt("return");case 2:if(i=B(t.elementRef)||{},o=i.libraryId,a=i.elementId,o&&a){e.next=5;break}return e.abrupt("return");case 5:if(null==(s=n.get(o))?void 0:s.locallyManaged){e.next=8;break}return e.abrupt("return");case 8:c=[...null!==(r=s.data.elements)&&void 0!==r?r:[]],(l=null==c?void 0:c.findIndex((e=>e.id===a)))>-1?c[l]=t:c.push(t),s.update({elements:c}),s.update({renditionGrid:st(s)});case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this._setRenditionCacheChangeListener=()=>{this._driver.setRenditionCacheChangeListener(this._handleRenditionChange)},this._setLibraryChangeListener=()=>{this._driver.setLibraryChangeListener([],this._handleLibraryChange)},this.handleSyncGroupChange=Kc(Yc().mark((function e(){var t,r,i,o,a,s;return Yc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n._isSyncGroupChangeInProgress){e.next=3;break}return n._hasUnhandledSyncGroupNotification=!0,e.abrupt("return");case 3:return n._isSyncGroupChangeInProgress=!0,n.emit("syncChange",{state:"syncing"}),e.prev=5,(t=n.all().map((e=>e.obtainLock()))).push(new Promise((e=>setTimeout(e,3e3)))),e.next=10,Promise.all(t);case 10:return e.next=12,n._driver.getAllLibraries();case 12:r=e.sent,i=n._diffLibraries(r),o=i.add,a=i.remove,s=i.promote,o.length&&n._cleanupRenditionElements(o).forEach((e=>n.add(e))),a.length&&a.forEach((e=>n.remove(e))),s.length&&s.forEach((e=>{const t=n.get(e.id);null==t||t.update(e)})),n.all().forEach((e=>{e.releaseLock()})),n._isSyncGroupChangeInProgress=!1,n.emit("syncChange",{state:"ok"}),n._hasUnhandledSyncGroupNotification&&(n._hasUnhandledSyncGroupNotification=!1,n.handleSyncGroupChange()),e.next=29;break;case 24:throw e.prev=24,e.t0=e.catch(5),n._isSyncGroupChangeInProgress=!1,n.emit("syncChange",{state:"error"}),e.t0;case 29:case"end":return e.stop()}}),e,null,[[5,24]])}))),this._diffLibraries=e=>{const t={add:[],promote:[],remove:[]},r={};return e.forEach((e=>{const n=this.get(e.id);n?e.assetId!==n.assetId&&t.promote.push(e):t.add.push(e),r[e.id]=e})),this.all().forEach((e=>{r[e.id]||D(e.id)||!mc(e.data,this._options.enableBrandLifecycleManagement)||t.remove.push(e)})),t},this._handleConnect=Kc(Yc().mark((function e(){return Yc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.isPaused){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,n.init(de(n._driver.config.user,n._driver instanceof Ji?"cloud":"local"),!0,n._options.fileSystemCache);case 4:n.syncStatus.on("change",(()=>n.emit("sync"))),n.syncStatus.init(),n._setLibraryChangeListener(),n._driver.setFontDataChangeListener((()=>{n.emit("fontDataChange")})),n._setRenditionCacheChangeListener(),n._apiRoot.options.disablePreemptiveLibraryLoad||n.initialLibrariesLoad(),n.emit("connect");case 11:case"end":return e.stop()}}),e)}))),this._onSync=()=>this.emit("syncChange"),this._onAction=(...e)=>{this.emit("report",...e),this._doOperations()},this._apiRoot=e,this.syncStatus=new Hc(this._driver,this),this.registerIndex("assetId"),this._initializeDriver()}changeDriver(e){var t=this;return Kc(Yc().mark((function r(){return Yc().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.pause(!0,!0);case 2:t._driver=e,t.syncStatus.changeDriver(e),t._isPaused=!1,t._initialLibrariesLoaded=!1,t._initializeDriver();case 7:case"end":return r.stop()}}),r)})))()}_initializeDriver(){var e,t;this._loadedLibraryLists.clear(),this._driver.isConnected?(this._setDriverConnectionListeners("on"),this._handleConnect(),this._apiRoot.updateOptions(this._options)):this._driver.init(Object.assign({enableBrandLifecycleManagement:!!(null===(e=this._apiRoot.options)||void 0===e?void 0:e.enableBrandLifecycleManagement),loadBrandFromMelvilleOnUpdate:!!(null===(t=this._apiRoot.options)||void 0===t?void 0:t.loadBrandFromMelvilleOnUpdate)},this._options),this._handleConnect,this._halt)}_setDriverConnectionListeners(e="on"){"on"===e&&this._driver.listeners("connect").includes(this._handleConnect)||(this._driver[e]("connect",this._handleConnect),this._driver[e]("disconnect",this._halt))}lockedNewLibraryUpdate(e){const t=this.get(e);return t?t.load(void 0,"notification"):this._driver.getLibraryById(e,{optimisticFetch:!1}).then((e=>this.add(e)))}_handleRefreshGrid(){this._loadLibraryList("default",(()=>this._driver.getLibraries()))}_cleanupRenditionElements(e){var t,r=zc(e);try{for(r.s();!(t=r.n()).done;){const e=t.value,r=this.get(e.id);(null==r?void 0:r.areElementsLoaded)&&delete e.elements}}catch(e){r.e(e)}finally{r.f()}return e}initialLibrariesLoad(){var e=this;return Kc(Yc().mark((function t(){return Yc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e._initialLibrariesLoaded){t.next=2;break}return t.abrupt("return");case 2:return e._initialLibrariesLoaded=!0,t.next=5,e._loadLibraryList("default",(()=>e._driver.getLibraries()));case 5:e.driver.addLibrariesSyncGroupListener(e.handleSyncGroupChange),e._isLoaded=!0,e.emit("loaded");case 8:case"end":return t.stop()}}),t)})))()}_loadLibraryList(e,t){var r=this;return Kc(Yc().mark((function n(){var i,o,a,s,c,l,u,d,p,h,f,m,g,v,y,b;return Yc().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r._isLoading=!0,c=[],r.emit("syncChange",{state:"syncing"}),n.next=5,r._driver.connect();case 5:r._options.enableBrandLifecycleManagement||r._apiRoot.refreshProjects(),n.prev=6,n.prev=7,l=!0,u=$c(t());case 9:return n.next=11,u.next();case 11:if(d=n.sent,i=d.done){n.next=19;break}s=d.value,l=!1;try{p=s,r._cleanupRenditionElements(p),c.push(...p),r.upsert(...p)}finally{l=!0}case 17:n.next=9;break;case 19:n.next=24;break;case 21:n.prev=21,n.t0=n.catch(7),o={error:n.t0};case 24:if(n.prev=24,n.prev=25,l||i||!(a=u.return)){n.next=29;break}return n.next=29,a.call(u);case 29:if(n.prev=29,!o){n.next=32;break}throw o.error;case 32:return n.finish(29);case 33:return n.finish(24);case 34:h=[],f=r._loadedLibraryLists.size?r._loadedLibraryLists.get(e)||[]:r.all().map((e=>e.id)),m=zc(f);try{for(m.s();!(g=m.n()).done;)!(v=g.value)||D(v)||c.find((e=>e.id===v))||h.push(v)}catch(e){m.e(e)}finally{m.f()}for(y=0,b=h;y<b.length;y++)v=b[y],r.remove(v);r._isLoading=!1,r.emit("syncChange",{state:"ok"}),n.next=50;break;case 43:if(n.prev=43,n.t1=n.catch(6),r._isLoading=!1,r.emit("syncChange",{state:"error"}),n.t1.name===O){n.next=49;break}throw n.t1;case 49:return n.abrupt("return",[]);case 50:return r._loadedLibraryLists.set(e,c.map((e=>e.id))),n.abrupt("return",c);case 52:case"end":return n.stop()}}),n,null,[[6,43],[7,21,24,34],[25,,29,33]])})))()}loadList(e={}){var t=this;return Kc(Yc().mark((function r(){var n,i;return Yc().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e=Object.fromEntries(Object.entries(e).map((([e,t])=>Array.isArray(t)?[e,t.sort()]:[e,t])).sort()),n=JSON.stringify(e),r.next=4,t._loadLibraryList(n,(()=>t._driver.getLibrariesList(void 0,e)));case 4:if(i=r.sent){r.next=7;break}return r.abrupt("return",[]);case 7:return r.abrupt("return",i.map((e=>t.get(e.id))));case 8:case"end":return r.stop()}}),r)})))()}loadPage(e={},t){var r=this;return Kc(Yc().mark((function n(){var i,o;return Yc().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=Object.fromEntries(Object.entries(e).map((([e,t])=>Array.isArray(t)?[e,t.sort()]:[e,t])).sort()),i=JSON.stringify(e),n.next=4,r._loadLibraryList(i,(()=>r._driver.getLibrariesPage(t,e)));case 4:if(o=n.sent){n.next=7;break}return n.abrupt("return",[]);case 7:return n.abrupt("return",o.map((e=>r.get(e.id))));case 8:case"end":return n.stop()}}),n)})))()}get isLoading(){return this._isLoading}get isLoaded(){return this._isLoaded}get isPaused(){return this._isPaused}pause(e=!1,t=!1){var r=this;return Kc(Yc().mark((function n(){var i,o;return Yc().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r._isPaused=!0,r._quietPeriodTimeoutId&&(clearTimeout(r._quietPeriodTimeoutId),delete r._quietPeriodTimeoutId),i=Object.values(r._inFlightOperations).map((e=>e.deref())).filter((e=>!!e)),o=Promise.all(i).then((()=>{})),!e){n.next=9;break}if(!t){n.next=8;break}return n.next=8,o;case 8:r._driver.disconnect();case 9:return r.emit("syncChange"),n.abrupt("return",o);case 11:case"end":return n.stop()}}),n)})))()}resume(){var e=this;return Kc(Yc().mark((function t(){return Yc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._isPaused){t.next=2;break}return t.abrupt("return");case 2:return e._isPaused=!1,e._setDriverConnectionListeners("on"),t.next=6,e._driver.reconnect();case 6:e.emit("syncChange"),e._doOperations();case 8:case"end":return t.stop()}}),t)})))()}doOperations(){var e=this;return Kc(Yc().mark((function t(){return Yc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e._isPaused){t.next=2;break}return t.abrupt("return");case 2:e.emit("syncChange"),e._doOperations();case 4:case"end":return t.stop()}}),t)})))()}get syncState(){return this.syncStatus.status}_doOperations(){this._quietPeriodTimeoutId?oe.log("[ORCHESTRATOR] Operation requested in quiet period..."):this._quietPeriodTimeoutId=setTimeout((()=>{oe.log("[ORCHESTRATOR] Performing operations..."),delete this._quietPeriodTimeoutId;var e,t=zc(this.all());try{for(t.s();!(e=t.n()).done;){const t=e.value;if(!this._canDoOperation(t))continue;const r=t.obtainLock().then((()=>this._doOperation(t))).finally((()=>{t.releaseLock(),delete this._inFlightOperations[t.id]}));this._inFlightOperations[t.id]=new WeakRef(r)}}catch(e){t.e(e)}finally{t.f()}}),this._quietPeriodDuration)}_canDoOperation(e){return!e.operation&&0!==e.actions.length&&!this._isPaused}_doOperation(e){if(this._canDoOperation(e))return oe.log(`[ORCHESTRATOR] Found pending actions for library: ${e.id}`),e.actions[0].link?this._doLinkedAction(e):this._doIsolatedAction(e)}_handleActionError(e,t,r=t){var n=this;return Kc(Yc().mark((function i(){var o,a,s,c,l;return Yc().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if((s=t===r)||(null===(o=n._libraryRequestRetryMap.get(r))||void 0===o?void 0:o.inProgress)||r.releaseLock(),"AbortError"!==e.name){i.next=6;break}return t.operation=void 0,r.operation=void 0,i.abrupt("return");case 6:if(!(e instanceof Se&&"PRECONDITION_FAILED"===e.code)){i.next=15;break}if(oe.log(`[ORCHESTRATOR] Server conflict. Pulling library: ${r.id}`),t.operation=void 0,r.operation=void 0,!n._isPaused){i.next=12;break}return i.abrupt("return");case 12:return i.next=14,Promise.all([t._load(void 0,void 0,"action"),!s&&r._load(void 0,void 0,"action")]);case 14:return i.abrupt("return",n._doOperation(t));case 15:if(!(e instanceof Se)){i.next=44;break}if(t.operation=void 0,r.operation=void 0,!n._isPaused){i.next=20;break}return i.abrupt("return");case 20:if(c=n._libraryRequestRetryMap.get(t)||{retryCount:0},l=p[c.retryCount],c.retryCount++,n._libraryRequestRetryMap.set(t,c),!(c.retryCount<=h)){i.next=40;break}return n._libraryRequestRetryMap.set(t,Object.assign(Object.assign({},c),{inProgress:!0})),i.prev=26,i.next=29,n._driver.sleep(l);case 29:i.next=35;break;case 31:return i.prev=31,i.t0=i.catch(26),n._libraryRequestRetryMap.set(t,Object.assign(Object.assign({},c),{inProgress:!1})),i.abrupt("return");case 35:return n._libraryRequestRetryMap.set(t,Object.assign(Object.assign({},c),{inProgress:!1})),i.next=38,n._doOperation(t);case 38:i.next=43;break;case 40:t.revert(),s||r.revert(),n.emit("syncChange",{state:"error",details:{resolvedErrors:{[t.id]:{code:"REQUEST_FAILED"}},errors:{[t.id]:{code:"REQUEST_FAILED",message:"Action failed",libraryId:t.id,underlyingError:e}}}});case 43:return i.abrupt("return");case 44:if(!(e instanceof J)){i.next=53;break}if(t.operation=void 0,r.operation=void 0,!n._isPaused){i.next=49;break}return i.abrupt("return");case 49:return t.revert(),s||r.revert(),n.emit("syncChange",{state:"error",details:{errors:{[t.id]:{code:e.code,message:e.message,libraryId:null!==(a=e.libraryId)&&void 0!==a?a:t.id,underlyingError:e.underlyingError}}}}),i.abrupt("return");case 53:throw e;case 54:case"end":return i.stop()}}),i,null,[[26,31]])})))()}_doIsolatedAction(e){var t=this;return Kc(Yc().mark((function r(){var n,i,o,a,s,c,l;return Yc().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t._driver.constructOperation(e)){r.next=3;break}return r.abrupt("return");case 3:return e.operation=n,t.emit("report",...n.actions.map((e=>({type:"processing",action:e})))),i=n.actions.some((e=>{var t;return null===(t=e.flags)||void 0===t?void 0:t.lockNewLibraries})),i&&t._libraryPullLockCount++,r.prev=7,r.next=10,n.execute();case 10:return o=r.sent,a=o.actions,s=o.etag,r.next=15,e.commit(a,s);case 15:e.operation=void 0,oe.log(`[ORCHESTRATOR] Successfully completed ${a.length} actions for library: ${e.id}`),e.actions.length>0&&t._doOperations(),r.next=24;break;case 20:return r.prev=20,r.t0=r.catch(7),r.next=24,t._handleActionError(r.t0,e);case 24:if(r.prev=24,(c=t._libraryRequestRetryMap.get(e))&&!c.inProgress&&t._libraryRequestRetryMap.delete(e),i&&t._libraryPullLockCount--,0===t._libraryPullLockCount)for(;t._lockedLibraryPullCallbacks[0];)l=t._lockedLibraryPullCallbacks.shift(),setTimeout((()=>l&&l()));return r.finish(24);case 30:return r.abrupt("return");case 31:case"end":return r.stop()}}),r,null,[[7,20,24,30]])})))()}_doLinkedAction(e){var t,r=this;const n=e.actions[0];if("dependent"===n.name)return;const i=null===(t=n.link)||void 0===t?void 0:t.library;if(!i)return;const o=i.actions[0],a=e===i;if(a&&i.actions[1]!==n.link)throw new Error("CATASTROPHIC");if(a||!(null==i?void 0:i.operation)&&o===n.link)return e.operation=qs,i.operation=qs,Promise.resolve(!a&&i.obtainLock()).then((()=>{oe.log("[ORCHESTRATOR] Got lock on both libraries. Linked actions are ready to be executed.");const t=this._driver.constructOperation(e);if(t)return e.operation=t,i.operation=t,this.emit("report",...t.actions.map((e=>({type:"processing",action:e})))),t.execute().then((({actions:t,etag:r,linkedActions:n,linkedEtag:o})=>{e.operation=void 0,i.operation=void 0,e.commit(t,r),i.commit(n,o),a||i.releaseLock(),(e.actions.length>0||i.actions.length>0)&&this._doOperations()}),function(){var t=Kc(Yc().mark((function t(n){return Yc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r._handleActionError(n,e,i));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());i.releaseLock()}));oe.log("[ORCHESTRATOR] Action cannot be executed because linked action is not at head.")}_add(e,t=!1){const r=super._add(e,t);return r.on("action",this._onAction),r.on("sync",this._onSync),r}_remove(e){const t="string"==typeof e?this.get(e):e;t&&(t.off("action",this._onAction),t.off("sync",this._onSync)),super._remove(e)}}!function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);o>3&&a&&Object.defineProperty(t,r,a)}([ue(5e3)],qc.prototype,"_handleRefreshGrid",null);var Xc,Jc,Qc,el=r(97582);function tl(e){return e.type===Jc.literal}function rl(e){return e.type===Jc.argument}function nl(e){return e.type===Jc.number}function il(e){return e.type===Jc.date}function ol(e){return e.type===Jc.time}function al(e){return e.type===Jc.select}function sl(e){return e.type===Jc.plural}function cl(e){return e.type===Jc.pound}function ll(e){return e.type===Jc.tag}function ul(e){return!(!e||"object"!=typeof e||e.type!==Qc.number)}function dl(e){return!(!e||"object"!=typeof e||e.type!==Qc.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(Xc||(Xc={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(Jc||(Jc={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(Qc||(Qc={}));var pl=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,hl=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function fl(e){var t={};return e.replace(hl,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var ml=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,gl=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,vl=/^(@+)?(\+|#+)?[rs]?$/g,yl=/(\*)(0+)|(#+)(0+)|(0+)/g,bl=/^(0+)$/;function _l(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(vl,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function El(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function wl(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!bl.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function xl(e){return El(e)||{}}function Ll(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=(0,el.__assign)((0,el.__assign)((0,el.__assign)({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return(0,el.__assign)((0,el.__assign)({},e),xl(t))}),{}));continue;case"engineering":t=(0,el.__assign)((0,el.__assign)((0,el.__assign)({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return(0,el.__assign)((0,el.__assign)({},e),xl(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(yl,(function(e,r,n,i,o,a){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(bl.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(gl.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(gl,(function(e,r,n,i,o,a){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var o=i.options[0];"w"===o?t=(0,el.__assign)((0,el.__assign)({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=(0,el.__assign)((0,el.__assign)({},t),_l(o)))}else if(vl.test(i.stem))t=(0,el.__assign)((0,el.__assign)({},t),_l(i.stem));else{var a=El(i.stem);a&&(t=(0,el.__assign)((0,el.__assign)({},t),a));var s=wl(i.stem);s&&(t=(0,el.__assign)((0,el.__assign)({},t),s))}}return t}var Ol,Sl={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function Tl(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(Sl[r||""]||Sl[n||""]||Sl["".concat(n,"-001")]||Sl["001"])[0]}var Pl=new RegExp("^".concat(pl.source,"*")),Il=new RegExp("".concat(pl.source,"*$"));function Al(e,t){return{start:e,end:t}}var Cl=!!String.prototype.startsWith,kl=!!String.fromCodePoint,Dl=!!Object.fromEntries,Nl=!!String.prototype.codePointAt,Rl=!!String.prototype.trimStart,Ml=!!String.prototype.trimEnd,jl=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Fl=!0;try{Fl="a"===(null===(Ol=Yl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ol?void 0:Ol[0])}catch(e){Fl=!1}var Zl,Bl=Cl?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Gl=kl?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Ul=Dl?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],a=i[1];t[o]=a}return t},Hl=Nl?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},zl=Rl?function(e){return e.trimStart()}:function(e){return e.replace(Pl,"")},Vl=Ml?function(e){return e.trimEnd()}:function(e){return e.replace(Il,"")};function Yl(e,t){return new RegExp(e,t)}if(Fl){var Wl=Yl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Zl=function(e,t){var r;return Wl.lastIndex=t,null!==(r=Wl.exec(e)[1])&&void 0!==r?r:""}}else Zl=function(e,t){for(var r=[];;){var n=Hl(e,t);if(void 0===n||ql(n)||Xl(n))break;r.push(n),t+=n>=65536?2:1}return Gl.apply(void 0,r)};var Kl=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(Xc.UNMATCHED_CLOSING_TAG,Al(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&$l(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:Jc.pound,location:Al(a,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Jc.literal,value:"<".concat(n,"/>"),location:Al(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!$l(this.char()))return this.error(Xc.INVALID_TAG,Al(a,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error(Xc.UNMATCHED_CLOSING_TAG,Al(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Jc.tag,value:n,children:o,location:Al(r,this.clonePosition())},err:null}:this.error(Xc.INVALID_TAG,Al(a,this.clonePosition())))}return this.error(Xc.UNCLOSED_TAG,Al(r,this.clonePosition()))}return this.error(Xc.INVALID_TAG,Al(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var s=Al(r,this.clonePosition());return{val:{type:Jc.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&($l(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Gl.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),Gl(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Xc.EXPECT_ARGUMENT_CLOSING_BRACE,Al(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Xc.EMPTY_ARGUMENT,Al(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(Xc.MALFORMED_ARGUMENT,Al(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Xc.EXPECT_ARGUMENT_CLOSING_BRACE,Al(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Jc.argument,value:n,location:Al(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Xc.EXPECT_ARGUMENT_CLOSING_BRACE,Al(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(Xc.MALFORMED_ARGUMENT,Al(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Zl(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:Al(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(Xc.EXPECT_ARGUMENT_TYPE,Al(o,s));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((v=this.parseSimpleArgStyleIfPossible()).err)return v;if(0===(h=Vl(v.val)).length)return this.error(Xc.EXPECT_ARGUMENT_STYLE,Al(this.clonePosition(),this.clonePosition()));c={style:h,styleLocation:Al(l,this.clonePosition())}}if((y=this.tryParseArgumentClose(n)).err)return y;var u=Al(n,this.clonePosition());if(c&&Bl(null==c?void 0:c.style,"::",0)){var d=zl(c.style.slice(2));if("number"===a)return(v=this.parseNumberSkeletonFromString(d,c.styleLocation)).err?v:{val:{type:Jc.number,value:r,location:u,style:v.val},err:null};if(0===d.length)return this.error(Xc.EXPECT_DATE_TIME_SKELETON,u);var p=d;this.locale&&(p=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var a=1+(1&o),s=o<2?1:3+(o>>1),c=Tl(t);for("H"!=c&&"k"!=c||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=c+r}else r+="J"===i?"H":i}return r}(d,this.locale));var h={type:Qc.dateTime,pattern:p,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?fl(p):{}};return{val:{type:"date"===a?Jc.date:Jc.time,value:r,location:u,style:h},err:null}}return{val:{type:"number"===a?Jc.number:"date"===a?Jc.date:Jc.time,value:r,location:u,style:null!==(i=null==c?void 0:c.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Xc.EXPECT_SELECT_ARGUMENT_OPTIONS,Al(f,(0,el.__assign)({},f)));this.bumpSpace();var m=this.parseIdentifierIfPossible(),g=0;if("select"!==a&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(Xc.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Al(this.clonePosition(),this.clonePosition()));var v;if(this.bumpSpace(),(v=this.tryParseDecimalInteger(Xc.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Xc.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return v;this.bumpSpace(),m=this.parseIdentifierIfPossible(),g=v.val}var y,b=this.tryParsePluralOrSelectOptions(e,a,t,m);if(b.err)return b;if((y=this.tryParseArgumentClose(n)).err)return y;var _=Al(n,this.clonePosition());return"select"===a?{val:{type:Jc.select,value:r,options:Ul(b.val),location:_},err:null}:{val:{type:Jc.plural,value:r,options:Ul(b.val),offset:g,pluralType:"plural"===a?"cardinal":"ordinal",location:_},err:null};default:return this.error(Xc.INVALID_ARGUMENT_TYPE,Al(o,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Xc.EXPECT_ARGUMENT_CLOSING_BRACE,Al(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Xc.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Al(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(ml).filter((function(e){return e.length>0}));r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],a=i.slice(1),s=0,c=a;s<c.length;s++)if(0===c[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:a})}return t}(e)}catch(e){return this.error(Xc.INVALID_NUMBER_SKELETON,t)}return{val:{type:Qc.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Ll(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i,o=!1,a=[],s=new Set,c=n.value,l=n.location;;){if(0===c.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(Xc.EXPECT_PLURAL_ARGUMENT_SELECTOR,Xc.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;l=Al(u,this.clonePosition()),c=this.message.slice(u.offset,this.offset())}if(s.has(c))return this.error("select"===t?Xc.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Xc.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===c&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Xc.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Xc.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Al(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(e+1,t,r);if(h.err)return h;var f=this.tryParseArgumentClose(p);if(f.err)return f;a.push([c,{value:h.val,location:Al(p,this.clonePosition())}]),s.add(c),this.bumpSpace(),c=(i=this.parseIdentifierIfPossible()).value,l=i.location}return 0===a.length?this.error("select"===t?Xc.EXPECT_SELECT_ARGUMENT_SELECTOR:Xc.EXPECT_PLURAL_ARGUMENT_SELECTOR,Al(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Xc.MISSING_OTHER_CLAUSE,Al(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=Al(n,this.clonePosition());return i?jl(o*=r)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Hl(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Bl(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ql(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function $l(e){return e>=97&&e<=122||e>=65&&e<=90}function ql(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Xl(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Jl(e){e.forEach((function(e){if(delete e.location,al(e)||sl(e))for(var t in e.options)delete e.options[t].location,Jl(e.options[t].value);else nl(e)&&ul(e.style)||(il(e)||ol(e))&&dl(e.style)?delete e.style.location:ll(e)&&Jl(e.children)}))}function Ql(e,t){void 0===t&&(t={}),t=(0,el.__assign)({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Kl(e,t).parse();if(r.err){var n=SyntaxError(Xc[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||Jl(r.val),r.val}function eu(e,t){var r=t&&t.cache?t.cache:cu,n=t&&t.serializer?t.serializer:ou;return(t&&t.strategy?t.strategy:iu)(e,{cache:r,serializer:n})}function tu(e,t,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),a=t.get(o);return void 0===a&&(a=e.call(this,n),t.set(o,a)),a}function ru(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function nu(e,t,r,n,i){return r.bind(t,e,n,i)}function iu(e,t){return nu(e,this,1===e.length?tu:ru,t.cache.create(),t.serializer)}var ou=function(){return JSON.stringify(arguments)};function au(){this.cache=Object.create(null)}au.prototype.get=function(e){return this.cache[e]},au.prototype.set=function(e,t){this.cache[e]=t};var su,cu={create:function(){return new au}},lu={variadic:function(e,t){return nu(e,this,ru,t.cache.create(),t.serializer)},monadic:function(e,t){return nu(e,this,tu,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(su||(su={}));var uu,du=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return(0,el.__extends)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),pu=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),su.INVALID_VALUE,i)||this}return(0,el.__extends)(t,e),t}(du),hu=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),su.INVALID_VALUE,n)||this}return(0,el.__extends)(t,e),t}(du),fu=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),su.MISSING_VALUE,r)||this}return(0,el.__extends)(t,e),t}(du);function mu(e){return"function"==typeof e}function gu(e,t,r,n,i,o,a){if(1===e.length&&tl(e[0]))return[{type:uu.literal,value:e[0].value}];for(var s=[],c=0,l=e;c<l.length;c++){var u=l[c];if(tl(u))s.push({type:uu.literal,value:u.value});else if(cl(u))"number"==typeof o&&s.push({type:uu.literal,value:r.getNumberFormat(t).format(o)});else{var d=u.value;if(!i||!(d in i))throw new fu(d,a);var p=i[d];if(rl(u))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),s.push({type:"string"==typeof p?uu.literal:uu.object,value:p});else if(il(u)){var h="string"==typeof u.style?n.date[u.style]:dl(u.style)?u.style.parsedOptions:void 0;s.push({type:uu.literal,value:r.getDateTimeFormat(t,h).format(p)})}else if(ol(u))h="string"==typeof u.style?n.time[u.style]:dl(u.style)?u.style.parsedOptions:n.time.medium,s.push({type:uu.literal,value:r.getDateTimeFormat(t,h).format(p)});else if(nl(u))(h="string"==typeof u.style?n.number[u.style]:ul(u.style)?u.style.parsedOptions:void 0)&&h.scale&&(p*=h.scale||1),s.push({type:uu.literal,value:r.getNumberFormat(t,h).format(p)});else{if(ll(u)){var f=u.children,m=u.value,g=i[m];if(!mu(g))throw new hu(m,"function",a);var v=g(gu(f,t,r,n,i,o).map((function(e){return e.value})));Array.isArray(v)||(v=[v]),s.push.apply(s,v.map((function(e){return{type:"string"==typeof e?uu.literal:uu.object,value:e}})))}if(al(u)){if(!(y=u.options[p]||u.options.other))throw new pu(u.value,p,Object.keys(u.options),a);s.push.apply(s,gu(y.value,t,r,n,i))}else if(sl(u)){var y;if(!(y=u.options["=".concat(p)])){if(!Intl.PluralRules)throw new du('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',su.MISSING_INTL_API,a);var b=r.getPluralRules(t,{type:u.pluralType}).select(p-(u.offset||0));y=u.options[b]||u.options.other}if(!y)throw new pu(u.value,p,Object.keys(u.options),a);s.push.apply(s,gu(y.value,t,r,n,i,p-(u.offset||0)))}}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===uu.literal&&t.type===uu.literal?r.value+=t.value:e.push(t),e}),[])}(s)}function vu(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(uu||(uu={}));var yu,bu=function(){function e(t,r,n,i){void 0===r&&(r=e.defaultLocale);var o,a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===uu.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return gu(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=a.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{},c=(s.formatters,(0,el.__rest)(s,["formatters"]));this.ast=e.__parse(t,(0,el.__assign)((0,el.__assign)({},c),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=function(e,t){return t?Object.keys(e).reduce((function(r,n){var i,o;return r[n]=(i=e[n],(o=t[n])?(0,el.__assign)((0,el.__assign)((0,el.__assign)({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=(0,el.__assign)((0,el.__assign)({},i[t]),o[t]||{}),e}),{})):i),r}),(0,el.__assign)({},e)):e}(e.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:eu((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,(0,el.__spreadArray)([void 0],t,!1)))}),{cache:vu(o.number),strategy:lu.variadic}),getDateTimeFormat:eu((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,el.__spreadArray)([void 0],t,!1)))}),{cache:vu(o.dateTime),strategy:lu.variadic}),getPluralRules:eu((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,(0,el.__spreadArray)([void 0],t,!1)))}),{cache:vu(o.pluralRules),strategy:lu.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=Ql,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(yu||(yu={}));var _u=function(e){function t(r,n,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return(o=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return(0,el.__extends)(t,e),t}(Error),Eu=function(e){function t(t,r){return e.call(this,yu.UNSUPPORTED_FORMATTER,t,r)||this}return(0,el.__extends)(t,e),t}(_u),wu=function(e){function t(t,r){return e.call(this,yu.INVALID_CONFIG,t,r)||this}return(0,el.__extends)(t,e),t}(_u),xu=function(e){function t(t,r){return e.call(this,yu.MISSING_DATA,t,r)||this}return(0,el.__extends)(t,e),t}(_u),Lu=function(e){function t(t,r,n){return e.call(this,yu.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(r,"\n"),n)||this}return(0,el.__extends)(t,e),t}(_u),Ou=function(e){function t(t,r,n,i){var o=e.call(this,"".concat(t,"\nMessageID: ").concat(null==n?void 0:n.id,"\nDefault Message: ").concat(null==n?void 0:n.defaultMessage,"\nDescription: ").concat(null==n?void 0:n.description,"\n"),r,i)||this;return o.descriptor=n,o}return(0,el.__extends)(t,e),t}(Lu),Su=function(e){function t(t,r){var n=e.call(this,yu.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(r,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map((function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)})).join(),")"):"id"," as fallback."))||this;return n.descriptor=t,n}return(0,el.__extends)(t,e),t}(_u);function Tu(e,t,r){return void 0===r&&(r={}),t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}var Pu={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function Iu(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Au(e,t,r,n){var i,o=e&&e[t];if(o&&(i=o[r]),i)return i;n(new Eu("No ".concat(t," format named: ").concat(r)))}var Cu=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function ku(e,t,r){var n=e.locale,i=e.formats,o=e.onError;void 0===r&&(r={});var a=r.format,s=a&&Au(i,"number",a,o)||{};return t(n,Tu(r,Cu,s))}function Du(e,t,r,n){void 0===n&&(n={});try{return ku(e,t,n).format(r)}catch(t){e.onError(new _u(yu.FORMAT_ERROR,"Error formatting number.",t))}return String(r)}function Nu(e,t,r,n){void 0===n&&(n={});try{return ku(e,t,n).formatToParts(r)}catch(t){e.onError(new _u(yu.FORMAT_ERROR,"Error formatting number.",t))}return[]}var Ru=["numeric","style"];function Mu(e,t,r,n,i){void 0===i&&(i={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new du('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',su.MISSING_INTL_API));try{return function(e,t,r){var n=e.locale,i=e.formats,o=e.onError;void 0===r&&(r={});var a=r.format,s=!!a&&Au(i,"relative",a,o)||{};return t(n,Tu(r,Ru,s))}(e,t,i).format(r,n)}catch(t){e.onError(new Lu("Error formatting relative time.",e.locale,t))}return String(r)}var ju=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function Fu(e,t,r,n){var i=e.locale,o=e.formats,a=e.onError,s=e.timeZone;void 0===n&&(n={});var c=n.format,l=(0,el.__assign)((0,el.__assign)({},s&&{timeZone:s}),c&&Au(o,t,c,a)),u=Tu(n,ju,l);return"time"!==t||u.hour||u.minute||u.second||u.timeStyle||u.dateStyle||(u=(0,el.__assign)((0,el.__assign)({},u),{hour:"numeric",minute:"numeric"})),r(i,u)}function Zu(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Fu(e,"date",t,a).format(s)}catch(t){e.onError(new _u(yu.FORMAT_ERROR,"Error formatting date.",t))}return String(s)}function Bu(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Fu(e,"time",t,a).format(s)}catch(t){e.onError(new _u(yu.FORMAT_ERROR,"Error formatting time.",t))}return String(s)}function Gu(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=r[2],s=void 0===a?{}:a,c=e.timeZone,l=e.locale,u=e.onError,d=Tu(s,ju,c?{timeZone:c}:{});try{return t(l,d).formatRange(i,o)}catch(e){u(new _u(yu.FORMAT_ERROR,"Error formatting date time range.",e))}return String(i)}function Uu(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Fu(e,"date",t,a).formatToParts(s)}catch(t){e.onError(new _u(yu.FORMAT_ERROR,"Error formatting date.",t))}return[]}function Hu(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Fu(e,"time",t,a).formatToParts(s)}catch(t){e.onError(new _u(yu.FORMAT_ERROR,"Error formatting time.",t))}return[]}var zu=["type"];function Vu(e,t,r,n){var i=e.locale,o=e.onError;void 0===n&&(n={}),Intl.PluralRules||o(new du('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',su.MISSING_INTL_API));var a=Tu(n,zu);try{return t(i,a).select(r)}catch(e){o(new Lu("Error formatting plural.",i,e))}return"other"}function Yu(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=(0,el.__assign)({timeZone:t},e[n]),r}),{})}function Wu(e,t){return Object.keys((0,el.__assign)((0,el.__assign)({},e),t)).reduce((function(r,n){return r[n]=(0,el.__assign)((0,el.__assign)({},e[n]||{}),t[n]||{}),r}),{})}function Ku(e,t){if(!t)return e;var r=bu.formats;return(0,el.__assign)((0,el.__assign)((0,el.__assign)({},r),e),{date:Wu(Yu(r.date,t),Yu(e.date||{},t)),time:Wu(Yu(r.time,t),Yu(e.time||{},t))})}var $u=function(e,t,r,n,i){var o=e.locale,a=e.formats,s=e.messages,c=e.defaultLocale,l=e.defaultFormats,u=e.fallbackOnEmptyString,d=e.onError,p=e.timeZone,h=e.defaultRichTextElements;void 0===r&&(r={id:""});var f=r.id,m=r.defaultMessage;!function(e,t,r){if(void 0===r&&(r=Error),!e)throw new r("[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue")}(!!f);var g=String(f),v=s&&Object.prototype.hasOwnProperty.call(s,g)&&s[g];if(Array.isArray(v)&&1===v.length&&v[0].type===Jc.literal)return v[0].value;if(!n&&v&&"string"==typeof v&&!h)return v.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=(0,el.__assign)((0,el.__assign)({},h),n||{}),a=Ku(a,p),l=Ku(l,p),!v){if(!1===u&&""===v)return v;if((!m||o&&o.toLowerCase()!==c.toLowerCase())&&d(new Su(r,o)),m)try{return t.getMessageFormat(m,c,l,i).format(n)}catch(e){return d(new Ou('Error formatting default message for: "'.concat(g,'", rendering default message verbatim'),o,r,e)),"string"==typeof m?m:g}return g}try{return t.getMessageFormat(v,o,a,(0,el.__assign)({formatters:t},i||{})).format(n)}catch(e){d(new Ou('Error formatting message: "'.concat(g,'", using ').concat(m?"default message":"id"," as fallback."),o,r,e))}if(m)try{return t.getMessageFormat(m,c,l,i).format(n)}catch(e){d(new Ou('Error formatting the default message for: "'.concat(g,'", rendering message verbatim'),o,r,e))}return"string"==typeof v?v:"string"==typeof m?m:g},qu=["type","style"],Xu=Date.now();function Ju(e,t,r,n){void 0===n&&(n={});var i=Qu(e,t,r,n).reduce((function(e,t){var r=t.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[]);return 1===i.length?i[0]:0===i.length?"":i}function Qu(e,t,r,n){var i=e.locale,o=e.onError;void 0===n&&(n={}),Intl.ListFormat||o(new du('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',su.MISSING_INTL_API));var a=Tu(n,qu);try{var s={},c=r.map((function(e,t){if("object"==typeof e){var r=function(e){return"".concat(Xu,"_").concat(e,"_").concat(Xu)}(t);return s[r]=e,r}return String(e)}));return t(i,a).formatToParts(c).map((function(e){return"literal"===e.type?e:(0,el.__assign)((0,el.__assign)({},e),{value:s[e.value]||e.value})}))}catch(e){o(new _u(yu.FORMAT_ERROR,"Error formatting list.",e))}return r}var ed=["style","type","fallback","languageDisplay"];function td(e,t,r,n){var i=e.locale,o=e.onError;Intl.DisplayNames||o(new du('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',su.MISSING_INTL_API));var a=Tu(n,ed);try{return t(i,a).of(r)}catch(e){o(new _u(yu.FORMAT_ERROR,"Error formatting display name.",e))}}function rd(e,t){var r=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,i=eu((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,el.__spreadArray)([void 0],t,!1)))}),{cache:Iu(e.dateTime),strategy:lu.variadic}),o=eu((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,(0,el.__spreadArray)([void 0],t,!1)))}),{cache:Iu(e.number),strategy:lu.variadic}),a=eu((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,(0,el.__spreadArray)([void 0],t,!1)))}),{cache:Iu(e.pluralRules),strategy:lu.variadic});return{getDateTimeFormat:i,getNumberFormat:o,getMessageFormat:eu((function(e,t,r,n){return new bu(e,t,r,(0,el.__assign)({formatters:{getNumberFormat:o,getDateTimeFormat:i,getPluralRules:a}},n||{}))}),{cache:Iu(e.message),strategy:lu.variadic}),getRelativeTimeFormat:eu((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,(0,el.__spreadArray)([void 0],e,!1)))}),{cache:Iu(e.relativeTime),strategy:lu.variadic}),getPluralRules:a,getListFormat:eu((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,(0,el.__spreadArray)([void 0],e,!1)))}),{cache:Iu(e.list),strategy:lu.variadic}),getDisplayNames:eu((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,(0,el.__spreadArray)([void 0],e,!1)))}),{cache:Iu(e.displayNames),strategy:lu.variadic})}}(t),n=(0,el.__assign)((0,el.__assign)({},Pu),e),i=n.locale,o=n.defaultLocale,a=n.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&a?a(new xu('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&a&&a(new xu('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new wu('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),function(e){var t;e.onWarn&&e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&e.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}(n),(0,el.__assign)((0,el.__assign)({},n),{formatters:r,formatNumber:Du.bind(null,n,r.getNumberFormat),formatNumberToParts:Nu.bind(null,n,r.getNumberFormat),formatRelativeTime:Mu.bind(null,n,r.getRelativeTimeFormat),formatDate:Zu.bind(null,n,r.getDateTimeFormat),formatDateToParts:Uu.bind(null,n,r.getDateTimeFormat),formatTime:Bu.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:Gu.bind(null,n,r.getDateTimeFormat),formatTimeToParts:Hu.bind(null,n,r.getDateTimeFormat),formatPlural:Vu.bind(null,n,r.getPluralRules),formatMessage:$u.bind(null,n,r),$t:$u.bind(null,n,r),formatList:Ju.bind(null,n,r.getListFormat),formatListToParts:Qu.bind(null,n,r.getListFormat),formatDisplayName:td.bind(null,n,r.getDisplayNames)})}function nd(){nd=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function id(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const od="en-US",ad={"cs-CZ":()=>r.e(4027).then(r.t.bind(r,74027,19)),"da-DK":()=>r.e(3142).then(r.t.bind(r,93142,19)),"de-DE":()=>r.e(6838).then(r.t.bind(r,76838,19)),"en-US":()=>r.e(1982).then(r.t.bind(r,61982,19)),"es-ES":()=>r.e(327).then(r.t.bind(r,50327,19)),"fi-FI":()=>r.e(8893).then(r.t.bind(r,98893,19)),"fr-CA":()=>r.e(2300).then(r.t.bind(r,62300,19)),"fr-FR":()=>r.e(3898).then(r.t.bind(r,73898,19)),"fr-MA":()=>r.e(9154).then(r.t.bind(r,59154,19)),"hu-HU":()=>r.e(8983).then(r.t.bind(r,98983,19)),"it-IT":()=>r.e(1281).then(r.t.bind(r,31281,19)),"ja-JP":()=>r.e(2742).then(r.t.bind(r,42742,19)),"ko-KR":()=>r.e(3121).then(r.t.bind(r,53121,19)),"nb-NO":()=>r.e(5752).then(r.t.bind(r,15752,19)),"nl-NL":()=>r.e(7371).then(r.t.bind(r,37371,19)),"pl-PL":()=>r.e(5318).then(r.t.bind(r,65318,19)),"pt-BR":()=>r.e(9259).then(r.t.bind(r,89259,19)),"ru-RU":()=>r.e(3449).then(r.t.bind(r,73449,19)),"sv-SE":()=>r.e(3856).then(r.t.bind(r,93856,19)),"tr-TR":()=>r.e(5673).then(r.t.bind(r,55673,19)),"uk-UA":()=>r.e(5636).then(r.t.bind(r,25636,19)),"zh-CN":()=>r.e(4864).then(r.t.bind(r,74864,19)),"zh-TW":()=>r.e(2270).then(r.t.bind(r,62270,19)),"zu-ZU":()=>r.e(1616).then(r.t.bind(r,71616,19)),"zz-ZZ":()=>r.e(7982).then(r.t.bind(r,17982,19))};class sd{constructor(e="en-US"){this.setLocale(e)}get locale(){return this._locale}setLocale(e){var t,r=this;return(t=nd().mark((function t(){var n,i,o;return nd().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return ad[e]||(oe.log(`[INTL] ${e} is not a supported language. Falling back to en-US`),e=od),t.next=3,r._loadLocaleData(e);case 3:return n=t.sent,i=n.messages,o=n.locale,r._intl=rd({locale:e,messages:i,defaultLocale:od},{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}),r._locale=o,t.abrupt("return",e);case 9:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){id(o,n,i,a,s,"next",e)}function s(e){id(o,n,i,a,s,"throw",e)}a(void 0)}))})()}_loadLocaleData(e){return ad[e]().then((t=>({messages:t,locale:e}))).catch((e=>this._loadLocaleData(od)))}formatMessage(e,t){if(this._intl)return this._intl.formatMessage({id:e},t);oe.log("[INTL] no localization data loaded")}}function cd(){cd=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ld(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function ud(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ld(o,n,i,a,s,"next",e)}function s(e){ld(o,n,i,a,s,"throw",e)}a(void 0)}))}}var dd=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};class pd extends te{constructor(e){super(),this._driver=e,this._fontsCache={}}getFontData(e){var t=this;return ud(cd().mark((function r(){var n,i;return cd().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(n=t._fontsCache[e])){r.next=3;break}return r.abrupt("return",n);case 3:return r.next=5,t._driver.getFontData(e);case 5:return i=r.sent,t._updateFontData(e,i),r.abrupt("return",i);case 8:case"end":return r.stop()}}),r)})))()}_updateFontData(e,t){this._fontsCache[e]=t}isSystemFontAvailable(e,t){var r=this;return ud(cd().mark((function n(){return cd().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._driver.isSystemFontAvailable(e,t);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()}_clearCache(){this._fontsCache={},this.emit("change")}}dd([Ha],pd.prototype,"getFontData",null),dd([Ha],pd.prototype,"isSystemFontAvailable",null);var hd=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};class fd extends te{constructor(){super(...arguments),this._map=new Map}set(e,t){this._map.set(e,t),this.emit("change")}delete(e){this._map.delete(e),this.emit("change")}clear(){this._map.clear(),this.emit("change")}entries(){return this._map.entries()}get(e){return this._map.get(e)}}function md(e){let t="private";return e.isPublic?t="follow":e.collaboration&&(t="outgoing"===e.collaboration.state?"owner":e.isWritable?"edit":"view"),t=e.toolkitId?"presets":t,{content:{author:t},event:{context_guid:e.id},ccl:{library_storage_type:hc(e)?"business":"user"},"custom.library":{filter:fc(e)?"brands":"libraries"}}}function gd(e){var t;const r=md(e.library),i=e.getPrimaryRepresentation(),o=i&&i.getValue("adobestock","trackingdata");r.ccl=r.ccl||{},o&&(r.ccl.tracking_data=JSON.stringify(o)),r.ccl.asset_linked_data=JSON.stringify({isLinked:!1}),r.content=r.content||{author:null},r.content.id=e.id;const a=e.getValue("capture","data");return r.content.action=a?null===(t=a.app)||void 0===t?void 0:t.split("-")[0]:e.createdContext&&e.createdContext.app,r.content.mimetype=e.type,r.content.type=vd(e),r.content.size=e.representations.reduce(((e,t)=>e+(t.contentLength||0)),0),r.content.extension=i?function(e){var t;return null===(t=n[e.toLowerCase()])||void 0===t?void 0:t.badge}(i.type):void 0,e.isStockAsset&&(r.content.status=e.isLicensed?"licensed":"unlicensed"),ce(r,function(e){const t=e.roles.find((e=>"brand"===e.type)),r={"custom.library":{asset_role:(null==t?void 0:t.usage)||"none",asset_priority:(null==t?void 0:t.priority)||"none"}};let n;switch(vd(e)){case"color":n=function(e){const t=e.getPrimaryRepresentation(),r=null==t?void 0:t.getValue("color","data");if((null==r?void 0:r.value)&&"RGB"===(null==r?void 0:r.mode)){const e=r.value,t=e.r,n=e.g,i=e.b;return{"custom.content":{name:Ls(t,n,i)}}}return{}}(e);break;case"font":n=function(e){const t=e.getPrimaryRepresentation(),r=null==t?void 0:t.getValue("font","data");return r?{"custom.content":{name:r.postScriptName,status:r.isPremium?"premium":"free"}}:{}}(e);break;case"image":n=function(e){return{"custom.content":{name:e.name||""}}}(e);break;default:n={}}return Object.assign(Object.assign({},r),n)}(e))}function vd(e){const t=e.type.match(v);return t&&t.length>=2?t[1]:"unsupported"}function yd(){yd=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function bd(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function _d(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){bd(o,n,i,a,s,"next",e)}function s(e){bd(o,n,i,a,s,"throw",e)}a(void 0)}))}}hd([Ha("change")],fd.prototype,"entries",null),hd([Ha("change")],fd.prototype,"get",null);const Ed={ALLOW_NO_TOKEN:!1,ANALYTICS_DEBOUNCE:15e3,ANALYTICS_MAX_QUEUED_EVENTS:50,ANALYTICS_PROJECT:"cclib-panel",ANALYTICS_USER_AGENT:"undefined"==typeof window?"cc-libraries-js/1.0":null===window||void 0===window?void 0:window.navigator.userAgent,ENVIRONMENT:"prod"};class wd{constructor(e){this.baseProperties={},this.apiRoot=e}get isInitialized(){return!!this.ingest}initialize(){var e=this;return _d(yd().mark((function t(){var n,i,o,a,s,c,l,u;return yd().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.apiKey&&e.product&&e.productLocation){t.next=2;break}throw new Error("apiKey, product, and productLocation must be set before using analytics");case 2:return n={getAccessToken:t=>t(void 0,e.apiRoot.driver.token)},t.next=5,r.e(6823).then(r.t.bind(r,75895,23));case 5:i=t.sent,o=i.default,a=e.product,(s=e.product.split("/")).length>=2&&(c=s[0],l=y[c]||c,u=s[1],a=`${l}/${u}`),e.ingest=new o(n,Object.assign({},Ed,{ENVIRONMENT:"staging"===e.apiRoot.driver.environment?"stage":"prod",ANALYTICS_API_KEY:e.apiKey,ANALYTICS_X_PRODUCT:a,ANALYTICS_X_PRODUCT_LOCATIONS:e.productLocation})),e.setEnabled(e.apiRoot.getOption("ANALYTICS_ENABLED"));case 12:case"end":return t.stop()}}),t)})))()}setEnabled(e){var t;null===(t=this.ingest)||void 0===t||t.enable(e)}addBaseProperties(e){Object.assign(this.baseProperties,e)}setBaseProperties(e){this.baseProperties=e}reportUseElement(e,t){var r=this;return _d(yd().mark((function n(){var i,o,a;return yd().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=ce(r.basePayload(),{"event.workflow":"Library:Use Assets","event.subcategory":"Element","event.type":"click","event.subtype":"use"},gd(e),r.baseProperties,t||{}),a=le(o),r.isInitialized){n.next=5;break}return n.next=5,r.initialize();case 5:null===(i=r.ingest)||void 0===i||i.postEvent(a);case 6:case"end":return n.stop()}}),n)})))()}reportCreateBrandFromDocument(e,t){var r=this;return _d(yd().mark((function n(){var i,o,a;return yd().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=ce(r.basePayload(),{"event.workflow":"Library:Create Library","event.subcategory":"New Library","event.type":"click","event.subtype":"create-from-document","event.pagename":"Root View"},md(e),r.baseProperties,t||{}),a=le(o),r.isInitialized){n.next=5;break}return n.next=5,r.initialize();case 5:null===(i=r.ingest)||void 0===i||i.postEvent(a);case 6:case"end":return n.stop()}}),n)})))()}reportPublishBrand(e,t){var r=this;return _d(yd().mark((function n(){var i,o,a;return yd().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=ce(r.basePayload(),{"event.workflow":"Library:Publish","event.subcategory":"Brand","event.type":"click","event.subtype":"publish"},md(e),r.baseProperties,t||{}),a=le(o),r.isInitialized){n.next=5;break}return n.next=5,r.initialize();case 5:null===(i=r.ingest)||void 0===i||i.postEvent(a);case 6:case"end":return n.stop()}}),n)})))()}reportUnpublishBrand(e,t){var r=this;return _d(yd().mark((function n(){var i,o,a;return yd().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=ce(r.basePayload(),{"event.workflow":"Library:Unpublish","event.subcategory":"Brand","event.type":"click","event.subtype":"unpublish"},md(e),r.baseProperties,t||{}),a=le(o),r.isInitialized){n.next=5;break}return n.next=5,r.initialize();case 5:null===(i=r.ingest)||void 0===i||i.postEvent(a);case 6:case"end":return n.stop()}}),n)})))()}reportDuplicateBrand(e,t){var r=this;return _d(yd().mark((function n(){var i,o,a;return yd().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=ce(r.basePayload(),{"event.workflow":"Library:Duplicate","event.subcategory":"Brand","event.type":"click","event.subtype":"duplicate"},md(e),r.baseProperties,t||{}),a=le(o),r.isInitialized){n.next=5;break}return n.next=5,r.initialize();case 5:null===(i=r.ingest)||void 0===i||i.postEvent(a);case 6:case"end":return n.stop()}}),n)})))()}reportEditorsButtonClick(e,t){var r=this;return _d(yd().mark((function n(){var i,o,a;return yd().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=ce(r.basePayload(),{"event.workflow":"Library:Editors Transparency","event.subcategory":"Brand","event.type":"click","event.subtype":"editors-popover-open"},md(e),r.baseProperties,t||{}),a=le(o),r.isInitialized){n.next=5;break}return n.next=5,r.initialize();case 5:null===(i=r.ingest)||void 0===i||i.postEvent(a);case 6:case"end":return n.stop()}}),n)})))()}reportEditElement(e,t){var r=this;return _d(yd().mark((function n(){var i,o,a;return yd().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=ce(r.basePayload(),{"event.workflow":"Library:Element Operations","event.subcategory":"Element","event.type":"click"},gd(e),r.baseProperties,t||{}),a=le(o),r.isInitialized){n.next=5;break}return n.next=5,r.initialize();case 5:null===(i=r.ingest)||void 0===i||i.postEvent(a);case 6:case"end":return n.stop()}}),n)})))()}reportEditLibrary(e,t){var r=this;return _d(yd().mark((function n(){var i,o,a;return yd().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=ce(r.basePayload(),{"event.workflow":"Library:Library Operations","event.subcategory":"Metadata","event.type":"click"},md(e),r.baseProperties,t||{}),a=le(o),r.isInitialized){n.next=5;break}return n.next=5,r.initialize();case 5:null===(i=r.ingest)||void 0===i||i.postEvent(a);case 6:case"end":return n.stop()}}),n)})))()}basePayload(){var e,t,r,n,i,o,a,s,c,l,u,d,p,h,f,m;const g="error"===this.apiRoot.syncState.status&&("NETWORK_ERROR"===(null===(e=this.apiRoot.syncState.primaryError)||void 0===e?void 0:e.code)||"LOGGED_OUT"===(null===(t=this.apiRoot.syncState.primaryError)||void 0===t?void 0:t.code)),v=this.getOSName(),y=this.getOSVersion(),b=null===(r=this.product)||void 0===r?void 0:r.split("/"),_=null!==(n=null==b?void 0:b[0])&&void 0!==n?n:"Unknown",E=null!==(i=null==b?void 0:b.length)&&void 0!==i&&i?null==b?void 0:b[1]:"Unknown",w=null===(o=this.productLocation)||void 0===o?void 0:o.split("/");return{"consumer.name":_,"consumer.platform":v,"consumer.os_version":y,"consumer.version":E,"env.com.name":null!==(a=null==w?void 0:w[0])&&void 0!==a?a:"Unknown","env.com.version":null!==(s=null==w?void 0:w.length)&&void 0!==s&&s?null==w?void 0:w[1]:"Unknown","event.category":this.platform,"event.context_guid":"Unknown","event.guid":"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),"event.language":this.apiRoot.getLocale(),"event.offline":g,"event.session_guid":this.sessionGuid,"event.user_guid":null!==(u=null===(l=null===(c=this.apiRoot.driver.config)||void 0===c?void 0:c.user)||void 0===l?void 0:l.id)&&void 0!==u?u:"Unknown","event.org_guid":null!==(p=null===(d=null===window||void 0===window?void 0:window.top)||void 0===d?void 0:d.corpId)&&void 0!==p?p:"Unknown","source.client_id":null!==(m=null===(f=null===(h=this.apiRoot.driver.config)||void 0===h?void 0:h.user)||void 0===f?void 0:f.clientId)&&void 0!==m?m:"Unknown","source.name":_,"source.os_version":y,"source.platform":v,"source.version":E,"user.service_code":"creativecloud","user.service_level":this.userAccountStatus}}getOSName(){const e=this.apiRoot.getOption("DEVICE_DESCRIPTION"),t=e&&e.split("-")[0],r=window.navigator.platform;let n="Unknown Operation System";return"Win32"===r||"Windows"===r?n="Windows":"MacIntel"!==r&&"Macintosh"!==r||(n="Mac OS X"),t&&{win:"Windows",winarm:"Win-ARM:64",mac:"Mac OS X",macarm:"Mac-ARM:64"}[t]||n}getOSVersion(){const e=window.navigator.platform,t=window.navigator.userAgent;if("Win32"===e||"Windows"===e){let e="";return t.includes("Windows")&&(t.includes("Windows NT 6.1")?e="Windows 7":t.includes("Windows NT 6.2")?e="Windows 8":t.includes("Windows NT 6.3")?e="Windows 8.1":t.includes("Windows NT 10")&&(e="Windows 10"),e+=t.includes("WOW64")?" 64-bit":" 32-bit"),e}if("MacIntel"===e||"Macintosh"===e){const e=/[Apple Silicon | Mac OS X ]([0-9_.]+)/.exec(t);return e&&e[1]?e[1].replace(/_/g,"."):""}return""}}function xd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||Od(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ld(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Od(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function Od(e,t){if(e){if("string"==typeof e)return Sd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Sd(e,t):void 0}}function Sd(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Td(){Td=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Pd(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Id(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Pd(o,n,i,a,s,"next",e)}function s(e){Pd(o,n,i,a,s,"throw",e)}a(void 0)}))}}var Ad=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},Cd=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,(t=e[r](t)).done,t.value)}))}}},kd=function(e){return this instanceof kd?(this.v=e,this):new kd(e)},Dd=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||s(e,t)}))})}function s(e,t){try{(r=i[e](t)).value instanceof kd?Promise.resolve(r.value.v).then(c,l):u(o[0][2],r)}catch(e){u(o[0][3],e)}var r}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}};const Nd={enableBrandLifecycleManagement:!1,elementTypes:["elements"],readOnly:!1,skipConnectingOnInit:!1};class Rd extends te{constructor(e,t={}){var n;super(),this._missingResolutionTargetsMap=new fd,this._resolutionProgressMap=new Map,this._teamsCache=new as(this,Tc),this._handleDriverConnect=e=>e instanceof Ji?this._handleCloudDriverConnect(e):e instanceof ca?this._handleLocalDriverConnect(e):void 0,this._handleDriverDisconnect=e=>{if(e instanceof ca)return this._handleLocalDriverDisconnect(e)},this.translate=(e,t)=>this._intl.formatMessage(e,t),r.g.CCLIBS=null!==(n=r.g.CCLIBS)&&void 0!==n?n:this,this._options=Object.assign(Object.assign({},Nd),t),this._driver=e,this._options.mobXCreateAtom&&this._options.mobXTransaction&&Ba.register(this._options.mobXCreateAtom,this._options.mobXTransaction),e instanceof Ji?this._cloudDriver=e:this._options.cloudDriver instanceof Ji&&(this._cloudDriver=this._options.cloudDriver),e instanceof ca&&(this._fontManager=new pd(e));const i=new wd(this);i.apiKey=this._options.ingestApiKey,i.product=this._options.product,i.productLocation=this._options.productLocation,i.platform=this._options.platform,i.sessionGuid=this._options.sessionGuid,i.userAccountStatus=this._options.userAccountStatus,this.utils=Object.assign(Object.assign({},Rd.utils),{copyFile:this.copyFile.bind(this),getInstalledVersion:this.getInstalledVersion.bind(this),getFileSize:this.getFileSize.bind(this),getRenditionGrid:this.getRenditionGrid.bind(this),extractElementId:wn,extractGroupId:Ln,metrics:i}),this._teamsCache.on("change",(()=>this.emit("teamChange"))),this._missingResolutionTargetsMap.on("change",(()=>this.emit("resolutionStatusChange"))),this._driver.on("connect",this._handleDriverConnect),this._driver.on("disconnect",this._handleDriverDisconnect),this._bindDriverEvents(),this._intl=new sd(this._options.locale),this._libraryCache=new qc(this,this._driver,{readOnly:this._options.readOnly,skipConnectingOnInit:this._options.skipConnectingOnInit,fileSystemCache:this._options.fileSystemCache,enableBrandLifecycleManagement:this._options.enableBrandLifecycleManagement}),this._bindLibraryCacheEvents(),oe.on("messageLogged",(e=>this.emit("messageLogged",e)))}changeDriver(e){var t=this;return Id(Td().mark((function r(){var n,i;return Td().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._libraryCache.changeDriver(e);case 2:return t._driver=e,t._driver instanceof ca&&(t._fontManager=new pd(t._driver)),t._driver.on("connect",t._handleDriverConnect),t._driver.on("disconnect",t._handleDriverDisconnect),t._bindDriverEvents(),i=new Promise((e=>n=e)),t._driver.once("connect",(()=>n())),r.abrupt("return",i);case 10:case"end":return r.stop()}}),r)})))()}_handleCloudDriverConnect(e){if(this._transientLibraryCache=new as(this,Lc,this._cloudDriver),this.driver instanceof da||this._options.disableLocalFallthrough)return this.emit("change"),void this.emit("driverConnect");e.getLocalDriver().init({retryCount:3,skipConnectingOnInit:this._options.skipConnectingOnInit},(e=>{this._libraryCache.pause(!0),this._libraryCache.DANGEROUS.removeAllListeners(),this._driver.DANGEROUS.removeAllListeners(),this._libraryCache=new qc(this,e,{readOnly:this._options.readOnly,skipConnectingOnInit:this._options.skipConnectingOnInit}),this._bindLibraryCacheEvents(),this._driver=e,this._bindDriverEvents(),this.emit("change")}))}_handleLocalDriverConnect(e){var t;e.updateRenditionCacheConfiguration(this.options.renditionSizes,this.options.fullRenditionConfig);const r=null!==(t=this.cloudDriver)&&void 0!==t?t:e.getCloudDriver();null==r||r.init({readOnly:!0},(e=>{this._cloudDriver=e,this._transientLibraryCache=new as(this,Lc,this._cloudDriver)})),this.emit("driverConnect")}_handleLocalDriverDisconnect(e){this.emit("driverDisconnect")}_bindDriverEvents(){this._driver.on("configChange",(()=>this.emit("configChange"))),this._driver.on("connecting",(()=>this.emit("connecting"))),this._driver.on("failedConnection",(()=>this.emit("failedConnection")))}_bindLibraryCacheEvents(){this._libraryCache.on("connect",(()=>this.emit("connect"))),this._libraryCache.on("loaded",(()=>this.emit("loaded"))),this._libraryCache.on("hydrate",(()=>this.emit("restore"))),this._libraryCache.on("sync",(()=>this.emit("sync"))),this._libraryCache.on("report",((...e)=>this.emit("report",...e))),this._libraryCache.on("change",this._libraryCacheChangeHandler.bind(this)),this._libraryCache.on("modelChange",this._libraryCacheChangeHandler.bind(this)),this._libraryCache.on("fontDataChange",(()=>{var e;return null===(e=this.fontManager)||void 0===e?void 0:e._clearCache()}))}_libraryCacheChangeHandler(){this.emit("change",{libraries:this._libraryCache.changes})}makeObservable(e,t){return Ba.register(e,t)}loadLibraryByAssetId(e){var t=this;return Id(Td().mark((function r(){var n,i,o,a,s,c,l,u,d;return Td().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._transientLibraryCache){r.next=2;break}throw new Error("Transient cache is not ready!");case 2:if(!t.cloudDriver){r.next=30;break}r.prev=3,c=!0,l=Cd(t.cloudDriver.getLibraryByAssetId(e,{elementParams:{types:["elements"],loadProgressively:!0}}));case 5:return r.next=7,l.next();case 7:if(u=r.sent,n=u.done){r.next=15;break}a=u.value,c=!1;try{d=a,s?s.update(d):s=(s=d.id?t._transientLibraryCache.get(d.id):void 0)||t._transientLibraryCache.add(Object.assign(Object.assign({},d),{isTransient:!0}))}finally{c=!0}case 13:r.next=5;break;case 15:r.next=20;break;case 17:r.prev=17,r.t0=r.catch(3),i={error:r.t0};case 20:if(r.prev=20,r.prev=21,c||n||!(o=l.return)){r.next=25;break}return r.next=25,o.call(l);case 25:if(r.prev=25,!i){r.next=28;break}throw i.error;case 28:return r.finish(25);case 29:return r.finish(20);case 30:return r.abrupt("return",s);case 31:case"end":return r.stop()}}),r,null,[[3,17,20,30],[21,,25,29]])})))()}get apiRoot(){return this}get apiVersion(){return 2}get options(){return this._options}updateOptions(e){this._options=e}get driver(){return this._driver}get cloudDriver(){return this._cloudDriver}get libraries(){return this._libraryCache.initialLibrariesLoad(),this._libraryCache.all().filter((e=>!e.isDeletedLocally&&mc(e.data,this._options.enableBrandLifecycleManagement)))}getLibraries(e){var t=this;return Id(Td().mark((function r(){return Td().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._libraryCache.loadList(e));case 1:case"end":return r.stop()}}),r)})))()}getLibrariesPage(e,t){var r=this;return Id(Td().mark((function n(){return Td().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r._libraryCache.loadPage(e,t));case 1:case"end":return n.stop()}}),n)})))()}get connected(){return Boolean(this.driver.isConnected)}get areLibrariesLoaded(){var e;return Boolean(null===(e=this._libraryCache)||void 0===e?void 0:e.isLoaded)}get areLibrariesLoading(){var e;return null===(e=this._libraryCache)||void 0===e?void 0:e.isLoading}get userQuota(){var e;return null===(e=this.driver.config.user)||void 0===e?void 0:e.quota}get processInfo(){return Object.assign(Object.assign({},this.driver.config.processInfo),{environment:this.driver.config.environment})}get storageUsed(){return this.libraries.reduce(((e,t)=>"private"===t.ownership?e+t.storageUsed:e),0)}_refreshTeams(){var e=this;return Id(Td().mark((function t(){var r,n,i,o;return Td().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=null===(r=e._options.featureFlags)||void 0===r?void 0:r.enableProjects,i=(n?e._driver.getProjects:e._driver.getTeams).bind(e._driver),t.next=5,i();case 5:o=t.sent,e._teamsCache.replace(o),t.next=13;break;case 9:if(t.prev=9,t.t0=t.catch(0),t.t0.name===O){t.next=13;break}throw t.t0;case 13:return t.abrupt("return",e._teamsCache.all());case 14:case"end":return t.stop()}}),t,null,[[0,9]])})))()}refreshTeams(){var e=this;return Id(Td().mark((function t(){return Td().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"staging"===e.driver.config.environment&&oe.warn("CCLibraries.refreshTeams is deprecated. Use CCLibraries.refreshProjects instead."),t.abrupt("return",e._refreshTeams());case 2:case"end":return t.stop()}}),t)})))()}refreshProjects(){var e=this;return Id(Td().mark((function t(){return Td().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._refreshTeams());case 1:case"end":return t.stop()}}),t)})))()}get teams(){return"staging"===this.driver.config.environment&&oe.warn("CCLibraries.teams is deprecated. Use CCLibraries.projects instead."),this._teamsCache.all()}get projects(){return this._teamsCache.all()}get userId(){var e,t,r;return null===(r=null===(t=null===(e=this._driver)||void 0===e?void 0:e.config)||void 0===t?void 0:t.user)||void 0===r?void 0:r.id}createLibrary(e,t={}){var r;const n=this._libraryCache.add(N({id:k(),name:e,documentExtractionData:t.documentExtractionData,roles:t.roles,team:null===(r=t.team)||void 0===r?void 0:r.data,bookmark:t.team?{id:k()}:void 0}));return n.actionDispatch({name:"createLibrary",type:"no-op",data:n.data,flags:{lockNewLibraries:!0,permissionInheritance:t.permissionInheritance}}),n}removeLibrary(e){e.actionDispatch({name:"removeLibrary",type:"no-op",path:"$"}),e.isDeletedLocally=!0}permanentlyDeleteLibrary(e){e.actionDispatch({name:"permanentlyDeleteLibrary",type:"no-op",path:"$"}),e.isDeletedLocally=!0}leaveLibrary(e){e.actionDispatch({name:"leaveLibrary",type:"no-op",path:"$"}),e.isDeletedLocally=!0}followLibrary(e,t){return this._driver.followLibrary(e,t).then((()=>{this._libraryCache.remove(t)}))}unfollowLibrary(e){e.actionDispatch({name:"unfollowLibrary",type:"no-op",path:"$"}),e.isDeletedLocally=!0}importLibrary(e,t=(()=>{})){return this._driver.importLibrary(e,((e,r)=>{if(e)return t(e);this._libraryCache.upsert(r);const n=this._libraryCache.get(null==r?void 0:r.id);t(void 0,n)}))}exportLibrary(e,t,r=(()=>{})){return this._driver.exportLibrary(e,t,r)}getLibraryById(e){return this._libraryCache.get(e)}getLibraryByAssetId(e){return this._libraryCache.getByIndex("assetId",e)}copyLibrary(e,t={}){var r,n,i;const o=this._libraryCache.add(N({id:k(),name:null!==(r=t.newName)&&void 0!==r?r:e.name,roles:e.roles,team:null===(n=t.team)||void 0===n?void 0:n.data,bookmark:t.team?{id:k()}:void 0}));return o.actionDispatch({name:"copyLibrary",type:"no-op",data:{name:t.newName,team:null===(i=t.team)||void 0===i?void 0:i.data},flags:{lockNewLibraries:!0,permissionInheritance:t.permissionInheritance,source:e,includeAppMetadata:t.includeAppMetadata}}),o}moveLibrary(e,t){e.actionDispatch({name:"moveLibrary",type:"update",data:{team:{id:t.id,name:t.name},bookmark:{id:k()},ownership:"incoming",ownerType:"org",owner:t.owner.id}})}getHybridSearchResults(e,t,r){const n=function(n){return Dd(this,arguments,Td().mark((function i(){var o,a,s,c,l,u,d,p,h,f,m,g;return Td().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return l=new RegExp(e,"ig"),u=this.libraries.filter((e=>(null==t?void 0:t.library_id)===e.id||!(null==t?void 0:t.library_id))).reduce(((e,t)=>{const r=t.elements.filter((e=>l.test(e.name)));return e.push(...r),e}),[]),i.next=4,kd(u);case 4:return i.next=6,i.sent;case 6:d=u.map((e=>e.id)),(null==t?void 0:t.library_id)&&(p=this.getLibraryById(t.library_id),t=Object.assign(Object.assign({},t),{library_id:null==p?void 0:p.assetId})),i.prev=8,h=!0,f=Cd(this.driver.getSearchResults(e,t,r,n));case 10:return i.next=12,kd(f.next());case 12:if(m=i.sent,o=m.done){i.next=28;break}return c=m.value,h=!1,i.prev=17,g=c,i.next=21,kd(g.map((e=>{if(d.includes(e.id))return;const t=this.getLibraryByAssetId(e.libraryAssetId);return t?new Rs(void 0,t,e):void 0})).filter(Boolean));case 21:return i.next=23,i.sent;case 23:return i.prev=23,h=!0,i.finish(23);case 26:i.next=10;break;case 28:i.next=33;break;case 30:i.prev=30,i.t0=i.catch(8),a={error:i.t0};case 33:if(i.prev=33,i.prev=34,h||o||!(s=f.return)){i.next=38;break}return i.next=38,kd(s.call(f));case 38:if(i.prev=38,!a){i.next=41;break}throw a.error;case 41:return i.finish(38);case 42:return i.finish(33);case 43:case"end":return i.stop()}}),i,this,[[8,30,33,43],[17,,23,26],[34,,38,42]])})))}.bind(this);return this._searchLoader=new Ma(n),this._searchLoader}getSearchResults(e,t,r){this.abortSearch();const n=(t=t||{})&&t.library_id;if(this._driver instanceof da)return this.getHybridSearchResults(e,t,r);const i=function(i){return Dd(this,arguments,Td().mark((function o(){var a,s,c,l,u,d,p,h,f,m,g,v,y,b,_;return Td().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:u=new Map,d=[],o.prev=2,p=!0,h=Cd(this._driver.getSearchResults(e,t,r,i));case 4:return o.next=6,kd(h.next());case 6:if(f=o.sent,a=f.done){o.next=42;break}return l=f.value,p=!1,o.prev=11,m=l,o.next=15,kd(m.forEach((e=>{const t=e.libraryId||n;let r=this.getLibraryById(t);if(r&&r.areElementsLoaded)return e;r||(r=this._libraryCache.add(N({id:t,name:t,areElementsLoaded:!1,isLibraryLoaded:!1})),d.push(t)),d.includes(t)||(r.abortLoadElements(),r.clearElements(!1),d.push(t));const i=u.get(r)||[];return i.push(e),u.set(r,i),e})));case 15:g=Ld(u),o.prev=16,g.s();case 18:if((v=g.n()).done){o.next=24;break}return y=xd(v.value,2),b=y[0],_=y[1],o.next=22,kd(b.loadGivenElements(_,!1,!1));case 22:o.next=18;break;case 24:o.next=29;break;case 26:o.prev=26,o.t0=o.catch(16),g.e(o.t0);case 29:return o.prev=29,g.f(),o.finish(29);case 32:return u.clear(),o.next=35,kd(m.map((e=>{const t=e.libraryId||n;if(!t)return;const r=this.getLibraryById(t);return null==r?void 0:r.getElementById(e.id)})));case 35:return o.next=37,o.sent;case 37:return o.prev=37,p=!0,o.finish(37);case 40:o.next=4;break;case 42:o.next=47;break;case 44:o.prev=44,o.t1=o.catch(2),s={error:o.t1};case 47:if(o.prev=47,o.prev=48,p||a||!(c=h.return)){o.next=52;break}return o.next=52,kd(c.call(h));case 52:if(o.prev=52,!s){o.next=55;break}throw s.error;case 55:return o.finish(52);case 56:return o.finish(47);case 57:case"end":return o.stop()}}),o,this,[[2,44,47,57],[11,,37,40],[16,26,29,32],[48,,52,56]])})))}.bind(this);return this._searchLoader=new Ma(i),this._searchLoader}abortSearch(){this._searchLoader&&this._searchLoader.abort()}copyFile(e,t,r){return this.driver.copyFile(e,t,r)}getInstalledVersion(e){return this.driver.getInstalledVersion(e)}getFileSize(e){return this.driver.getFileSize(e)}getRenditionGrid(e){return this.driver.getRenditionGrid(e)}getOption(e){var t,r,n;const i=function(e){if(!function(e){return/^[A-Z_]*$/.test(e)}(e))throw new q("String must be upper snake case to convert");return e.toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()))}(e);return(null===(n=null===(r=null===(t=this._driver)||void 0===t?void 0:t.config)||void 0===r?void 0:r.processInfo)||void 0===n?void 0:n[i])||b[e]}setLocalSetting(e,t){var r=this;return Id(Td().mark((function n(){return Td().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.prev=0,JSON.stringify(t),n.next=7;break;case 4:throw n.prev=4,n.t0=n.catch(0),new J("INVALID_PARAMETER","Value must be serializable to JSON");case 7:return n.next=9,r._driver.setLocalSetting(e,t);case 9:case"end":return n.stop()}}),n,null,[[0,4]])})))()}getLocalSetting(e){return this._driver.getLocalSetting(e)}getLocale(){return this._intl.locale}setLocale(e){return this._intl.setLocale(e)}isConnected(){return Boolean(this.driver.isConnected)}get connectionState(){return this.driver.connectionState}reconnect(){var e;this.isConnected()||null===(e=this._driver)||void 0===e||e.connect()}disconnect(){var e;null===(e=this._driver)||void 0===e||e.disconnect()}isSyncingEnabled(){var e;return null===(e=this._driver.config.processInfo)||void 0===e?void 0:e.syncingEnabled}enableSyncing(){return this._libraryCache.resume(),this._setSyncEnabledConfig(!0)}disableSyncing(e=!1){var t=this;return Id(Td().mark((function r(){return Td().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._setSyncEnabledConfig(!1);case 2:t._libraryCache.pause(e);case 3:case"end":return r.stop()}}),r)})))()}_setSyncEnabledConfig(e){var t=this;return Id(Td().mark((function r(){return Td().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t.setLocalSetting("processInfo",Object.assign(Object.assign({},t._driver.config.processInfo),{syncingEnabled:e})));case 1:case"end":return r.stop()}}),r)})))()}_resolveLibrary(e){var t=this;return Id(Td().mark((function r(){var n,i;return Td().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=`library#${e}`,t._resolutionProgressMap.has(n)||(i=t.driver.getLibraryById(e).then((e=>(t._libraryCache.upsert(e),t._libraryCache.get(e.id)))).catch((e=>{if("NOT_FOUND"!==e.code)throw oe.log(String(e)),e})).finally((()=>{t._resolutionProgressMap.delete(n)})),t._resolutionProgressMap.set(n,i)),r.abrupt("return",t._resolutionProgressMap.get(n));case 3:case"end":return r.stop()}}),r)})))()}_resolveElementById(e,t,r=!1){var n=this;return Id(Td().mark((function i(){var o,a;return Td().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(e){i.next=2;break}return i.abrupt("return");case 2:if(!(o=e.getElementById(t,!r))){i.next=5;break}return i.abrupt("return",o);case 5:return i.prev=5,i.next=8,n.driver.getElement(e,t);case 8:return a=i.sent,e.loadGivenElements([a],!1,!0),i.abrupt("return",e.getElementById(t,!r));case 13:if(i.prev=13,i.t0=i.catch(5),"NOT_FOUND"===i.t0.code){i.next=18;break}throw oe.log(String(i.t0)),i.t0;case 18:return i.abrupt("return");case 19:case"end":return i.stop()}}),i,null,[[5,13]])})))()}resolveLibraryById(e){var t=this;return Id(Td().mark((function r(){var n;return Td().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._libraryCache.waitForHydrate();case 2:if(!(n=t.getLibraryById(e))){r.next=5;break}return r.abrupt("return",n);case 5:return r.abrupt("return",t._resolveLibrary(e));case 6:case"end":return r.stop()}}),r)})))()}resolveLibraryByAssetId(e){var t=this;return Id(Td().mark((function r(){var n;return Td().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._libraryCache.waitForHydrate();case 2:if(!(n=t.getLibraryByAssetId(e))){r.next=5;break}return r.abrupt("return",n);case 5:return r.abrupt("return",t._resolveLibrary(e));case 6:case"end":return r.stop()}}),r)})))()}resolveLibraryWithoutCache(e){var t=this;return Id(Td().mark((function r(){return Td().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._resolveLibrary(e));case 1:case"end":return r.stop()}}),r)})))()}resolveCachedLibraryReference(e){if(!e)return;const t=B(e).libraryId;return t?this.getLibraryById(t)||this._getLinkReferenceStatus(e):void 0}resolveLibraryReference(e){var t=this;return Id(Td().mark((function r(){var n,i,o;return Td().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:if(n=B(e),i=n.libraryAssetId,o=n.libraryId,i||o){r.next=5;break}return r.abrupt("return");case 5:if(!t.isLocallyManaged){r.next=7;break}return r.abrupt("return",t.resolveLibraryById(o));case 7:return r.abrupt("return",t.resolveLibraryByAssetId(i));case 8:case"end":return r.stop()}}),r)})))()}resolveElementReference(e,t=!1){var r=this;return Id(Td().mark((function n(){var i,o,a;return Td().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e){n.next=2;break}return n.abrupt("return");case 2:if(i=B(e),o=i.elementId){n.next=5;break}return n.abrupt("return");case 5:return n.next=7,r.resolveElementReferenceToLibrary(e);case 7:if(a=n.sent){n.next=10;break}return n.abrupt("return");case 10:return n.abrupt("return",r._resolveElementById(a,o,t));case 11:case"end":return n.stop()}}),n)})))()}resolveCachedElementReference(e,t=!1){if(!e)return;const r=B(e),n=r.libraryId,i=r.elementId;if(!n||!i)return;const o=this.getLibraryById(n);return(null==o?void 0:o.getElementById(i,!t))||this._getLinkReferenceStatus(e,!0,t)}resolveElementReferenceToLibrary(e){var t=this;return Id(Td().mark((function r(){var n,i,o;return Td().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:if(n=B(e),i=n.libraryAssetId,o=n.libraryId,i||o){r.next=5;break}return r.abrupt("return");case 5:if(!t.isLocallyManaged){r.next=7;break}return r.abrupt("return",t.resolveLibraryById(o));case 7:return r.abrupt("return",t.resolveLibraryByAssetId(i));case 8:case"end":return r.stop()}}),r)})))()}resolveCachedElementReferenceToLibrary(e){return this.resolveCachedLibraryReference(e)}_getLinkReferenceStatus(e,t=!1,r=!1){const n=t?"element":"library",i=r&&"removed",o=`${j(e)}#${n}#${i}`;if(this._missingResolutionTargetsMap.get(o))return null;this._resolveElementReferenceAndNotify(e,o,t,r)}_resolveElementReferenceAndNotify(e,t,r=!1,n=!1){if(!this._resolutionProgressMap.has(t)){const i=(r?this.resolveElementReference.bind(this):this.resolveElementReferenceToLibrary.bind(this))(e,n).then((e=>{this._missingResolutionTargetsMap.set(t,!e)})).finally((()=>{this._resolutionProgressMap.delete(t)}));this._resolutionProgressMap.set(t,i)}return this._resolutionProgressMap.get(t)}openInCCD(e){return this._driver.openInCCD(e)}get canAccessLocalProcess(){return this._driver instanceof ca}getAccessToken(e,t,r,n){return this._driver.fetchAccessToken(e,t,r,n)}getLibraryByToolkitId(e){let t=xd(this.libraries.filter((t=>t.toolkitId===e)).sort(((e,t)=>e.created-t.created)),1)[0];if(!t){const r=this.translate(m[e]);t=this.createLibrary(r),t.toolkitId=e}return t}getDefaultLibrary(){const e=this.getLocalSetting("defaultLibrary");if(e){const t=e.id,r=e.assetId,n=this.resolveCachedElementReferenceToLibrary({"repo:assetId":r,"stRef:documentID":t,"stRef:fromPart":""});if(void 0===n||(null==n?void 0:n.isWritable))return n}return this._options.disableFallbackDefaultLibrary?null:this.libraries.reduce(((e,t)=>{const r=!e||(e.created||0)>(t.created||0);return"private"===t.ownership&&r?t:e}),null)}setDefaultLibrary(e){if(e&&!e.isWritable)throw new J("INVALID_PARAMETER","Read-only libraries cannot be set as default");this.setLocalSetting("defaultLibrary",{id:null==e?void 0:e.id,assetId:null==e?void 0:e.assetId}),this._setDefaultLibraryMonitor()}_setDefaultLibraryMonitor(){var e;null===(e=this._disposeDefaultLibraryMonitor)||void 0===e||e.call(this);const t=this.getDefaultLibrary();if(t){const e=t.id,r=t.assetId,n=()=>{t.id===e&&t.assetId===r||this.setDefaultLibrary(t)};this._disposeDefaultLibraryMonitor=()=>t.off("change",n),t.on("change",n)}}get syncState(){return this._libraryCache.syncStatus}get retryTime(){}getTempDir(e){return this.driver.getTempDir(e)}get fontManager(){return this._fontManager}get isLocallyManaged(){return this.driver instanceof ca}publishBrand(e){return this._driver.publishBrand(e)}unpublishBrand(e){return this._driver.unpublishBrand(e)}}Rd.errors=J,Rd.utils={getExtensions:a,getMimeTypes:s},Ad([Wa],Rd.prototype,"loadLibraryByAssetId",null),Ad([Ha],Rd.prototype,"options",null),Ad([Ha],Rd.prototype,"libraries",null),Ad([Ha],Rd.prototype,"getLibraries",null),Ad([Ha],Rd.prototype,"getLibrariesPage",null),Ad([Ha("driverConnect","driverDisconnect","loaded")],Rd.prototype,"connected",null),Ad([Ha("loaded")],Rd.prototype,"areLibrariesLoaded",null),Ad([Ha("loaded","sync")],Rd.prototype,"areLibrariesLoading",null),Ad([Ha("configChange")],Rd.prototype,"userQuota",null),Ad([Ka,Ha("configChange")],Rd.prototype,"processInfo",null),Ad([Ha],Rd.prototype,"storageUsed",null),Ad([Ha("teamChange")],Rd.prototype,"refreshTeams",null),Ad([Ha("teamChange")],Rd.prototype,"refreshProjects",null),Ad([Ha("teamChange")],Rd.prototype,"teams",null),Ad([Ha("teamChange")],Rd.prototype,"projects",null),Ad([Ha("configChange")],Rd.prototype,"userId",null),Ad([Ha("configChange")],Rd.prototype,"getOption",null),Ad([Ha("configChange")],Rd.prototype,"getLocalSetting",null),Ad([Ha("driverConnect","driverDisconnect","loaded")],Rd.prototype,"isConnected",null),Ad([Ha("driverConnect","driverDisconnect","loaded","connecting","failedConnection")],Rd.prototype,"connectionState",null),Ad([Ha("configChange")],Rd.prototype,"isSyncingEnabled",null),Ad([Ha("change","resolutionStatusChange")],Rd.prototype,"resolveCachedLibraryReference",null),Ad([Ha("change","resolutionStatusChange")],Rd.prototype,"resolveCachedElementReference",null),Ad([Ha("change","resolutionStatusChange")],Rd.prototype,"resolveCachedElementReferenceToLibrary",null),Ad([Ha("sync")],Rd.prototype,"syncState",null),Ad([Ka],Rd.prototype,"fontManager",null),Ad([Wa],Rd.prototype,"publishBrand",null),Ad([Wa],Rd.prototype,"unpublishBrand",null);const Md={mimeTypeToExtensions:a,extensionToMimeTypes:s,canComputeRenditionFromMimeType:c,getSNISettings:()=>({TLS_DISCOVERY_PORT_RANGE:d}),isPlaceholderId:D,parseLinkReference:Z,serializeLinkReference:j,estimateUploadTime:function(e){const t=e.reduce(((e,t)=>(t.size>f?e.asimov.push(t):e.standard.push(t),e)),{standard:[],asimov:[]}),r=t.standard,n=t.asimov;return Math.max(Y(r),Y(function(e){return e.map((e=>{const t=e.size,r=Math.floor(t/f),n=t%f,i=r+(n?1:0);return Array.from({length:i},((e,t)=>({size:t===i-1?n:f})))})).flat()}(n)))}}},24560:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const a=r(29449),s=r(33947),c=r(72704),l=r(48195),u=Symbol("encodeFragmentIdentifier");function d(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function p(e,t){return t.encode?t.strict?a(e):encodeURIComponent(e):e}function h(e,t){return t.decode?s(e):e}function f(e){return Array.isArray(e)?e.sort():"object"==typeof e?f(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function m(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function g(e){const t=(e=m(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function v(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function y(e,t){d((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"colon-list-separator":return(e,r,n)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const i="string"==typeof r&&r.includes(e.arrayFormatSeparator),o="string"==typeof r&&!i&&h(r,e).includes(e.arrayFormatSeparator);r=o?h(r,e):r;const a=i||o?r.split(e.arrayFormatSeparator).map((t=>h(t,e))):null===r?r:h(r,e);n[t]=a};case"bracket-separator":return(t,r,n)=>{const i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i)return void(n[t]=r?h(r,e):r);const o=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>h(t,e)));void 0!==n[t]?n[t]=[].concat(n[t],o):n[t]=o};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),o=Object.create(null);if("string"!=typeof e)return o;if(!(e=e.trim().replace(/^[?#&]/,"")))return o;var a,s=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=i(e))){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw a}}}}(e.split("&"));try{for(s.s();!(a=s.n()).done;){const e=a.value;if(""===e)continue;let i=n(c(t.decode?e.replace(/\+/g," "):e,"="),2),s=i[0],l=i[1];l=void 0===l?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?l:h(l,t),r(h(s,t),l,o)}}catch(e){s.e(e)}finally{s.f()}for(var l=0,u=Object.keys(o);l<u.length;l++){const e=u[l],r=o[e];if("object"==typeof r&&null!==r)for(var p=0,m=Object.keys(r);p<m.length;p++){const e=m[p];r[e]=v(r[e],t)}else o[e]=v(r,t)}return!1===t.sort?o:(!0===t.sort?Object.keys(o).sort():Object.keys(o).sort(t.sort)).reduce(((e,t)=>{const r=o[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=f(r):e[t]=r,e}),Object.create(null))}t.extract=g,t.parse=y,t.stringify=(e,t)=>{if(!e)return"";d((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const i=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[p(t,e),"[",i,"]"].join("")]:[...r,[p(t,e),"[",p(i,e),"]=",p(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[p(t,e),"[]"].join("")]:[...r,[p(t,e),"[]=",p(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[p(t,e),":list="].join("")]:[...r,[p(t,e),":list=",p(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?n:(i=null===i?"":i,0===n.length?[[p(r,e),t,p(i,e)].join("")]:[[n,p(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,p(t,e)]:[...r,[p(t,e),"=",p(n,e)].join("")]}}(t),i={};for(var o=0,a=Object.keys(e);o<a.length;o++){const t=a[o];r(t)||(i[t]=e[t])}const s=Object.keys(i);return!1!==t.sort&&s.sort(t.sort),s.map((r=>{const i=e[r];return void 0===i?"":null===i?p(r,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?p(r,t)+"[]":i.reduce(n(r),[]).join("&"):p(r,t)+"="+p(i,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const r=n(c(e,"#"),2),i=r[0],o=r[1];return Object.assign({url:i.split("?")[0]||"",query:y(g(e),t)},t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:h(o,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[u]:!0},r);const n=m(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let s=t.stringify(a,r);s&&(s=`?${s}`);let c=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(c=`#${r[u]?p(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${n}${s}${c}`},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[u]:!1},n);const i=t.parseUrl(e,n),o=i.url,a=i.query,s=i.fragmentIdentifier;return t.stringifyUrl({url:o,query:l(a,r),fragmentIdentifier:s},n)},t.exclude=(e,r,n)=>{const i=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,i,n)}},26077:e=>{function t(e,t){var r=e.toString();if(r.length<t){var n=[];n.length=t-r.length+1,r=n.join("0")+r}return r}function r(e,t){return Object.getOwnPropertyNames(t).forEach((function(n){if("object"==typeof t[n])"object"!=typeof e[n]&&(e[n]={}),r(e[n],t[n]);else{var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i)}})),e}function n(e,t,r){e.forEach((function(e){setTimeout((function(){e(t,r)}))}))}var i={prod:"cc-api-data.adobe.io",stage:"cc-api-data-stage.adobe.io",dev:"cc-api-data-dev.adobe.io"},o="/ingest",a={ENVIRONMENT:"prod",ALLOW_NO_TOKEN:!1,ANALYTICS_INGEST_TYPE:"dunamis",ANALYTICS_MAX_QUEUED_EVENTS:50,ANALYTICS_DEBOUNCE:1e4,ANALYTICS_API_KEY:null,ANALYTICS_X_PRODUCT:null,ANALYTICS_X_PRODUCT_LOCATION:void 0,ANALYTICS_PROJECT:null,ANALYTICS_USER_REGION:"UNKNOWN",TIMESTAMP_PROPERTY_NAME:"event.dts_end"},s=["ANALYTICS_API_KEY","ANALYTICS_X_PRODUCT","ANALYTICS_PROJECT"];function c(e,t){e=e||{},t=t||{};var n=e=>{throw this._log(e),new Error("ERROR: "+e)};this._queuedEvents=[],this._queuedCallbacks=[],this._lastSendTime=0,this._isEnabled=!1,this._dependencies=r({},e),e.getAccessToken&&"function"==typeof e.getAccessToken||n("Missing dependency: getAccessToken"),this._options={},Object.keys(a).forEach((e=>{this._options[e]=t[e]||a[e]})),s.forEach((e=>{this._options[e]||n("Missing option: "+e)})),"undefined"==typeof fetch&&n("Ingest requires fetch - if in a node environment, set 'global.fetch = require('node-fetch');'")}c.prototype._log=function(e){var t=this._dependencies.log;t&&t("Ingest :: "+e)},c.prototype._getAgent=function(e,t){this._dependencies.getAgent?this._dependencies.getAgent(e,t):t(null,{})},c.prototype._getAccessToken=function(e){this._dependencies.getAccessToken(e)},c.prototype._clearAccessToken=function(){this._dependencies.clearAccessToken&&this._dependencies.clearAccessToken()},c.prototype._getEnvironment=function(){return i[this._options.ENVIRONMENT]?this._options.ENVIRONMENT:"prod"},c.prototype._getAnalyticsHost=function(){return i[this._getEnvironment()]},c.prototype._formatTimestamp=function(e){var r=e.getFullYear(),n=t(e.getMonth()+1,2),i=t(e.getDate(),2),o=t(e.getHours(),2),a=t(e.getMinutes(),2),s=t(e.getSeconds(),2),c=t(e.getMilliseconds(),3),l=e.getTimezoneOffset(),u=l<0?"+":"-",d=Math.floor(Math.abs(l)/60),p=Math.abs(l)%60;return r+"-"+n+"-"+i+"T"+o+":"+a+":"+s+"."+c+(u+t(d,2)+t(p,2))},c.prototype._updateDebounce=function(e){var t=e&&(e["retry-after"]||e["Retry-After"]),r=0;if(t){var n;try{n=parseInt(t,10)}catch(e){}if(n)r=Math.max(0,n);else{var i=Date.parse(t);if(i){var o=(new Date).valueOf();r=Math.max(0,i-o)/1e3+Math.floor(10*Math.random())}}}this._options.ANALYTICS_DEBOUNCE=Math.max(1e3*r,this._options.ANALYTICS_DEBOUNCE)},c.prototype._queueEvent=function(e){this._queuedEvents.length>=this._options.ANALYTICS_MAX_QUEUED_EVENTS&&this._queuedEvents.shift(),this._queuedEvents.push(e)},c.prototype._requeueEvents=function(e){this._queuedEvents=e.concat(this._queuedEvents),this._queuedEvents=function(e,t){var r=e;if(e&&e.length>t&&t>0){var n=e.length-t;r=e.slice(n,e.length)}return r}(this._queuedEvents,this._options.ANALYTICS_MAX_QUEUED_EVENTS)},c.prototype._sendAnalytics=function(e,t,i){if(i=i||0,t&&this._queuedCallbacks.push(t),!this._isEnabled||0===this._queuedEvents.length){var a=this._queuedCallbacks;return this._queuedCallbacks=[],void(this._isEnabled?n(a,null,0):n(a,new Error("Analytics Disabled")))}var s=this._options.ANALYTICS_DEBOUNCE;if(e&&(s=0,clearTimeout(this._pendingSendAnalyticsTimeout),this._pendingSendAnalyticsTimeout=void 0),this._sendingEvents||this._pendingSendAnalyticsTimeout)this._log("Queued "+this._queuedEvents.length+" events to be sent.");else{var c=(new Date).valueOf();if(c-this._lastSendTime<s)this._pendingSendAnalyticsTimeout=setTimeout((()=>{this._pendingSendAnalyticsTimeout=void 0,this._sendAnalytics()}),s);else{this._lastSendTime=c,this._sendingEvents=this._queuedEvents,this._sendingCallbacks=this._queuedCallbacks,this._queuedEvents=[],this._queuedCallbacks=[];var l,u=(l=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)})()+l()+"-"+l()+"-"+l()+"-"+l()+"-"+l()+l()+l(),d="["+u+"] ",p={events:this._sendingEvents},h=e=>{var t=this._queuedEvents?this._queuedEvents.length:0;if(this._sendingEvents){var r=this._sendingEvents.length;e?(this._requeueEvents(this._sendingEvents),this._log(d+"Error sending "+r+" events: "+e)):this._log(d+"Success sending "+r+" events: "+JSON.stringify(this._sendingEvents)),delete this._sendingEvents;var i=this._sendingCallbacks;delete this._sendingCallbacks,e?n(i,e):n(i,null,r)}t>0&&this._sendAnalytics()},f=(e,t)=>{if(this._updateDebounce(t),401===e&&0===i)return this._clearAccessToken(),this._requeueEvents(this._sendingEvents),delete this._sendingEvents,this._queuedCallbacks=this._sendingCallbacks.concat(this._queuedCallbacks),delete this._sendingCallbacks,this._log(d+"Access token is expired. Retry one more time."),void this._sendAnalytics(!0,void 0,i+1);200===e?h():h(new Error("Unexpected Response: "+e))};this._getAccessToken(((e,t)=>{if(e&&!this._options.ALLOW_NO_TOKEN)return void h(e);if(!(t&&0!==t.length||this._options.ALLOW_NO_TOKEN))return void h(new Error("No access token"));var n="https://"+this._getAnalyticsHost();this._log(d+"Sending analytics to "+n+o);const i={"x-api-key":this._options.ANALYTICS_API_KEY,"X-Product":this._options.ANALYTICS_X_PRODUCT,"User-Agent":this._options.ANALYTICS_USER_AGENT||this._options.ANALYTICS_API_KEY,"X-Request-Id":u,"Content-Type":"application/json"};t&&(i.Authorization="Bearer "+t),this._options.ANALYTICS_X_PRODUCT_LOCATION&&(i["X-Product-Location"]=this._options.ANALYTICS_X_PRODUCT_LOCATION),this._getAgent(n,((e,t)=>{const a={method:"POST",headers:i,body:JSON.stringify(p)};t&&t.agent?a.agent=t&&t.agent:r(a,t||{}),fetch(n+o,a).then((e=>{f(e.status,e.headers)}),h)}))}))}}},c.prototype.enable=function(e){this._isEnabled=e,e&&this._sendAnalytics(!0)},c.prototype.postEvent=function(e,t,r){var i=r||{},o="event.dts_start",a="event.coll_dts",s=i.TIMESTAMP_PROPERTY_NAME||this._options.TIMESTAMP_PROPERTY_NAME,c=i.ANALYTICS_PROJECT||this._options.ANALYTICS_PROJECT,l=i.ANALYTICS_INGEST_TYPE||this._options.ANALYTICS_INGEST_TYPE;e[a]&&e[a]instanceof Date&&(e[a]=this._formatTimestamp(e[a])),e[o]&&e[o]instanceof Date&&(e[o]=this._formatTimestamp(e[o])),e[s]||(e[s]=this._formatTimestamp(new Date)),e[s]instanceof Date&&(e[s]=this._formatTimestamp(e[s]));var u={time:e[s],project:c,environment:this._getEnvironment(),ingesttype:l,data:e};e.simulate?(this._log("event sim:"+JSON.stringify(u)),t&&n([t],null,0)):(this._queueEvent(u),this._sendAnalytics(!1,t))},c.prototype.flush=function(e,t){this._sendAnalytics(e,t)},e.exports=c},52844:(e,t,r)=>{"use strict";r.d(t,{Z:()=>L});var n=r(89526),i=r(30222),o=r(83377),a=r(28086),s=r(94859),c=r(82530);const l=["autoFocus","className","children","disabled","holdAffordance","pending","quiet","variant","dropdownTrigger","icon","label","uxpUseNative","treatment","selected"],u=["autoFocus","children","className","disabled","holdAffordance","quiet","selected","variant","dropdownTrigger","icon","label","uxpUseNative"];function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function m(){m=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(O([])));v&&v!==t&&r.call(v,i)&&(f=v);var y=h.prototype=d.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=h,s(y,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function g(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function v(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){g(o,n,i,a,s,"next",e)}function s(e){g(o,n,i,a,s,"throw",e)}a(void 0)}))}}const y=(0,s.Z)(r(96195)).default;let b,_;function E(e){var t,r,i;if(e)return n.cloneElement(e,{key:e.key||`key-${(null===(t=e.type)||void 0===t||null===(r=t.render)||void 0===r?void 0:r.displayName)||(null===(i=e.type)||void 0===i?void 0:i.displayName)}`,slot:"icon"})}c.env.EXCLUDE_SWC||(b=new a.t(["sp-action-button"],v(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(6526),r.e(1692),r.e(4400)]).then(r.bind(r,47));case 2:return t=e.sent,n=t.ActionButton,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))),_=new a.t(["sp-button"],v(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(6526),r.e(2935),r.e(5502)]).then(r.bind(r,64366));case 2:return t=e.sent,n=t.Button,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const w=(0,o.Z)({displayName:"Button",fallback:y,swcLoader:_,swcProps:e=>{const t=E(e.icon),r=e.autoFocus,n=e.className,o=e.children,a=e.disabled,s=e.holdAffordance,c=e.pending,u=e.quiet,d=e.variant,h=(e.dropdownTrigger,e.icon,e.label),m=(e.uxpUseNative,e.treatment),g=(e.selected,f(e,l)),v=(0,i.cd)({autofocus:r,disabled:a,"hold-affordance":s,pending:c,quiet:u}),y=function(e,t){switch(e){case"accent":case"cta":return{variant:"accent",treatment:t||"fill"};case"primary":case"secondary":return{variant:e,treatment:t||"outline"};case"warning":return{variant:"negative",treatment:t||"outline"};case"overBackground":return{static:"white",treatment:t||"outline"};case"action":case"tool":case"and":case"or":return{};case void 0:return{variant:"primary",treatment:"outline"};default:return{variant:e}}}(d,m),b=h||("string"==typeof o?o:null);return p(p(p(p({},g),v),y),{},{children:[t,b,"string"!=typeof o&&o],class:n})},tagName:"sp-button"}),x=(0,o.Z)({displayName:"ActionButton",fallback:y,swcLoader:b,swcProps:e=>{const t=e.autoFocus,r=e.children,n=e.className,o=e.disabled,a=e.holdAffordance,s=e.quiet,c=e.selected,l=e.variant,d=(e.dropdownTrigger,e.icon),h=e.label,m=(e.uxpUseNative,f(e,u)),g=E(d),v=function(e){return"tool"===e?{quiet:!0}:{}}(l),y=(0,i.cd)({autofocus:t,disabled:o,"hold-affordance":a,quiet:s,selected:c}),b=h||("string"==typeof r?r:null);return p(p(p(p({},m),y),v),{},{children:[g,b,"string"!=typeof r&&r],class:n})},tagName:"sp-action-button"}),L=(0,n.forwardRef)((function(e,t){return"action"===e.variant||"tool"===e.variant||"and"===e.variant||"or"===e.variant||"secondary"===e.variant&&e.quiet||"primary"===e.variant&&e.quiet?n.createElement(x,p(p({},e),{},{ref:t})):n.createElement(w,p(p({},e),{},{ref:t}))}))},45236:(e,t,r)=>{"use strict";r.d(t,{Z:()=>x});var n=r(89526),i=r(30222),o=r(83377),a=r(28086),s=r(94859),c=r(82530);const l=["className","orientation"],u=["className","value","multiple","orientation","onChange"];function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function m(){m=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(O([])));v&&v!==t&&r.call(v,i)&&(f=v);var y=h.prototype=d.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=h,s(y,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function g(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function v(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){g(o,n,i,a,s,"next",e)}function s(e){g(o,n,i,a,s,"throw",e)}a(void 0)}))}}const y=(0,s.Z)(r(74911)).default;let b,_;c.env.EXCLUDE_SWC||(b=new a.t(["sp-button-group"],v(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(4051)]).then(r.bind(r,27069));case 2:return t=e.sent,n=t.ButtonGroup,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))),_=new a.t(["sp-action-group"],v(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(1255)]).then(r.bind(r,62938));case 2:return t=e.sent,n=t.ActionGroup,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const E=(0,o.Z)({displayName:"ButtonGroup",fallback:y,swcLoader:b,swcProps:e=>{const t=e.className,r=e.orientation,n=f(e,l),o="vertical"===r||void 0,a=i.ww?{variant:r,align:"center"}:{vertical:o};return p(p(p({},n),a),{},{class:t})},tagName:"sp-button-group"}),w=(0,o.Z)({displayName:"ActionGroup",fallback:y,swcLoader:_,SWCWrapper:function(e){const t=(0,n.useRef)(null),r=e.className,o=e.value,a=e.multiple,s=e.orientation,c=e.onChange,l=f(e,u),d="vertical"===s||void 0,h=a?"multiple":"single",m="multiple"===h?o:[o].flat(),g=i.ww?{variant:s,align:"center"}:p({vertical:d,selected:JSON.stringify(m)},h&&{selects:h});(0,n.useEffect)((()=>{const e=t.current,r=e=>{const t=e.target;null==c||c(t.selected)};return e&&c&&e.addEventListener("change",r),()=>{e&&c&&e.removeEventListener("change",r)}}),[c,o]);const v=(0,i.Co)("sp-action-group");return n.createElement(v,p(p(p(p({ref:t},l),g),(0,i.cd)({vertical:d})),{},{class:r}))},tagName:"sp-action-group"}),x=(0,n.forwardRef)((function(e,t){return e.onChange?n.createElement(w,p(p({},e),{},{ref:t})):n.createElement(E,p(p({},e),{},{ref:t}))}))},91489:(e,t,r)=>{"use strict";r.d(t,{v2:()=>j,R:()=>Z,kS:()=>G,FD:()=>B,sN:()=>F,bg:()=>U});var n=r(89526),i=r(30222),o=r(73961),a=r(28086),s=r(83377),c=r(94859),l=r(82530);const u=["children","className","contentStyle","enablePortaling","open","placement","title","trapFocus","isDialog","role","excludeDialog"];function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(){f=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(O([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=h,s(y,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function v(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const y=(0,c.Z)(r(50865)).default;let b;l.env.EXCLUDE_SWC||(b=new a.t(["sp-popover","sp-dialog"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){v(o,n,i,a,s,"next",e)}function s(e){v(o,n,i,a,s,"throw",e)}a(void 0)}))}}(f().mark((function e(){var t,n,i,o;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([Promise.all([r.e(1686),r.e(6222),r.e(5529)]).then(r.bind(r,74955)),Promise.all([r.e(1686),r.e(6526),r.e(2935),r.e(4306)]).then(r.bind(r,90467))]);case 2:return t=e.sent,n=m(t,2),i=n[0].Popover,o=n[1].Dialog,e.abrupt("return",[i,o]);case 7:case"end":return e.stop()}}),e)})))));const _=(0,s.Z)({displayName:"Popover",fallback:y,swcLoader:b,SWCWrapper:function(e){const t=e.children,r=e.className,a=e.contentStyle,s=void 0===a?{}:a,c=e.enablePortaling,l=void 0!==c&&c,d=e.open,h=e.placement,f=e.title,g=(e.trapFocus,e.isDialog,e.role,e.excludeDialog),v=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,u),y=[];f&&""!=f&&y.push(n.createElement("span",{slot:"heading"},f)),y.push(n.createElement("div",{key:"popover-children",style:s},t));const b=(0,n.useRef)(null),_=m((0,n.useState)(!1),2)[1];(0,n.useEffect)((()=>{l&&_(!0)}),[l]);let E=l?n.createElement("div",{ref:b}):y;const w=(0,i.Co)("sp-popover"),x=(0,i.Co)("sp-dialog");return g||(E=n.createElement(x,null,E)),n.createElement(n.Fragment,null,n.createElement(w,p(p(p({},v),(0,i.cd)({open:d,tip:!!h})),{},{class:r,placement:h}),E),l&&b.current&&(0,o.createPortal)(y,b.current))},tagName:"sp-popover"});var E=r(31910),w=r(82530);const x=["className","open","slot","style","onSelect","onClose"],L=["children","description","disabled","icon","selected","valueContent","className"],O=["className"],S=["children"],T=["label","children"],P=["className","children","header","onSelect"];function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function A(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?I(Object(r),!0).forEach((function(t){C(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function C(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function D(){D=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function N(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}const R=(0,c.Z)(r(12252));let M;w.env.EXCLUDE_SWC||(M=new a.t(["sp-menu","sp-menu-group","sp-menu-item","sp-menu-divider"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){N(o,n,i,a,s,"next",e)}function s(e){N(o,n,i,a,s,"throw",e)}a(void 0)}))}}(D().mark((function e(){var t,n,i,o,a;return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(6533),r.e(201)]).then(r.bind(r,25876));case 2:return t=e.sent,n=t.Menu,i=t.MenuGroup,o=t.MenuItem,a=t.MenuDivider,e.abrupt("return",[n,i,o,a]);case 8:case"end":return e.stop()}}),e)})))));const j=(0,s.Z)({displayName:"Menu",fallback:R.Menu,swcLoader:M,SWCWrapper:(0,n.forwardRef)((function(e,t){const r=(0,n.useRef)(null),o=t||r,a=e.className,s=e.open,c=e.slot,l=e.style,u=e.onSelect,d=e.onClose,p=k(e,x);(0,n.useEffect)((()=>{const e=o.current,t=e=>{const t=e.target;null==u||u(t.value)};return e&&u&&e.addEventListener("change",t),()=>{e&&u&&e.removeEventListener("change",t)}}),[u,o]),(0,n.useEffect)((()=>{const e=o.current;return e&&d&&e.addEventListener("close",d),()=>{e&&d&&e.removeEventListener("close",d)}}),[d,o]);const h=(0,i.Co)("sp-menu");return n.createElement(_,{open:s,title:"",style:A({minWidth:"min-content",padding:0},l),slot:c,excludeDialog:!0},n.createElement(h,A({ref:o,class:a},p)))})),tagName:"sp-menu"}),F=(0,s.Z)({displayName:"MenuItem",fallback:R.MenuItem,swcLoader:M,swcProps:function(e){const t=e.children,r=e.description,o=e.disabled,a=e.icon,s=e.selected,c=e.valueContent,l=e.className,u=k(e,L),d=function(e){if(e)return n.cloneElement(e,{slot:"icon"})}(a),p=function(e){if(e)return n.cloneElement(e,{slot:"value"})}(c);return A(A(A({class:l},u),(0,i.cd)({disabled:o,selected:s})),{},{children:n.createElement(n.Fragment,null,d,t,r&&n.createElement("span",{slot:"description"},r),p)})},tagName:"sp-menu-item"}),Z=(0,s.Z)({displayName:"MenuDivider",fallback:R.MenuDivider,swcLoader:M,swcProps:function(e){return A({class:e.className},k(e,O))},tagName:"sp-menu-divider"}),B=(0,s.Z)({displayName:"MenuHeading",fallback:R.MenuHeading,swcLoader:M,swcProps:function(e){const t=e.children;return A(A({},k(e,S)),{},{children:n.createElement("span",{slot:"header"},t)})},tagName:"sp-menu-group"}),G=((0,s.Z)({displayName:"SubMenu",fallback:R.SubMenu,swcLoader:M,SWCWrapper:function(e){const t=e.label,r=e.children,o=k(e,T),a=(0,i.Co)("sp-menu"),s=(0,i.Co)("sp-menu-item");return n.createElement(s,A({},o),t,n.createElement(a,{slot:"submenu"},r))},tagName:"sp-menu-item"}),(0,s.Z)({displayName:"MenuGroup",fallback:void 0,swcLoader:M,SWCWrapper:(0,n.forwardRef)((function(e,t){const r=(0,n.useRef)(null),o=e.className,a=e.children,s=e.header,c=e.onSelect,l=k(e,P);(0,n.useEffect)((()=>{const e=r.current,t=e=>{const t=e.target;null==c||c(t.value)};return e&&c&&e.addEventListener("change",t),()=>{e&&c&&e.removeEventListener("change",t)}}),[c,r]);const u=(0,i.Co)("sp-menu-group");return n.createElement(u,A({ref:(0,E.Z)([t,r]),class:o},l),s&&n.createElement("span",{slot:"header"},s),a)})),tagName:"sp-menu-group"})),U=M},98675:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n=r(30222),i=r(83377),o=r(28086),a=r(82530);const s=["className","disabled"];function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(){d=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function h(){}function f(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(O([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=f,s(y,"constructor",f),s(f,"constructor",h),h.displayName=s(f,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function p(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}let h;a.env.EXCLUDE_SWC||(h=new o.t(["sp-status-light"],function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){p(o,n,i,a,s,"next",e)}function s(e){p(o,n,i,a,s,"throw",e)}a(void 0)}))}}(d().mark((function e(){var t,n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(1686),r.e(8849)]).then(r.bind(r,35615));case 2:return t=e.sent,n=t.StatusLight,e.abrupt("return",[n]);case 5:case"end":return e.stop()}}),e)})))));const f=(0,i.Z)({displayName:"StatusLight",fallback:void 0,swcLoader:h,swcProps:e=>{const t=e.className,r=e.disabled;return l(l(l({},function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,s)),(0,n.cd)({disabled:r})),{},{class:t})},tagName:"sp-status-light"})},70040:(e,t,r)=>{"use strict";r.d(t,{I:()=>i}),r(54071);const n=[];function i(e){n.push(e)}},28086:(e,t,r)=>{"use strict";r.d(t,{t:()=>s});var n=r(74052);function i(){i=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function f(){}var m={};c(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(O([])));v&&v!==t&&r.call(v,o)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=f,c(y,"constructor",f),c(f,"constructor",h),h.displayName=c(f,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),c(y,s,"Generator"),c(y,o,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function o(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function a(e,t){try{customElements.get(e)||customElements.define(e,t)}catch(r){class n extends t{}customElements.define(e,n)}}class s{constructor(e,t,r=[]){this.tags=void 0,this._dependencies=void 0,this._load=void 0,this._loadMemo=void 0,this.tags=e,this._dependencies=r,this._load=t}load(e){var t,r=this;return(t=i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r._loadMemo){t.next=2;break}return t.abrupt("return",r._loadMemo);case 2:return t.next=4,Promise.all(r._dependencies.map((t=>t.load(e))));case 4:return r._loadMemo=r._load(e).then((e=>e.forEach(((e,t)=>a((0,n.fallbackTagName)(r.tags[t]),e))))),t.abrupt("return",r._loadMemo);case 6:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(e){o(a,n,i,s,c,"next",e)}function c(e){o(a,n,i,s,c,"throw",e)}s(void 0)}))})()}}},54071:(e,t,r)=>{"use strict";r.d(t,{N:()=>o,V:()=>i});var n=r(89526);const i=({scale:e,spectrumTheme:t,theme:r,typekitId:n}={})=>({scale:e||"medium",spectrumTheme:t||"spectrum",theme:r||"light",typekitId:n||"ruf7eed"}),o=n.createContext(i())},83377:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(89526),i=r(30222),o=r(70040);const a=["fallback","forceFallback"];function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){(0,o.I)(e.loadSwc||(t=>(0,i.A2)(e.tagName,t,e.swcLoader)));const t=(t,r)=>{const o=(0,i.Lo)(e.tagName,e.swcLoader),s=o.needsFallback,l=o.tagName,u=t.fallback,d=t.forceFallback,p=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,a);if(s||d){const t=e.fallback;if(u)return n.createElement(n.Fragment,null,u);if(t)return n.createElement(t,c(c({},p),{},{ref:r}))}if(e.SWCWrapper)return n.createElement(e.SWCWrapper,c(c({},t),{},{ref:r}));const h=c(c({},e.swcProps(t)),{},{ref:r}),f=l;return n.createElement(f,c({},h))};return t.displayName=e.displayName,(0,n.forwardRef)(t)}},30222:(e,t,r)=>{"use strict";r.d(t,{Yn:()=>O,Vc:()=>b,cd:()=>L,ww:()=>f,A2:()=>_,Co:()=>w,Lo:()=>x});var n=r(89526),i=r(93286),o=r.n(i),a=r(74052),s=r(54071),c=r(82530);const l=function(){return window.__disable_swc__||window.__SPECTRUM_WRAPPER_STORYBOOK_FORCE_RS2__&&void 0!==c&&c.env.STORYBOOK};var u=r(82530);function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}let h=!1;try{h=!!window.require("uxp")}catch(e){}const f=h,m=!u.env.EXCLUDE_SWC&&!window.__disable_swc__&&(!f||u.env.USE_SWC_FOR_UXP),g=new Map;function v(e){var t;const r=g.get(e);if(void 0!==r)return r;let n=null===(t=window.customElements)||void 0===t?void 0:t.get(e);var i;return!n&&f&&m&&(n=null===(i=document.createElement(e))||void 0===i?void 0:i.constructor),g.set(e,n),n}function y(e){const t=v(e);return!!t&&t!==HTMLElement}function b(e){if(!m)return!1;if(!y(e))return!0;const t=v(e);return!t||!t.VERSION||!o()(t.VERSION,"^0.47.0")}const _=(e,t,r)=>b(e)&&(null==r?void 0:r.load(t))||Promise.resolve();function E(e){return(0,n.useMemo)((()=>b(e)),[e])}function w(e){return E(e)?(0,a.fallbackTagName)(e):e}function x(e,t){const r=E(e),i=(0,n.useMemo)((()=>y((0,a.fallbackTagName)(e))),[e]),o=d((0,n.useState)(!1),2)[1],c=(0,n.useRef)(!0),u=(0,n.useContext)(s.N);(0,n.useEffect)((()=>{if(c.current=!1,r&&!i)return null==t||t.load(u).then((()=>{c.current||o(!0)}),(t=>console.error(`Error loading fallback for ${e}`,t))),()=>{c.current=!0}}),[u,e,t,r,i]);const p=l(),h=w(e);return{needsFallback:!y(h)||!!p,tagName:h}}function L(e){const t={};return Object.keys(e).forEach((r=>{e[r]&&(t[r]=e[r])})),t}function O(e){return new Promise((t=>{if(window.Typekit)t(null);else{var r;const n={kitId:e,scriptTimeout:3e3},i=setTimeout((()=>{t(null)}),n.scriptTimeout),o=document.createElement("script");let a=!1;o.src=`https://use.typekit.net/${n.kitId}.js`,o.type="text/javascript",o.async=!0,o.onload=function(){if(a)t(null);else{a=!0,clearTimeout(i);try{window.Typekit.load(n)}catch(e){}t(null)}};const s=document.getElementsByTagName("script")[0];null==s||null===(r=s.parentNode)||void 0===r||r.insertBefore(o,s)}}))}},94859:(e,t,r)=>{"use strict";function n(e){return null!=e&&e.__esModule?e:{default:e}}r.d(t,{Z:()=>n})},31910:(e,t,r)=>{"use strict";function n(e){return function(t){e.forEach((e=>{e&&("function"!=typeof e?e.current=t:e(t))}))}}r.d(t,{Z:()=>n})},21876:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=void 0},96195:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("Button",(()=>r(51568)),(()=>r(71864)))},71864:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=r(51884),s=v(r(64403)),c=r(44800),l=v(r(36065)),u=v(r(98681)),d=v(r(40743)),p=g(r(52743)),h=v(r(2652)),f=g(r(89526));function m(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return m=function(){return e},e}function g(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=m();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}function v(e){return e&&e.__esModule?e:{default:e}}function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y.apply(this,arguments)}r(14417),r(33639),r(50388),r(86001),r(48849),r(76785);const b={quiet:{variant:"primary",quiet:!0},minimal:{variant:"secondary",quiet:!0},icon:{variant:"action",quiet:!0}};let _=(0,l.default)(n=(0,p.default)((o=i=class extends f.Component{constructor(...e){var t;return t=super(...e),this.onClick=(e,...t)=>{this.props.disabled?e.preventDefault():this.props.onClick&&this.props.onClick(e,...t)},this.onKeyDownSpace=e=>{" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),this.buttonRef.click())},this.setButtonRef=e=>this.buttonRef=e,t}componentDidMount(){this.props.autoFocus&&requestAnimationFrame((()=>this.focus()))}focus(){this.buttonRef&&!this.props.disabled&&this.buttonRef.focus&&this.buttonRef.focus()}render(){let e=this.props,t=e.element,r=void 0===t?"button":t,n=e.label,i=e.children,o=e.variant,l=void 0===o?"secondary":o,h=e.logic,m=e.quiet,g=e.icon,v=e.selected,_=e.block,E=e.className,w=e.disabled,x=e.invalid,L=e.onMouseDown,O=e.onMouseUp,S=e.autoFocus,T=e.holdAffordance,P=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["element","label","children","variant","logic","quiet","icon","selected","block","className","disabled","invalid","onMouseDown","onMouseUp","autoFocus","holdAffordance"]);if(b[l]){let e=b[l],t=(e.quiet?"quiet ":"")+`"${e.variant}"`;console.warn(`The "${l}" variant of Button is deprecated. Please use the ${t} variant instead.`),l=e.variant,m=e.quiet}let I=!1,A="spectrum-Button";"action"===l||"toggle"===l?(A="spectrum-ActionButton",I=T,"toggle"===l&&(m=!0),l=""):h?A="spectrum-LogicButton":"clear"===l?(A="spectrum-ClearButton",l=""):"field"===l?(A="spectrum-FieldButton",l=""):"tool"===l&&(A="spectrum-Tool",I=T,l=""),"button"!==r&&(P.role="button",P.tabIndex=w?null:P.tabIndex||0,P["aria-disabled"]=w||null,"a"===r&&w&&P.href&&(P.href=null),P.onKeyDown=w?null:this.onKeyDownSpace);let C=n||("string"==typeof i?i:null),k=null;void 0!==P["aria-expanded"]?k=P["aria-expanded"]:P["aria-haspopup"]&&(k=v||null);const D="string"==typeof r?(0,d.default)(P):P;return f.default.createElement(r,y({},D,{className:(0,s.default)(A,m?`${A}--quiet`:"",l?`${A}--${l}`:"",{"is-selected":v,"is-disabled":w,"is-invalid":x,"spectrum-Button--block":_,[p.FOCUS_RING_CLASSNAME]:S},E),disabled:w,"aria-invalid":x||null,"aria-expanded":k,onClick:this.onClick,onMouseDown:(0,a.chain)(this.onMouseDown,a.focusAfterMouseEvent.bind(this,L)),onMouseUp:(0,a.chain)(this.onMouseUp,a.focusAfterMouseEvent.bind(this,O)),ref:this.setButtonRef}),(0,c.cloneIcon)(g,{size:"S"}),C&&f.default.createElement("span",{className:A+"-label"},C),I&&f.default.createElement(u.default,{role:"presentation",size:null,className:"spectrum-Tool-hold"}),"string"!=typeof i&&i)}},i.propTypes={variant:h.default.oneOf(["cta","primary","secondary","warning","action","toggle","and","or","icon","quiet","minimal","dropdown","clear","field","tool","overBackground"]),quiet:h.default.bool,logic:h.default.bool,disabled:h.default.bool,selected:h.default.bool,invalid:h.default.bool,icon:h.default.element,label:h.default.string,block:h.default.bool,element:h.default.oneOfType([h.default.string,h.default.func]),autoFocus:h.default.bool,onClick:h.default.func,holdAffordance:h.default.bool},i.defaultProps={autoFocus:!1,block:!1,disabled:!1,element:"button",invalid:!1,label:"",logic:!1,quiet:!1,selected:!1,variant:"secondary",holdAffordance:!1},n=o))||n)||n;t.default=_},51568:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(r(71864)),i=u(r(64403)),o=r(44800),a=u(r(98681)),s=u(r(40743)),c=r(52743),l=u(r(89526));function u(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}r(10419);const p={quiet:{variant:"primary",quiet:!0},minimal:{variant:"secondary",quiet:!0},icon:{variant:"action",quiet:!0}};class h extends n.default{constructor(...e){var t;return t=super(...e),this.onKeyDownSpace=e=>{if(this.props.overrideOnKeyDown&&this.onUxpKeyDown)return this.onUxpKeyDown(e);" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),this.buttonRef.click())},t}render(){let e=this.props,t=e.element,r=void 0===t?"button":t,n=e.label,u=e.children,h=e.variant,f=void 0===h?"secondary":h,m=e.logic,g=e.quiet,v=e.icon,y=e.selected,b=e.block,_=e.className,E=e.disabled,w=e.invalid,x=e.uxpUseNative,L=void 0===x||x,O=e.onMouseDown,S=e.onMouseUp,T=e.onPointerDown,P=e.onPointerUp,I=e.autoFocus,A=e.holdAffordance,C=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["element","label","children","variant","logic","quiet","icon","selected","block","className","disabled","invalid","uxpUseNative","onMouseDown","onMouseUp","onPointerDown","onPointerUp","autoFocus","holdAffordance"]);if(this.onUxpKeyDown=this.props.onKeyDown,null!=v)return super.render();if(u&&"string"!=typeof u||!L)return super.render();"span"===r&&(r="button");const k="button"===r;if(p[f]){let e=p[f],t=(e.quiet?"quiet ":"")+`"${e.variant}"`;console.warn(`The "${f}" variant of Button is deprecated. Please use the ${t} variant instead.`),f=e.variant,g=e.quiet}let D=!1,N="spectrum-Button";"action"===f||"toggle"===f?(N="spectrum-ActionButton",D=A,"toggle"===f&&(g=!0),f=""):m?N="spectrum-LogicButton":"clear"===f?(N="spectrum-ClearButton",f=""):"field"===f?(N="spectrum-FieldButton",f=""):"tool"===f&&(N="spectrum-Tool",D=A,f=""),k||(C.role="button",C.tabIndex=E?null:C.tabIndex||0,C["aria-disabled"]=E||null,"a"===r&&E&&C.href&&(C.href=null),C.onKeyDown=E?null:this.onKeyDownSpace);let R=n||("string"==typeof u?u:null),M=null;void 0!==C["aria-expanded"]?M=C["aria-expanded"]:C["aria-haspopup"]&&(M=y||null);const j="string"==typeof r?(0,s.default)(C):C,F=y||!1;return l.default.createElement(r,d({},j,{"uxp-variant":f,"uxp-quiet":g.toString(),"uxp-selected":F.toString(),className:(0,i.default)(N,!k&&g?`${N}--quiet`:"",!k&&f?`${N}--${f}`:"",{"is-selected":!k&&y,"is-disabled":!k&&E,"is-invalid":w,"spectrum-Button--block":b,[c.FOCUS_RING_CLASSNAME]:I},_),disabled:E,"aria-invalid":w||null,"aria-expanded":M,onClick:this.onClick,onPointerDown:O||T,onPointerUp:S||P,ref:this.setButtonRef}),(0,o.cloneIcon)(v,{size:"S"}),R&&l.default.createElement("span",{className:N+"-label"},R),D&&l.default.createElement(a.default,{role:"presentation",size:null,className:"spectrum-Tool-hold"}),"string"!=typeof u&&u)}}t.default=h,h.defaultProps={autoFocus:!1,block:!1,disabled:!1,element:"span",invalid:!1,label:"",logic:!1,quiet:!1,selected:!1,variant:"secondary",holdAffordance:!1}},74911:(e,t,r)=>{"use strict";e.exports=r(94065)},94065:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=h(r(64403)),s=h(r(36065)),c=h(r(40743)),l=h(r(75870)),u=h(r(2652)),d=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}(r(89526));function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function h(e){return e&&e.__esModule?e:{default:e}}function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}r(84536);const m={tool:!0,action:!0};let g=(0,s.default)((o=i=class extends d.Component{constructor(e){super(e),this.state={value:e.value}}UNSAFE_componentWillReceiveProps(e){e.value&&e.value!==this.state.value&&this.setState({value:e.value})}addSelection(e){return[...this.state.value||[],e.value]}removeSelection(e){let t=this.state.value||[];const r=t.indexOf(e.value);return[...t.slice(0,r),...t.slice(r+1,t.length)]}handleSelect(e,t){if(!this.props.readOnly&&!e.readOnly){let r;r=this.props.multiple?this.isSelected(e)?this.removeSelection(e):this.addSelection(e):e.value,"value"in this.props||this.setState({value:r}),this.props.onChange&&this.props.onChange(r,t)}e.onClick&&e.onClick(t),this.props.onClick&&this.props.onClick(e.value,t)}isSelected(e){return this.props.readOnly?null:this.props.multiple?this.state.value&&this.state.value.indexOf(e.value)>=0:this.state.value===e.value}getChildRole(){return this.props.readOnly?null:this.props.multiple?"checkbox":"radio"}getChildProps(e,t){const r=this.props.invalid||e.props.invalid,n=this.props.required||e.props.required,i=this.props.disabled||e.props.disabled,o=this.isSelected(e.props),s=this.getChildRole(),c=i?null:this.handleSelect.bind(this,e.props),l=m[e.props.variant];return{className:(0,a.default)("spectrum-ButtonGroup-item",e.props.className),selected:o,disabled:i,variant:l?e.props.variant:"action",quiet:!l||e.props.quiet,onClick:c,onKeyDown:e.props.onKeyDown,role:s,"aria-checked":o,"aria-invalid":r,"aria-required":n}}renderButtons(){const e=this.props.children;return d.default.Children.map(e,((e,t)=>e?d.default.cloneElement(e,this.getChildProps(e,t)):null))}render(){let e=this.props,t=e.children,r=void 0===t?[]:t,n=e.className,i=e.multiple,o=e.disabled,s=e.readOnly,u=e.invalid,p=e.required,h=e.orientation,m=e.manageTabIndex,g=e.role,v=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["children","className","multiple","disabled","readOnly","invalid","required","orientation","manageTabIndex","role"]);return delete v.onChange,delete v.onClick,g||(s||i?(s||r.length>2)&&(g=s&&r.length>2?"toolbar":"group"):g="radiogroup"),d.default.createElement(l.default,{itemSelector:".spectrum-ButtonGroup-item:not([disabled]):not([aria-disabled])",selectedItemSelector:".spectrum-ButtonGroup-item:not([disabled]):not([aria-disabled])[aria-checked=true].is-selected",orientation:"toolbar"===g?h:"both",manageTabIndex:m},d.default.createElement("div",f({"aria-invalid":u||null,"aria-required":p||null,"aria-disabled":o||null,"aria-orientation":"both"!==h&&"toolbar"===g?h:null,role:g},(0,c.default)(v),{className:(0,a.default)("spectrum-ButtonGroup",{"spectrum-ButtonGroup--vertical":"vertical"===h},n)}),this.renderButtons(r)))}},i.propTypes={disabled:u.default.bool,invalid:u.default.bool,manageTabIndex:u.default.bool,multiple:u.default.bool,readOnly:u.default.bool,required:u.default.bool,onChange:u.default.func,onClick:u.default.func,orientation:u.default.oneOf(["horizontal","vertical","both"]),value:u.default.oneOfType([u.default.string,u.default.arrayOf(u.default.string)])},i.defaultProps={disabled:!1,invalid:!1,manageTabIndex:!0,multiple:!1,readOnly:!1,required:!1,orientation:"both"},n=o))||n;t.default=g},20731:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Card",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"CardBody",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"CardCoverPhoto",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"CardFooter",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"CardPreview",{enumerable:!0,get:function(){return s.default}});var n=c(r(13462)),i=c(r(30957)),o=c(r(5348)),a=c(r(8050)),s=c(r(97995));function c(e){return e&&e.__esModule?e:{default:e}}},13462:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=f(r(68378)),s=f(r(77890)),c=f(r(64403)),l=f(r(40743)),u=r(3585),d=f(r(2652)),p=f(r(89526));function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}function f(e){return e&&e.__esModule?e:{default:e}}r(69533);const m={"cs-CZ":f(r(58400)).default,"da-DK":f(r(62064)).default,"de-DE":f(r(67580)).default,"en-US":f(r(265)).default,"es-ES":f(r(35737)).default,"fi-FI":f(r(45432)).default,"fr-FR":f(r(99846)).default,"hu-HU":f(r(55046)).default,"it-IT":f(r(14124)).default,"ja-JP":f(r(17169)).default,"ko-KR":f(r(2555)).default,"nb-NO":f(r(3934)).default,"nl-NL":f(r(51893)).default,"pl-PL":f(r(70598)).default,"pt-BR":f(r(90086)).default,"ru-RU":f(r(15335)).default,"sv-SE":f(r(12791)).default,"tr-TR":f(r(79977)).default,"uk-UA":f(r(62717)).default,"zh-CN":f(r(99451)).default,"zh-TW":f(r(76026)).default};r(59849),r(40612),r(83973),r(82550),r(84493),r(24130),r(34673),r(78743),r(16032),r(67869);const g=(0,u.messageFormatter)(m);let v=(0,a.default)((o=i=class extends p.default.Component{getChildContext(){let e=this.props.actionMenu;"S"===this.props.size&&(e=null);let t=p.default.Children.toArray(this.props.children).find((e=>"CardBody"===e.type.displayName)),r=Boolean(t&&t.props.title);return{cardVariant:this.props.variant,cardSize:this.props.size,actionMenu:e,onLoad:this.props.onLoad,hasTitle:r}}handleCheckboxClick(e){this.props.onSelectionChange&&e.stopPropagation()}render(){let e=this.props,t=e.variant,r=e.size,n=e.selected,i=e.allowsSelection,o=e.isDropTarget,a=e.quickActions,u=e.actionMenu,d=e.children,f=e.className,m=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["variant","size","selected","allowsSelection","isDropTarget","quickActions","actionMenu","children","className"]);"standard"===t&&"S"===r&&(r="L");let v=null;if(i&&(v=p.default.createElement("div",{className:(0,c.default)("spectrum-QuickActions","spectrum-Card-quickActions")},p.default.createElement(s.default,{onChange:this.props.onSelectionChange,onClick:this.handleCheckboxClick,checked:n,title:g("select")}))),a&&u)throw new Error("Either quick actions or an action button can be passed to Card, not both.");"S"===r&&u&&(a=p.default.createElement("div",{className:"spectrum-QuickActions spectrum-Card-actions"},u));let y=(0,c.default)("spectrum-Card",`spectrum-Card--${t}`,{"spectrum-Card--large":"L"===r,"spectrum-Card--small":"S"===r,"is-selected":n,"is-drop-target":o},f);return p.default.createElement("div",h({},(0,l.default)(m),{className:y}),d,v,a)}},i.propTypes={variant:d.default.oneOf(["standard","quiet","gallery"]),size:d.default.oneOf(["S","L"]),allowsSelection:d.default.bool,selected:d.default.bool,onSelectionChange:d.default.func,isDropTarget:d.default.bool,quickActions:d.default.element,actionMenu:d.default.element},i.defaultProps={variant:"standard",size:"L",selected:!1,allowsSelection:!0},i.childContextTypes={cardVariant:d.default.string,cardSize:d.default.string,actionMenu:d.default.element,onLoad:d.default.func,hasTitle:d.default.bool},n=o))||n;t.default=v},30957:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(2652)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}class a extends i.default.Component{render(){let e=this.props,t=e.title,r=e.subtitle,n=e.description,o=e.children,a=this.context,s=a.cardVariant,c=a.actionMenu,l=r?i.default.createElement("div",{className:"spectrum-Card-subtitle"},r):null,u=n?i.default.createElement("div",{className:"spectrum-Card-description"},n):null;return i.default.createElement("div",{className:"spectrum-Card-body"},t||c?i.default.createElement("div",{className:"spectrum-Card-header"},t?i.default.createElement("div",{className:"spectrum-Card-title"},t):null,"gallery"===s&&l,"gallery"===s&&u,c?i.default.createElement("div",{className:"spectrum-Card-actionButton"},i.default.cloneElement(c,{alignRight:!0})):null):null,"gallery"!==s&&(r||n)?i.default.createElement("div",{className:"spectrum-Card-content"},l,u):null,o)}}t.default=a,a.displayName="CardBody",a.propTypes={title:n.default.string,subtitle:n.default.string,description:n.default.string},a.contextTypes={cardVariant:n.default.string,actionMenu:n.default.element}},5348:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(2652)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}class a extends i.default.Component{render(){let e=this.props,t=e.src,r=e.children;return i.default.createElement("div",{className:"spectrum-Card-coverPhoto",style:{backgroundImage:`url(${JSON.stringify(t)})`}},r)}}t.default=a,a.propTypes={src:n.default.string}},8050:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(89526))&&n.__esModule?n:{default:n};class o extends i.default.Component{render(){return i.default.createElement("div",{className:"spectrum-Card-footer"},this.props.children)}}t.default=o},97995:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(2652)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}class a extends i.default.Component{render(){let e=i.default.Children.only(this.props.children),t=this.context,r=t.cardVariant,n=t.onLoad,o=0;"quiet"===r&&(o=1);let a=t.hasTitle;return null==e.props.decorative&&null==e.props.alt||(a=e.props.decorative),i.default.createElement("div",{className:"spectrum-Card-preview"},i.default.cloneElement(e,{smartness:o,onLoad:n,decorative:a}))}}t.default=a,a.contextTypes={cardVariant:n.default.string,onLoad:n.default.func,hasTitle:n.default.bool}},82701:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("Checkbox",(()=>r(8077)),(()=>r(77890)))},77890:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(r(41628)),i=u(r(64403)),o=u(r(54857)),a=u(r(2652)),s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}(r(89526)),c=u(r(61382));function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}r(13286),r(40735),r(16088),r(66557),r(49135);class p extends s.Component{componentDidMount(){this.setIndeterminate()}componentDidUpdate(){this.setIndeterminate()}setIndeterminate(){const e=this.props.indeterminate,t=this.inputRef&&this.inputRef.getInput();null!=e&&t&&(t.indeterminate=e)}render(){const e=this.props,t=e.indeterminate,r=e.quiet,a=e.className,l=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["indeterminate","quiet","className"]);t&&(l["aria-checked"]="mixed");let u=t?s.default.createElement(o.default,{size:null,className:"spectrum-Checkbox-partialCheckmark"}):s.default.createElement(n.default,{size:null,className:"spectrum-Checkbox-checkmark"});return s.default.createElement(c.default,d({ref:e=>this.inputRef=e,inputType:"checkbox",className:(0,i.default)("spectrum-Checkbox",{"is-indeterminate":t,"spectrum-Checkbox--quiet":r},a),inputClassName:"spectrum-Checkbox-input",markClassName:"spectrum-Checkbox-box",markIcon:u,labelClassName:"spectrum-Checkbox-label"},l))}}t.default=p,p.propTypes={label:a.default.string,renderLabel:a.default.bool,defaultChecked:a.default.bool,disabled:a.default.bool,required:a.default.bool,invalid:a.default.bool,readOnly:a.default.bool,onChange:a.default.func,indeterminate:a.default.bool,quiet:a.default.bool},p.defaultProps={renderLabel:!0,defaultChecked:void 0,disabled:!1,required:!1,invalid:!1,readOnly:!1,onChange:function(){},indeterminate:!1,quiet:!1},p.displayName="Checkbox"},8077:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=l(r(77890)),s=l(r(36065)),c=l(r(89526));function l(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}const d={display:"flex",flexDirection:"row",alignItems:"center",marginTop:"3px",marginBottom:"3px",height:"18px"},p={marginLeft:"8px"},h={width:"18px"};let f=(0,s.default)((i=class extends a.default{constructor(e){super(e),o.call(this);const t=e.checked,r=e.defaultChecked;this.state={checked:void 0!==t?t:r||!1}}UNSAFE_componentWillReceiveProps(e){"checked"in e&&this.setState({checked:e.checked})}setChecked(e){"checked"in this.props||this.setState({checked:e})}setIndeterminate(){const e=this.props.indeterminate,t=this.inputRef;null!=e&&t&&(t.indeterminate=e)}render(){const e=this.props,t=e.label,r=e.className,n=e.children,i=e.style,o=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["label","className","children","style"]);delete o.renderLabel;let a=t||("string"==typeof n?n:null);const s=this.state.checked;return c.default.createElement("label",{style:Object.assign({},d,i)},c.default.createElement("input",u({style:h,ref:e=>this.inputRef=e},o,{type:"checkbox",checked:s,onChange:this.handleChange,className:r})),a&&a.length>0&&c.default.createElement("span",{style:p},a))}},o=function(){this.handleChange=e=>{const t=this.props.onChange,r=e.target.checked;this.setChecked(r),t&&t(r,e)}},n=i))||n;t.default=f},89910:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("Dialog",(()=>r(36930)),(()=>r(24783)))},24783:(e,t,r)=>{"use strict";function n(){n=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new L(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function f(){}var m={};c(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(O([])));v&&v!==t&&r.call(v,o)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function O(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=f,c(y,"constructor",f),c(f,"constructor",h),h.displayName=c(f,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new _(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),c(y,s,"Generator"),c(y,o,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,a,s=g(r(68378)),c=g(r(64403)),l=g(r(99870)),u=g(r(59286)),d=g(r(71547)),p=g(r(2652)),h=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=m();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}(r(89526)),f=r(75870);function m(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return m=function(){return e},e}function g(e){return e&&e.__esModule?e:{default:e}}function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(this,arguments)}function y(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}r(12076),r(76172),r(30954),r(92708),r(43319);let b=(0,s.default)((a=o=class extends h.Component{constructor(e){super(e),this.dialogId=(0,l.default)()}_onAction(e,...t){var r,i=this;return(r=n().mark((function r(){var o;return n().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=!0,!e){r.next=5;break}return r.next=4,e(...t);case 4:o=r.sent;case 5:!1!==o&&i.props.onClose();case 6:case"end":return r.stop()}}),r)})),function(){var e=this,t=arguments;return new Promise((function(n,i){var o=r.apply(e,t);function a(e){y(o,n,i,a,s,"next",e)}function s(e){y(o,n,i,a,s,"throw",e)}a(void 0)}))})()}onConfirm(...e){this._onAction(this.props.onConfirm,...e)}onCancel(){this._onAction(this.props.onCancel)}onFocus(e){this.props.onFocus&&this.props.onFocus(e)}onKeyDown(e){const t=this.props,r=t.confirmDisabled,n=t.keyboardConfirm,i=t.onKeyDown,o=t.disableEscKey;if(!(i&&(i(e),e.isPropagationStopped&&e.isPropagationStopped())))switch(e.key){case"Enter":!r&&n&&this.onConfirm();break;case"Esc":case"Escape":o||this.onCancel();break;default:this.props.trapFocus&&(0,f.trapFocus)(this,e)}}render(){const e=this.props,t=e.children,r=e.className,n=void 0===r?"":r,i=e.cancelLabel,o=e.confirmLabel,a=e.secondaryLabel,s=e.open,l=e.title,p=e.variant,f=e.mode,m=e.role,g=e.tabIndex,y=e.trapFocus,b=e.isDismissible,_=e.id,E=void 0===_?this.dialogId:_,w=e["aria-label"],x=e["aria-labelledby"],L=e["aria-describedby"],O=e["aria-modal"],S=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["children","className","cancelLabel","confirmLabel","secondaryLabel","open","title","variant","mode","role","tabIndex","trapFocus","isDismissible","id","aria-label","aria-labelledby","aria-describedby","aria-modal"]),T="fullscreen"===f||"fullscreenTakeover"===f,P=p||(i&&o?"confirmation":"information");return delete S.modalContent,delete S.disableEscKey,h.default.createElement("div",{className:(0,c.default)("spectrum-Dialog","react-spectrum-Dialog",{[`spectrum-Dialog--${f}`]:f,"spectrum-Dialog--error":"error"===p,"is-open":s,"spectrum-Dialog--dismissible":b},n),role:m,tabIndex:void 0===g||y?1:g,onFocus:this.onFocus,onKeyDown:this.onKeyDown,id:E,"aria-label":w,"aria-labelledby":x||(l&&!w?`${E}-heading`:null),"aria-describedby":L||(l&&t?`${E}-content`:null),"aria-modal":O||y},l&&h.default.createElement(d.default,v({variant:P,title:l,fullscreen:T,confirmLabel:o,secondaryLabel:a,cancelLabel:i,isDismissible:b,id:`${E}-heading`},S,{onConfirm:this.onConfirm,onCancel:this.onCancel})),l?h.default.createElement("div",{className:"spectrum-Dialog-content",id:`${E}-content`},t):t,!b&&!T&&o&&h.default.createElement(u.default,v({},this.props,{variant:P,className:"spectrum-Dialog-footer",onConfirm:this.onConfirm,onCancel:this.onCancel})))}},o.propTypes={backdropClickable:p.default.bool,cancelLabel:p.default.string,className:p.default.string,confirmDisabled:p.default.bool,confirmLabel:p.default.string,secondaryLabel:p.default.string,onClose:p.default.func,onCancel:p.default.func,onConfirm:p.default.func,open:p.default.bool,title:p.default.node,variant:p.default.oneOf(["confirmation","information","destructive","error"]),mode:p.default.oneOf(["alert","fullscreen","fullscreenTakeover"]),role:p.default.oneOf(["dialog","alertdialog"]),autoFocusButton:p.default.oneOf(["cancel","confirm","secondary",null]),keyboardConfirm:p.default.bool,trapFocus:p.default.bool,disableEscKey:p.default.bool,isDismissible:p.default.bool},o.defaultProps={backdropClickable:!1,confirmDisabled:!1,keyboardConfirm:!1,open:!0,role:"dialog",autoFocusButton:null,onClose:function(){},trapFocus:!0,disableEscKey:!1,isDismissible:!1},i=a))||i;t.default=b},59286:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({autoFocusButton:e,confirmLabel:t,secondaryLabel:r,cancelLabel:a,confirmDisabled:c,onConfirm:l,onCancel:u,className:d,variant:p}){const h=s[p]||"primary";let f=e=>{" "!==e.key&&"Enter"!==e.key||e.stopPropagation()};return o.default.createElement("div",{className:(0,i.default)("react-spectrum-Dialog-buttons",d)},a&&o.default.createElement(n.default,{variant:"secondary",label:a,onClick:u,autoFocus:"cancel"===e,onKeyDown:f,uxpUseNative:!1}),r&&o.default.createElement(n.default,{variant:"secondary",label:r,onClick:l?l.bind(null,"secondary"):null,autoFocus:"secondary"===e,disabled:c||null,onKeyDown:f,uxpUseNative:!1}),t&&o.default.createElement(n.default,{variant:h,label:t,onClick:l?l.bind(null,"primary"):null,autoFocus:"confirm"===e,disabled:c||null,onKeyDown:f,uxpUseNative:!1}))};var n=a(r(96195)),i=a(r(64403)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}r(40506);const s={confirmation:"cta",information:"primary",error:"primary",destructive:"warning"}},71547:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=e.title,r=e.variant,n=e.fullscreen,d=e.confirmDisabled,f=e.confirmLabel,m=e.secondaryLabel,g=e.cancelLabel,v=e.onConfirm,y=e.onCancel,b=e.onClose,_=e.className,E=e.autoFocusButton,w=e.id,x=e.isDismissible,L=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["title","variant","fullscreen","confirmDisabled","confirmLabel","secondaryLabel","cancelLabel","onConfirm","onCancel","onClose","className","autoFocusButton","id","isDismissible"]),O=h[r];return u.default.createElement("div",p({},(0,c.default)(L),{className:(0,o.default)("spectrum-Dialog-header",`spectrum-Dialog-header--${r}`,_)}),u.default.createElement(l.default,{size:3,className:"spectrum-Dialog-title",id:w},t),O&&u.default.createElement(O,{size:null,className:"spectrum-Dialog-typeIcon"}),x&&!n&&u.default.createElement(i.default,{className:"spectrum-Dialog-closeButton",variant:"action",onClick:b,quiet:!0,icon:u.default.createElement(a.default,{size:"L"})}),n&&f&&u.default.createElement(s.default,{autoFocusButton:E,variant:r,cancelLabel:g,secondaryLabel:m,confirmLabel:f,confirmDisabled:d,onConfirm:v,onCancel:y}))};var n=d(r(77487)),i=d(r(96195)),o=d(r(64403)),a=d(r(95318)),s=d(r(59286)),c=d(r(40743)),l=d(r(45079)),u=d(r(89526));function d(e){return e&&e.__esModule?e:{default:e}}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}const h={error:n.default}},36930:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(r(89526)),i=s(r(26172)),o=s(r(14515)),a=s(r(58648));function s(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}var l=n.default.forwardRef(((e,t)=>a.default.productNeedsOverlayFix&&e&&!0===e.isNative?n.default.createElement(i.default,c({},e,{ref:t})):n.default.createElement(o.default,c({},e,{ref:t}))));t.default=l},77889:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({autoFocusButton:e,confirmLabel:t,secondaryLabel:r,cancelLabel:a,confirmDisabled:c,onConfirm:l,onCancel:u,className:d,variant:p}){const h=s[p]||"primary";let f=e=>{" "!==e.key&&"Enter"!==e.key||e.stopPropagation()};return o.default.createElement("div",{className:(0,i.default)("react-spectrum-Dialog-buttons",d)},a&&o.default.createElement(n.default,{className:"dialog-buttons-Override",variant:"secondary",label:a,onClick:u,autoFocus:"cancel"===e,onKeyDown:f,uxpUseNative:!1}),r&&o.default.createElement(n.default,{className:"dialog-buttons-Override",variant:"secondary",label:r,onClick:l?l.bind(null,"secondary"):null,autoFocus:"secondary"===e,disabled:c||null,onKeyDown:f,uxpUseNative:!1}),t&&o.default.createElement(n.default,{className:"dialog-buttons-Override",variant:h,label:t,onClick:l?l.bind(null,"primary"):null,autoFocus:"confirm"===e,disabled:c||null,onKeyDown:f,uxpUseNative:!1}))};var n=a(r(96195)),i=a(r(64403)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}r(40506),r(13851);const s={confirmation:"cta",information:"primary",error:"primary",destructive:"warning"}},89893:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=e.children,r=void 0===t?[]:t,n=e.title,d=e.variant,f=e.fullscreen,m=e.confirmDisabled,g=e.confirmLabel,v=(e.secondaryLabel,e.cancelLabel),y=e.onConfirm,b=e.onCancel,_=e.onClose,E=e.className,w=e.autoFocusButton,x=e.id,L=e.isDismissible,O=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["children","title","variant","fullscreen","confirmDisabled","confirmLabel","secondaryLabel","cancelLabel","onConfirm","onCancel","onClose","className","autoFocusButton","id","isDismissible"]),S=h[d];return l.default.createElement("div",p({},(0,s.default)(O),{className:(0,o.default)("spectrum-Dialog-header",`spectrum-Dialog-header--${d}`,"spectrum-Dialog-header-Override",E)}),l.default.createElement(c.default,{size:3,className:"spectrum-Dialog-title",id:x},n),S&&l.default.createElement(S,{size:null,className:"spectrum-Dialog-typeIcon"}),L&&!f&&l.default.createElement(i.default,{className:"spectrum-Dialog-closeButton",variant:"action",onClick:_,quiet:!0,icon:l.default.createElement(a.default,{size:"L"})}),f&&g&&l.default.createElement(u.default,{autoFocusButton:w,variant:d,cancelLabel:v,confirmLabel:g,confirmDisabled:m,onConfirm:y,onCancel:b}),r)};var n=d(r(77487)),i=d(r(96195)),o=d(r(64403)),a=d(r(95318)),s=d(r(40743)),c=d(r(45079)),l=d(r(89526)),u=d(r(77889));function d(e){return e&&e.__esModule?e:{default:e}}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}r(13851);const h={error:n.default}},26172:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=h(r(68378)),s=h(r(64403)),c=h(r(24783)),l=h(r(2652)),u=h(r(89526)),d=h(r(77889)),p=h(r(89893));function h(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},g.apply(this,arguments)}r(13851),r(12076),r(76172),r(30954),r(92708),r(43319);const v={width:"auto",height:"auto"},y={resize:"none",titleVisibility:"hide",size:v,maxSize:v,minSize:v};let b=(0,a.default)((o=i=class extends c.default{componentDidMount(){let e=null;const t=this.props.size;this.dialogElementRef&&(t&&t.width&&t.height&&(e={resize:"none",titleVisibility:"hide",size:t,maxSize:v,minSize:v}),this.dialogElementRef.showModal(e||y).then((()=>{}),(()=>{})),this.dialogElementRef.addEventListener("close",this.onDialogCloseEvent),this.dialogElementRef.addEventListener("cancel",this.onDialogCancelEvent),this.dialogElementRef.addEventListener("load",this.onDialogLoadEvent))}componentWillUnmount(){this.dialogElementRef&&(this.dialogElementRef.removeEventListener("close",this.onDialogCloseEvent),this.dialogElementRef.removeEventListener("cancel",this.onDialogCancelEvent),this.dialogElementRef.removeEventListener("load",this.onDialogLoadEvent))}onDialogCloseEvent(){this.dialogElementRef=null}onDialogCancelEvent(){this.dialogElementRef=null}onDialogLoadEvent(){this.props.onLoad&&this.props.onLoad()}onConfirm(...e){this._onAction(this.props.onConfirm,...e),this.closeDialog()}onCancel(){this._onAction(this.props.onCancel),this.closeDialog()}closeDialog(){this.dialogElementRef.close()}render(){const e=this.props,t=e.children,r=e.className,n=void 0===r?"":r,i=e.cancelLabel,o=e.confirmLabel,a=e.secondaryLabel,c=e.open,l=e.title,h=e.variant,f=e.mode,m=e.tabIndex,v=e.trapFocus,y=e.isDismissible,b=e.id,_=void 0===b?this.dialogId:b,E=e["aria-label"],w=e["aria-labelledby"],x=e["aria-describedby"],L=e["aria-modal"],O=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["children","className","cancelLabel","confirmLabel","secondaryLabel","open","title","variant","mode","tabIndex","trapFocus","isDismissible","id","aria-label","aria-labelledby","aria-describedby","aria-modal"]),S="fullscreen"===f||"fullscreenTakeover"===f,T=h||(i&&o?"confirmation":"information");return delete O.modalContent,delete O.disableEscKey,delete O.onLoad,u.default.createElement("dialog",{id:_,ref:e=>this.dialogElementRef=e,defaultpreventedkeys:["Escape"],onConfirm:this.onConfirm,onCancel:this.onCancel},u.default.createElement("div",{onFocus:this.onFocus,onKeyDown:this.onKeyDown,className:(0,s.default)("uxp-Native-Dialog","spectrum-Dialog","react-spectrum-Dialog",{[`spectrum-Dialog--${f}`]:f,"spectrum-Dialog--error":"error"===h,"is-open":c,"spectrum-Dialog--dismissible":y},"spectrum-Dialog-Override",n),tabIndex:void 0===m||v?1:m,"aria-label":E,"aria-labelledby":w||(l&&!E?`${_}-heading`:null),"aria-describedby":x||(l&&t?`${_}-content`:null),"aria-modal":L||v},l&&u.default.createElement(p.default,g({variant:T,title:l,fullscreen:S,confirmLabel:o,secondaryLabel:a,cancelLabel:i,isDismissible:y,id:`${_}-heading`},O),u.default.createElement("div",{className:"dialogSeparator"})),l?u.default.createElement("div",{className:"spectrum-Dialog-content",id:`${_}-content`},t):t,!y&&!S&&o&&u.default.createElement(d.default,g({},this.props,{variant:T,className:"spectrum-Dialog-footer",onConfirm:this.onConfirm,onCancel:this.onCancel}))))}},i.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},c.default.propTypes,{size:l.default.objectOf({width:l.default.number,height:l.default.number})}),n=o))||n;t.default=b},14515:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=u(r(68378)),o=u(r(64403)),a=u(r(24783)),s=u(r(89526)),c=u(r(77889)),l=u(r(89893));function u(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}r(13851),r(12076),r(76172),r(30954),r(92708),r(43319);let p=(0,i.default)(n=class extends a.default{render(){const e=this.props,t=e.children,r=e.className,n=void 0===r?"":r,i=e.cancelLabel,a=e.confirmLabel,u=e.secondaryLabel,p=e.open,h=e.title,f=e.variant,m=e.mode,g=e.role,v=e.tabIndex,y=e.trapFocus,b=e.isDismissible,_=e.id,E=void 0===_?this.dialogId:_,w=e["aria-label"],x=e["aria-labelledby"],L=e["aria-describedby"],O=e["aria-modal"],S=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["children","className","cancelLabel","confirmLabel","secondaryLabel","open","title","variant","mode","role","tabIndex","trapFocus","isDismissible","id","aria-label","aria-labelledby","aria-describedby","aria-modal"]),T="fullscreen"===m||"fullscreenTakeover"===m,P=f||(i&&a?"confirmation":"information");return delete S.modalContent,delete S.disableEscKey,s.default.createElement("div",{className:(0,o.default)("spectrum-Dialog",{[`spectrum-Dialog--${m}`]:m,"spectrum-Dialog--error":"error"===f,"is-open":p,"spectrum-Dialog--dismissible":b},"spectrum-Dialog-Override",n),role:g,defaultpreventedkeys:["Escape"],tabIndex:void 0===v||y?1:v,onFocus:this.onFocus,onKeyDown:this.onKeyDown,id:E,"aria-label":w,"aria-labelledby":x||(h&&!w?`${E}-heading`:null),"aria-describedby":L||(h&&t?`${E}-content`:null),"aria-modal":O||y},h&&s.default.createElement(l.default,d({variant:P,title:h,fullscreen:T,confirmLabel:a,secondaryLabel:u,cancelLabel:i,isDismissible:b,id:`${E}-heading`},S,{onConfirm:this.onConfirm,onCancel:this.onCancel}),s.default.createElement("div",{className:"dialogSeparator"})),h?s.default.createElement("div",{className:"spectrum-Dialog-content",id:`${E}-content`},t):t,!b&&!T&&a&&s.default.createElement(c.default,d({},this.props,{variant:P,className:"spectrum-Dialog-footer",onConfirm:this.onConfirm,onCancel:this.onCancel})))}})||n;t.default=p},43990:(e,t,r)=>{"use strict";e.exports=r(20428)},20428:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=d(r(68378)),s=d(r(64403)),c=d(r(40743)),l=d(r(2652)),u=d(r(89526));function d(e){return e&&e.__esModule?e:{default:e}}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}r(44101),r(38051),r(54521),r(54285),r(90837);let h=(0,a.default)((o=i=class extends u.default.Component{constructor(e){super(e),this.state={draggingOver:!1},this.debouncedDragLeave=null}clearDebouncedDragLeave(){this.debouncedDragLeave&&(clearTimeout(this.debouncedDragLeave),this.debouncedDragLeave=null)}onDragOver(e){!this.props.shouldAccept||this.props.shouldAccept(e)?(e.preventDefault(),this.clearDebouncedDragLeave(),this.state.draggingOver||this.setState({draggingOver:!0}),e.dataTransfer.dropEffect=this.props.dropEffect,this.props.onDragOver&&this.props.onDragOver(e)):e.dataTransfer.dropEffect="none"}onDragLeave(e){this.clearDebouncedDragLeave(),this.debouncedDragLeave=setTimeout((()=>{this.state.draggingOver&&this.setState({draggingOver:!1}),this.props.onDragLeave&&this.props.onDragLeave(e)}),100)}onDrop(e){e.preventDefault(),this.clearDebouncedDragLeave(),this.state.draggingOver&&this.setState({draggingOver:!1}),this.props.onDrop&&this.props.onDrop(e)}render(){const e=this.props,t=e.children,r=e.className,n=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["children","className"]);return u.default.createElement("div",p({},(0,c.default)(n),{className:(0,s.default)("spectrum-Dropzone",{"is-dragged":this.state.draggingOver},r),onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave}),t)}},i.defaultProps={dropEffect:"copy"},i.propTypes={dropEffect:l.default.oneOf(["copy","move","link","none"]),shouldAccept:l.default.func,onDragLeave:l.default.func,onDragOver:l.default.func,onDrop:l.default.func,className:l.default.string},n=o))||n;t.default=h},58584:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("Dropdown",(()=>r(27222)),(()=>r(12015)))},12015:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=m(r(68378)),s=r(51884),c=m(r(99870)),l=m(r(40743)),u=r(12252),d=m(r(3074)),p=m(r(2652)),h=m(r(89526)),f=m(r(73961));function m(e){return e&&e.__esModule?e:{default:e}}let g=(0,a.default)((o=i=class extends h.default.Component{constructor(e){super(e),this.dropdownId=(0,c.default)(),this.state={open:!1}}onOpen(e){this.setState({open:!0}),this.props.onOpen&&this.props.onOpen(e)}onClose(e){this.setState({open:!1}),!e||"keyup"!==e.type&&"keydown"!==e.type||this.restoreFocusOnClose(),this.props.onClose&&this.props.onClose(e)}onMenuClose(){this.overlayTrigger.hide(),this.restoreFocusOnClose()}onSelect(...e){this.props.closeOnSelect&&this.onMenuClose(),this.props.onSelect&&this.props.onSelect(...e)}onClick(e){this.props.onClick&&this.props.onClick(e)}onKeyDownTrigger(e){if(!("function"==typeof e.isDefaultPrevented&&e.isDefaultPrevented()||e.defaultPrevented)&&this.triggerRef)switch(e.key){case"Enter":case"ArrowDown":case" ":e.preventDefault(),e.stopPropagation(),this.triggerRef.onClick()}}restoreFocusOnClose(){const e=f.default.findDOMNode(this.triggerRef);e&&e.focus&&e.focus()}render(){const e=this.props,t=e.alignRight,r=e.closeOnSelect,n=e.flip,i=e.trigger,o=e.boundariesElement,a=e.onLongClick,c=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["alignRight","closeOnSelect","flip","trigger","boundariesElement","onLongClick"]),p=h.default.Children.toArray(this.props.children),f=p.find((e=>e.props.dropdownTrigger))||p[0],m=f.props.id||this.dropdownId+"-trigger",g=p.find((e=>e.props.dropdownMenu||e.type===u.Menu))||p[1],v=g.props.id||this.dropdownId+"-menu";return delete c.onOpen,delete c.onClose,delete c.onClick,h.default.createElement("div",(0,l.default)(c),p.map(((e,c)=>e===f?h.default.createElement(d.default,{boundariesElement:o,target:this,trigger:i,placement:t?"bottom right":"bottom left",ref:e=>this.overlayTrigger=e,onLongClick:a,onClick:this.onClick,onShow:this.onOpen,closeOnSelect:r,key:c,onHide:this.onClose,flip:n,delayHide:0},h.default.cloneElement(f,{id:m,"aria-haspopup":f.props["aria-haspopup"]||"true","aria-expanded":this.state.open||null,"aria-controls":this.state.open?v:null,onKeyDown:(0,s.chain)(f.props.onKeyDown,this.onKeyDownTrigger),ref:e=>{this.triggerRef=e;const t=f.ref;"function"==typeof t&&t(e)}}),h.default.cloneElement(g,{id:v,"aria-labelledby":g.props["aria-labelledby"]||m,onClose:this.onMenuClose,onSelect:this.onSelect,autoFocus:!0,closeOnSelect:r})):e!==g?e:void 0)))}},i.propTypes={closeOnSelect:p.default.bool,trigger:p.default.oneOf(["click","longClick","hover","focus"]),onOpen:p.default.func,onClose:p.default.func,onSelect:p.default.func,alignRight:p.default.bool,flip:p.default.bool},i.defaultProps={closeOnSelect:!0,trigger:"click"},n=o))||n;t.default=g},27222:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(12015)),i=a(r(89526)),o=r(85706);function a(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}t.default=e=>i.default.createElement(o.SpectrumContext.Consumer,null,(({boundariesElement:t})=>i.default.createElement(n.default,s({},e,{boundariesElement:t}))))},94801:(e,t,r)=>{"use strict";e.exports=r(80509)},80509:(e,t,r)=>{"use strict";t.default=d;var n=l(r(96195)),i=l(r(58584)),o=r(12252),a=l(r(19547)),s=l(r(2652)),c=l(r(89526));function l(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function d(e){let t=e.alignRight,r=e.onClose,s=e.onOpen,l=e.onSelect,d=e.children,p=e.closeOnSelect,h=e.menuClassName,f=e.holdAffordance,m=e.onClick,g=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["alignRight","onClose","onOpen","onSelect","children","closeOnSelect","menuClassName","holdAffordance","onClick"]),v=f?"longClick":void 0;return c.default.createElement(i.default,{style:{display:"inline-block"},onClose:r,onOpen:s,onClick:m,onSelect:l,alignRight:t,closeOnSelect:p,trigger:v},c.default.createElement(n.default,u({variant:"action",quiet:!0,holdAffordance:f,icon:c.default.createElement(a.default,{alt:"…"})},g)),c.default.createElement(o.Menu,{className:h,dropdownMenu:!0},d))}d.propTypes={closeOnSelect:s.default.bool,onOpen:s.default.func,onClose:s.default.func,onSelect:s.default.func,alignRight:s.default.bool,menuClassName:s.default.string,holdAffordance:s.default.bool}},45079:(e,t,r)=>{"use strict";e.exports=r(24865)},24865:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=s(r(64403)),i=s(r(40743)),o=s(r(2652)),a=s(r(89526));function s(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}const l={1:"display",2:"pageTitle",3:"subtitle1",4:"subtitle2",5:"subtitle3",6:"subtitle3"},u={display:"h1",pageTitle:"h2",subtitle1:"h2",subtitle2:"h3",subtitle3:"h4"};function d(e){let t=e.variant,r=e.size,o=void 0===r?1:r,s=e.children,d=e.className,p=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["variant","size","children","className"]);t=t||l[o]||"display";const h=u[t];return a.default.createElement(h,c({className:(0,n.default)("spectrum-Heading",`spectrum-Heading--${t}`,d)},(0,i.default)(p)),s)}d.displayName="Heading",d.propTypes={variant:o.default.oneOf(["display","pageTitle","subtitle1","subtitle2","subtitle3"]),className:o.default.string}},20960:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M29 16h-9V7a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v9H7a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h9v9a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-9h9a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1z"}))},58709:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M37 20H26V9a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v11H9a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h11v11a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V26h11a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1z"}))},44316:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(20960),24:r(58709)}}))};s.displayName="Add",t.default=s},36465:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M16 2a16 16 0 1 0 16 16A16 16 0 0 0 16 2zm10 17a1 1 0 0 1-1 1h-7v7a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-7H7a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h7V9a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v7h7a1 1 0 0 1 1 1z"}))},51534:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M24 4.1A19.9 19.9 0 1 0 43.9 24 19.9 19.9 0 0 0 24 4.1zM36 25a1 1 0 0 1-1 1h-9v9a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-9h-9a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h9v-9a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v9h9a1 1 0 0 1 1 1z"}))},97598:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(36465),24:r(51534)}}))};s.displayName="AddCircle",t.default=s},32149:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M17.127 2.579L.4 32.512A1 1 0 0 0 1.272 34h33.456a1 1 0 0 0 .873-1.488L18.873 2.579a1 1 0 0 0-1.746 0zM20 29.5a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5zm0-6a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-12a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5z"}))},57783:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M44.37 39.036L25.752 5.186a2 2 0 0 0-3.5 0L3.63 39.036A2 2 0 0 0 5.383 42h37.234a2 2 0 0 0 1.753-2.964zM24 39a3 3 0 1 1 3-3 3 3 0 0 1-3 3zm-2.4-10V15a1 1 0 0 1 1-1h2.8a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-2.8a1 1 0 0 1-1-1z"}))},77125:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(32149),24:r(57783)}}))};s.displayName="Alert",t.default=s},10836:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M35.087 20.17S29.206 7.832 28.442 5.813c-.729-1.926-1.669-3.729-3.729-3.729-2.31 0-3.511 1.674-3.729 3.729-.063.59-.2 2.474-.361 4.23h-5.249c-.2-2.131-.349-4.134-.358-4.23-.181-2.093-1.016-3.73-3.729-3.73-2.06 0-2.91 1.84-3.729 3.729C6.9 7.322.764 20.447.764 20.447h.014a8.2 8.2 0 1 0 15.73 3.263c0-.252-.015-1.466-.038-1.712h3.058c-.022.246-.038 1.461-.038 1.712a8.2 8.2 0 1 0 15.6-3.542zM8.3 29.082a5.37 5.37 0 1 1 5.37-5.37 5.37 5.37 0 0 1-5.37 5.37zm19.392 0a5.37 5.37 0 1 1 5.37-5.37 5.37 5.37 0 0 1-5.362 5.37z"}))},38099:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M46.91 28.25S39.024 11.707 38 9c-.978-2.583-2.238-5-5-5-3.1 0-4.707 2.244-5 5a490.06 490.06 0 0 0-.484 5h-7.037c-.269-2.857-.468-4.871-.479-5-.244-2.8-1.366-5-5-5-2.762 0-3.9 2.467-5 5C9.122 11.024.889 28.622.889 28.622h.02A11 11 0 1 0 22 33c0-.338-.021-.67-.05-1h4.1c-.03.33-.05.662-.05 1a11 11 0 1 0 20.91-4.75zM11 40.2a7.2 7.2 0 1 1 7.2-7.2 7.2 7.2 0 0 1-7.2 7.2zm26 0a7.2 7.2 0 1 1 7.2-7.2 7.2 7.2 0 0 1-7.2 7.2z"}))},39070:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(10836),24:r(38099)}}))};s.displayName="Browse",t.default=s},26358:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M12.509 21.03a4.917 4.917 0 0 0-4.194 1.2 12.924 12.924 0 0 0-2.68 4.782c-.463 1.94-.9 3.772-3.359 4.772a.6.6 0 0 0-.341.712.9.9 0 0 0 .644.658 23.76 23.76 0 0 0 1.977.4c2.608.41 7.48.738 10.807-1.651 1.237-.848 2.836-2.982 2.822-4.547a6.813 6.813 0 0 0-5.676-6.326zM19.9 24.1c7.235-8.227 16.422-19.535 14.016-21.941S21.546 10.976 14.38 18.83a10.051 10.051 0 0 1 5.52 5.27z"}))},39512:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M16.647 26.889a7.858 7.858 0 0 0-6.01 2.188 14.07 14.07 0 0 0-2.967 5.879c-.875 2.783-1.7 5.41-5.261 7.107a1 1 0 0 0 .264 1.89c.8.136 1.72.252 2.72.326 3.6.268 10.38.154 15.315-3.6a7.605 7.605 0 0 0 3.139-5.563 7.739 7.739 0 0 0-7.2-8.227zM26.53 30.1C36.51 18.977 47.871 5.715 45.094 2.938S29.335 13.15 19.48 23.8a11.4 11.4 0 0 1 7.05 6.3z"}))},50891:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(26358),24:r(39512)}}))};s.displayName="Brush",t.default=s},18178:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M33 2H5a1 1 0 0 0-1 1v30a1 1 0 0 0 1 1h11V22h6v12h11a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zM12 26H6v-4h6zm0-8H6v-4h6zm0-8H6V6h6zm10 8h-6v-4h6zm0-8h-6V6h6zm10 16h-6v-4h6zm0-8h-6v-4h6zm0-8h-6V6h6z"}))},45607:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M4 6v36a2 2 0 0 0 2 2h14V33a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v11h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2zm12 30H8v-4h8zm0-8H8v-4h8zm0-8H8v-4h8zm0-8H8V8h8zm12 16h-8v-4h8zm0-8h-8v-4h8zm0-8h-8V8h8zm12 24h-8v-4h8zm0-8h-8v-4h8zm0-8h-8v-4h8zm0-8h-8V8h8z"}))},16089:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(18178),24:r(45607)}}))};s.displayName="Building",t.default=s},66674:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M33 6h-3V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v26a1 1 0 0 0 1 1h3v3a1 1 0 0 0 1 1h26a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1zM4 28V4h24v2H7a1 1 0 0 0-1 1v21zm28 4H8V8h14v14l4-3 4 3V8h2z"}))},63915:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M43 10H11a1 1 0 0 0-1 1v32a1 1 0 0 0 1 1h32a1 1 0 0 0 1-1V11a1 1 0 0 0-1-1zm-3 30H14V14h26z"}),n.createElement("path",{d:"M10 34H8V8h26v2h4V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v32a1 1 0 0 0 1 1h5z"}),n.createElement("path",{d:"M29 28l4-3.5 4 3.5V14h-8v14z"}))},64114:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(66674),24:r(63915)}}))};s.displayName="CCLibrary",t.default=s},91076:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M31.312 7.725l-1.455-1.133a1 1 0 0 0-1.4.175L14.822 24.283l-6.647-6.612a1 1 0 0 0-1.414 0L5.436 19a1 1 0 0 0 0 1.415l8.926 8.9a1 1 0 0 0 1.5-.093L31.487 9.128a1 1 0 0 0-.175-1.403z"}))},47178:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M41.3 9.834L38.33 7.52a1 1 0 0 0-1.4.175l-17.697 22.73-8.613-8.614a1 1 0 0 0-1.414 0l-2.695 2.695a1 1 0 0 0 0 1.414l12.432 12.447a1 1 0 0 0 1.5-.093l21.034-27.037a1 1 0 0 0-.177-1.403z"}))},14928:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(91076),24:r(47178)}}))};s.displayName="Checkmark",t.default=s},85948:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M8 14.02a2 2 0 0 1 3.411-1.411l6.578 6.572 6.578-6.572a2 2 0 0 1 2.874 2.773l-.049.049-7.992 7.984a2 2 0 0 1-2.825 0l-7.989-7.983A1.989 1.989 0 0 1 8 14.02z"}))},25321:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M22.585 31.7L11.94 21.05a2 2 0 0 1 0-2.828l.282-.282a2.006 2.006 0 0 1 2.828 0L24 26.888l8.949-8.948a2.006 2.006 0 0 1 2.828 0l.282.282a2 2 0 0 1 0 2.828L25.414 31.7a2 2 0 0 1-2.829 0z"}))},79207:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(85948),24:r(25321)}}))};s.displayName="ChevronDown",t.default=s},35543:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M12 18a1.988 1.988 0 0 0 .585 1.409l7.983 7.98a2 2 0 1 0 2.871-2.772l-.049-.049L16.819 18l6.572-6.57a2 2 0 0 0-2.773-2.87l-.049.049-7.983 7.98A1.988 1.988 0 0 0 12 18z"}))},55066:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M16.3 22.585L26.949 11.94a2 2 0 0 1 2.828 0l.282.282a2.006 2.006 0 0 1 0 2.828L21.112 24l8.948 8.949a2.006 2.006 0 0 1 0 2.828l-.282.282a2 2 0 0 1-2.828 0L16.3 25.414a2 2 0 0 1 0-2.829z"}))},34803:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(35543),24:r(55066)}}))};s.displayName="ChevronLeft",t.default=s},50342:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M24 18a1.988 1.988 0 0 1-.585 1.409l-7.983 7.98a2 2 0 1 1-2.871-2.772l.049-.049L19.181 18l-6.572-6.57a2 2 0 0 1 2.773-2.87l.049.049 7.983 7.98A1.988 1.988 0 0 1 24 18z"}))},55569:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M31.7 25.414L21.05 36.059a2 2 0 0 1-2.828 0l-.282-.282a2.006 2.006 0 0 1 0-2.828L26.888 24l-8.948-8.949a2.006 2.006 0 0 1 0-2.828l.282-.282a2 2 0 0 1 2.828 0L31.7 22.585a2 2 0 0 1 0 2.829z"}))},57362:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(50342),24:r(55569)}}))};s.displayName="ChevronRight",t.default=s},60649:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("rect",{height:"14",rx:"1",ry:"1",width:"14",x:"2",y:"2"}),n.createElement("rect",{height:"14",rx:"1",ry:"1",width:"14",x:"20",y:"2"}),n.createElement("rect",{height:"14",rx:"1",ry:"1",width:"14",x:"2",y:"20"}),n.createElement("rect",{height:"14",rx:"1",ry:"1",width:"14",x:"20",y:"20"}))},62915:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("rect",{height:"18",rx:"2",ry:"2",width:"18",x:"4",y:"4"}),n.createElement("rect",{height:"18",rx:"2",ry:"2",width:"18",x:"26",y:"4"}),n.createElement("rect",{height:"18",rx:"2",ry:"2",width:"18",x:"4",y:"26"}),n.createElement("rect",{height:"18",rx:"2",ry:"2",width:"18",x:"26",y:"26"}))},88716:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(60649),24:r(62915)}}))};s.displayName="ClassicGridView",t.default=s},45892:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M26.485 6.686L18 15.172 9.515 6.686a1 1 0 0 0-1.414 0L6.686 8.1a1 1 0 0 0 0 1.414L15.172 18l-8.486 8.485a1 1 0 0 0 0 1.414L8.1 29.314a1 1 0 0 0 1.414 0L18 20.828l8.485 8.485a1 1 0 0 0 1.414 0l1.415-1.413a1 1 0 0 0 0-1.414L20.828 18l8.485-8.485a1 1 0 0 0 0-1.414L27.9 6.686a1 1 0 0 0-1.415 0z"}))},81648:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M35.314 8.444L24 19.757 12.686 8.444a1 1 0 0 0-1.414 0l-2.828 2.828a1 1 0 0 0 0 1.414L19.757 24 8.444 35.314a1 1 0 0 0 0 1.414l2.828 2.828a1 1 0 0 0 1.414 0L24 28.243l11.314 11.313a1 1 0 0 0 1.414 0l2.828-2.828a1 1 0 0 0 0-1.414L28.243 24l11.313-11.314a1 1 0 0 0 0-1.414l-2.828-2.828a1 1 0 0 0-1.414 0z"}))},89877:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(45892),24:r(81648)}}))};s.displayName="Close",t.default=s},99447:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M28.286 28a5.714 5.714 0 1 0 0-11.429 5.777 5.777 0 0 0-.645.037 7.239 7.239 0 1 0-14.153-2.876 6.1 6.1 0 0 0-7.473 7.461A3.429 3.429 0 1 0 5.43 28z"}))},48074:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M38.143 36a7.857 7.857 0 0 0 0-15.714 7.94 7.94 0 0 0-.887.05 9.954 9.954 0 1 0-19.46-3.954A8.386 8.386 0 0 0 7.522 26.64 4.715 4.715 0 1 0 6.714 36z"}))},65306:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(99447),24:r(48074)}}))};s.displayName="Cloud",t.default=s},67146:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M27.688 14.026Q27.348 14 27 14a9.001 9.001 0 0 0-7.484 14H3.718A3.92 3.92 0 0 1 0 23.854c0-1.73 1.792-4.261 4.092-4.261a4.815 4.815 0 0 1-.134-1.577 6.254 6.254 0 0 1 6.399-6.075 7.743 7.743 0 0 1 2.098.291c.936-3.166 3.622-6.17 7.607-6.17a7.296 7.296 0 0 1 7.641 7.57c0 .133-.005.264-.015.394z"}),n.createElement("path",{d:"M26.969 15.813a7.25 7.25 0 1 0 7.25 7.25 7.255 7.255 0 0 0-7.25-7.25zm3.87 9.915a.92.92 0 0 1-.65 1.57.925.925 0 0 1-.65-.27L27.111 24.6l-2.426 2.427a.919.919 0 0 1-1.57-.65.914.914 0 0 1 .27-.65l2.426-2.427-2.393-2.418a.818.818 0 0 1-.307-.589 1.007 1.007 0 0 1 .957-.982.925.925 0 0 1 .65.27L27.111 22l2.393-2.419a.925.925 0 0 1 .65-.27 1.007 1.007 0 0 1 .957.982.818.818 0 0 1-.306.589L28.412 23.3z"}))},44057:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M4.946 38H27.61a11.995 11.995 0 0 1 9.98-17.99s-.01-.947-.01-1.476A10.31 10.31 0 0 0 27.124 8c-5.392 0-9.008 4.182-10.274 8.499a10.404 10.404 0 0 0-2.839-.396 8.492 8.492 0 0 0-8.657 8.282 6.627 6.627 0 0 0 .18 2.15C2.426 26.535 0 29.987 0 32.347 0 35.748 1.774 38 4.946 38z"}),n.createElement("path",{d:"M38 22a10 10 0 1 0 10 10 10.01 10.01 0 0 0-10-10zm5.246 13.416a1.295 1.295 0 0 1-.915 2.211 1.302 1.302 0 0 1-.916-.381L38 33.83l-3.415 3.416a1.293 1.293 0 0 1-2.21-.915 1.286 1.286 0 0 1 .379-.915L36.17 32l-3.37-3.404a1.151 1.151 0 0 1-.43-.828 1.417 1.417 0 0 1 1.346-1.383 1.302 1.302 0 0 1 .916.38L38 30.17l3.368-3.404a1.302 1.302 0 0 1 .916-.381 1.417 1.417 0 0 1 1.346 1.383 1.151 1.151 0 0 1-.43.828L39.83 32z"}))},69325:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(67146),24:r(44057)}}))};s.displayName="CloudDisconnected",t.default=s},23774:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M27.688 14.026Q27.348 14 27 14a9.001 9.001 0 0 0-7.484 14H3.718A3.92 3.92 0 0 1 0 23.854c0-1.73 1.792-4.261 4.092-4.261a4.815 4.815 0 0 1-.134-1.577 6.254 6.254 0 0 1 6.399-6.075 7.743 7.743 0 0 1 2.098.291c.936-3.166 3.622-6.17 7.607-6.17a7.296 7.296 0 0 1 7.641 7.57c0 .133-.005.264-.015.394z"}),n.createElement("path",{d:"M26.969 15.813a7.25 7.25 0 1 0 7.25 7.25 7.255 7.255 0 0 0-7.25-7.25zm-1.076 2.462c0-.053.15-.137.26-.178a2.27 2.27 0 0 1 .824-.088 2.877 2.877 0 0 1 .87.087c.113.042.276.138.276.18v1.386a43.029 43.029 0 0 1-.366 4.778c0 .041-.028.247-.163.247H26.42c-.09 0-.146-.194-.167-.247-.045-.38-.36-3.27-.36-4.778zm1.17 10.1a1.238 1.238 0 1 1 1.238-1.239 1.239 1.239 0 0 1-1.238 1.239z"}))},83222:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M4.946 38H27.61a11.995 11.995 0 0 1 9.98-17.99s-.01-.947-.01-1.476A10.31 10.31 0 0 0 27.124 8c-5.392 0-9.008 4.182-10.274 8.499a10.404 10.404 0 0 0-2.839-.396 8.492 8.492 0 0 0-8.657 8.282 6.627 6.627 0 0 0 .18 2.15C2.426 26.535 0 29.987 0 32.347 0 35.748 1.774 38 4.946 38z"}),n.createElement("path",{d:"M38 22a10 10 0 1 0 10 10 10.01 10.01 0 0 0-10-10zm-1.487 3.2c0-.071.2-.182.346-.238a3.026 3.026 0 0 1 1.1-.117 3.837 3.837 0 0 1 1.16.117c.15.056.368.184.368.238v1.849a57.38 57.38 0 0 1-.488 6.371c0 .055-.038.33-.218.33h-1.565c-.12 0-.195-.259-.223-.33-.06-.508-.48-4.36-.48-6.371zM38 38.882a1.65 1.65 0 1 1 1.652-1.652A1.652 1.652 0 0 1 38 38.882z"}))},84035:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(23774),24:r(83222)}}))};s.displayName="CloudError",t.default=s},13548:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M23.614 6.145c-4.371-.7-9.005 0-9.648 2.092a2.293 2.293 0 0 0 1.294 2.909c1.152.647 2.6 2.673 1.139 4.54a2.827 2.827 0 0 1-3.124 1.126c-3.748-.946-7.893-2.881-11.285.345C-1.1 20.1.158 24.466 3.154 26.842a23.4 23.4 0 0 0 14.513 5.274C27.253 32.116 35.8 26.465 35.8 19c0-7.558-7.168-12.057-12.186-12.855zM8.694 27.453a3.8 3.8 0 1 1 3.8-3.8 3.8 3.8 0 0 1-3.8 3.8zM27.98 11.419a2.5 2.5 0 1 1-2.5 2.5 2.5 2.5 0 0 1 2.5-2.5zm-10.7 18.139A3.56 3.56 0 1 1 20.837 26a3.56 3.56 0 0 1-3.559 3.559zm7.79-1.5a3 3 0 1 1 3-3 3 3 0 0 1-3.002 3.005zM30 22.56a2.675 2.675 0 1 1 2.674-2.675A2.674 2.674 0 0 1 30 22.56z"}))},15733:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M30.938 7.112c-5.4-.859-11.13 0-11.925 2.585a2.834 2.834 0 0 0 1.6 3.595c1.424.8 3.216 3.3 1.407 5.612a3.494 3.494 0 0 1-3.861 1.396c-4.633-1.17-9.755-3.561-13.948.427-3.822 3.63-2.263 9.028 1.439 11.966a28.925 28.925 0 0 0 17.938 6.518C35.436 39.211 46 32.226 46 23c0-9.341-8.86-14.9-15.062-15.888zM12.5 33.448a4.7 4.7 0 1 1 4.694-4.7 4.695 4.695 0 0 1-4.694 4.7zM38.233 13.7a2.834 2.834 0 1 1-2.833 2.833 2.833 2.833 0 0 1 2.833-2.833zM23.107 36.05a4.4 4.4 0 1 1 4.4-4.4 4.4 4.4 0 0 1-4.4 4.4zm9.629-1.85a3.714 3.714 0 1 1 3.713-3.714 3.714 3.714 0 0 1-3.713 3.714zm6.693-6.1a3.306 3.306 0 1 1 3.304-3.3 3.305 3.305 0 0 1-3.305 3.306z"}))},63198:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(13548),24:r(15733)}}))};s.displayName="ColorPalette",t.default=s},73702:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M35 6h-5V3a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v3H12V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3H3a1 1 0 0 0-1 1v26a1 1 0 0 0 1 1h32a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1zm-1 26H4V8h4v1a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V8h14v1a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V8h4z"}),n.createElement("rect",{height:"8",rx:"1",ry:"1",width:"8",x:"22",y:"20"}))},93229:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M45 8h-7V5a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v3H14V5a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v3H3a1 1 0 0 0-1 1v32a1 1 0 0 0 1 1h42a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1zm-3 30H6V12h4v1a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-1h20v1a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-1h4z"}),n.createElement("path",{d:"M28 25v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-8a1 1 0 0 0-1 1z"}))},15588:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(73702),24:r(93229)}}))};s.displayName="Date",t.default=s},74866:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M31.5 4H24V2a2 2 0 0 0-2-2H12a2 2 0 0 0-2 2v2H2.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h2l2.413 25.1a1 1 0 0 0 1 .9h18.179a1 1 0 0 0 1-.9L29.5 8h2a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zM12 2h10v2H12zm-.458 26.944l-1 .06a.5.5 0 0 1-.529-.469L8.87 11.49a.5.5 0 0 1 .469-.529l1-.06a.5.5 0 0 1 .529.469l1.145 17.045a.5.5 0 0 1-.471.529zM18 28.48a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5V11.4a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5zm5.985.056a.5.5 0 0 1-.529.469l-1-.06a.5.5 0 0 1-.469-.529l1.147-17.046a.5.5 0 0 1 .529-.469l1 .06a.5.5 0 0 1 .469.529z"}))},54575:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M41 8h-9V6a4 4 0 0 0-4-4H18a4 4 0 0 0-4 4v2H5a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h1.2l2 28a2 2 0 0 0 2 2h25.6a2 2 0 0 0 2-2l2-28H41a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1zM15.982 39.353a1.013 1.013 0 0 1-.7.331l-.4.021h-.023a1.011 1.011 0 0 1-1.027-.951l-1.23-21.362a1 1 0 0 1 .951-1.052l.447-.023a1 1 0 0 1 1 .953l1.227 21.361a.992.992 0 0 1-.245.722zM24.2 38.7a1 1 0 0 1-1 1h-.4a1 1 0 0 1-1-1V17.3a1 1 0 0 1 1-1h.4a1 1 0 0 1 1 1zM28 8H18V6h10zm4.2 30.76a.992.992 0 0 1-.33.7 1.025 1.025 0 0 1-.682.258h-.033l-.4-.02a1 1 0 0 1-.693-.327.987.987 0 0 1-.258-.717l1.152-21.377a1 1 0 0 1 1-.95l.447.021a1 1 0 0 1 .693.327.977.977 0 0 1 .26.717z"}))},38242:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(74866),24:r(54575)}}))};s.displayName="Delete",t.default=s},37375:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M33.567 8.2L27.8 2.432a1.214 1.214 0 0 0-.866-.353H26.9a1.371 1.371 0 0 0-.927.406L5.084 23.372a1 1 0 0 0-.251.421L2.055 33.1c-.114.376.459.851.783.851a.274.274 0 0 0 .061-.006c.276-.064 7.867-2.344 9.312-2.779a.981.981 0 0 0 .414-.249l20.888-20.889a1.374 1.374 0 0 0 .4-.883 1.222 1.222 0 0 0-.346-.945zM11.4 29.316c-2.161.649-4.862 1.465-6.729 2.022l2.009-6.73z"}))},77591:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M17.054 37.145c-3.1 1.116-6.975 2.516-9.652 3.475l3.456-9.653zm16.64-32.727L8.82 29.292a2.231 2.231 0 0 0-.521.814L4.115 41.659a1.654 1.654 0 0 0 2.171 2.186L17.9 39.713a2.23 2.23 0 0 0 .826-.526L43.59 14.274a1.887 1.887 0 0 0 .172-2.653l-7.42-7.382a1.888 1.888 0 0 0-2.648.179z"}))},27944:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(37375),24:r(77591)}}))};s.displayName="Edit",t.default=s},16652:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M30.946 2H3.054a1 1 0 0 0-.787 1.617L14 18.589V33.9a.992.992 0 0 0 1.68.825l3.98-4.153a1.221 1.221 0 0 0 .34-.845V18.589L31.733 3.617A1 1 0 0 0 30.946 2z"}))},13213:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M42.885 4H5.119a1.464 1.464 0 0 0-1.136 2.388l16.1 19.671v18.417a1.464 1.464 0 0 0 2.46 1.073l4.93-5.445a1.464 1.464 0 0 0 .49-1.093V26.027L44.021 6.388A1.464 1.464 0 0 0 42.885 4z"}))},81950:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(16652),24:r(13213)}}))};s.displayName="Filter",t.default=s},21919:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M14.8 27a13.146 13.146 0 0 1 3.2-8.411c2.083-2.694 11.733-14.972 11.733-14.972A1 1 0 0 0 28.946 2H1.054a1 1 0 0 0-.787 1.617L12 18.589V33.9a.992.992 0 0 0 1.68.825l2.338-2.439A12.131 12.131 0 0 1 14.8 27z"}),n.createElement("path",{d:"M27 18.1a8.9 8.9 0 1 0 8.9 8.9 8.9 8.9 0 0 0-8.9-8.9zm-2.338 14.312l-4.128-4.127a.5.5 0 0 1 0-.707l1.036-1.036a.5.5 0 0 1 .707 0l2.731 2.731 6.106-6.106a.5.5 0 0 1 .707 0l1.043 1.043a.5.5 0 0 1 0 .707l-7.5 7.5a.5.5 0 0 1-.702-.005z"}))},83836:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M20.3 36c0-4.157 1.449-7.322 4.265-10.735S39.621 6.388 39.621 6.388A1.464 1.464 0 0 0 38.486 4H1.529A1.464 1.464 0 0 0 .393 6.388l15.686 19.671v18.417a1.464 1.464 0 0 0 2.46 1.073l3.256-2.886A14.465 14.465 0 0 1 20.3 36z"}),n.createElement("path",{d:"M36 24.1A11.9 11.9 0 1 0 47.9 36 11.9 11.9 0 0 0 36 24.1zm-2.229 19.8l-6.133-6.133a.5.5 0 0 1 0-.707L29.4 35.3a.5.5 0 0 1 .707 0L34 39.188l8.939-8.94a.5.5 0 0 1 .707 0l1.887 1.887a.5.5 0 0 1 0 .707L34.479 43.9a.5.5 0 0 1-.708 0z"}))},18657:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(21919),24:r(83836)}}))};s.displayName="FilterCheck",t.default=s},1896:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M28.583 5.854a19.006 19.006 0 0 0-4.113.454 1.093 1.093 0 0 1-1.3-1.085V3.609a1.086 1.086 0 0 0-.814-1.061A19.5 19.5 0 0 0 17.75 2 19.154 19.154 0 0 0 8 4.648v15.165a19.1 19.1 0 0 1 9.76-2.646 1.1 1.1 0 0 1 1.073 1.1v3.739a.99.99 0 0 0 1.406.907 19.291 19.291 0 0 1 12.515-1.435A1.006 1.006 0 0 0 34 20.511V7.4a1 1 0 0 0-.751-.98 19.489 19.489 0 0 0-4.666-.566z"}),n.createElement("rect",{height:"34",rx:".5",ry:".5",width:"4",x:"2",y:"2"}))},84480:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M36.917 9.289a24.851 24.851 0 0 0-5.379.593 1.429 1.429 0 0 1-1.7-1.418V6.809a1.978 1.978 0 0 0-1.509-1.945 25.515 25.515 0 0 0-5.579-.614A25.048 25.048 0 0 0 10 7.712v19.832a24.98 24.98 0 0 1 12.765-3.461 1.44 1.44 0 0 1 1.4 1.439v3.807a2.01 2.01 0 0 0 2.843 1.812 25.245 25.245 0 0 1 14.637-1.569A1.982 1.982 0 0 0 44 27.619V11.848A1.978 1.978 0 0 0 42.491 9.9a25.515 25.515 0 0 0-5.574-.611z"}),n.createElement("rect",{height:"42",rx:"1",ry:"1",width:"4",x:"2",y:"4"}))},96288:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(1896),24:r(84480)}}))};s.displayName="Flag",t.default=s},54444:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M33 32H3a1 1 0 0 1-1-1V10h31a1 1 0 0 1 1 1v20a1 1 0 0 1-1 1zM13.01 4.61A2 2 0 0 0 11.57 4H4a2 2 0 0 0-2 2v2h14.266z"}))},4619:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M4 14v26a2 2 0 0 0 2 2h36a2 2 0 0 0 2-2V16a2 2 0 0 0-2-2zm14.01-9.39A2 2 0 0 0 16.57 4H8a4 4 0 0 0-4 4v2h19.266z"}))},4457:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(54444),24:r(4619)}}))};s.displayName="Folder",t.default=s},31278:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M14.7 27A12.293 12.293 0 0 1 34 16.893V11a1 1 0 0 0-1-1H2v21a1 1 0 0 0 1 1h12.769a12.24 12.24 0 0 1-1.069-5z"}),n.createElement("path",{d:"M27 18.1a8.9 8.9 0 1 0 8.9 8.9 8.9 8.9 0 0 0-8.9-8.9zm5 9.4a.5.5 0 0 1-.5.5H28v3.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5V28h-3.5a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5H26v-3.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5V26h3.5a.5.5 0 0 1 .5.5zM16 8H2V5.5A1.5 1.5 0 0 1 3.5 4h7.672a2 2 0 0 1 1.414.586z"}))},61551:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M18.1 4.8a2 2 0 0 0-1.6-.8H6a2 2 0 0 0-2 2v4h18zm2 31.2A15.879 15.879 0 0 1 44 22.275V16a2 2 0 0 0-2-2H4v26a2 2 0 0 0 2 2h15.28a15.843 15.843 0 0 1-1.18-6z"}),n.createElement("path",{d:"M36 24.1A11.9 11.9 0 1 0 47.9 36 11.9 11.9 0 0 0 36 24.1zm8 13.4a.5.5 0 0 1-.5.5H38v5.5a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5V38h-5.5a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5H34v-5.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5V34h5.5a.5.5 0 0 1 .5.5z"}))},56590:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(31278),24:r(61551)}}))};s.displayName="FolderAdd",t.default=s},11276:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M12 6l4 4h14v4H6V7a1 1 0 0 1 1-1zm.5-2H7a3 3 0 0 0-3 3v7H.577a.5.5 0 0 0-.495.571l3.727 14.675a1 1 0 0 0 .969.754h26.444a1 1 0 0 0 .969-.754l3.727-14.675a.5.5 0 0 0-.495-.571H32V9a1 1 0 0 0-1-1H16.8l-3.5-3.6a1 1 0 0 0-.8-.4z"}))},30555:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M16 8l6.437 6H40v6H8V9a1 1 0 0 1 1-1zm0-4H9a5 5 0 0 0-5 5v11H1.181a1 1 0 0 0-.987 1.164L3.7 40.359A2 2 0 0 0 5.668 42h36.664a2 2 0 0 0 1.968-1.641l3.506-19.195A1 1 0 0 0 46.819 20H44v-8a2 2 0 0 0-2-2H24l-4.7-4.526A4.647 4.647 0 0 0 16 4z"}))},91912:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(11276),24:r(30555)}}))};s.displayName="FolderOpen",t.default=s},11733:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M7.146 13.769C6.1 9.982 8.8 8.352 8.534 5.116A16.073 16.073 0 0 0 2 18c0 9.112 7.943 14.542 13.554 15.732a6.9 6.9 0 0 0 1.046.168c2-5.1-1.773-10.789-4.263-14.494-2.075-3.088-3.959-1.18-5.191-5.637z"}),n.createElement("path",{d:"M32.781 19.031c-1.61-.613-2.991 1.475-3.114-4.164a5.764 5.764 0 0 1 1.667-4 3.08 3.08 0 0 1 .729-.349c-.191-.349-.4-.684-.62-1.018-.037.019-.071.044-.109.062-1.25.583-1.423.755-2 0a1.576 1.576 0 0 1 .346-2.326 15.985 15.985 0 0 0-11.654-5.221c2.028.028 4.447 1.53 3.213 3.929.185-.381-4.027-1.29-4.6-1.29-.772 0 1.576-2.889 1.36-2.639a16.08 16.08 0 0 0-6.615 1.423c1.093.706 2.311.459 3.543.764a3.006 3.006 0 0 1 1.1.452 3.7 3.7 0 0 0-1.1-.452c-1.818-.211.88 4.777.778 4.114.5-2.292 3.612-3.176 4.566-.147a3.741 3.741 0 0 1-.838 2.265c-1.41 1.854-1.7 5.154-2.4 4.31-6.59-2.7-5.865.871-3.7 3.258 3.463 3.82 1.706.392 6.242 2.392 3.648 1.608 8.038 1.989 6.967 3.2-3.241 3.67-2.56 6.1-8.293 10.4.478-.013 2-.165 2.311-.216a16.274 16.274 0 0 0 13.375-14.4 2.4 2.4 0 0 1-1.154-.347z"}))},84433:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M9.527 18.358c-1.4-5.049 2.207-7.223 1.852-11.537A21.43 21.43 0 0 0 2.667 24c0 12.149 10.591 19.39 18.072 20.976a9.2 9.2 0 0 0 1.393.221c2.668-6.8-2.364-14.385-5.684-19.326-2.765-4.113-5.278-1.571-6.921-7.513z"}),n.createElement("path",{d:"M19.9 5.6s-.485.029-.619.163c-1.014 1.01 1.776 6.1 1.656 5.322.664-3.056 4.816-4.235 6.088-.2a4.989 4.989 0 0 1-1.117 3.02c-1.88 2.472-2.262 6.872-3.2 5.746-8.787-3.6-7.82 1.161-4.936 4.343 4.618 5.094 2.275.522 8.323 3.189 4.864 2.145 10.718 2.652 9.289 4.27-4.322 4.894-3.413 8.137-11.057 13.872.637-.017 2.665-.22 3.082-.288a21.7 21.7 0 0 0 17.833-19.2 3.2 3.2 0 0 1-1.539-.469c-2.147-.817-3.989 1.967-4.152-5.552a7.686 7.686 0 0 1 2.222-5.333 4.107 4.107 0 0 1 .972-.465 22.301 22.301 0 0 0-.826-1.357c-.05.026-.094.059-.145.083-1.667.778-1.9 1.007-2.667 0a2.1 2.1 0 0 1 .461-3.1 21.313 21.313 0 0 0-15.533-6.957c2.7.037 5.929 2.039 4.284 5.239.247-.508-5.369-1.72-6.133-1.72-1.029 0 1.853-3.519 1.814-3.519a21.439 21.439 0 0 0-8.82 1.9C16.637 5.526 19.9 5.6 19.9 5.6z"}))},64335:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(11733),24:r(84433)}}))};s.displayName="Globe",t.default=s},45990:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M7.146 13.769C6.1 9.982 8.8 8.352 8.534 5.116A16.073 16.073 0 0 0 2 18c0 9.112 7.943 14.542 13.554 15.732a6.9 6.9 0 0 0 1.046.168c2-5.1-1.773-10.789-4.263-14.494-2.075-3.088-3.959-1.18-5.191-5.637zm22.042 4.189a6.027 6.027 0 0 0-5.1 4.923 5.952 5.952 0 0 0 1.935 5.484L22.27 34.22a.5.5 0 0 0 .151.691l.842.54a.5.5 0 0 0 .691-.151l3.746-5.855a6 6 0 1 0 1.483-11.487zM30 27.9a4 4 0 1 1 4-4 4 4 0 0 1-4 4z"}),n.createElement("path",{d:"M32.063 10.518c-.192-.349-.4-.684-.62-1.018-.037.019-.07.044-.109.062-1.25.583-1.423.755-2 0a1.576 1.576 0 0 1 .347-2.326 15.984 15.984 0 0 0-11.655-5.221c2.027.028 4.446 1.53 3.213 3.929.186-.381-4.027-1.29-4.6-1.29-.772 0 1.575-2.889 1.36-2.639a16.085 16.085 0 0 0-6.615 1.423c1.094.706 2.311.46 3.544.764a3.014 3.014 0 0 1 1.1.452 3.711 3.711 0 0 0-1.1-.452c-1.818-.211.88 4.777.777 4.114.5-2.292 3.612-3.176 4.565-.147a3.742 3.742 0 0 1-.837 2.265c-1.411 1.854-1.7 5.154-2.4 4.31-6.591-2.7-5.865.871-3.7 3.258 3.464 3.82 1.706.392 6.242 2.392a26.464 26.464 0 0 0 2.916 1.05 8.023 8.023 0 0 1 6.533-5.469c.232-.03.46-.034.689-.045a25.037 25.037 0 0 1-.045-1.063 5.766 5.766 0 0 1 1.666-4 3.1 3.1 0 0 1 .729-.349z"}))},63326:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M15.181 4.584c1.457.942 3.081.613 4.724 1.019a4.01 4.01 0 0 1 1.465.6A4.926 4.926 0 0 0 19.9 5.6c-2.424-.281 1.173 6.37 1.037 5.485.664-3.056 4.816-4.235 6.088-.2a4.991 4.991 0 0 1-1.117 3.02c-1.88 2.472-2.262 6.872-3.2 5.746-8.787-3.6-7.819 1.162-4.936 4.344 4.618 5.094 2.274.522 8.323 3.189a35.524 35.524 0 0 0 3.937 1.415 12 12 0 0 1 9.836-5.3 19.362 19.362 0 0 1-.316-3.486 7.687 7.687 0 0 1 2.222-5.333 4.109 4.109 0 0 1 .973-.465 21.822 21.822 0 0 0-.827-1.357c-.05.026-.094.059-.145.083-1.666.778-1.9 1.007-2.666 0a2.1 2.1 0 0 1 .461-3.1 21.312 21.312 0 0 0-15.535-6.954c2.7.037 5.929 2.04 4.284 5.239.247-.508-5.37-1.72-6.133-1.72-1.03 0 2.1-3.852 1.813-3.519a21.438 21.438 0 0 0-8.818 1.897zm-3.802 2.237A21.429 21.429 0 0 0 2.667 24c0 12.149 10.591 19.39 18.071 20.976a9.239 9.239 0 0 0 1.394.221c2.668-6.8-2.364-14.385-5.684-19.326-2.765-4.115-5.278-1.571-6.921-7.514-1.395-5.048 2.207-7.221 1.852-11.536zm24.609 35.37a7.92 7.92 0 0 0 4 1.112 8.08 8.08 0 1 0-6.323-3.151l-5.376 5.376a1 1 0 0 0 0 1.414l.766.765a1 1 0 0 0 1.414 0zm4-12.082A5.194 5.194 0 1 1 34.8 35.3a5.194 5.194 0 0 1 5.192-5.192z"}))},53904:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(45990),24:r(63326)}}))};s.displayName="GlobeSearch",t.default=s},70400:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M22.5 14.025a4.417 4.417 0 0 1-1.535 3.41c-.936.916-1.823 1.731-1.823 2.472a2.664 2.664 0 0 0 .384 1.361.105.105 0 0 1-.1.173h-2.083a.4.4 0 0 1-.312-.1 2.76 2.76 0 0 1-.576-1.707c0-1.162.7-1.9 1.848-3.09.791-.815 1.247-1.335 1.247-2.1 0-.89-.576-1.508-2.039-1.508a5.957 5.957 0 0 0-3.022.815.121.121 0 0 1-.191-.1v-2.4c0-.1 0-.2.1-.248a7.445 7.445 0 0 1 3.646-.866c2.873.005 4.456 1.712 4.456 3.888zm-5.925 11.124a1.679 1.679 0 1 1 3.358 0 1.575 1.575 0 0 1-1.679 1.731 1.6 1.6 0 0 1-1.679-1.731z"}),n.createElement("path",{d:"M18 2.1A15.9 15.9 0 1 0 33.9 18 15.9 15.9 0 0 0 18 2.1zm0 29.812A13.912 13.912 0 1 1 31.913 18 13.912 13.912 0 0 1 18 31.913z"}))},11001:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M24 7.9A16.1 16.1 0 1 1 7.9 24 16.118 16.118 0 0 1 24 7.9zm0-3.8A19.9 19.9 0 1 0 43.9 24 19.9 19.9 0 0 0 24 4.1z"}),n.createElement("path",{d:"M29.724 18.665c0 3.52-4.544 5.536-4.544 7.361a3.363 3.363 0 0 0 .576 1.7.166.166 0 0 1-.16.256h-2.817a.415.415 0 0 1-.384-.16 3.451 3.451 0 0 1-.832-2.176c0-2.561 4.192-4.128 4.192-6.689 0-1.248-1.024-2.336-2.976-2.336a9.241 9.241 0 0 0-3.872.8c-.128.064-.224 0-.224-.128v-2.532c0-.128 0-.256.128-.32a10.943 10.943 0 0 1 4.769-.992c3.744 0 6.144 2.144 6.144 5.216zm-7.969 14.082a2.24 2.24 0 0 1 4.48 0A2.084 2.084 0 0 1 24 34.987a2.116 2.116 0 0 1-2.245-2.24z"}))},86071:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(70400),24:r(11001)}}))};s.displayName="HelpOutline",t.default=s},30854:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("circle",{cx:"23.8",cy:"12.6",r:"2.5"}),n.createElement("path",{d:"M34.875 4H1.125A1.068 1.068 0 0 0 0 5v26a1.068 1.068 0 0 0 1.125 1h33.75A1.068 1.068 0 0 0 36 31V5a1.068 1.068 0 0 0-1.125-1zM34 22a15.166 15.166 0 0 0-6.182-2c-2.939 0-5.477 4-8.416 4s-6.679-8-9.618-8C7.113 16 2 24 2 24V6h32z"}))},83894:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("circle",{cx:"32.16",cy:"17.52",r:"3"}),n.createElement("path",{d:"M44 6H4a2 2 0 0 0-2 2v32a2 2 0 0 0 2 2h40a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zm-2 22.8c-2.149-1.269-3.146-2.4-5.018-2.4-3.526 0-6.572 4.8-10.1 4.8s-8.015-9.6-11.542-9.6C12.136 21.6 6 31.2 6 31.2V10h36z"}))},20494:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(30854),24:r(83894)}}))};s.displayName="Image",t.default=s},22138:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M18 2a16 16 0 1 0 16 16A16 16 0 0 0 18 2zm-.3 4.3a2.718 2.718 0 0 1 2.864 2.824 2.665 2.665 0 0 1-2.864 2.863 2.706 2.706 0 0 1-2.864-2.864A2.717 2.717 0 0 1 17.7 6.3zM22 27a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h1v-6h-1a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v9h1a1 1 0 0 1 1 1z"}))},2252:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M24 4.1A19.9 19.9 0 1 0 43.9 24 19.9 19.9 0 0 0 24 4.1zm-.3 6.2a2.718 2.718 0 0 1 2.864 2.824 2.665 2.665 0 0 1-2.864 2.863 2.706 2.706 0 0 1-2.864-2.864A2.717 2.717 0 0 1 23.7 10.3zM28 35a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h1v-8h-1a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v11h1a1 1 0 0 1 1 1z"}))},69674:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(22138),24:r(2252)}}))};s.displayName="Info",t.default=s},24146:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("circle",{cx:"18",cy:"12",r:"2.15"}),n.createElement("path",{d:"M20.333 24H20v-7.6a.4.4 0 0 0-.4-.4h-3.933s-1.167.032-1.167 1 1.167 1 1.167 1H16v6h-.333s-1.167.032-1.167 1 1.167 1 1.167 1h4.667s1.167-.033 1.167-1-1.168-1-1.168-1z"}),n.createElement("path",{d:"M18 2.1A15.9 15.9 0 1 0 33.9 18 15.9 15.9 0 0 0 18 2.1zm0 29.812A13.912 13.912 0 1 1 31.913 18 13.912 13.912 0 0 1 18 31.913z"}))},48225:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M24 7.9A16.1 16.1 0 1 1 7.9 24 16.118 16.118 0 0 1 24 7.9zm0-3.8A19.9 19.9 0 1 0 43.9 24 19.9 19.9 0 0 0 24 4.1z"}),n.createElement("path",{d:"M21.56 14.747a2.24 2.24 0 0 1 4.48 0 2.084 2.084 0 0 1-2.24 2.24 2.116 2.116 0 0 1-2.24-2.24zM27.5 32H26V21a1 1 0 0 0-1-1h-4.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5H22v10h-1.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5z"}))},78023:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(24146),24:r(48225)}}))};s.displayName="InfoOutline",t.default=s},10006:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M31.7 4.3a7.176 7.176 0 0 0-10.148 0c-.385.385-4.264 4.222-5.351 5.309a8.308 8.308 0 0 1 3.742.607c.52-.52 3.568-3.526 3.783-3.741a4.1 4.1 0 1 1 5.8 5.8l-7.118 7.115a4.623 4.623 0 0 1-3.372 1.3 3.953 3.953 0 0 1-2.7-1.109 4.161 4.161 0 0 1-1.241-1.625 2.026 2.026 0 0 0-.427.318l-1.636 1.712a7.134 7.134 0 0 0 1.227 1.673c2.8 2.8 7.874 2.364 10.676-.438l6.765-6.769a7.176 7.176 0 0 0 0-10.152z"}),n.createElement("path",{d:"M15.926 25.824c-.52.52-3.5 3.547-3.713 3.761a4.1 4.1 0 0 1-5.8-5.8L13.6 16.6a4.584 4.584 0 0 1 3.367-1.293 4.2 4.2 0 0 1 3.783 2.783 2.026 2.026 0 0 0 .427-.318l1.735-1.721a7.134 7.134 0 0 0-1.227-1.673 7.311 7.311 0 0 0-10.26.047l-7.186 7.187a7.176 7.176 0 0 0 10.148 10.149c.385-.385 4.194-4.242 5.281-5.329a8.308 8.308 0 0 1-3.742-.608z"}))},82457:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M42.357 5.643a11.071 11.071 0 0 0-15.657 0c-.594.594-3.806 3.741-5.483 5.418a12.818 12.818 0 0 1 5.774.939c.8-.8 2.732-2.668 3.064-3A6.327 6.327 0 0 1 39 17.945l-8.2 8.2c-2.47 2.47-6.9 2.76-9.375.289a6.419 6.419 0 0 1-1.915-2.508 3.125 3.125 0 0 0-.659.49l-2.524 2.641a11.006 11.006 0 0 0 1.892 2.581c4.324 4.324 12.149 3.648 16.472-.676l7.666-7.662a11.071 11.071 0 0 0 0-15.657z"}),n.createElement("path",{d:"M20.8 36.072c-.8.8-2.524 2.6-2.855 2.93A6.327 6.327 0 0 1 9 30.055l8.214-8.214c2.471-2.471 6.854-2.75 9.325-.279a6.079 6.079 0 0 1 1.706 2.577 3.125 3.125 0 0 0 .659-.491l2.676-2.655a11.006 11.006 0 0 0-1.892-2.581 11.28 11.28 0 0 0-15.829.073L5.643 26.7A11.071 11.071 0 0 0 21.3 42.357c.594-.594 3.6-3.672 5.274-5.349a12.818 12.818 0 0 1-5.774-.936z"}))},74274:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(10006),24:r(82457)}}))};s.displayName="Link",t.default=s},71735:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M30 17.5V30H6V6h12.5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5H3a1 1 0 0 0-1 1v30a1 1 0 0 0 1 1h30a1 1 0 0 0 1-1V17.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5z"}),n.createElement("path",{d:"M23.54 2.853l3.389 3.389-9.546 9.546a.5.5 0 0 0 0 .707l2.117 2.122a.5.5 0 0 0 .707 0l9.546-9.546 3.389 3.389a.5.5 0 0 0 .858-.353V2H23.893a.5.5 0 0 0-.353.853z"}))},14551:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M40 24.5V40H8V8h15.5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5H5a1 1 0 0 0-1 1v38a1 1 0 0 0 1 1h38a1 1 0 0 0 1-1V24.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5z"}),n.createElement("path",{d:"M30.241 4a1.008 1.008 0 0 0-.655 1.716l4.228 4.228-9.842 9.842a.5.5 0 0 0 0 .707l3.536 3.535a.5.5 0 0 0 .707 0l9.842-9.842 4.217 4.214a1 1 0 0 0 1.706-.655V4z"}))},47019:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(71735),24:r(14551)}}))};s.displayName="LinkOut",t.default=s},16004:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M29 16h-1v-2a10 10 0 0 0-20 0v2H7a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h22a1 1 0 0 0 1-1V17a1 1 0 0 0-1-1zm-17-2a6 6 0 0 1 12 0v2H12zm8 12.222V29a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-2.778a3 3 0 1 1 4 0z"}))},4378:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M38 20h-2v-2a12 12 0 1 0-24 0v2h-2a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h28a2 2 0 0 0 2-2V22a2 2 0 0 0-2-2zM26 33.445V37a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-3.555a4 4 0 1 1 4 0zM32 20H16v-2a8 8 0 1 1 16 0z"}))},70316:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(16004),24:r(4378)}}))};s.displayName="LockClosed",t.default=s},15171:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M35.338 32.3L23.865 20.824a12.013 12.013 0 1 0-3.04 3.04L32.3 35.338a2.155 2.155 0 0 0 3.04-3.04zM4 14a10 10 0 1 1 10 10A10 10 0 0 1 4 14z"}))},68738:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M4 20a16 16 0 0 0 24.991 13.233l9.888 9.888a3 3 0 0 0 4.242-4.242l-9.888-9.888A16 16 0 1 0 4 20zm3.9 0A12.1 12.1 0 1 1 20 32.1 12.114 12.114 0 0 1 7.9 20z"}))},45302:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(15171),24:r(68738)}}))};s.displayName="Magnify",t.default=s},6359:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("circle",{cx:"18",cy:"18",r:"4.1"}),n.createElement("circle",{cx:"30",cy:"18",r:"4.1"}),n.createElement("circle",{cx:"6",cy:"18",r:"4.1"}))},68826:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("circle",{cx:"24",cy:"24",r:"6"}),n.createElement("circle",{cx:"42",cy:"24",r:"6"}),n.createElement("circle",{cx:"6",cy:"24",r:"6"}))},19547:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(6359),24:r(68826)}}))};s.displayName="More",t.default=s},5669:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("circle",{cx:"18",cy:"18",r:"4.1"}),n.createElement("circle",{cx:"18",cy:"6",r:"4.1"}),n.createElement("circle",{cx:"18",cy:"30",r:"4.1"}))},32415:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("circle",{cx:"24",cy:"24",r:"6"}),n.createElement("circle",{cx:"24",cy:"6",r:"6"}),n.createElement("circle",{cx:"24",cy:"42",r:"6"}))},83300:(e,t,r)=>{"use strict";var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(5669),24:r(32415)}}))};s.displayName="MoreVertical",t.Z=s},73744:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M6 16.5V6h24v24H19.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5H33a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v13.5a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5z"}),n.createElement("path",{d:"M5.54 20.853l3.389 3.389-7.546 7.547a.5.5 0 0 0 0 .707L3.5 34.617a.5.5 0 0 0 .707 0l7.546-7.546 3.389 3.389a.5.5 0 0 0 .858-.353V20H5.893a.5.5 0 0 0-.353.853z"}))},81373:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M8 21.5V8h32v32H26.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5H43a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v16.5a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5z"}),n.createElement("path",{d:"M10.241 24a1.008 1.008 0 0 0-.655 1.716l4.228 4.228-9.842 9.842a.5.5 0 0 0 0 .707l3.536 3.535a.5.5 0 0 0 .707 0l9.842-9.842 4.217 4.214a1 1 0 0 0 1.706-.655V24z"}))},14924:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(73744),24:r(81373)}}))};s.displayName="OpenIn",t.default=s},67363:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M33 2H15a1 1 0 0 0-1 1v11h10v20h9a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zm-11 8h-6V6h6zm10 16h-6v-4h6zm0-8h-6v-4h6zm0-8h-6V6h6z"}),n.createElement("path",{d:"M2 17v16a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V17a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1zm12 1h6v4h-6zM4 18h6v4H4zm0 8h6v4H4z"}))},10107:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M42 4H18a2 2 0 0 0-2 2v10h12v28h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm-14 8h-8V8h8zm12 24h-8v-4h8zm0-8h-8v-4h8zm0-8h-8v-4h8zm0-8h-8V8h8z"}),n.createElement("path",{d:"M4 22v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V22a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2zm8 20H6v-4h6zm0-8H6v-4h6zm0-8H6v-4h6zm10 8h-6v-4h6zm0-8h-6v-4h6z"}))},48864:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(67363),24:r(10107)}}))};s.displayName="Organisations",t.default=s},50357:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("rect",{height:"28",rx:"1",ry:"1",width:"8",x:"6",y:"4"}),n.createElement("rect",{height:"28",rx:"1",ry:"1",width:"8",x:"20",y:"4"}))},88566:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("rect",{height:"40",rx:"2",ry:"2",width:"12",x:"8",y:"4"}),n.createElement("rect",{height:"40",rx:"2",ry:"2",width:"12",x:"28",y:"4"}))},47115:(e,t,r)=>{"use strict";var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(50357),24:r(88566)}}))};s.displayName="Pause",t.Z=s},32800:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M9.46 4H7a1 1 0 0 0-1 1v26a1 1 0 0 0 1 1h2.46a2 2 0 0 0 1.007-.272l22.064-12.866a1 1 0 0 0 0-1.725L10.467 4.272A2 2 0 0 0 9.46 4z"}))},69352:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M10.853 4H8a2 2 0 0 0-2 2v36a2 2 0 0 0 2 2h2.853a4 4 0 0 0 2.12-.608l30.09-17.667a2 2 0 0 0 0-3.449L12.973 4.608A4 4 0 0 0 10.853 4z"}))},78905:(e,t,r)=>{"use strict";var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(32800),24:r(69352)}}))};s.displayName="Play",t.Z=s},22984:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M33.191 1.113L1.8 10.478a.5.5 0 0 0-.08.926l7.92 3.954zM15.645 22.372L10.08 19.25v7.639a.713.713 0 0 0 1.174.544l3.795-3.2a12.242 12.242 0 0 1 .596-1.861zM27 14.8a12.288 12.288 0 0 1 2.786.329l5.851-12.765-22.548 14.667 4.435 2.229A12.273 12.273 0 0 1 27 14.8zm0 3.3a8.9 8.9 0 1 0 8.9 8.9 8.9 8.9 0 0 0-8.9-8.9zm5.826 12.267a.5.5 0 0 1 0 .707l-1.752 1.752a.5.5 0 0 1-.707 0L27 29.459l-3.367 3.367a.5.5 0 0 1-.707 0l-1.752-1.752a.5.5 0 0 1 0-.707L24.541 27l-3.367-3.367a.5.5 0 0 1 0-.707l1.752-1.752a.5.5 0 0 1 .707 0L27 24.541l3.367-3.367a.5.5 0 0 1 .707 0l1.752 1.752a.5.5 0 0 1 0 .707L29.459 27z"}))},16044:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M44.194 4.424L2 17a1.065 1.065 0 0 0-.191 1.978l9.669 4.834zM20.312 33.627L12.066 29v10.185a.95.95 0 0 0 1.564.725l6.57-5.531c.025-.254.072-.502.112-.752zM36 20.2a15.863 15.863 0 0 1 4.125.56l7.33-14.669-31.377 19.951 5.74 2.895A15.887 15.887 0 0 1 36 20.2z"}),n.createElement("path",{d:"M36 24.1A11.9 11.9 0 1 0 47.9 36 11.9 11.9 0 0 0 36 24.1zm8.132 17.2a.5.5 0 0 1 0 .707l-2.122 2.125a.5.5 0 0 1-.707 0l-5.3-5.3-5.3 5.3a.5.5 0 0 1-.707 0l-2.128-2.122a.5.5 0 0 1 0-.707l5.3-5.3-5.3-5.3a.5.5 0 0 1 0-.707l2.122-2.121a.5.5 0 0 1 .707 0l5.3 5.3 5.3-5.3a.5.5 0 0 1 .707 0l2.122 2.121a.5.5 0 0 1 0 .707l-5.3 5.3z"}))},56519:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(22984),24:r(16044)}}))};s.displayName="PublishRemove",t.default=s},12499:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M22 14h-9.006a.994.994 0 0 0-.994.994v6.012a.994.994 0 0 0 .994.994H22v8.912a.5.5 0 0 0 .848.351L36 18 22.848 4.736a.5.5 0 0 0-.848.352z"}),n.createElement("rect",{height:"28",rx:".707",ry:".707",width:"4",x:"4",y:"4"}))},65348:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M27.067 18H16a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h11.067v10.519a1 1 0 0 0 1.707.707L46 24 28.774 6.774a1 1 0 0 0-1.707.707z"}),n.createElement("rect",{height:"40",rx:"1",ry:"1",width:"6",x:"4",y:"4"}))},47623:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(12499),24:r(65348)}}))};s.displayName="RailRightClose",t.default=s},71904:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M2.71 13.286A15.983 15.983 0 0 1 29.879 7.3l3.268-3.445a.5.5 0 0 1 .853.352V16H22.788a.5.5 0 0 1-.354-.854l4.613-4.863a11.887 11.887 0 0 0-20.393 4.128.488.488 0 0 1-.594.334l-2.993-.816a.518.518 0 0 1-.357-.643zM13.222 20a.5.5 0 0 1 .354.854l-4.617 4.862a11.88 11.88 0 0 0 20.386-4.126.488.488 0 0 1 .594-.334l2.993.816a.518.518 0 0 1 .358.643A15.984 15.984 0 0 1 6.123 28.7l-3.269 3.446A.5.5 0 0 1 2 31.793V20z"}))},51112:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M28.052 19.146l5.548-5.311a13.98 13.98 0 0 0-22.966 5.989l-5.728-1.79a19.969 19.969 0 0 1 33.025-8.345L43.146 4.7a.5.5 0 0 1 .854.35V20H28.405a.5.5 0 0 1-.353-.854zM19.651 28a.5.5 0 0 1 .354.853l-5.626 5.294a13.982 13.982 0 0 0 22.987-5.971l5.728 1.79a19.974 19.974 0 0 1-33.084 8.292L4.854 43.11A.5.5 0 0 1 4 42.757V28z"}))},10666:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(71904),24:r(51112)}}))};s.displayName="Refresh",t.default=s},7238:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M31 0h2v36h-2zm-5.412 31.7L15.633 4.21c-.041-.169-.083-.21-.252-.21h-4.152a.2.2 0 0 0-.21.21 4.559 4.559 0 0 1-.3 1.738L1.485 31.662c-.041.21.045.338.255.338h2.88a.3.3 0 0 0 .338-.255L8.09 23H18.7l3.161 8.79a.378.378 0 0 0 .339.21h3.218c.214 0 .256-.128.17-.3zM13.347 6.88h.041c.759 2.707 3.355 9.972 4.44 13.12h-8.87c1.59-4.584 3.704-10.546 4.389-13.12z"}))},11768:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("rect",{height:"44",rx:".5",ry:".5",width:"2",x:"38",y:"2"}),n.createElement("path",{d:"M12.823 31.3L9.117 41.69a.36.36 0 0 1-.41.31h-3.5c-.255 0-.36-.155-.31-.41l11.218-31.224a5.534 5.534 0 0 0 .36-2.111.242.242 0 0 1 .256-.255h5.043c.205 0 .255.05.306.255L34.167 41.64c.1.205.054.36-.205.36h-3.908a.459.459 0 0 1-.41-.255L25.886 31.3zm11.882-3.958C23.57 24 20.333 14.994 19.353 11.5H19.3c-.875 3.292-3.342 10.186-5.3 15.844z"}),n.createElement("path",{d:"M12.823 31.3L9.117 41.69a.36.36 0 0 1-.41.31h-3.5c-.255 0-.36-.155-.31-.41l11.218-31.224a5.534 5.534 0 0 0 .36-2.111.242.242 0 0 1 .256-.255h5.043c.205 0 .255.05.306.255L34.167 41.64c.1.205.054.36-.205.36h-3.908a.459.459 0 0 1-.41-.255L25.886 31.3zm11.882-3.958C23.57 24 20.333 14.994 19.353 11.5H19.3c-.875 3.292-3.342 10.186-5.3 15.844z"}))},1574:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(7238),24:r(11768)}}))};s.displayName="Rename",t.default=s},94181:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M32.9 15.793h-3.111a11.934 11.934 0 0 0-1.842-4.507l2.205-2.206a1.1 1.1 0 0 0 0-1.56l-1.673-1.672a1.1 1.1 0 0 0-1.561 0l-2.205 2.2a11.935 11.935 0 0 0-4.507-1.841V3.1A1.1 1.1 0 0 0 19.1 2h-2.2a1.1 1.1 0 0 0-1.1 1.1v3.112a11.935 11.935 0 0 0-4.507 1.841l-2.205-2.2a1.1 1.1 0 0 0-1.561 0L5.848 7.52a1.1 1.1 0 0 0 0 1.56l2.205 2.205a11.934 11.934 0 0 0-1.842 4.507H3.1A1.1 1.1 0 0 0 2 16.9v2.2a1.1 1.1 0 0 0 1.1 1.1h3.111a11.932 11.932 0 0 0 1.841 4.507l-2.2 2.2a1.1 1.1 0 0 0 0 1.56l1.672 1.672a1.1 1.1 0 0 0 1.561 0l2.2-2.2a11.934 11.934 0 0 0 4.507 1.842V32.9A1.1 1.1 0 0 0 16.9 34h2.2a1.1 1.1 0 0 0 1.1-1.1v-3.112a11.934 11.934 0 0 0 4.507-1.842l2.2 2.2a1.1 1.1 0 0 0 1.561 0l1.672-1.672a1.1 1.1 0 0 0 0-1.56l-2.2-2.2a11.932 11.932 0 0 0 1.841-4.507H32.9A1.1 1.1 0 0 0 34 19.1v-2.2a1.1 1.1 0 0 0-1.1-1.107zM22.414 18A4.414 4.414 0 1 1 18 13.586 4.414 4.414 0 0 1 22.414 18z"}))},49050:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M42 20.7h-2.993a.487.487 0 0 1-.472-.374 14.882 14.882 0 0 0-1.664-4 .485.485 0 0 1 .07-.6l2.12-2.12a2 2 0 0 0 0-2.828l-1.838-1.84a2 2 0 0 0-2.828 0l-2.12 2.12a.485.485 0 0 1-.6.07 14.87 14.87 0 0 0-4-1.663.487.487 0 0 1-.374-.472V6a2 2 0 0 0-2-2H22.7a2 2 0 0 0-2 2v2.994a.487.487 0 0 1-.374.472 14.87 14.87 0 0 0-4 1.663.485.485 0 0 1-.6-.07l-2.12-2.12a2 2 0 0 0-2.828 0l-1.839 1.838a2 2 0 0 0 0 2.828l2.12 2.12a.485.485 0 0 1 .07.6 14.882 14.882 0 0 0-1.664 4 .487.487 0 0 1-.472.374H6a2 2 0 0 0-2 2v2.6a2 2 0 0 0 2 2h2.993a.487.487 0 0 1 .472.374 14.882 14.882 0 0 0 1.664 4 .485.485 0 0 1-.07.6l-2.12 2.12a2 2 0 0 0 0 2.828l1.839 1.839a2 2 0 0 0 2.829 0l2.12-2.12a.485.485 0 0 1 .6-.07 14.882 14.882 0 0 0 4 1.663.487.487 0 0 1 .374.472V42a2 2 0 0 0 2 2h2.6a2 2 0 0 0 2-2v-2.994a.487.487 0 0 1 .374-.472 14.882 14.882 0 0 0 4-1.663.485.485 0 0 1 .6.07l2.12 2.12a2 2 0 0 0 2.829 0l1.839-1.839a2 2 0 0 0 0-2.828l-2.12-2.12a.485.485 0 0 1-.07-.6 14.882 14.882 0 0 0 1.664-4 .487.487 0 0 1 .472-.374H42a2 2 0 0 0 2-2v-2.6a2 2 0 0 0-2-2zM24 31.5a7.5 7.5 0 1 1 7.5-7.5 7.5 7.5 0 0 1-7.5 7.5z"}))},95716:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(94181),24:r(49050)}}))};s.displayName="Settings",t.default=s},36058:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M24.476 7.165L18 0l-6.46 7.165a.5.5 0 0 0 .371.835H16v11.5a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5V8h4.1a.5.5 0 0 0 .376-.835z"}),n.createElement("path",{d:"M33 8h-6.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5H30v16H6V12h3.5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5H3a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h30a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1z"}))},94807:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M45 12h-6.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5H42v22H6V16h3.5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5H3a1 1 0 0 0-1 1v28a1 1 0 0 0 1 1h42a1 1 0 0 0 1-1V13a1 1 0 0 0-1-1z"}),n.createElement("path",{d:"M33.722 10.331L24 0l-9.708 10.331A1 1 0 0 0 15.035 12H20v13.5a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5V12h4.979a1 1 0 0 0 .743-1.669z"}))},4007:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(36058),24:r(94807)}}))};s.displayName="Share",t.default=s},46581:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("ellipse",{cx:"10.445",cy:"31.143",rx:"2.667",ry:"2.917"}),n.createElement("ellipse",{cx:"25.778",cy:"31.143",rx:"2.667",ry:"2.917"}),n.createElement("path",{d:"M29.326 23.857H10.469l.762-2.458H28a1.333 1.333 0 0 0 1.307-1.072L33.974 7.66a1.333 1.333 0 0 0-1.307-1.595h-.127v-.03H6.5l-1.289-3.5A1.333 1.333 0 0 0 3.889 1.4H1.333a1.333 1.333 0 1 0 0 2.667h1.406L8.667 20l-1.294 5.075A1.569 1.569 0 0 0 8.667 27h20.666a1.589 1.589 0 0 0 1.333-1.6 1.534 1.534 0 0 0-1.34-1.543zM7.529 8.836H30.6l-3.693 9.9H11.174z"}))},7628:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M17.56 42a4 4 0 1 1-4-4 4 4 0 0 1 4 4zm20 0a4 4 0 1 1-4-4 4 4 0 0 1 4 4zm2-10H14.483l.922-4H39.56a2 2 0 0 0 1.961-1.608l4.44-18A2 2 0 0 0 44 6H11.78l-.41-2.294A2 2 0 0 0 9.392 2H4a2 2 0 0 0 0 4h3.667l3.893 19.9-1.94 7.611A2 2 0 0 0 11.56 36h28a2 2 0 1 0 0-4zm2-22l-3.641 14h-22.6l-2.692-14z"}))},6827:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(46581),24:r(7628)}}))};s.displayName="ShoppingCart",t.default=s},80108:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"28",x:"4",y:"16"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"28",x:"4",y:"6"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"28",x:"4",y:"26"}))},74060:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("rect",{height:"6",rx:"1",ry:"1",width:"32",x:"8",y:"20"}),n.createElement("rect",{height:"6",rx:"1",ry:"1",width:"32",x:"8",y:"8"}),n.createElement("rect",{height:"6",rx:"1",ry:"1",width:"32",x:"8",y:"32"}))},94257:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(80108),24:r(74060)}}))};s.displayName="ShowMenu",t.default=s},10709:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M32 9.044v15h2.565a.431.431 0 0 1 .262.724l-3.971 3.955a.5.5 0 0 1-.706 0l-3.963-3.954a.431.431 0 0 1 .262-.724h2.565l.006-15a1 1 0 0 1 1-1h.993a.988.988 0 0 1 .987.999z"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"12",x:"2",y:"24"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"16",x:"2",y:"16"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"20",x:"2",y:"8"}))},55898:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M38 13v19l-3.405.011a.5.5 0 0 0-.349.862L40 38.615l5.766-5.742a.5.5 0 0 0-.349-.862L42 32V13a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1z"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"28",x:"4",y:"12"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"24",x:"4",y:"22"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"20",x:"4",y:"32"}))},3637:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(10709),24:r(55898)}}))};s.displayName="SortOrderDown",t.default=s},72957:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M32 26.956v-15h2.565a.431.431 0 0 0 .262-.724l-3.971-3.956a.5.5 0 0 0-.706 0l-3.963 3.954a.431.431 0 0 0 .262.724h2.565l.006 15a1 1 0 0 0 1 1h.993a.988.988 0 0 0 .987-.998z"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"12",x:"2",y:"8"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"16",x:"2",y:"16"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"20",x:"2",y:"24"}))},75526:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M38 35V16l-3.405-.011a.5.5 0 0 1-.349-.862L40 9.385l5.766 5.742a.5.5 0 0 1-.349.862L42 16v19a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1z"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"28",x:"4",y:"32"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"24",x:"4",y:"22"}),n.createElement("rect",{height:"4",rx:"1",ry:"1",width:"20",x:"4",y:"12"}))},15431:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(72957),24:r(75526)}}))};s.displayName="SortOrderUp",t.default=s},18652:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M5 4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V8h8v20h-3a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-3V8h8v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1z"}))},85690:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M38 6H8a2 2 0 0 0-2 2v7a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-5h10v28h-3a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-3V10h10v5a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V8a2 2 0 0 0-2-2z"}))},37457:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(18652),24:r(85690)}}))};s.displayName="Text",t.default=s},59560:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M13.4 4c-4.5 0-8.919 3.623-9.353 8.105A9.008 9.008 0 0 0 13 22c1.05 0 3-.075 3-.075V33.5a.5.5 0 0 0 .5.5h2a.5.5 0 0 0 .5-.5V7h6v26.5a.5.5 0 0 0 .5.5h2a.5.5 0 0 0 .5-.5V5a1 1 0 0 0-1-1z"}))},80575:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M18.412 4A12.276 12.276 0 0 0 6.1 14.427 12.012 12.012 0 0 0 18 28c1.4 0 4-.1 4-.1V43a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V8h8v35a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V6a2 2 0 0 0-2-2z"}))},20229:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(59560),24:r(80575)}}))};s.displayName="TextParagraph",t.default=s},59631:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M22.325 21.547v-2.224a1.539 1.539 0 0 1 .392-.993A11.746 11.746 0 0 0 25.388 11c0-5.547-2.942-8.647-7.387-8.647s-7.47 3.222-7.47 8.647a11.873 11.873 0 0 0 2.8 7.329 1.54 1.54 0 0 1 .392.993v2.214a1.528 1.528 0 0 1-1.333 1.542c-8.931.777-10.326 6.886-10.326 9.3 0 .268.032 1.321.051 1.585h31.857S34 32.642 34 32.374c0-2.309-1.577-8.4-10.346-9.286a1.535 1.535 0 0 1-1.329-1.541z"}))},65589:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M29.026 27.832v-2.806a2.038 2.038 0 0 1 .455-1.253 17.506 17.506 0 0 0 3.1-9.86c0-7-3.419-10.3-8.585-10.3s-8.683 3.456-8.683 10.3a17.634 17.634 0 0 0 3.253 9.86 2.038 2.038 0 0 1 .455 1.253v2.794a1.888 1.888 0 0 1-1.549 1.946C6.182 30.881 4 38.96 4 42c0 .338.037 1.667.059 2h39.882c.023-.333.059-1.662.059-2 0-2.914-2.091-11.028-13.431-12.223a1.891 1.891 0 0 1-1.543-1.945z"}))},3335:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(59631),24:r(65589)}}))};s.displayName="User",t.default=s},89331:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M19.011 20.333v-2.084a1.442 1.442 0 0 1 .367-.93 11 11 0 0 0 2.5-6.866c0-5.2-2.756-8.1-6.919-8.1s-7 3.018-7 8.1a11.121 11.121 0 0 0 2.622 6.865 1.442 1.442 0 0 1 .367.93v2.074A1.431 1.431 0 0 1 9.7 21.768C1.338 22.5.031 28.218.031 30.474c0 .251.03 3.237.048 3.484h29.842s.026-3.234.026-3.484c0-2.163-1.478-7.864-9.691-8.7a1.437 1.437 0 0 1-1.245-1.441z"}),n.createElement("path",{d:"M27.374 19.534a1.342 1.342 0 0 1-1.16-1.346v-1.013a1.531 1.531 0 0 1 .342-.867 12.144 12.144 0 0 0 1.869-6.4c0-4.354-2.57-7.552-6.452-7.552-.232 0-.445.042-.668.062a10.931 10.931 0 0 1 2.974 8.037 13.46 13.46 0 0 1-2.869 8.171v.874c8.622 1.281 10.936 7.667 10.936 10.972 0 .108 0 .768-.01 1.484h3.586s.024-3.15.024-3.384a9.564 9.564 0 0 0-8.572-9.038z"}))},84127:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M24.025 28.479v-2.694a1.958 1.958 0 0 1 .438-1.2 16.805 16.805 0 0 0 2.98-9.465c0-6.72-3.283-9.89-8.242-9.89s-8.336 3.317-8.336 9.89a16.925 16.925 0 0 0 3.126 9.469 1.948 1.948 0 0 1 .434 1.2v2.683a1.947 1.947 0 0 1-1.67 1.887C2.071 31.494 0 38.7 0 41.6V44h38v-2.4c0-2.782-1.59-10.024-12.319-11.235a1.949 1.949 0 0 1-1.656-1.886z"}),n.createElement("path",{d:"M36.559 27.851a1.755 1.755 0 0 1-1.5-1.7v-2.422a1.762 1.762 0 0 1 .394-1.083 15.125 15.125 0 0 0 2.682-8.519c0-6.048-2.954-8.9-7.418-8.9a8.337 8.337 0 0 0-2.289.338c1.729 2.17 2.851 5.273 2.851 9.552a20.732 20.732 0 0 1-3.417 11.32v.369C37.706 28.6 41.816 35.42 42 40h6v-2.4c0-2.5-1.787-8.664-11.441-9.749z"}))},66619:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(89331),24:r(84127)}}))};s.displayName="UserGroup",t.default=s},36995:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M14 25.013a2.737 2.737 0 0 1 1.833-2.86c0-3.219 2.049-4.882 3.108-5.964a10.942 10.942 0 0 0 2.939-7.736c0-5.2-2.756-8.1-6.919-8.1s-7 3.018-7 8.1a11.121 11.121 0 0 0 2.622 6.866 1.443 1.443 0 0 1 .367.93v2.074a1.431 1.431 0 0 1-1.25 1.444C1.338 20.5.031 26.217.031 28.474.031 28.725 0 30 0 30h14z"}),n.createElement("path",{d:"M32.987 24.013l-1 .038v-.718a7.205 7.205 0 0 0-6.567-7.323 6.94 6.94 0 0 0-7.313 6.93v1.111l-1.094-.039a1 1 0 0 0-1.012 1V35a1 1 0 0 0 1 1H33a1 1 0 0 0 1-1v-9.987a1 1 0 0 0-1.013-1zM20.882 22.94a4.164 4.164 0 1 1 8.328 0v1.111h-8.328zm5.552 8.482v1.928a.694.694 0 0 1-.694.694h-1.388a.694.694 0 0 1-.694-.694v-1.928a2.082 2.082 0 1 1 2.776 0z"}))},11169:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M18 33a5 5 0 0 1 2.037-4.025 13.991 13.991 0 0 1 5.5-10.111 17.789 17.789 0 0 0 1.909-7.747c0-6.72-3.282-9.89-8.242-9.89s-8.336 3.317-8.336 9.89a16.927 16.927 0 0 0 3.126 9.469 1.949 1.949 0 0 1 .434 1.2v2.683a1.947 1.947 0 0 1-1.67 1.887C2.071 27.494 0 34.7 0 37.6V40h18zm27-1h-1v-2a10 10 0 0 0-20 0v2h-1a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h22a1 1 0 0 0 1-1V33a1 1 0 0 0-1-1zm-17-2a6 6 0 0 1 12 0v2H28zm8 10.222V43a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-2.779a3 3 0 1 1 4 0z"}))},42166:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(36995),24:r(11169)}}))};s.displayName="UserLock",t.default=s},82227:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("rect",{height:"8",rx:"1",ry:"1",width:"8",x:"2",y:"2"}),n.createElement("rect",{height:"4",rx:".5",ry:".5",width:"22",x:"12",y:"4"}),n.createElement("rect",{height:"4",rx:".5",ry:".5",width:"22",x:"12",y:"16"}),n.createElement("rect",{height:"4",rx:".5",ry:".5",width:"22",x:"12",y:"28"}),n.createElement("rect",{height:"8",rx:"1",ry:"1",width:"8",x:"2",y:"14"}),n.createElement("rect",{height:"8",rx:"1",ry:"1",width:"8",x:"2",y:"26"}))},35146:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("rect",{height:"10",rx:"2",ry:"2",width:"10",x:"4",y:"6"}),n.createElement("rect",{height:"10",rx:"2",ry:"2",width:"10",x:"4",y:"20"}),n.createElement("rect",{height:"10",rx:"2",ry:"2",width:"10",x:"4",y:"34"}),n.createElement("rect",{height:"6",rx:"1",ry:"1",width:"24",x:"18",y:"8"}),n.createElement("rect",{height:"6",rx:"1",ry:"1",width:"24",x:"18",y:"22"}),n.createElement("rect",{height:"6",rx:"1",ry:"1",width:"24",x:"18",y:"36"}))},44756:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(82227),24:r(35146)}}))};s.displayName="ViewList",t.default=s},3449:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 36 36"},n.createElement("path",{d:"M24.613 8.58A14.973 14.973 0 0 0 18 6.937c-8.664 0-15.75 8.625-15.75 11.424 0 3 7.458 10.7 15.686 10.7 8.295 0 15.814-7.706 15.814-10.7 0-2.361-4.214-7.342-9.137-9.781zM18 27.225A9.225 9.225 0 1 1 27.225 18 9.225 9.225 0 0 1 18 27.225z"}),n.createElement("path",{d:"M20.667 18.083A2.667 2.667 0 0 1 18 15.417a2.631 2.631 0 0 1 1.35-2.269 4.912 4.912 0 0 0-1.35-.21A5.063 5.063 0 1 0 23.063 18a4.7 4.7 0 0 0-.175-1.2 2.623 2.623 0 0 1-2.221 1.283z"}))},56750:(e,t,r)=>{"use strict";var n=r(89526);e.exports=n.createElement("svg",{viewBox:"0 0 48 48"},n.createElement("path",{d:"M32.817 11.44A19.965 19.965 0 0 0 24 9.249c-11.552 0-21 11.5-21 15.231 0 4 9.944 14.271 20.915 14.271C34.975 38.751 45 28.477 45 24.48c0-3.152-5.619-9.788-12.183-13.04zM24 36.3A12.3 12.3 0 1 1 36.3 24 12.3 12.3 0 0 1 24 36.3z"}),n.createElement("path",{d:"M27.556 24.111A3.556 3.556 0 0 1 24 20.555a3.508 3.508 0 0 1 1.8-3.026 6.551 6.551 0 0 0-1.8-.28A6.75 6.75 0 1 0 30.75 24a6.268 6.268 0 0 0-.233-1.594 3.5 3.5 0 0 1-2.961 1.705z"}))},22622:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=a(r(69820)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(i.default,n({},e,{icon:{18:r(3449),24:r(56750)}}))};s.displayName="Visibility",t.default=s},77487:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(69820)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return i.default.createElement(n.default,e,i.default.createElement("svg",{className:"spectrum-UIIcon-AlertMedium"},i.default.createElement("path",{d:"M8.564 1.289L.2 16.256A.5.5 0 0 0 .636 17h16.728a.5.5 0 0 0 .5-.5.494.494 0 0 0-.064-.244L9.436 1.289a.5.5 0 0 0-.872 0zM10 14.75a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25zm0-3a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-6a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25z",className:"spectrum-UIIcon--medium"}),i.default.createElement("path",{d:"M10.563 2.206l-9.249 16.55a.5.5 0 0 0 .436.744h18.5a.5.5 0 0 0 .5-.5.494.494 0 0 0-.064-.244l-9.251-16.55a.5.5 0 0 0-.872 0zM12 17.25a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25zm0-3.5a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-6a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25z",className:"spectrum-UIIcon--large"})))};a.displayName="AlertMedium",t.default=a},50752:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(69820)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return i.default.createElement(n.default,e,i.default.createElement("svg",{className:"spectrum-UIIcon-CheckmarkMedium"},i.default.createElement("path",{d:"M4.5 10a1.023 1.023 0 0 1-.8-.384l-2.488-3a1 1 0 0 1 1.577-1.233L4.5 7.376l4.712-5.991a1 1 0 1 1 1.576 1.23l-5.511 7A.977.977 0 0 1 4.5 10z",className:"spectrum-UIIcon--medium"}),i.default.createElement("path",{d:"M6 14a1 1 0 0 1-.788-.385l-4-5a1 1 0 1 1 1.576-1.23L6 11.376l7.213-8.991a1 1 0 1 1 1.576 1.231l-8 10A1 1 0 0 1 6 14z",className:"spectrum-UIIcon--large"})))};a.displayName="CheckmarkMedium",t.default=a},41628:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(69820)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return i.default.createElement(n.default,e,i.default.createElement("svg",{className:"spectrum-UIIcon-CheckmarkSmall"},i.default.createElement("path",{d:"M3.788 9A1 1 0 0 1 3 8.615l-2.288-3a1 1 0 1 1 1.576-1.23l1.5 1.991 3.924-4.991a1 1 0 1 1 1.576 1.23l-4.712 6A1 1 0 0 1 3.788 9z",className:"spectrum-UIIcon--medium"}),i.default.createElement("path",{d:"M4.5 11a1 1 0 0 1-.788-.385l-3-4A.991.991 0 0 1 .5 6a1 1 0 0 1 1.788-.616L4.5 8.376l5.212-6.991a1 1 0 1 1 1.576 1.231l-6 8A1 1 0 0 1 4.5 11z",className:"spectrum-UIIcon--large"})))};a.displayName="CheckmarkSmall",t.default=a},59860:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(69820)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return i.default.createElement(n.default,e,i.default.createElement("svg",{className:"spectrum-UIIcon-ChevronDownMedium"},i.default.createElement("path",{d:"M9.99 1.01A1 1 0 0 0 8.283.3L5 3.586 1.717.3A1 1 0 1 0 .3 1.717L4.293 5.7a1 1 0 0 0 1.414 0L9.7 1.717a1 1 0 0 0 .29-.707z",className:"spectrum-UIIcon--medium"}),i.default.createElement("path",{d:"M11.99 1.51A1 1 0 0 0 10.283.8L6 5.086 1.717.8A1 1 0 1 0 .3 2.217l4.99 4.99a1 1 0 0 0 1.414 0l4.99-4.99a1 1 0 0 0 .296-.707z",className:"spectrum-UIIcon--large"})))};a.displayName="ChevronDownMedium",t.default=a},63076:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(69820)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return i.default.createElement(n.default,e,i.default.createElement("svg",{className:"spectrum-UIIcon-ChevronRightMedium"},i.default.createElement("path",{d:"M5.99 5a1 1 0 0 0-.29-.707L1.717.3A1 1 0 1 0 .3 1.717L3.586 5 .3 8.283A1 1 0 1 0 1.717 9.7L5.7 5.707A1 1 0 0 0 5.99 5z",className:"spectrum-UIIcon--medium"}),i.default.createElement("path",{d:"M7.5 6a1 1 0 0 0-.293-.707L2.217.3A1 1 0 1 0 .8 1.717L5.086 6 .8 10.283A1 1 0 1 0 2.217 11.7l4.99-4.99A1 1 0 0 0 7.5 6z",className:"spectrum-UIIcon--large"})))};a.displayName="ChevronRightMedium",t.default=a},98681:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(69820)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return i.default.createElement(n.default,e,i.default.createElement("svg",{className:"spectrum-UIIcon-CornerTriangle"},i.default.createElement("path",{d:"M4.74.01a.25.25 0 0 0-.177.073l-4.48 4.48a.25.25 0 0 0 .177.427h4.48a.25.25 0 0 0 .25-.25V.26a.25.25 0 0 0-.25-.25z",className:"spectrum-UIIcon--medium"}),i.default.createElement("path",{d:"M5.74.01a.25.25 0 0 0-.177.073l-5.48 5.48a.25.25 0 0 0 .177.427h5.48a.25.25 0 0 0 .25-.25V.26a.25.25 0 0 0-.25-.25z",className:"spectrum-UIIcon--large"})))};a.displayName="CornerTriangle",t.default=a},95318:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(69820)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return i.default.createElement(n.default,e,i.default.createElement("svg",{className:"spectrum-UIIcon-CrossLarge"},i.default.createElement("path",{d:"M11.7 10.283L7.414 6 11.7 1.717A1 1 0 1 0 10.283.3L6 4.586 1.717.3A1 1 0 1 0 .3 1.717L4.586 6 .3 10.283A1 1 0 1 0 1.717 11.7L6 7.414l4.283 4.286a1 1 0 1 0 1.417-1.417z",className:"spectrum-UIIcon--medium"}),i.default.createElement("path",{d:"M15.7 14.283L9.414 8 15.7 1.717A1 1 0 1 0 14.283.3L8 6.586 1.717.3A1 1 0 1 0 .3 1.717L6.586 8 .3 14.283A1 1 0 1 0 1.717 15.7L8 9.414l6.283 6.286a1 1 0 1 0 1.417-1.417z",className:"spectrum-UIIcon--large"})))};a.displayName="CrossLarge",t.default=a},45537:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(69820)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return i.default.createElement(n.default,e,i.default.createElement("svg",{className:"spectrum-UIIcon-CrossMedium"},i.default.createElement("path",{d:"M7.77 6.709L5.061 4 7.77 1.291A.75.75 0 1 0 6.709.23L4 2.939 1.291.23A.75.75 0 1 0 .23 1.291L2.939 4 .23 6.709A.75.75 0 1 0 1.291 7.77L4 5.061 6.709 7.77A.75.75 0 1 0 7.77 6.709z",className:"spectrum-UIIcon--medium"}),i.default.createElement("path",{d:"M9.77 8.709L6.061 5 9.77 1.291A.75.75 0 1 0 8.709.23L5 3.939 1.291.23A.75.75 0 1 0 .23 1.291L3.939 5 .23 8.709A.75.75 0 1 0 1.291 9.77L5 6.061 8.709 9.77A.75.75 0 1 0 9.77 8.709z",className:"spectrum-UIIcon--large"})))};a.displayName="CrossMedium",t.default=a},87535:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(69820)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return i.default.createElement(n.default,e,i.default.createElement("svg",{className:"spectrum-UIIcon-CrossSmall"},i.default.createElement("path",{d:"M7.317 6.433L4.884 4l2.433-2.433a.625.625 0 0 0-.884-.884L4 3.116 1.567.683a.625.625 0 0 0-.884.884L3.116 4 .683 6.433a.625.625 0 0 0 .884.884L4 4.884l2.433 2.433a.625.625 0 0 0 .884-.884z",className:"spectrum-UIIcon--medium"}),i.default.createElement("path",{d:"M9.317 8.433L5.884 5l3.433-3.433a.625.625 0 0 0-.884-.884L5 4.116 1.567.683a.625.625 0 0 0-.884.884C.83 1.713 2.769 3.657 4.116 5L.683 8.433a.625.625 0 0 0 .884.884L5 5.884l3.433 3.433a.625.625 0 0 0 .884-.884z",className:"spectrum-UIIcon--large"})))};a.displayName="CrossSmall",t.default=a},54857:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(69820)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return i.default.createElement(n.default,e,i.default.createElement("svg",{className:"spectrum-UIIcon-DashSmall"},i.default.createElement("path",{d:"M8 4H2a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2z",className:"spectrum-UIIcon--medium"}),i.default.createElement("path",{d:"M10.99 5H1.01a1 1 0 0 0 0 2h9.98a1 1 0 1 0 0-2z",className:"spectrum-UIIcon--large"})))};a.displayName="DashSmall",t.default=a},16619:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(69820)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return i.default.createElement(n.default,e,i.default.createElement("svg",{className:"spectrum-UIIcon-InfoMedium"},i.default.createElement("path",{d:"M9 1a8 8 0 1 0 8 8 8 8 0 0 0-8-8zm-.15 2.15a1.359 1.359 0 0 1 1.431 1.283v.129a1.332 1.332 0 0 1-1.223 1.432 1.444 1.444 0 0 1-.208 0 1.353 1.353 0 0 1-1.432-1.269 1.5 1.5 0 0 1 0-.164 1.359 1.359 0 0 1 1.3-1.412c.047-.002.089-.001.132.001zM11 13.5a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5H8V9h-.5a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 .5.5V12h.5a.5.5 0 0 1 .5.5z",className:"spectrum-UIIcon--medium"}),i.default.createElement("path",{d:"M11 2a9 9 0 1 0 9 9 9 9 0 0 0-9-9zm-.15 2.65a1.359 1.359 0 0 1 1.431 1.283v.129a1.332 1.332 0 0 1-1.224 1.432 1.444 1.444 0 0 1-.208 0 1.353 1.353 0 0 1-1.431-1.269 1.5 1.5 0 0 1 0-.164 1.359 1.359 0 0 1 1.3-1.412c.047-.002.089-.001.132.001zM13.5 16a.5.5 0 0 1-.5.5H9a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h1v-4H9a.5.5 0 0 1-.5-.5V9a.5.5 0 0 1 .5-.5h2.5a.5.5 0 0 1 .5.5v5.5h1a.5.5 0 0 1 .5.5z",className:"spectrum-UIIcon--large"})))};a.displayName="InfoMedium",t.default=a},98337:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(69820)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return i.default.createElement(n.default,e,i.default.createElement("svg",{className:"spectrum-UIIcon-Magnifier"},i.default.createElement("path",{d:"M15.77 14.709l-4.534-4.534a6.013 6.013 0 1 0-1.061 1.061l4.534 4.534a.75.75 0 1 0 1.061-1.061zM6.5 11A4.5 4.5 0 1 1 11 6.5 4.505 4.505 0 0 1 6.5 11z",className:"spectrum-UIIcon--medium"}),i.default.createElement("path",{d:"M19.77 18.709l-5.464-5.463a7.5 7.5 0 1 0-1.06 1.06l5.463 5.464a.75.75 0 1 0 1.061-1.061zM2.5 8.5a6 6 0 1 1 6 6 6.007 6.007 0 0 1-6-6z",className:"spectrum-UIIcon--large"})))};a.displayName="Magnifier",t.default=a},69880:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(69820)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return i.default.createElement(n.default,e,i.default.createElement("svg",{className:"spectrum-UIIcon-SuccessMedium"},i.default.createElement("path",{d:"M9 1a8 8 0 1 0 8 8 8 8 0 0 0-8-8zm5.333 4.54l-6.324 8.13a.6.6 0 0 1-.437.23h-.037a.6.6 0 0 1-.425-.176l-3.893-3.9a.6.6 0 0 1 0-.849l.663-.663a.6.6 0 0 1 .848 0L7.4 10.991l5.256-6.754a.6.6 0 0 1 .843-.1l.728.566a.6.6 0 0 1 .106.837z",className:"spectrum-UIIcon--medium"}),i.default.createElement("path",{d:"M11 2a9 9 0 1 0 9 9 9 9 0 0 0-9-9zm5.638 5.609L10.1 15.652a.5.5 0 0 1-.7.073.44.44 0 0 1-.039-.035L5.086 11.5a.5.5 0 0 1 0-.707l.707-.707a.5.5 0 0 1 .707 0L9.6 13.1l5.486-6.751a.5.5 0 0 1 .7-.073l.776.631a.5.5 0 0 1 .076.702z",className:"spectrum-UIIcon--large"})))};a.displayName="SuccessMedium",t.default=a},69820:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=a(r(64403)),i=a(r(2652)),o=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(21666);const l={XXS:18,XS:24,S:18,M:24,L:18,XL:24,XXL:24};function u(e){let t=e.icon,r=e.size,i=void 0===r?"M":r,a=e.className,u=e.children,d=e["aria-label"],p=e["aria-hidden"],h=e.role,f=void 0===h?"img":h,m=e.alt,g=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["icon","size","className","children","aria-label","aria-hidden","role","alt"]),v=t&&t[l[i]]||t||u;if("string"==typeof v)throw new Error("String icon names are deprecated. Please import icons from react-spectrum/Icon/IconName and render as <IconName />.");return p&&"false"!==p||(p=void 0),o.default.cloneElement(v,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({focusable:"false","aria-label":d||m,"aria-hidden":!d&&!m||p,role:f,className:(0,n.default)(v.props.className,"spectrum-Icon",{[`spectrum-Icon--size${i}`]:i},a)},g))}u.displayName="Icon",u.propTypes={size:i.default.string}},95485:(e,t,r)=>{"use strict";e.exports=r(3567)},3567:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=c(r(64403)),i=c(r(40743)),o=c(r(45079)),a=c(r(2652)),s=c(r(89526));function c(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}r(45947),r(66759),r(99555),r(10385),r(22489);class u extends s.default.Component{isIllustrationDecorative(){const e=this.props,t=e.illustration,r=e.heading,n=e.description;if(t){const e=t.props,r=e["aria-label"],n=e["aria-labelledby"],i=e["aria-hidden"];if(null!=i)return i;if(r||n)return!1}return!(!r&&!n)}render(){let e=this.props,t=e.illustration,r=void 0===t?null:t,a=e.className,c=e.heading,u=e.description,d=e.ariaLevel,p=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["illustration","className","heading","description","ariaLevel"]);return!r||r.props.className&&r.props.className.includes("spectrum-IllustratedMessage-illustration")||(r=s.default.cloneElement(r,{className:(0,n.default)(r.props.className,"spectrum-IllustratedMessage-illustration"),"aria-hidden":this.isIllustrationDecorative()||null})),s.default.createElement("div",l({},(0,i.default)(p),{className:(0,n.default)("spectrum-IllustratedMessage",a)}),r,c&&s.default.createElement(o.default,{variant:"pageTitle",className:"spectrum-IllustratedMessage-heading","aria-level":d},c),u&&s.default.createElement("p",{className:"spectrum-Body--secondary spectrum-IllustratedMessage-description"},u))}}t.default=u,u.propTypes={heading:a.default.string,description:a.default.oneOfType([a.default.string,a.default.element]),illustration:a.default.element,ariaLevel:a.default.number},u.defaultProps={heading:null,description:null}},92497:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"List",{enumerable:!0,get:function(){return i.default}}),t.ListItem=void 0;var n=o(r(58648)),i=o(r(77432));function o(e){return e&&e.__esModule?e:{default:e}}const a=n.default.select("ListItem",(()=>r(38720)),(()=>r(69894)));t.ListItem=a},77432:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=m(r(64403)),s=m(r(36065)),c=m(r(99870)),l=m(r(40743)),u=m(r(75870)),d=m(r(52743)),p=m(r(2652)),h=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}(r(89526));function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function m(e){return e&&e.__esModule?e:{default:e}}function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},g.apply(this,arguments)}r(32678),r(39575),r(70284),r(47949),r(46701);let v=(0,s.default)(n=(0,d.default)((o=i=class extends h.Component{constructor(e){super(e),this.listId=(0,c.default)()}render(){const e=this.props,t=e.className,r=e.children,n=e.role,i=void 0===n?"listbox":n,o=e.autoFocus,s=e.selectable,c=void 0!==s&&s,d=e.id,p=void 0===d?this.listId:d,f=e.typeToSelect,m=void 0===f||f,v=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["className","children","role","autoFocus","selectable","id","typeToSelect"]);return h.default.createElement(u.default,{itemSelector:".spectrum-Menu-item:not(.is-disabled)",selectedItemSelector:".spectrum-Menu-item:not(.is-disabled).is-selected",typeToSelect:m,autoFocus:o},h.default.createElement("ul",g({id:p,className:(0,a.default)("spectrum-Menu",{"is-selectable":c},t),role:i},(0,l.default)(v)),r))}},i.propTypes={autoFocus:p.default.bool,className:p.default.string,role:p.default.oneOf(["listbox","menu"]),selectable:p.default.bool,typeToSelect:p.default.bool},i.defaultProps={role:"listbox"},n=o))||n)||n;t.default=v},69894:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=g(r(68378)),s=g(r(50752)),c=g(r(63076)),l=g(r(64403)),u=r(44800),d=g(r(40743)),p=r(51884),h=g(r(2652)),f=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=m();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}(r(89526));function m(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return m=function(){return e},e}function g(e){return e&&e.__esModule?e:{default:e}}function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(this,arguments)}let y=(0,a.default)((o=i=class extends f.Component{handleMouseEnter(e){this.props.onMouseEnter?this.props.onMouseEnter(e):e.currentTarget.focus()}handleFocus(e){this.props.onFocus&&this.props.onFocus(e)}handleBlur(e){this.props.onBlur&&this.props.onBlur(e)}onSelectFocused(e){e.preventDefault(),this.props.onClick&&this.props.onClick(e),this.props.onSelect&&!e.isPropagationStopped()&&this.props.onSelect(this.props.value,e)}onKeyDown(e){const t=this.props,r=t.onKeyDown,n=t.disabled;r&&r(e),n||p.interpretKeyboardEvent.call(this,e)}onTab(e){this.props.onTab&&this.props.onTab(e)}render(){const e=this.props,t=e.icon,r=e.label,n=e.className,i=e.children,o=e.selected,a=e.disabled,p=e.focused,h=e.hasNestedMenu,m=e.tabIndex,g=void 0===m?0:m,y=e.role,b=void 0===y?"option":y,_=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["icon","label","className","children","selected","disabled","focused","hasNestedMenu","tabIndex","role"]);return delete _.value,f.default.createElement("li",v({},(0,d.default)(_),{className:(0,l.default)("spectrum-Menu-item",{"is-selected":o,"is-disabled":a,"is-focused":p},n),onKeyDown:this.onKeyDown,onMouseEnter:a?null:this.handleMouseEnter,onFocus:a?null:this.handleFocus,onClick:a?null:this.onSelectFocused,onBlur:this.handleBlur,tabIndex:a?null:g,role:b,"aria-checked":"menuitemcheckbox"===b||"menuitemradio"===b?!!o:null,"aria-selected":"option"===b?!!o||!!p:null,"aria-disabled":a||null}),(0,u.cloneIcon)(t,{size:"S"}),f.default.createElement("span",{className:"spectrum-Menu-itemLabel"},r||i),o&&f.default.createElement(s.default,{size:null,className:"spectrum-Menu-checkmark"}),h&&f.default.createElement(c.default,{className:"spectrum-Menu-chevron"}))}},i.propTypes={selected:h.default.bool,disabled:h.default.bool,onClick:h.default.func,onSelect:h.default.func,role:h.default.oneOf(["option","menuitem","menuitemcheckbox","menuitemradio"])},i.defaultProps={selected:!1,disabled:!1,onSelect:function(){},role:"option"},n=o))||n;t.default=y},38720:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=p(r(68378)),o=p(r(50752)),a=p(r(63076)),s=p(r(64403)),c=r(44800),l=p(r(40743)),u=p(r(69894)),d=p(r(89526));function p(e){return e&&e.__esModule?e:{default:e}}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}let f=(0,i.default)(n=class extends u.default{onUxpSelectFocused(e){e.preventDefault(),this.props.onUxpSelect&&!e.isPropagationStopped()&&this.props.onUxpSelect(this.props.value,e)}render(){const e=this.props,t=e.icon,r=e.label,n=e.className,i=e.children,u=e.selected,p=e.disabled,f=e.focused,m=e.hasNestedMenu,g=e.tabIndex,v=void 0===g?0:g,y=e.role,b=void 0===y?"option":y,_=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["icon","label","className","children","selected","disabled","focused","hasNestedMenu","tabIndex","role"]);return delete _.value,delete _.onMouseDown,d.default.createElement("li",h({},(0,l.default)(_),{className:(0,s.default)("spectrum-Menu-item",{"is-selected":u,"is-disabled":p,"is-focused":f},n),onKeyDown:this.onKeyDown,onMouseEnter:p?null:this.handleMouseEnter,onFocus:p?null:this.handleFocus,onMouseDown:p?null:this.onUxpSelectFocused,onClick:p?null:this.onSelectFocused,onBlur:this.handleBlur,tabIndex:p?null:v,role:b,"aria-checked":"menuitemcheckbox"===b||"menuitemradio"===b?!!u:null,"aria-selected":"option"===b?!!u||!!f:null,"aria-disabled":p||null}),(0,c.cloneIcon)(t,{size:"S"}),d.default.createElement("span",{className:"spectrum-Menu-itemLabel"},r||i),u&&d.default.createElement(o.default,{size:null,className:"spectrum-Menu-checkmark"}),m&&d.default.createElement(a.default,{className:"spectrum-Menu-chevron"}))}})||n;t.default=f},12252:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"MenuItem",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"MenuDivider",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"MenuHeading",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"SubMenu",{enumerable:!0,get:function(){return s.default}}),t.Menu=void 0;var n=c(r(58648)),i=c(r(28900)),o=c(r(44613)),a=c(r(33950)),s=c(r(57662));function c(e){return e&&e.__esModule?e:{default:e}}const l=n.default.select("Menu",(()=>r(4659)),(()=>r(62880)));t.Menu=l},62880:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=d(r(68378)),s=r(92497),c=d(r(50865)),l=d(r(2652)),u=d(r(89526));function d(e){return e&&e.__esModule?e:{default:e}}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let g=(0,a.default)((o=i=class extends u.default.Component{getListRef(){return this.listRef}onClick(e){e.preventDefault(),this.props.onClick&&this.props.onClick(e)}render(){const e=this.props,t=e.children,r=e.className,n=e.closeOnSelect,i=e.open,o=e.onClose,a=e.onSelect,l=e.placement,d=e.role,h=void 0===d?"menu":d,m=e.style,g=e.trapFocus,v=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["children","className","closeOnSelect","open","onClose","onSelect","placement","role","style","trapFocus"]);return delete v.target,delete v.onClick,u.default.createElement(c.default,{isDialog:!1,placement:l,open:i,onClose:o,style:f({},m,{overflowY:"auto"}),trapFocus:g},u.default.createElement(s.List,p({ref:e=>this.listRef=e,role:h,className:r,onClick:this.onClick},v),u.default.Children.map(t,(e=>u.default.cloneElement(e,{onSelect:a,closeOnSelect:n})))))}},i.displayName="Menu",i.propTypes={placement:l.default.oneOf(["bottom","bottom left","bottom right","top","top left","top right","left","left top","left bottom","right","right top","right bottom"]),open:l.default.bool,onClose:l.default.func,onSelect:l.default.func,className:l.default.string,trapFocus:l.default.bool,role:l.default.oneOf(["menu","listbox"])},i.defaultProps={trapFocus:!0},n=o))||n;t.default=g},44613:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}(r(89526));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}class o extends n.Component{render(){return n.default.createElement("li",{className:"spectrum-Menu-divider",role:"separator"})}}t.default=o,o.displayName="MenuDivider"},33950:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(40743))&&n.__esModule?n:{default:n},o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}(r(89526));function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}class c extends o.Component{render(){const e=this.props,t=e.label,r=e.children,n=e.role,a=void 0===n?"presentation":n,c=e["aria-level"],l=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["label","children","role","aria-level"]);return o.default.createElement("li",s({role:a,className:"spectrum-Menu-sectionHeading"},(0,i.default)(l)),o.default.createElement("span",{role:"heading","aria-level":c||3},t||r))}}t.default=c,c.displayName="MenuHeading"},28900:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=r(92497),o=(n=r(2652))&&n.__esModule?n:{default:n},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}(r(89526));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}class d extends a.Component{render(){const e=this.props,t=e.role,r=void 0===t?"menuitem":t,n=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["role"]);return a.default.createElement(i.ListItem,u({role:r},n))}}t.default=d,d.displayName="MenuItem",d.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},i.ListItem.propTypes,{role:o.default.oneOf(["menuitem","menuitemcheckbox","menuitemradio","option"])}),d.defaultProps={role:"menuitem"}},57662:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=m(r(68378)),s=m(r(64403)),c=m(r(99870)),l=m(r(62880)),u=m(r(28900)),d=m(r(3074)),p=m(r(2652)),h=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}(r(89526));function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function m(e){return e&&e.__esModule?e:{default:e}}function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},g.apply(this,arguments)}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}m(r(73961));let _=(0,a.default)((o=i=class e extends h.Component{constructor(...e){var t;return t=super(...e),this.state={opened:!1,trapFocus:!0},this.menuId=(0,c.default)(),this.subMenuId=(0,c.default)(),t}handleKeyDown(e){const t=this.props.onKeyDown;switch(e.key){case"ArrowLeft":case"Left":e.preventDefault(),e.stopPropagation(),this.setState({opened:!1});break;case"Enter":case" ":case"ArrowRight":case"Right":e.preventDefault(),e.stopPropagation(),this.setState({opened:!0})}t&&t(e)}handleSubMenuKeyDown(e){switch(e.key){case"ArrowLeft":case"Left":e.preventDefault(),this.setState({opened:!1})}}hide(){this.hideAnimationFrame=requestAnimationFrame((()=>this.setState({opened:!1})))}show(){this.hideAnimationFrame&&cancelAnimationFrame(this.hideAnimationFrame),requestAnimationFrame((()=>this.setState({opened:!0}))),this.props._onNestedSubmenuOpen&&this.props._onNestedSubmenuOpen()}cloneItem(t){const r=y({},t.props,{onKeyDown:this.handleSubMenuKeyDown});return t.type===e&&(r._onNestedSubmenuOpen=this.show),(0,h.cloneElement)(t,r)}onHide(){this.hide()}onMenuClose(){this.overlayTrigger.hide()}onSelect(...e){this.props.closeOnSelect&&this.onMenuClose(),this.props.onSelect&&this.props.onSelect(...e)}render(){const e=this.props,t=e.children,r=e.className,n=e.closeOnSelect,i=e.label,o=e.trapFocus,a=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["children","className","closeOnSelect","label","trapFocus"]);delete a.onSelect;const c=this.state.opened;return h.default.createElement(d.default,{placement:"right top",offset:-10,crossOffset:-4,selected:!1,show:this.state.opened,onHide:this.onHide,closeOnSelect:n,ref:e=>this.overlayTrigger=e},h.default.createElement(u.default,g({id:this.menuId,className:(0,s.default)({"is-open":c},r),ref:e=>this.menuItem=e,"aria-haspopup":"menu","aria-expanded":c,"aria-owns":c?this.subMenuId:null},a,{onKeyDown:a.disabled?void 0:this.handleKeyDown,onClick:this.show,onMouseEnter:this.show,onMouseLeave:this.hide,hasNestedMenu:!0}),i),h.default.createElement(l.default,{id:this.subMenuId,onSelect:this.onSelect,autoFocus:!0,"aria-labelledby":this.menuId,onMouseEnter:this.show,onMouseLeave:this.hide,trapFocus:o},h.default.Children.toArray(t).map(this.cloneItem)))}},i.displayName="SubMenu",i.propTypes=y({},u.default.propTypes,{className:p.default.string,label:p.default.string,onSelect:p.default.func,trapFocus:p.default.bool}),n=o))||n;t.default=_},4659:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(92497),i=s(r(62880)),o=s(r(50865)),a=s(r(89526));function s(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class p extends i.default{render(){const e=this.props,t=e.children,r=e.className,i=e.closeOnSelect,s=e.open,l=e.onClose,d=e.onSelect,p=e.onUxpSelect,h=e.placement,f=e.role,m=void 0===f?"menu":f,g=e.style,v=e.trapFocus,y=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["children","className","closeOnSelect","open","onClose","onSelect","onUxpSelect","placement","role","style","trapFocus"]);return delete y.target,delete y.onClick,delete y.autoComplete,delete y.boundariesElement,a.default.createElement(o.default,{isDialog:!1,placement:h,open:s,onClose:l,style:u({},g,{overflowY:"auto"}),trapFocus:v},a.default.createElement(n.List,c({defaultpreventedkeys:["Escape"],ref:e=>this.listRef=e,role:m,className:r,onClick:this.onClick},y),a.default.Children.map(t,(e=>a.default.cloneElement(e,{onTab:e=>e.stopPropagation(),defaultpreventedkeys:["Tab"],onSelect:d,onUxpSelect:p,closeOnSelect:i})))))}}t.default=p},58137:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.modalManager=t.Modal=t.default=void 0;var n,i=g(r(68378)),o=g(r(22919)),a=r(51884),s=g(r(64403)),c=g(r(99607)),l=g(r(40743)),u=g(r(45206)),d=g(r(26088)),p=g(r(4782)),h=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=m();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}(r(89526)),f=g(r(73961));function m(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return m=function(){return e},e}function g(e){return e&&e.__esModule?e:{default:e}}function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(this,arguments)}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r(44460),r(41203),r(707),r(97395),r(37969);const E=["onBackdropClick","onEnter","onEntering","onEntered","onEscapeKeyDown","onExit","onExiting","onExited","onHide","onShow"],w=new u.default({handleContainerOverflow:!1});t.modalManager=w;let x=1;t.default=class{static show(e,t,r){let n=x++;!r&&t?r=()=>(0,c.default)(f.default.findDOMNode(t),".react-spectrum-provider"):r||(r=()=>document.querySelector(".react-spectrum-provider")||document.body);let i=e.props,o=i.disableEscKey,s=i.role,l=i.onClose,u=i.onHide,d=i.onExited,m=_(i,["disableEscKey","role","onClose","onHide","onExited"]);s=s&&-1!==s.indexOf("dialog")?"presentation":"dialog",m=E.reduce(((e,t)=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e,{[t]:m[t]})),{});let g=h.default.createElement(L,v({},m,{container:r,key:n,keyboard:!o,role:s,onClose:l,onHide:(0,a.chain)(this.hide.bind(this,n),u,d),"aria-modal":"dialog"===s||null}),e);return p.default.add(g,t),n}static hide(e){p.default.remove({key:e})}};let L=(0,i.default)(n=class extends h.default.Component{constructor(...e){var t;return t=super(...e),this.state={show:!0},t}onClose(){this.setState({show:!1}),this.props.onClose&&this.props.onClose()}onEntering(e){this.props.onEntering&&this.props.onEntering(e),this.baseModal.lastFocus===document.activeElement&&this.baseModal.autoFocus()}backdropMode(){const e=this.props.children.props;let t="static";return e.backdropClickable&&(t=!0),"fullscreenTakeover"===e.mode&&(t=!1),t}render(){const e=this.backdropMode(),t=this.props,r=t.children,n=t.onHide,i=_(t,["children","onHide"]);return h.default.createElement(o.default,v({},i,{style:{zIndex:1e5,position:"relative"},show:this.state.show,ref:e=>this.baseModal=e,onEntering:this.onEntering,onExited:n,onHide:this.onClose,backdrop:e,manager:w,renderBackdrop:e=>h.default.createElement(O,e),transition:d.default,backdropTransition:d.default}),(0,h.cloneElement)(r,{onClose:this.onClose}))}})||n;t.Modal=L;class O extends h.default.Component{render(){let e=this.props,t=e.open,r=_(e,["open"]);return h.default.createElement("div",v({},(0,l.default)(r),{className:(0,s.default)("spectrum-Underlay",{"is-open":t})}))}}},45206:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(90395))&&n.__esModule?n:{default:n};class o extends i.default{constructor(...e){var t;return t=super(...e),this.overflowMap=new Map,this.superAdd=this.add,this.superRemove=this.remove,this.add=(e,t,r,n)=>{this.superAdd(e,t,r),this.hideBodyOverflow(e,n)},this.hideBodyOverflow=(e,t)=>{let r=getComputedStyle(document.body).overflow;t||"hidden"===r||(this.overflowMap.set(e,r),document.body.style.overflow="hidden")},this.remove=(e,t,r)=>{this.superRemove(e,t,r),this.resetBodyOverflow(e)},this.resetBodyOverflow=e=>{this.overflowMap.has(e)&&(document.body.style.overflow=this.overflowMap.get(e),this.overflowMap.delete(e))},t}addToModal(e,t=!1){const r=this.hideSiblingNodes;this.hideSiblingNodes=!1,this.add(e,document.body,null,t),this.hideSiblingNodes=r}removeFromModal(e){const t=this.hideSiblingNodes;this.hideSiblingNodes=!1,this.remove(e),this.hideSiblingNodes=t}}t.default=o},3074:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("OverlayTrigger",(()=>r(45253)),(()=>r(31629)))},59972:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=g(r(68378)),s=g(r(99607)),c=g(r(36065)),l=g(r(26088)),u=g(r(81081)),d=g(r(83698)),p=g(r(61437)),h=g(r(89526)),f=g(r(73961)),m=g(r(28630));function g(e){return e&&e.__esModule?e:{default:e}}function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(this,arguments)}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const E=new Map;let w=(0,c.default)(n=(0,a.default)((o=i=class extends h.default.Component{constructor(e){super(e),this.state={exited:!this.props.show}}get overlayBucketKey(){const e=this.props.children;return e&&e.props&&"tooltip"===e.props.role?"tooltip":"all"}componentDidMount(){this.setState({targetNode:f.default.findDOMNode(this.props.target)}),this.mounted=!0,this.addOverlay()}componentWillUnmount(){this.mounted=!1,this.removeOverlay()}addOverlay(e=this.props){const t=this.overlayBucketKey;let r=E.get(t);r||(E.set(t,[]),r=E.get(t)),e.show&&this.mounted&&!r.includes(this)&&r.push(this)}removeOverlay(){const e=E.get(this.overlayBucketKey);let t=e.indexOf(this);t>=0&&e.splice(t,1)}UNSAFE_componentWillReceiveProps(e){e.target&&e.target!==this.props.target&&this.setState(b({},this.state,{targetNode:f.default.findDOMNode(e.target)}))}onEntered(...e){this.setState(b({},this.state,{exited:!1})),this.addOverlay(),this.props.onEntered&&this.props.onEntered(...e)}onExited(...e){this.setState(b({},this.state,{exited:!0})),this.removeOverlay(),this.props.onExited&&this.props.onExited(...e)}getOverlayContainer(e){let t=(0,s.default)(this.state.targetNode,".react-spectrum-provider");return this.props.container||t}hide(e){const t=E.get(this.overlayBucketKey);t[t.length-1]===this&&this.props.onHide&&this.props.onHide(e)}render(){let e=this.props,t=e.containerPadding,r=e.target,n=e.container,i=void 0===n?this.getOverlayContainer(r):n,o=e.placement,a=e.offset,s=e.crossOffset,c=e.flip,f=e.boundariesElement,g=void 0===f?()=>(0,u.default)(this).body:f,y=e.shouldUpdatePosition,b=e.rootClose,_=e.children,E=e.show,w=e.onExit,x=e.onExiting,L=e.onEnter,O=e.onEntering,S=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["containerPadding","target","container","placement","offset","crossOffset","flip","boundariesElement","shouldUpdatePosition","rootClose","children","show","onExit","onExiting","onEnter","onEntering"]);if(!E&&this.state.exited)return null;let T=_;return T=h.default.createElement(p.default,v({container:i,containerPadding:t,target:r,placement:o,shouldUpdatePosition:y,offset:a,crossOffset:s,flip:c,boundariesElement:g},{autoComplete:!0}),T),delete S.autoComplete,T=h.default.createElement(l.default,{in:E,appear:!0,onExit:w,onExiting:x,onExited:this.onExited,onEnter:L,onEntering:O,onEntered:this.onEntered},T),b&&(T=h.default.createElement(m.default,{onRootClose:this.hide},T)),h.default.createElement(d.default,{container:i},T)}},i.defaultProps={placement:"left"},n=o))||n)||n;t.default=w},31629:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=o(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw a}}}}function o(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,c,l,u=E(r(68378)),d=r(51884),p=E(r(36065)),h=E(r(99870)),f=r(58137),m=E(r(59972)),g=E(r(81081)),v=E(r(2652)),y=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}(r(89526)),b=E(r(73961));function _(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _=function(){return e},e}function E(e){return e&&e.__esModule?e:{default:e}}function w(){return w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},w.apply(this,arguments)}function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function L(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){O(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}const T=v.default.oneOf(["click","longClick","hover","focus"]);function P(e,t){return Array.isArray(t)?t.indexOf(e)>=0:e===t}let I=(0,p.default)(s=(0,u.default)((l=c=class e extends y.Component{constructor(e,t){super(e,t),this.onMouseDown=e=>{if(!this.props.disabled&&0===e.button){const t=e.currentTarget;this.longPressTimeout=setTimeout((()=>{this.longPressTimeout=null,this._lastFocus=t,this.show(e)}),250)}},this.onMouseUp=e=>{this.longPressTimeout||e.preventDefault(),!this.props.disabled&&this.longPressTimeout&&0===e.button&&(this.props.onClick&&this.props.onClick(e),this.hide(e),clearTimeout(this.longPressTimeout),this.longPressTimeout=null)},this.windowMouseUp=e=>{0===e.button&&!b.default.findDOMNode(this).contains(e.target)&&this.longPressTimeout&&(clearTimeout(this.longPressTimeout),this.longPressTimeout=null)},this.overlayId=(0,h.default)(),this._mountNode=null,this.longPressTimeout=null,this._lastFocus=e.lastFocus,this.boundariesElement=e.boundariesElement?e.boundariesElement:()=>(0,g.default)(this).body,this._scrollParents=null,this.state={show:void 0===e.show?e.defaultShow:e.show}}UNSAFE_componentWillReceiveProps(e){"lastFocus"in e&&e.lastFocus!==this.props.lastFocus&&(this._lastFocus=e.lastFocus),e.show!==this.props.show&&(e.show?this.handleDelayedShow():this.handleDelayedHide())}componentDidMount(){this._mountNode=document.createElement("div"),this.renderOverlay(),document.body.addEventListener("mouseUp",this.windowMouseUp)}componentDidUpdate(e){const t=e.disabled,r=this.props.disabled;!t&&r&&this.hide(),this.renderOverlay()}componentWillUnmount(){f.modalManager.removeFromModal(this._overlay),b.default.unmountComponentAtNode(this._mountNode),this._mountNode=null,clearTimeout(this._hoverShowDelay),clearTimeout(this._hoverHideDelay),this.removeListenersFromScrollParents(),document.body.removeEventListener("mouseUp",this.windowMouseUp)}handleToggle(e){this.state.show?this.hide(e):this.show(e)}handleDelayedShow(e){if(null!=this._hoverHideDelay)return clearTimeout(this._hoverHideDelay),void(this._hoverHideDelay=null);if(this.state.show||null!=this._hoverShowDelay)return;const t=null!=this.props.delayShow?this.props.delayShow:this.props.delay;t?this._hoverShowDelay=setTimeout((()=>{this._hoverShowDelay=null,this.show(e)}),t):this.show(e)}handleDelayedHide(t){if(null!=this._hoverShowDelay)return clearTimeout(this._hoverShowDelay),void(this._hoverShowDelay=null);if(!this.state.show||null!=this._hoverHideDelay)return;let r=this.props.delayHide&&this.props.delayHide!==e.defaultProps.delayHide||null==this.props.delay?this.props.delayHide:this.props.delay;r?this._hoverHideDelay=setTimeout((()=>{this._hoverHideDelay=null,this.hide(t)}),r):this.hide(t)}handleMouseOverOut(e,t){const r=t.currentTarget,n=t.relatedTarget||t.nativeEvent.toElement;n&&(n===r||r.contains(n))||e(t)}show(e){this.state.show||this.props.disabled||(this._lastFocus=this.rememberedFocus(),this.listenToScrollParents(),this.setState({show:!0}),this.props.onShow&&this.props.onShow(e))}listenToScrollParents(){this._scrollParents&&this.removeListenersFromScrollParents(),this._scrollParents=function(e){let t=[];for(;e.parentNode;){var r=window.getComputedStyle(e);(/auto|scroll/.test(r.overflow+r.overflowY)||e.hasAttribute("data-scrollable"))&&t.push(e),e=e.parentNode}return t}(b.default.findDOMNode(this));var e,t=i(this._scrollParents);try{for(t.s();!(e=t.n()).done;)e.value.addEventListener("scroll",this.hide,!1)}catch(e){t.e(e)}finally{t.f()}}removeListenersFromScrollParents(){if(this._scrollParents){var e,t=i(this._scrollParents);try{for(t.s();!(e=t.n()).done;)e.value.removeEventListener("scroll",this.hide,!1)}catch(e){t.e(e)}finally{t.f()}this._scrollParents=null}}hide(e){this.removeListenersFromScrollParents(),this.state.show&&(this.setState({show:!1}),this.props.onHide&&this.props.onHide(e))}onKeyDown(e){"ArrowDown"!==e.key&&"Down"!==e.key||(e.altKey||e.target===b.default.findDOMNode(this.dropdownRef.triggerRef))&&(e.preventDefault(),this.show(e))}onHide(e){P("longClick",this.props.trigger)&&b.default.findDOMNode(this).contains(e.target)||(void 0===this.props.show?this.hide(e):this.props.onHide&&this.props.onHide(e))}onExited(e){this.restoreFocus(e),this.props.onExited&&this.props.onExited(e)}rememberedFocus(){return!this._lastFocus&&document&&document.activeElement!==document.body&&(this._lastFocus=document.activeElement),this._lastFocus}restoreFocus(e){if(this._lastFocus&&"function"==typeof this._lastFocus.focus){if(document){let t;e&&(t=b.default.findDOMNode(e)),(t&&(t===document.activeElement||t.contains(document.activeElement))||document.activeElement===document.body)&&this._lastFocus.focus()}this.props.lastFocus||(this._lastFocus=null)}}makeOverlay(e,t){let r=this.props.target,n=void 0===r?this:r,i=t.rootClose,o=void 0===i||i,a=S(t,["rootClose"]);delete a.crossOffset,delete a.defaultShow,delete a.flip,delete a.boundariesElement;let s=L({id:e.props.id||a.id},t);return e.props.id||(a.id=this.overlayId),y.default.createElement(m.default,w({},s,{show:this.state.show,onHide:this.onHide,onExited:this.onExited,target:n,rootClose:o}),(0,y.cloneElement)(e,a))}renderOverlay(){this._overlay.props.show&&f.modalManager.addToModal(this._overlay,!0),b.default.unstable_renderSubtreeIntoContainer(this,this._overlay,this._mountNode)}render(){const e=this.props,t=e.trigger,r=e.show,i=e.selected,o=void 0===i?this.state.show:i,a=S(e,["trigger","show","selected"]);delete a.delay,delete a.delayShow,delete a.delayHide,delete a.defaultShow,delete a.onShow,delete a.onHide;const s=n(y.default.Children.toArray(this.props.children),2),c=s[0],l=s[1],u={};return delete a.children,this.state.show&&l.type&&"tooltip"===l.props.role&&(a.id||(a.id=l.props.id||this.overlayId),u["aria-describedby"]=a.id),void 0===r&&(P("click",t)&&!P("longClick",t)&&(u.onClick=(0,d.chain)(this.props.onClick,this.handleToggle)),P("longClick",t)&&(delete a.onClick,u.onMouseDown=this.onMouseDown,u.onMouseUp=this.onMouseUp,u.onKeyDown=this.onKeyDown),P("hover",t)&&(u.onMouseOver=this.handleMouseOverOut.bind(this,this.handleDelayedShow),u.onMouseOut=this.handleMouseOverOut.bind(this,this.handleDelayedHide),a.onMouseOver=this.handleMouseOverOut.bind(this,this.handleDelayedShow),a.onMouseOut=this.handleMouseOverOut.bind(this,this.handleDelayedHide),a.trapFocus=!1),P("focus",t)&&(u.onFocus=(0,d.chain)(c.props.onFocus,this.handleDelayedShow),u.onBlur=(0,d.chain)(c.props.onBlur,this.handleDelayedHide),a.onFocus=this.handleDelayedShow,a.onBlur=this.handleDelayedHide,a.trapFocus=!1)),u.selected=o,this._overlay&&f.modalManager.removeFromModal(this._overlay),this._overlay=this.makeOverlay(l,a),(0,y.cloneElement)(c,u)}},c.propTypes=L({},m.default.propTypes,{trigger:v.default.oneOfType([T,v.default.arrayOf(T)]),delay:v.default.number,delayShow:v.default.number,delayHide:v.default.number,defaultShow:v.default.bool,placement:v.default.string,onBlur:v.default.func,onClick:v.default.func,onFocus:v.default.func,onMouseOut:v.default.func,onMouseOver:v.default.func,onShow:v.default.func,onHide:v.default.func,show:v.default.bool,offset:v.default.number,crossOffset:v.default.number,flip:v.default.bool,disabled:v.default.bool,boundariesElement:v.default.oneOfType([v.default.func,v.default.string]),lastFocus:v.default.oneOfType([v.default.element,v.default.object])}),c.defaultProps={defaultShow:!1,trigger:["hover","focus"],placement:"left",offset:0,crossOffset:0,flip:!0,disabled:!1,delayHide:100},s=l))||s)||s;t.default=I},61437:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=g(r(68378)),s=g(r(97683)),c=g(r(64403)),l=g(r(36065)),u=g(r(40743)),d=g(r(59509)),p=g(r(81081)),h=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=m();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}(r(89526)),f=g(r(73961));function m(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return m=function(){return e},e}function g(e){return e&&e.__esModule?e:{default:e}}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let _=(0,l.default)(n=(0,a.default)((o=i=class extends h.default.Component{constructor(e,t){super(e,t),this.state={positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null,placement:this.props.placement},this._needsFlush=!1,this._lastTarget=null}componentDidMount(){this.props.autoComplete?this.updatePosition(this.getTarget(),"visible"):this.updatePosition(this.getTarget(),"hidden"),window.addEventListener("resize",this.maybeUpdatePosition,!1)}UNSAFE_componentWillReceiveProps(){this._needsFlush=!0}componentDidUpdate(e){this._needsFlush&&(this._needsFlush=!1,this.maybeUpdatePosition(this.props.placement!==e.placement,"visible"))}componentWillUnmount(){window.removeEventListener("resize",this.maybeUpdatePosition,!1)}render(){const e=this.props,t=e.children,r=e.className,n=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["children","className"]),i=this.state,o=i.positionLeft,a=i.positionTop,s=i.maxHeight,l=i.arrowOffsetLeft,d=i.arrowOffsetTop,p=i.placement,f=i.targetValid;delete n.target;const m=h.default.Children.only(t);return(0,h.cloneElement)(m,y({},(0,u.default)(n),{placement:p,className:(0,c.default)(r,m.props.className),arrowStyle:{left:l,top:d},style:y({},m.props.style,{position:"absolute",zIndex:1e5,left:o,top:a,maxHeight:s,visibility:f?"visible":"hidden"})}))}getTarget(){const e=this.props.target,t="function"==typeof e?e():e;return t&&f.default.findDOMNode(t)||null}maybeUpdatePosition(e,t){const r=this.getTarget();(this.props.shouldUpdatePosition||r!==this._lastTarget||e)&&this.updatePosition(r,t)}updatePosition(e,t){const r=this.props,n=r.placement,i=r.containerPadding,o=r.offset,a=r.crossOffset,c=r.flip,l=r.boundariesElement;this._lastTarget=e;let u=!1;if(!e)return void this.setState({positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null,targetValid:u});let h=e.getBoundingClientRect();if(u=h.x>=4&&h.y>=4&&h.width>0&&h.height>0&&"visible"===t,!u)return;const m=f.default.findDOMNode(this);m.visibility=t;const g=(0,d.default)(this.props.container,(0,p.default)(this).body);this.setState(y({},(0,s.default)(n,m,e,g,i,c,l,o,a),{targetValid:u}))}},i.defaultProps={containerPadding:10,offset:0,crossOffset:0},n=o))||n)||n;t.default=_},18143:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(r(26088)),i=s(r(59972)),o=s(r(89526)),a=s(r(28630));function s(e){return e&&e.__esModule?e:{default:e}}class c extends i.default{render(){let e=this.props,t=e.rootClose,r=e.children,i=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["rootClose","children"]);if(!i.show&&this.state.exited)return null;let s=r,c=i.onExit,l=i.onExiting,u=i.onEnter,d=i.onEntering;return s=o.default.createElement(n.default,{in:i.show,appear:!0,onExit:c,onExiting:l,onExited:this.onExited,onEnter:u,onEntering:d,onEntered:this.onEntered},s),t&&(s=o.default.createElement(a.default,{onRootClose:this.hide},s)),s}}t.default=c},50834:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(r(26088)),i=u(r(59972)),o=u(r(81081)),a=u(r(83698)),s=u(r(83596)),c=u(r(89526)),l=u(r(28630));function u(e){return e&&e.__esModule?e:{default:e}}class d extends i.default{constructor(...e){var t;return t=super(...e),this.keydown=e=>{27===e.keyCode&&this.hide(e)},t}render(){let e=this.props,t=e.containerPadding,r=e.target,i=e.container,u=void 0===i?this.getOverlayContainer(r):i,d=e.placement,p=e.offset,h=e.crossOffset,f=e.flip,m=e.boundariesElement,g=void 0===m?()=>(0,o.default)(this).body:m,v=e.shouldUpdatePosition,y=e.rootClose,b=e.children,_=e.show,E=e.onExit,w=e.onExiting,x=e.onEnter,L=e.onEntering;if(!_&&this.state.exited)return null;let O=b;return O=c.default.createElement(s.default,{container:u,containerPadding:t,target:r,placement:d,shouldUpdatePosition:v,offset:p,crossOffset:h,flip:f,boundariesElement:g},O),O=c.default.createElement(n.default,{in:_,appear:!0,onExit:E,onExiting:w,onExited:this.onExited,onEnter:x,onEntering:L,onEntered:this.onEntered},O),y&&(O=c.default.createElement(l.default,{onRootClose:this.hide},O)),O=c.default.createElement("div",{onKeyDown:this.keydown},O),c.default.createElement(a.default,{container:u},O)}}t.default=d},45253:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=f(r(68378)),o=f(r(99607)),a=f(r(99870)),s=f(r(18143)),c=r(58137),l=f(r(50834)),u=f(r(31629)),d=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=h();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}(r(89526)),p=f(r(73961));function h(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return h=function(){return e},e}function f(e){return e&&e.__esModule?e:{default:e}}function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},m.apply(this,arguments)}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(77609);let y=(0,i.default)(n=class extends u.default{constructor(e,t){super(e,t),this.overlayId=(0,a.default)(),this._mountNode=null,this.popup=null,this.state={show:void 0===e.show?e.defaultShow:e.show},this.overlayChild=d.default.Children.toArray(this.props.children)[1],this.isFlyout=!!this.overlayChild&&this.overlayChild.props.flyoutMenu}getFlyoutOverlayContainer(){return(0,o.default)(p.default.findDOMNode(this),".react-spectrum-provider")||document.querySelector(".react-spectrum-provider")||document.body}componentDidMount(){this._mountNode=document.createElement("div"),this._immediateFlyoutContainer=this.getFlyoutOverlayContainer(),this.isFlyout&&(this.popup=document.createElement("popup"),this.popup.className="uxp-flyout"),this.renderOverlay(),document.body.addEventListener("mouseUp",this.windowMouseUp)}show(e){this.state.show||this.props.disabled||(this._lastFocus=this.rememberedFocus(),this.listenToScrollParents(),this.setState({show:!0}),this.isFlyout&&(this._immediateFlyoutContainer.appendChild(this.popup),this.popup.addEventListener("close",this.hide),this.popup.showFlyout(p.default.findDOMNode(this),{placement:"bottom left"})),this.props.onShow&&this.props.onShow(e))}hide(e){this.removeListenersFromScrollParents(),this.state.show&&(this.setState({show:!1}),this.isFlyout&&(this.popup.close(),this.popup.removeEventListener("close",this.hide),this._immediateFlyoutContainer.removeChild(this.popup)),this.props.onHide&&this.props.onHide(e))}componentWillUnmount(){c.modalManager.removeFromModal(this._overlay),p.default.unmountComponentAtNode(this._mountNode),this._mountNode=null,clearTimeout(this._hoverShowDelay),clearTimeout(this._hoverHideDelay),this.removeListenersFromScrollParents(),document.body.removeEventListener("mouseUp",this.windowMouseUp)}renderOverlay(){this._overlay.props.show&&c.modalManager.addToModal(this._overlay,!0),this.isFlyout?p.default.render(this._overlay,this.popup):p.default.unstable_renderSubtreeIntoContainer(this,this._overlay,this._mountNode)}makeOverlay(e,t){let r=this.props.target,n=void 0===r?this:r,i=t.rootClose,o=void 0===i||i,a=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,["rootClose"]);delete a.crossOffset,delete a.defaultShow,delete a.flip;let c=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:e.props.id||a.id},t);return e.props.id||(a.id=this.overlayId),this.isFlyout?d.default.createElement(s.default,m({},c,{show:this.state.show,onHide:this.hide,rootClose:o}),(0,d.cloneElement)(e,a)):d.default.createElement(l.default,m({},c,{show:this.state.show,onExited:this.onExited,onHide:this.onHide,target:n,rootClose:o}),(0,d.cloneElement)(e,a))}})||n;t.default=y},83596:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=m(r(68378)),o=m(r(97683)),a=m(r(64403)),s=m(r(40743)),c=m(r(59509)),l=m(r(81081)),u=m(r(61437)),d=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}(r(89526)),p=m(r(73961)),h=m(r(37001));function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let b=(0,i.default)(n=class extends u.default{componentDidMount(){this.updatePosition(this.getTarget(),"hidden"),window.addEventListener("resize",this.maybeUpdatePosition,!1)}componentDidUpdate(e){this._needsFlush&&(this._needsFlush=!1,this.maybeUpdatePosition(this.props.placement!==e.placement,"visible"))}render(){const e=this.props,t=e.children,r=e.className,n=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["children","className"]),i=this.state,o=i.positionLeft,c=i.positionTop,l=i.arrowOffsetLeft,u=i.arrowOffsetTop,p=i.placement;delete n.target;const h=d.default.Children.only(t);return(0,d.cloneElement)(h,v({},(0,s.default)(n),{placement:p,className:(0,a.default)(r,h.props.className),arrowStyle:{left:l,top:u},ref:e=>this.overlay=e,style:v({},h.props.style,{position:"absolute",zIndex:1e5,left:o,top:c})}))}updateOverlayBoundingRect(){if(this.overlay&&this.overlay.tooltipRef){let e=this.overlay.tooltipRef.getBoundingClientRect();e.x=this.state.positionLeft,e.y=this.state.positionTop,(0,h.default)(this.overlay.tooltipRef,!0,this.overlay.hide,e)}}maybeUpdatePosition(e,t){const r=this.getTarget();(this.props.shouldUpdatePosition||r!==this._lastTarget||e)&&this.updatePosition(r,t)}updatePosition(e,t){const r=this.props,n=r.placement,i=r.containerPadding,a=r.offset,s=r.crossOffset,u=r.flip,d=r.boundariesElement;if(this._lastTarget=e,!e)return void this.setState({positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null});const h=p.default.findDOMNode(this);h.style.visibility=t;const f=(0,c.default)(this.props.container,(0,l.default)(this).body);this.setState((0,o.default)(n,h,e,f,i,u,d,a,s)),this.overlay&&this.updateOverlayBoundingRect()}})||n;t.default=b},97683:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.calculatePositionInternal=x,t.default=function(e,t,r,n,i,c,l,u,d){const p="BODY"===n.tagName,h=p?(0,a.default)(r):(0,s.default)(r,n);p||(h.top+=parseInt((0,o.default)(r,"marginTop"),10)||0,h.left+=parseInt((0,o.default)(r,"marginLeft"),10)||0);const f=(0,a.default)(t),m=function(e){const t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}(t);f.width+=m.left+m.right,f.height+=m.top+m.bottom;y(n);const g="container"===l?n:l();return x(e,0,h,f,m,i,c,y(g),"BODY"===g.tagName?(0,a.default)(n):(0,s.default)(n,g),u,d)};var o=p(r(95463)),a=p(r(7115)),s=p(r(1954)),c=p(r(82653)),l=p(r(51587)),u=p(r(62310)),d=p(r(73961));function p(e){return e&&e.__esModule?e:{default:e}}const h={top:"top",bottom:"top",left:"left",right:"left",center:"left"},f={top:"bottom",bottom:"top",left:"right",right:"left"},m={top:"left",left:"top"},g={top:"height",left:"width"},v={};function y(e){let t,r,n=0,i=0,o={};const s=d.default.findDOMNode(e);if("BODY"===s.tagName)t=window.innerWidth||e.clientWidth,r=window.innerHeight||e.clientHeight,o.top=(0,l.default)((0,u.default)(s).documentElement)||(0,l.default)(s),o.left=(0,c.default)((0,u.default)(s).documentElement)||(0,c.default)(s);else{var p=(0,a.default)(s);t=p.width,r=p.height,n=p.top,i=p.left,o.top=(0,l.default)(s),o.left=(0,c.default)(s)}return{width:t,height:r,scroll:o,top:n,left:i}}function b(e,t,r,n,i){const o=n.scroll[e],a=n[g[e]],s=t-i-o,c=t+i-o+r;return s<0?-s:c>a?Math.max(a-c,-s):0}function _(e,t,r,n,i,o,a){const s=o.scroll[e],c=o[g[e]],l=a[e]+t-n-s,u=a[e]+t+n-s+r;return l<0&&("top"===i||"left"===i)||u>c&&("bottom"===i||"right"===i)}function E(e){if(v[e])return v[e];let t=n(e.split(" "),2),r=t[0],i=t[1],o=h[r]||"right",a=m[o];h[i]||(i="center");let s=g[o],c=g[a];return v[e]={placement:r,crossPlacement:i,axis:o,crossAxis:a,size:s,crossSize:c},v[e]}function w(e,t,r,n,i,o){const a=n.placement,s=n.crossPlacement,c=n.axis,l=n.crossAxis,u=n.size,d=n.crossSize;let p={};if(p[l]=e[l]+o,"center"===s?p[l]+=(e[d]-r[d])/2:s!==l&&(p[l]+=e[d]-r[d]),e[d]<r[d]){const t=Math.min(p[l],e[l]);p[l]=Math.max(t,e[l]-r[d]+e[d])}return p[c]=a===c?e[c]-r[u]+i:e[c]+e[u]+i,p}function x(e,t,r,n,i,o,a,s,c,l,u){let d=E(e);const p=d,h=p.axis,m=p.size,g=p.crossAxis,v=p.crossSize,y=p.placement,x=p.crossPlacement;let L=w(r,0,n,d,l,u),O=l;if(a&&_(h,L[h],n[m],o,y,s,c)){const e=E(`${f[y]} ${x}`),t=e.axis,i=e.size,a=w(r,0,n,e,-1*l,u);_(t,a[t],n[i],o,f[y],s,c)||(d=e,L=a,O=-1*l)}let S=b(g,L[g],n[v],s,o);L[g]+=S;let T=Math.max(0,s.height+s.top+s.scroll.top-c.top-L.top-i.top-i.bottom-o);n.height=Math.min(n.height,T),L=w(r,0,n,d,O,u),S=S=b(g,L[g],n[v],s,o),L[g]+=S;const P={};return P[g]=r[v]>n[v]?null:r[g]-L[g]+r[v]/2,{positionLeft:L.left,positionTop:L.top,maxHeight:T,arrowOffsetLeft:P.left,arrowOffsetTop:P.top,placement:d.placement}}},50865:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("Popover",(()=>r(89217)),(()=>r(47431)))},47431:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=m(r(68378)),s=m(r(64403)),c=m(r(99870)),l=m(r(71547)),u=m(r(40743)),d=m(r(2652)),p=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}(r(89526)),h=r(75870);function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function m(e){return e&&e.__esModule?e:{default:e}}function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},g.apply(this,arguments)}r(80610),r(73657),r(99756),r(54525),r(52855),r(60448),r(12076),r(76172),r(30954),r(92708),r(43319);let v=(0,a.default)((o=i=class extends p.Component{constructor(e,t){super(e,t),this.defaultId=(0,c.default)()}componentDidMount(){this.props.trapFocus&&(this._trapFocusTimeout=requestAnimationFrame((()=>{this.popoverRef&&!this.popoverRef.contains(document.activeElement)&&this.popoverRef.focus()})))}componentWillUnmount(){this._trapFocusTimeout&&cancelAnimationFrame(this._trapFocusTimeout)}onFocus(e){this.props.onFocus&&this.props.onFocus(e),this.props.trapFocus&&e.target===this.popoverRef&&!this.popoverRef.contains(e.relatedTarget)&&(0,h.trapFocus)(this,e)}onKeyDown(e){this.props.onKeyDown&&(this.props.onKeyDown(e),e.isPropagationStopped&&e.isPropagationStopped())||this.props.trapFocus&&(0,h.trapFocus)(this,e)}render(){const e=this.props,t=e.variant,r=e.placement,n=e.open,i=e.title,o=e.children,a=e.className,c=e.isDialog,d=void 0===c||c,h=e.trapFocus,f=e.tabIndex,m=void 0===f?null:f,v=e.id,y=void 0===v?this.defaultId:v,b=e["aria-label"],_=e["aria-labelledby"],E=e["aria-describedby"],w=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["variant","placement","open","title","children","className","isDialog","trapFocus","tabIndex","id","aria-label","aria-labelledby","aria-describedby"]);delete w.target;let x=d?p.default.createElement("div",{className:"spectrum-Dialog-content",role:"presentation",id:`${y}-content`},o):o;return p.default.createElement("div",g({ref:e=>this.popoverRef=e,className:(0,s.default)("spectrum-Popover",`spectrum-Popover--${r.split(" ")[0]}`,{"spectrum-Popover--withTip":d,"spectrum-Popover--dialog":d,[`spectrum-Dialog--${t}`]:d,"is-open":n},a),role:d?"dialog":"presentation",id:y,"aria-label":b,"aria-labelledby":_||(d&&i&&!b?`${y}-heading`:null),"aria-describedby":E||(d&&i&&o?`${y}-content`:null),"data-testid":"popover"},(0,u.default)(w),{onFocus:this.onFocus,onKeyDown:this.onKeyDown,tabIndex:h&&null===m?1:m}),d&&i&&p.default.createElement(l.default,{id:`${y}-heading`,title:i,variant:t}),x,d&&this.renderTip())}renderTip(){return p.default.createElement("div",{className:"spectrum-Popover-tip",style:this.props.arrowStyle,"aria-hidden":"true","data-testid":"tip"})}},i.propTypes={variant:d.default.oneOf(["default","error"]),placement:d.default.oneOf(["bottom","bottom left","bottom right","top","top left","top right","left","left top","left bottom","right","right top","right bottom"]),open:d.default.bool,title:d.default.node,className:d.default.string,trapFocus:d.default.bool},i.defaultProps={variant:"default",placement:"bottom",open:!0,trapFocus:!0},n=o))||n;t.default=v,v.displayName="Popover"},89217:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=p(r(68378)),s=p(r(27984)),c=p(r(47431)),l=p(r(89526)),u=p(r(37001)),d=r(85706);function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let g=(0,a.default)(o=class extends c.default{constructor(...e){var t;return t=super(...e),this.setOverlayVisible=()=>{this.props.flyoutMenu||(0,u.default)(this.popoverRef,!0,this.hide)},this.setOverlayHidden=()=>{this.props.flyoutMenu||(0,u.default)(this.popoverRef,!1)},this.hide=()=>{this.popoverRef&&(this.popoverRef.style.display="none")},t}componentDidMount(){this.popoverRef&&this.popoverRef.addEventListener("resize",this.setOverlayVisible)}componentWillUnmount(){this.popoverRef&&this.popoverRef.removeEventListener("resize",this.setOverlayVisible),this.setOverlayHidden()}renderTip(){const e=this.props.placement;let t=Array.of(function(e){const t=20;return"right"===e?[t,t,"M 20 0 l -10 10 l 10 10",{left:-20}]:"left"===e?[t,t,"M 0 0 l 10 10 l -10 10",{right:-20}]:"top"===e?[t,t,"M 0 0 l 10 10 l 10 -10",{bottom:-19.5}]:"bottom"===e?[t,t,"M 0 20 l 10 -10 l 10 10",{top:-20}]:void 0}(e)),r=n(t,1),i=n(r[0],4),o=i[0],a=i[1],c=i[2],u=i[3];return l.default.createElement(d.SpectrumContext.Consumer,null,(({scale:e,theme:t}={})=>l.default.createElement("svg",{className:"spectrum-Popover-tip",style:f({width:o,height:a,border:"none",background:"none",fill:s.default.elements[t][e].popover.default.states.default["background-color"],stroke:s.default.elements[t][e].popover.default.states.default["border-color"]},u)},l.default.createElement("path",{d:c}))))}})||o;t.default=g},4782:(e,t,r)=>{"use strict";e.exports=r(20869)},20869:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i(r(89526));var n=i(r(73961));function i(e){return e&&e.__esModule?e:{default:e}}let o={};t.default=class{static add(e,t){let r=o[e.key]||document.createElement("div");t?n.default.unstable_renderSubtreeIntoContainer(t,e,r):n.default.render(e,r),o[e.key]=r}static remove(e){n.default.unmountComponentAtNode(o[e.key]),delete o[e.key]}static removeAll(){for(let e in o)o.hasOwnProperty(e)&&(n.default.unmountComponentAtNode(o[e]),delete o[e])}}},30665:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("Provider",(()=>r(85706)),(()=>r(53241)))},53241:(e,t,r)=>{"use strict";var n=r(82530);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,a,s=g(r(64403)),c=g(r(84420)),l=g(r(36065)),u=r(3585),d=g(r(40743)),p=g(r(2652)),h=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=m();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}(r(89526)),f=r(61553);function m(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return m=function(){return e},e}function g(e){return e&&e.__esModule?e:{default:e}}function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(this,arguments)}r(36982),r(8036),r(81552),r(63595),r(28432),r(85485),r(30250),r(68287),r(42069),r(36358),r(88759),r(31799);let y=(0,l.default)((a=o=class extends h.Component{constructor(e){super(e),(0,u.setLocale)(e.locale),this.configureTypekit()}configureTypekit(){n.browser&&(0,c.default)(this.props.typekitId),this.props.toastPlacement&&(0,f.setToastPlacement)(this.props.toastPlacement)}UNSAFE_componentWillReceiveProps(e){"locale"in e&&(0,u.setLocale)(e.locale),e.toastPlacement&&(0,f.setToastPlacement)(e.toastPlacement)}getChildContext(){return{theme:this.props.theme,scale:this.props.scale,locale:this.props.locale}}render(){let e=this.props,t=e.theme,r=e.className,n=e.children,i=e.scale,o=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["theme","className","children","scale"]);return h.default.createElement("div",v({className:(0,s.default)(r,"react-spectrum-provider","spectrum",`spectrum--${t}`,`spectrum--${i}`)},(0,d.default)(o)),n)}},o.propTypes={theme:p.default.oneOf(["light","lightest","dark","darkest"]),scale:p.default.oneOf(["medium","large"]),toastPlacement:p.default.oneOf(["top","top left","top center","top right","bottom","bottom left","bottom center","bottom right"]),typekitId:p.default.string,locale:p.default.string,className:p.default.string},o.defaultProps={theme:"light",scale:"medium",typekitId:"ruf7eed",locale:u.defaultLocale},o.childContextTypes={theme:p.default.oneOf(["light","lightest","dark","darkest"]),scale:p.default.oneOf(["medium","large"]),locale:p.default.string},i=a))||i;t.default=y},85706:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SpectrumContext=void 0;var n=l(r(64403)),i=l(r(40743)),o=l(r(25545)),a=l(r(81081)),s=l(r(53241)),c=l(r(89526));function l(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}l(r(73961)),r(68287),r(42069),r(36358),r(88759),r(31799);const d=c.default.createContext({theme:"light",scale:"medium",productId:"default",boundariesElement:()=>(0,a.default)(void 0).body,disableNativeControls:!1,overlay:null});t.SpectrumContext=d;class p extends s.default{constructor(e){super(e),this.state={overlay:{overlayRef:null,data:{visible:!1,callback:void 0,boundingRect:null}}}}setOverlay(e,t){this.setState({overlay:{overlayRef:e,data:t}})}configureTypekit(){}componentDidMount(){this.props.useHostThemes&&(0,o.default)(),this.providerRef.setAttribute("setOverlay",this.setOverlay.bind(this))}render(){let e=this.props,t=e.theme,r=void 0===t?"light":t,o=e.scale,a=void 0===o?"medium":o,s=e.productId,l=void 0===s?"":s,p=e.disableNativeControls,h=e.boundariesElement,f=e.className,m=e.style,g=void 0===m?{}:m,v=e.children,y=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["theme","scale","productId","disableNativeControls","boundariesElement","className","style","children"]);const b=this.state.overlay;return c.default.createElement(d.Provider,{value:{theme:r,scale:a,productId:l,boundariesElement:h,disableNativeControls:p,overlay:b}},c.default.createElement("div",u({ref:e=>this.providerRef=e},(0,i.default)(y),{style:Object.assign({},{fontFamily:"Adobe Clean"},g),className:(0,n.default)("react-spectrum-provider",`spectrum--${r}`,f,`spectrum--${a}`,"spectrum","spectrum--override")}),"string"!=typeof v&&v))}}t.default=p},4294:(e,t,r)=>{"use strict";e.exports=r(93732)},93732:(e,t,r)=>{"use strict";t.default=l;var n=s(r(64403)),i=s(r(40743)),o=s(r(2652)),a=s(r(89526));function s(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function l(e){let t=e.className,r=e.variant,o=void 0===r?"large":r,s=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["className","variant"]);return a.default.createElement("hr",c({},(0,i.default)(s),{className:(0,n.default)("spectrum-Rule",`spectrum-Rule--${o}`,t)}))}r(25915),r(31341),r(77682),r(22386),r(108),l.propTypes={variant:o.default.oneOf(["large","medium","small"])}},32817:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("Search",(()=>r(21927)),(()=>r(34941)))},34941:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=_(r(68378)),s=_(r(96195)),c=_(r(64403)),l=r(44800),u=_(r(36065)),d=_(r(99870)),p=_(r(87535)),h=_(r(98337)),f=r(3585),m=_(r(2652)),g=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=y();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}(r(89526)),v=_(r(77057));function y(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return y=function(){return e},e}function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},b.apply(this,arguments)}function _(e){return e&&e.__esModule?e:{default:e}}const E={"cs-CZ":_(r(22187)).default,"da-DK":_(r(95066)).default,"de-DE":_(r(28306)).default,"en-US":_(r(19641)).default,"es-ES":_(r(59358)).default,"fi-FI":_(r(14879)).default,"fr-FR":_(r(11034)).default,"hu-HU":_(r(51600)).default,"it-IT":_(r(19202)).default,"ja-JP":_(r(36079)).default,"ko-KR":_(r(88024)).default,"nb-NO":_(r(81459)).default,"nl-NL":_(r(19878)).default,"pl-PL":_(r(84738)).default,"pt-BR":_(r(98384)).default,"ru-RU":_(r(73755)).default,"sv-SE":_(r(45116)).default,"tr-TR":_(r(60199)).default,"uk-UA":_(r(92403)).default,"zh-CN":_(r(57349)).default,"zh-TW":_(r(72113)).default};r(85149),r(19517),r(66795),r(39302),r(80076);const w=(0,f.messageFormatter)(E),x=e=>e||"";let L=(0,u.default)(n=(0,a.default)((o=i=class extends g.Component{constructor(e){super(e),this.searchId=(0,d.default)();const t=e.value,r=e.defaultValue;this.state={value:x(t||r)}}UNSAFE_componentWillReceiveProps(e){x(e.value)!==this.state.value&&this.setState({value:e.value})}handleTextKeyDown(e){const t=this.props,r=t.onSubmit,n=t.onKeyDown,i=t.disabled,o=this.state.value,a=e.which;13!==a&&27!==a||e.preventDefault(),i||(13===a&&r(o),27===a&&this.handleTextChange("",e,"escapeKey"),n&&n(e))}handleTextChange(e,t,r="input"){const n=this.props,i=n.onChange;n.disabled||e===this.state.value||("value"in this.props||this.setState({value:e}),i(e,t,{from:r}))}handleClearButtonClick(e){this.handleTextChange("",e,"clearButton"),this.searchbox&&this.searchbox.focus()}render(){const e=this.props,t=e.disabled,r=e.className,n=e.icon,i=e.id,o=void 0===i?this.searchId:i,a=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["disabled","className","icon","id"]),u=this.state.value;return g.default.createElement("div",{className:(0,c.default)("spectrum-Search",{"is-disabled":t},r)},g.default.createElement(v.default,b({type:"search",ref:e=>this.searchbox=e,className:"spectrum-Search-input",value:u,disabled:t,id:o},a,{onKeyDown:this.handleTextKeyDown,onChange:this.handleTextChange})),(0,l.cloneIcon)(n,{className:"spectrum-Search-icon",size:"S"}),""!==u&&g.default.createElement(s.default,{"aria-label":w("Clear search"),"aria-labelledby":`${o} ${o}-clear-button`,variant:"clear",icon:g.default.createElement(p.default,null),id:`${o}-clear-button`,disabled:t,onClick:this.handleClearButtonClick}))}},i.propTypes={value:m.default.string,defaultValue:m.default.string,icon:m.default.node},i.defaultProps={icon:g.default.createElement(h.default,{"data-testid":"searchicon"}),onChange:function(){},onSubmit:function(){}},n=o))||n)||n;t.default=L,L.displayName="Search"},21927:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=f(r(96195)),o=f(r(64403)),a=r(44800),s=f(r(36065)),c=f(r(87535)),l=r(3585),u=f(r(89526)),d=f(r(34941)),p=f(r(77057));function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}function f(e){return e&&e.__esModule?e:{default:e}}const m={"cs-CZ":f(r(22187)).default,"da-DK":f(r(95066)).default,"de-DE":f(r(28306)).default,"en-US":f(r(19641)).default,"es-ES":f(r(59358)).default,"fi-FI":f(r(14879)).default,"fr-FR":f(r(11034)).default,"hu-HU":f(r(51600)).default,"it-IT":f(r(19202)).default,"ja-JP":f(r(36079)).default,"ko-KR":f(r(88024)).default,"nb-NO":f(r(81459)).default,"nl-NL":f(r(19878)).default,"pl-PL":f(r(84738)).default,"pt-BR":f(r(98384)).default,"ru-RU":f(r(73755)).default,"sv-SE":f(r(45116)).default,"tr-TR":f(r(60199)).default,"uk-UA":f(r(92403)).default,"zh-CN":f(r(57349)).default,"zh-TW":f(r(72113)).default};r(85149),r(19517),r(66795),r(39302),r(80076);const g=(0,l.messageFormatter)(m);let v=(0,s.default)(n=class extends d.default{UNSAFE_componentWillReceiveProps(e){(e.value||"")!==this.state.value&&void 0!==e.value&&null!==e.value&&this.setState({value:e.value})}render(){const e=this.props,t=e.disabled,r=e.className,n=e.icon,s=e.role,l=void 0===s?"search":s,d=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["disabled","className","icon","role"]),f=this.state.value;return u.default.createElement("div",{role:l,className:(0,o.default)("spectrum-Search",{"is-disabled":t},r),ref:e=>this.searchContainer=e},u.default.createElement(p.default,h({role:"searchbox",ref:e=>this.searchbox=e,className:"spectrum-Search-input",value:f,disabled:t},d,{onKeyDown:this.handleTextKeyDown,onChange:this.handleTextChange})),(0,a.cloneIcon)(n,{className:"spectrum-Search-icon",size:"S"}),""!==f&&u.default.createElement(i.default,{"aria-label":g("Clear search"),variant:"clear",icon:u.default.createElement(c.default,null),disabled:t,onClick:this.handleClearButtonClick}))}})||n;t.default=v,v.displayName="UxpSearch"},64990:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("Select",(()=>r(95877)),(()=>r(74078)))},74078:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelectMenu=O,t.default=void 0;var n,i,o,a=_(r(77125)),s=_(r(68378)),c=_(r(96195)),l=_(r(59860)),u=_(r(64403)),d=_(r(36065)),p=_(r(99870)),h=_(r(58584)),f=_(r(40743)),m=_(r(50865)),g=_(r(2652)),v=_(r(89526)),y=_(r(73961)),b=_(r(73990));function _(e){return e&&e.__esModule?e:{default:e}}function E(){return E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},E.apply(this,arguments)}function w(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r(46400),r(26328),r(6111),r(10549),r(32035),r(54802);let x=null,L=(0,d.default)(n=(0,s.default)((o=i=class extends v.default.Component{constructor(e){super(e);let t=null;if("value"in e)t=e.value;else if("defaultValue"in e)t=e.defaultValue;else if(e.multiple)t=[];else{const r=e.options&&e.options[0];t=r&&!e.placeholder?r.value:null}this.state={value:t},this.selectId=(0,p.default)()}UNSAFE_componentWillReceiveProps(e){"value"in e&&e.value!==this.state.value&&this.setState({value:e.value})}componentDidMount(){if(null==x){let e=document.createElement("div");e.className="spectrum-Dropdown-popover",document.body.appendChild(e),x=parseInt(window.getComputedStyle(e).maxWidth,10),document.body.removeChild(e)}window.addEventListener("resize",this.updateSize),this.updateSize()}componentWillUnmount(){window.removeEventListener("resize",this.updateSize)}componentDidUpdate(){this.updateSize()}updateSize(){if(this.button){let e=y.default.findDOMNode(this.button).offsetWidth;e!==this.state.width&&this.setState({width:e})}}onSelect(e){"value"in this.props||this.setState({value:e}),this.props.onChange&&this.props.onChange(e)}onOpen(e){this.updateSize(),"function"==typeof this.props.onOpen&&this.props.onOpen(e)}render(){let e=this.props,t=e.options,r=void 0===t?[]:t,n=e.quiet,i=e.onClose,o=e.closeOnSelect,s=e.menuClassName,d=e.disabled,p=void 0!==d&&d,m=e.invalid,g=void 0!==m&&m,y=e.multiple,b=void 0!==y&&y,_=e.required,L=void 0!==_&&_,S=e.flexible,T=void 0!==S&&S,P=e.placeholder,I=void 0===P?"Select an option":P,A=e.className,C=e.flip,k=void 0===C||C,D=e.alignRight,N=e.labelId,R=e.id,M=void 0===R?this.selectId:R,j=e.icon,F=e.renderItem,Z=e["aria-label"],B=e["aria-labelledby"],G=w(e,["options","quiet","onClose","closeOnSelect","menuClassName","disabled","invalid","multiple","required","flexible","placeholder","className","flip","alignRight","labelId","id","icon","renderItem","aria-label","aria-labelledby"]),U=this.state.value;const H=`${M}-value`;B?B+=` ${H}`:B=Z?M+" "+H:N?N+" "+H:H;let z=I;if(!b){const e=r.find((e=>e.value===U));z=e?e.label:I,j=e&&e.icon}o="boolean"==typeof o?o:!b;let V=Object.entries((0,f.default)(G)),Y=V.filter((e=>/^aria-.*$/.test(e[0]))).reduce(((e,t)=>(e[t[0]]=t[1],e)),{}),W=V.filter((e=>!/^aria-.*$/.test(e[0]))).reduce(((e,t)=>(e[t[0]]=t[1],e)),{}),K=this.state.width;return n&&(K=this.state.width+24),n&&T&&(K=null),v.default.createElement(h.default,E({className:(0,u.default)("spectrum-Dropdown",{"spectrum-Dropdown--quiet":n,"react-spectrum-Dropdown-fixed":n&&!T,"react-spectrum-Dropdown-flexible":T,"is-disabled":p,"is-invalid":g},A),closeOnSelect:o,onSelect:this.onSelect,onOpen:this.onOpen,onClose:i,"aria-required":L,"aria-multiselectable":b,"aria-disabled":p,"aria-invalid":g,alignRight:D,flip:k},W),v.default.createElement(c.default,E({className:"spectrum-Dropdown-trigger",type:"button",variant:"field","aria-haspopup":"listbox",quiet:n,disabled:p,invalid:g,ref:e=>this.button=e,"aria-label":Z,"aria-labelledby":B,id:M,icon:j},Y),v.default.createElement("span",{id:H,className:(0,u.default)("spectrum-Dropdown-label",{"is-placeholder":z===I})},z),g&&v.default.createElement(a.default,{size:"S"}),v.default.createElement(l.default,{size:null,className:"spectrum-Dropdown-icon"})),v.default.createElement(O,{dropdownMenu:!0,className:s,options:r,value:U,multiple:b,disabled:p,invalid:g,required:L,quiet:n,style:{overflowY:"auto",minWidth:K,maxWidth:this.state.width>x?this.state.width:null,marginRight:n&&D?-12:null},autoFocus:!0,renderItem:F}))}},i.propTypes={closeOnSelect:g.default.bool,menuClassName:g.default.string,renderItem:g.default.func,value:g.default.oneOfType([g.default.string,g.default.number,g.default.arrayOf(g.default.string),g.default.arrayOf(g.default.number)]),defaultValue:g.default.oneOfType([g.default.string,g.default.number,g.default.arrayOf(g.default.string),g.default.arrayOf(g.default.number)]),multiple:g.default.bool,options:g.default.arrayOf(g.default.object),onChange:g.default.func,onOpen:g.default.func,onClose:g.default.func,quiet:g.default.bool,invalid:g.default.bool,required:g.default.bool,flexible:g.default.bool,placeholder:g.default.string,flip:g.default.bool,alignRight:g.default.bool,icon:g.default.node},n=o))||n)||n;function O(e){let t=e.onClose,r=e.onOpen,n=e.onSelect,i=e.className,o=e.open,a=e.placement,s=e.style,c=e.closeOnSelect,l=e.quiet,d=w(e,["onClose","onOpen","onSelect","className","open","placement","style","closeOnSelect","quiet"]);return v.default.createElement(m.default,{isDialog:!1,placement:a,open:o,onClose:t,onOpen:r,style:s,className:(0,u.default)("spectrum-Dropdown-popover",{"spectrum-Dropdown-popover--quiet":l}),closeOnSelect:c},v.default.createElement(b.default,E({},d,{className:i,onClose:t,onChange:n,onTab:e=>e.preventDefault()})))}t.default=L},95877:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UxpSelectMenu=b,t.default=void 0;var n=f(r(77125)),i=f(r(96195)),o=f(r(59860)),a=f(r(64403)),s=f(r(58584)),c=f(r(40743)),l=f(r(50865)),u=f(r(89526)),d=f(r(74078)),p=f(r(73990)),h=f(r(58648));function f(e){return e&&e.__esModule?e:{default:e}}function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},m.apply(this,arguments)}function g(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r(39793);let v=null;class y extends d.default{componentDidMount(){if(null==v){let e=document.createElement("div");e.className="spectrum-Dropdown-popover",document.body.appendChild(e),v=parseInt(window.getComputedStyle(e).maxWidth,10),document.body.removeChild(e)}window.addEventListener("resize",this.updateSize),this.updateSize()}render(){let e=this.props,t=e.options,r=void 0===t?[]:t,l=e.quiet,d=e.onClose,p=e.closeOnSelect,f=e.menuClassName,y=e.disabled,_=void 0!==y&&y,E=e.invalid,w=void 0!==E&&E,x=e.multiple,L=void 0!==x&&x,O=e.required,S=void 0!==O&&O,T=e.flexible,P=void 0!==T&&T,I=e.placeholder,A=void 0===I?"Select an option":I,C=e.className,k=e.renderItem,D=e.flip,N=void 0===D||D,R=e.alignRight,M=e.labelId,j=e.id,F=void 0===j?this.selectId:j,Z=e.icon,B=e["aria-label"],G=e["aria-labelledby"],U=g(e,["options","quiet","onClose","closeOnSelect","menuClassName","disabled","invalid","multiple","required","flexible","placeholder","className","renderItem","flip","alignRight","labelId","id","icon","aria-label","aria-labelledby"]),H=this.state.value;const z=`${F}-value`;G?G+=` ${z}`:G=B?F+" "+z:M?M+" "+z:z;let V=A;if(!L){const e=r.find((e=>e.value===H));V=e?e.label:A,Z=e&&e.icon}p="boolean"==typeof p?p:!L;let Y=Object.entries((0,c.default)(U)),W=Y.filter((e=>/^aria-.*$/.test(e[0]))).reduce(((e,t)=>(e[t[0]]=t[1],e)),{}),K=Y.filter((e=>!/^aria-.*$/.test(e[0]))).reduce(((e,t)=>(e[t[0]]=t[1],e)),{}),$=this.state.width;return l&&($=this.state.width+11),l&&P&&($="max-content"),u.default.createElement(s.default,m({className:(0,a.default)("spectrum-Dropdown",{"spectrum-Dropdown--quiet":l,"react-spectrum-Dropdown-fixed":l&&!P,"react-spectrum-Dropdown-flexible":P,"is-disabled":_,"is-invalid":w},C),isFlyout:h.default.productNeedsOverlayFix,closeOnSelect:p,onSelect:this.onSelect,onOpen:this.onOpen,onClose:d,"aria-required":S,"aria-multiselectable":L,"aria-disabled":_,"aria-invalid":w,alignRight:R,flip:N},K),u.default.createElement(i.default,m({className:(0,a.default)("spectrum-Dropdown-trigger",{"spectrum-Dropdown-trigger--quiet":l}),type:"button",variant:"field","aria-haspopup":"listbox",quiet:l,disabled:_,invalid:w,ref:e=>this.button=e,overrideOnKeyDown:!0,"aria-label":B,"aria-labelledby":G,id:F,icon:Z},W),u.default.createElement("span",{id:z,className:(0,a.default)("spectrum-Dropdown-label",{"is-placeholder":V===A})},V),w&&u.default.createElement(n.default,{size:"S"}),u.default.createElement(o.default,{size:null,className:"spectrum-Dropdown-icon"})),u.default.createElement(b,{dropdownMenu:!0,flyoutMenu:h.default.productNeedsOverlayFix,className:f,options:r,value:H,multiple:L,disabled:_,invalid:w,required:S,quiet:l,style:{minWidth:$,maxWidth:this.state.width>v?this.state.width:null,overflowY:"auto",marginRight:l&&R?-5.5:null},autoFocus:!0,renderItem:k}))}}function b(e){let t=e.onClose,r=e.onOpen,n=e.onSelect,i=e.className,o=e.open,s=e.placement,c=e.style,d=e.closeOnSelect,h=e.flyoutMenu,f=e.quiet,v=g(e,["onClose","onOpen","onSelect","className","open","placement","style","closeOnSelect","flyoutMenu","quiet"]);return u.default.createElement(l.default,{flyoutMenu:h,isDialog:!1,placement:s,open:o,onClose:t,onOpen:r,style:c,className:(0,a.default)("spectrum-Dropdown-popover",{"spectrum-Dropdown-popover--quiet":f}),closeOnSelect:d},u.default.createElement(p.default,m({},v,{className:i,onChange:n,onClose:t,onTab:e=>e.preventDefault(),defaultpreventedkeys:["Tab"]})))}t.default=y},73990:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("SelectList",(()=>r(57110)),(()=>r(64692)))},64692:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=d(r(36065)),s=r(92497),c=d(r(2652)),l=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}(r(89526));function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function d(e){return e&&e.__esModule?e:{default:e}}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}let h=(0,a.default)((o=i=class extends l.Component{constructor(e){super(e),this.renderListOfOptions=e=>e.map(((e,t)=>l.default.createElement(s.ListItem,{key:t,icon:e.icon,selected:this.isSelected(e),disabled:this.props.disabled||e.disabled,onSelect:this.handleSelect.bind(this,e),onTab:this.props.onTab,defaultpreventedkeys:["Escape"],onKeyDown:this.handleKeyDown.bind(this)},this.props.renderItem?this.props.renderItem(e):e.label))),this.state={value:e.value}}UNSAFE_componentWillReceiveProps(e){e.value&&e.value!==this.state.value&&this.setState({value:e.value})}addSelection(e){return[...this.state.value||[],e.value]}removeSelection(e){let t=this.state.value||[];const r=t.indexOf(e.value);return[...t.slice(0,r),...t.slice(r+1,t.length)]}handleKeyDown(e){"Escape"===e.key&&this.props.onClose&&this.props.onClose()}handleSelect(e){let t;t=this.props.multiple?this.isSelected(e)?this.removeSelection(e):this.addSelection(e):e.value,"value"in this.props||this.setState({value:t}),this.props.onChange&&this.props.onChange(t)}isSelected(e){return this.props.multiple?this.state.value&&this.state.value.indexOf(e.value)>=0:this.state.value===e.value}render(){const e=this.props,t=e.options,r=void 0===t?[]:t,n=e.multiple,i=void 0!==n&&n,o=e.disabled,a=void 0!==o&&o,c=e.invalid,u=void 0!==c&&c,d=e.required,h=void 0!==d&&d,f=e.className,m=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["options","multiple","disabled","invalid","required","className"]);return delete m.onTab,delete m.renderItem,l.default.createElement(s.List,p({className:f,"aria-multiselectable":i,"aria-disabled":a,"aria-invalid":u,"aria-required":h,selectable:!0},m),this.renderListOfOptions(r))}},i.propTypes={disabled:c.default.bool,invalid:c.default.bool,multiple:c.default.bool,onChange:c.default.func,options:c.default.arrayOf(c.default.object),required:c.default.bool,value:c.default.oneOfType([c.default.arrayOf(c.default.string),c.default.arrayOf(c.default.number),c.default.string,c.default.number]),renderItem:c.default.func},i.defaultProps={options:[],multiple:!1,disabled:!1,invalid:!1,required:!1},n=o))||n;t.default=h},57110:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(89526)),i=o(r(64692));function o(e){return e&&e.__esModule?e:{default:e}}t.default=e=>{e.boundariesElement;const t=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["boundariesElement"]);return n.default.createElement(i.default,t)}},55678:(e,t,r)=>{"use strict";Object.defineProperty(t,"kw",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"yc",{enumerable:!0,get:function(){return i.default}});var n=o(r(64823)),i=o(r(15743));function o(e){return e&&e.__esModule?e:{default:e}}o(r(49689))},64823:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=v(r(68378)),s=r(51884),c=v(r(64403)),l=v(r(36065)),u=v(r(99870)),d=v(r(40743)),p=v(r(75870)),h=v(r(52743)),f=v(r(2652)),m=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=g();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}(r(89526));function g(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return g=function(){return e},e}function v(e){return e&&e.__esModule?e:{default:e}}function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y.apply(this,arguments)}r(77304),r(26286),r(92604),r(87571),r(20760),r(77413);const b=(e,t)=>e.children&&0!==e.children.filter((e=>{const r=e.props.children;return r&&"string"!=typeof r?b(e.props,t):e.props.value===t})).length;let _=(0,l.default)(n=(0,a.default)(n=(0,h.default)((o=i=class extends m.Component{constructor(e){super(e),this.state={value:this.props.defaultValue||this.props.value},this.id=(0,u.default)()}UNSAFE_componentWillReceiveProps(e){const t=e.value;t!==this.props.value&&this.setState({value:t})}isSelected(e){return e.props.value===this.state.value}isDefaultSelected(e){return e.props.value===this.props.defaultValue}onSelect(e,t){void 0===this.props.value&&this.setState({value:e}),this.props.onSelect(e,t)}isDefaultExpanded(e){return void 0!==e.props.defaultExpanded?e.props.defaultExpanded:Array.isArray(e.props.children)&&b(e.props,this.state.value)}render(){const e=this.props,t=e.className,r=e.children,n=e.hidden,i=e.variant,o=e.id,a=void 0===o?this.id:o,l=e.manageTabIndex,u=e.typeToSelect,h=e.ariaLevel,f=void 0===h?1:h,g=e.autoFocus,v=e.isNested,b=e["aria-label"],_=e["aria-labelledby"],E=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["className","children","hidden","variant","id","manageTabIndex","typeToSelect","ariaLevel","autoFocus","isNested","aria-label","aria-labelledby"]),w="multiLevel"===i,x=v?"div":"nav";delete E.value;let L=m.default.createElement("ul",y({className:(0,c.default)("spectrum-SideNav",{"spectrum-SideNav--multiLevel":w}),id:a+"-list","aria-label":v?b:void 0,"aria-labelledby":v?_:void 0},(0,d.default)(E)),m.Children.map(r,(e=>(0,m.cloneElement)(e,{hidden:n,manageTabIndex:l,isMultiLevel:w,ariaLevel:w?f:void 0,_nestedNavValue:this.state.value,_isSelected:this.isSelected(e),onSelect:(0,s.chain)(e.props.onSelect,this.onSelect),defaultExpanded:this.isDefaultExpanded(e)}))));return v||(L=m.default.createElement("div",{role:"toolbar","aria-orientation":"vertical"},L)),m.default.createElement(x,{id:a,hidden:n,"aria-hidden":n,role:v?"presentation":void 0,"aria-label":v?void 0:b,"aria-labelledby":v?void 0:_,className:(0,c.default)(t,"react-spectrum-SideNav")},v?L:m.default.createElement(p.default,{itemSelector:".spectrum-SideNav-itemLink:not(.is-hidden):not(.is-disabled)",selectedItemSelector:".spectrum-SideNav-itemLink:not(.is-hidden):not(.is-disabled).is-selected",manageTabIndex:w||l,typeToSelect:w||u,autoFocus:g},L))}},i.propTypes={variant:f.default.oneOf(["default","multiLevel"]),manageTabIndex:f.default.bool,typeToSelect:f.default.bool,className:f.default.string,value:f.default.string,defaultValue:f.default.string,autoFocus:f.default.bool,isNested:f.default.bool,onSelect:f.default.func},i.defaultProps={variant:"default",manageTabIndex:!1,typeToSelect:!1,autoFocus:!1,isNested:!1,onSelect:()=>{}},n=o))||n)||n)||n;t.default=_},49689:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=e.label,r=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["label"]);return n.default.createElement(i.default,a({header:t},r,{defaultExpanded:!0}))};var n=o(r(89526)),i=o(r(15743));function o(e){return e&&e.__esModule?e:{default:e}}function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}},15743:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=y(r(68378)),s=r(51884),c=y(r(64403)),l=r(44800),u=y(r(36065)),d=y(r(99870)),p=y(r(40743)),h=y(r(52743)),f=y(r(2652)),m=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=v();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}(r(89526)),g=(y(r(73961)),y(r(64823)));function v(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return v=function(){return e},e}function y(e){return e&&e.__esModule?e:{default:e}}function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},b.apply(this,arguments)}function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const x=()=>{},L=".spectrum-SideNav-itemLink[tabIndex]";let O=(0,u.default)(n=(0,a.default)(n=(0,h.default)((o=i=class extends m.Component{constructor(e){super(e),this.state={expanded:this.props.defaultExpanded||this.props.expanded,focused:!1},this.setSideNavItemRef=e=>this.sideNavItemRef=e,this.id=(0,d.default)()}get hasNestedNav(){const e=this.props.children;return e&&"string"!=typeof e}UNSAFE_componentWillReceiveProps(e){const t=e.expanded;t!==this.props.expanded&&this.setState((e=>E({},e,{expanded:t})))}handleClick(e){this.props.onClick(e),this.onSelectFocused(e)}onSelectFocused(e){const t=this.props,r=t.onSelect,n=t.value,i=t.expanded,o=t.href,a=void 0===o?e.target?e.target.href:void 0:o;let s="keydown"===e.type;a&&!s||(e.preventDefault(),e.stopPropagation(),!s||"Enter"!==e.key&&" "!==e.key)?(void 0===i&&this.setState((e=>E({},e,{expanded:!e.expanded}))),r(n,e)):e.target.click()}onKeyDown(e){const t=this.props.isMultiLevel,r=this.state.expanded,n=t&&this.hasNestedNav;switch(e.key){case"ArrowLeft":case"Left":n&&r&&(this.sideNavItemRef&&this.sideNavItemRef.querySelector(L)===document.activeElement?this.onSelectFocused(e):(e.preventDefault(),e.stopPropagation()),this.focus());break;case"ArrowRight":case"Right":if(n)if(r){if(this.sideNavItemRef){const t=Array.from(this.sideNavItemRef.querySelectorAll(L));0===t.indexOf(e.target)&&t[1].focus()}}else this.onSelectFocused(e)}}onFocus(){this.setState({focused:!0})}onBlur(){this.setState({focused:!1})}focus(){this.sideNavItemRef&&this.sideNavItemRef.querySelector(L).focus()}getDescendantId(e){const t=this.props.id,r=void 0===t?this.id:t;return e?`${r}-${e}`:r}sideNavStyle(){return{}}renderLink(e,t){let r=this.props,n=r.hidden,i=r.id,o=void 0===i?this.id:i,a=r.icon,s=r.disabled,u=r.href,d=r.renderLink,p=r.isMultiLevel,h=r.target,f=r._isSelected,g=r["aria-current"];const v=this.state,y=v.expanded,b=v.focused,_=this.hasNestedNav&&p;let E=s||!u?"link":void 0;const w={href:s?void 0:u,onClick:s?void 0:this.handleClick,onFocus:s?void 0:this.onFocus,onBlur:s?void 0:this.onBlur,tabIndex:s?void 0:t,className:(0,c.default)("spectrum-SideNav-itemLink",{"is-selected":f,"is-disabled":s,"is-focused":b,"is-hidden":n}),id:o,role:E,"aria-disabled":s||void 0,"aria-expanded":_?y:void 0,"aria-controls":_&&y?this.getDescendantId("child-list"):void 0,"aria-current":f&&!_?g:void 0,target:s||!u?void 0:h};return d?d(w):m.default.createElement("a",w,(0,l.cloneIcon)(a,{className:"spectrum-SideNav-itemIcon",size:"S"}),e)}render(){let e=this.props,t=e.header,r=e.className,n=e.children,i=e.disabled,o=e.isMultiLevel,a=e.renderLink,l=e.id,u=void 0===l?this.id:l,d=e.value,h=e._isSelected,f=e._nestedNavValue,v=e.manageTabIndex,y=e.onSelect,_=e.ariaLevel,E=e.hidden,w=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["header","className","children","disabled","isMultiLevel","renderLink","id","value","_isSelected","_nestedNavValue","manageTabIndex","onSelect","ariaLevel","hidden"]);const x=this.state,L=x.expanded,O=x.focused;let S=this.props,T=S.label,P=S.tabIndex,I=void 0===P?0:P;return T||t||(T=n),(o||v)&&(I=f&&d===f?I:-1),delete w.label,delete w.target,delete w["aria-current"],m.default.createElement("li",b({className:(0,c.default)("spectrum-SideNav-item",{"is-selected":h,"is-disabled":i,"is-focused":O},r),onKeyDown:i?void 0:(0,s.chain)(this.onKeyDown,s.interpretKeyboardEvent.bind(this)),ref:this.setSideNavItemRef},(0,p.default)(w)),(T||a)&&this.renderLink(T,I,o),t&&m.default.createElement("h2",{className:"spectrum-SideNav-heading",id:this.getDescendantId("header")},t),this.hasNestedNav&&m.default.createElement(g.default,{isNested:!0,variant:o?"multiLevel":void 0,id:this.getDescendantId("child"),"aria-labelledby":t?this.getDescendantId("header"):u,ariaLevel:_+1,hidden:E||(o?!L:void 0),value:f,onSelect:y},n))}},i.propTypes={className:f.default.string,disabled:f.default.bool,label:f.default.string,value:f.default.string,href:f.default.string,target:f.default.string,icon:f.default.node,"aria-current":f.default.oneOf(["page","location"]),expanded:f.default.bool,defaultExpanded:f.default.bool,renderLink:f.default.func,onClick:f.default.func,onSelect:f.default.func},i.defaultProps={"aria-current":"page",disabled:!1,target:"_self",onSelect:x,onClick:x},n=o))||n)||n)||n;t.default=O},21504:(e,t,r)=>{"use strict";e.exports=r(29986)},49459:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("SwitchBase",(()=>r(28580)),(()=>r(61382)))},29986:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=s(r(64403)),i=s(r(2652)),o=s(r(89526)),a=s(r(49459));function s(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function l(e){let t=e.variant,r=e.quiet,i=e.className,s=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["variant","quiet","className"]);return o.default.createElement(a.default,c({inputType:"checkbox",className:(0,n.default)("spectrum-ToggleSwitch",{[`spectrum-ToggleSwitch--${t}`]:t,"spectrum-ToggleSwitch--quiet":r},i),inputClassName:"spectrum-ToggleSwitch-input",markClassName:"spectrum-ToggleSwitch-switch",labelClassName:"spectrum-ToggleSwitch-label",role:"switch"},s))}r(16253),r(61491),r(77861),r(73258),r(63693),l.displayName="Switch",l.propTypes={className:i.default.string,checked:i.default.bool,defaultChecked:i.default.bool,label:i.default.oneOfType([i.default.string,i.default.object]),onChange:i.default.func,quiet:i.default.bool,variant:i.default.oneOf(["ab"])}},61382:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=m(r(68378)),s=m(r(64403)),c=m(r(36065)),l=m(r(40743)),u=r(51884),d=m(r(52743)),p=r(54699),h=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}(r(89526));function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function m(e){return e&&e.__esModule?e:{default:e}}function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},g.apply(this,arguments)}let v=(0,c.default)(n=(0,d.default)(n=(0,a.default)((o=i=class extends h.Component{constructor(e){super(e);const t=e.checked,r=e.defaultChecked;this.state={checked:void 0!==t?t:r||!1}}UNSAFE_componentWillReceiveProps(e){"checked"in e&&this.setState({checked:e.checked})}focus(){this.inputRef&&!this.disabled&&this.inputRef.focus()}setChecked(e){"checked"in this.props||this.setState({checked:e})}getInput(){return this.inputRef}handleChange(e){const t=this.props.onChange,r=e.target.checked;this.setChecked(r),t(r,e)}render(){const e=this.props,t=e.label,r=e.value,n=e.name,i=e.disabled,o=e.required,a=e.invalid,c=e.readOnly,d=e.className,f=e.style,m=e.children,v=e.inputType,y=e.renderLabel,b=e.inputClassName,_=e.markClassName,E=e.markIcon,w=e.labelClassName,x=e.onMouseDown,L=e.onMouseUp,O=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["label","value","name","disabled","required","invalid","readOnly","className","style","children","inputType","renderLabel","inputClassName","markClassName","markIcon","labelClassName","onMouseDown","onMouseUp"]),S=this.state.checked,T=y&&(t||m),P=T?"label":"div";delete O.onChange;let I=null;if(O["aria-label"])I=O["aria-label"],delete O["aria-label"];else if(!y&&(t||m)){let e=[];if(t&&e.push(t),m){let r=(0,p.getTextFromReact)(m);r!==t&&e.push(r)}I=e.join(" ")}return v&&!O["aria-checked"]&&(O["aria-checked"]=S),h.default.createElement(P,{className:(0,s.default)(d,{"is-invalid":a,"is-disabled":i}),style:f},h.default.createElement("input",g({ref:e=>this.inputRef=e,type:v,className:b,checked:S,disabled:i,name:n,value:r,required:!!o||null,readOnly:c,onChange:this.handleChange,onMouseDown:u.focusAfterMouseEvent.bind(this,x),onMouseUp:u.focusAfterMouseEvent.bind(this,L),"aria-invalid":a||null,"aria-label":I},(0,l.default)(O))),h.default.createElement("span",{className:_},E),T&&h.default.createElement("span",{className:w},t,t&&m&&" ",m))}},i.defaultProps={renderLabel:!0,defaultChecked:void 0,disabled:!1,required:!1,invalid:!1,readOnly:!1,onChange:function(){}},n=o))||n)||n)||n;t.default=v,v.displayName="SwitchBase"},28580:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(r(64403)),i=l(r(40743)),o=r(51884),a=r(54699),s=l(r(89526)),c=l(r(61382));function l(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}r(15682);class d extends c.default{constructor(...e){var t;return t=super(...e),this.onClickSpan=e=>{e.stopPropagation()},t}render(){const e=this.props,t=e.label,r=e.value,c=e.name,l=e.disabled,d=e.required,p=e.invalid,h=e.readOnly,f=e.className,m=e.style,g=e.children,v=e.inputType,y=e.renderLabel,b=e.inputClassName,_=e.markClassName,E=e.markIcon,w=e.labelClassName,x=e.onMouseDown,L=e.onMouseUp,O=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["label","value","name","disabled","required","invalid","readOnly","className","style","children","inputType","renderLabel","inputClassName","markClassName","markIcon","labelClassName","onMouseDown","onMouseUp"]),S=this.state.checked,T=y&&(t||g);v&&!O["aria-checked"]&&(O["aria-checked"]=S),delete O.onChange;let P=null;if(O["aria-label"])P=O["aria-label"],delete O["aria-label"];else if(!y&&(t||g)){let e=[];if(t&&e.push(t),g){let r=(0,a.getTextFromReact)(g);r!==t&&e.push(r)}P=e.join(" ")}return s.default.createElement("label",{className:(0,n.default)(f,{"is-invalid":p,"is-disabled":l}),style:m},s.default.createElement("input",u({ref:e=>this.inputRef=e,type:v,className:(0,n.default)(b,"uxp-switchBase"),checked:S,disabled:l,name:c,value:r,required:!!d||null,readOnly:h,onChange:this.handleChange,onMouseDown:o.focusAfterMouseEvent.bind(this,x),onMouseUp:o.focusAfterMouseEvent.bind(this,L),"aria-invalid":p||null,"aria-label":P},(0,i.default)(O))),s.default.createElement("span",{onClick:this.onClickSpan,className:_},E),T&&s.default.createElement("span",{onClick:this.onClickSpan,className:w},t,t&&g&&" ",g))}}t.default=d,d.displayName="UxpSwitchBase"},77057:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("Textfield",(()=>r(70664)),(()=>r(46301)))},46301:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o,a=h(r(68378)),s=h(r(64403)),c=h(r(40743)),l=h(r(2652)),u=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}(r(89526)),d=h(r(73961));function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function h(e){return e&&e.__esModule?e:{default:e}}function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}r(79163),r(25226),r(12476),r(1447),r(41254);let m=(0,a.default)((o=i=class extends u.Component{componentDidMount(){this.props.autoFocus&&requestAnimationFrame((()=>this.focus()))}focus(){this.props.disabled||d.default.findDOMNode(this).focus()}onChange(e){this.props.onChange&&this.props.onChange(e.target.value,e)}render(){const e=this.props,t=e.className,r=e.quiet,n=e.disabled,i=e.required,o=e.invalid,a=e.readOnly,l=e.multiLine,d=e.validationState,p=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["className","quiet","disabled","required","invalid","readOnly","multiLine","validationState"]);var h=l?"textarea":"input";const m=o||"invalid"===d;return delete p.autoFocus,delete p.autocompleteInput,o&&console.warn('The "invalid" prop of Textfield is deprecated. Please use validationState="invalid" instead.'),u.default.createElement(h,f({type:"text",className:(0,s.default)("spectrum-Textfield",{"spectrum-Textfield--multiline":l,"is-invalid":m,"is-valid":"valid"===d,"spectrum-Textfield--quiet":r},t),disabled:n,required:i,readOnly:a,"aria-invalid":m||null,defaultValue:p.defaultValue},(0,c.default)(p),{onChange:this.onChange,rows:l&&!r?p.rows:1}))}},i.propTypes={autoFocus:l.default.bool,className:l.default.string,disabled:l.default.bool,invalid:l.default.bool,multiLine:l.default.bool,onBlur:l.default.func,onChange:l.default.func,onFocus:l.default.func,placeholder:l.default.string,quiet:l.default.bool,readOnly:l.default.bool,required:l.default.bool,validationState:l.default.oneOf(["valid","invalid"])},i.defaultProps={autoFocus:!1,disabled:!1,quiet:!1,required:!1,invalid:!1,readOnly:!1},n=o))||n;t.default=m,m.displayName="Textfield"},70664:(e,t,r)=>{"use strict";function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,s,c=b(r(68378)),l=b(r(83737)),u=b(r(64403)),d=b(r(27984)),p=b(r(40743)),h=r(37339),f=b(r(2652)),m=b(r(89526)),g=r(85706),v=b(r(46301)),y=b(r(58648));function b(e){return e&&e.__esModule?e:{default:e}}function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x(){return x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},x.apply(this,arguments)}r(79620),r(42876);const L=window.require&&window.require("uxp");r(79163),r(25226),r(12476),r(1447),r(41254);let O=(0,c.default)((s=a=class extends v.default{constructor(e){super(e),this.getFontStyle=()=>{this.inputContainer&&(this.fontFamily=window.getComputedStyle(this.inputContainer).getPropertyValue("font-family"),this.fontSize=window.getComputedStyle(this.inputContainer).getPropertyValue("font-size"),this.fontVariant=window.getComputedStyle(this.inputContainer).getPropertyValue("font-variant"),this.inputContainer.removeEventListener("resize",this.getFontStyle))},this.focusInput=()=>{this.inputContainer.focus(),this.inputContainer.removeEventListener("resize",this.focusInput)},this.resize=()=>{this.inputContainer&&(this.inputContainer.focus(),this.inputContainer.select(),this.inFocus=!0,this.inputContainer.removeEventListener("resize",this.resize))},this.state={inputText:"",showFocus:!1,overlayPresent:!1},this.overlaysMap=new Map,this.inputActive=!0}componentDidMount(){this.inputContainer&&(this.inputContainer.addEventListener("resize",this.getFontStyle),this.props.autoFocus&&!this.props.disabled&&this.inputContainer.addEventListener("resize",this.resize))}hasPlaceholderText(){return!(!this.props.placeholder||this.props.value||this.state.inputText)}updateSpanStyle(){this.inputContainer.style.fontFamily=this.fontFamily,this.inputContainer.style.fontSize=this.fontSize,this.inputContainer.style.fontVariant=this.fontVariant,L.host&&"Photoshop"===L.host.name?this.hasPlaceholderText()&&(this.inputContainer.style.fontStyle="italic",this.inputContainer.style.paddingBottom="1px"):L.host&&(L.host.isDrover||"Illustrator"===L.host.name)&&(this.hasPlaceholderText()&&(this.inputContainer.style.fontStyle="italic",this.inputContainer.style.fontSize="11px"),this.inputContainer.style.paddingLeft="4px",this.props.quiet||"Illustrator"===L.host.name||(this.inputContainer.style.paddingBottom="1px"))}componentDidUpdate(){if(this.inputContainer&&"SPAN"===this.inputContainer.nodeName&&this.updateSpanStyle(),!0===this.inFocus){const e=this.isAnyOverlayVisible();e&&(this.inputActive=!1,this.inputContainer.addEventListener("resize",this.focusInput)),this.inputActive||e||(this.inputContainer.addEventListener("resize",this.focusInput),this.inputActive=!0)}}focus(){!this.props.disabled&&this.inputContainer&&this.inputContainer.focus()}isAnyOverlayVisible(){var e,t=n(this.overlaysMap.values());try{for(t.s();!(e=t.n()).done;)if(e.value.visible)return!0}catch(e){t.e(e)}finally{t.f()}return!1}componentWillUnmount(){this.props.autoFocus&&!this.props.disabled&&this.inputContainer&&this.inputContainer.removeEventListener("resize",this.resize)}onChange(e){this.setState({inputText:e.target.value}),this.props.onChange&&this.props.onChange(e.target.value,e)}handleClick(e){this.inputContainer.focus(),this.inFocus=!0,this.props.onClick&&this.props.onClick(e)}handleFocus(e){this.setState({showFocus:!0}),this.props.onFocus&&this.props.onFocus(e),this.inFocus=!0}handleBlur(e){this.setState({showFocus:!1}),this.props.onBlur&&this.props.onBlur(e),this.inFocus=!1}executeOverlayCallbacks(){var e,t=n(this.overlaysMap.values());try{for(t.s();!(e=t.n()).done;){var r=e.value;r.callback&&r.callback()}}catch(e){t.e(e)}finally{t.f()}}handleSpanKeyUp(e){if(this.props.onKeyUp&&this.props.onKeyUp(e),this.executeOverlayCallbacks(),e.target.value=e.target.innerHTML,1===e.key.length&&(e.target.value+=e.key),8===e.keyCode&&e.target.value&&e.target.value.length>0){let t=e.target.value;e.target.value=t.substring(0,t.length-1)}this.onChange(e)}removeOverlay(e){e&&this.overlaysMap&&this.overlaysMap.delete(e.overlayRef)}showInput(e){return this.updateOverlayMap(e),0===this.overlaysMap.size}updateOverlayMap(e){if(!this.searchContainer)return;const t=this.searchContainer.getBoundingClientRect();if(0!==t.height&&0!==t.width&&e){e.data.visible&&(0,l.default)(t,e.data.boundingRect)?this.overlaysMap.set(e.overlayRef,e.data):this.removeOverlay(e);const r=this.overlaysMap.has(e.overlayRef);r!==this.state.overlayPresent&&this.setState({overlayPresent:r})}}render(){const e=this.props,t=e.className,r=e.style,n=e.quiet,i=e.disabled,o=e.required,a=e.invalid,s=e.readOnly,c=e.multiLine,l=e.validationState,f=e.disableOnOverlay,v=e.alwaysNative,b=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["className","style","quiet","disabled","required","invalid","readOnly","multiLine","validationState","disableOnOverlay","alwaysNative"]);var _=this.state.showFocus,E=c?"textarea":"input";const w=a||"invalid"===l||o&&!this.state.inputText,L="valid"===l;delete b.autoFocus,delete b.autocompleteInput,delete b.onFocus,delete b.onBlur,a&&console.warn('The "invalid" prop of Textfield is deprecated. Please use validationState="invalid" instead.');let O=o&&!this.state.inputText||w||L,S=h.invalidSvg;L&&(S=h.validSvg);let T=i?"disabled":"default",P={};return m.default.createElement(g.SpectrumContext.Consumer,null,(({scale:e,theme:a,productId:l,disableNativeControls:h,overlay:g}={})=>{_&&!w&&(P.borderColor=d.default.elements[a][e].textfield.default.states["mouse-focus"]["border-color"]);let I=d.default.elements[a][e].textfield.default.states[T]["background-color"];return P.backgroundColor=I,m.default.createElement("div",{className:(0,u.default)("spectrum-Textfield",`spectrum--${a}`,{"spectrum-Textfield--multiline":c,"is-invalid":w,"is-disabled":i,"is-valid":L,"spectrum-Textfield--quiet":n},t),style:Object.assign({},P,r),ref:e=>this.searchContainer=e,disabled:i,onClick:i?void 0:this.handleClick},!v&&y.default.productNeedsOverlayFix&&(!this.showInput(g)||f&&h)?m.default.createElement("span",{className:"inputSpan",target:this.props.value||this.state.inputText?"value":"placeholder",tabIndex:0,ref:e=>this.inputContainer=e,onKeyUp:this.handleSpanKeyUp,onFocus:i?void 0:this.handleFocus,onBlur:i?void 0:this.handleBlur},this.props.value||this.state.inputText||this.props.placeholder):m.default.createElement(E,x({type:"text",className:"inputText",ref:e=>this.inputContainer=e,style:{appearance:"none",backgroundColor:"inherit"},onFocus:i?void 0:this.handleFocus,onBlur:i?void 0:this.handleBlur,value:this.state.inputText,disabled:i,required:o,readOnly:s,"aria-invalid":w||null,defaultValue:b.defaultValue},(0,p.default)(b),{onChange:this.onChange,rows:c&&!n?b.rows:1})),O&&m.default.cloneElement(S))}))}},a.propTypes=E({},v.default.propTypes,{alwaysNative:f.default.bool}),a.defaultProps=E({},v.default.defaultProps,{alwaysNative:!1}),o=s))||o;t.default=O,O.displayName="UxpTextfield"},37339:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.invalidSvg=t.validSvg=void 0;var n,i=(n=r(89526))&&n.__esModule?n:{default:n};const o=i.default.createElement("svg",{id:"valid_svg",height:"12",viewBox:"0 0 12 12",width:"36"},i.default.createElement("path",{style:{fill:"rgb(18, 128, 92)"},d:"M4.5 10a1.023 1.023 0 0 1-.8-.384l-2.488-3a1 1 0 0 1 1.577-1.233L4.5 7.376l4.712-5.991a1 1 0 1 1 1.576 1.23l-5.511 7A.977.977 0 0 1 4.5 10z"}));t.validSvg=o;const a=i.default.createElement("svg",{id:"invalid_svg",height:"18",viewBox:"0 0 18 18",width:"42"},i.default.createElement("path",{style:{fill:"rgb(227, 72, 80)"},d:"M8.564 1.289L.2 16.256A.5.5 0 0 0 .636 17h16.728a.5.5 0 0 0 .5-.5.494.494 0 0 0-.064-.244L9.436 1.289a.5.5 0 0 0-.872 0zM10 14.75a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25zm0-3a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-6a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25z"}));t.invalidSvg=a},48767:(e,t,r)=>{"use strict";Object.defineProperty(t,"ZP",{enumerable:!0,get:function(){return i.default}});var n,i=(n=r(20435))&&n.__esModule?n:{default:n}},20435:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("Toast",(()=>r(84690)),(()=>r(91153)))},91153:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=b,t.DEFAULT_ROLE=t.ICONS=t.formatMessage=void 0;var n=f(r(77487)),i=f(r(96195)),o=f(r(64403)),a=f(r(45537)),s=f(r(40743)),c=f(r(16619)),l=r(3585),u=f(r(2652)),d=f(r(89526)),p=f(r(69880));function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}function f(e){return e&&e.__esModule?e:{default:e}}const m={"cs-CZ":f(r(78712)).default,"da-DK":f(r(22344)).default,"de-DE":f(r(86919)).default,"en-US":f(r(60342)).default,"es-ES":f(r(89340)).default,"fi-FI":f(r(74633)).default,"fr-FR":f(r(78313)).default,"hu-HU":f(r(87992)).default,"it-IT":f(r(20160)).default,"ja-JP":f(r(19660)).default,"ko-KR":f(r(2437)).default,"nb-NO":f(r(66830)).default,"nl-NL":f(r(30653)).default,"pl-PL":f(r(44612)).default,"pt-BR":f(r(71689)).default,"ru-RU":f(r(37281)).default,"sv-SE":f(r(85308)).default,"tr-TR":f(r(24542)).default,"uk-UA":f(r(57933)).default,"zh-CN":f(r(51525)).default,"zh-TW":f(r(33621)).default};r(91540),r(9174),r(28250),r(19766),r(23324);const g=(0,l.messageFormatter)(m);t.formatMessage=g;const v={error:n.default,warning:n.default,info:c.default,success:p.default};t.ICONS=v;const y="alert";function b(e){let t=e.variant,r=e.children,n=e.closable,c=e.onClose,l=e.onAction,u=e.className,p=(e.timeout,e.actionLabel),f=e.closeOnAction,m=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["variant","children","closable","onClose","onAction","className","timeout","actionLabel","closeOnAction"]),b=v[t],_=m.role||y;return d.default.createElement("div",h({role:_,className:(0,o.default)("spectrum-Toast",{["spectrum-Toast--"+t]:t},u)},(0,s.default)(m)),b&&d.default.createElement(b,{size:null,className:"spectrum-Toast-typeIcon",alt:g(t)}),d.default.createElement("div",{className:"spectrum-Toast-body"},d.default.createElement("div",{className:"spectrum-Toast-content"},r),p&&d.default.createElement(i.default,{label:p,quiet:!0,variant:"overBackground",onClick:(...e)=>{l&&l(...e),f&&c&&c(...e)}})),n&&d.default.createElement("div",{className:"spectrum-Toast-buttons"},d.default.createElement("button",{"aria-label":g("close"),className:"spectrum-ClearButton spectrum-ClearButton--medium spectrum-ClearButton--overBackground",onClick:c},d.default.createElement(a.default,{size:null}))))}t.DEFAULT_ROLE=y,b.propTypes={children:u.default.node,variant:u.default.oneOf(["error","warning","info","success"]),closable:u.default.bool,actionLabel:u.default.string,closeOnAction:u.default.bool,onClose:u.default.func,onAction:u.default.func,timeout:u.default.number}},84690:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=d(r(64403)),i=d(r(45537)),o=d(r(40743)),a=u(r(89526)),s=d(r(37001)),c=u(r(91153));function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}function d(e){return e&&e.__esModule?e:{default:e}}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}r(88576);class h extends a.Component{constructor(e){super(e),this.toastHandler=()=>{(0,s.default)(this.toastRef,!0)}}componentDidMount(){this.toastRef&&window.addEventListener("resize",this.toastHandler)}componentWillUnmount(){(0,s.default)(this.toastRef,!1),window.removeEventListener("resize",this.toastHandler)}render(){const e=this.props,t=e.variant,r=e.children,s=e.closable,l=e.onClose,u=e.onAction,d=e.className,h=e.actionLabel,f=e.closeOnAction,m=e.icon,g=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["variant","children","closable","onClose","onAction","className","actionLabel","closeOnAction","icon"]);let v=m||c.ICONS[t],y=g.role||c.DEFAULT_ROLE;return a.default.createElement("div",p({ref:e=>this.toastRef=e,role:y,className:(0,n.default)("spectrum-Toast",{["spectrum-Toast--"+t]:t},d)},(0,o.default)(g)),v&&a.default.createElement(v,{size:null,className:"spectrum-Toast-typeIcon",alt:(0,c.formatMessage)(t)}),a.default.createElement("div",{className:"spectrum-Toast-body"},a.default.createElement("div",{className:"spectrum-Toast-content"},r),h&&a.default.createElement("div",{className:(0,n.default)("spectrum-Button spectrum-Button--quiet spectrum-Button--overBackground","uxp-labelStyle",d),onClick:(...e)=>{u&&u(...e),f&&l&&l(...e)}},h)),s&&a.default.createElement("div",{className:"spectrum-Toast-buttons"},a.default.createElement("div",{className:(0,n.default)("spectrum-ClearButton spectrum-ClearButton--medium spectrum-ClearButton--overBackground","spectrum-ClearButton-Override",d),onClick:l},a.default.createElement(i.default,{size:null}))))}}t.default=h,h.propTypes=c.default.propTypes},61553:(e,t)=>{"use strict";function r(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw a}}}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.setToastPlacement=function(e){t.TOAST_PLACEMENT=o=e;var n,a=r(i.values());try{for(a.s();!(n=a.n()).done;)n.value.setState({placement:e})}catch(e){a.e(e)}finally{a.f()}},t.TOAST_PLACEMENT=t.TOAST_CONTAINERS=void 0;const i=new Map;t.TOAST_CONTAINERS=i;let o="top center";t.TOAST_PLACEMENT=o},10387:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("Tooltip",(()=>r(13452)),(()=>r(88550)))},88550:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(r(64403)),i=l(r(99870)),o=l(r(40743)),a=l(r(2652)),s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}(r(89526));function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function l(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}r(6649),r(84654),r(1926),r(12656),r(22361);class d extends s.Component{constructor(e){super(e),this.tooltipId=(0,i.default)()}render(){const e=this.props,t=e.variant,r=e.children,i=e.className,a=e.placement,c=e.open,l=e.id,d=void 0===l?this.tooltipId:l,p=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["variant","children","className","placement","open","id"]);return s.default.createElement("span",u({className:(0,n.default)("spectrum-Tooltip",`spectrum-Tooltip--${t}`,`spectrum-Tooltip--${a.split(" ")[0]}`,{"is-open":c},i),id:d},(0,o.default)(p)),s.default.createElement("span",{className:"spectrum-Tooltip-label"},r),this.renderTip())}renderTip(){return s.default.createElement("span",{className:"spectrum-Tooltip-tip",style:this.props.arrowStyle})}}t.default=d,d.propTypes={placement:a.default.oneOf(["bottom","top","left","right"]),variant:a.default.oneOf(["inspect","info","success","error"]),className:a.default.string,id:a.default.string,role:a.default.oneOf(["tooltip"]),open:a.default.bool},d.defaultProps={variant:"inspect",placement:"right",open:!0,role:"tooltip"}},13452:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(r(64403)),i=u(r(27984)),o=u(r(40743)),a=u(r(89526)),s=u(r(37001)),c=r(85706),l=u(r(88550));function u(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}function p(e,t){return"right"===t?`M ${2*e} 0 l ${-e} ${e} l ${e} ${e} z`:"left"===t?`M 0 0 l ${e} ${e} l ${-e} ${e} z`:"top"===t?`M 0 0 l ${e} ${e} l ${e} ${-e} z`:"bottom"===t?`M 0 ${2*e} l ${e} ${-e} l ${e} ${e} z`:void 0}const h={inspect:"default",info:"info",error:"negative",success:"positive"};class f extends l.default{constructor(...e){var t;return t=super(...e),this.setOverlayVisible=()=>{(0,s.default)(this.tooltipRef,!0,this.hide)},this.setOverlayHidden=()=>{(0,s.default)(this.tooltipRef,!1)},this.hide=()=>{this.tooltipRef&&(this.tooltipRef.style.display="none")},t}componentDidMount(){this.tooltipRef&&this.tooltipRef.addEventListener("resize",this.setOverlayVisible)}componentWillUnmount(){this.tooltipRef&&this.tooltipRef.removeEventListener("resize",this.setOverlayVisible),this.setOverlayHidden()}renderTip(){const e=this.props,t=e.variant,r=e.placement;return a.default.createElement(c.SpectrumContext.Consumer,null,(({scale:e,theme:n}={})=>a.default.createElement("svg",{className:"spectrum-Tooltip-tip",style:{width:8,height:8,border:"none",fill:i.default.elements[n][e].tooltip[h[t]].states.default["tip-color"]}},a.default.createElement("path",{d:p(4,r)}))))}render(){const e=this.props,t=e.variant,r=e.children,i=e.className,s=e.placement,c=e.open,l=e.id,u=void 0===l?this.tooltipId:l,p=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["variant","children","className","placement","open","id"]);return a.default.createElement("span",d({ref:e=>this.tooltipRef=e,className:(0,n.default)("spectrum-Tooltip",`spectrum-Tooltip--${t}`,`spectrum-Tooltip--${s.split(" ")[0]}`,{"is-open":c},i),id:u},(0,o.default)(p)),a.default.createElement("span",{className:"spectrum-Tooltip-label"},r),this.renderTip())}}t.default=f},88166:(e,t,r)=>{"use strict";var n,i=(n=r(58648))&&n.__esModule?n:{default:n};e.exports=i.default.select("Wait",(()=>r(98629)),(()=>r(36067)))},98629:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(36067),a=p(r(27984)),s=p(r(40743)),c=p(r(2652)),l=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}(r(89526)),u=r(85706);function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function p(e){return e&&e.__esModule?e:{default:e}}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}function f(e){function t(t){return 1/(1+Math.exp(-e*t))-.5}var r=.5/t(1);return function(e){var n;return n=e,e=Math.max(Math.min(n,1),0),r*t(2*e-1)+.5}}function m(e,t){return"0 0 "+e.replace(/px/gi,"")+" "+t.replace(/px/gi,"")}function g(e,t,r){r<t&&(r+=360);let n=r-t;if(n>=360)return`M ${2*e} ${e} A ${e} ${e} 0 0 1 0 ${e} A ${e} ${e} 0 0 1 ${2*e} ${e}`;let i=2*Math.PI*(t/360),o=2*Math.PI*(r/360),a=-Math.PI/2.2;return`M ${e+e*Math.cos(i+a)} ${e+e*Math.sin(i+a)} A ${e} ${e} 0 ${n>=180?1:0} 1 ${e+e*Math.cos(o+a)} ${e+e*Math.sin(o+a)}`}r(78211);const v={L:{determinate:"large",indeterminate:"large",overBackground:"large-over-background"},M:{determinate:"medium",indeterminate:"medium",overBackground:"medium-over-background"},S:{determinate:"small",indeterminate:"small",overBackground:"small-over-background"}};class y extends l.Component{constructor(...e){var t;return t=super(...e),this.tick=()=>{this.animId=requestAnimationFrame((()=>{let e=(this.getValue()+1.8)%100;this.setState({value:e}),this.tick()}))},t}getValue(){return this.props&&this.props.value?this.props.value:this.state&&this.state.value?this.state.value:0}get indeterminate(){return this.props.variant!==o.DETERMINATE}componentDidMount(){this.tick()}componentWillUnmount(){cancelAnimationFrame(this.animId)}render(){let e,t,r=this.props,i=r.size,c=void 0===i?"M":i,d=r.className,p=(r.indeterminate,r.centered),y=void 0!==p&&p,b=r.variant,_=void 0===b?o.INDETERMINATE:b,E=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(r,["size","className","indeterminate","centered","variant"]),w=this.getValue(),x="overBackground"===_?"0.2":"1.0";if(this.indeterminate){var L=n(function(e){let t=360*f(4)(e),r=360*f(5.5)((e+.4)%1);return t<0&&(t+=1),r<t&&(r+=1),[t,r]}(w/100),2);e=L[0],t=L[1]}else e=0,t=this.props.value/100*360;return l.default.createElement(u.SpectrumContext.Consumer,null,(({scale:r,theme:n}={})=>{const i=a.default.elements[n][r].circleloader[v[c][_]],o=i.states.default["track-color"],u=i.states.default["track-fill-color"];let p=parseInt(i.dimensions["border-size"].slice(0,-2),10),f=parseInt(i.dimensions.width.slice(0,-2),10)/2-p,b=Math.floor(p/2+1),w=`circleLoader--${v[c].indeterminate}`;return l.default.createElement("div",{className:`spectrum-CircleLoader ${w} ${d} ${y?"react-spectrum-Wait--centered":""}`},l.default.createElement("svg",h({viewBox:m(i.dimensions.height,i.dimensions.width),className:w},(0,s.default)(E)),l.default.createElement("path",{d:g(f,0,360),stroke:o,strokeOpacity:x,fill:"transparent",strokeWidth:p,transform:`translate(${b}, ${b})`}),l.default.createElement("path",{d:g(f,e,t),stroke:u,fill:"transparent",strokeWidth:p+1,transform:`translate(${b}, ${b})`})))}))}}t.default=y,y.propTypes={centered:c.default.bool,className:c.default.string,indeterminate:c.default.bool,size:c.default.string,value:c.default.number,variant:c.default.string}},36067:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.INDETERMINATE=t.DETERMINATE=void 0;var n=s(r(64403)),i=s(r(40743)),o=s(r(2652)),a=s(r(89526));function s(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}r(18236),r(54698),r(849),r(9781),r(10454),r(96014);const l="determinate";t.DETERMINATE=l;const u="indeterminate";t.INDETERMINATE=u;class d extends a.default.Component{render(){let e,t,r=this.props,o=r.value,s=void 0===o?0:o,d=r.size,p=void 0===d?"M":d,h=r.indeterminate,f=void 0===h||h,m=r.centered,g=void 0!==m&&m,v=r.className,y=r.variant,b=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(r,["value","size","indeterminate","centered","className","variant"]),_={},E={};return y!==l&&y!==u||console.warn(`The "${y}" variant of Wait is deprecated. Please use the "indeterminate" prop instead.`),y!==l&&f||(s=Math.min(Math.max(+s,0),100),t=s,s>0&&s<=50?(e=s/50*180-180,_.transform="rotate("+e+"deg)",E.transform="rotate(-180deg)"):s>50&&(e=(s-50)/50*180-180,_.transform="rotate(0deg)",E.transform="rotate("+e+"deg)")),a.default.createElement("div",c({className:(0,n.default)("spectrum-CircleLoader",{"spectrum-CircleLoader--indeterminate":y===u||f&&y!==l,"spectrum-CircleLoader--small":"S"===p,"spectrum-CircleLoader--large":"L"===p,"spectrum-CircleLoader--overBackground":"overBackground"===y,"react-spectrum-Wait--centered":g},v),role:"progressbar","aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":100},(0,i.default)(b)),a.default.createElement("div",{className:"spectrum-CircleLoader-track"}),a.default.createElement("div",{className:"spectrum-CircleLoader-fills"},a.default.createElement("div",{className:"spectrum-CircleLoader-fillMask1"},a.default.createElement("div",{className:"spectrum-CircleLoader-fillSubMask1",style:_},a.default.createElement("div",{className:"spectrum-CircleLoader-fill"}))),a.default.createElement("div",{className:"spectrum-CircleLoader-fillMask2"},a.default.createElement("div",{className:"spectrum-CircleLoader-fillSubMask2",style:E},a.default.createElement("div",{className:"spectrum-CircleLoader-fill"})))))}}t.default=d,d.propTypes={centered:o.default.bool,className:o.default.string,indeterminate:o.default.bool,size:o.default.string,value:o.default.number,variant:o.default.oneOf(["overBackground"])}},36982:()=>{!function(e){if(e){var t=["Tab","ArrowUp","ArrowRight","ArrowDown","ArrowLeft","Home","End","PageUp","PageDown","Enter"," ","Escape","Up","Right","Down","Left","Esc"],r=["text","date","datetime-local","email","month","number","password","search","tel","time","url","week"],n=!1,i=e.getElementsByClassName("focus-ring");e.addEventListener("keydown",(function(i){i.ctrlKey||i.altKey||i.metaKey||-1===t.indexOf(i.key)||(n=!0,!e.activeElement||e.activeElement===e.body||"TEXTAREA"===e.activeElement.tagName||"INPUT"===e.activeElement.tagName&&-1!==r.indexOf(e.activeElement.type)||e.activeElement.classList.add("focus-ring"))}),!0),e.addEventListener("mousedown",(function(){n=!1;for(var e=0;e<i.length;e++)i[e].classList.remove("focus-ring")}),!0),e.addEventListener("focus",(function(e){var t=e.target.classList;t&&n&&t.add("focus-ring")}),!0),e.addEventListener("blur",(function(e){var t=e.target.classList;t&&t.remove("focus-ring")}),!0)}}("undefined"==typeof window?void 0:document)},93300:(e,t,r)=>{"use strict";var n=r(379).Z;r(11009),(t=e.exports=n).default=t},3007:(e,t)=>{"use strict";function r(e,t,r){this.locales=e,this.formats=t,this.pluralFn=r}function n(e){this.id=e}function i(e,t,r,n,i){this.id=e,this.useOrdinal=t,this.offset=r,this.options=n,this.pluralFn=i}function o(e,t,r,n){this.id=e,this.offset=t,this.numberFormat=r,this.string=n}function a(e,t){this.id=e,this.options=t}t.default=r,r.prototype.compile=function(e){return this.pluralStack=[],this.currentPlural=null,this.pluralNumberFormat=null,this.compileMessage(e)},r.prototype.compileMessage=function(e){if(!e||"messageFormatPattern"!==e.type)throw new Error('Message AST is not of type: "messageFormatPattern"');var t,r,n,i=e.elements,o=[];for(t=0,r=i.length;t<r;t+=1)switch((n=i[t]).type){case"messageTextElement":o.push(this.compileMessageText(n));break;case"argumentElement":o.push(this.compileArgument(n));break;default:throw new Error("Message element does not have a valid type")}return o},r.prototype.compileMessageText=function(e){return this.currentPlural&&/(^|[^\\])#/g.test(e.value)?(this.pluralNumberFormat||(this.pluralNumberFormat=new Intl.NumberFormat(this.locales)),new o(this.currentPlural.id,this.currentPlural.format.offset,this.pluralNumberFormat,e.value)):e.value.replace(/\\#/g,"#")},r.prototype.compileArgument=function(e){var t=e.format;if(!t)return new n(e.id);var r,o=this.formats,s=this.locales,c=this.pluralFn;switch(t.type){case"numberFormat":return r=o.number[t.style],{id:e.id,format:new Intl.NumberFormat(s,r).format};case"dateFormat":return r=o.date[t.style],{id:e.id,format:new Intl.DateTimeFormat(s,r).format};case"timeFormat":return r=o.time[t.style],{id:e.id,format:new Intl.DateTimeFormat(s,r).format};case"pluralFormat":return r=this.compileOptions(e),new i(e.id,t.ordinal,t.offset,r,c);case"selectFormat":return r=this.compileOptions(e),new a(e.id,r);default:throw new Error("Message element does not have a valid format type")}},r.prototype.compileOptions=function(e){var t,r,n,i=e.format,o=i.options,a={};for(this.pluralStack.push(this.currentPlural),this.currentPlural="pluralFormat"===i.type?e:null,t=0,r=o.length;t<r;t+=1)a[(n=o[t]).selector]=this.compileMessage(n.value);return this.currentPlural=this.pluralStack.pop(),a},n.prototype.format=function(e){return e||"number"==typeof e?"string"==typeof e?e:String(e):""},i.prototype.getOption=function(e){var t=this.options;return t["="+e]||t[this.pluralFn(e-this.offset,this.useOrdinal)]||t.other},o.prototype.format=function(e){var t=this.numberFormat.format(e-this.offset);return this.string.replace(/(^|[^\\])#/g,"$1"+t).replace(/\\#/g,"#")},a.prototype.getOption=function(e){var t=this.options;return t[e]||t.other}},97454:(e,t,r)=>{"use strict";var n=r(60003),i=r(85049),o=r(3007),a=r(60922);function s(e,t,r){var n="string"==typeof e?s.__parse(e):e;if(!n||"messageFormatPattern"!==n.type)throw new TypeError("A message must be provided as a String or AST.");r=this._mergeFormats(s.formats,r),i.defineProperty(this,"_locale",{value:this._resolveLocale(t)});var o=this._findPluralRuleFunction(this._locale),a=this._compilePattern(n,t,r,o),c=this;this.format=function(t){try{return c._format(a,t)}catch(t){throw t.variableId?new Error("The intl string context variable '"+t.variableId+"' was not provided to the string '"+e+"'"):t}}}t.default=s,i.defineProperty(s,"formats",{enumerable:!0,value:{number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}),i.defineProperty(s,"__localeData__",{value:i.objCreate(null)}),i.defineProperty(s,"__addLocaleData",{value:function(e){if(!e||!e.locale)throw new Error("Locale data provided to IntlMessageFormat is missing a `locale` property");s.__localeData__[e.locale.toLowerCase()]=e}}),i.defineProperty(s,"__parse",{value:a.default.parse}),i.defineProperty(s,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),s.prototype.resolvedOptions=function(){return{locale:this._locale}},s.prototype._compilePattern=function(e,t,r,n){return new o.default(t,r,n).compile(e)},s.prototype._findPluralRuleFunction=function(e){for(var t=s.__localeData__,r=t[e.toLowerCase()];r;){if(r.pluralRuleFunction)return r.pluralRuleFunction;r=r.parentLocale&&t[r.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlMessageFormat is missing a `pluralRuleFunction` for :"+e)},s.prototype._format=function(e,t){var r,i,o,a,s,c,l="";for(r=0,i=e.length;r<i;r+=1)if("string"!=typeof(o=e[r])){if(a=o.id,!t||!n.hop.call(t,a))throw(c=new Error("A value must be provided for: "+a)).variableId=a,c;s=t[a],o.options?l+=this._format(o.getOption(s),t):l+=o.format(s)}else l+=o;return l},s.prototype._mergeFormats=function(e,t){var r,o,a={};for(r in e)n.hop.call(e,r)&&(a[r]=o=i.objCreate(e[r]),t&&n.hop.call(t,r)&&n.extend(o,t[r]));return a},s.prototype._resolveLocale=function(e){"string"==typeof e&&(e=[e]),e=(e||[]).concat(s.defaultLocale);var t,r,n,i,o=s.__localeData__;for(t=0,r=e.length;t<r;t+=1)for(n=e[t].toLowerCase().split("-");n.length;){if(i=o[n.join("-")])return i.locale;n.pop()}var a=e.pop();throw new Error("No locale data has been added to IntlMessageFormat for: "+e.join(", ")+", or the default locale: "+a)}},69511:(e,t)=>{"use strict";t.default={locale:"en",pluralRuleFunction:function(e,t){var r=String(e).split("."),n=!r[1],i=Number(r[0])==e,o=i&&r[0].slice(-1),a=i&&r[0].slice(-2);return t?1==o&&11!=a?"one":2==o&&12!=a?"two":3==o&&13!=a?"few":"other":1==e&&n?"one":"other"}}},85049:(e,t,r)=>{"use strict";var n=r(60003),i=function(){try{return!!Object.defineProperty({},"a",{})}catch(e){return!1}}(),o=(!i&&Object.prototype.__defineGetter__,i?Object.defineProperty:function(e,t,r){"get"in r&&e.__defineGetter__?e.__defineGetter__(t,r.get):n.hop.call(e,t)&&!("value"in r)||(e[t]=r.value)}),a=Object.create||function(e,t){var r,i;function a(){}for(i in a.prototype=e,r=new a,t)n.hop.call(t,i)&&o(r,i,t[i]);return r};t.defineProperty=o,t.objCreate=a},379:(e,t,r)=>{"use strict";var n=r(97454),i=r(69511);n.default.__addLocaleData(i.default),n.default.defaultLocale="en",t.Z=n.default},60003:(e,t)=>{"use strict";t.extend=function(e){var t,n,i,o,a=Array.prototype.slice.call(arguments,1);for(t=0,n=a.length;t<n;t+=1)if(i=a[t])for(o in i)r.call(i,o)&&(e[o]=i[o]);return e};var r=Object.prototype.hasOwnProperty;t.hop=r},75870:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.trapFocus=function(e,t){const r=t.type,n=t.key,i=t.shiftKey,o=t.target;let a,s,c,l,d;"keydown"!==r&&"focus"!==r||(a=u.default.findDOMNode(e),a&&(s=Array.from(a.querySelectorAll(y)).filter((e=>e!==a)),l=s[0]||a,d=s[s.length-1]||a)),"keydown"===r&&"Tab"===n?a&&(i?o!==l&&o!==a||(c=d):o!==d&&o!==a||(c=l)):"focus"===r&&o===a&&(c=l),c&&(t.preventDefault(),t.stopPropagation(),c!==document.activeElement&&c.focus())},t.TABBABLE_ELEMENT_SELECTOR=t.FOCUSABLE_ELEMENT_SELECTOR=t.default=void 0;var n,i,o,a=h(r(68378)),s=r(51884),c=h(r(2652)),l=h(r(89526)),u=h(r(73961)),d=r(54699),p=h(r(10086));function h(e){return e&&e.__esModule?e:{default:e}}const f=/[\n\r]+|[\s]{1,}/g;let m=(0,a.default)((o=i=class extends l.default.Component{constructor(...e){var t;return t=super(...e),this.keysSoFar="",this.keyClearTimeout=null,t}getItems(e=!1){const t=this.props,r=t.itemSelector,n=t.selectedItemSelector,i=t.includeSelf,o=e&&n?n:r,a=u.default.findDOMNode(this),s=[];i&&a.matches(o)&&s.push(a);let c=s.concat(Array.from(a.querySelectorAll(o)));return c.length>0&&void 0!==c[0].getAttribute("data-order")&&c.sort((function(e,t){let r=e.getAttribute("data-order"),n=t.getAttribute("data-order");return parseInt(r,10)-parseInt(n,10)})),c}onFocusFirst(e){const t=this.getItems();!t.length||e&&-1===t.indexOf(e.target)||(e&&e.preventDefault(),t[0].focus())}onFocusLast(e){const t=this.getItems();!t.length||e&&-1===t.indexOf(e.target)||(e&&e.preventDefault(),t[t.length-1].focus())}onFocusPrevious(e,t=1){const r=this.getItems();if(r.length&&e&&-1!==r.indexOf(e.target)){e.preventDefault();let n=r.indexOf(e.target)-t;if(n<0){if(this.props.disableCyclicFocus)return;n=r.length-1}r[n].focus()}}onFocusNext(e,t=1){const r=this.getItems();if(r.length&&e&&-1!==r.indexOf(e.target)){e.preventDefault();let n=r.indexOf(e.target)+t;if(n>=r.length){if(this.props.disableCyclicFocus)return;n=0}r[n].focus()}}onPageUp(e){if(this.props.ignorePageUpPageDown)return;const t=this.getItems();if(t.length&&e&&-1!==t.indexOf(e.target)){e.preventDefault();const r=u.default.findDOMNode(this),n=Math.max(e.target.offsetTop+e.target.offsetHeight-r.clientHeight,0),i=t.indexOf(e.target),o=t.slice(0,i).reverse().find((e=>e.offsetTop<n));o?(o.focus(),(0,p.default)(o,r,!0)):this.onFocusFirst(e)}}onPageDown(e){if(this.props.ignorePageUpPageDown)return;const t=this.getItems();if(t.length&&e&&-1!==t.indexOf(e.target)){e.preventDefault();const r=u.default.findDOMNode(this),n=Math.min(e.target.offsetTop+r.clientHeight,r.scrollHeight+r.clientHeight),i=t.indexOf(e.target)+1,o=t.slice(i).find((e=>e.offsetTop+e.offsetHeight>n));o?(o.focus(),(0,p.default)(o,r,!0)):this.onFocusLast(e)}}findItemToFocus(e){const t=e.target,r=e.shiftKey,n=e.charCode,i=(0,d.removeDiacritics)(String.fromCharCode(n)).toUpperCase();let o=this.getItems();(""===this.keysSoFar||i===this.keysSoFar||r)&&(r&&(o=o.reverse()),this.searchIndex=o.indexOf(t)),i!==this.keysSoFar&&(this.keysSoFar+=i),this.clearKeysSoFarAfterDelay();let a=this.findMatchInRange(o,this.searchIndex+1,o.length);a||(a=this.findMatchInRange(o,0,this.searchIndex)),a&&a.focus()}clearKeysSoFarAfterDelay(){this.keyClearTimeout&&clearTimeout(this.keyClearTimeout),this.keyClearTimeout=setTimeout((()=>this.keysSoFar=""),500)}findMatchInRange(e,t,r){for(let n=t;n<r;n++){const t=e[n].innerText||e[n].textContent;if(t&&0===(0,d.removeDiacritics)(t).replace(f,"").toUpperCase().indexOf(this.keysSoFar))return e[n]}return null}onKeyDown(e){e.isPropagationStopped()||s.interpretKeyboardEvent.call(this,e,this.props.orientation)}onKeyPress(e){e.isPropagationStopped()||this.findItemToFocus(e)}onFocus(e){e.isPropagationStopped()||this.getItems().forEach((t=>t.tabIndex=t===e.target?0:-1))}onBlur(e){if(e.isPropagationStopped())return;const t=this.getItems(!0);if(t.length){const r=-1!==t.indexOf(e.target);this.getItems().forEach((n=>{const i=-1!==t.indexOf(n);n.tabIndex=n===e.target&&r||!r&&i?0:-1}))}}componentDidMount(){const e=this.props,t=e.autoFocus,r=e.selectedItemSelector;if(t){const e=r?u.default.findDOMNode(this).querySelector(r):null;this.focusTimer=setTimeout((()=>{e?e.focus():this.onFocusFirst()}),175)}}componentWillUnmount(){clearTimeout(this.focusTimer)}render(){const e=this.props,t=e.children,r=e.disabled,n=e.manageTabIndex,i=e.typeToSelect,o=l.default.Children.only(t),a=o.props,c=a.onKeyDown,u=a.onKeyPress,d=a.onFocus,p=a.onBlur;return l.default.cloneElement(o,{onKeyDown:r?c:(0,s.chain)(c,this.onKeyDown),onKeyPress:i&&!r?(0,s.chain)(u,this.onKeyPress):u,onFocus:n&&!r?(0,s.chain)(d,this.onFocus):d,onBlur:n&&!r?(0,s.chain)(p,this.onBlur):p})}},i.propTypes={itemSelector:c.default.string.isRequired,manageTabIndex:c.default.bool,orientation:c.default.oneOf(["horizontal","vertical","both"]),selectedItemSelector:c.default.string,disabled:c.default.bool,typeToSelect:c.default.bool,includeSelf:c.default.bool,ignorePageUpPageDown:c.default.bool,autoFocus:c.default.bool},i.defaultProps={manageTabIndex:!0,orientation:"vertical",typeToSelect:!1,includeSelf:!1,ignorePageUpPageDown:!1},n=o))||n;t.default=m;const g=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],v=g.join(",")+",[tabindex]";t.FOCUSABLE_ELEMENT_SELECTOR=v,g.push('[tabindex]:not([tabindex="-1"])');const y=g.join(':not([tabindex="-1"]),');t.TABBABLE_ELEMENT_SELECTOR=y},26088:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return n.default.createElement(i.default,a({timeout:{enter:0,exit:125}},e),(t=>n.default.cloneElement(e.children,{open:!!s[t]})))};var n=o(r(89526)),i=o(r(86520));function o(e){return e&&e.__esModule?e:{default:e}}function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}const s={entering:!1,entered:!0}},58648:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(21890));function i(e){return e&&e.__esModule?e:{default:e}}i(r(89526));const o="plugin:"===window.location.protocol,a=Object.freeze({enabled:o,default:o,productNeedsOverlayFix:o&&(0,n.default)()||!1,AccordionItem:void 0,Autocomplete:void 0,Breadcrumbs:void 0,Button:void 0,Checkbox:void 0,CoachMark:void 0,CoachMarkIndicator:void 0,CoachMarkPopover:void 0,Dialog:void 0,Dropdown:void 0,FieldLabel:void 0,Form:void 0,Label:void 0,ListItem:void 0,Menu:void 0,ModalTrigger:void 0,OverlayTrigger:void 0,Popover:void 0,Provider:void 0,Search:void 0,Select:void 0,SelectList:void 0,Slider:void 0,SwitchBase:void 0,Tab:void 0,TabList:void 0,Textfield:void 0,Toast:void 0,Tooltip:void 0,Video:void 0,Wait:void 0});var s=new Proxy(new class{constructor(){this.reset()}reset(){Object.assign(this,a)}select(e,t,r){var n;return(n=this[e]?t():r()).default||n}},{get(e,t){let r=e[t];return a.hasOwnProperty(t)?!!e.enabled&&(null!=r?r:e.default):r}});t.default=s},83737:(e,t)=>{"use strict";function r(e){return 0===e.left&&0===e.right&&0===e.top&&0===e.bottom}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!r(e)&&!r(t)&&!(t.left>=e.right||t.right<=e.left||t.top>=e.bottom||t.bottom<=e.top)}},84420:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t={kitId:e,scriptTimeout:3e3};if(!window.Typekit){const e=document.getElementsByTagName("html")[0];e.className+=" wf-loading";const r=setTimeout((()=>{e.className=e.className.replace(/(\s|^)wf-loading(\s|$)/g," "),e.className+=" wf-inactive"}),t.scriptTimeout),n=document.createElement("script");let i=!1;n.src=`https://use.typekit.net/${t.kitId}.js`,n.type="text/javascript",n.async="true",n.onload=n.onreadystatechange=function(){const e=this.readyState;if(!(i||e&&"complete"!==e&&"loaded"!==e)){i=!0,clearTimeout(r);try{window.Typekit.load(t)}catch(e){}}};const o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(n,o)}}},36065:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.prototype,r=t.UNSAFE_componentWillUpdate,o=t.UNSAFE_componentWillMount,a=t.UNSAFE_componentWillReceiveProps;-1===(0,n.default)(i.default.version,"16.3.0")&&(r&&(t.componentWillUpdate=function(e,t){r.apply(this,arguments)}),o&&(t.componentWillMount=function(){o.apply(this,arguments)}),a&&(t.componentWillReceiveProps=function(e){a.apply(this,arguments)}))};var n=o(r(72106)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}},99870:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let r=0;t.default=()=>"react-spectrum-"+ ++r},27984:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={elements:{lightest:{medium:{circleloader:{large:{states:{default:{"text-color":"rgb(80, 80, 80)","track-color":"rgb(234, 234, 234)","track-fill-color":"rgb(38, 128, 235)"}},dimensions:{height:"64px",width:"64px","border-size":"4px"}},"large-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"64px",width:"64px","border-size":"4px"}},medium:{states:{default:{"text-color":"rgb(80, 80, 80)","track-color":"rgb(234, 234, 234)","track-fill-color":"rgb(38, 128, 235)"}},dimensions:{height:"32px",width:"32px","border-size":"3px"}},"medium-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"32px",width:"32px","border-size":"3px"}},small:{states:{default:{"text-color":"rgb(80, 80, 80)","track-color":"rgb(234, 234, 234)","track-fill-color":"rgb(38, 128, 235)"}},dimensions:{height:"16px",width:"16px","border-size":"2px"}},"small-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"16px",width:"16px","border-size":"2px"}}},coachmark:{default:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"16px"},states:{default:{"indicator-ring-default-color":"rgb(55, 142, 240)"}}},quiet:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"8px"},states:{default:{"indicator-ring-default-color":"rgb(55, 142, 240)"}}}},popover:{default:{states:{default:{"background-color":"rgb(255, 255, 255)","border-color":"rgb(211, 211, 211)"}}}},sidenav:{default:{states:{"key-focus":{"item-border-color":"rgb(55, 142, 240)"}}},multilevel:{states:{"key-focus":{"item-border-color":"rgb(55, 142, 240)"}}}},textfield:{default:{states:{default:{"background-color":"rgb(255, 255, 255)","border-color":"rgb(234, 234, 234)"},disabled:{"background-color":"rgb(244, 244, 244)","border-color":"transparent"},"mouse-focus":{"background-color":"rgb(255, 255, 255)","border-color":"rgb(38, 128, 235)"}}},quiet:{states:{default:{"background-color":"transparent","border-color":"rgb(234, 234, 234)"},disabled:{"background-color":"transparent","border-color":"rgb(234, 234, 234)"},"mouse-focus":{"background-color":"transparent","border-color":"rgb(38, 128, 235)"}}}},tooltip:{default:{states:{default:{"tip-color":"rgb(116, 116, 116)"}}},info:{states:{default:{"tip-color":"rgb(13, 102, 208)"}}},negative:{states:{default:{"tip-color":"rgb(201, 37, 45)"}}},positive:{states:{default:{"tip-color":"rgb(18, 128, 92)"}}}}},large:{circleloader:{large:{states:{default:{"text-color":"rgb(80, 80, 80)","track-color":"rgb(234, 234, 234)","track-fill-color":"rgb(38, 128, 235)"}},dimensions:{height:"80px",width:"80px","border-size":"5px"}},"large-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"80px",width:"80px","border-size":"5px"}},medium:{states:{default:{"text-color":"rgb(80, 80, 80)","track-color":"rgb(234, 234, 234)","track-fill-color":"rgb(38, 128, 235)"}},dimensions:{height:"40px",width:"40px","border-size":"4px"}},"medium-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"40px",width:"40px","border-size":"4px"}},small:{states:{default:{"text-color":"rgb(80, 80, 80)","track-color":"rgb(234, 234, 234)","track-fill-color":"rgb(38, 128, 235)"}},dimensions:{height:"20px",width:"20px","border-size":"3px"}},"small-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"20px",width:"20px","border-size":"3px"}}},coachmark:{default:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"20px"},states:{default:{"indicator-ring-default-color":"rgb(55, 142, 240)"}}},quiet:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"10px"},states:{default:{"indicator-ring-default-color":"rgb(55, 142, 240)"}}}},popover:{default:{states:{default:{"background-color":"rgb(255, 255, 255)","border-color":"rgb(211, 211, 211)"}}}},sidenav:{default:{states:{"key-focus":{"item-border-color":"rgb(55, 142, 240)"}}},multilevel:{states:{"key-focus":{"item-border-color":"rgb(55, 142, 240)"}}}},textfield:{default:{states:{default:{"background-color":"rgb(255, 255, 255)","border-color":"rgb(234, 234, 234)"},disabled:{"background-color":"rgb(244, 244, 244)","border-color":"transparent"},"mouse-focus":{"background-color":"rgb(255, 255, 255)","border-color":"rgb(38, 128, 235)"}}},quiet:{states:{default:{"background-color":"transparent","border-color":"rgb(234, 234, 234)"},disabled:{"background-color":"transparent","border-color":"rgb(234, 234, 234)"},"mouse-focus":{"background-color":"transparent","border-color":"rgb(38, 128, 235)"}}}},tooltip:{default:{states:{default:{"tip-color":"rgb(116, 116, 116)"}}},info:{states:{default:{"tip-color":"rgb(13, 102, 208)"}}},negative:{states:{default:{"tip-color":"rgb(201, 37, 45)"}}},positive:{states:{default:{"tip-color":"rgb(18, 128, 92)"}}}}}},light:{medium:{circleloader:{large:{states:{default:{"text-color":"rgb(75, 75, 75)","track-color":"rgb(225, 225, 225)","track-fill-color":"rgb(20, 115, 230)"}},dimensions:{height:"64px",width:"64px","border-size":"4px"}},"large-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"64px",width:"64px","border-size":"4px"}},medium:{states:{default:{"text-color":"rgb(75, 75, 75)","track-color":"rgb(225, 225, 225)","track-fill-color":"rgb(20, 115, 230)"}},dimensions:{height:"32px",width:"32px","border-size":"3px"}},"medium-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"32px",width:"32px","border-size":"3px"}},small:{states:{default:{"text-color":"rgb(75, 75, 75)","track-color":"rgb(225, 225, 225)","track-fill-color":"rgb(20, 115, 230)"}},dimensions:{height:"16px",width:"16px","border-size":"2px"}},"small-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"16px",width:"16px","border-size":"2px"}}},coachmark:{default:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"16px"},states:{default:{"indicator-ring-default-color":"rgb(38, 128, 235)"}}},quiet:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"8px"},states:{default:{"indicator-ring-default-color":"rgb(38, 128, 235)"}}}},popover:{default:{states:{default:{"background-color":"rgb(255, 255, 255)","border-color":"rgb(202, 202, 202)"}}}},sidenav:{default:{states:{"key-focus":{"item-border-color":"rgb(38, 128, 235)"}}},multilevel:{states:{"key-focus":{"item-border-color":"rgb(38, 128, 235)"}}}},textfield:{default:{states:{default:{"background-color":"rgb(255, 255, 255)","border-color":"rgb(225, 225, 225)"},disabled:{"background-color":"rgb(234, 234, 234)","border-color":"transparent"},"mouse-focus":{"background-color":"rgb(255, 255, 255)","border-color":"rgb(20, 115, 230)"}}},quiet:{states:{default:{"background-color":"transparent","border-color":"rgb(225, 225, 225)"},disabled:{"background-color":"transparent","border-color":"rgb(225, 225, 225)"},"mouse-focus":{"background-color":"transparent","border-color":"rgb(20, 115, 230)"}}}},tooltip:{default:{states:{default:{"tip-color":"rgb(116, 116, 116)"}}},info:{states:{default:{"tip-color":"rgb(13, 102, 208)"}}},negative:{states:{default:{"tip-color":"rgb(201, 37, 45)"}}},positive:{states:{default:{"tip-color":"rgb(18, 128, 92)"}}}}},large:{circleloader:{large:{states:{default:{"text-color":"rgb(75, 75, 75)","track-color":"rgb(225, 225, 225)","track-fill-color":"rgb(20, 115, 230)"}},dimensions:{height:"80px",width:"80px","border-size":"5px"}},"large-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"80px",width:"80px","border-size":"5px"}},medium:{states:{default:{"text-color":"rgb(75, 75, 75)","track-color":"rgb(225, 225, 225)","track-fill-color":"rgb(20, 115, 230)"}},dimensions:{height:"40px",width:"40px","border-size":"4px"}},"medium-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"40px",width:"40px","border-size":"4px"}},small:{states:{default:{"text-color":"rgb(75, 75, 75)","track-color":"rgb(225, 225, 225)","track-fill-color":"rgb(20, 115, 230)"}},dimensions:{height:"20px",width:"20px","border-size":"3px"}},"small-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"20px",width:"20px","border-size":"3px"}}},coachmark:{default:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"20px"},states:{default:{"indicator-ring-default-color":"rgb(38, 128, 235)"}}},quiet:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"10px"},states:{default:{"indicator-ring-default-color":"rgb(38, 128, 235)"}}}},popover:{default:{states:{default:{"background-color":"rgb(255, 255, 255)","border-color":"rgb(202, 202, 202)"}}}},sidenav:{default:{states:{"key-focus":{"item-border-color":"rgb(38, 128, 235)"}}},multilevel:{states:{"key-focus":{"item-border-color":"rgb(38, 128, 235)"}}}},textfield:{default:{states:{default:{"background-color":"rgb(255, 255, 255)","border-color":"rgb(225, 225, 225)"},disabled:{"background-color":"rgb(234, 234, 234)","border-color":"transparent"},"mouse-focus":{"background-color":"rgb(255, 255, 255)","border-color":"rgb(20, 115, 230)"}}},quiet:{states:{default:{"background-color":"transparent","border-color":"rgb(225, 225, 225)"},disabled:{"background-color":"transparent","border-color":"rgb(225, 225, 225)"},"mouse-focus":{"background-color":"transparent","border-color":"rgb(20, 115, 230)"}}}},tooltip:{default:{states:{default:{"tip-color":"rgb(116, 116, 116)"}}},info:{states:{default:{"tip-color":"rgb(13, 102, 208)"}}},negative:{states:{default:{"tip-color":"rgb(201, 37, 45)"}}},positive:{states:{default:{"tip-color":"rgb(18, 128, 92)"}}}}}},dark:{medium:{circleloader:{large:{states:{default:{"text-color":"rgb(227, 227, 227)","track-color":"rgb(74, 74, 74)","track-fill-color":"rgb(55, 142, 240)"}},dimensions:{height:"64px",width:"64px","border-size":"4px"}},"large-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"64px",width:"64px","border-size":"4px"}},medium:{states:{default:{"text-color":"rgb(227, 227, 227)","track-color":"rgb(74, 74, 74)","track-fill-color":"rgb(55, 142, 240)"}},dimensions:{height:"32px",width:"32px","border-size":"3px"}},"medium-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"32px",width:"32px","border-size":"3px"}},small:{states:{default:{"text-color":"rgb(227, 227, 227)","track-color":"rgb(74, 74, 74)","track-fill-color":"rgb(55, 142, 240)"}},dimensions:{height:"16px",width:"16px","border-size":"2px"}},"small-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"16px",width:"16px","border-size":"2px"}}},coachmark:{default:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"16px"},states:{default:{"indicator-ring-default-color":"rgb(38, 128, 235)"}}},quiet:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"8px"},states:{default:{"indicator-ring-default-color":"rgb(38, 128, 235)"}}}},popover:{default:{states:{default:{"background-color":"rgb(37, 37, 37)","border-color":"rgb(90, 90, 90)"}}}},sidenav:{default:{states:{"key-focus":{"item-border-color":"rgb(38, 128, 235)"}}},multilevel:{states:{"key-focus":{"item-border-color":"rgb(38, 128, 235)"}}}},textfield:{default:{states:{default:{"background-color":"rgb(37, 37, 37)","border-color":"rgb(74, 74, 74)"},disabled:{"background-color":"rgb(62, 62, 62)","border-color":"transparent"},"mouse-focus":{"background-color":"rgb(37, 37, 37)","border-color":"rgb(55, 142, 240)"}}},quiet:{states:{default:{"background-color":"transparent","border-color":"rgb(74, 74, 74)"},disabled:{"background-color":"transparent","border-color":"rgb(74, 74, 74)"},"mouse-focus":{"background-color":"transparent","border-color":"rgb(55, 142, 240)"}}}},tooltip:{default:{states:{default:{"tip-color":"rgb(116, 116, 116)"}}},info:{states:{default:{"tip-color":"rgb(13, 102, 208)"}}},negative:{states:{default:{"tip-color":"rgb(201, 37, 45)"}}},positive:{states:{default:{"tip-color":"rgb(18, 128, 92)"}}}}},large:{circleloader:{large:{states:{default:{"text-color":"rgb(227, 227, 227)","track-color":"rgb(74, 74, 74)","track-fill-color":"rgb(55, 142, 240)"}},dimensions:{height:"80px",width:"80px","border-size":"5px"}},"large-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"80px",width:"80px","border-size":"5px"}},medium:{states:{default:{"text-color":"rgb(227, 227, 227)","track-color":"rgb(74, 74, 74)","track-fill-color":"rgb(55, 142, 240)"}},dimensions:{height:"40px",width:"40px","border-size":"4px"}},"medium-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"40px",width:"40px","border-size":"4px"}},small:{states:{default:{"text-color":"rgb(227, 227, 227)","track-color":"rgb(74, 74, 74)","track-fill-color":"rgb(55, 142, 240)"}},dimensions:{height:"20px",width:"20px","border-size":"3px"}},"small-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"20px",width:"20px","border-size":"3px"}}},coachmark:{default:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"20px"},states:{default:{"indicator-ring-default-color":"rgb(38, 128, 235)"}}},quiet:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"10px"},states:{default:{"indicator-ring-default-color":"rgb(38, 128, 235)"}}}},popover:{default:{states:{default:{"background-color":"rgb(37, 37, 37)","border-color":"rgb(90, 90, 90)"}}}},sidenav:{default:{states:{"key-focus":{"item-border-color":"rgb(38, 128, 235)"}}},multilevel:{states:{"key-focus":{"item-border-color":"rgb(38, 128, 235)"}}}},textfield:{default:{states:{default:{"background-color":"rgb(37, 37, 37)","border-color":"rgb(74, 74, 74)"},disabled:{"background-color":"rgb(62, 62, 62)","border-color":"transparent"},"mouse-focus":{"background-color":"rgb(37, 37, 37)","border-color":"rgb(55, 142, 240)"}}},quiet:{states:{default:{"background-color":"transparent","border-color":"rgb(74, 74, 74)"},disabled:{"background-color":"transparent","border-color":"rgb(74, 74, 74)"},"mouse-focus":{"background-color":"transparent","border-color":"rgb(55, 142, 240)"}}}},tooltip:{default:{states:{default:{"tip-color":"rgb(116, 116, 116)"}}},info:{states:{default:{"tip-color":"rgb(13, 102, 208)"}}},negative:{states:{default:{"tip-color":"rgb(201, 37, 45)"}}},positive:{states:{default:{"tip-color":"rgb(18, 128, 92)"}}}}}},darkest:{medium:{circleloader:{large:{states:{default:{"text-color":"rgb(200, 200, 200)","track-color":"rgb(57, 57, 57)","track-fill-color":"rgb(38, 128, 235)"}},dimensions:{height:"64px",width:"64px","border-size":"4px"}},"large-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"64px",width:"64px","border-size":"4px"}},medium:{states:{default:{"text-color":"rgb(200, 200, 200)","track-color":"rgb(57, 57, 57)","track-fill-color":"rgb(38, 128, 235)"}},dimensions:{height:"32px",width:"32px","border-size":"3px"}},"medium-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"32px",width:"32px","border-size":"3px"}},small:{states:{default:{"text-color":"rgb(200, 200, 200)","track-color":"rgb(57, 57, 57)","track-fill-color":"rgb(38, 128, 235)"}},dimensions:{height:"16px",width:"16px","border-size":"2px"}},"small-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"16px",width:"16px","border-size":"2px"}}},coachmark:{default:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"16px"},states:{default:{"indicator-ring-default-color":"rgb(20, 115, 230)"}}},quiet:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"8px"},states:{default:{"indicator-ring-default-color":"rgb(20, 115, 230)"}}}},popover:{default:{states:{default:{"background-color":"rgb(8, 8, 8)","border-color":"rgb(73, 73, 73)"}}}},sidenav:{default:{states:{"key-focus":{"item-border-color":"rgb(20, 115, 230)"}}},multilevel:{states:{"key-focus":{"item-border-color":"rgb(20, 115, 230)"}}}},textfield:{default:{states:{default:{"background-color":"rgb(8, 8, 8)","border-color":"rgb(57, 57, 57)"},disabled:{"background-color":"rgb(44, 44, 44)","border-color":"transparent"},"mouse-focus":{"background-color":"rgb(8, 8, 8)","border-color":"rgb(38, 128, 235)"}}},quiet:{states:{default:{"background-color":"transparent","border-color":"rgb(57, 57, 57)"},disabled:{"background-color":"transparent","border-color":"rgb(57, 57, 57)"},"mouse-focus":{"background-color":"transparent","border-color":"rgb(38, 128, 235)"}}}},tooltip:{default:{states:{default:{"tip-color":"rgb(116, 116, 116)"}}},info:{states:{default:{"tip-color":"rgb(13, 102, 208)"}}},negative:{states:{default:{"tip-color":"rgb(201, 37, 45)"}}},positive:{states:{default:{"tip-color":"rgb(18, 128, 92)"}}}}},large:{circleloader:{large:{states:{default:{"text-color":"rgb(200, 200, 200)","track-color":"rgb(57, 57, 57)","track-fill-color":"rgb(38, 128, 235)"}},dimensions:{height:"80px",width:"80px","border-size":"5px"}},"large-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"80px",width:"80px","border-size":"5px"}},medium:{states:{default:{"text-color":"rgb(200, 200, 200)","track-color":"rgb(57, 57, 57)","track-fill-color":"rgb(38, 128, 235)"}},dimensions:{height:"40px",width:"40px","border-size":"4px"}},"medium-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"40px",width:"40px","border-size":"4px"}},small:{states:{default:{"text-color":"rgb(200, 200, 200)","track-color":"rgb(57, 57, 57)","track-fill-color":"rgb(38, 128, 235)"}},dimensions:{height:"20px",width:"20px","border-size":"3px"}},"small-over-background":{states:{default:{"text-color":"rgb(255, 255, 255)","track-color":"rgba(255,255,255,0.2)","track-fill-color":"rgb(255, 255, 255)"}},dimensions:{height:"20px",width:"20px","border-size":"3px"}}},coachmark:{default:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"20px"},states:{default:{"indicator-ring-default-color":"rgb(20, 115, 230)"}}},quiet:{dimensions:{"indicator-ring-border-size":"2px","animation-indicator-ring-duration":"3000ms","animation-indicator-keyframe-50-opacity":"0.6","indicator-ring-diameter":"10px"},states:{default:{"indicator-ring-default-color":"rgb(20, 115, 230)"}}}},popover:{default:{states:{default:{"background-color":"rgb(8, 8, 8)","border-color":"rgb(73, 73, 73)"}}}},sidenav:{default:{states:{"key-focus":{"item-border-color":"rgb(20, 115, 230)"}}},multilevel:{states:{"key-focus":{"item-border-color":"rgb(20, 115, 230)"}}}},textfield:{default:{states:{default:{"background-color":"rgb(8, 8, 8)","border-color":"rgb(57, 57, 57)"},disabled:{"background-color":"rgb(44, 44, 44)","border-color":"transparent"},"mouse-focus":{"background-color":"rgb(8, 8, 8)","border-color":"rgb(38, 128, 235)"}}},quiet:{states:{default:{"background-color":"transparent","border-color":"rgb(57, 57, 57)"},disabled:{"background-color":"transparent","border-color":"rgb(57, 57, 57)"},"mouse-focus":{"background-color":"transparent","border-color":"rgb(38, 128, 235)"}}}},tooltip:{default:{states:{default:{"tip-color":"rgb(116, 116, 116)"}}},info:{states:{default:{"tip-color":"rgb(13, 102, 208)"}}},negative:{states:{default:{"tip-color":"rgb(201, 37, 45)"}}},positive:{states:{default:{"tip-color":"rgb(18, 128, 92)"}}}}}}}}},51884:(e,t)=>{"use strict";function r(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw a}}}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.interpretKeyboardEvent=function(e,t="vertical"){switch(e.key){case"Enter":case" ":this.onSelectFocused&&this.onSelectFocused(e);break;case"Tab":this.onTab&&this.onTab(e);break;case"PageUp":this.onPageUp?this.onPageUp(e):this.onFocusFirst&&this.onFocusFirst(e);break;case"PageDown":this.onPageDown?this.onPageDown(e):this.onFocusLast&&this.onFocusLast(e);break;case"Home":this.onFocusFirst&&this.onFocusFirst(e);break;case"End":this.onFocusLast&&this.onFocusLast(e);break;case"ArrowUp":case"Up":if(e.altKey&&this.onAltArrowUp)this.onAltArrowUp(e);else if(this.onFocusPrevious)switch(t){case"vertical":this.onFocusPrevious(e);break;case"horizontal":break;default:this.props.nextFocusOffset?this.onFocusPrevious(e,this.props.nextFocusOffset()):this.onFocusPrevious(e)}break;case"ArrowDown":case"Down":if(e.altKey&&this.onAltArrowDown)this.onAltArrowDown(e);else if(this.onFocusNext)switch(t){case"vertical":this.onFocusNext(e);break;case"horizontal":break;default:this.props.nextFocusOffset?this.onFocusNext(e,this.props.nextFocusOffset()):this.onFocusNext(e)}break;case"ArrowLeft":case"Left":"vertical"!==t&&this.onFocusPrevious&&this.onFocusPrevious(e);break;case"ArrowRight":case"Right":"vertical"!==t&&this.onFocusNext&&this.onFocusNext(e);break;case"Escape":case"Esc":this.onEscape&&this.onEscape(e)}},t.chain=function(...e){return(...t)=>{var n,i=r(e);try{for(i.s();!(n=i.n()).done;){let e=n.value;"function"==typeof e&&e(...t)}}catch(e){i.e(e)}finally{i.f()}}},t.focusAfterMouseEvent=function(e,t){document?e&&(e.call(this,t),t.isDefaultPrevented())?i="mousedown"===t.type:(i||"function"!=typeof this.focus||this.focus(),"mouseup"===t.type&&(i=!1)):e&&e.call(this,t)};let i=!1},40743:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t={};for(const i in e)e.hasOwnProperty(i)&&(r[i]||n.test(i))&&(t[i]=e[i]);return t};const r={abbr:1,accept:1,acceptCharset:1,accessKey:1,action:1,allowFullScreen:1,allowTransparency:1,alt:1,async:1,autoComplete:1,autoFocus:1,autoPlay:1,boundariesElement:1,cellPadding:1,cellSpacing:1,challenge:1,charset:1,checked:1,cite:1,class:1,className:1,cols:1,colSpan:1,command:1,content:1,contentEditable:1,contextMenu:1,controls:1,coords:1,crossOrigin:1,data:1,dateTime:1,default:1,defaultPreventedKeys:1,defaultpreventedkeys:1,defaultPreventedEvents:1,defaultpreventedevents:1,defer:1,dir:1,disabled:1,download:1,draggable:1,dropzone:1,encType:1,for:1,form:1,formAction:1,formEncType:1,formMethod:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:1,height:1,hidden:1,high:1,href:1,hrefLang:1,htmlFor:1,httpEquiv:1,icon:1,id:1,inputMode:1,isMap:1,itemId:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,kind:1,label:1,lang:1,list:1,loop:1,manifest:1,max:1,maxLength:1,media:1,mediaGroup:1,method:1,min:1,minLength:1,multiple:1,muted:1,name:1,noValidate:1,open:1,optimum:1,pattern:1,ping:1,placeholder:1,poster:1,preload:1,radioGroup:1,readOnly:1,rel:1,required:1,role:1,rows:1,rowSpan:1,sandbox:1,scope:1,scoped:1,scrolling:1,seamless:1,selected:1,shape:1,size:1,sizes:1,sortable:1,span:1,spellCheck:1,src:1,srcDoc:1,srcSet:1,start:1,step:1,style:1,tabIndex:1,target:1,title:1,translate:1,type:1,typeMustMatch:1,useMap:1,value:1,width:1,wmode:1,wrap:1,onCopy:1,onCut:1,onPaste:1,onLoad:1,onError:1,onWheel:1,onScroll:1,onCompositionEnd:1,onCompositionStart:1,onCompositionUpdate:1,onKeyDown:1,onKeyPress:1,onKeyUp:1,onFocus:1,onBlur:1,onChange:1,onInput:1,onSubmit:1,onClick:1,onContextMenu:1,onDoubleClick:1,onDrag:1,onDragEnd:1,onDragEnter:1,onDragExit:1,onDragLeave:1,onDragOver:1,onDragStart:1,onDrop:1,onMouseDown:1,onMouseEnter:1,onMouseLeave:1,onMouseMove:1,onMouseOut:1,onMouseOver:1,onMouseUp:1,onSelect:1,onTouchCancel:1,onTouchEnd:1,onTouchMove:1,onTouchStart:1,onAnimationStart:1,onAnimationEnd:1,onAnimationIteration:1,onTransitionEnd:1},n=/^((data|aria)-.*)$/},52743:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.prototype,r=t.UNSAFE_componentWillUpdate,i=t.componentDidUpdate;let a=null;t.UNSAFE_componentWillUpdate=function(e,t){if(r&&r.apply(this,arguments),null==a||a!==document.activeElement)try{const e=n.default.findDOMNode(this);a=e.parentNode.querySelector(".focus-ring")}catch(e){}},t.componentDidUpdate=function(e,t){i&&i.apply(this,arguments);try{const e=n.default.findDOMNode(this);!a||document.activeElement!==a&&!e.contains(document.activeElement)||a.classList.contains(o)||(document.activeElement.classList.add(o),a=null)}catch(e){}}},t.FOCUS_RING_CLASSNAME=void 0,i(r(89526));var n=i(r(73961));function i(e){return e&&e.__esModule?e:{default:e}}const o="focus-ring";t.FOCUS_RING_CLASSNAME=o},25545:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const e=window.require&&window.require("uxp");switch(e&&e.host?e.host.name:"Browser"){case"Illustrator":!function(){let e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");e.appendChild(t),t.type="text/css",t.appendChild(document.createTextNode(":root {\n        --host-background-color-darkest: #323232;\n        --host-background-color-dark: #535353;\n        --host-background-color-light: #B8B8B8;\n        --host-background-color-lightest: #F0F0F0;\n    }\n    \n    .react-spectrum-provider {\n        font-family: Lucida Grande, Tahoma, sans-serif !important;\n    }\n    \n    .react-spectrum-provider:lang(ja) {\n        font-family: HiraKakuProN-W3, Meiryo, sans-serif !important;\n    }\n    \n    .react-spectrum-provider:lang(zh-Hant) {\n        font-family: LiHeiPro, Tahoma, sans-serif !important;\n    }\n    \n    .react-spectrum-provider:lang(zh-Hans) {\n        font-family: STXihei, SimSun, sans-serif !important;\n    }\n    \n    .react-spectrum-provider:lang(ko) {\n        font-family: AppleGothic, Malgun Gothic, sans-serif !important;\n    }\n    \n    .react-spectrum-provider.spectrum--darkest {\n        background-color: #323232;\n    }\n    \n    .react-spectrum-provider.spectrum--dark {\n        background-color: #535353;\n    }\n    \n    .react-spectrum-provider.spectrum--light {\n        background-color: #B8B8B8;\n    }\n    \n    .react-spectrum-provider.spectrum--lightest {\n        background-color: #F0F0F0;\n    }\n    \n    .react-spectrum-provider .spectrum-Menu-item {\n        font-size: 10px;\n    }\n    \n    .react-spectrum-provider .spectrum-Textfield {\n        font-size: 10px;\n    } \n    \n    .react-spectrum-provider:lang(ja) .spectrum-Menu-item {\n        font-size: 12px;\n    }\n    \n    .react-spectrum-provider:lang(ja) .spectrum-Textfield {\n        font-size: 12px;\n    } \n    \n    .react-spectrum-provider:lang(zh-Hant) .spectrum-Menu-item {\n        font-size: 12px;\n    }\n    \n    .react-spectrum-provider:lang(zh-Hant) .spectrum-Textfield {\n        font-size: 12px;\n    } \n    \n    .react-spectrum-provider:lang(zh-Hans) .spectrum-Menu-item {\n        font-size: 12px;\n    }\n    \n    .react-spectrum-provider:lang(zh-Hans) .spectrum-Textfield {\n        font-size: 12px;\n    }\n    \n    .react-spectrum-provider.spectrum--lightest .spectrum-Menu, .react-spectrum-provider.spectrum--lightest .spectrum-Menu-item, .react-spectrum-provider.spectrum--lightest .spectrum-Popover {\n        background-color: rgb(240, 240, 240);\n    }\n    \n    .react-spectrum-provider.spectrum--light .spectrum-Menu, .react-spectrum-provider.spectrum--light .spectrum-Menu-item, .react-spectrum-provider.spectrum--light .spectrum-Popover {\n        background-color: rgb(184, 184, 184);\n    }\n    \n    .react-spectrum-provider.spectrum--dark .spectrum-Menu, .react-spectrum-provider.spectrum--dark .spectrum-Menu-item, .react-spectrum-provider.spectrum--dark .spectrum-Popover {\n        background-color: rgb(83, 83, 83);\n    }\n    \n    .react-spectrum-provider.spectrum--darkest .spectrum-Menu, .react-spectrum-provider.spectrum--darkest .spectrum-Menu-item, .react-spectrum-provider.spectrum--darkest .spectrum-Popover {\n        background-color: rgb(50, 50, 50);\n    }\n    \n    .react-spectrum-provider.spectrum--lightest .spectrum-Menu-item:hover {\n        background-color: rgb(220, 220, 220);\n        color: rgb(72, 72, 72);\n    }\n    \n    .react-spectrum-provider.spectrum--light .spectrum-Menu-item:hover {\n        background-color: rgb(167, 167, 167);\n        color: rgb(34, 34, 34);\n    }\n    \n    .react-spectrum-provider.spectrum--dark .spectrum-Menu-item:hover {\n        background-color: rgb(95, 95, 95);\n        color: rgb(255, 255, 255);\n    }\n    \n    .react-spectrum-provider.spectrum--darkest .spectrum-Menu-item:hover {\n        background-color: rgb(62, 62, 62);\n        color: rgb(205, 205, 205);\n    }\n    \n    .react-spectrum-provider.spectrum--lightest .spectrum-Textfield, .react-spectrum-provider.spectrum--lightest .spectrum-Textfield .inputText {\n        background-color: rgb(255, 255, 255) !important;\n        color: rgb(72, 72, 72);\n    }\n    \n    .react-spectrum-provider.spectrum--light .spectrum-Textfield, .react-spectrum-provider.spectrum--light .spectrum-Textfield .inputText {\n        background-color: rgb(226, 226, 226) !important;\n        color: rgb(34, 34, 34);\n    }\n    \n    .react-spectrum-provider.spectrum--dark .spectrum-Textfield, .react-spectrum-provider.spectrum--dark .spectrum-Textfield .inputText {\n        background-color: rgb(255, 255, 255) !important;\n        color: rgb(75, 75, 75);\n    }\n    \n    .react-spectrum-provider.spectrum--darkest .spectrum-Textfield, .react-spectrum-provider.spectrum--darkest .spectrum-Textfield .inputText {\n        background-color: rgb(252, 252, 252) !important;\n        color: rgb(42, 42, 42);\n    }\n    "))}(),"darwin"===window.navigator.platform&&function(){let e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");e.appendChild(t),t.type="text/css",t.appendChild(document.createTextNode(".react-spectrum-provider:lang(zh-Hant) .spectrum-Menu-item {\n        font-size: 13px;\n    }\n    \n    .react-spectrum-provider:lang(zh-Hant) .spectrum-Textfield {\n        font-size: 13px;\n    } \n    \n    .react-spectrum-provider:lang(zh-Hans) .spectrum-Menu-item {\n        font-size: 13px;\n    }\n    \n    .react-spectrum-provider:lang(zh-Hans) .spectrum-Textfield {\n        font-size: 13px;\n    }\n    "))}();break;case"Photoshop":!function(){let e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");e.appendChild(t),t.type="text/css",t.appendChild(document.createTextNode("\n    \n    .react-spectrum-provider {\n        background-color: var(--uxp-host-background-color);\n    }\n    \n    .react-spectrum-provider .spectrum-Menu-item, .react-spectrum-provider .spectrum-Textfield {\n        font-size: 10px;\n        color: var(--uxp-host-text-color);\n    }\n    \n    .react-spectrum-provider .spectrum-Menu, .react-spectrum-provider .spectrum-Menu-item, .react-spectrum-provider .spectrum-Popover {\n        background-color: var(--uxp-host-background-color);\n    }\n    \n    .react-spectrum-provider .spectrum-Menu-item:hover {\n        background-color: var(--uxp-host-link-text-color);\n        color: #FFFFFF;\n    }\n\n    .react-spectrum-provider .spectrum-Textfield, .react-spectrum-provider .spectrum-Textfield .inputText {\n        background-color: var(--uxp-host-background-color) !important;\n    }\n    \n    "))}();break;default:return null}}},44800:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cloneIcon=function(e,t={}){if(!e)return null;if("string"==typeof e)throw new Error("String icon names are deprecated. Pass icons by importing them from react-spectrum/Icon/IconName and render as <IconName />.");const r=t.className,o=t.size,a=t["aria-label"],s=t["aria-hidden"],c=t.alt,l=void 0===c?a||e.props["aria-label"]||e.props.alt:c;return i.default.cloneElement(e,{className:(0,n.default)(r,e.props.className),size:e.props.size||o,"aria-label":a||l,alt:l,"aria-hidden":s||!l||e.props["aria-hidden"]})};var n=o(r(64403)),i=o(r(89526));function o(e){return e&&e.__esModule?e:{default:e}}},3585:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setLocale=function(e){a=e},t.getLocale=function(){return a},t.messageFormatter=function(e){let t={};return function(r,n,o){let s=t[r+"."+a];if(!s){let n=(e[a]||e["en-US"])[r];if(!n)throw new Error(`Could not find intl message ${r} in ${a} locale`);s=new i.default(n,a,o),t[r]=s}return s.format(n)}},t.defaultLocale=void 0;var n,i=(n=r(93300))&&n.__esModule?n:{default:n};const o="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";t.defaultLocale=o;let a=o},21890:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const e=window.require&&window.require("uxp");return!(!e||!e.host)&&(e.host.isDrover||"Photoshop"===e.host.name||"Illustrator"===e.host.name)}},10086:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=(e,t,r)=>{if(t&&t.contains(e)){const n=t.clientHeight,i=t.clientWidth,o=t.scrollTop,a=t.scrollLeft,s=e.offsetHeight,c=e.offsetWidth,l=e.offsetTop,u=e.offsetLeft,d=window.getComputedStyle(t).position;let p=t.offsetTop,h=t.offsetLeft;if("static"!==d&&(p=h=0),l<o)t.scrollTop=l;else{const e=l+s;e>o+n&&(t.scrollTop=r?l-p:e-n-p)}if(u<a)t.scrollLeft=u;else{const e=u+c;e>a+i&&(t.scrollLeft=r?u-h:e-i-h)}}}},37001:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=!1,r,o=null){if(!e)return;const a=(0,n.default)(i.default.findDOMNode(e),".react-spectrum-provider")||document.querySelector(".react-spectrum-provider");if(a){let n=a.getAttribute("setOverlay");null==o&&t&&(o=e.getBoundingClientRect()),n&&n(e,{visible:t,callback:r,boundingRect:o})}};var n=o(r(99607)),i=o(r(73961));function o(e){return e&&e.__esModule?e:{default:e}}},54699:(e,t)=>{"use strict";function r(e="",t="NFC"){return"normalize"in String.prototype&&(e=e.normalize(t)),e}Object.defineProperty(t,"__esModule",{value:!0}),t.isUrl=function(e){return e&&!!e.match(/\/|:|\./g)},t.normalize=r,t.removeDiacritics=function(e="",t="NFD"){return r(e,t.replace("C","D")).replace(/[\u0300-\u036f]/g,"")},t.getTextFromReact=function(e){let t="";const r=e=>{if("string"==typeof e||"number"==typeof e)t=`${t} ${e}`;else if(Array.isArray(e))e.forEach((e=>r(e)));else if(e&&e.props){const t=e.props.children;Array.isArray(t)?t.forEach((e=>r(e))):r(t)}};return r(e),t.trim().replace(/(\s)(?:\s+)/g,"$1")}},33976:(e,t,r)=>{"use strict";e.exports=r.p+"resources/DropToUploadIllustration.svg"},26871:(e,t,r)=>{"use strict";e.exports=r.p+"resources/File.svg"},22479:(e,t,r)=>{"use strict";e.exports=r.p+"resources/GreenCircleCheckmark.svg"},34045:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover1.svg"},55756:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover10.svg"},50999:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover11.svg"},95512:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover12.svg"},93605:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover13.svg"},86304:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover14.svg"},89201:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover15.svg"},63587:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover16.svg"},82659:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover17.svg"},89133:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover18.svg"},41226:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover19.svg"},7627:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover2.svg"},48527:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover20.svg"},91564:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover3.svg"},39937:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover4.svg"},68591:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover5.svg"},85836:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover6.svg"},17456:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover7.svg"},87298:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover8.svg"},83993:(e,t,r)=>{"use strict";e.exports=r.p+"resources/cover9.svg"},19824:(e,t,r)=>{"use strict";e.exports=r.p+"resources/aac_filetype_256.svg"},63045:(e,t,r)=>{"use strict";e.exports=r.p+"resources/aac_filetype_64.svg"},59466:(e,t,r)=>{"use strict";e.exports=r.p+"resources/aif_filetype_256.svg"},11612:(e,t,r)=>{"use strict";e.exports=r.p+"resources/aif_filetype_64.svg"},23546:(e,t,r)=>{"use strict";e.exports=r.p+"resources/aiff_filetype_256.svg"},13206:(e,t,r)=>{"use strict";e.exports=r.p+"resources/aiff_filetype_64.svg"},157:(e,t,r)=>{"use strict";e.exports=r.p+"resources/m4a_filetype_256.svg"},32224:(e,t,r)=>{"use strict";e.exports=r.p+"resources/m4a_filetype_64.svg"},27129:(e,t,r)=>{"use strict";e.exports=r.p+"resources/mp2_filetype_256.svg"},8823:(e,t,r)=>{"use strict";e.exports=r.p+"resources/mp2_filetype_64.svg"},60501:(e,t,r)=>{"use strict";e.exports=r.p+"resources/mp3_filetype_256.svg"},88050:(e,t,r)=>{"use strict";e.exports=r.p+"resources/mp3_filetype_64.svg"},44255:(e,t,r)=>{"use strict";e.exports=r.p+"resources/mpga_filetype_64.svg"},48775:(e,t,r)=>{"use strict";e.exports=r.p+"resources/wav_filetype_256.svg"},91546:(e,t,r)=>{"use strict";e.exports=r.p+"resources/wav_filetype_64.svg"},10565:(e,t,r)=>{"use strict";e.exports=r.p+"resources/dn_filetype_1024.svg"},92576:(e,t,r)=>{"use strict";e.exports=r.p+"resources/exr_filetype_1024.svg"},76064:(e,t,r)=>{"use strict";e.exports=r.p+"resources/fbx_filetype_1024.svg"},51760:(e,t,r)=>{"use strict";e.exports=r.p+"resources/glb_filetype_1024.svg"},61161:(e,t,r)=>{"use strict";e.exports=r.p+"resources/gltf_filetype_1024.svg"},88762:(e,t,r)=>{"use strict";e.exports=r.p+"resources/hdr_filetype_1024.svg"},51235:(e,t,r)=>{"use strict";e.exports=r.p+"resources/ibl_filetype_1024.svg"},49363:(e,t,r)=>{"use strict";e.exports=r.p+"resources/mdl_filetype_1024.svg"},26361:(e,t,r)=>{"use strict";e.exports=r.p+"resources/obj_filetype_1024.svg"},82911:(e,t,r)=>{"use strict";e.exports=r.p+"resources/sbsar_filetype_1024.svg"},95496:(e,t,r)=>{"use strict";e.exports=r.p+"resources/usdz_filetype_1024.svg"},11009:()=>{},33786:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},95656:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},67738:()=>{"use strict";Array.prototype.flat||Object.defineProperty(Array.prototype,"flat",{configurable:!0,value:function e(){var t=isNaN(arguments[0])?1:Number(arguments[0]);return t?Array.prototype.reduce.call(this,(function(r,n){return Array.isArray(n)?r.push.apply(r,e.call(n,t-1)):r.push(n),r}),[]):Array.prototype.slice.call(this)},writable:!0}),Array.prototype.flatMap||Object.defineProperty(Array.prototype,"flatMap",{configurable:!0,value:function(e){return Array.prototype.map.apply(this,arguments).flat()},writable:!0})},85878:(e,t,r)=>{"use strict";r.d(t,{Eo:()=>Oy,Fp:()=>Eg,G$:()=>Zv,Hf:()=>Sr,Ne:()=>Ar,R8:()=>hy,SZ:()=>wy,Xb:()=>an,ak:()=>_o,in:()=>ec,jz:()=>rc,kc:()=>oy,mC:()=>Po,rZ:()=>Ty});var n,i,o,a,s,c,l,u,d,p,h,f,m,g,v,y,b,_,E,w,x,L,O,S,T,P,I,A,C,k,D,N,R,M,j,F,Z,B,G,U,H,z,V,Y,W,K,$,q,X,J,Q,ee,te,re,ne,ie,oe,ae,se,ce=r(82530);function le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||de(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ue(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=de(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function de(e,t){if(e){if("string"==typeof e)return pe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?pe(e,t):void 0}}function pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function he(){he=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function p(){}function h(){}var f={};s(f,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(L([])));g&&g!==t&&r.call(g,i)&&(f=g);var v=h.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=h,s(v,"constructor",h),s(h,"constructor",p),p.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function fe(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function me(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){fe(o,n,i,a,s,"next",e)}function s(e){fe(o,n,i,a,s,"throw",e)}a(void 0)}))}}!function(e){e.UpToDate="UpToDate",e.OutOfDate="OutOfDate",e.MetadataOutOfDate="MetadataOutOfDate",e.Restricted="Restricted",e.Discarded="Discarded",e.Broken="Broken"}(n||(n={})),function(e){e.Edit="Edit",e.View="View",e.None="None"}(i||(i={})),function(e){e.assets="ccac.dap.in.notify.assets",e.update="ccac.dap.out.notify.update",e.config="ccac.dap.in.notify.config",e.showShare="ccac.dap.out.notify.showShare",e.requestAction="ccac.libraries.out.request.action",e.requestUpdate="ccac.libraries.in.request.update",e.applyElements="ccac.libraries.out.request.apply"}(o||(o={})),function(e){e.openPicker="openPicker",e.openShareSheet="openShareSheet",e.openPreview="openPreview"}(a||(a={})),function(e){e.animation="application/vnd.adobe.element.animation+dcx",e.audio="application/vnd.adobe.element.audio+dcx",e.brush="application/vnd.adobe.element.brush+dcx",e.characterstyle="application/vnd.adobe.element.characterstyle+dcx",e.color="application/vnd.adobe.element.color+dcx",e.colortheme="application/vnd.adobe.element.colortheme+dcx",e.component="application/vnd.adobe.element.component+dcx",e.font="application/vnd.adobe.element.font+dcx",e.gradient="application/vnd.adobe.element.gradient+dcx",e.graphic="application/vnd.adobe.element.image+dcx",e.layerstyle="application/vnd.adobe.element.layerstyle+dcx",e.light="application/vnd.adobe.element.light+dcx",e.look="application/vnd.adobe.element.look+dcx",e.material="application/vnd.adobe.element.material+dcx",e.model="application/vnd.adobe.element.3d+dcx",e.mogrt="application/vnd.adobe.element.graphic+dcx",e.multicolorswatch="application/vnd.adobe.element.multicolorswatch+dcx",e.paragraphstyle="application/vnd.adobe.element.paragraphstyle+dcx",e.pattern="application/vnd.adobe.element.pattern+dcx",e.template="application/vnd.adobe.element.template+dcx",e.text="application/vnd.adobe.element.text+dcx",e.video="application/vnd.adobe.element.video+dcx",e.artifact="application/vnd.adobe.element.artifact+dcx"}(s||(s={})),function(e){e.primary="primary",e.rendition="rendition"}(c||(c={})),function(e){e[e.Folder=256]="Folder",e[e.File=512]="File",e[e.Composite=1024]="Composite"}(l||(l={})),function(e){e[e.InSync=0]="InSync",e[e.OutOfSync=1]="OutOfSync",e[e.SyncConflict=2]="SyncConflict",e[e.SyncError=3]="SyncError",e[e.Syncing=4]="Syncing"}(u||(u={})),function(e){e[e.None=0]="None",e[e.CloudContentCorrupted=1]="CloudContentCorrupted",e[e.LocalContentCorrupted=2]="LocalContentCorrupted",e[e.HasTooManyComponents=3]="HasTooManyComponents",e[e.HasTooManyChildren=4]="HasTooManyChildren",e[e.MaximumSizeExceeded=5]="MaximumSizeExceeded",e[e.Unknown=6]="Unknown"}(d||(d={})),function(e){e[e.NoErr=0]="NoErr",e[e.Conflict=1]="Conflict",e[e.DeleteConflict=2]="DeleteConflict",e[e.ParentDeletedConflict=3]="ParentDeletedConflict"}(p||(p={})),function(e){e[e.Initializing=0]="Initializing",e[e.Offline=1]="Offline",e[e.NotStarted=2]="NotStarted",e[e.Disabled=3]="Disabled",e[e.Synchronized=4]="Synchronized",e[e.InProgress=5]="InProgress",e[e.ErrorQuotaExceeded=6]="ErrorQuotaExceeded",e[e.ErrorSyncDown=7]="ErrorSyncDown",e[e.ErrorOther=8]="ErrorOther"}(h||(h={})),function(e){e[e.Offline=0]="Offline",e[e.Wan=1]="Wan",e[e.Cellular=2]="Cellular",e[e.OnlineUnknown=3]="OnlineUnknown"}(f||(f={})),function(e){e.Size50="50",e.Size100="100",e.Size115="115",e.Size230="230",e.Size138="138",e.Size276="276"}(m||(m={})),function(e){e[e.Stage=0]="Stage",e[e.Production=1]="Production"}(g||(g={})),function(e){e[e.NotStarted=1]="NotStarted",e[e.HadLoaderErrors=2]="HadLoaderErrors",e[e.Loading=3]="Loading",e[e.ReadyHasMorePages=4]="ReadyHasMorePages",e[e.ReadyFullyLoaded=5]="ReadyFullyLoaded"}(v||(v={})),function(e){e[e.Ascending=0]="Ascending",e[e.Descending=1]="Descending"}(y||(y={})),function(e){e[e.Name=0]="Name",e[e.Modified=1]="Modified",e[e.Created=2]="Created",e[e.Shared=3]="Shared"}(b||(b={})),function(e){e[e.Off=0]="Off",e[e.Err=1]="Err",e[e.Warn=2]="Warn",e[e.Info=3]="Info",e[e.Debug=4]="Debug"}(_||(_={})),function(e){e[e.UNKNOWN=1]="UNKNOWN",e[e.FULL_LOCAL_DISK_SPACE=2]="FULL_LOCAL_DISK_SPACE",e[e.FULL_CLOUD_STORAGE=3]="FULL_CLOUD_STORAGE",e[e.DEVICE_OFFLINE=4]="DEVICE_OFFLINE",e[e.NETWORK_ERROR=5]="NETWORK_ERROR",e[e.REQUEST_TIMED_OUT=6]="REQUEST_TIMED_OUT",e[e.USER_CANCELLED=7]="USER_CANCELLED",e[e.CORESYNC_FAILURE=8]="CORESYNC_FAILURE",e[e.SYNC_PAUSED=9]="SYNC_PAUSED",e[e.USER_ALREADY_REGISTERED=10]="USER_ALREADY_REGISTERED",e[e.PENDING_UNCOMMITTED_CHANGES_FROM_THIS_APP=11]="PENDING_UNCOMMITTED_CHANGES_FROM_THIS_APP",e[e.PENDING_UNCOMMITTED_CHANGES_FROM_ANOTHER_APP=12]="PENDING_UNCOMMITTED_CHANGES_FROM_ANOTHER_APP",e[e.INTERNAL_ERROR=13]="INTERNAL_ERROR",e[e.OPERATION_IGNORED=14]="OPERATION_IGNORED",e[e.CONFLICT=15]="CONFLICT",e[e.ACCESS_DENIED=16]="ACCESS_DENIED",e[e.UNSUPPORTED=17]="UNSUPPORTED",e[e.ASSET_NOT_IN_SYNC=18]="ASSET_NOT_IN_SYNC",e[e.BAD_REQUEST=19]="BAD_REQUEST",e[e.SYNC_ERROR=20]="SYNC_ERROR",e[e.NOT_FOUND=21]="NOT_FOUND",e[e.AUTHORIZATION_ERROR=22]="AUTHORIZATION_ERROR",e[e.INVALID_OPERATION=23]="INVALID_OPERATION",e[e.INVALID_CONTEXT=24]="INVALID_CONTEXT",e[e.COMMIT_ERROR=25]="COMMIT_ERROR",e[e.PARENT_NOT_FOUND=26]="PARENT_NOT_FOUND",e[e.PARENT_DISCARDED=27]="PARENT_DISCARDED",e[e.PROJECT_LIMIT_EXCEEDED=28]="PROJECT_LIMIT_EXCEEDED",e[e.SERVICE_NOT_PROVISIONED=29]="SERVICE_NOT_PROVISIONED"}(E||(E={})),function(e){e[e.NONE=0]="NONE",e[e.CORESYNC_NOT_REACHABLE=1]="CORESYNC_NOT_REACHABLE",e[e.CORESYNC_NOT_COMPATIBLE=2]="CORESYNC_NOT_COMPATIBLE",e[e.CORESYNC_BINARY_NOT_FOUND=3]="CORESYNC_BINARY_NOT_FOUND",e[e.CORESYNC_NOT_INSTALLED=4]="CORESYNC_NOT_INSTALLED",e[e.SYNC_FAILED=5]="SYNC_FAILED",e[e.SYNC_FAILED_EDIT_EDIT_RESOLVED=6]="SYNC_FAILED_EDIT_EDIT_RESOLVED",e[e.SYNC_FAILED_EDIT_DELETE_RESOLVED=7]="SYNC_FAILED_EDIT_DELETE_RESOLVED",e[e.COMMIT_ON_ORPHAN_ERROR=8]="COMMIT_ON_ORPHAN_ERROR",e[e.PROJECTS_ADMIN_ONLY=9]="PROJECTS_ADMIN_ONLY",e[e.PROJECTS_INVALID_REPOSITORY=10]="PROJECTS_INVALID_REPOSITORY",e[e.PROJECTS_NO_HOME_REPOSITORY=11]="PROJECTS_NO_HOME_REPOSITORY"}(w||(w={})),function(e){e.LIMIT_CHANGELOGRETENTION="http://ns.adobe.com/adobecloud/problem/limit/changelogretention",e.OPERATION_FAILED="adobecloud/problem/operation_failed",e.SUBSCRIPTION_COUNT="http://ns.adobe.com/adobecloud/problem/limit/subscriptioncount",e.QUOTA_EXCEEDED="http://ns.adobe.com/adobecloud/problem/quotaexceeded",e.CHILDREN_LIMIT_EXCEEDED="http://ns.adobe.com/adobecloud/problem/limit/childrencount",e.NO_HOME_REPOSITORY="http://ns.adobe.com/projects/problem/no-home-repository",e.INVALID_HOME_REPOSITORY="http://ns.adobe.com/projects/problem/invalid-repository",e.ADMIN_ONLY="http://ns.adobe.com/projects/problem/admin-only",e.ACCESS_DENIED="http://ns.adobe.com/adobecloud/problem/accessdenied"}(x||(x={})),function(e){e[e.authLoggedOut=0]="authLoggedOut",e[e.authLoggedIn=1]="authLoggedIn",e[e.authExpired=2]="authExpired"}(L||(L={})),function(e){e.NEVER="never",e.PUBLISHED="published",e.UNPUBLISHED="unpublished",e.DRAFT="draft",e.READY="ready",e.QUEUED="queued",e.TRAINING="training",e.FAILED="failed",e.CANCELLED="cancelled",e.ALL="all"}(O||(O={})),function(e){e.MODIFY_DATE="modifyDate",e.CREATE_DATE="createDate",e.NAME="name"}(S||(S={})),function(e){e.PRIMARY="http://ns.adobe.com/adobecloud/rel/primary",e.ID="http://ns.adobe.com/adobecloud/rel/id",e.PATH="http://ns.adobe.com/adobecloud/rel/path",e.RENDITION="http://ns.adobe.com/adobecloud/rel/rendition",e.COMPONENT_RENDITION="http://ns.adobe.com/adobecloud/rel/componentRendition",e.MANIFEST="http://ns.adobe.com/adobecloud/rel/manifest",e.QUOTA="http://ns.adobe.com/adobecloud/rel/quota",e.COMPONENT="http://ns.adobe.com/adobecloud/rel/component",e.PAGE="http://ns.adobe.com/adobecloud/rel/page",e.DISCARD="http://ns.adobe.com/adobecloud/rel/discard",e.RESTORE="http://ns.adobe.com/adobecloud/rel/restore",e.DIRECTORY="http://ns.adobe.com/adobecloud/rel/directory",e.DIRECTORY_BASE="http://ns.adobe.com/adobecloud/rel/directory/base",e.AC_EFFECTIVE="http://ns.adobe.com/adobecloud/rel/ac/effective",e.AC_POLICY="http://ns.adobe.com/adobecloud/rel/ac/policy",e.AC_CHECK="http://ns.adobe.com/adobecloud/rel/ac/check",e.CREATE="http://ns.adobe.com/adobecloud/rel/create",e.REPOSITORY="http://ns.adobe.com/adobecloud/rel/repository",e.RESOLVE_ID="http://ns.adobe.com/adobecloud/rel/resolve/id",e.RESOLVE_PATH="http://ns.adobe.com/adobecloud/rel/resolve/path",e.OPS="http://ns.adobe.com/adobecloud/rel/ops",e.BLOCK_INITIALIZE="http://ns.adobe.com/adobecloud/rel/block/init",e.BLOCK_TRANSFER="http://ns.adobe.com/adobecloud/rel/block/transfer",e.BLOCK_FINALIZE="http://ns.adobe.com/adobecloud/rel/block/finalize",e.REPO_METADATA="http://ns.adobe.com/adobecloud/rel/metadata/repository",e.APP_METADATA="http://ns.adobe.com/adobecloud/rel/metadata/application",e.EMBEDDED_METADATA="http://ns.adobe.com/adobecloud/rel/metadata/embedded",e.PERUSER_METADATA="http://ns.adobe.com/adobecloud/rel/metadata/peruser",e.ANNOTATIONS="http://ns.adobe.com/adobecloud/rel/annotations",e.DOWNLOAD="http://ns.adobe.com/adobecloud/rel/download",e.DESCRIBED_BY="describedBy",e.VERSION="version-history",e.SUBSCRIPTION_CREATE="subscription/create",e.NOTIFICATIONS_LONGPOLL="notifications/longpoll",e.ONS_CHANGELOG="ons/changelog",e.REPOSITORIES_PAGE="http://ns.adobe.com/repositories/rel/page",e.TEAMS_CREATE="http://ns.adobe.com/teams/rel/create",e.TEAMS_DISCARD="http://ns.adobe.com/teams/rel/discard",e.TEAMS_RESTORE="http://ns.adobe.com/teams/rel/restore",e.TEAMS_RENAME="http://ns.adobe.com/teams/rel/rename",e.TEAMS_PROPERTIES="http://ns.adobe.com/teams/rel/properties",e.TEAMS_PAGE="http://ns.adobe.com/teams/rel/page",e.TEAMS_PRIMARY="http://ns.adobe.com/teams/rel/primary",e.TEAM_PROVISION="http://ns.adobe.com/teams/rel/provision",e.WORKSPACES_CONTEXT="http://ns.adobe.com/ccprojects/rel/context",e.WORKSPACES_BOOKMARKS_BATCH="http://ns.adobe.com/ccprojects/rel/bookmarks/batch",e.WORKSPACES_PRIMARY="http://ns.adobe.com/ccprojects/rel/primary",e.WORKSPACES_CREATE="http://ns.adobe.com/ccprojects/rel/create",e.WORKSPACES_PAGE="http://ns.adobe.com/ccprojects/rel/page",e.PROJECTS_LIBRARIES_PAGE="http://ns.adobe.com/ccprojects/rel/libraries/page",e.PROJECTS_LIBRARIES_CREATE="http://ns.adobe.com/ccprojects/rel/libraries/create",e.PROJECTS_LIBRARIES_BATCH="http://ns.adobe.com/ccprojects/rel/libraries/batch",e.GENERIC_PAGE="page",e.GENERIC_NEXT="next",e.ATS_MOVE="http://ns.adobe.com/ats/rel/move",e.REVIEW_SERVICE_PROVISION="http://ns.adobe.com/ccassetreview/rel/provision",e.REVIEW_SERVICE_DISCARD="http://ns.adobe.com/ccassetreview/rel/discard",e.REVIEW_SERVICE_OUTPUTS="http://ns.adobe.com/ccassetreview/rel/outputs",e.REVIEW_SERIVCE_HAS_OUTPUTS="http://ns.adobe.com/ccassetreview/rel/hasoutputs",e.PROJECTS_CONTEXT="http://ns.adobe.com/projects/rel/context",e.PROJECTS_PRIMARY="http://ns.adobe.com/projects/rel/primary",e.PROJECTS_COLLECTION="http://ns.adobe.com/projects/rel/collection",e.PROJECTS_CREATE="http://ns.adobe.com/projects/rel/create",e.PROJECTS_RENAME="http://ns.adobe.com/projects/rel/rename",e.PROJECTS_CREATOR="http://ns.adobe.com/projects/rel/creator",e.PROJECTS_GRADIENTS_COLLECTION="http://ns.adobe.com/gradients/rel/collection",e.PROJECTS_CAPABILITY="http://ns.adobe.com/projects/rel/capability",e.ORGANIZATIONS_COLLECTION="http://ns.adobe.com/organizations/rel/collection",e.ASSIGNMENTS_ASSIGN="http://ns.adobe.com/assignments/rel/assign",e.ASSIGNMENTS_COLLECTION="http://ns.adobe.com/assignments/rel/collection",e.ASSIGNMENTS_CREATE="http://ns.adobe.com/assignments/rel/create",e.ASSIGNMENTS_PRIMARY="http://ns.adobe.com/assignments/rel/primary",e.ASSIGNMENTS_RETURN="http://ns.adobe.com/assignments/rel/return",e.ASSIGNMENTS_START="http://ns.adobe.com/assignments/rel/start",e.ASSIGNMENTS_SUBMIT="http://ns.adobe.com/assignments/rel/submit"}(T||(T={})),function(e){e.GRADIENT_ID="/project:rendition/gradientId"}(P||(P={})),function(e){e[e.All=0]="All",e[e.Yours=1]="Yours",e[e.SWY=2]="SWY",e[e.Admin=3]="Admin",e[e.Organization=4]="Organization",e[e.Recent=5]="Recent"}(I||(I={})),function(e){e.CREATE="create"}(A||(A={})),function(e){e[e.PENDING=0]="PENDING",e[e.CAN_LEAVE=1]="CAN_LEAVE",e[e.CANNOT_LEAVE_NO_COLLABORATORS=2]="CANNOT_LEAVE_NO_COLLABORATORS",e[e.CANNOT_LEAVE_ADDRESS_BOOK_GROUP_MEMBER=3]="CANNOT_LEAVE_ADDRESS_BOOK_GROUP_MEMBER",e[e.CANNOT_LEAVE_LAST_COLLABORATOR=4]="CANNOT_LEAVE_LAST_COLLABORATOR",e[e.CANNOT_LEAVE_LAST_DIRECT_COLLABORATOR=5]="CANNOT_LEAVE_LAST_DIRECT_COLLABORATOR",e[e.CANNOT_LEAVE_IS_ADMIN_OF_PROJECT=6]="CANNOT_LEAVE_IS_ADMIN_OF_PROJECT",e[e.CANNOT_LEAVE_LAST_DIRECT_COLLAB_WITH_SHARE_PERMISSION=7]="CANNOT_LEAVE_LAST_DIRECT_COLLAB_WITH_SHARE_PERMISSION",e[e.CANNOT_LEAVE_IS_OWNER=8]="CANNOT_LEAVE_IS_OWNER"}(C||(C={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.ALLOWED=1]="ALLOWED",e[e.ADMIN_DISABLED=2]="ADMIN_DISABLED",e[e.INVALID_REPOSITORY=3]="INVALID_REPOSITORY",e[e.NO_HOME_REPOSITORY=4]="NO_HOME_REPOSITORY"}(k||(k={})),function(e){e[e.None=0]="None",e[e.Ack=1]="Ack",e[e.Read=2]="Read",e[e.Write=4]="Write",e[e.Delete=8]="Delete",e[e.Share=16]="Share",e[e.Rename=32]="Rename",e[e.Move=64]="Move",e[e.Discard=128]="Discard",e[e.Restore=256]="Restore",e[e.Duplicate=512]="Duplicate",e[e.ReadAppMetadata=1024]="ReadAppMetadata",e[e.WriteComment=2048]="WriteComment"}(D||(D={})),function(e){e.DRAFT="DRAFT",e.ASSIGNED="ASSIGNED"}(N||(N={})),function(e){e.albumCover="album-cover",e.bannerPrint="banner-print",e.bannerWeb="banner-web",e.blogGraphic="blog-graphic",e.blogHeader="blog-header",e.bookCover="book-cover",e.bookmark="bookmark",e.brochure="brochure",e.businessCard="business-card",e.calendar="calendar",e.cardGreeting="card-greeting",e.certificate="certificate",e.checklist="checklist",e.classSchedule="class-schedule",e.comicStrip="comic-strip",e.conceptMap="concept-map",e.couponSheet="coupon-sheet",e.coverPage="cover-page",e.displayAd="display-ad",e.dividerPage="divider-page",e.drawing="drawing",e.drawingWorksheet="drawing-worksheet",e.ebookCover="ebook-cover",e.emailHeader="email-header",e.etsyShopBanner="etsy-shop-banner",e.etsyShopCover="etsy-shop-cover",e.eventbriteHeader="eventbrite-header",e.facebookAd="facebook-ad",e.facebookEventCover="facebook-event-cover",e.facebookGroupCover="facebook-group-cover",e.facebookPageCover="facebook-page-cover",e.facebookPost="facebook-post",e.facebookProfileCover="facebook-profile-cover",e.facebookShopCover="facebook-shop-cover",e.facebookStory="facebook-story",e.flashCard="flash-card",e.flashCardSheet="flash-card-sheet",e.flyer="flyer",e.giftCertificate="gift-certificate",e.giftTag="gift-tag",e.googleClassroomBanner="google-classroom-banner",e.graph="graph",e.graphicOrganizer="graphic-organizer",e.idCard="id-card",e.infographic="infographic",e.instagramAd="instagram-ad",e.instagramCarousel="instagram-carousel",e.instagramLandscapePost="instagram-landscape-post",e.instagramPortraitPost="instagram-portrait-post",e.instagramReel="instagram-reel",e.instagramSquarePost="instagram-square-post",e.instagramStory="instagram-story",e.instagramStoryAd="instagram-story-ad",e.invitation="invitation",e.invoice="invoice",e.journal="journal",e.label="label",e.labelSheet="label-sheet",e.leafletTrifold="leaflet-trifold",e.lessonPlan="lesson-plan",e.letter="letter",e.letterhead="letterhead",e.lineAdSmall="line-ad-small",e.lineAdSquare="line-ad-square",e.lineAdSquareVideo="line-ad-square-video",e.lineAdVertical="line-ad-vertical",e.lineRichMenuLarge="line-rich-menu-large",e.lineRichMenuSmall="line-rich-menu-small",e.lineRichMessage="line-rich-message",e.linkedinBlogPost="linkedin-blog-post",e.linkedinPost="linkedin-post",e.linkedinProfileCover="linkedin-profile-cover",e.logo="logo",e.magazine="magazine",e.mediaKit="media-kit",e.meme="meme",e.memo="memo",e.menu="menu",e.mindmap="mindmap",e.mobileVideo="mobile-video",e.mug="mug",e.nameTag="name-tag",e.newsletter="newsletter",e.noteHeaderImage="note-header-image",e.onlineNewsletter="online-newsletter",e.onlineReport="online-report",e.pamphlet="pamphlet",e.photoBook="photo-book",e.pinterestIdeaPin="pinterest-idea-pin",e.pinterestPost="pinterest-post",e.pinterestSquare="pinterest-square",e.pinterestVertical="pinterest-vertical",e.placeCard="place-card",e.planner="planner",e.playlistCover="playlist-cover",e.podcastCover="podcast-cover",e.postcard="postcard",e.poster="poster",e.presentation="presentation",e.printAd="print-ad",e.program="program",e.proposal="proposal",e.recipeCard="recipe-card",e.redditCover="reddit-cover",e.report="report",e.reportCard="report-card",e.resume="resume",e.rubric="rubric",e.snapchatAd="snapchat-ad",e.snapchatFilter="snapchat-filter",e.soundcloudBanner="soundcloud-banner",e.tableOfContents="table-of-contents",e.ticket="ticket",e.tiktokAd="tiktok-ad",e.tiktokVideo="tiktok-video",e.tshirt="tshirt",e.tumblrBanner="tumblr-banner",e.twitchBanner="twitch-banner",e.twitchOverlay="twitch-overlay",e.twitterHeader="twitter-header",e.twitterPost="twitter-post",e.twitterVideo="twitter-video",e.video="video",e.wallpaperDesktop="wallpaper-desktop",e.wallpaperMobile="wallpaper-mobile",e.webpage="webpage",e.worksheet="worksheet",e.youtubeBanner="youtube-banner",e.youtubeDisplayAds="youtube-display-ads",e.youtubeProfilePhoto="youtube-profile-photo",e.youtubeShorts="youtube-shorts",e.youtubeThumbnail="youtube-thumbnail",e.youtubeVideo="youtube-video",e.youtubeVideoAd="youtube-video-ad",e.zoomBackground="zoom-background"}(R||(R={})),function(e){e.STUDENT="student",e.TEACHER="teacher",e.NONE="none"}(M||(M={})),function(e){e.ACTIVE="ACTIVE",e.DECLINED="DECLINED",e.INACTIVE="INACTIVE",e.INVITED="INVITED",e.IN_REVIEW="IN_REVIEW",e.NOT_A_MEMBER="NOT_A_MEMBER",e.OWNER="OWNER"}(j||(j={})),function(e){e.CLASSLINK="CLASSLINK",e.CLEVER="CLEVER",e.EMAIL="EMAIL",e.GOOGLE_CLASSROOM="GOOGLE_CLASSROOM",e.NONE="NONE"}(F||(F={})),function(e){e.GC="GC"}(Z||(Z={})),function(e){e.STUDENT="STUDENT",e.TEACHER="TEACHER"}(B||(B={})),function(e){e.BLOCKED="BLOCKED",e.INVITED="INVITED",e.JOINED="JOINED",e.NOT_ENROLLED="NOT_ENROLLED",e.REMOVED="REMOVED"}(G||(G={})),function(e){e.CLEVER="clever",e.CLASS_LINK="classlink"}(U||(U={})),function(e){e.ACTIVE="ACTIVE",e.ARCHIVED="ARCHIVED"}(H||(H={})),function(e){e.TRUE="TRUE",e.RESTRICTED="RESTRICTED",e.UNRESTRICTED="UNRESTRICTED",e.NONE="NONE"}(z||(z={})),function(e){e.noSubject="",e.allsubjects="allsubjects",e.careersTechnicalEducation="careersTechnicalEducation",e.computerScience="computerScience",e.english="english",e.math="math",e.otherLanguages="otherLanguages",e.others="others",e.science="science",e.socialStudies="socialStudies",e.visualPerformingArts="visualPerformingArts"}(V||(V={})),function(e){e.STUDENT="STUDENT",e.TEACHER="TEACHER"}(Y||(Y={})),function(e){e.REMOVE_STUDENT_SUCCESS="REMOVE_STUDENT_SUCCESS",e.BLOCK_STUDENT_SUCCESS="BLOCK_STUDENT_SUCCESS",e.UNBLOCK_STUDENT_SUCCESS="UNBLOCK_STUDENT_SUCCESS",e.DELETE_DOMAIN_MAPPING_ACCEPTED="DELETE_DOMAIN_MAPPING_ACCEPTED"}(W||(W={})),function(e){e.OWNER="OWNER",e.ACTIVE="ACTIVE",e.INACTIVE="INACTIVE",e.INVITED="INVITED",e.IN_REVIEW="IN_REVIEW",e.DECLINED="DECLINED",e.NOT_A_MEMBER="NOT_A_MEMBER"}(K||(K={})),function(e){e.MODIFIED_DATE="modified_date",e.CREATED_DATE="created_date",e.NAME="name"}($||($={})),function(e){e.Personal="private",e.Public="public",e.Incoming="incoming",e.Discovery="discovery",e.All="all"}(q||(q={})),function(e){e.All="all",e.None="none"}(X||(X={})),function(e){e.None="none",e.Brand="brand",e.TrainingSet="cm_training_set"}(J||(J={})),function(e){e[e.None=0]="None",e[e.CollaboratorMaybeEditing=1]="CollaboratorMaybeEditing"}(Q||(Q={})),function(e){e[e.DifferentOwner=1]="DifferentOwner",e[e.PermissionDeniedDestination=2]="PermissionDeniedDestination",e[e.PermissionDeniedSource=3]="PermissionDeniedSource",e[e.NotAFolder=4]="NotAFolder",e[e.CrossBucketMoveDisabled=5]="CrossBucketMoveDisabled"}(ee||(ee={})),function(e){e.NOT_STARTED="NOT_STARTED",e.IN_PROGRESS="IN_PROGRESS",e.RETURNED="RETURNED",e.SUBMITTED="SUBMITTED"}(te||(te={})),function(e){e[e.NotStarted=0]="NotStarted",e[e.Fetching=1]="Fetching",e[e.Done=2]="Done",e[e.Error=3]="Error"}(re||(re={})),function(e){e[e.Size64=64]="Size64",e[e.Size128=128]="Size128",e[e.Size256=256]="Size256",e[e.Size512=512]="Size512",e[e.Size1024=1024]="Size1024"}(ne||(ne={})),function(e){e.PNG="image/png",e.JPEG="image/jpeg"}(ie||(ie={})),function(e){e.MOBILE="mobile",e.DESKTOP="desktop"}(oe||(oe={})),function(e){e.WEB="web",e.MOBILE="mobile"}(ae||(ae={})),function(e){e.OpenDocumentVersion="onOpenDocumentVersion",e.OpenDeepLinkVersion="onOpenDeepLinkVersion",e.VersionSelection="onVersionSelection",e.RestoreVersion="onRestoreVersion",e.Upgrade="onUpgrade",e.CreateCopy="onCreateCopy",e.Refresh="onRefresh",e.ModeChange="onModeChange",e.ThemeChange="onThemeChange",e.ClosePanel="onClosePanel",e.Error="onError",e.VersionBookmark="onVersionBookmark",e.VersionUnBookmark="onVersionUnBookmark",e.VersionBookmarkStart="onVersionBookmarkStart",e.VersionUnBookmarkStart="onVersionUnBookmarkStart",e.PermanentlyDeleteScreen="onPermanentlyDeleteScreen",e.PermanentlyDeleteVersion="onPermanentlyDeleteVersion",e.VersioningPanelLoadComplete="onVersioningPanelLoadComplete",e.PreviewThumbnailReceived="onPreviewThumbnailReceived"}(se||(se={}));const ge=E,ve=w,ye=new Map([[401,{code:ge.AUTHORIZATION_ERROR,message:e=>`Authorization error: ${e}`}],[403,{code:ge.ACCESS_DENIED,message:e=>`Access to resource denied: ${e}`}],[404,{code:ge.NOT_FOUND,message:e=>`Resource not found: ${e}`}],[409,{code:ge.CONFLICT,message:()=>"Resource has a naming conflict."}],[412,{code:ge.CONFLICT,message:()=>"Resource has a conflict. Etag mismatch."}]]);function be(e){for("string"==typeof e&&(e=parseInt(e)),e=Math.floor(e);e>999;)e=Math.floor(e/10);return e}var _e;!function(e){e.LIMIT_CHANGELOGRETENTION="http://ns.adobe.com/adobecloud/problem/limit/changelogretention",e.OPERATION_FAILED="adobecloud/problem/operation_failed",e.SUBSCRIPTION_COUNT="http://ns.adobe.com/adobecloud/problem/limit/subscriptioncount",e.QUOTA_EXCEEDED="http://ns.adobe.com/adobecloud/problem/quotaexceeded",e.CHILDREN_LIMIT_EXCEEDED="http://ns.adobe.com/adobecloud/problem/limit/childrencount",e.NO_HOME_REPOSITORY="http://ns.adobe.com/projects/problem/no-home-repository",e.INVALID_HOME_REPOSITORY="http://ns.adobe.com/projects/problem/invalid-repository",e.ADMIN_ONLY="http://ns.adobe.com/projects/problem/admin-only",e.ACCESS_DENIED="http://ns.adobe.com/adobecloud/problem/accessdenied"}(_e||(_e={}));const Ee="SAMError";class we extends Error{constructor(e,t,r={},n){const i=`[${ge[e]}${void 0===n?"":"-"+ve[n]}] ${t}${function(e){let t="";if(null!=e)try{t=` -> ${String(e)}`}catch(e){}return t}(r.underlyingError)}`;void 0!==r.underlyingError?super(i,{cause:r.underlyingError}):super(i),this.code=e,this.subCode=n,this.description=t,this._additionalInfo=r}get name(){return Ee}static wrapErrorIfNeeded(e,t,r,n){return r instanceof we?r:new we(e,t,{underlyingError:r},n)}static create(e,t,r,n){return new we(e,t,r,n)}static createWithResponse(e,t){var r,n;const i=e.status,o=ye.get(be(i)),a=null!=t?t:e.url,s=e.headers.get("X-Request-Id")||"";return new we(null!==(r=null==o?void 0:o.code)&&void 0!==r?r:ge.UNKNOWN,(null!==(n=null==o?void 0:o.message(null!=t?t:a))&&void 0!==n?n:`Unexpected response status: ${i} for ${a}`)+` reqId: ${s}`,{response:e,reqId:s},null==o?void 0:o.subCode)}static createWithResponseAndDescription(e,t){var r;const n=ye.get(be(e.status));return new we(null!==(r=null==n?void 0:n.code)&&void 0!==r?r:ge.UNKNOWN,t,{response:e},null==n?void 0:n.subCode)}static createWithRepositoryCode(e,t,r){var n;if(t===_e.QUOTA_EXCEEDED)return new we(ge.FULL_CLOUD_STORAGE,r,{problemType:t});const i=be(e),o=e?ye.get(i):void 0;return new we(null!==(n=null==o?void 0:o.code)&&void 0!==n?n:ge.UNKNOWN,r,{problemType:t},null==o?void 0:o.subCode)}}function xe(e,t){if(!e)throw we.create(ge.UNKNOWN,t)}function Le(e){return e&&e.name===Ee}var Oe=function(e,t){return Oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Oe(e,t)};function Se(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Oe(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Te=function(){return Te=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Te.apply(this,arguments)};function Pe(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function Ie(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function Ae(e,t){return function(r,n){t(r,n,e)}}function Ce(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))}function ke(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function De(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function Ne(e){return this instanceof Ne?(this.v=e,this):new Ne(e)}function Re(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||s(e,t)}))})}function s(e,t){try{(r=i[e](t)).value instanceof Ne?Promise.resolve(r.value.v).then(c,l):u(o[0][2],r)}catch(e){u(o[0][3],e)}var r}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function Me(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:Ne(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function je(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,(t=e[r](t)).done,t.value)}))}}}const Fe=Symbol("@key parameterMap");var Ze=(e,t,r)=>{const n=e[Fe]=e[Fe]||new Map;if(n.has(t))throw we.create(ge.BAD_REQUEST,"@key cannot be applied to more than one parameter");n.set(t,r)};function Be(e){return(t,r,n)=>{const i=n.value;if(!i)throw we.create(ge.BAD_REQUEST,"@cache decorator can only be applied to a method");const o=function(){var t=me(he().mark((function t(...n){var o,a,s;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0!==(a=null===(o=this[Fe])||void 0===o?void 0:o.get(r))){t.next=3;break}throw we.create(ge.BAD_REQUEST,"@cache decorator requires one of the parameters to be labelled with @key");case 3:return s=n[a],t.abrupt("return",this._core._environment.cache.getItem(s,(()=>i.apply(this,n)),e));case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}();n.value=o}}function Ge(e,t,r){return t?Be()(e,t,r):Be(e)}var Ue=(e,t,r)=>{const n=Symbol(`@memoize ${t}`),i=r.get?"get":"value",o=r[i];r[i]=function(...e){return Object.prototype.hasOwnProperty.call(this,n)||(this[n]=o.call(this,...e)),this[n]}};class He{constructor(e){this._type=e}get type(){return this._type}toString(){return`SAMEvent(${this._type})`}}const ze="change";class Ve extends He{constructor(){super(ze)}}const Ye=new Ve,We=Symbol("$OBSERVABLE_MAP");function Ke(e,t){return(r,n,i)=>{if((i.get||i.value)&&(null==t||t.forEach((t=>function(e,t,r){let n;Object.getOwnPropertyDescriptor(e,We)?n=e[We]:e[We]?(n=new Map(e[We]),e[We]=n):(n=new Map,e[We]=n),n.set(t,r)}(r,t,e)))),i.get){const t=i.get;i.get=function(){return this._core._environment.mobx.reportObserved(this,e.type),t.call(this)}}else{if(!i.value)throw new Error("@observable decorator can only be used with `getters` or `methods`.");{const t=i.value,r=function(...r){return this._core._environment.mobx.reportObserved(this,e.type),t.apply(this,r)};i.value=r}}}}function $e(e,t,r){if(e&&t&&r)return Ke(Ye)(e,t,r);if("string"==typeof e.type&&("string"==typeof t||void 0===t||Array.isArray(t)))return Ke(e,t=t?[].concat(t):void 0);throw new Error("Invalid arguments for @observable")}var qe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Xe={exports:{}};!function(e){!function(t,r){e.exports?e.exports=r():t.UriTemplate=r()}(qe,(function(){var e={"+":!0,"#":!0,".":!0,"/":!0,";":!0,"?":!0,"&":!0},t={"*":!0};function r(e){return encodeURI(e).replace(/%25[0-9][0-9]/g,(function(e){return"%"+e.substring(3)}))}function n(e){return e=e.replace(/%../g,""),encodeURIComponent(e)===e}function i(i){var o="";e[i.charAt(0)]&&(o=i.charAt(0),i=i.substring(1));var a="",s="",c=!0,l=!1,u=!1;"+"==o?c=!1:"."==o?(s=".",a="."):"/"==o?(s="/",a="/"):"#"==o?(s="#",c=!1):";"==o?(s=";",a=";",l=!0,u=!0):"?"==o?(s="?",a="&",l=!0):"&"==o&&(s="&",a="&",l=!0);for(var d=[],p=i.split(","),h=[],f={},m=0;m<p.length;m++){var g=p[m],v=null;if(-1!=g.indexOf(":")){var y=g.split(":");g=y[0],v=parseInt(y[1])}for(var b={};t[g.charAt(g.length-1)];)b[g.charAt(g.length-1)]=!0,g=g.substring(0,g.length-1);var _={truncate:v,name:g,suffices:b};h.push(_),f[g]=_,d.push(g)}return{varNames:d,prefix:s,substitution:function(e){for(var t="",n=0,i=0;i<h.length;i++){var o=h[i],d=e(o.name);if(null==d||Array.isArray(d)&&0==d.length||"object"==typeof d&&0==Object.keys(d).length)n++;else if(t+=i==n?s:a||",",Array.isArray(d)){l&&(t+=o.name+"=");for(var p=0;p<d.length;p++)p>0&&(t+=o.suffices["*"]&&a||",",o.suffices["*"]&&l&&(t+=o.name+"=")),t+=c?encodeURIComponent(d[p]).replace(/!/g,"%21"):r(d[p])}else if("object"==typeof d){l&&!o.suffices["*"]&&(t+=o.name+"=");var f=!0;for(var m in d)f||(t+=o.suffices["*"]&&a||","),f=!1,t+=c?encodeURIComponent(m).replace(/!/g,"%21"):r(m),t+=o.suffices["*"]?"=":",",t+=c?encodeURIComponent(d[m]).replace(/!/g,"%21"):r(d[m])}else l&&(t+=o.name,u&&""==d||(t+="=")),null!=o.truncate&&(d=d.substring(0,o.truncate)),t+=c?encodeURIComponent(d).replace(/!/g,"%21"):r(d)}return t},unSubstitution:function(e,t,r){if(s&&(e=e.substring(s.length)),1==h.length&&h[0].suffices["*"]){for(var i=(x=h[0]).name,o=x.suffices["*"]?e.split(a||","):[e],u=c&&-1!=e.indexOf("="),d=1;d<o.length;d++)e=o[d],u&&-1==e.indexOf("=")&&(o[d-1]+=(a||",")+e,o.splice(d,1),d--);for(d=0;d<o.length;d++)e=o[d],c&&-1!=e.indexOf("=")&&(u=!0),1==(y=e.split(",")).length?o[d]=y[0]:o[d]=y;if(l||u){for(var p=t[i]||{},m=0;m<o.length;m++){var g=e;if(!l||g){if("string"==typeof o[m]){var v=(e=o[m]).split("=",1)[0];if(e=e.substring(v.length+1),c){if(r&&!n(e))return;e=decodeURIComponent(e)}g=e}else{if(v=(e=o[m][0]).split("=",1)[0],e=e.substring(v.length+1),c){if(r&&!n(e))return;e=decodeURIComponent(e)}o[m][0]=e,g=o[m]}if(c){if(r&&!n(v))return;v=decodeURIComponent(v)}void 0!==p[v]?Array.isArray(p[v])?p[v].push(g):p[v]=[p[v],g]:p[v]=g}}1==Object.keys(p).length&&void 0!==p[i]?t[i]=p[i]:t[i]=p}else{if(c)for(m=0;m<o.length;m++){var y=o[m];if(Array.isArray(y))for(var b=0;b<y.length;b++){if(r&&!n(y[b]))return;y[b]=decodeURIComponent(y[b])}else{if(r&&!n(y))return;o[m]=decodeURIComponent(y)}}void 0!==t[i]?Array.isArray(t[i])?t[i]=t[i].concat(o):t[i]=[t[i]].concat(o):1!=o.length||x.suffices["*"]?t[i]=o:t[i]=o[0]}}else{o=1==h.length?[e]:e.split(a||",");var _={};for(d=0;d<o.length;d++){for(var E=0;E<h.length-1&&E<d&&!h[E].suffices["*"];E++);if(E!=d){for(var w=h.length-1;w>0&&h.length-w<o.length-d&&!h[w].suffices["*"];w--);h.length-w!=o.length-d?_[d]=E:_[d]=w}else _[d]=d}for(d=0;d<o.length;d++)if((e=o[d])||!l){if(y=e.split(","),u=!1,l){i=(e=y[0]).split("=",1)[0],e=e.substring(i.length+1),y[0]=e;var x=f[i]||h[0]}else i=(x=h[_[d]]).name;for(m=0;m<y.length;m++)if(c){if(r&&!n(y[m]))return;y[m]=decodeURIComponent(y[m])}(l||x.suffices["*"])&&void 0!==t[i]?Array.isArray(t[i])?t[i]=t[i].concat(y):t[i]=[t[i]].concat(y):1!=y.length||x.suffices["*"]?t[i]=y:t[i]=y[0]}}return 1}}}function o(e){if(!(this instanceof o))return new o(e);for(var t=e.split("{"),r=[t.shift()],n=[],a=[],s=[],c=[];t.length>0;){var l=t.shift(),u=l.split("}")[0],d=l.substring(u.length+1),p=i(u);a.push(p.substitution),s.push(p.unSubstitution),n.push(p.prefix),r.push(d),c=c.concat(p.varNames)}this.fill=function(e){if(e&&"function"!=typeof e){var t=e;e=function(e){return t[e]}}for(var n=r[0],i=0;i<a.length;i++)n+=(0,a[i])(e),n+=r[i+1];return n},this.fromUri=function(e,t){t=t||{};for(var i={},o=0;o<r.length;o++){var a=r[o];if(e.substring(0,a.length)!==a)return;if(e=e.substring(a.length),o>=r.length-1){if(""==e)break;return}var c=n[o];if(!c||e.substring(0,c.length)===c){for(var l=r[o+1],u=o;;){if(u==r.length-2){var d=e.substring(e.length-l.length);if(d!==l)return;var p=e.substring(0,e.length-l.length);e=d}else if(l){var h=e.indexOf(l);p=e.substring(0,h),e=e.substring(h)}else if(n[u+1])-1===(h=e.indexOf(n[u+1]))&&(h=e.length),p=e.substring(0,h),e=e.substring(h);else{if(r.length>u+2){u++,l=r[u+1];continue}p=e,e=""}break}if(!s[o](p,i,t.strict))return}}return i},this.varNames=c,this.template=e}return o.prototype={toString:function(){return this.template},fillFromObject:function(e){return this.fill(e)},test:function(e,t){return!!this.fromUri(e,t)}},o}))}(Xe);var Je=Xe.exports;const Qe="application/json",et="application/json-patch+json";var tt;function rt(e,t){if(void 0===e)return!0;if(Object(e)!==e)return!1;const r=Object.keys(e).some((t=>{const r=e[t];return Array.isArray(r)?r.some((({href:e})=>"string"!=typeof e)):"string"!=typeof r.href}));if(r)return!1;if(t){const r=Object.keys(t).every((r=>function(e,t,r){try{const n=it(e,t),i=Je(n);return r.every((e=>-1!==i.varNames.indexOf(e)))}catch(e){return!1}}(e,r,t[r])));if(!r)return!1}return!0}function nt(e,t){let r=e&&e[t];if(!r||Array.isArray(r)&&0===r.length)throw we.create(ge.BAD_REQUEST,`Missing link for relationship type: ${t}.`);return Array.isArray(r)&&(r=r[0]),r}function it(e,t){return nt(e,t).href}function ot(e,t,r={}){const n=it(e,t),i=Je(n);return i&&i.fill(r)}function at(e){const t=e&&e.get("Retry-After");if(t)try{const e=parseInt(t,10);if(e)return Math.max(0,e);const r=Date.parse(t);if(r){const e=Date.now();return Math.max(0,r-e)/1e3+Math.floor(30*Math.random())}}catch(e){}return 0}function st(e,t){return Je(`${e}{?queryParams*}`).fillFromObject({queryParams:t})}!function(e){e.PRIMARY="http://ns.adobe.com/adobecloud/rel/primary",e.ID="http://ns.adobe.com/adobecloud/rel/id",e.PATH="http://ns.adobe.com/adobecloud/rel/path",e.RENDITION="http://ns.adobe.com/adobecloud/rel/rendition",e.COMPONENT_RENDITION="http://ns.adobe.com/adobecloud/rel/componentRendition",e.MANIFEST="http://ns.adobe.com/adobecloud/rel/manifest",e.QUOTA="http://ns.adobe.com/adobecloud/rel/quota",e.COMPONENT="http://ns.adobe.com/adobecloud/rel/component",e.PAGE="http://ns.adobe.com/adobecloud/rel/page",e.DISCARD="http://ns.adobe.com/adobecloud/rel/discard",e.RESTORE="http://ns.adobe.com/adobecloud/rel/restore",e.DIRECTORY="http://ns.adobe.com/adobecloud/rel/directory",e.DIRECTORY_BASE="http://ns.adobe.com/adobecloud/rel/directory/base",e.AC_EFFECTIVE="http://ns.adobe.com/adobecloud/rel/ac/effective",e.AC_POLICY="http://ns.adobe.com/adobecloud/rel/ac/policy",e.AC_CHECK="http://ns.adobe.com/adobecloud/rel/ac/check",e.CREATE="http://ns.adobe.com/adobecloud/rel/create",e.REPOSITORY="http://ns.adobe.com/adobecloud/rel/repository",e.RESOLVE_ID="http://ns.adobe.com/adobecloud/rel/resolve/id",e.RESOLVE_PATH="http://ns.adobe.com/adobecloud/rel/resolve/path",e.OPS="http://ns.adobe.com/adobecloud/rel/ops",e.BLOCK_INITIALIZE="http://ns.adobe.com/adobecloud/rel/block/init",e.BLOCK_TRANSFER="http://ns.adobe.com/adobecloud/rel/block/transfer",e.BLOCK_FINALIZE="http://ns.adobe.com/adobecloud/rel/block/finalize",e.REPO_METADATA="http://ns.adobe.com/adobecloud/rel/metadata/repository",e.APP_METADATA="http://ns.adobe.com/adobecloud/rel/metadata/application",e.EMBEDDED_METADATA="http://ns.adobe.com/adobecloud/rel/metadata/embedded",e.PERUSER_METADATA="http://ns.adobe.com/adobecloud/rel/metadata/peruser",e.ANNOTATIONS="http://ns.adobe.com/adobecloud/rel/annotations",e.DOWNLOAD="http://ns.adobe.com/adobecloud/rel/download",e.DESCRIBED_BY="describedBy",e.VERSION="version-history",e.SUBSCRIPTION_CREATE="subscription/create",e.NOTIFICATIONS_LONGPOLL="notifications/longpoll",e.ONS_CHANGELOG="ons/changelog",e.REPOSITORIES_PAGE="http://ns.adobe.com/repositories/rel/page",e.TEAMS_CREATE="http://ns.adobe.com/teams/rel/create",e.TEAMS_DISCARD="http://ns.adobe.com/teams/rel/discard",e.TEAMS_RESTORE="http://ns.adobe.com/teams/rel/restore",e.TEAMS_RENAME="http://ns.adobe.com/teams/rel/rename",e.TEAMS_PROPERTIES="http://ns.adobe.com/teams/rel/properties",e.TEAMS_PAGE="http://ns.adobe.com/teams/rel/page",e.TEAMS_PRIMARY="http://ns.adobe.com/teams/rel/primary",e.TEAM_PROVISION="http://ns.adobe.com/teams/rel/provision",e.WORKSPACES_CONTEXT="http://ns.adobe.com/ccprojects/rel/context",e.WORKSPACES_BOOKMARKS_BATCH="http://ns.adobe.com/ccprojects/rel/bookmarks/batch",e.WORKSPACES_PRIMARY="http://ns.adobe.com/ccprojects/rel/primary",e.WORKSPACES_CREATE="http://ns.adobe.com/ccprojects/rel/create",e.WORKSPACES_PAGE="http://ns.adobe.com/ccprojects/rel/page",e.PROJECTS_LIBRARIES_PAGE="http://ns.adobe.com/ccprojects/rel/libraries/page",e.PROJECTS_LIBRARIES_CREATE="http://ns.adobe.com/ccprojects/rel/libraries/create",e.PROJECTS_LIBRARIES_BATCH="http://ns.adobe.com/ccprojects/rel/libraries/batch",e.GENERIC_PAGE="page",e.GENERIC_NEXT="next",e.ATS_MOVE="http://ns.adobe.com/ats/rel/move",e.REVIEW_SERVICE_PROVISION="http://ns.adobe.com/ccassetreview/rel/provision",e.REVIEW_SERVICE_DISCARD="http://ns.adobe.com/ccassetreview/rel/discard",e.REVIEW_SERVICE_OUTPUTS="http://ns.adobe.com/ccassetreview/rel/outputs",e.REVIEW_SERIVCE_HAS_OUTPUTS="http://ns.adobe.com/ccassetreview/rel/hasoutputs",e.PROJECTS_CONTEXT="http://ns.adobe.com/projects/rel/context",e.PROJECTS_PRIMARY="http://ns.adobe.com/projects/rel/primary",e.PROJECTS_COLLECTION="http://ns.adobe.com/projects/rel/collection",e.PROJECTS_CREATE="http://ns.adobe.com/projects/rel/create",e.PROJECTS_RENAME="http://ns.adobe.com/projects/rel/rename",e.PROJECTS_CREATOR="http://ns.adobe.com/projects/rel/creator",e.PROJECTS_GRADIENTS_COLLECTION="http://ns.adobe.com/gradients/rel/collection",e.PROJECTS_CAPABILITY="http://ns.adobe.com/projects/rel/capability",e.ORGANIZATIONS_COLLECTION="http://ns.adobe.com/organizations/rel/collection",e.PROJECTS_RECENT="http://ns.adobe.com/projects/rel/recent",e.ASSIGNMENTS_ASSIGN="http://ns.adobe.com/assignments/rel/assign",e.ASSIGNMENTS_COLLECTION="http://ns.adobe.com/assignments/rel/collection",e.ASSIGNMENTS_CREATE="http://ns.adobe.com/assignments/rel/create",e.ASSIGNMENTS_PRIMARY="http://ns.adobe.com/assignments/rel/primary",e.ASSIGNMENTS_RETURN="http://ns.adobe.com/assignments/rel/return",e.ASSIGNMENTS_START="http://ns.adobe.com/assignments/rel/start",e.ASSIGNMENTS_SUBMIT="http://ns.adobe.com/assignments/rel/submit"}(tt||(tt={}));var ct=/^utf-?8|ascii|utf-?16-?le|ucs-?2|base-?64|latin-?1$/i,lt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ut=/\s|\uFEFF|\xA0/,dt=/\r?\n[\x20\x09]+/g,pt=/[;,"]/,ht=/[;,"]|\s/,ft=/^[!#$%&'*+\-\.^_`|~\da-zA-Z]+$/;function mt(e){return e.replace(lt,"")}function gt(e){return ut.test(e)}function vt(e,t){for(;gt(e[t]);)t++;return t}function yt(e){return ht.test(e)||!ft.test(e)}class bt{constructor(e){this.refs=[],e&&this.parse(e)}rel(e){for(var t=[],r=e.toLowerCase(),n=0;n<this.refs.length;n++)this.refs[n].rel.toLowerCase()===r&&t.push(this.refs[n]);return t}get(e,t){e=e.toLowerCase();for(var r=[],n=0;n<this.refs.length;n++)this.refs[n][e]===t&&r.push(this.refs[n]);return r}set(e){return this.refs.push(e),this}setUnique(e){return this.refs.some((t=>{return r=t,n=e,Object.keys(r).length===Object.keys(n).length&&Object.keys(r).every((e=>e in n&&r[e]===n[e]));var r,n}))||this.refs.push(e),this}has(e,t){e=e.toLowerCase();for(var r=0;r<this.refs.length;r++)if(this.refs[r][e]===t)return!0;return!1}parse(e,t){for(var r=1,n=(e=mt(e=(t=t||0)?e.slice(t):e).replace(dt,"")).length,i=(t=0,null);t<n;)if(1===r){if(gt(e[t])){t++;continue}if("<"!==e[t])throw new Error('Unexpected character "'+e[t]+'" at offset '+t);if(null!=i&&(null!=i.rel?this.refs.push(...bt.expandRelations(i)):this.refs.push(i)),-1===(s=e.indexOf(">",t)))throw new Error("Expected end of URI delimiter at offset "+t);i={uri:e.slice(t+1,s)},t=s,r=2,t++}else if(2===r){if(gt(e[t])){t++;continue}if(";"===e[t])r=4,t++;else{if(","!==e[t])throw new Error('Unexpected character "'+e[t]+'" at offset '+t);r=1,t++}}else{if(4!==r)throw new Error('Unknown parser state "'+r+'"');if(";"===e[t]||gt(e[t])){t++;continue}if(-1===(s=e.indexOf("=",t)))throw new Error("Expected attribute delimiter at offset "+t);var o=mt(e.slice(t,s)).toLowerCase(),a="";if('"'===e[t=vt(e,t=s+1)])for(t++;t<n;){if('"'===e[t]){t++;break}"\\"===e[t]&&t++,a+=e[t],t++}else{for(var s=t+1;!pt.test(e[s])&&s<n;)s++;a=e.slice(t,s),t=s}switch(i[o]&&bt.isSingleOccurenceAttr(o)||("*"===o[o.length-1]?i[o]=bt.parseExtendedValue(a):(a="type"===o?a.toLowerCase():a,null!=i[o]?Array.isArray(i[o])?i[o].push(a):i[o]=[i[o],a]:i[o]=a)),e[t]){case",":r=1;break;case";":r=4}t++}return null!=i&&(null!=i.rel?this.refs.push(...bt.expandRelations(i)):this.refs.push(i)),i=null,this}toString(){for(var e=[],t="",r=null,n=0;n<this.refs.length;n++)r=this.refs[n],t=Object.keys(this.refs[n]).reduce((function(e,t){return"uri"===t?e:e+"; "+bt.formatAttribute(t,r[t])}),"<"+r.uri+">"),e.push(t);return e.join(", ")}}bt.isCompatibleEncoding=function(e){return ct.test(e)},bt.parse=function(e,t){return(new bt).parse(e,t)},bt.isSingleOccurenceAttr=function(e){return"rel"===e||"type"===e||"media"===e||"title"===e||"title*"===e},bt.isTokenAttr=function(e){return"rel"===e||"type"===e||"anchor"===e},bt.escapeQuotes=function(e){return e.replace(/"/g,'\\"')},bt.expandRelations=function(e){return e.rel.split(" ").map((function(t){var r=Object.assign({},e);return r.rel=t,r}))},bt.parseExtendedValue=function(e){var t=/([^']+)?(?:'([^']*)')?(.+)/.exec(e);return{language:t[2].toLowerCase(),encoding:bt.isCompatibleEncoding(t[1])?null:t[1].toLowerCase(),value:bt.isCompatibleEncoding(t[1])?decodeURIComponent(t[3]):t[3]}},bt.formatExtendedAttribute=function(e,t){var r=(t.encoding||"utf-8").toUpperCase();return e+"="+r+"'"+(t.language||"en")+"'"+(Buffer.isBuffer(t.value)&&bt.isCompatibleEncoding(r)?t.value.toString(r):Buffer.isBuffer(t.value)?t.value.toString("hex").replace(/[0-9a-f]{2}/gi,"%$1"):encodeURIComponent(t.value))},bt.formatAttribute=function(e,t){return Array.isArray(t)?t.map((t=>bt.formatAttribute(e,t))).join("; "):"*"===e[e.length-1]||"string"!=typeof t?bt.formatExtendedAttribute(e,t):(bt.isTokenAttr(e)?t=yt(t)?'"'+bt.escapeQuotes(t)+'"':bt.escapeQuotes(t):yt(t)&&(t='"'+(t=(t=encodeURIComponent(t)).replace(/%20/g," ").replace(/%2C/g,",").replace(/%3B/g,";"))+'"'),e+"="+t)};var _t=bt;class Et{constructor(e,t,r,n,i){this.url=e,this.headers=t,this.status=r,this.statusText=n,this._text=i}get ok(){const e=this.status;return e>=200&&e<=299}get redirected(){return!1}get type(){return"basic"}json(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.abrupt("return",JSON.parse(e._text));case 4:throw t.prev=4,t.t0=t.catch(0),we.create(ge.INTERNAL_ERROR,`Failed to parse JSON response from '${e.url}' async request.`,{underlyingError:t.t0});case 7:case"end":return t.stop()}}),t,null,[[0,4]])})))()}text(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._text);case 1:case"end":return t.stop()}}),t)})))()}get trailer(){throw we.create(ge.UNSUPPORTED,"AsyncResponse.trailer not implemented.")}clone(){const e=new Headers;return this.headers.forEach(((t,r)=>e.set(r,t))),new Et(this.url,e,this.status,this.statusText,this._text)}get bodyUsed(){throw we.create(ge.UNSUPPORTED,"AsyncResponse.bodyUsed not implemented.")}get body(){throw we.create(ge.UNSUPPORTED,"AsyncResponse.body not implemented.")}arrayBuffer(){return me(he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw we.create(ge.UNSUPPORTED,"AsyncResponse.arrayBuffer not implemented.");case 1:case"end":return e.stop()}}),e)})))()}blob(){return me(he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw we.create(ge.UNSUPPORTED,"AsyncResponse.blob not implemented.");case 1:case"end":return e.stop()}}),e)})))()}formData(){return me(he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw we.create(ge.UNSUPPORTED,"AsyncResponse.formData not implemented.");case 1:case"end":return e.stop()}}),e)})))()}}const wt=function(){let e=33;const t=["^(["];for(let r=34;r<=127;++r)127!==r&&-1==='()<@,;:"/[]={}'.indexOf(String.fromCharCode(r))||(t.push("\\"+e.toString(8)),e<r-1&&t.push("-\\"+(r-1).toString(8)),e=r+1);return t.push("]+):(.*)$"),new RegExp(t.join(""))}(),xt=/^[^\s]+\s+(\d+)\s*(.*)$/;class Lt{constructor(e){this._text=e,this._index=0}readLine(){const e=this._index,t=this._text,r=t.indexOf("\n",e);if(-1===r)return;this._index=r+1;let n=t.slice(e,r);return n.endsWith("\r")&&(n=n.slice(0,-1)),n}get remainderText(){return this._text.slice(this._index)}}function Ot(e,t){if(!t)throw we.create(ge.INTERNAL_ERROR,"Invalid async response body.");const r=new Lt(t);let n,i;const o=r.readLine();if(o){const e=o.match(xt);if(!e)throw we.create(ge.INTERNAL_ERROR,"Invalid status line for async response.");if(n=parseInt(e[1],10),!n)throw we.create(ge.INTERNAL_ERROR,"Could not find status code for async response.");i=e[2]}else n=200,i="";const a=[];let s;for(;;){const e=r.readLine();if(!e)break;const t=e.match(wt);t?(s=t[1],a.push([s,t[2]])):s&&a.push([s,e])}return new Et(e,new Headers(a),n,i,r.remainderText)}const St=[200],Tt=[429,500,502,503,504];class Pt{constructor(e){this._core=e,this._useHighPriorityRequestsIfEnabled=!1,this._sharedResponses=new Map}_fetch(e,t={successResponseCodes:St},r=0){var n=this;return me(he().mark((function i(){var o,a,s,c,l,u,d,p,h;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=t.additionalRetryErrorCodes,a=t.successResponseCodes,s=void 0===a?St:a,c=Pe(t,["additionalRetryErrorCodes","successResponseCodes"]),l=[...Tt,...o||[]],i.next=4,n._getFetchOptionOverrides(e,c);case 4:return u=i.sent,i.next=7,n._core._environment.fetch(u.href,u.options);case 7:if(d=i.sent,202!==(p=d.status)){i.next=13;break}return i.next=12,n._monitorResponse(d);case 12:d=i.sent;case 13:if(!(p>=400&&at(d.headers)||l.includes(p))){i.next=25;break}if(!(r<5)){i.next=24;break}return h=n._getRetryErrorDelay(d,r),n._core._environment.log(`Retryable error ${p} retrying in ${h}ms, ${r} retries so far`),i.next=19,new Promise((e=>setTimeout(e,h)));case 19:return i.next=21,n._fetch(e,t,r+1);case 21:return i.abrupt("return",i.sent);case 24:n._core._environment.log(`Retryable error ${p} attempt ${r} exceeded 5 retries`);case 25:return"any"!==s&&n._checkResponseStatus(d,e,s),i.abrupt("return",d);case 27:case"end":return i.stop()}}),i)})))()}_checkResponseStatus(e,t,r){if(!r.includes(e.status)){const r=we.createWithResponse(e,t);throw this._core._environment.error(`InterfaceBase error ${r}`),r}}_monitorResponse(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=e.headers.get("location")){r.next=10;break}return r.next=4,e.json();case 4:if(i=r.sent){r.next=7;break}throw we.create(ge.BAD_REQUEST,"Failed to parse content for 202 monitor response.");case 7:if(n=i.href){r.next=10;break}throw we.create(ge.BAD_REQUEST,"Missing href property for 202 monitor response.");case 10:return o=t._getMonitorRetryAfter(e.headers),r.abrupt("return",t._fetchMonitorResponse(e.url,n,o));case 12:case"end":return r.stop()}}),r)})))()}_fetchMonitorResponse(e,t,r){var n=this;return me(he().mark((function i(){var o,a,s;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!r){i.next=3;break}return i.next=3,new Promise((e=>setTimeout(e,r)));case 3:return i.next=5,n._core._environment.fetch(t);case 5:return o=i.sent,i.next=8,o.text();case 8:if(a=i.sent,!n._shouldRetryMonitorResponse(o,a)){i.next=13;break}return s=n._getMonitorRetryAfter(o.headers),i.abrupt("return",n._fetchMonitorResponse(e,t,s));case 13:return i.abrupt("return",Ot(e,a));case 14:case"end":return i.stop()}}),i)})))()}_shouldRetryMonitorResponse(e,t){return 202===e.status}_getMonitorRetryAfter(e){return 1e3*at(e)||this._core._environment.getValue("ASYNC_DEFAULT_DELAY")}_getRetryErrorDelay(e,t){const r=this._core._environment.getValue("MIN_RETRY_INTERVAL"),n=this._core._environment.getValue("MAX_RETRY_INTERVAL");return function(e,t,r){return void 0!==t&&e<t?t:void 0!==r&&e>r?r:e}(1e3*(e&&at(e.headers)||Math.pow(2,t)),r,n)}_doGet(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r._fetch(e,Object.assign({method:"GET",successResponseCodes:St},t)));case 1:case"end":return n.stop()}}),n)})))()}_doHead(e,t={}){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r._fetch(e,{method:"HEAD",headers:t}));case 1:case"end":return n.stop()}}),n)})))()}_doPost(e,t={},r,n=[201],i=!1){var o=this;return me(he().mark((function a(){return he().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",o._fetch(e,{method:"POST",headers:t,noOtherHeaders:i,body:r,successResponseCodes:n}));case 1:case"end":return a.stop()}}),a)})))()}_doPatch(e,t={},r,n=[200]){var i=this;return me(he().mark((function o(){return he().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",i._fetch(e,{method:"PATCH",headers:t,body:r,successResponseCodes:n}));case 1:case"end":return o.stop()}}),o)})))()}_doPut(e,t={},r,n=[201],i=!1){var o=this;return me(he().mark((function a(){return he().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",o._fetch(e,{method:"PUT",headers:t,body:r,noOtherHeaders:i,successResponseCodes:n}));case 1:case"end":return a.stop()}}),a)})))()}_doDelete(e,t={},r=[200],n=!1){var i=this;return me(he().mark((function o(){return he().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",i._fetch(e,{method:"DELETE",headers:t,noOtherHeaders:n,successResponseCodes:r}));case 1:case"end":return o.stop()}}),o)})))()}_getResponse(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doGet(e,t);case 2:return i=n.sent,n.abrupt("return",i.json());case 4:case"end":return n.stop()}}),n)})))()}_getSharedResponse(e,t={}){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return(i=r._sharedResponses.get(e))||(i=r._getResponse(e,{headers:t}),r._sharedResponses.set(e,i),i.finally((()=>r._sharedResponses.delete(e)))),n.abrupt("return",i);case 3:case"end":return n.stop()}}),n)})))()}_getPagedResponse(e,t={}){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._getResponse(e,t);case 2:if(a=n.sent,!(null===(i=null==a?void 0:a._page)||void 0===i?void 0:i.next)||!(null===(o=null==a?void 0:a._links)||void 0===o?void 0:o[tt.PAGE])){n.next=8;break}return s=Je(a._links[tt.PAGE].href),c=s.fill(Object.assign(Object.assign({},a._page),{start:a._page.next,resource:tt.PRIMARY})),l=()=>r._getPagedResponse(c,t),n.abrupt("return",{result:a,next:l});case 8:return n.abrupt("return",{result:a});case 9:case"end":return n.stop()}}),n)})))()}_getAllPages(e,t={}){let r;const n=function(){var e=me(he().mark((function e(t){var i,o;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:if(i=e.sent,o=i&&i.result&&i.result.children){e.next=6;break}return e.abrupt("return",r);case 6:return r?r.children=r.children.concat(o):r=i.result,e.abrupt("return",i.next?n(i.next):r);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return n((()=>this._getPagedResponse(e,t)))}_getLinksFromHeaders(e){const t=e&&e.get("Link");if(!t)throw we.create(ge.UNKNOWN,"HEAD request did not return link header");const r=_t.parse(t);return r&&r.refs.reduce(((e,t)=>{var r=t.rel,n=t.uri,i=Pe(t,["rel","uri"]);return r&&(e[r]=e[r]||[],e[r].push(Object.assign({href:n},i))),e}),{})}_getETagFromHeaders(e){return e.get("ETag")}_getFetchOptionOverrides(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r._useHighPriorityRequestsIfEnabled&&r._core._environment.getValue("HIGH_PRIORITY_RAPI_REQUESTS")&&(e=e.includes("platform-cs-edge")?e:e.replace("platform-cs","platform-cs-edge"),t.headers=Object.assign(Object.assign({},t.headers||{}),{Priority:"u=1"})),(i=r._core._environment.getValue("ADMIN_MODE_ORG_ID"))&&(t.headers=Object.assign(Object.assign({},t.headers||{}),{"X-ACP-ADMIN-PRIVILEGES":i})),n.abrupt("return",{href:e,options:t});case 4:case"end":return n.stop()}}),n)})))()}}var It=(e,t,r)=>{const n=Symbol(`@retry ${t}`),i=r.value;r.value=me(he().mark((function e(o=0){var a,s,c,l,u,d;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(c=this[n])&&(clearTimeout(c),this[n]=void 0),e.prev=2,e.next=5,i.call(this);case 5:e.next=14;break;case 7:e.prev=7,e.t0=e.catch(2),l=0,u=null===(a=e.t0._additionalInfo)||void 0===a?void 0:a.response,Tt.includes(null==u?void 0:u.status)?l=this._core._environment.getValue("MAX_RETRY_INTERVAL")||2e4:(d=(null===(s=e.t0._additionalInfo)||void 0===s?void 0:s.response)?1e3*at(e.t0._additionalInfo.response.headers):0,l=Math.max(this._core._environment.getRetryInterval(o),d)),this._core._environment.log(`Retrying ${t} in ${l}ms`),this[n]=setTimeout((()=>r.value.call(this,o+1)),l);case 14:case"end":return e.stop()}}),e,this,[[2,7]])})))},At=(e,t,r)=>{const n=Symbol(`@synchronized ${t}`),i=r.value;if(!i)throw we.create(ge.BAD_REQUEST,"@synchronized decorator can only be applied to a method");r.value=me(he().mark((function e(...r){var o,a,s,c,l,u;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=null===(o=this[Fe])||void 0===o?void 0:o.get(t),s=void 0===a?"default":r[a],c=this[n]||(this[n]=new Map);case 3:if(!(l=c.get(s))){e.next=12;break}return e.prev=5,e.next=8,l;case 8:e.next=12;break;case 10:e.prev=10,e.t0=e.catch(5);case 12:if(l){e.next=3;break}case 13:return u=e=>{},c.set(s,new Promise((e=>u=e))),e.prev=15,e.next=18,i.apply(this,r);case 18:return e.abrupt("return",e.sent);case 19:return e.prev=19,c.delete(s),u(void 0),e.finish(19);case 23:case"end":return e.stop()}}),e,this,[[5,10],[15,,19,23]])})))};const Ct=6e5;class kt{constructor(e=6e5){this._ttl=e,this._keepAliveMap=new Map}static getInstance(){return kt._instance||(kt._instance=new kt(Ct)),kt._instance}static setTTL(e){if(e<0)throw we.create(ge.UNKNOWN,"TTL must be greater than or equal to 0");kt.getInstance()._ttl=e}add(e){if(0===this._ttl)return;const t=this._keepAliveMap.get(e);t&&clearTimeout(t),this._keepAliveMap.set(e,setTimeout((()=>{this._keepAliveMap.delete(e)}),this._ttl))}}function Dt(e,t,r){const n=r.value;r.value=function(...e){const t=n.apply(this,e);return t instanceof Promise?t.then((e=>kt.getInstance().add(e))).catch((()=>{})):null!==(null!=t?t:null)&&kt.getInstance().add(t),t}}const Nt=new WeakMap,Rt=new WeakMap;function Mt(e){const t=Nt.get(e);return console.assert(null!=t,"'this' is expected an Event object, but got",e),t}function jt(e){null==e.passiveListener?e.event.cancelable&&(e.canceled=!0,"function"==typeof e.event.preventDefault&&e.event.preventDefault()):"undefined"!=typeof console&&"function"==typeof console.error&&console.error("Unable to preventDefault inside passive event listener invocation.",e.passiveListener)}function Ft(e,t){Nt.set(this,{eventTarget:e,event:t,eventPhase:2,currentTarget:e,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:t.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});const r=Object.keys(t);for(let e=0;e<r.length;++e){const t=r[e];t in this||Object.defineProperty(this,t,Zt(t))}}function Zt(e){return{get(){return Mt(this).event[e]},set(t){Mt(this).event[e]=t},configurable:!0,enumerable:!0}}function Bt(e){return{value(){const t=Mt(this).event;return t[e].apply(t,arguments)},configurable:!0,enumerable:!0}}function Gt(e){if(null==e||e===Object.prototype)return Ft;let t=Rt.get(e);return null==t&&(t=function(e,t){const r=Object.keys(t);if(0===r.length)return e;function n(t,r){e.call(this,t,r)}n.prototype=Object.create(e.prototype,{constructor:{value:n,configurable:!0,writable:!0}});for(let i=0;i<r.length;++i){const o=r[i];if(!(o in e.prototype)){const e="function"==typeof Object.getOwnPropertyDescriptor(t,o).value;Object.defineProperty(n.prototype,o,e?Bt(o):Zt(o))}}return n}(Gt(Object.getPrototypeOf(e)),e),Rt.set(e,t)),t}function Ut(e){return Mt(e).immediateStopped}function Ht(e,t){Mt(e).passiveListener=t}Ft.prototype={get type(){return Mt(this).event.type},get target(){return Mt(this).eventTarget},get currentTarget(){return Mt(this).currentTarget},composedPath(){const e=Mt(this).currentTarget;return null==e?[]:[e]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return Mt(this).eventPhase},stopPropagation(){const e=Mt(this);e.stopped=!0,"function"==typeof e.event.stopPropagation&&e.event.stopPropagation()},stopImmediatePropagation(){const e=Mt(this);e.stopped=!0,e.immediateStopped=!0,"function"==typeof e.event.stopImmediatePropagation&&e.event.stopImmediatePropagation()},get bubbles(){return Boolean(Mt(this).event.bubbles)},get cancelable(){return Boolean(Mt(this).event.cancelable)},preventDefault(){jt(Mt(this))},get defaultPrevented(){return Mt(this).canceled},get composed(){return Boolean(Mt(this).event.composed)},get timeStamp(){return Mt(this).timeStamp},get srcElement(){return Mt(this).eventTarget},get cancelBubble(){return Mt(this).stopped},set cancelBubble(e){if(!e)return;const t=Mt(this);t.stopped=!0,"boolean"==typeof t.event.cancelBubble&&(t.event.cancelBubble=!0)},get returnValue(){return!Mt(this).canceled},set returnValue(e){e||jt(Mt(this))},initEvent(){}},Object.defineProperty(Ft.prototype,"constructor",{value:Ft,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.Event&&(Object.setPrototypeOf(Ft.prototype,window.Event.prototype),Rt.set(window.Event.prototype,Ft));const zt=new WeakMap;function Vt(e){return null!==e&&"object"==typeof e}function Yt(e){const t=zt.get(e);if(null==t)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return t}function Wt(e,t){Object.defineProperty(e,`on${t}`,function(e){return{get(){let t=Yt(this).get(e);for(;null!=t;){if(3===t.listenerType)return t.listener;t=t.next}return null},set(t){"function"==typeof t||Vt(t)||(t=null);const r=Yt(this);let n=null,i=r.get(e);for(;null!=i;)3===i.listenerType?null!==n?n.next=i.next:null!==i.next?r.set(e,i.next):r.delete(e):n=i,i=i.next;if(null!==t){const i={listener:t,listenerType:3,passive:!1,once:!1,next:null};null===n?r.set(e,i):n.next=i}},configurable:!0,enumerable:!0}}(t))}function Kt(e){function t(){$t.call(this)}t.prototype=Object.create($t.prototype,{constructor:{value:t,configurable:!0,writable:!0}});for(let r=0;r<e.length;++r)Wt(t.prototype,e[r]);return t}function $t(){if(!(this instanceof $t)){if(1===arguments.length&&Array.isArray(arguments[0]))return Kt(arguments[0]);if(arguments.length>0){const e=new Array(arguments.length);for(let t=0;t<arguments.length;++t)e[t]=arguments[t];return Kt(e)}throw new TypeError("Cannot call a class as a function")}zt.set(this,new Map)}$t.prototype={addEventListener(e,t,r){if(null==t)return;if("function"!=typeof t&&!Vt(t))throw new TypeError("'listener' should be a function or an object.");const n=Yt(this),i=Vt(r),o=(i?Boolean(r.capture):Boolean(r))?1:2,a={listener:t,listenerType:o,passive:i&&Boolean(r.passive),once:i&&Boolean(r.once),next:null};let s=n.get(e);if(void 0===s)return void n.set(e,a);let c=null;for(;null!=s;){if(s.listener===t&&s.listenerType===o)return;c=s,s=s.next}c.next=a},removeEventListener(e,t,r){if(null==t)return;const n=Yt(this),i=(Vt(r)?Boolean(r.capture):Boolean(r))?1:2;let o=null,a=n.get(e);for(;null!=a;){if(a.listener===t&&a.listenerType===i)return void(null!==o?o.next=a.next:null!==a.next?n.set(e,a.next):n.delete(e));o=a,a=a.next}},dispatchEvent(e){if(null==e||"string"!=typeof e.type)throw new TypeError('"event.type" should be a string.');const t=Yt(this),r=e.type;let n=t.get(r);if(null==n)return!0;const i=function(e,t){return new(Gt(Object.getPrototypeOf(t)))(e,t)}(this,e);let o=null;for(;null!=n;){if(n.once?null!==o?o.next=n.next:null!==n.next?t.set(r,n.next):t.delete(r):o=n,Ht(i,n.passive?n.listener:null),"function"==typeof n.listener)try{n.listener.call(this,i)}catch(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e)}else 3!==n.listenerType&&"function"==typeof n.listener.handleEvent&&n.listener.handleEvent(i);if(Ut(i))break;n=n.next}return Ht(i,null),function(e,t){Mt(e).eventPhase=0}(i),function(e,t){Mt(e).currentTarget=null}(i),!i.defaultPrevented}},Object.defineProperty($t.prototype,"constructor",{value:$t,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.EventTarget&&Object.setPrototypeOf($t.prototype,window.EventTarget.prototype);class qt extends $t{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){const e=Xt.get(this);if("boolean"!=typeof e)throw new TypeError("Expected 'this' to be an 'AbortSignal' object, but got "+(null===this?"null":typeof this));return e}}Wt(qt.prototype,"abort");const Xt=new WeakMap;Object.defineProperties(qt.prototype,{aborted:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(qt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});class Jt{constructor(){Qt.set(this,function(){const e=Object.create(qt.prototype);return $t.call(e),Xt.set(e,!1),e}())}get signal(){return er(this)}abort(){var e;e=er(this),!1===Xt.get(e)&&(Xt.set(e,!0),e.dispatchEvent({type:"abort"}))}}const Qt=new WeakMap;function er(e){const t=Qt.get(e);if(null==t)throw new TypeError("Expected 'this' to be an 'AbortController' object, but got "+(null===e?"null":typeof e));return t}Object.defineProperties(Jt.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(Jt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});const tr="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0;tr&&(void 0===tr.AbortController&&(tr.AbortController=Jt),void 0===tr.AbortSignal&&(tr.AbortSignal=qt));var rr={exports:{}},nr="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(nr){var ir=new Uint8Array(16);rr.exports=function(){return nr(ir),ir}}else{var or=new Array(16);rr.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),or[t]=e>>>((3&t)<<3)&255;return or}}for(var ar=[],sr=0;sr<256;++sr)ar[sr]=(sr+256).toString(16).substr(1);var cr,lr,ur=function(e,t){var r=t||0,n=ar;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")},dr=rr.exports,pr=ur,hr=0,fr=0,mr=rr.exports,gr=ur,vr=function(e,t,r){var n=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||mr)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var o=0;o<16;++o)t[n+o]=i[o];return t||gr(i)},yr=vr;yr.v1=function(e,t,r){var n=t&&r||0,i=t||[],o=(e=e||{}).node||cr,a=void 0!==e.clockseq?e.clockseq:lr;if(null==o||null==a){var s=dr();null==o&&(o=cr=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=lr=16383&(s[6]<<8|s[7]))}var c=void 0!==e.msecs?e.msecs:(new Date).getTime(),l=void 0!==e.nsecs?e.nsecs:fr+1,u=c-hr+(l-fr)/1e4;if(u<0&&void 0===e.clockseq&&(a=a+1&16383),(u<0||c>hr)&&void 0===e.nsecs&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");hr=c,fr=l,lr=a;var d=(1e4*(268435455&(c+=122192928e5))+l)%4294967296;i[n++]=d>>>24&255,i[n++]=d>>>16&255,i[n++]=d>>>8&255,i[n++]=255&d;var p=c/4294967296*1e4&268435455;i[n++]=p>>>8&255,i[n++]=255&p,i[n++]=p>>>24&15|16,i[n++]=p>>>16&255,i[n++]=a>>>8|128,i[n++]=255&a;for(var h=0;h<6;++h)i[n+h]=o[h];return t||pr(i)},yr.v4=vr;var br=yr;function _r(){return"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():br.v4()}class Er{constructor(){this._contexts=new Map}register(e){let t=this._contexts.get(e);t||(t={id:_r(),references:new Set},this._contexts.set(e,t));const r=_r();return t.references.add(r),()=>{const t=this._contexts.get(e);t&&(t.references.delete(r),0===t.references.size&&this._contexts.delete(e))}}reportObserved(e,t="change"){var r,n=ue(this._contexts);try{for(n.s();!(r=n.n()).done;){const n=le(r.value,2),i=n[0],o=`_atom_${n[1].id}_${t}`;let a=e[o];if(!a){const r=()=>a.reportChanged();a=i(`${e.constructor.name}_${t}`,(()=>{e.on(t,r)}),(()=>{e.off(t,r)})),e[o]=a}a.reportObserved()}}catch(e){n.e(e)}finally{n.f()}}}const wr=Symbol("NotFound");class xr{constructor(e,t){this._name=e,this._core=t}static isSupported(){if("undefined"==typeof window||!window.indexedDB)return!1;try{const e=window.indexedDB.open("sam_indexeddb_test",1);return e.onsuccess=()=>e.result.close(),!0}catch(e){return!1}}_transaction(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._connect();case 2:if(i=n.sent){n.next=5;break}return n.abrupt("return");case 5:return n.abrupt("return",new Promise((n=>{try{const o=i.transaction(r._name,e),a=o.objectStore(r._name),s=t(a);o.onerror=e=>{r._core._environment.error(`transaction error: ${e}`),n(void 0)},o.oncomplete=()=>{n(s)}}catch(e){r._core._environment.error(`transaction exception: ${e}`),n(void 0)}})));case 6:case"end":return n.stop()}}),n)})))()}getItem(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._transaction("readonly",function(){var t=me(he().mark((function t(r){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((t=>{const n=r.get(e);n.onsuccess=()=>{t(n.result?{value:n.result.value,expiry:n.result.expiry}:void 0)}})));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 1:case"end":return r.stop()}}),r)})))()}setItem(e,t,r){var n=this;return me(he().mark((function i(){return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",n._transaction("readwrite",(n=>{n.put({id:e,expiry:r,value:t})})));case 1:case"end":return i.stop()}}),i)})))()}deleteItem(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._transaction("readwrite",(t=>{t.delete(e)})));case 1:case"end":return r.stop()}}),r)})))()}_connect(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e._database){t.next=2;break}return t.abrupt("return",e._database);case 2:return r=e._core._environment.getValue("INDEXED_DB_VERSION"),n=window.indexedDB.open(e._name,r),t.abrupt("return",new Promise((t=>{n.onerror=r=>{e._core._environment.error(`CONNECTION_FAILED Unable to connect to IndexedDB: ${e._name}, error: ${r}`),t(void 0)},n.onupgradeneeded=()=>{const t=n.result;t.objectStoreNames.contains(e._name)&&t.deleteObjectStore(e._name),t.createObjectStore(e._name,{keyPath:"id"})},n.onsuccess=()=>{const i=e._database=n.result;i.onversionchange=t=>{e._core._environment.error(`IndexedDb version changed detected ${e._name}.${r}, ${t}`),i.close(),i.onversionchange=null,e._database=void 0},t(i)}})));case 5:case"end":return t.stop()}}),t)})))()}_clear(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._transaction("readwrite",function(){var e=me(he().mark((function e(t){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((e=>{t.clear().onsuccess=()=>{console.log("localDB cleared for",t.name),e(void 0)}})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return t.stop()}}),t)})))()}}class Lr{constructor(e,t){this._name=e,this._core=t}static isSupported(){try{return"undefined"!=typeof window&&!!window.localStorage}catch(e){return!1}}_getKey(e){return`${this._name}#${e}`}getItem(e){var t=this;return me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(n=window.localStorage.getItem(t._getKey(e)))){r.next=9;break}return r.prev=2,i=JSON.parse(n),o=i.value,a=i.expiry,r.abrupt("return",{value:o,expiry:a?new Date(a):void 0});case 7:r.prev=7,r.t0=r.catch(2);case 9:return r.abrupt("return",void 0);case 10:case"end":return r.stop()}}),r,null,[[2,7]])})))()}setItem(e,t,r){var n=this;return me(he().mark((function i(){var o;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:o=JSON.stringify({expiry:r,value:t}),window.localStorage.setItem(n._getKey(e),o);case 2:case"end":return i.stop()}}),i)})))()}deleteItem(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:window.localStorage.removeItem(t._getKey(e));case 1:case"end":return r.stop()}}),r)})))()}}class Or{constructor(e,t,r){this._userId=e,this._core=t,this._localCache=new Map,this._name="SAM.js-"+this._userId,r?this._persistentCache=r:xr.isSupported()?this._persistentCache=new xr(this._name,t):Lr.isSupported()&&(this._persistentCache=new Lr(this._name,t))}get name(){return this._name}getItem(e,t,r,n){var i=this;return me(he().mark((function o(){var a,s,c,l;return he().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if((a=i._localCache.get(e))||!i._persistentCache){o.next=5;break}return o.next=4,i._persistentCache.getItem(e);case 4:a=o.sent;case 5:if(s=r&&a&&!r(a.value),c=(null==a?void 0:a.expiry)&&a.expiry<=new Date(Date.now()),!s&&!c){o.next=11;break}return o.next=10,i.deleteItem(e);case 10:a=void 0;case 11:if(a||!t){o.next=20;break}return o.next=14,t();case 14:if(l=o.sent,!r||r(l)){o.next=17;break}throw we.create(ge.UNKNOWN,`Value for cache key ${e} is invalid: ${JSON.stringify(l)}`);case 17:return o.next=19,i.setItem(e,l,n);case 19:return o.abrupt("return",l);case 20:return o.abrupt("return",a?a.value:wr);case 21:case"end":return o.stop()}}),o)})))()}setItem(e,t,r=this._core._environment.getValue("CACHE_DEFAULT_TTL")){var n=this;return me(he().mark((function i(){var o;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(o=r?new Date(Date.now()+r):void 0,n._localCache.set(e,{value:t,expiry:o}),!n._persistentCache){i.next=5;break}return i.next=5,n._persistentCache.setItem(e,t,o);case 5:case"end":return i.stop()}}),i)})))()}deleteItem(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._localCache.delete(e),!t._persistentCache){r.next=4;break}return r.next=4,t._persistentCache.deleteItem(e);case 4:case"end":return r.stop()}}),r)})))()}}Ie([At,Ae(0,Ze)],Or.prototype,"getItem",null);const Sr="messageLogged",Tr="configChanged";class Pr extends Event{constructor(e){super("itemListStateChanged"),this.list=e}}class Ir extends Event{constructor(e,t){super(Sr),this.message=e,this.logLevel=t}}const Ar="collaborator_changed",Cr=new class extends He{constructor(){super(Ar)}},kr={SHELL_VISIBILITY:"shell:visibility",CC_INHERITED:"cc:inherited",REVIEW_SOURCE_ASSET:"review:sourceAsset",CONVERTED_TO:"convertedTo",NON_AUTO_MIGRATABLE:"ccx:nonAutoMigratableCopiedFromId",COPIED_IN_LEGACY_SPARK_TO:"ccx:copiedLegacySparkId",CC_INHERITABLE:"cc:inheritable",PROJECT_RENDITION:"project:rendition"},Dr={CC:"cc",CLASSROOM_ASSIGNMENTS:"assignment",CCX:"ccx"},Nr={HZ_DOCUMENT_METADATA:"hz:documentMetadata",CC_CREATED_FROM_UPLOAD:"cc:createdFromUpload"},Rr=Object.values(Dr).map((e=>`"${e}:"*`)),Mr=Object.values(kr).concat(Object.values(Nr)).filter((e=>{const t=e.split(":")[0];return!Object.values(Dr).includes(t)})).map((e=>'"'+e+'"')).concat(Rr),jr=Object.values(kr).map((e=>"app_metadata$$"+e)).concat(Object.values(Nr).map((e=>"api:metadata/application$$"+e))),Fr=Array.from(Object.values({COLLABORATION_METADATA:"collaboration_metadata",COLLABMETADATA_MINE:"collab_metadata#mine",REPO_CREATED_BY_CLIENT_ID:"repo:createdByClientId"}));function Zr(){return[...jr,...Fr]}const Br=D,Gr=Object.entries(D).reduce(((e,[t])=>t===Br.Ack.toString(10)?e:e|parseInt(t,10)),Br.None);function Ur(e){const t=e[tt.PRIMARY]||e["*"]||[],r=e[tt.AC_POLICY]||e["*"]||[],n=e[tt.DIRECTORY]||e["*"]||[],i=e[tt.APP_METADATA]||e["*"]||[],o=e[tt.ANNOTATIONS]||e["*"]||[];let a=Br.None;return t.forEach((e=>{switch(e){case"ack":a|=Br.Ack;break;case"read":a|=Br.Read,n.includes("write")&&(a|=Br.Duplicate);break;case"write":a|=Br.Write,n.includes("write")&&(a|=Br.Rename,a|=Br.Discard,a|=Br.Restore);break;case"delete":n.includes("write")&&(a|=Br.Delete,a|=Br.Move)}})),r.includes("write")&&(a|=Br.Share),i.includes("read")&&(a|=Br.ReadAppMetadata),o.includes("write")&&(a|=Br.WriteComment),a}const Hr={[tt.PROJECTS_PRIMARY]:["assetId","embed"],[tt.PROJECTS_COLLECTION]:["embed","limit","orderBy","start","view"],[tt.PROJECTS_CREATE]:["embed"],[tt.RESOLVE_PATH]:["path"],[tt.PROJECTS_GRADIENTS_COLLECTION]:[],[tt.PROJECTS_CONTEXT]:[],[tt.PROJECTS_CAPABILITY]:["privilege"],[tt.ORGANIZATIONS_COLLECTION]:[],[tt.PROJECTS_RECENT]:["embed","after","first"]};var zr;!function(e){e.GRADIENT_ID="/project:rendition/gradientId"}(zr||(zr={}));const Vr=I,Yr={[Vr.All]:"all",[Vr.Yours]:"yours",[Vr.SWY]:"sharedWithYou",[Vr.Admin]:"admin",[Vr.Organization]:"all",[Vr.Recent]:"all"};var Wr,Kr,$r;!function(e){e.CREATE="create"}(Wr||(Wr={})),function(e){e[e.PENDING=0]="PENDING",e[e.CAN_LEAVE=1]="CAN_LEAVE",e[e.CANNOT_LEAVE_NO_COLLABORATORS=2]="CANNOT_LEAVE_NO_COLLABORATORS",e[e.CANNOT_LEAVE_ADDRESS_BOOK_GROUP_MEMBER=3]="CANNOT_LEAVE_ADDRESS_BOOK_GROUP_MEMBER",e[e.CANNOT_LEAVE_LAST_COLLABORATOR=4]="CANNOT_LEAVE_LAST_COLLABORATOR",e[e.CANNOT_LEAVE_LAST_DIRECT_COLLABORATOR=5]="CANNOT_LEAVE_LAST_DIRECT_COLLABORATOR",e[e.CANNOT_LEAVE_IS_ADMIN_OF_PROJECT=6]="CANNOT_LEAVE_IS_ADMIN_OF_PROJECT",e[e.CANNOT_LEAVE_LAST_DIRECT_COLLAB_WITH_SHARE_PERMISSION=7]="CANNOT_LEAVE_LAST_DIRECT_COLLAB_WITH_SHARE_PERMISSION",e[e.CANNOT_LEAVE_IS_OWNER=8]="CANNOT_LEAVE_IS_OWNER"}(Kr||(Kr={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.ALLOWED=1]="ALLOWED",e[e.ADMIN_DISABLED=2]="ADMIN_DISABLED",e[e.INVALID_REPOSITORY=3]="INVALID_REPOSITORY",e[e.NO_HOME_REPOSITORY=4]="NO_HOME_REPOSITORY"}($r||($r={}));const qr="application/vnd.adobe.ffmodel+dcx",Xr=["cme:training"];var Jr,Qr,en;function tn(e,t){return e===t}function rn(e){return JSON.parse(JSON.stringify(e))}function nn(e,t,r=!1,n=!1){if(e===t)return!0;if(typeof e!=typeof t||e.constructor!==t.constructor)return!1;if(e instanceof Date)return e.toISOString()===t.toISOString();if(Array.isArray(e)){if(!n&&e.length!==t.length)return!1;if(n&&e.length>t.length)return!1;let i=e,o=t;r&&(i=e.slice(0).sort(),o=t.slice(0).sort());let a=0,s=0;for(;;){if(a===i.length)return!0;if(s===o.length)return!1;if(nn(i[a],o[s],r,n))a+=1,s+=1;else{if(!n)return!1;s+=1}}}if(e instanceof Set){if(!n&&e.size!==t.size)return!1;if(n&&e.size>t.size)return!1;var i,o=ue(e.keys());try{for(o.s();!(i=o.n()).done;){const e=i.value;if(!t.has(e))return!1}}catch(e){o.e(e)}finally{o.f()}return!0}if(e instanceof Map){if(!n&&e.size!==t.size)return!1;if(n&&e.size>t.size)return!1;var a,s=ue(e.keys());try{for(s.s();!(a=s.n()).done;){const i=a.value;if(!t.has(i))return!1;if(!nn(e.get(i),t.get(i),r,n))return!1}}catch(e){s.e(e)}finally{s.f()}return!0}if("object"==typeof e){const i=new Set(Object.keys(e)),o=new Set(Object.keys(t));if(!n&&i.size!==o.size)return!1;if(n&&i.size>o.size)return!1;var c,l=ue(i);try{for(l.s();!(c=l.n()).done;){const i=c.value;if(!o.has(i))return!1;if(!nn(e[i],t[i],r,n))return!1}}catch(e){l.e(e)}finally{l.f()}return!0}return!1}!function(e){e.MODIFY_DATE="modified_date",e.CREATE_DATE="created_date",e.NAME="name"}(Jr||(Jr={})),function(e){e.DRAFT="draft",e.READY="ready",e.PUBLISHED="published",e.UNPUBLISHED="unpublished",e.QUEUED="queued",e.TRAINING="training",e.FAILED="failed",e.CANCELLED="cancelled",e.ALL="all"}(Qr||(Qr={})),function(e){e.MODIFY_DATE="modifyDate",e.CREATE_DATE="createDate",e.NAME="name"}(en||(en={}));const on=(e,...t)=>{const r=new AbortController,n=()=>{t.forEach((e=>e.removeEventListener("abort",i)))},i=()=>{r.abort(),n()};return t.some((e=>e.aborted))?i():t.forEach((e=>e.addEventListener("abort",i))),e.signal=r.signal,n};var an;!function(e){e[e.Stage=0]="Stage",e[e.Production=1]="Production"}(an||(an={}));const sn={USER_ID:"",USER_EMAIL:"",CLIENT_ID:"",ACCESS_TOKEN:"",ENVIRONMENT:an.Production,HOST_PRODUCT_DATA:{PRODUCT_ID:"",PRODUCT_LOCATION:""},FETCH_REQUEST_TIMEOUT:6e4,ASYNC_DEFAULT_DELAY:1e3,CACHE_DEFAULT_TTL:2592e6,CACHE_KEEP_ALIVE_TTL:Ct,MIN_RETRY_INTERVAL:1e3,MAX_RETRY_INTERVAL:12e4,ONS_DOCUMENT_VISIBILITY_TIMEOUT:1e4,ONS_DEFAULT_MAX_SUBSCRIPTIONS:5,ONS_DEFAULT_MAX_ASSETS_PER_SUBSCRIPTION:100,ONS_SUBSCRIPTION_TIME_TO_LIVE:216e5,ONS_SUBSCRIPTION_RENEW_TIME:3e5,INDEXED_DB_VERSION:1,PROJECTS_LIST_UPDATE_LATENCY:3e3,PROJECTS_ITEM_UPDATE_LATENCY:1e3,CLASSROOMS_LIST_UPDATE_LATENCY:3e3,ASSETS_LIST_UPDATE_LATENCY:100,USS_LIST_UPDATE_LATENCY:3e3,VERSIONS_LIST_UPDATE_LATENCY:100,ASSET_COPY_NAME_FORMAT:"%@ copy (%d)",ASSET_CONFLICT_NAME_FORMAT:"%@ (%d)",DISABLE_ONS:!1,ENABLE_ONS_CACHE:!1,_VERSION_OVERRIDE_FOR_TEST:"",HIGH_PRIORITY_RAPI_REQUESTS:!1,LOCALE:"en-US",SESSION_TYPE:"logged-in",USE_GRAPHQL:!1,USE_AXON:!1,FEATURE_FLAGS:{"enable-x-bucket-move":!1,"move-capabilities":{"enable-CCI-CCI-move":!1}}},cn={[an.Stage]:{LABEL:"Staging",ACP_CS_HOST:"platform-cs-stage.adobe.io",SYNC_SERVICE_HOST:"acp-ss-stage.adobe.io",PROJECTS_HOST:"ccprojects-stage.adobe.io",ASSIGNMENTS_HOST:"hume-stage.adobe.io",INVITATIONS_HOST:"invitations-stage.adobe.io",TRANSFER_SERVICE_HOST:"ats-stage.adobe.io",USS_HOST:"adobesearch-stage.adobe.io",XDCE_HOST:"xdce-stage.adobe.io",REVIEW_SERVICE_HOST:"ccassetreview-stage.adobe.io",MELVILLE_HOST:"ccx-melville-stage.adobe.io",USSv3_HOST:"ax-projects-search-stage.adobe.io",PPS_HOST:"pps-stage.adobe.io",BEHANCE_HOST:"cc-api-behance-stage.adobe.io",CLASSROOMS_HOST:"edu-classrooms-stage.adobe.io",COMMENT_HOST:"comments-stage.adobe.io",AXON_HOST:"bifrost-stage-ue1.stg.aws.adobess.com",ACPC_SUPERGRAPH_HOST:"acpc-graphql-stage.adobe.io",ABS_HOST:"ab-stg.adobe-identity.com"},[an.Production]:{LABEL:"Production",ACP_CS_HOST:"platform-cs.adobe.io",SYNC_SERVICE_HOST:"acp-ss.adobe.io",PROJECTS_HOST:"ccprojects.adobe.io",ASSIGNMENTS_HOST:"hume.adobe.io",INVITATIONS_HOST:"invitations.adobe.io",TRANSFER_SERVICE_HOST:"ats.adobe.io",USS_HOST:"adobesearch.adobe.io",XDCE_HOST:"xdce.adobe.io",REVIEW_SERVICE_HOST:"ccassetreview.adobe.io",MELVILLE_HOST:"libraries.adobe.io",USSv3_HOST:"ax-projects-search.adobe.io",PPS_HOST:"pps.adobe.io",BEHANCE_HOST:"cc-api-behance.adobe.io",CLASSROOMS_HOST:"edu-classrooms.adobe.io",COMMENT_HOST:"comments.adobe.io",AXON_HOST:"axon-v1.adobess.com",ACPC_SUPERGRAPH_HOST:"acpc-graphql.adobe.io",ABS_HOST:"ab.adobe-identity.com"}},ln=e=>"string"==typeof e&&Boolean(e),un=[{key:"CLIENT_ID",validator:ln},{key:"USER_ID",validator:ln},{key:"ENVIRONMENT",validator:e=>(e=>"number"==typeof e)(e)&&e in an},{key:"HOST_PRODUCT_DATA",validator(e){if(!e)return!1;const t=e.PRODUCT_ID;return ln(t)}}];class dn{constructor(e,t,r){this._core=e,this._hooks=r,this._isTokenInvalid=!0,this.mobx=new Er;const n=Object.assign({},sn.FEATURE_FLAGS,t.FEATURE_FLAGS),i=Object.assign({},sn,t);i.FEATURE_FLAGS=n;const o=un.filter((({key:e,validator:t})=>!t(i[e])));if(o.length){const e=o.map((({key:e})=>e)).join(", ");throw we.create(ge.BAD_REQUEST,`Invalid required options: ${e}`)}if(i.ACCESS_TOKEN)this._isTokenInvalid=!1;else if(!r.refreshAccessToken)throw we.create(ge.BAD_REQUEST,"refreshAccessToken hook must be provided if ACCESS_TOKEN is not set");this._config=i,this._cache=new Or(i.USER_ID,e,r.persistentCache)}get cache(){return this._cache}getValue(e){return this._config[e]}setValue(e,t){this._config[e]=t;const r={type:Tr},n={configurationKeyName:e};this._core.dispatch(r,n)}get endpoints(){const e=this._config.ENVIRONMENT;return cn[e]}getDeviceId(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=e._config.DEVICE_ID,t.t0){t.next=5;break}return t.next=4,e.cache.getItem("DEVICE_ID",me(he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",_r());case 1:case"end":return e.stop()}}),e)}))),(e=>"string"==typeof e));case 4:t.t0=t.sent;case 5:return t.abrupt("return",t.t0);case 6:case"end":return t.stop()}}),t)})))()}getUserId(){return this.getValue("USER_ID")}_loggerEvent(e,t){this._core.listenerCount(Sr)>0&&this._core.emit(Sr,new Ir(e,t))}log(e){this._loggerEvent(e,ec.Info)}debug(e){this._loggerEvent(e,ec.Debug)}error(e){this._loggerEvent(e,ec.Err)}warn(e){this._loggerEvent(e,ec.Warn)}_refreshAccessToken(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("logged-out"===e._config.SESSION_TYPE||!e._isTokenInvalid){t.next=15;break}if(e._hooks.refreshAccessToken){t.next=3;break}return t.abrupt("return","");case 3:return e.log("Refreshing access token from host..."),t.prev=4,t.next=7,e._hooks.refreshAccessToken(e._config.ACCESS_TOKEN);case 7:e._config.ACCESS_TOKEN=t.sent,t.next=13;break;case 10:throw t.prev=10,t.t0=t.catch(4),we.wrapErrorIfNeeded(ge.AUTHORIZATION_ERROR,"Failed to refresh access token",t.t0);case 13:e._isTokenInvalid=!1,e.log("Refreshing access token "+(e._config.ACCESS_TOKEN?"successful":"unsuccessful"));case 15:return t.abrupt("return",e._config.ACCESS_TOKEN);case 16:case"end":return t.stop()}}),t,null,[[4,10]])})))()}fetch(e,t={},r=0){var n=this;return me(he().mark((function i(){var o,a,s,c,l,u,d,p,h,f,m,g,v,y,b,_,E,w,x,L;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!(null===(o=n._hooks)||void 0===o?void 0:o.fetch)){i.next=2;break}return i.abrupt("return",n._hooks.fetch(e,t));case 2:if(a=n._config.SESSION_TYPE,!n._isTokenInvalid){i.next=9;break}return i.next=6,n._refreshAccessToken();case 6:i.t0=i.sent,i.next=10;break;case 9:i.t0=n._config.ACCESS_TOKEN;case 10:if(s=i.t0,"logged-out"===a||s){i.next=13;break}throw we.create(ge.AUTHORIZATION_ERROR,"Unable to obtain access token - did you provide a refreshAccessToken hook?");case 13:return c=t.headers,l=void 0===c?{}:c,u=t.authHeader,d=t.noOtherHeaders,p=t.requestTimeoutMs,h=t.noApiKeyHeader,f=Pe(t,["headers","authHeader","noOtherHeaders","requestTimeoutMs","noApiKeyHeader"]),m="logged-out"!==a?{[u||"Authorization"]:`${"guest"===a?"AnonBearer":"Bearer"} ${s}`}:{},g=d?rn(l):Object.assign(Object.assign(Object.assign({},rn(l)),m),h?{}:{"X-Api-Key":n._config.CLIENT_ID}),v=new AbortController,y=()=>{},f.signal?y=on(f,f.signal,v.signal):f.signal=v.signal,b=p||n.getValue("FETCH_REQUEST_TIMEOUT"),_=setTimeout((()=>v.abort()),b),E=Date.now(),i.prev=23,i.next=26,fetch(e,Object.assign(Object.assign({},f),{headers:g}));case 26:if(w=i.sent,x=w.headers.get("X-Request-Id"),L=x||"no requestId",n.debug(`[${L}] ${t.method||"GET"} ${e} ${w.status} (${Date.now()-E}ms)`),clearTimeout(_),401!==w.status){i.next=39;break}if(s===n._config.ACCESS_TOKEN){i.next=36;break}return i.abrupt("return",n.fetch(e,t,r+1));case 36:if(n._isTokenInvalid=!0,!(r<1)){i.next=39;break}return i.abrupt("return",n.fetch(e,t,r+1));case 39:return i.abrupt("return",w);case 42:throw i.prev=42,i.t1=i.catch(23),n.debug(`Error - ${i.t1} (${Date.now()-E}ms)`),we.wrapErrorIfNeeded(ge.NETWORK_ERROR,`Failed network request when fetching: ${e}`,i.t1);case 46:return i.prev=46,y(),i.finish(46);case 49:case"end":return i.stop()}}),i,null,[[23,42,46,49]])})))()}getRetryInterval(e){return this.getValue(e<3?"MIN_RETRY_INTERVAL":"MAX_RETRY_INTERVAL")}}function pn(){}function hn(){hn.init.call(this)}function fn(e){return void 0===e._maxListeners?hn.defaultMaxListeners:e._maxListeners}function mn(e,t,r,n){var i,o,a,s;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((o=e._events)?(o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]):(o=e._events=new pn,e._eventsCount=0),a){if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),!a.warned&&(i=fn(e))&&i>0&&a.length>i){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,"function"==typeof console.warn?console.warn(s):console.log(s)}}else a=o[t]=r,++e._eventsCount;return e}function gn(e,t,r){var n=!1;function i(){e.removeListener(t,i),n||(n=!0,r.apply(e,arguments))}return i.listener=r,i}function vn(e){var t=this._events;if(t){var r=t[e];if("function"==typeof r)return 1;if(r)return r.length}return 0}function yn(e,t){for(var r=new Array(t);t--;)r[t]=e[t];return r}Ie([Ue],dn.prototype,"getDeviceId",null),Ie([At],dn.prototype,"_refreshAccessToken",null),pn.prototype=Object.create(null),hn.EventEmitter=hn,hn.usingDomains=!1,hn.prototype.domain=void 0,hn.prototype._events=void 0,hn.prototype._maxListeners=void 0,hn.defaultMaxListeners=10,hn.init=function(){this.domain=null,hn.usingDomains&&(void 0).active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new pn,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},hn.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},hn.prototype.getMaxListeners=function(){return fn(this)},hn.prototype.emit=function(e){var t,r,n,i,o,a,s,c="error"===e;if(a=this._events)c=c&&null==a.error;else if(!c)return!1;if(s=this.domain,c){if(t=arguments[1],!s){if(t instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(r=a[e]))return!1;var u="function"==typeof r;switch(n=arguments.length){case 1:!function(e,t,r){if(t)e.call(r);else for(var n=e.length,i=yn(e,n),o=0;o<n;++o)i[o].call(r)}(r,u,this);break;case 2:!function(e,t,r,n){if(t)e.call(r,n);else for(var i=e.length,o=yn(e,i),a=0;a<i;++a)o[a].call(r,n)}(r,u,this,arguments[1]);break;case 3:!function(e,t,r,n,i){if(t)e.call(r,n,i);else for(var o=e.length,a=yn(e,o),s=0;s<o;++s)a[s].call(r,n,i)}(r,u,this,arguments[1],arguments[2]);break;case 4:!function(e,t,r,n,i,o){if(t)e.call(r,n,i,o);else for(var a=e.length,s=yn(e,a),c=0;c<a;++c)s[c].call(r,n,i,o)}(r,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(n-1),o=1;o<n;o++)i[o-1]=arguments[o];!function(e,t,r,n){if(t)e.apply(r,n);else for(var i=e.length,o=yn(e,i),a=0;a<i;++a)o[a].apply(r,n)}(r,u,this,i)}return!0},hn.prototype.addListener=function(e,t){return mn(this,e,t,!1)},hn.prototype.on=hn.prototype.addListener,hn.prototype.prependListener=function(e,t){return mn(this,e,t,!0)},hn.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,gn(this,e,t)),this},hn.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,gn(this,e,t)),this},hn.prototype.removeListener=function(e,t){var r,n,i,o,a;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(n=this._events))return this;if(!(r=n[e]))return this;if(r===t||r.listener&&r.listener===t)0==--this._eventsCount?this._events=new pn:(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length;o-- >0;)if(r[o]===t||r[o].listener&&r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;if(1===r.length){if(r[0]=void 0,0==--this._eventsCount)return this._events=new pn,this;delete n[e]}else!function(e,t){for(var r=t,n=r+1,i=e.length;n<i;r+=1,n+=1)e[r]=e[n];e.pop()}(r,i);n.removeListener&&this.emit("removeListener",e,a||t)}return this},hn.prototype.off=function(e,t){return this.removeListener(e,t)},hn.prototype.removeAllListeners=function(e){var t,r;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=new pn,this._eventsCount=0):r[e]&&(0==--this._eventsCount?this._events=new pn:delete r[e]),this;if(0===arguments.length){for(var n,i=Object.keys(r),o=0;o<i.length;++o)"removeListener"!==(n=i[o])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=new pn,this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},hn.prototype.listeners=function(e){var t,r,n=this._events;return r=n&&(t=n[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(t):[],r},hn.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):vn.call(e,t)},hn.prototype.listenerCount=vn,hn.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};const bn="observed",_n="unobserved";class En extends hn{dispatch(e,t){return super.emit(e.type,e,this,t)}once(e,t){const r=super.once(e,t);return this._onEventListenerAdded(),r}on(e,t){if(this.listeners(e).includes(t))return this;const r=super.on(e,t);return e!==bn&&e!==_n&&(this._onEventListenerAdded(),1===this.listenerCount(e)&&this.emit(bn,e)),r}off(e,t){const r=super.off(e,t);return e!==bn&&e!==_n&&(this._onEventListenerRemoved(),0===this.listenerCount(e)&&this.emit(_n,e)),r}_onEventListenerAdded(){}_onEventListenerRemoved(){}}var wn="11.0.8";const xn=Symbol.for("com.adobe.ccac.samjs.extendclass.override_map"),Ln=Symbol.for("com.adobe.ccac.samjs.extendclass.extension_set"),On=Symbol.for("com.adobe.ccac.samjs.extendclass.observable_set"),Sn=Symbol.for("com.adobe.ccac.samjs.extendclass.emitter"),Tn=Symbol.for("com.adobe.ccac.samjs.extendclass.overridden_getters");function Pn({klass:e,core:t,extensions:r={},overrides:n={},eventMap:i={},defaultObservableEvent:o,observableMap:a={}}){const s=Object.getOwnPropertyDescriptors(e.prototype);let c=s;function l(e,t){const r=e[t];if("function"==typeof e[t])return{value:r};if(["string","boolean","number"].includes(typeof e[t]))throw new Error("Cannot use primitives for PropertyDescriptor");return r}void 0===c.on&&(c=Object.getOwnPropertyDescriptors(Object.getPrototypeOf(e.prototype))),s._core||Object.defineProperty(e.prototype,"_core",{value:t}),Object.getOwnPropertyDescriptor(e.prototype,Tn)||Object.defineProperty(e.prototype,Tn,{value:{}}),Object.getOwnPropertyDescriptor(e.prototype,Sn)||Object.defineProperties(e.prototype,{[Sn]:{get(){var e;let t;return t="function"==typeof(null===(e=c.on)||void 0===e?void 0:e.value)?{on:c.on.value.bind(this),off:c.off.value.bind(this),emit:c.trigger.value.bind(this),addListener:c.on.value.bind(this),removeListener:c.off.value.bind(this)}:new hn,Object.defineProperty(this,Sn,{value:t}),this[Sn]}},on:{value(e,...t){var r;return(null!==(r=i[e])&&void 0!==r?r:[e]).forEach((e=>this[Sn].on(e,...t))),this}},addListener:{value(...e){return this.on(...e)}},off:{value(e,...t){var r;return(null!==(r=i[e])&&void 0!==r?r:[e]).forEach((e=>this[Sn].off(e,...t))),this}},removeListener:{value(...e){return this.off(...e)}},emit:{value(...e){return this[Sn].emit(...e)}},dispatch:{value(e){return this.emit(e.type,e,this)}}});const u=new Set,d=e.prototype[Ln]||new Set;Object.keys(r).forEach((t=>{if(s[t])return;const n=l(r,t);Object.defineProperty(e.prototype,t,n),u.add(t),d.add(t)})),e.prototype[Ln]=d;const p=e.prototype[xn]||new Set;Object.keys(n).forEach((t=>{if(p.has(t))return;if(u.has(t)||d.has(t))throw new Error(`[ExtendClass] cannot override property '${t}' because it is an extension.`);if(!s[t])throw new Error(`[ExtendClass] target class does not have property '${t}' so it cannot be overridden.`);const r=l(n,t),i=s[t].value;"function"==typeof i?Object.defineProperty(e.prototype,t,{get(){return r.value.original=i.bind(this),r.value}}):(s[t].get&&(e.prototype[Tn][t]=s[t].get),Object.defineProperty(e.prototype,t,r)),p.add(t),u.add(t)})),e.prototype[xn]=p;const h={};Object.keys(a).reduce(((e,t)=>(a[t].forEach((r=>{if(e.has(r))throw new Error(`[ExtendClass] cannot have the same property (${r}) appear multiple times in observableMap`);if(u.has(r))throw new Error(`[ExtendClass] cannot make property (${r}) observable as it was defined in extensions/overrides`);e.add(r),h[r]=t})),e)),new Set),o&&Object.keys(s).filter((e=>!!s[e].get)).forEach((e=>h[e]=o));const f=e.prototype[On]||new Set;[...d,...p,...f].forEach((e=>u.add(e))),Object.entries(h).forEach((([t,r])=>{var n;(null===(n=s[t])||void 0===n?void 0:n.get)&&!u.has(t)&&(Object.defineProperty(e.prototype,t,{get(){return this._core._environment.mobx.reportObserved(this,r),s[t].get.call(this)}}),f.add(t))})),e.prototype[On]=f}function In(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function An(e,t){for(var r,n="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)r=e.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){-1===c?(n="",i=0):i=(n=n.slice(0,c)).length-1-n.lastIndexOf("/"),o=s,a=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=s,a=0;continue}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(o+1,s):n=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var Cn={resolve:function(){for(var e,t="",r=!1,n=arguments.length-1;n>=-1&&!r;n--){var i;n>=0?i=arguments[n]:(void 0===e&&(e=ce.cwd()),i=e),In(i),0!==i.length&&(t=i+"/"+t,r=47===i.charCodeAt(0))}return t=An(t,!r),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(In(e),0===e.length)return".";var t=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=An(e,!t)).length||t||(e="."),e.length>0&&r&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return In(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var r=arguments[t];In(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":Cn.normalize(e)},relative:function(e,t){if(In(e),In(t),e===t)return"";if((e=Cn.resolve(e))===(t=Cn.resolve(t)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var n=e.length,i=n-r,o=1;o<t.length&&47===t.charCodeAt(o);++o);for(var a=t.length-o,s=i<a?i:a,c=-1,l=0;l<=s;++l){if(l===s){if(a>s){if(47===t.charCodeAt(o+l))return t.slice(o+l+1);if(0===l)return t.slice(o+l)}else i>s&&(47===e.charCodeAt(r+l)?c=l:0===l&&(c=0));break}var u=e.charCodeAt(r+l);if(u!==t.charCodeAt(o+l))break;47===u&&(c=l)}var d="";for(l=r+c+1;l<=n;++l)l!==n&&47!==e.charCodeAt(l)||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(o+c):(o+=c,47===t.charCodeAt(o)&&++o,t.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(In(e),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,i=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!i){n=o;break}}else i=!1;return-1===n?r?"/":".":r&&1===n?"//":e.slice(0,n)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');In(e);var r,n=0,i=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,s=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!o){n=r+1;break}}else-1===s&&(o=!1,s=r+1),a>=0&&(c===t.charCodeAt(a)?-1==--a&&(i=r):(a=-1,i=s))}return n===i?i=s:-1===i&&(i=e.length),e.slice(n,i)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!o){n=r+1;break}}else-1===i&&(o=!1,i=r+1);return-1===i?"":e.slice(n,i)},extname:function(e){In(e);for(var t=-1,r=0,n=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===n&&(i=!1,n=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){r=a+1;break}}return-1===t||-1===n||0===o||1===o&&t===n-1&&t===r+1?"":e.slice(t,n)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+"/"+n:n}(0,e)},parse:function(e){In(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var r,n=e.charCodeAt(0),i=47===n;i?(t.root="/",r=1):r=0;for(var o=-1,a=0,s=-1,c=!0,l=e.length-1,u=0;l>=r;--l)if(47!==(n=e.charCodeAt(l)))-1===s&&(c=!1,s=l+1),46===n?-1===o?o=l:1!==u&&(u=1):-1!==o&&(u=-1);else if(!c){a=l+1;break}return-1===o||-1===s||0===u||1===u&&o===s-1&&o===a+1?-1!==s&&(t.base=t.name=0===a&&i?e.slice(1,s):e.slice(a,s)):(0===a&&i?(t.name=e.slice(1,o),t.base=e.slice(1,s)):(t.name=e.slice(a,o),t.base=e.slice(a,s)),t.ext=e.slice(o,s)),a>0?t.dir=e.slice(0,a-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};Cn.posix=Cn;var kn=Cn;class Dn{constructor(e,t){this.task=e,this.onGotOwnership=t}registerNewTask(e){let t=this;for(;t;){const r=t.next;if(!r)return void(t.next=e);t=r}}}class Nn extends En{constructor(e,t){super(),this._core=e,this.id=t}get lastKnownClientMutation(){return this._lastKnownClientMutation}updateLastKnownClientMutation(){this._lastKnownClientMutation=Date.now()}waitForMutationPropagationIfNeeded(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(n=t._lastKnownClientMutation)){r.next=6;break}if(!((i=n+e-Date.now())>0)){r.next=6;break}return r.next=6,new Promise((e=>setTimeout(e,i)));case 6:case"end":return r.stop()}}),r)})))()}get exclusiveTask(){var e;return null===(e=this._exclusiveTaskChain)||void 0===e?void 0:e.task}_setExclusiveTaskChain(e){this._exclusiveTaskChain=e,this.dispatch(Ye)}_setId(e){this.id=e}static runExclusiveTask(e,t,r){return new Promise((n=>{const i={name:e,items:t},o=()=>n(r(i).finally((()=>{var e,r=ue(t);try{for(r.s();!(e=r.n()).done;){const t=e.value,r=t._exclusiveTaskChain.next;t._setExclusiveTaskChain(r),null==r||r.onGotOwnership()}}catch(e){r.e(e)}finally{r.f()}})));let a=0;const s=()=>{0==--a&&setTimeout(o,0)};var c,l=ue(t);try{for(l.s();!(c=l.n()).done;){const e=c.value,t=new Dn(i,s),r=e._exclusiveTaskChain;r?(++a,r.registerNewTask(t)):e._setExclusiveTaskChain(t)}}catch(e){l.e(e)}finally{l.f()}0===a&&o()}))}}Ie([$e],Nn.prototype,"exclusiveTask",null);const Rn=new FinalizationRegistry((e=>{URL.revokeObjectURL(e)}));var Mn,jn,Fn;!function(e){e[e.NotStarted=0]="NotStarted",e[e.Fetching=1]="Fetching",e[e.Done=2]="Done",e[e.Error=3]="Error"}(Mn||(Mn={})),function(e){e[e.Size64=64]="Size64",e[e.Size128=128]="Size128",e[e.Size256=256]="Size256",e[e.Size512=512]="Size512",e[e.Size1024=1024]="Size1024"}(jn||(jn={})),function(e){e.PNG="image/png",e.JPEG="image/jpeg"}(Fn||(Fn={}));const Zn=jn.Size512,Bn=[jn.Size64,jn.Size128,jn.Size256,jn.Size512,jn.Size1024];class Gn extends En{constructor(e,t,r){super(),this._core=e,this._availableSizes=t,this._fetchRenditionBlob=r,this._entries=[],this._versionToken=""}_getStandardSize(e,t=this._availableSizes){const r=[...t].sort(((e,t)=>e-t)),n=r.findIndex((t=>t>=e));return-1===n?r[r.length-1]:r[n]}_findURLEntry(e,t){const r=this._getStandardSize(e);if(this._entries.length>0)return this._entries.find((e=>e.size===r&&e.type===t&&e.status!==Mn.Error))}_clearStaleEntries(e){const t=this._entries.filter((t=>t.versionToken!==e||(URL.revokeObjectURL(t.url),!1)));this._entries=t}_getEntryWithFallback(e,t){const r=this._findURLEntry(e,t);if(r)return r;const n=this._entries.map((e=>e.size));if(this._entries.length>0){const t=this._getStandardSize(e,n);return this._entries.find((e=>e.size===t))}}renditionURLStatus(e,t,r){var n;const i=this._getStandardSize(e),o=this._entries.find((e=>e.versionToken===r&&e.size>=i&&e.type===t));return null!==(n=o&&o.status)&&void 0!==n?n:Mn.NotStarted}get versionToken(){return this._versionToken}getURL(e,t,r){const n=r!==this.versionToken,i=this._getEntryWithFallback(e,t),o=this._getStandardSize(e);if(i&&i.size>=o&&!n)return i.url;const a={size:o,status:Mn.Fetching,url:"",type:t,versionToken:r},s=this._entries.find((e=>nn(e,a)||nn(e,Object.assign(Object.assign({},a),{status:Mn.Error}))));return i&&s?i.url:(this._entries.push(a),this._fetch(a),i?i.url:a.url)}_fetch(e){var t=this;return me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.size,i=e.type,o=e.versionToken,t.dispatch({type:"change"}),r.prev=2,r.next=5,t._fetchRenditionBlob(n,i);case 5:a=r.sent,o&&o!==t._versionToken&&(t._clearStaleEntries(t._versionToken),t._versionToken=o),e.size=n,e.type=i,e.url=URL.createObjectURL(a),Rn.register(t,e.url,e),e.status=Mn.Done,e.versionToken=o,t.dispatch({type:"change"}),r.next=20;break;case 16:r.prev=16,r.t0=r.catch(2),e.status=Mn.Error,t.dispatch({type:"change"});case 20:case"end":return r.stop()}}),r,null,[[2,16]])})))()}clearRenditionError(e,t,r){const n=this._getStandardSize(e),i=this._entries.findIndex((e=>e.size>=n&&e.type===t&&e.versionToken===r&&e.status===Mn.Error));-1!==i&&(this._entries.splice(i,1),this.dispatch({type:"change"}))}release(){0!==this._entries.length&&(this._entries.forEach((e=>{URL.revokeObjectURL(e.url),Rn.unregister(this)})),this._entries=[])}}const Un=/^(CON|PRN|AUX|NUL|COM[1-9]|LPT[1-9])$/i,Hn=/[\\/:*?"|><]/;function zn(e){return e.length>0&&e.length<=255&&!Un.test(e)&&!Hn.test(e)}const Vn=/^(.*\/)?(.*?)(?:[\u00A0][^.]*)?(\.[^.]*)?$/;function Yn(e,t,r){function n(e,t){let r=e.replace(/[()]/g,"\\$&");return r=r.replace("%d","([0-9]+)"),r=r.replace("%@","(.*)?"),r+=t?"(\\.[^.]*)$":"(\\.[^.]*)?$",r}const i=e.lastIndexOf(".")>e.lastIndexOf("/"),o=n(t,i),a=t.replace(/ [^ ]*$/,""),s=n(a,i);let c=e.match(o),l=!1;null===c&&(c=e.match(s),l=null!==c);let u="",d="";if(c){let e="",t="",n="";if(l){var p=le(c,3);e=p[1],t=p[2]}else{var h=le(c,4);e=h[1],n=h[2],t=h[3]}u=e,d=t,l&&0===r?r=1:l||parseInt(n)!==r||(r+=1)}else{const t=le(e.match(Vn),4);u=`${t[1]||""}${t[2]||""}`,d=t[3]}let f="";return 0!==r?(f=t.replace("%@",`${u||""}`),f=f.replace("%d",r.toString())):f=a.replace("%@",`${u||""}`),{newName:`${f||""}${d||""}`,countUsed:r}}function Wn(e,t,r,n,i){var o;let a=(null===(o=i.get(t))||void 0===o?void 0:o.countUsed)||0,s=!1;const c=[];do{const o=n?Yn(r,e._environment.getValue("ASSET_COPY_NAME_FORMAT"),a):a>0?Yn(r,e._environment.getValue("ASSET_CONFLICT_NAME_FORMAT"),a):{newName:r,countUsed:a};r=o.newName,a=o.countUsed,s=!1;var l,u=ue(i);try{for(u.s();!(l=u.n()).done;){const e=le(l.value,2),t=e[0];if(e[1].newName===r){s=!0,c.push(t);break}}}catch(e){u.e(e)}finally{u.f()}s?a++:i.set(t,o)}while(s);for(var d=0,p=c;d<p.length;d++){const e=p[d],t=i.get(e);i.set(e,{newName:t.newName,countUsed:a})}return r}const Kn=/^(.*)\^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[12345][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/;function $n(e){const t=e.match(Kn);return t?t[1]:e}const qn={"cloud-content-archive":"cloud-content","assets-archive":"assets",archive:"files"};function Xn(e,t){const r=e.split("/"),n="users"===r[1]?3:1,i=qn[r[n]];if(i)return r[n]=i,r[r.length-1]=t||$n(r[r.length-1]),r.join("/")}function Jn(e,t){const r=t.repoPath.split("/").slice(0,-1);return r.push(e),r.join("/")}function Qn(e){const t=e.assetPool,r=e.asset,n=e.session,i=e.operation,o=e.assetContext;r.isFolder&&r.repoPath.trim()&&t.forEach((e=>{var t;if(e.repoPath.startsWith(r.repoPath+"/"))switch(i.type){case"rename":if(!e.repoPath.startsWith(i.newPath)){const t=e.repoPath.replace(r.repoPath,i.newPath);o._adobeAssetUpdater.updateLocalItem(n,e,{"repo:path":t})}break;case"discard":{let i="DISCARDED";(null===(t=e.ancestorIDs)||void 0===t?void 0:t.includes(r.id))&&(i="DISCARDED_PARENT"),o._adobeAssetUpdater.updateLocalItem(n,e,{"repo:state":i});break}case"restore":{const t=i.newPath?e.repoPath.replace(r.repoPath,i.newPath):e.repoPath;o._adobeAssetUpdater.updateLocalItem(n,e,{"repo:state":"ACTIVE","repo:path":t});break}}}))}const ei=(e,t)=>t.has(e.id)?t.get(e.id):e.name,ti="application/vnd.adobecloud.directory+json",ri="application/x-sharedcloud-collection+json",ni="application/vnd.adobecloud.bulk-transfer+json",ii={"repo:principal":"all","repo:modifier":"deny","repo:privileges":["write"],"repo:relations":[tt.AC_POLICY],"repo:inheritance":"deep"},oi={"repo:principal":"all","repo:modifier":"deny","repo:privileges":["write","delete"],"repo:relations":["describedby",tt.ANNOTATIONS,tt.APP_METADATA,tt.EMBEDDED_METADATA,tt.REPO_METADATA,tt.PRIMARY,tt.RENDITION],"repo:inheritance":"deep"};function ai(e){return[{"repo:principal":{"xdm:provider":{"@id":"https://ims-na1.adobelogin.com/"},"@id":e,"@type":"https://ns.adobe.com/adobecloudplatform/ims/user"},"repo:modifier":"grant","repo:privileges":["read","write"],"repo:relations":["http://ns.adobe.com/adobecloud/rel/ac/policy"],"repo:inheritance":"deep"},{"repo:principal":{"xdm:provider":{"@id":"https://ims-na1.adobelogin.com/"},"@id":e,"@type":"https://ns.adobe.com/adobecloudplatform/ims/user"},"repo:modifier":"grant","repo:privileges":["read","write","delete"],"repo:relations":["describedby","http://ns.adobe.com/adobecloud/rel/annotations","http://ns.adobe.com/adobecloud/rel/metadata/application","http://ns.adobe.com/adobecloud/rel/metadata/embedded","http://ns.adobe.com/adobecloud/rel/metadata/repository","http://ns.adobe.com/adobecloud/rel/primary","http://ns.adobe.com/adobecloud/rel/rendition"],"repo:inheritance":"deep"}]}var si;!function(e){e.add="add",e.remove="remove",e.replace="replace"}(si||(si={}));const ci={orderDirection:"descending",orderBy:"storage:deviceModifyDate",start:"",limit:0},li={orderDirection:"descending",orderBy:"created",start:"",limit:0,version:""};function ui(e){const t={},r=e.start,n=e.limit,i=e.version;return r&&(t.start=r),n&&(t.limit=n),i&&(t.version=i),t}function di(e){return("ascending"===e.orderDirection?"+":"-")+e.orderBy}function pi(e,t){const r=Object.assign(Object.assign({},ci),t),n=ui(r);return n.orderBy=di(r),n.type=r.type,n.embed=JSON.stringify(r.embed),ot(e,tt.PAGE,n)}function hi(e,t){const r=function(e){const t=Object.assign(Object.assign({},li),e),r=ui(t);return r.orderBy=di(t),r.resource=tt.VERSION,r}(t);return ot(e,tt.PAGE,r)}class fi extends Pt{constructor(e,t,r,n){super(e._core),this._rapi=e,this._assetId=t,this._links=r,this._etag=n,this._useHighPriorityRequestsIfEnabled=!0}get assetID(){return this._assetId}get links(){return this._links}get etag(){return this._etag}getChildAssets(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=pi(t._links,e),r.next=3,t._doGet(n,{headers:{"Cache-Control":"no-cache, no-store, max-age=0"}});case 3:return i=r.sent,r.abrupt("return",i.json());case 5:case"end":return r.stop()}}),r)})))()}getRepoMetadata(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=ot(e._links,tt.REPO_METADATA),t.next=3,e._doGet(r);case 3:return n=t.sent,t.next=6,n.json();case 6:return i=t.sent,e._etag=i["repo:etag"],t.prev=8,o=e._rapi.getAssetResolveByIdHref(e._assetId),t.next=12,e._core._environment.cache.setItem(o,{links:e._links,etag:e._etag});case 12:t.next=16;break;case 14:t.prev=14,t.t0=t.catch(8);case 16:return t.abrupt("return",i);case 17:case"end":return t.stop()}}),t,null,[[8,14]])})))()}getEmbeddedMetadata(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=ot(e._links,tt.EMBEDDED_METADATA),t.prev=1,t.next=4,e._getResponse(r,{headers:{Accept:Qe}});case 4:return n=t.sent,t.abrupt("return",n);case 8:if(t.prev=8,t.t0=t.catch(1),t.t0.code!==ge.NOT_FOUND){t.next=12;break}return t.abrupt("return",{});case 12:throw t.t0;case 13:case"end":return t.stop()}}),t,null,[[1,8]])})))()}getAppMetadata(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=ot(e._links,tt.APP_METADATA),t.prev=1,t.next=4,e._getResponse(r);case 4:return n=t.sent,t.abrupt("return",n);case 8:if(t.prev=8,t.t0=t.catch(1),t.t0.code!==ge.NOT_FOUND){t.next=12;break}return t.abrupt("return",{});case 12:throw t.t0;case 13:case"end":return t.stop()}}),t,null,[[1,8]])})))()}patchAppMetadata(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=ot(t._links,tt.APP_METADATA),r.next=3,t._doPatch(n,{"Content-Type":et},JSON.stringify(e),[204]);case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}}),r)})))()}getEffectivePermissions(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=ot(e._links,tt.AC_EFFECTIVE),t.next=3,e._getResponse(r);case 3:return n=t.sent,t.abrupt("return",Ur(n));case 5:case"end":return t.stop()}}),t)})))()}getAssetPolicy(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=ot(e._links,tt.AC_POLICY),t.next=3,e._doGet(r);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})))()}getManifest(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=ot(e._links,tt.MANIFEST),n={},t.next=4,e._doGet(r,n);case 4:return i=t.sent,t.next=7,i.json();case 7:return o=t.sent,t.abrupt("return",{manifest:o,etag:i.headers.get("ETag")});case 9:case"end":return t.stop()}}),t)})))()}getVersions(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=hi(t._links,e),r.next=3,t._doGet(n);case 3:return i=r.sent,r.abrupt("return",i.json());case 5:case"end":return r.stop()}}),r)})))()}getLastAccessed(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=ot(e._links,tt.PERUSER_METADATA),t.next=3,e._doGet(r,{headers:{"Content-Type":Qe}});case 3:return n=t.sent,t.next=6,n.json();case 6:return i=t.sent,o=null==i?void 0:i["shell:lastAccessDate"],t.abrupt("return",o?new Date(o):void 0);case 9:case"end":return t.stop()}}),t)})))()}restoreVersionManifest(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doGet(e,{});case 2:return n=r.sent,r.next=5,n.json();case 5:return i=r.sent,o=ot(t.links,tt.MANIFEST),r.next=9,t._doPut(o,{"Content-Type":"application/vnd.adobe.dcx-manifest+json","If-Match":"*"},JSON.stringify(i),[204]);case 9:case"end":return r.stop()}}),r)})))()}patchVersion(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=ot(t.links,tt.VERSION),r.next=3,t._doPatch(n,{"Content-Type":et},JSON.stringify(e),[204]);case 3:return i=r.sent,r.abrupt("return",i);case 5:case"end":return r.stop()}}),r)})))()}createFolder(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=ot(t._links,tt.CREATE,{path:e,intermediates:"true",respondWith:"http://ns.adobe.com/adobecloud/rel/metadata/repository"}),r.next=3,t._doPost(n,{"Content-Type":ti},void 0,[200,201]);case 3:if(201!==(i=r.sent).status){r.next=10;break}return r.next=7,i.json();case 7:r.t0=r.sent,r.next=11;break;case 10:r.t0=void 0;case 11:return r.abrupt("return",r.t0);case 12:case"end":return r.stop()}}),r)})))()}_uploadIndividualBlock(e,t,r,n){var i=this;return me(he().mark((function o(){var a;return he().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a={},o.next=3,i._doPut(e,a,t.slice(r,n),[200],!0);case 3:return o.abrupt("return",o.sent);case 4:case"end":return o.stop()}}),o)})))()}_blockUpload(e,t,r){var n=this;return me(he().mark((function i(){var o,a,s,c,l,u,d,p,h,f,m,g,v,y;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=ot(n._links,tt.BLOCK_INITIALIZE),a=JSON.stringify({"repo:size":e.size,"repo:blocksize":6e6,"repo:reltype":tt.PRIMARY,"dc:format":r}),i.next=4,n._doPost(o,{"Content-Type":ni},a,[200]);case 4:return s=i.sent,i.next=7,s.json();case 7:for(c=i.sent,l=c["repo:blocksize"],u=c._links[tt.BLOCK_TRANSFER],d=ot(c._links,tt.BLOCK_FINALIZE,{path:t,respondWith:tt.REPO_METADATA}),p=[],h=0,f=0;f<e.size;h++,f+=l)m=u[h].href,g=Math.min(e.size,f+l),p.push([m,e,f,g]);v=3;case 14:if(!p.length){i.next=19;break}return i.next=17,Promise.all(p.splice(0,v).map((e=>n._uploadIndividualBlock(...e))));case 17:i.next=14;break;case 19:return i.next=21,n._doPost(d,{"Content-Type":ni},JSON.stringify(c),[200,201]);case 21:return y=i.sent,i.abrupt("return",y.json());case 23:case"end":return i.stop()}}),i)})))()}importFile(e,t,r){var n=this;return me(he().mark((function i(){var o,a,s;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(c=n._links,o=nt(c,tt.BLOCK_INITIALIZE)["repo:maxsingletransfersize"]||9437184,!(e.size>=o)){i.next=3;break}return i.abrupt("return",n._blockUpload(e,t,null!=r?r:e.type));case 3:return a=ot(n._links,tt.CREATE,{path:t,respondWith:tt.REPO_METADATA}),i.next=6,n._doPost(a,{"Content-Type":null!=r?r:e.type},e,[200,201]);case 6:if(201!==(s=i.sent).status){i.next=13;break}return i.next=10,s.json();case 10:i.t0=i.sent,i.next=14;break;case 13:i.t0=void 0;case 14:return i.abrupt("return",i.t0);case 15:case"end":return i.stop()}var c}),i)})))()}getBlockDownloadURL(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doGet(e);case 2:return n=r.sent,r.next=5,n.json();case 5:if(null==(i=r.sent)?void 0:i.href){r.next=8;break}throw we.create(ge.INTERNAL_ERROR,"Cannot get block download URL");case 8:return r.abrupt("return",i.href);case 9:case"end":return r.stop()}}),r)})))()}getContent(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=ot(e._links,tt.PRIMARY),t.next=3,e._doGet(r,{});case 3:return n=t.sent,t.next=6,n.blob();case 6:return t.t0=t.sent,t.t1=e._getETagFromHeaders(n.headers),t.abrupt("return",{content:t.t0,etag:t.t1});case 9:case"end":return t.stop()}}),t)})))()}commitFileChanges(e,t){var r=this;return me(he().mark((function n(){var i,o,a;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=ot(r._links,tt.PRIMARY),o={"Content-type":e.type},t&&(o["If-Match"]=t),n.next=5,r._doPut(i,o,e,[200,201,204]);case 5:if(201!==(a=n.sent).status){n.next=12;break}return n.next=9,a.json();case 9:n.t0=n.sent,n.next=13;break;case 12:n.t0=void 0;case 13:return n.t1=n.t0,n.t2=r._getETagFromHeaders(a.headers),n.abrupt("return",{MetaData:n.t1,eTag:n.t2});case 16:case"end":return n.stop()}}),n)})))()}restore(e,t=0){var r=this;return me(he().mark((function n(){var i,o,a,s,c;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i={op:"restore",target:{"repo:assetId":r.assetID},name:e},n.prev=1,n.next=4,r.runOperation(i);case 4:return o=n.sent.asset,n.abrupt("return",o);case 8:if(n.prev=8,n.t0=n.catch(1),n.t0.code!==ge.CONFLICT){n.next=13;break}return a=Yn(e,r._core._environment.getValue("ASSET_CONFLICT_NAME_FORMAT"),t),s=a.newName,c=a.countUsed,n.abrupt("return",r.restore(s,c));case 13:throw n.t0;case 14:case"end":return n.stop()}}),n,null,[[1,8]])})))()}discard(){var e=this;return me(he().mark((function t(){var r,n,i;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={op:"discard",target:{"repo:assetId":e.assetID}},t.next=3,e.runOperation(r);case 3:return n=t.sent,i=n.asset,t.abrupt("return",i);case 6:case"end":return t.stop()}}),t)})))()}patchLastAccessed(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=ot(t._links,tt.PERUSER_METADATA),(i=[]).push({op:"add",value:e.toISOString(),path:"/shell:lastAccessDate"}),r.next=5,t._doPatch(n,{"Content-Type":et,"X-Metadata-Source":"pls"},JSON.stringify(i),[204]);case 5:return r.abrupt("return",r.sent);case 6:case"end":return r.stop()}}),r)})))()}runOperation(e){var t=this;return me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._rapi.runOperation(e);case 2:if(n=r.sent,i=n[0],o=i.asset,a=i.error,o||a){r.next=8;break}throw we.wrapErrorIfNeeded(ge.UNKNOWN,"Missing Asset metadata in operation response",a);case 8:if(!a){r.next=10;break}throw a;case 10:return r.abrupt("return",n[0]);case 11:case"end":return r.stop()}}),r)})))()}getRendition(e,t){var r=this;return me(he().mark((function n(){var i,o,a;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=ot(r._links,tt.RENDITION,{size:String(e),type:t}),(o=new URL(i)).searchParams.append("etag",r.etag),n.next=5,r._doGet(o.toString());case 5:return a=n.sent,n.next=8,a.blob();case 8:return n.abrupt("return",n.sent);case 9:case"end":return n.stop()}}),n)})))()}getCustomRendition({size:e=Zn,type:t=Fn.PNG,urlTemplateOptions:r={},additionalHeaders:n}){var i=this;return me(he().mark((function o(){var a;return he().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a=ot(i._links,tt.RENDITION,Object.assign({size:String(e),type:t},r)),o.next=3,i._doGet(a,{headers:n});case 3:return o.abrupt("return",o.sent);case 4:case"end":return o.stop()}}),o)})))()}getAllCustomRenditions({type:e,urlTemplateOptions:t={},additionalHeaders:r}){var n=this;return me(he().mark((function i(){var o;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=ot(n._links,tt.RENDITION,e?Object.assign({type:e},t):Object.assign({},t)),i.next=3,n._doGet(o,{headers:r});case 3:return i.abrupt("return",i.sent);case 4:case"end":return i.stop()}}),i)})))()}setEditingInheritanceRestricted(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l,u,d;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=r._core._environment.getValue("USER_ID"),!e){n.next=8;break}return o=[{op:"add",path:"/repo:acl/0",value:oi},{op:"add",path:"/repo:acl/1",value:ii}],t&&(a=ai(i),o.push({op:"add",path:"/repo:acl/2",value:a[0]}),o.push({op:"add",path:"/repo:acl/3",value:a[1]})),n.next=6,r._patchACL(o);case 6:n.next=20;break;case 8:return n.next=10,r._getEditingInheritanceRestrictedInfo();case 10:if(s=n.sent,c=s.policyResponse,l=s.denyEditAceIndex,u=s.denyShareAceIndex,!(l<0||u<0)){n.next=16;break}return n.abrupt("return");case 16:return(d=[{op:"remove",path:`/repo:acl/${u}`},{op:"remove",path:`/repo:acl/${l}`}]).sort(((e,t)=>e.path<t.path?0:-1)),n.next=20,r._patchACL(d,c.headers.get("etag")||void 0);case 20:case"end":return n.stop()}}),n)})))()}_patchACL(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=ot(r._links,tt.AC_POLICY),n.next=3,r._doPatch(i,{"Content-Type":"application/json-patch+json","If-Match":t},JSON.stringify(e),[200]);case 3:case"end":return n.stop()}}),n)})))()}getEditingInheritanceRestricted(){var e=this;return me(he().mark((function t(){var r,n,i;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._getEditingInheritanceRestrictedInfo();case 2:return r=t.sent,n=r.denyEditAceIndex,i=r.denyShareAceIndex,t.abrupt("return",n>=0&&i>=0);case 6:case"end":return t.stop()}}),t)})))()}_getEditingInheritanceRestrictedInfo(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getAssetPolicy();case 2:return r=t.sent,t.next=5,r.json();case 5:return n=t.sent["repo:acl"],i=n.find((e=>nn(oi,e,!0,!0))),o=n.find((e=>nn(ii,e,!0,!0))),t.abrupt("return",{policyResponse:r,denyEditAceIndex:n.indexOf(i),denyShareAceIndex:n.indexOf(o)});case 9:case"end":return t.stop()}}),t)})))()}}const mi=new Set;function gi(e,t){mi.has(e)||(console.warn("One time warning (%s): %s",e,t),mi.add(e))}class vi{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}}const yi=Symbol("$LAZY_LOAD_MANAGERS");var bi;!function(e){e[e.NotLoaded=1]="NotLoaded",e[e.Pending=2]="Pending",e[e.Loading=3]="Loading",e[e.Loaded=4]="Loaded",e[e.Error=5]="Error"}(bi||(bi={}));class _i{constructor({target:e,event:t,fetchData:r,prefetchTimeout:n=100,retryErrorTimeout:i=Number.POSITIVE_INFINITY,cancelFetchData:o}){this._loadStatus=bi.NotLoaded,this._prefetchTimeout=100,this._retryErrorTimeout=Number.POSITIVE_INFINITY,this._retriesRemaining=5,this._onBecomeUnobserved=e=>{e===this._event.type&&(this._loadStatus!==bi.Pending?this._loadStatus===bi.Loading&&this._cancelFetchData&&this._cancelFetchData.call(this._target)&&this.setLoadStatus(bi.NotLoaded):this._prefetchResolve(!0))},this._target=e,this._event=t,this._fetchData=r,this._prefetchTimeout=n,this._retryErrorTimeout=i,this._cancelFetchData=o,this._target.on(_n,this._onBecomeUnobserved)}static manageLazyLoading(e,t){const r=e;r[yi]=r[yi]||new Map,t.forEach((e=>{const t=new _i(Object.assign({target:r},e));r[yi].set(e.event,t)}))}static getManager(e,t){const r=e[yi];let n;n="string"==typeof t?[...r.keys()].find((e=>e.type===t)):t;const i=r.get(n);if(!i)throw new Error(`Target does not have a LazyLoadManager for event ${t}`);return i}static hasManager(e,t){try{return void 0!==_i.getManager(e,t)}catch(e){return!1}}static setLoadStatus(e,t,r){_i.getManager(e,t).setLoadStatus(r)}static getLoadStatus(e,t){return _i.getManager(e,t).loadStatus}static fetchIfNeeded(e,t){return _i.getManager(e,t).fetchIfNeeded()}static updatedExternally(e,t){_i.getManager(e,t).updatedExternally()}static updatedByItemUpdater(e,t){_i.getManager(e,t).updatedByItemUpdater()}get loadStatus(){return this._loadStatus}_prefetchDelay(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((t=>{e._prefetchResolve=t,e.setLoadStatus(bi.Pending),setTimeout((()=>{t(!1),e._prefetchResolve=void 0}),e._prefetchTimeout)})));case 1:case"end":return t.stop()}}),t)})))()}onPropertyAccess(){this.fetchIfNeeded()}fetchIfNeeded(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._loadStatus!==bi.NotLoaded){t.next=21;break}if(e._pendingFetchPromise=new vi,!e._prefetchTimeout){t.next=10;break}return t.next=5,e._prefetchDelay();case 5:if(!t.sent){t.next=10;break}return e.setLoadStatus(bi.NotLoaded),e._pendingFetchPromise.resolve(),t.abrupt("return");case 10:return t.prev=10,e._loadStatus=bi.Loading,t.next=14,e._fetchData.call(e._target);case 14:e._loadStatus===bi.Loading&&(e.setLoadStatus(bi.Loaded),e._pendingFetchPromise.resolve()),t.next=21;break;case 17:t.prev=17,t.t0=t.catch(10),e.setLoadStatus(bi.Error),e._pendingFetchPromise.resolve();case 21:return t.next=23,null===(r=e._pendingFetchPromise)||void 0===r?void 0:r.promise;case 23:case"end":return t.stop()}}),t,null,[[10,17]])})))()}setLoadStatus(e){this._loadStatus!==e&&(this._loadStatus=e,e===bi.NotLoaded||e===bi.Loaded?(e===bi.Loaded&&(this._retriesRemaining=5),this._target.dispatch(this._event)):e===bi.Error&&this._retryErrorTimeout<Number.POSITIVE_INFINITY&&this._retriesRemaining>0&&setTimeout((()=>{this._retriesRemaining--,this._loadStatus===bi.Error&&this.setLoadStatus(bi.NotLoaded)}),this._retryErrorTimeout))}updatedExternally(){this._loadStatus!==bi.Loaded?this.setLoadStatus(bi.Loaded):this._target.dispatch(this._event)}updatedByItemUpdater(){this._loadStatus===bi.Pending&&this._prefetchResolve(!0),this._loadStatus=bi.Loaded}}function Ei(e,t){return function(r,n,i){if(i.get){const t=i.get;i.get=function(){const r=_i.getManager(this,e);if(!r)throw new Error(`@lazyLoaded target is missing LazyLoadManager for event ${e.type}. Use LazyLoadManager.manageLazyLoading() in constructor to configure`);return r.onPropertyAccess(),t.call(this)}}else{if("function"!=typeof i.value)throw new Error("@lazyLoaded only works with getters and methods");{const t=i.value,r=function(...r){const n=_i.getManager(this,e);if(!n)throw new Error(`@lazyLoaded target is missing LazyLoadManager for event ${e.type}. Use LazyLoadManager.manageLazyLoading() in constructor to configure`);return n.onPropertyAccess(),t.apply(this,r)};i.value=r}}t=[].concat(t),Ke(e,t)(r,n,i)}}class wi extends Nn{constructor(e,t){super(e,t),this._collaboratorsArray=[],this._shareFlagsAreDirty=!0,this._itemPoolDelegate={onItemsUpdated:()=>{this._setCollaboratorData(),_i.updatedExternally(this,Cr)}},_i.manageLazyLoading(this,[{event:Cr,fetchData:this._queueCollaborators,prefetchTimeout:0,cancelFetchData:this._dequeueCollaborators}])}get isShared(){return this._fetchShareFlagsIfNeeded(),this._isShared}get isSharedWithYouAsset(){return this._fetchShareFlagsIfNeeded(),this._isSharedWithYouAsset}get directCollaboratorCount(){return this._fetchShareFlagsIfNeeded(),this._directCollaboratorCount}get isPublicLink(){return this._fetchShareFlagsIfNeeded(),this._isPublicLink}get _isSWYAsset_NoLazyLoad(){return this._isSharedWithYouAsset}get _isShared_NoLazyLoad(){return this._isShared}get _directCollaboratorCount_NoLazyLoad(){return this._directCollaboratorCount}get _isPublicLink_NoLazyLoad(){return this._isPublicLink}get isSharedWithMe(){return gi("isSharedWithMe","isSharedWithMe is deprecated and will be removed on or after 2024-10-01. Please use isSharedWithYouAsset instead."),this.isSharedWithYouAsset}get _isCollaboratorDataLoaded(){return _i.getLoadStatus(this,Cr.type)===bi.Loaded}_fetchShareFlagsIfNeeded(){this._shareFlagsAreDirty&&_i.fetchIfNeeded(this,Cr)}_queueCollaborators(){return this._core.collaborationContext._collaboratorRequestQueue.enqueue(this)}_dequeueCollaborators(){return this._core.collaborationContext._collaboratorRequestQueue.dequeue(this)}get collaboratorArray(){return this._collaboratorsArray}get collaborators(){return this._collaboratorSources||(this._collaboratorSources=this._core.collaborationContext._getCollaboratorSources(this.id),this._collaboratorSources.collaboratorPool.addDelegate(this._itemPoolDelegate,"context")),this._collaboratorSources.collaboratorSource}removeCollaborator(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._core.collaborationContext._removeCollaborator(t.id,e);case 2:case"end":return r.stop()}}),r)})))()}removeCurrentUserFromCollaborationList(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._core.collaborationContext._removeCurrentUserFromCollaborationList(e));case 1:case"end":return t.stop()}}),t)})))()}createPublicLink(e=!0){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n={recipient:"all",role:"viewer",canShare:!1,canComment:e},t._core.collaborationContext._addCollaborators(t.id,[n]);case 2:case"end":return r.stop()}}),r)})))()}removePublicLink(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._isCollaboratorDataLoaded){t.next=5;break}return t.next=3,e._queueCollaborators();case 3:return t.next=5,new Promise((t=>{e.on(Ar,(()=>{e._isCollaboratorDataLoaded&&t()}))}));case 5:(r=e.collaboratorArray.find((e=>"all"===e.id)))&&e._core.collaborationContext._removeCollaborator(e.id,r);case 7:case"end":return t.stop()}}),t)})))()}get invitedCollaborators(){return this._collaboratorSources||(this._collaboratorSources=this._core.collaborationContext._getCollaboratorSources(this.id)),this._collaboratorSources.invitedCollaboratorSource}removeInvitedCollaborator(e){return this._core.collaborationContext.removeInvitedCollaborator(this.id,e)}_setCollaboratorData(e){this._collaboratorSources=this._core.collaborationContext._getCollaboratorSources(this.id);const t=this._collaboratorSources.collaboratorPool;this._collaboratorsArray=null!=e?e:t.toArray(),this._shareFlagsAreDirty=!1,this._isShared=this._collaboratorsArray.some((e=>e.isDirect));const r=this._collaboratorsArray.some((e=>e.isDirect&&e.isCurrentUser));this._isSharedWithYouAsset=this._isSWYGroup||r,this._isPublicLink=this._collaboratorsArray.some((e=>"all"===e.id)),this._directCollaboratorCount=this._collaboratorsArray.filter((e=>e.isDirect)).length}}Ie([$e(Cr,"_isShared")],wi.prototype,"isShared",null),Ie([$e(Cr,"_isSharedWithYouAsset")],wi.prototype,"isSharedWithYouAsset",null),Ie([$e(Cr,"_directCollaboratorCount")],wi.prototype,"directCollaboratorCount",null),Ie([$e(Cr,"_isPublicLink")],wi.prototype,"isPublicLink",null),Ie([Ei(Cr,"_collaboratorsArray")],wi.prototype,"collaboratorArray",null),Ie([Ue],wi.prototype,"collaborators",null),Ie([Ue],wi.prototype,"invitedCollaborators",null);class xi extends En{constructor(e){super(),this._core=e}}class Li extends hn{constructor(e){super(),this._core=e}}class Oi extends xi{constructor(e){super(e),this._core=e,this._isLoaded=!1}load(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._loadData();case 2:e._isLoaded=!0,e.emit("change");case 4:case"end":return t.stop()}}),t)})))()}unload(){this._data=void 0,this._isLoaded=!1,this.emit("change")}_mergeData(e){this._data=Object.assign(Object.assign({},this._data||{}),e||{}),this.emit("change")}get isLoaded(){return this._isLoaded}get data(){return this._data}_setData(e){this._data=e,this._isLoaded=!0,this.emit("change")}}Ie([$e],Oi.prototype,"isLoaded",null),Ie([$e],Oi.prototype,"data",null);class Si extends Oi{constructor(e,t){super(e),this._core=e,this._parent=t}_loadData(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._parent._ensureLink(tt.EMBEDDED_METADATA);case 2:return t.next=4,e._parent._getAssetInterface();case 4:return r=t.sent,t.next=7,r.getEmbeddedMetadata();case 7:e._data=t.sent;case 8:case"end":return t.stop()}}),t)})))()}}class Ti extends Oi{constructor(e,t){super(e),this._core=e,this._parent=t}_loadData(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._parent._ensureLink(tt.APP_METADATA);case 2:return t.next=4,e._parent._getAssetInterface();case 4:return r=t.sent,t.next=7,r.getAppMetadata();case 7:e._data=t.sent;case 8:case"end":return t.stop()}}),t)})))()}_patch(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._parent._ensureLink(tt.APP_METADATA);case 2:return r.next=4,t._parent._getAssetInterface();case 4:return n=r.sent,r.next=7,n.patchAppMetadata(e);case 7:case"end":return r.stop()}}),r)})))()}}class Pi extends Oi{constructor(e,t){super(e),this._core=e,this._parent=t,this._etag=""}get etag(){return this._etag}_loadData(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._parent._getAssetInterface();case 2:return r=t.sent,t.next=5,r.getManifest();case 5:n=t.sent,i=n.manifest,o=n.etag,e._data=i,e._etag=o||"";case 10:case"end":return t.stop()}}),t)})))()}}Ie([$e],Pi.prototype,"etag",null);const Ii=["file","composite","directory","entity","element"],Ai=["ACTIVE","DISCARDED","DISCARDED_PARENT"];var Ci,ki;!function(e){e[e.None=0]="None",e[e.CollaboratorMaybeEditing=1]="CollaboratorMaybeEditing"}(Ci||(Ci={})),function(e){e[e.DifferentOwner=1]="DifferentOwner",e[e.PermissionDeniedDestination=2]="PermissionDeniedDestination",e[e.PermissionDeniedSource=3]="PermissionDeniedSource",e[e.NotAFolder=4]="NotAFolder",e[e.CrossBucketMoveDisabled=5]="CrossBucketMoveDisabled"}(ki||(ki={}));class Di extends class extends class{constructor(e){this._propertyUpdater=e.propertyUpdater,this._changeEvent=e.changeEvent||Ye,this._changeEventsMap=e.changeEventMap}updateLocalItem(e,t,r){if(!e.checkIfItemAllowsMutations(t))return;e.ensureItemIsAdded(t);const n=this._propertyUpdater.update(t,r),i=new Set(n.map((e=>{var r,n,i;return null!==(i=null!==(n=null===(r=this._changeEventsMap)||void 0===r?void 0:r.get(e))&&void 0!==n?n:function(e,t){var r;return null===(r=e[We]||void 0)||void 0===r?void 0:r.get(t)}(t,e))&&void 0!==i?i:this._changeEvent})));n.length&&e.queueChangedItem(t,[...i])}}{constructor(e){super(e),this._localItemType=e.localItemType,this._getRemoteId=e.getRemoteId,this._getAlternateId=e.getAlternateId||(()=>{})}updateRemoteItem(e,t){const r=this._getRemoteId(t),n=this._getAlternateId(t);if(!r&&!n)throw we.create(ge.BAD_REQUEST,"An ID or alternate ID must exist on the remote item structure.");let i=r?e.getItemById(r):void 0;return!i&&n&&(i=e.getItemById(n),i&&r&&e.reindexItem(i,n,r)),i||(i=new(0,this._localItemType)(e._core,r||n)),this.updateLocalItem(e,i,t),i}updateRemoteItems(e,t){if(!Array.isArray(t))throw we.create(ge.BAD_REQUEST,"Invalid data received, expected list of items.");return t.map((t=>this.updateRemoteItem(e,t)))}}{constructor(e){super(Object.assign({getRemoteId:t=>t[e.remoteIdProperty]},e))}}const Ni=Symbol("NotFound"),Ri={string:{parse:e=>null==e?void 0:String(e),isEqual:tn},number:{parse:Number,isEqual:tn},date:{parse:e=>{if(null!==e)return void 0===e||e instanceof Date?e:new Date(String(e))},isEqual:(e,t)=>(null==e?void 0:e.toISOString())===(null==t?void 0:t.toISOString())},date_as_number:{parse:e=>void 0===e?void 0:new Date(Number(e)),isEqual:(e,t)=>(null==e?void 0:e.toISOString())===(null==t?void 0:t.toISOString())},boolean:{parse:e=>!0===e||"string"==typeof e&&"true"===e.toLowerCase()||"number"==typeof e&&Boolean(e),isEqual:tn},object:{parse:e=>void 0!==e?rn(e):void 0,isEqual:nn},object_subset:{parse:rn,isEqual(e,t){if(e===t)return!0;if(void 0===e)return!1;if(!t)return!0;const r=Object.keys(t).reduce(((t,r)=>(t[r]=e[r],t)),{});return nn(r,t)}}},Mi=/([^.[]+)|(\[[^\]]+\])/g;function ji(e){const t=function(e){const t=e.match(Mi)||[];if(!t.length)throw we.create(ge.BAD_REQUEST,`Un-parseable key ${e}`);const r=t.map((e=>"["===e[0]&&"]"===e.slice(-1)?e.slice(1,-1):e));return r}(e);return e=>{let r=e;var n,i=ue(t);try{for(i.s();!(n=i.n()).done;){const e=n.value;if(!Object.prototype.hasOwnProperty.call(r,e))return Ni;r=r[e]}}catch(e){i.e(e)}finally{i.f()}return r}}function Fi(e){if(e.includes("."))throw we.create(ge.BAD_REQUEST,`Cannot use dot delimiter (${e}) without a custom setter`);return(t,r)=>{r[e]=t}}function Zi(e){if(e.includes("."))throw we.create(ge.BAD_REQUEST,`Cannot use dot delimiter (${e}) without a custom setter`);return(t,r)=>{var n;r[e]=Object.assign(Object.assign({},null!==(n=r[e])&&void 0!==n?n:{}),null!=t?t:{})}}function Bi(e,t,r){if(!t)return r?Ri.object:Ri.string;if("string"==typeof t){if(!Object.prototype.hasOwnProperty.call(Ri,t))throw we.create(ge.BAD_REQUEST,`Unexpected type format ${t} for ${e} property updater.`);return Ri[t]}return t}function Gi(e,t,r,n){return!(r&&!r.includes(n)&&(e._core._environment.error(`Invalid value ${n} passed for the ${t} property. Expected one of ${r.join(", ")}.`),1))}function Ui(e,t){const r=function(e,t){if("string"==typeof t)return{name:e,format:Ri.string,get:ji(t),set:Fi(e),isArray:!1};const r=t.name,n=t.format,i=t.choices,o=t.get,a=t.set,s=t.isArray,c=t.mapByKey,l=null!=r?r:e;return{name:l,format:Bi(l,n,c),choices:i,mapByKey:c,isArray:null!=s&&s,get:null!=o?o:ji(null!=r?r:e),set:null!=a?a:"object_subset"===n?Zi(e):Fi(e)}}(e,t),n=r.name,i=r.format,o=r.choices,a=r.get,s=r.set,c=r.isArray,l=r.mapByKey;return(t,r)=>{const u=t,d=ji(e),p=d(u)===Ni?void 0:d(u);let h=a(r,t);if(h===Ni)return!1;if(l){if(!Array.isArray(h))return t._core._environment.error(`Invalid value ${h} passed for the ${n} property. Expected an array.`),!1;const e=new Map;var f,m=ue(h);try{for(m.s();!(f=m.n()).done;){const r=f.value;if(!Object.prototype.hasOwnProperty.call(r,l)){t._core._environment.error(`Invalid item passed for the ${n} array property. Missing ${l} property on the item of the array.`);continue}const a=r[l],s=i.parse(r);Gi(t,n,o,s)&&e.set(a,s)}}catch(e){m.e(e)}finally{m.f()}if(nn(p,e))return!1;h=e}else if(c){if(!Array.isArray(h))return t._core._environment.error(`Invalid value ${h} passed for the ${n} property. Expected an array.`),!1;const e=[];var g,v=ue(h);try{for(v.s();!(g=v.n()).done;){const r=g.value,a=i.parse(r);Gi(t,n,o,a)&&e.push(a)}}catch(e){v.e(e)}finally{v.f()}if(nn(p,h))return!1;h=e}else{if(h=i.parse(h),!Gi(t,n,o,h))return!1;if(i.isEqual(p,h))return!1}return s(h,u),!0}}class Hi{constructor(e){this._updaters=Object.keys(e).map((t=>({updater:Ui(t,e[t]),key:t})))}update(e,t){const r=[];var n,i=ue(this._updaters);try{for(i.s();!(n=i.n()).done;){const i=n.value,o=i.updater,a=i.key;o(e,t)&&r.push(a)}}catch(e){i.e(e)}finally{i.f()}return r}}class zi{constructor(e){this._isDiscarded=!1,this._isPublished=!1,this._isSharedWithYou=!1,this._includeHiddenRecursive=!1,this._includeHiddenRecursive=!!(null==e?void 0:e._includeHiddenRecursive),this._isDiscarded=!!(null==e?void 0:e._isDiscarded),this._isPublished=!!(null==e?void 0:e._isPublished),this._isSharedWithYou=!!(null==e?void 0:e._isSharedWithYou)}matches(e){return!(e.isComposite&&0===e.sizeInBytes||e.isDiscarded!==this._isDiscarded||e._isSWYAsset_NoLazyLoad&&e._isSWYAsset_NoLazyLoad!==this._isSharedWithYou||this._isDiscarded&&"DISCARDED_PARENT"===e._assetState||e.isPublished!==this._isPublished||"/cloud-content-archive"===e.repoPath||"/archive"===e.repoPath||"hiddenSelf"===e.shellVisibility||"hiddenRecursive"===e.shellVisibility&&!this._includeHiddenRecursive)}get hash(){return(this._isDiscarded?"discarded":"")+(this._isPublished?"published":"")+(this._isSharedWithYou?"shared":"")+(this._includeHiddenRecursive?"hiddenRecursive":"")}getRelationToFilter(e){return this._isDiscarded!==e._isDiscarded||this._isPublished!==e._isPublished||this._includeHiddenRecursive!==e._includeHiddenRecursive||this._isSharedWithYou!==e._isSharedWithYou?"disjoint":"subset"}}class Vi extends zi{constructor(e){super(),this._query=null==e?void 0:e.query,this._deepSearch=null==e?void 0:e.deepSearch,this._asset=null==e?void 0:e.asset}get hash(){var e;return[null===(e=this._asset)||void 0===e?void 0:e.id,super.hash,void 0!==this.deepSearch?`deepSearch=${this._deepSearch}`:void 0,this.query?`query=${this._query}`:void 0].filter((e=>e)).join(":")}get deepSearch(){return this._deepSearch}get asset(){return this._asset}get query(){return this._query}matches(e){if(this.asset&&this.asset.repositoryID&&e.repositoryID&&this.asset.repositoryID!==e.repositoryID)return!1;if(this.asset&&this.asset.repoPath&&e.repoPath){const t=this.asset.repoPath;if(this.deepSearch){if(!e.repoPath.startsWith(kn.join(t,"/")))return!1}else if(t!==e.repoPath.substring(0,e.repoPath.lastIndexOf("/")))return!1}return super.matches(e)}getRelationToFilter(e){var t,r,n,i;const o=null===(t=this.asset)||void 0===t?void 0:t.repositoryID,a=null===(r=e.asset)||void 0===r?void 0:r.repositoryID;return o&&a&&o!==a||this.deepSearch!==e.deepSearch||(null===(n=this.query)||void 0===n?void 0:n.toLowerCase())!==(null===(i=e.query)||void 0===i?void 0:i.toLowerCase())?"disjoint":super.getRelationToFilter(e)}}function Yi(e,t){return e.localeCompare(t)}function Wi(e,t){return e===t?0:e<t?-1:1}function Ki(e){return class extends class{constructor(e,t,r){this.direction=e,this.field=t,this.comparator=r}get hash(){return this.direction+":"+this.field}sortItems(e){e.sort(this.comparator)}}{constructor(t,r){let n=e[r];"descending"===t&&(n=function(e){return(t,r)=>-e(t,r)}(n)),super(t,r,n)}}}const $i={name:"repo:name",created:"storage:deviceCreateDate",modified:"storage:deviceModifyDate",shared:"storage:deviceModifyDate"},qi={name:(e,t)=>Yi(e.name,t.name),created:(e,t)=>Wi(e.created,t.created),modified:(e,t)=>Wi(e.modified,t.modified),shared:(e,t)=>Wi(e.shared,t.shared)};class Xi extends(Ki(qi)){}Xi.default=new Xi("descending","modified");var Ji,Qi=Object.freeze({__proto__:null,OrderFieldToIAdobeAssetOrderBy:$i,default:Xi});class eo{constructor(e,t,r,n,i){this._assetPool=e,this._asset=t,this._core=r,this._includePermissions=n,this._loadLibraryData=i}supportsFilter(e){return void 0!==e}loadPage(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_loadPage(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l,u,d,p,h,f,m,g,v,y,b,_;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=e.order,o=e.limit,a=e.filter,s=e.implicitFilter,c=[..."mediaTypes"in s&&s.mediaTypes||"mediaTypes"in a&&a.mediaTypes||[]],l=void 0,!r._loadLibraryData){n.next=9;break}if(r._asset.isProject){n.next=8;break}throw we.create(ge.UNSUPPORTED,`Asking for child libraries from non-project asset with id: ${r._asset.id}`);case 8:l=r._core.hostAssetContext._libraryInterface.getLibrariesForProject(r._asset.id);case 9:return u=r._assetPool._core._environment.getValue("ASSETS_LIST_UPDATE_LATENCY"),d=Date.now()-u,p=[{resource:{reltype:tt.APP_METADATA},selectors:Mr}],r._includePermissions&&p.push({resource:{reltype:tt.AC_EFFECTIVE}}),n.next=15,r._asset._ensureLink(tt.PAGE);case 15:return n.next=17,r._asset._getAssetInterface();case 17:return h=n.sent,n.next=20,h.getChildAssets({orderBy:$i[i.field],orderDirection:i.direction,start:t,limit:o,type:c,embed:p});case 20:return f=n.sent,m=r._assetPool.createLoaderMutationSession(),r._asset.isProject&&r._core.hostAssetContext._adobeAssetUpdater.updateLocalItem(m,r._asset,{"repo:ancestors":f["repo:ancestors"]}),n.next=25,r._core.getLibraryContext();case 25:return g=n.sent,v=r._core._adobeAssetFactory.assetsFromRepoMetadata(m,f.children.map((e=>{var t;return e["repo:ancestors"]||(e["repo:ancestors"]=[...null!==(t=r._asset.ancestorIDs)&&void 0!==t?t:[],r._asset.id]),e})),g),r._loadLibraryData&&(y=v.filter((e=>e.isLibrary))).forEach((e=>e._setLibraryLoadState("LOADING"))),m.commit(),r._loadLibraryData&&l.then((e=>r._updateLibrariesData(y,e))),(_=f._page.next)&&(b=e=>r._loadPage(e,_)),n.abrupt("return",{items:v,loadNextPage:b,mostRecentValidMutation:d});case 33:case"end":return n.stop()}}),n)})))()}_getSafeLibraryData(e){return e?{library_urn:e.library_urn,id:e.id,bookmark:e.bookmark,name:e.name,ownership:e.ownership,roles:e.roles,rendition_grid:e.rendition_grid}:{}}_updateLibrariesData(e,t){var r=this;return me(he().mark((function n(){var i,o;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=r._core.hostAssetContext._assetPool.createUpdateSession(),n.next=3,r._core.getLibraryContext();case 3:o=n.sent,e.forEach((e=>{const n=t.find((t=>t.library_urn===e.id));if(n){const t=r._getSafeLibraryData(n);o._libraryUpdater.updateLocalItem(i,e,t),e._setLibraryLoadState("LOADED")}else e._setLibraryLoadState("NOT_LOADED")})),i.commit();case 6:case"end":return n.stop()}}),n)})))()}}!function(e){e.STORAGE_ASSIGNEE_TYPE="storage:assignee$$type",e.VISIBLITY="app_metadata$$shell:visibility",e.CREATIVE_CLOUD_TOPLEVEL_COLLECTION_NAME="creative_cloud_toplevel_collection_name",e.FIELD_EXISTS="op_field_exists",e.INCLUDES="includes",e.TYPE="type",e.ARTIFACT_FIELD="app_metadata$$review:sourceAsset$$dc:format",e.STORAGE_ASSIGNEE_ID="storage:assignee$$id",e.SHARED_VIA_INVITE="shared_via_invite",e.OP_AND="op_and",e.OP_OR="op_or",e.REPO_ACL_MODIFIER="repo:acl$$repo:modifier",e.REPO_ACL_PRIVILEGES="repo:acl$$repo:privileges",e.REPO_ACL_RELATIONS="repo:acl$$repo:relations",e.CREATED_FROM_UPLOAD="app_metadata$$cc:createdFromUpload",e.CREATED_BY_CLIENT_ID="repo:createdByClientId"}(Ji||(Ji={}));const to="api:metadata/peruser#mine$$shell:lastAccessDate",ro={name:"asset_name",created:"create_date",modified:"modify_date",shared:"shared_date",lastAccessed:to};var no,io,oo,ao;!function(e){e.Created="rm.storage:deviceCreateDate",e.Modified="rm.storage:deviceModifyDate",e.Name="rm.repo:name"}(no||(no={})),function(e){e.Ascending="ASC",e.Descending="DESC"}(io||(io={})),function(e){e.MEDIA_TYPE="rm.dc:format",e.DIRECTORY_TYPE="am.project:directoryType",e.INHERITANCE_TYPE="function:missing"}(oo||(oo={})),function(e){e.SharedBy="cm.sharedBy",e.LastAccessDate="am.shell:lastActivity.date",e.Collaborator="cm.collaborator",e.PublicCollaborator="cm.publicCollaborator",e.ParentProjectId="am.cc:inherited.cc:team.repo:assetId",e.StudentAssignmentAssetId="am.cc:inherited.cc:studentAssignment.repo:assetId",e.StudentAssignmentDirectoryId="am.cc:inheritable.cc:studentAssignment.repo:assetId",e.CCInherited="am.cc:inherited",e.CCInheritable="am.cc:inheritable",e.HzDocumentMetadata="am.hz:documentMetadata",e.CreatedFromUpload="am.cc:createdFromUpload",e.CreatedByClientId="rm.createdByClientId"}(ao||(ao={}));const so={name:"asset_name",created:"create_date",modified:"modify_date",lastAccessed:to},co={name:no.Name,created:no.Created,modified:no.Modified,lastAccessed:no.Modified},lo={name:(e,t)=>Yi(e.name,t.name),created:(e,t)=>Wi(e.created,t.created),modified:(e,t)=>Wi(e.modified,t.modified),lastAccessed:(e,t)=>Wi(e.lastAccessed,t.lastAccessed)};class uo extends(Ki(lo)){}uo.default=new uo("descending","modified");var po=Object.freeze({__proto__:null,OrderFieldToIUSSAdobeAssetOrderBy:so,OrderFieldToUSSv3OrderField:co,default:uo});const ho="USSAdobeAssetFilter",fo="storage_assignee_changed",mo=new class extends He{constructor(){super(fo)}};class go{constructor(e,t,r){this._assetPool=e,this._core=t,this._loader=r}loadPage(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l,u,d,p,h,f,m,g,v,y,b,_,E,w,x,L,O,S,T,P,I,A;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=e.order,s=e.limit,c=void 0===s?50:s,l=e.filter,u=e.implicitFilter,d=r._core._environment.getValue("USS_LIST_UPDATE_LATENCY"),p=Date.now()-d,t=t||0,f=(h=l).mediaTypes,m=h.excludeMediaTypes,h.name===ho&&(g=(y=h).uploadedFrom,v=y.userId),n.next=9,r._loader._getUSSResults(Object.assign(Object.assign({order:a,limit:c,filter:l,implicitFilter:u,start:t,mediaTypes:Array.from(null!=f?f:[]),excludeMediaTypes:Array.from(null!=m?m:[])},g?{uploadedFrom:g}:{}),v?{userId:v}:{}));case 9:b=n.sent,_=b.result_sets[0],E=r._assetPool.createLoaderUpdateSession(p),w=r._extractItems(E,_.items),L=_.total_items||0,O=_.items.length,(S=0===O?t+c:t+O)<L&&(x=e=>r.loadPage(e,S)),T={items:w,total:L,loadNextPage:x,mostRecentValidMutation:p},null===(o=(i=r._loader)._postProcessPage)||void 0===o||o.call(i,e,T),P=ue(w);try{for(P.s();!(I=P.n()).done;)A=I.value,_i.updatedByItemUpdater(A,fo)}catch(e){P.e(e)}finally{P.f()}return E.commit(),n.abrupt("return",T);case 23:case"end":return n.stop()}}),n)})))()}_getItemData(e){let t=!1,r=0;const n=e.collaboration_metadata;void 0!==n&&(t=n.some((e=>"all"===e.collaborator_id)),r=n.length);const i=e["collab_metadata#mine"];return Object.assign(Object.assign({},e),{sharedViaInvite:!!i,isSWYGroup:!(i&&i.type),isShared:r>0,isPublicLink:t,directCollaboratorCount:r,shareFlagsAreDirty:!1})}_extractItems(e,t){return this._core._adobeAssetFactory.assetsFromUSSMetadata(e,t,this._loader._getItemData||this._getItemData,this._loader._libraryContext,this._loader._customModelContext)}}class vo{constructor(e,t,r,n,i){this._adobeAssetSearchInterface=r,this._asset=n,this._implicitFilter=i,this._getItemData=this._getItemDataWithRepoId(this._asset.repositoryID),this._ussLoaderHelper=new go(e,t,this)}supportsFilter(e){return void 0!==e}loadPage(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._ussLoaderHelper.loadPage(e));case 1:case"end":return r.stop()}}),r)})))()}_getUSSResults({start:e,limit:t,order:r,mediaTypes:n,excludeMediaTypes:i,filter:o}){var a=this;return me(he().mark((function s(){var c,l,u,d,p;return he().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return l=null===(c=a._implicitFilter)||void 0===c?void 0:c._query,u=Boolean(a._implicitFilter.deepSearch),d={orderBy:so[r.field],orderDirection:r.direction,start:e,limit:t,mediaTypes:n,excludeMediaTypes:i,query:l,deepSearch:u,assetId:a._asset.cloudID},o.name===ho&&(p=o,d.userId=p.userId,d.uploadedFrom=p.uploadedFrom),s.abrupt("return",a._adobeAssetSearchInterface.getFilteredAssets(d));case 5:case"end":return s.stop()}}),s)})))()}_getItemDataWithRepoId(e){return t=>Object.assign(Object.assign({},t),{"repo:repositoryId":e})}}function yo(e,t){return e===t?"subset":e&&t?e.hash===t.hash||"everything"===t.hash?"subset":"everything"===e.hash?"unknown":e.getRelationToFilter(t):e?"subset":"unknown"}function bo(e=new Date(-9999,0,1),t=new Date(9999,0,1),r=new Date(-9999,0,1),n=new Date(9999,0,1)){return e>=r&&t<=n?"subset":e>n||t<r?"disjoint":"unknown"}var _o;!function(e){e[e.NotStarted=1]="NotStarted",e[e.HadLoaderErrors=2]="HadLoaderErrors",e[e.Loading=3]="Loading",e[e.ReadyHasMorePages=4]="ReadyHasMorePages",e[e.ReadyFullyLoaded=5]="ReadyFullyLoaded"}(_o||(_o={}));const Eo="loaderStateChanged";class wo extends He{constructor(e=!1){super(Eo),this.hasUpdatedItems=e}}const xo=new wo(!1),Lo=new wo(!0);class Oo{constructor(){this.startedGeneration=0,this.loadedGeneration=0}}class So extends En{constructor(e,t,r,n){super(),this._loader=e,this._order=t,this._filter=r,this._implicitFilter=n,this.status=_o.NotStarted,this._pages=[],this._generation=0,this._nextPageIndex=0,this._loadAllPages=!1}get mostRecentValidMutation(){return this._mostRecentValidMutation}load(e,t,r){var n=this;return me(he().mark((function i(){return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n._loadAllPages=t,n._generation=e,n._nextPageCallback=void 0,n._nextPageIndex=0,n._pendingLoad=void 0,i.next=7,n._loadPage(r);case 7:case"end":return i.stop()}}),i)})))()}loadNextPage(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:case"end":return r.stop()}}),r)})))()}loadAllPages(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t._loadAllPages=!0,r.next=3,t._loadPage(e);case 3:case"end":return r.stop()}}),r)})))()}collectAllItems(e){var t,r=ue(this._pages);try{for(r.s();!(t=r.n()).done;){const r=t.value;if(r&&r.items){var n,i=ue(r.items);try{for(i.s();!(n=i.n()).done;){const t=n.value;e.add(t)}}catch(e){i.e(e)}finally{i.f()}}}}catch(e){r.e(e)}finally{r.f()}}_ensurePage(e){let t=this._pages[e];return t||(t=new Oo,this._pages[e]=t),t}_loadPage(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(n=t._pendingLoad)||(n=t._loadPageImpl(e),t._pendingLoad=n),r.next=4,n;case 4:t._pendingLoad===n&&(t._pendingLoad=void 0);case 5:case"end":return r.stop()}}),r)})))()}_loadPageImpl(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s,c,l,u,d;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t._nextPageCallback,!(i=t._nextPageIndex)||n){r.next=4;break}return r.abrupt("return");case 4:if(o=t._ensurePage(i),a=t._generation,!(o.startedGeneration>=a)){r.next=8;break}return r.abrupt("return");case 8:if(s=o.startedGeneration,o.startedGeneration=a,t.error=null,t._updateStatus(_o.Loading),r.prev=12,u=null!=e?e:o.limit,d={order:t._order,implicitFilter:t._implicitFilter,filter:t._filter,limit:u},!n){r.next=22;break}return r.next=18,n(d);case 18:c=r.sent,t._nextPageCallback=void 0,r.next=26;break;case 22:return r.next=24,t._loader.loadPage(d);case 24:c=r.sent,t._mostRecentValidMutation=c.mostRecentValidMutation;case 26:o.limit=u,r.next=32;break;case 29:r.prev=29,r.t0=r.catch(12),l=r.t0;case 32:if(!(o.loadedGeneration>=a)){r.next=34;break}return r.abrupt("return");case 34:if(!l){r.next=40;break}if(o.startedGeneration===a){r.next=37;break}return r.abrupt("return");case 37:o.startedGeneration=s,r.next=41;break;case 40:c&&(o.items=c.items.filter((e=>t._implicitFilter.matches(e)&&t._filter.matches(e))),t.total=c.total,o.loadedGeneration=a);case 41:if(!t._updateStatusAndLinkToNextPage(a,i,c,l)){r.next=45;break}return r.next=45,t._loadPageImpl(e);case 45:case"end":return r.stop()}}),r,null,[[12,29]])})))()}_updateStatusAndLinkToNextPage(e,t,r,n){if(this._generation!==e||this._nextPageIndex!==t)return r&&this.dispatch(Lo),!1;if(!r)return this.error=n,this._updateStatus(_o.HadLoaderErrors),!1;this._nextPageIndex=t+1,this._nextPageCallback=r.loadNextPage,r.loadNextPage||this._pages.splice(this._nextPageIndex),this._updateStatus(r.loadNextPage?_o.ReadyHasMorePages:_o.ReadyFullyLoaded);const i=this._nextPageIndex<this._pages.length;return this._loadAllPages||i}_updateStatus(e){const t=e===_o.ReadyFullyLoaded||e===_o.ReadyHasMorePages;(t||e!==this.status)&&(this.status=e,this.dispatch(t?Lo:xo))}}class To{constructor(){}get hash(){return"everything"}matches(e){return void 0!==e}getRelationToFilter(e){return"subset"}}const Po="status_changed",Io="listChanged",Ao="listFullyLoaded",Co="LoaderUpdateContext",ko=new class extends He{constructor(){super(Io)}},Do=new class extends He{constructor(){super(Po)}};let No=0;class Ro extends En{constructor(e,t,r,n,i=new To,o,a){var s;super(),s=this,this._itemPool=e,this.order=r,this.implicitFilter=n,this.filter=i,this._loadOptions=a,this._status=_o.NotStarted,this._items=[],this._generation=0,this._completedGeneration=0,this._loaderStates=[],this._lastFetchTime=0,this._needsRefresh=!1,this._itemUpdatesByGeneration=new Map,this._listId=_r(),this._onUnhandledPromiseError=e=>{var t;this._updateListStatusFromItemLoaderStates(),(null===(t=this._errors)||void 0===t?void 0:t.length)||(this._errors=[]),this._errors.push(e),this._status=_o.HadLoaderErrors,this.emit(Po)},this._handlePendingLoad=me(he().mark((function e(){var t,r,n;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=s._pendingLoad)){e.next=7;break}return r=t.loadAllPages,n=t.limit,s._pendingLoad=void 0,s._debug("_handlePendingLoad() awaiting _runLoaders for loaderState.load"),e.next=7,s._runLoaders((e=>e.load(s._generation,r,n)));case 7:case"end":return e.stop()}}),e)}))),this._onItemLoaderStateChanged=e=>{const t=e.hasUpdatedItems;this._cleanPreviousGenerationItemsIfNeeded(),t&&this._updateListItemsFromItemLoaderStates()},this._globalStateChangedEvent=new Pr(this),this._itemPoolDelegate={onItemsUpdated:e=>{if(e.updateContext===Co)return;let t=this._pendingNotifications;t||(t=[],this._pendingNotifications=t),t.push({generation:this._generation,event:e}),this._updateListItemsFromItemLoaderStates()}};var c,l=ue(t);try{for(l.s();!(c=l.n()).done;){const e=c.value;if(e.supportsFilter&&!e.supportsFilter(i))continue;const t=new So(e,r,i,n);t.on(Eo,this._onItemLoaderStateChanged),this._loaderStates.push(t)}}catch(e){l.e(e)}finally{l.f()}o&&this._copyInitialItemsFrom(o),e.addDelegate(this._itemPoolDelegate,"list")}_debug(e){this._core._environment.debug(`[ItemList ${this._itemPool.type} ${this._listId.slice(-4)}] ${e}`)}_updateLoadOptions(e={}){var t,r;this._loadOptions||(this._loadOptions={}),this._loadOptions.limit&&e.limit&&this._loadOptions.limit<e.limit&&(this._loadOptions.limit=e.limit),!this._loadOptions.loadAllPages&&e.loadAllPages&&(this._loadOptions.loadAllPages=e.loadAllPages),-1!==e.refreshTimeout&&(-1===this._loadOptions.refreshTimeout||(null!==(t=this._loadOptions.refreshTimeout)&&void 0!==t?t:0)>=(null!==(r=e.refreshTimeout)&&void 0!==r?r:0))&&(this._loadOptions.refreshTimeout=e.refreshTimeout),this._loadAsync(Object.assign(Object.assign({},this._loadOptions),{refreshTimeout:-1===e.refreshTimeout?-1:this._loadOptions.refreshTimeout})).catch(this._onUnhandledPromiseError)}get type(){return this._itemPool.type}get generation(){return this._generation}get completedGeneration(){return this._completedGeneration}get hasLoaders(){return this._loaderStates.length>0}get lastFetchTime(){return this._lastFetchTime}get _core(){return this._itemPool._core}_copyInitialItemsFrom(e){const t=new Map,r=this.filter;var n,i=ue(e.items);try{for(i.s();!(n=i.n()).done;){const e=n.value;this.implicitFilter.matches(e)&&r.matches(e)&&t.set(e,!0)}}catch(e){i.e(e)}finally{i.f()}this._generation=e.generation,this._completedGeneration=e.completedGeneration,this._itemUpdatesByGeneration.set(this._generation,t),e.status===_o.ReadyFullyLoaded&&"subset"===yo(r,e.filter)&&(this._status=_o.ReadyFullyLoaded,this._lastFetchTime=e.lastFetchTime),this._updateListItemsFromItemLoaderStates()}_applyListItemsFrom(e){if(e.status!==_o.ReadyFullyLoaded)throw we.create(ge.INTERNAL_ERROR,"_applyListItems other list must be fully loaded");if("subset"!==yo(this.filter,e.filter))throw we.create(ge.INTERNAL_ERROR,"_applyListItems other list must be subset");this._items=e.items.filter((e=>this.implicitFilter.matches(e)&&this.filter.matches(e))),this.order.sortItems(this._items),this._dispatchItemsChangedEvent(),this._status!==_o.ReadyFullyLoaded&&(this._status=_o.ReadyFullyLoaded,this._dispatchStateChangedEvents())}get status(){return this._loaderStates.length?this._status:_o.ReadyFullyLoaded}get errors(){return this._errors}get items(){return this._items}get total(){return this._total}_cleanPreviousGenerationItemsIfNeeded(){let e;var t,r=ue(this._loaderStates);try{for(r.s();!(t=r.n()).done;){const r=t.value,n=r.status,i=r.mostRecentValidMutation;if(n!==_o.NotStarted&&r.status!==_o.HadLoaderErrors){if(n===_o.Loading||n===_o.ReadyHasMorePages)return;i&&(e=e?Math.min(e,i):i)}}}catch(e){r.e(e)}finally{r.f()}this._cleanPreviousGenerationItems(e)}_cleanPreviousGenerationItems(e){this._applyItemsChangedEvents();const t=this._generation;this._completedGeneration=t;const r=new Map;let n=!1,i=0;var o,a=ue(this._itemUpdatesByGeneration);try{for(a.s();!(o=a.n()).done;){const a=le(o.value,2),l=a[0],u=a[1];if(!(l>=t)&&(n=!0,this._itemUpdatesByGeneration.delete(l),i=Math.max(i,l),e)){var s,c=ue(u);try{for(c.s();!(s=c.n()).done;){const t=le(s.value,2),n=t[0],i=t[1],o=n.lastKnownClientMutation;(r.has(n)||o&&o>e)&&r.set(n,i)}}catch(e){c.e(e)}finally{c.f()}}}}catch(e){a.e(e)}finally{a.f()}r.size&&this._itemUpdatesByGeneration.set(i,r),n&&this._dispatchItemsChangedEvent()}refresh(){this._loadAsync(this._loadOptions).catch(this._onUnhandledPromiseError)}load(e){gi("ItemList.load","ItemList.load() is deprecated and will be removed on or after 2024-10-01. Use ItemList.refresh() instead. List load parameters are passed as the 3rd parameter to ItemSource.getList(), which now automatically starts loading."),e=Object.assign({refreshTimeout:0},e),this._updateLoadOptions(e)}_loadAsync(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s,c;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._loaderStates.length){r.next=2;break}return r.abrupt("return");case 2:if(o=null!==(n=null==e?void 0:e.refreshTimeout)&&void 0!==n?n:0,a=null!==(i=null==e?void 0:e.loadAllPages)&&void 0!==i&&i,s=t._lastFetchTime,!t._needsRefresh&&s&&o&&!(-1!==o&&s+o<Date.now())){r.next=12;break}return t._debug(`_loadAsync() calling _load(): _needsRefresh: ${t._needsRefresh}, lastFetchTime: ${s} refreshTimeout: ${o}`),r.next=9,t._load(a,null==e?void 0:e.limit);case 9:return r.abrupt("return");case 12:t._debug(`_loadAsync() not time to refresh: _needsRefresh: ${t._needsRefresh}, lastFetchTime: ${s} refreshTimeout: ${o}`);case 13:if(!(c=t._previousLoadPromise)){r.next=18;break}return t._debug("_loadAsync() awaiting previousLoadPromise"),r.next=18,c;case 18:if(!a){r.next=21;break}return r.next=21,t._ensureAllPagesAreLoaded(null==e?void 0:e.limit);case 21:case"end":return r.stop()}}),r)})))()}_load(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r._needsRefresh=!1,(i=r._pendingLoad)?e&&(i.loadAllPages=!0):(r._status=_o.Loading,r._lastFetchTime=Date.now(),r._generation=++No,r._debug("_load() creating _pendingLoad"),r._pendingLoad=i={loadAllPages:e,limit:t,promise:Promise.resolve().then(r._handlePendingLoad)},r._dispatchStateChangedEvents()),r._debug("_load() awaiting _pendingLoad"),n.next=6,i.promise;case 6:case"end":return n.stop()}}),n)})))()}loadNextPage(e){this._loadNextPageAsync(e||this._loadOptions).catch(this._onUnhandledPromiseError)}_loadNextPageAsync(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._loaderStates.length){r.next=2;break}return r.abrupt("return");case 2:if(!t._pendingLoad){r.next=8;break}return t._debug("_loadNextPageAsync() awaiting _pendingLoad"),r.next=6,t._pendingLoad.promise;case 6:r.next=13;break;case 8:return t._status=_o.Loading,t._dispatchStateChangedEvents(),t._debug("_loadNextPageAsync() awaiting _runLoaders for loaderState.loadNextPage"),r.next=13,t._runLoaders((t=>t.loadNextPage(null==e?void 0:e.limit)));case 13:case"end":return r.stop()}}),r)})))()}_runLoaders(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t._lastFetchTime=Date.now(),n=Promise.all(t._loaderStates.map(e)),t._previousLoadPromise=n,r.prev=3,t._debug("_runLoaders() awaiting loaders"),r.next=7,n;case 7:return r.prev=7,t._debug("_runLoaders() loaders complete"),t._previousLoadPromise=void 0,t._updateListStatusFromItemLoaderStates(),t._dispatchStateChangedEvents(),t._status===_o.ReadyFullyLoaded&&t.emit(Ao),r.finish(7);case 14:case"end":return r.stop()}}),r,null,[[3,,7,14]])})))()}setNeedsRefresh(){if(this.status!==_o.NotStarted&&this._loaderStates.length)return this.listenerCount(Io)?(this._needsRefresh=!0,void this.refresh()):void(this._needsRefresh=!0)}_onEventListenerAdded(){this._needsRefresh&&this.listenerCount(Io)&&this.refresh()}_ensureAllPagesAreLoaded(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.status===_o.ReadyHasMorePages){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,t._runLoaders((t=>t.loadAllPages(e)));case 4:case"end":return r.stop()}}),r)})))()}_dispatchStateChangedEvents(){this._debug(`_dispatchStateChangedEvents status: ${_o[this.status]}`),this.dispatch(Do),this._core.dispatch(this._globalStateChangedEvent)}_updateListStatusFromItemLoaderStates(){var e;let t=this._pendingLoad?_o.Loading:_o.NotStarted;this._errors=void 0;var r,n=ue(this._loaderStates);try{for(n.s();!(r=n.n()).done;){const n=r.value;switch(n.status){case _o.HadLoaderErrors:if(this._pendingLoad)break;return this._status=_o.HadLoaderErrors,void(this._errors=[n.error]);case _o.ReadyHasMorePages:t===_o.Loading||(null===(e=this._loadOptions)||void 0===e?void 0:e.loadAllPages)||(t=_o.ReadyHasMorePages);break;case _o.Loading:t=_o.Loading;break;case _o.ReadyFullyLoaded:t!==_o.ReadyHasMorePages&&t!==_o.Loading&&(t=_o.ReadyFullyLoaded)}}}catch(e){n.e(e)}finally{n.f()}this._status=t}_dispatchItemsChangedEvent(){this.dispatch(ko)}_updateListItemsFromItemLoaderStates(){this._applyItemsChangedEvents();const e=new Set;let t;var r,n=ue(this._loaderStates);try{for(n.s();!(r=n.n()).done;){const n=r.value;n.collectAllItems(e),void 0!==n.total&&(t=Math.max(t||0,n.total))}}catch(e){n.e(e)}finally{n.f()}var i,o=ue(this._itemUpdatesByGeneration.values());try{for(o.s();!(i=o.n()).done;){var a,s=ue(i.value.entries());try{for(s.s();!(a=s.n()).done;){const t=le(a.value,2),r=t[0];t[1]?e.add(r):e.delete(r)}}catch(e){s.e(e)}finally{s.f()}}}catch(e){o.e(e)}finally{o.f()}const c=Array.from(e);this.order.sortItems(c),this._items=c,this._total=t,this._dispatchItemsChangedEvent()}_applyItemsChangedEvents(){const e=this._pendingNotifications;if(e){this._pendingNotifications=void 0;var t,r=ue(e);try{for(r.s();!(t=r.n()).done;){const r=t.value,l=r.event,u=r.generation;if(u<this._completedGeneration)continue;let d=this._itemUpdatesByGeneration.get(u);if(d||(d=new Map,this._itemUpdatesByGeneration.set(u,d)),l.addedItems){var n,i=ue(l.addedItems);try{for(i.s();!(n=i.n()).done;){const e=n.value;this.implicitFilter.matches(e)&&this.filter.matches(e)&&d.set(e,!0)}}catch(e){i.e(e)}finally{i.f()}}if(l.changedItems){var o,a=ue(l.changedItems);try{for(a.s();!(o=a.n()).done;){const e=o.value,t=this.implicitFilter.matches(e)&&this.filter.matches(e);d.set(e,t)}}catch(e){a.e(e)}finally{a.f()}}if(l.discardedItems){var s,c=ue(l.discardedItems);try{for(c.s();!(s=c.n()).done;){const e=s.value;d.set(e,!1)}}catch(e){c.e(e)}finally{c.f()}}}}catch(e){r.e(e)}finally{r.f()}}}}Ie([$e(Do)],Ro.prototype,"status",null),Ie([$e(Do)],Ro.prototype,"errors",null),Ie([$e(ko)],Ro.prototype,"items",null),Ie([$e(ko)],Ro.prototype,"total",null);class Mo{constructor(e){this._ref=e}get[Symbol.toStringTag](){return"WeakRef"}deref(){return this._ref}}var jo,Fo,Zo="undefined"!=typeof WeakRef?WeakRef:Mo;function Bo(e){const t=e;return new Promise((r=>{function n(){e.status!==_o.Loading&&(t.off(Po,n),r())}t.on(Po,n),n()}))}function Go(e,t){return e.filterRelation!==t.filterRelation?"subset"===e.filterRelation?-1:1:e.generation!==t.generation?t.generation-e.generation:t.length-e.length}!function(e){e[e.Ascending=0]="Ascending",e[e.Descending=1]="Descending"}(jo||(jo={})),function(e){e[e.Name=0]="Name",e[e.Modified=1]="Modified",e[e.Created=2]="Created",e[e.Shared=3]="Shared"}(Fo||(Fo={}));class Uo{constructor(e,t,r=new To){this._itemPool=e,this._loaders=t,this._implicitFilter=r,this._lists=new Map}getList(e,t=new To,r){if("number"==typeof e||"number"==typeof t)throw we.create(ge.UNSUPPORTED,"Using OrderDirection and OrderField is not implemented in SAM.js, and will be deprecated in SAM.cpp");let n=this._getExistingList(e,t);if(n)n._updateLoadOptions(Object.assign({refreshTimeout:-1},r));else{const i=this._getMostCompleteCompatibleList(t);n=new Ro(this._itemPool,this._loaders,e,this._implicitFilter,t,i,r),n.on(Ao,(()=>this._onListFullyLoaded(n))),this._lists.set(this._getListHash(e,t,this._implicitFilter),new Zo(n))}return n.status===_o.NotStarted&&n.refresh(),n}getListWithTypes(e,t,r){throw we.create(ge.UNSUPPORTED,"getListWithTypes is not implemented in SAM.js and will be deprecated in SAM.cpp")}_getListHash(e,t,r){return`${r.hash}:${t.hash}:${e.hash}`}_getExistingList(e,t){const r=this._getListHash(e,t,this._implicitFilter),n=this._lists.get(r);if(n)return n.deref()}setNeedsRefresh(){var e,t=ue(this._getLists());try{for(t.s();!(e=t.n()).done;)e.value.setNeedsRefresh()}catch(e){t.e(e)}finally{t.f()}}_getMostCompleteCompatibleList(e){var t;const r=[];var n,i=ue(this._getLists());try{for(i.s();!(n=i.n()).done;){const t=n.value;if(t.status===_o.ReadyFullyLoaded){const n=yo(e,t.filter);"disjoint"!==n&&r.push({list:t,filterRelation:n,generation:t.generation,length:t.items.length})}}}catch(e){i.e(e)}finally{i.f()}return r.sort(Go),null===(t=r[0])||void 0===t?void 0:t.list}_getLists(){var e=this;return he().mark((function t(){var r,n,i,o,a,s,c;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e._lists,n=ue(r.entries()),t.prev=2,n.s();case 4:if((i=n.n()).done){t.next=14;break}if(o=le(i.value,2),a=o[0],s=o[1],c=s.deref()){t.next=10;break}return r.delete(a),t.abrupt("continue",12);case 10:return t.next=12,c;case 12:t.next=4;break;case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(2),n.e(t.t0);case 19:return t.prev=19,n.f(),t.finish(19);case 22:case"end":return t.stop()}}),t,null,[[2,16,19,22]])}))()}_onListFullyLoaded(e){if(e.status===_o.ReadyFullyLoaded){var t,r=ue(this._getLists());try{for(r.s();!(t=r.n()).done;){const r=t.value;r!==e&&"subset"===yo(r.filter,e.filter)&&Bo(r).then((()=>{r.completedGeneration>=e.completedGeneration||r._applyListItemsFrom(e)}))}}catch(e){r.e(e)}finally{r.f()}}}}Ie([Dt],Uo.prototype,"getList",null);class Ho extends Nn{constructor(){super(...arguments),this._etag="static-etag",this._assetId="",this._assetEtag="",this._createdAt=new Date,this._createdBy="",this._manifest=new Pi(this._core,this)}_getHeadAssetInterface(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.getAssetContext();case 2:return r=t.sent,t.abrupt("return",new fi(r._rapi,e._assetId,e._assetLinks,e._assetEtag));case 4:case"end":return t.stop()}}),t)})))()}_getAssetInterface(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new fi(e._core.hostAssetContext._rapi,e._assetId,e.__links,e._etag));case 1:case"end":return t.stop()}}),t)})))()}get versionId(){return this.id}get created(){return this._createdAt}get createdBy(){return this._createdBy}get assetId(){return this._assetId}get milestone(){return this._label?{label:this._label,description:this._description}:void 0}get manifest(){return this._manifest}get links(){return Object.assign({},this.__links)}_getRenditionFetcher(){var e=this;return this._renditionFetcher||(this._renditionFetcher=new Gn(this._core,Bn,function(){var t=me(he().mark((function t(r,n){var i;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._getAssetInterface();case 2:return i=t.sent,t.abrupt("return",i.getRendition(r,n));case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()),this._renditionFetcher.on("change",(()=>{this.dispatch({type:"change"})}))),this._renditionFetcher}getRenditionURL(e,t=Fn.PNG){return this._getRenditionFetcher().getURL(e,t,this._etag)}renditionURLStatus(e,t){return this._getRenditionFetcher().renditionURLStatus(e,t,this._etag)}getCustomRendition({size:e,type:t,urlTemplateOptions:r,additionalHeaders:n}={}){var i=this;return me(he().mark((function o(){var a;return he().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,i._getAssetInterface();case 2:return a=o.sent,o.abrupt("return",a.getCustomRendition({size:e,type:t,urlTemplateOptions:r,additionalHeaders:n}));case 4:case"end":return o.stop()}}),o)})))()}getAllCustomRenditions({type:e,urlTemplateOptions:t,additionalHeaders:r}={}){var n=this;return me(he().mark((function i(){var o;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n._getAssetInterface();case 2:return o=i.sent,i.abrupt("return",o.getAllCustomRenditions({type:e,urlTemplateOptions:t,additionalHeaders:r}));case 4:case"end":return i.stop()}}),i)})))()}restore(){var e=this;return me(he().mark((function t(){var r,n,i,o,a;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.getAssetContext();case 2:return r=t.sent,t.next=5,r.getAssetWithCloudID(e._assetId);case 5:if(!(n=t.sent).isComposite){t.next=18;break}return i=ot(e.__links,tt.MANIFEST),t.next=11,e._getHeadAssetInterface();case 11:return o=t.sent,t.next=14,o.restoreVersionManifest(i);case 14:return t.next=16,n._load();case 16:t.next=21;break;case 18:return a=ot(n.links,tt.PRIMARY),t.next=21,e.copy(a);case 21:case"end":return t.stop()}}),t)})))()}copy(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s,c;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._core.getAssetContext();case 2:return n=r.sent,r.next=5,n.getAssetWithCloudID(t._assetId);case 5:if(i=r.sent,o=i.isComposite,a=ot(t.__links,tt.PRIMARY),!o){r.next=12;break}throw we.create(ge.UNSUPPORTED,"AssetVersion.copy not implemented for composite assets");case 12:return r.next=14,t._getHeadAssetInterface();case 14:return s=r.sent,r.next=17,s.runOperation({op:"copy",id:t._assetId,source:{href:a,"if-match":"*"},target:{href:e,"if-match":"*"}});case 17:return c=r.sent,r.abrupt("return",c);case 19:case"end":return r.stop()}}),r)})))()}setMilestone(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s,c,l,u,d,p,h;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=e.label,a=void 0===o?(null===(n=t.milestone)||void 0===n?void 0:n.label)||"":o,s=e.description,c=void 0===s?(null===(i=t.milestone)||void 0===i?void 0:i.description)||"":s,l=[{op:t.milestone?si.replace:si.add,path:`/children/version=${t.versionId}/milestone`,value:{label:a,description:c}}],r.next=4,t._getHeadAssetInterface();case 4:return u=r.sent,r.next=7,u.patchVersion(l);case 7:return r.next=9,t._core.getAssetContext();case 9:return d=r.sent,r.next=12,d.getAssetWithCloudID(t._assetId);case 12:p=r.sent,h=p._versionPool.createUpdateSession(),zo.updateLocalItem(h,t,{milestone:{label:a,description:c}}),h.commit();case 16:case"end":return r.stop()}}),r)})))()}removeMilestone(){var e=this;return me(he().mark((function t(){var r,n,i,o,a;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.milestone){t.next=2;break}return t.abrupt("return");case 2:return r=[{op:si.remove,path:`/children/version=${e.versionId}/milestone`}],t.next=5,e._getHeadAssetInterface();case 5:return n=t.sent,t.next=8,n.patchVersion(r);case 8:return t.next=10,e._core.getAssetContext();case 10:return i=t.sent,t.next=13,i.getAssetWithCloudID(e._assetId);case 13:o=t.sent,a=o._versionPool.createUpdateSession(),zo.updateLocalItem(a,e,{milestone:{label:""}}),a.commit();case 17:case"end":return t.stop()}}),t)})))()}}Ie([$e],Ho.prototype,"versionId",null),Ie([$e],Ho.prototype,"created",null),Ie([$e],Ho.prototype,"createdBy",null),Ie([$e],Ho.prototype,"assetId",null),Ie([$e],Ho.prototype,"milestone",null),Ie([$e],Ho.prototype,"links",null),Ie([$e],Ho.prototype,"getRenditionURL",null),Ie([$e],Ho.prototype,"renditionURLStatus",null);const zo=new Di({localItemType:Ho,remoteIdProperty:"version",propertyUpdater:new Hi({_createdAt:{name:"created",format:"date"},_createdBy:"created_by",_label:"milestone.label",_description:"milestone.description",_assetId:"assetId",_assetEtag:"assetEtag",_assetLinks:{name:"assetLinks",format:"object"},__links:{name:"_links",format:"object"}})});class Vo{constructor(e,t){this._versionPool=e,this._assetInterfacePromise=t}loadPage(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._loadPage(e,t);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()}_loadPage(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l,u,d,p,h,f,m,g,v;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=e.limit,a=r._versionPool._core._environment.getValue("VERSIONS_LIST_UPDATE_LATENCY"),s=Date.now()-a,n.next=5,r._assetInterfacePromise;case 5:return c=n.sent,l=e.filter,u=(null==l?void 0:l.version)||void 0,n.next=10,c.getVersions({start:t,limit:o,version:u});case 10:return d=n.sent,p=r._versionPool.createLoaderUpdateSession(s),h=d.children.map((e=>Object.assign(Object.assign({},e),{assetId:c.assetID,assetEtag:c.etag,assetLinks:c.links}))),f=zo.updateRemoteItems(p,h),p.commit(),g=d.children.length,(v=null===(i=d.children[g-1])||void 0===i?void 0:i.created)&&o&&g===o&&(m=e=>r._loadPage(e,v)),n.abrupt("return",{items:f,total:d.total_children,loadNextPage:m,mostRecentValidMutation:s});case 19:case"end":return n.stop()}}),n)})))()}}function Yo(e){e.updateLastKnownClientMutation()}function Wo(e,t){t.updateLastKnownClientMutation()}class Ko{constructor(e,t,r,n,i="fetch"){this._core=e,this._delegate=t,this.updateContext=r,this.mostRecentValidMutation=n,this.type=i}get hasChanges(){return Boolean(this._addedItems||this._changedItems||this._discardedItems)}get addedItems(){return this._addedItems&&Array.from(this._addedItems.values())}get changedItems(){return this._changedItems&&Array.from(this._changedItems.keys())}get discardedItems(){return this._discardedItems&&Array.from(this._discardedItems)}get changedItemsWithEvents(){return this._changedItems&&Array.from(this._changedItems)}checkIfItemAllowsMutations(e){const t=e.lastKnownClientMutation,r=this.mostRecentValidMutation;return!t||!r||t<r}ensureItemIsAdded(e){var t;const r=e.id;if((null===(t=this._addedItems)||void 0===t?void 0:t.get(r))===e)return;const n=this._delegate;(n.getLocalItemById(r)!==e||n.isItemDiscarded(e))&&this.queueAddedItem(e)}reindexItem(e,t,r){e._setId(r),this.queueChangedItem(e,[Ye]),this._delegate.reindexItem(e,t,r)}queueAddedItem(e){var t;let r=this._addedItems;r||(r=new Map,this._addedItems=r),r.set(e.id,e),null===(t=this._changedItems)||void 0===t||t.delete(e)}queueChangedItem(e,t=[Ye]){var r;if(null===(r=this._addedItems)||void 0===r?void 0:r.has(e.id))return;let n=this._changedItems;n||(n=new Map,this._changedItems=n);let i=n.get(e);i||(i=new Set,n.set(e,i)),t.forEach((e=>null==i?void 0:i.add(e)))}queueDiscardedItem(e){let t=this._discardedItems;t||(t=new Set,this._discardedItems=t),t.add(e)}getItemById(e){var t;return(null===(t=this._addedItems)||void 0===t?void 0:t.get(e))||this._delegate.getLocalItemById(e)}commit(){var e,t;this._delegate.commitUpdateSession(this);const r=this._changedItems;if(r){var n,i=ue(r.entries());try{for(i.s();!(n=i.n()).done;){const t=le(n.value,2),r=t[0];var o,a=ue(t[1]);try{for(a.s();!(o=a.n()).done;){const e=o.value;r.dispatch(e)}}catch(e){a.e(e)}finally{a.f()}}}catch(e){i.e(e)}finally{i.f()}}"mutation"===this.type&&(null===(e=this._addedItems)||void 0===e||e.forEach(Yo),null===(t=this._discardedItems)||void 0===t||t.forEach(Yo),null==r||r.forEach(Wo))}}const $o="itemsChanged";class qo extends He{constructor(e,t,r,n){super($o),this.addedItems=e,this.changedItems=t,this.discardedItems=r,this.updateContext=n}}function Xo(e,t){return e.priority===t.priority?0:"list"===e.priority?-1:1}class Jo extends En{constructor(e,t){super(),this._core=e,this.type=t,this._objectsById=new Map,this._discardedObjects=new WeakSet,this._delegates=[],this._hasUnsortedDelegates=!1,this.getLocalItemById=e=>{const t=this._getObjectsById().get(e);return null==t?void 0:t.deref()},this.removeLocalItems=e=>{Array.isArray(e)?e.forEach((e=>{this._objectsById.delete(e)})):this._objectsById.delete(e)},this.isItemDiscarded=e=>this._discardedObjects.has(e),this.reindexItem=(e,t,r)=>{t!==r&&(this._objectsById.set(r,new Zo(e)),this._objectsById.delete(t))},this._updateSessionDelegate=()=>({getLocalItemById:this.getLocalItemById,isItemDiscarded:this.isItemDiscarded,reindexItem:this.reindexItem,commitUpdateSession:e=>{if(!e.hasChanges)return;const t=this._objectsById,r=this._discardedObjects,n=e.discardedItems;if(n){var i,o=ue(n);try{for(o.s();!(i=o.n()).done;){const e=i.value;r.add(e)}}catch(e){o.e(e)}finally{o.f()}}const a=e.addedItems;if(a){var s,c=ue(a);try{for(c.s();!(s=c.n()).done;){const e=s.value;t.set(e.id,new Zo(e)),r.delete(e)}}catch(e){c.e(e)}finally{c.f()}}const l=new qo(e.addedItems,e.changedItems,e.discardedItems,e.updateContext),u=this._delegates;this._hasUnsortedDelegates&&(u.sort(Xo),this._hasUnsortedDelegates=!1);let d=!1;var p,h=ue(u);try{for(h.s();!(p=h.n()).done;){const e=p.value.delegate.deref();e?e.onItemsUpdated(l,this):d=!0}}catch(e){h.e(e)}finally{h.f()}d&&(this._delegates=u.filter((e=>e.delegate.deref()))),this.dispatch(l)}})}_getObjectsById(){return this._objectsById}createUpdateSession(e,t){return new Ko(this._core,this._updateSessionDelegate(),e,t)}createLoaderUpdateSession(e){return new Ko(this._core,this._updateSessionDelegate(),Co,e)}createMutationSession(){return new Ko(this._core,this._updateSessionDelegate(),void 0,void 0,"mutation")}createLoaderMutationSession(){return new Ko(this._core,this._updateSessionDelegate(),Co,void 0,"mutation")}addDelegate(e,t){this._delegates.push({priority:t,delegate:new Zo(e)}),this._hasUnsortedDelegates=!0}forEach(e){const t=this._objectsById;var r,n=ue(t);try{for(n.s();!(r=n.n()).done;){const n=le(r.value,2),i=n[0],o=n[1].deref();o?e(o):t.delete(i)}}catch(e){n.e(e)}finally{n.f()}}map(e){const t=[];return this.forEach((r=>{t.push(e(r))})),t}toArray(){return this.map((e=>e))}}class Qo extends Oi{constructor(e,t){super(e),this._core=e,this._parent=t,this._etag=""}get etag(){return this._etag}_setContent(e,t){this._etag=t||"",this._data=e,this.emit("change")}_loadData(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._parent._ensureLink(tt.PRIMARY);case 2:return t.next=4,e._parent._getAssetInterface();case 4:return r=t.sent,t.next=7,r.getContent();case 7:n=t.sent,i=n.content,o=n.etag,e._data=i,e._etag=o||"";case 12:case"end":return t.stop()}}),t)})))()}}Ie([$e],Qo.prototype,"etag",null);class ea{constructor(e){this._isMilestone=null==e?void 0:e.isMilestone,this._createdAfter=null==e?void 0:e.createdAfter,this._createdBefore=null==e?void 0:e.createdBefore,this._createdBy=null==e?void 0:e.createdBy,this._version=null==e?void 0:e.version}static AssetVersionFilter(e,t,r,n,i){return new ea({createdBy:n,createdAfter:t,createdBefore:r,isMilestone:e,version:i})}get isMilestone(){return this._isMilestone}get createdBy(){return this._createdBy}get createdAfter(){return this._createdAfter}get createdBefore(){return this._createdBefore}get version(){return this._version}get hash(){var e,t,r;const n=null===(e=this.createdBy)||void 0===e?void 0:e.join(","),i=(null===(t=this.createdAfter)||void 0===t?void 0:t.getTime())||0,o=(null===(r=this.createdBefore)||void 0===r?void 0:r.getTime())||0,a=this.version||void 0;return String(this.isMilestone)+":"+n+":"+i+":"+o+":"+a}matches(e){const t=void 0===this.isMilestone||this.isMilestone===Boolean(e.milestone),r=void 0===this.createdBy||this.createdBy.includes(e.createdBy),n=(!this.createdAfter||e.created>=this.createdAfter)&&(!this.createdBefore||e.created<=this.createdBefore),i=void 0===this.version||this.version===e.versionId;return t&&r&&n&&i}_getRelationWrtMilestone(e){return this.isMilestone===e.isMilestone?"subset":void 0===this.isMilestone||void 0===e.isMilestone?"unknown":"disjoint"}_getRelationWrtCreatedBy(e){if(!this.createdBy&&!e.createdBy)return"subset";if(this.createdBy&&e.createdBy){const t=new Set(this.createdBy);return e.createdBy.every((e=>t.has(e)))?"subset":e.createdBy.some((e=>t.has(e)))?"unknown":"disjoint"}return this.createdBy?"subset":"unknown"}_getRelationWrtDateRange(e){var t,r,n,i;const o=(null===(t=this.createdAfter)||void 0===t?void 0:t.getTime())||-1/0,a=(null===(r=this.createdBefore)||void 0===r?void 0:r.getTime())||1/0,s=(null===(n=e.createdAfter)||void 0===n?void 0:n.getTime())||-1/0,c=(null===(i=e.createdBefore)||void 0===i?void 0:i.getTime())||1/0;return s<=o&&c>=a?"subset":s>a||c<o?"disjoint":"unknown"}_getRelationWrtVersion(e){return this.version===e.version?"subset":void 0===this.version||void 0===e.version?"unknown":"disjoint"}getRelationToFilter(e){const t=[this._getRelationWrtMilestone(e),this._getRelationWrtCreatedBy(e),this._getRelationWrtDateRange(e),this._getRelationWrtVersion(e)];return t.includes("disjoint")?"disjoint":t.every((e=>"subset"===e))?"subset":"unknown"}}ea.BookmarkedVersions=new ea({isMilestone:!0});var ta,ra,na,ia,oa=Object.freeze({__proto__:null,default:ea});class aa extends zi{constructor(e){const t=e.asset;super(Pe(e,["asset"])),this._asset=t}get asset(){return this._asset}get hash(){return[this._asset.id,super.hash].filter((e=>e)).join(":")}matches(e){if(this._asset.repositoryID&&e.repositoryID&&this._asset.repositoryID!==e.repositoryID)return!1;const t=this._asset.repoPath;return(!t||t===e.repoPath.substring(0,e.repoPath.lastIndexOf("/")))&&super.matches(e)}getRelationToFilter(e){const t=this._asset.repoPath,r=e._asset.repoPath;if(t&&r&&t!==r)return"disjoint";const n=this._asset.repositoryID,i=e._asset.repositoryID;return n&&i&&n!==i?"disjoint":!t&&r?"unknown":super.getRelationToFilter(e)}}function sa(e,t){var r,n,i,o;e._embedded||(e._embedded={}),(r=e._embedded)[n=tt.APP_METADATA]||(r[n]={}),(i=e._embedded[tt.APP_METADATA])["cc:inherited"]||(i["cc:inherited"]={}),(o=e._embedded[tt.APP_METADATA]["cc:inherited"])["cc:team"]||(o["cc:team"]={}),e._embedded[tt.APP_METADATA]["cc:inherited"]["cc:team"]["repo:assetId"]=t}!function(e){e[e.Folder=256]="Folder",e[e.File=512]="File",e[e.Composite=1024]="Composite"}(ta||(ta={})),function(e){e[e.InSync=0]="InSync",e[e.OutOfSync=1]="OutOfSync",e[e.SyncConflict=2]="SyncConflict",e[e.SyncError=3]="SyncError",e[e.Syncing=4]="Syncing"}(ra||(ra={})),function(e){e[e.None=0]="None",e[e.CloudContentCorrupted=1]="CloudContentCorrupted",e[e.LocalContentCorrupted=2]="LocalContentCorrupted",e[e.HasTooManyComponents=3]="HasTooManyComponents",e[e.HasTooManyChildren=4]="HasTooManyChildren",e[e.MaximumSizeExceeded=5]="MaximumSizeExceeded",e[e.Unknown=6]="Unknown"}(na||(na={})),function(e){e[e.NoErr=0]="NoErr",e[e.Conflict=1]="Conflict",e[e.DeleteConflict=2]="DeleteConflict",e[e.ParentDeletedConflict=3]="ParentDeletedConflict"}(ia||(ia={}));const ca=new Map([["file",ta.File],["composite",ta.Composite],["directory",ta.Folder]]),la=/^\/[^/]+$|^\/$/;class ua extends wi{constructor(e,t,r){var n;super(e,t),n=this,this._core=e,this._name="",this._etag="",this._repositoryID="",this._path="",this._storageRegion="",this._type="",this._size=0,this._version="",this._assetClass="file",this._assetState="ACTIVE",this._created=new Date,this._modified=new Date,this._createdBy="",this._modifiedBy="",this._permissions=Gr,this._isPublished=!1,this._storageAssignee={id:"",type:"user"},this._isArchivedLibraryElement=!1,this._needsRepoMetadata=!1,this.isProject=!1,this.isLibrary=!1,this.isCustomModel=!1,this._versionPool=new Jo(this._core,"version"),this._linksCameFromResolveAPI=!1,this.isAvailableOffline=!1,this.isUserPinned=!1,this.isNameDCTitle=!1,this._embeddedMetadata=new Si(e,this),this._appMetadata=new Ti(e,this),this._manifest=new Pi(e,this),this._fileContent=new Qo(e,this),this.__links=null==r?void 0:r.links,this._etag=(null==r?void 0:r.etag)||"",this._renditionFetcher=new Gn(this._core,Bn,function(){var e=me(he().mark((function e(t,r){var i;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n._getAssetInterface();case 2:return i=e.sent,e.abrupt("return",i.getRendition(t,r));case 4:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),this._renditionFetcher.on("change",(()=>{this.dispatch({type:"change"})})),this.fr=new FinalizationRegistry((()=>{this._finalizer()})),this.fr.register(this,"adobe-asset"),_i.manageLazyLoading(this,[{event:mo,fetchData:this._populateStorageAssignee}])}get createdFromUpload(){return this.appMetadata.data&&this.appMetadata.data["cc:createdFromUpload"]?!!this.appMetadata.data["cc:createdFromUpload"]:this._createdFromUpload}get createdByClientId(){return this._createdByClientId}_getAssetContext(){const e=this._core._getAssetContext();if(!e)throw we.create(ge.UNSUPPORTED,"AdobeAsset was used outside of AssetContext and initializeSharedAssetModel() was not called first.");return e}_finalizer(){this._renditionFetcher.release()}_loadWithRetry(){return this._load()}_getAssetInterface(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e._getAssetContext(),t.abrupt("return",new fi(r._rapi,e.id,e.links,e.etag));case 2:case"end":return t.stop()}}),t)})))()}get _resources(){return new Map([["embeddedMetadata",this._embeddedMetadata],["appMetadata",this._appMetadata],["manifest",this._manifest],["fileContent",this._fileContent]])}_reloadPermissions(){var e=this;return me(he().mark((function t(){var r,n,i,o,a,s,c;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={},n=void 0,t.prev=2,t.next=5,e._ensureLink(tt.AC_EFFECTIVE);case 5:return t.next=7,e._getAssetInterface();case 7:return i=t.sent,t.next=10,i.getEffectivePermissions();case 10:(o=t.sent)&&(r.effectivePermission=o),t.next=17;break;case 14:t.prev=14,t.t0=t.catch(2),n=t.t0;case 17:if(!n){t.next=23;break}if(![ge.NOT_FOUND,ge.ACCESS_DENIED].includes(n.code)){t.next=22;break}r.effectivePermission=n.code===ge.ACCESS_DENIED?Br.Ack:Br.None,t.next=23;break;case 22:throw n;case 23:return t.next=25,e._getAssetContext();case 25:if(a=t.sent,!(s=[Br.Ack,Br.None].includes(r.effectivePermission))||!a._assetPool.isItemDiscarded(e)){t.next=33;break}return e._isShared=!1,e._isSharedWithYouAsset=!1,e._shareFlagsAreDirty=!1,_i.setLoadStatus(e,Cr,bi.Loaded),t.abrupt("return");case 33:c=a._assetPool.createMutationSession(),s?(r.isShared=!1,r.sharedViaInvite=!1,r.shareFlagsAreDirty=!1,_i.setLoadStatus(e,Cr,bi.Loaded),c.queueDiscardedItem(e)):(r.shareFlagsAreDirty=!0,_i.setLoadStatus(e,Cr,bi.NotLoaded)),a._adobeAssetUpdater.updateLocalItem(c,e,r),c.commit();case 37:case"end":return t.stop()}}),t,null,[[2,14]])})))()}_load({repoMetadata:e,appMetadata:t,effectivePermission:r}={}){var n=this;return me(he().mark((function i(){var o,a,s,c,l,u,d,p,h,f,m,g;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=void 0,s={},i.prev=2,i.next=5,n._ensureLink(tt.REPO_METADATA);case 5:return i.next=7,n._getAssetInterface();case 7:return a=i.sent,i.next=10,Promise.allSettled([e?Promise.resolve(e):a.getRepoMetadata(),r?Promise.resolve(r):a.getEffectivePermissions()]);case 10:c=i.sent,e="fulfilled"===c[0].status?c[0].value:void 0,l="fulfilled"===c[1].status?c[1].value:void 0,o=c.map((e=>"rejected"===e.status&&e.reason)).find((e=>e)),n._linksCameFromResolveAPI=void 0!==e,s=e||{},l&&(s.effectivePermission=l),i.next=22;break;case 19:i.prev=19,i.t0=i.catch(2),o=i.t0;case 22:if(!o){i.next=30;break}if(![ge.NOT_FOUND,ge.ACCESS_DENIED].includes(o.code)){i.next=27;break}s.effectivePermission=o.code===ge.ACCESS_DENIED?Br.Ack:Br.None,i.next=28;break;case 27:throw o;case 28:i.next=36;break;case 30:if(u=[...n._resources.values()].filter((e=>e.isLoaded)),void 0!==n.shellVisibility||la.test(s["repo:path"])||u.includes(n._appMetadata)||!s.effectivePermission||(s.effectivePermission&Br.ReadAppMetadata)!==Br.ReadAppMetadata||u.push(n._appMetadata),t&&(n._appMetadata._setData(t),-1!==(d=u.indexOf(n._appMetadata))&&u.splice(d,1)),!u.length){i.next=36;break}return i.next=36,Promise.all(u.map((e=>e.load())));case 36:if(p=n._getAssetContext(),!(h=[Br.Ack,Br.None].includes(s.effectivePermission))||!p._assetPool.isItemDiscarded(n)){i.next=44;break}return n._isShared=!1,n._isSharedWithYouAsset=!1,n._shareFlagsAreDirty=!1,_i.setLoadStatus(n,Cr,bi.Loaded),i.abrupt("return");case 44:if(!((f="directory"===s["repo:assetClass"]||n.isFolder)&&!n.isProject||h)){i.next=49;break}i.t1=void 0,i.next=52;break;case 49:return i.next=51,a.getLastAccessed();case 51:i.t1=i.sent;case 52:m=i.t1,g=p._assetPool.createMutationSession(),f&&s["repo:path"]&&s["repo:path"]!==n.repoPath&&Qn({assetPool:p._assetPool,asset:n,session:g,operation:{type:"rename",newPath:s["repo:path"]},assetContext:p}),p._adobeAssetUpdater.updateLocalItem(g,n,Object.assign(Object.assign({},s),{lastAccessed:m})),h&&(n._isShared=!1,n._isSharedWithYouAsset=!1,n._shareFlagsAreDirty=!1,_i.setLoadStatus(n,Cr,bi.Loaded),g.queueDiscardedItem(n)),s["storage:assignee"]&&n._storageAssignee_NoLazyLoad.id===s["storage:assignee"].id&&_i.updatedByItemUpdater(n,fo),g.commit();case 59:case"end":return i.stop()}}),i,null,[[2,19]])})))()}get versions(){const e=new Vo(this._versionPool,this._ensureLink(tt.PAGE).then((()=>this._getAssetInterface())));return new Uo(this._versionPool,[e],new ea)}getVersions(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.versions);case 1:case"end":return t.stop()}}),t)})))()}getCommentsResource(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e._getAssetContext(),t.abrupt("return",r.getCommentsResource(e.id));case 2:case"end":return t.stop()}}),t)})))()}get assetType(){return gi("AdobeAsset.assetType","AdobeAsset.assetType is deprecated and will be removed on or after 2024-10-01. Please use isFolder, isFile, isComposite, etc. instead"),ca.get(this._assetClass)}get isFolder(){return"directory"===this._assetClass}get isAssignment(){return this.appMetadata.data?"assignment"===this.appMetadata.data["project:directoryType"]:void 0}get isFile(){return"file"===this._assetClass}get isStudentAssignment(){var e,t;return this.appMetadata.data?!!(null===(t=null===(e=this.appMetadata.data["cc:inheritable"])||void 0===e?void 0:e["cc:studentAssignment"])||void 0===t?void 0:t["repo:assetId"]):void 0}get isComposite(){return"composite"===this._assetClass}get isLibraryElement(){return"element"===this._assetClass}get imageLength(){return this._imageLength}get imageWidth(){return this._imageWidth}get parentAssignmentID(){var e,t,r;return null===(r=null===(t=null===(e=this.appMetadata.data)||void 0===e?void 0:e["cc:inherited"])||void 0===t?void 0:t["cc:assignment"])||void 0===r?void 0:r["repo:assetId"]}get isChildOfAssignment(){return!!this.parentAssignmentID}get parentClassroomId(){var e,t,r;return null===(r=null===(t=null===(e=this.appMetadata.data)||void 0===e?void 0:e["cc:inherited"])||void 0===t?void 0:t["cc:classroom"])||void 0===r?void 0:r["repo:assetId"]}get isChildOfClassroom(){return!!this.parentClassroomId}get parentAssignmentMaterialsId(){var e,t,r;return null===(r=null===(t=null===(e=this.appMetadata.data)||void 0===e?void 0:e["cc:inherited"])||void 0===t?void 0:t["cc:assignmentMaterials"])||void 0===r?void 0:r["repo:assetId"]}get isChildOfAssignmentMaterials(){return!!this.parentAssignmentMaterialsId}get parentStudentAssignmentId(){var e,t,r;return null===(r=null===(t=null===(e=this.appMetadata.data)||void 0===e?void 0:e["cc:inherited"])||void 0===t?void 0:t["cc:studentAssignment"])||void 0===r?void 0:r["repo:assetId"]}get isChildOfStudentAssignment(){return!!this.parentStudentAssignmentId}_isPathInsideProject(){return["/projects/[^/]+/[^/]+","/content/assets/projects/[^/]+/[^/]+","/users/[^/]+/projects/[^/]+/[^/]+"].some((e=>new RegExp(e).test(this._path)))}get parentProjectID(){var e,t,r;const n=null===(r=null===(t=null===(e=this.appMetadata.data)||void 0===e?void 0:e["cc:inherited"])||void 0===t?void 0:t["cc:team"])||void 0===r?void 0:r["repo:assetId"],i=this._ancestorIDs&&!this._ancestorIDs.includes(n);return n&&!i||!this._isPathInsideProject()||this._fixParentProjectID(),n}_fixParentProjectID(){var e=this;return me(he().mark((function t(){var r,n,i;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.getProjectContext();case 2:return r=t.sent,t.next=5,r._callContextAPI(e.cloudID,e.repositoryID);case 5:n=t.sent,(i=n["repo:assetId"])&&e.appMetadata._mergeData({"cc:inherited":{"cc:team":{"repo:assetId":i}}});case 8:case"end":return t.stop()}}),t)})))()}get isChildOfProject(){return!!this.parentProjectID}get isArtifact(){if(this.appMetadata.data)return!!this.appMetadata.data["review:sourceAsset"]}get needsRepoMetadata(){return this._needsRepoMetadata}get isReviewLink(){return!!this.repoPath.startsWith("/pubs/")||this.isArtifact}get reviewLinkSourceType(){var e;return this.isReviewLink?(null===(e=this.appMetadata.data)||void 0===e?void 0:e[kr.REVIEW_SOURCE_ASSET]["dc:format"])||(["application/vnd.adobe.xd.sharedartifact+dcx","application/vnd.adobe.xd.cloudproject+dcx"].includes(this.mediaType)?"application/vnd.adobe.xd.cloudproject+dcx":this.repoPath.startsWith("/pubs/aero/v5/")?"application/vnd.adobe.real+dcx":this.repoPath.startsWith("/pubs/id_review/")?"legacy-INDD":this.repoPath.startsWith("/pubs/")?"3d/vnd.adobe.asd+dcx":""):""}get name(){return $n(this._name)}get displayName(){}get shellVisibility(){if(void 0!==this._appMetadata.data)return this._appMetadata.data["shell:visibility"]||""}get ancestorIDs(){return this._ancestorIDs}get storageAssignee(){return this._storageAssignee}get _storageAssignee_NoLazyLoad(){return this._storageAssignee}get extension(){return this.name.lastIndexOf(".")>0&&!this.isFolder?this.name.substring(this.name.lastIndexOf(".")+1):""}get mediaType(){return this._type}get cloudID(){return this.id}get repositoryID(){return this._repositoryID}get repositoryName(){return void 0===this._repositoryName&&this._populateRepositoryName(),this._repositoryName}get repoPath(){return this._path}get storageRegion(){return this._storageRegion}get created(){return this._created}get modified(){return this._modified}get lastAccessed(){return this._lastAccessed}updateLastAccessed(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isFolder||e.isProject){t.next=3;break}return gi("AdobeAsset.updateLastAccessed","updateLastAccessed API is not allowed on folders"),t.abrupt("return");case 3:return t.next=5,e._ensureLink(tt.PERUSER_METADATA);case 5:return t.next=7,e._getAssetInterface();case 7:return r=t.sent,n=new Date,t.next=11,r.patchLastAccessed(n);case 11:i=e._getAssetContext(),o=i._assetPool.createUpdateSession(),i._adobeAssetUpdater.updateLocalItem(o,e,{lastAccessed:n}),o.commit();case 15:case"end":return t.stop()}}),t)})))()}get shared(){return this._shared}get sizeInBytes(){return this._size}get isDiscarded(){return this._isArchivedLibraryElement||void 0!==Xn(this.repoPath)||["DISCARDED","DISCARDED_PARENT"].includes(this._assetState)}get assetRefString(){return JSON.stringify({cloud_id:this.cloudID,path:this.repoPath,display_name:this.name,repository_id:this.repositoryID})}get isPublished(){return this._isPublished}get children(){if(!this.isFolder)throw we.create(ge.BAD_REQUEST,"Children list can be fetched only for folder");const e=this.isProject||this.isChildOfProject,t=new eo(this._core._getAssetPool(),this,this._core,e),r=new aa({asset:this,_isSharedWithYou:!0}),n=this._getAssetContext();return new Uo(n._assetPool,[t],r)}searchChildren(e){if(!this.isFolder)throw we.create(ge.BAD_REQUEST,"Children can be searched only in the folder");const t=e.deepSearch,r=e.query,n=new Vi({asset:this,deepSearch:t,query:r}),i=this._getAssetContext(),o=new vo(this._core._getAssetPool(),this._core,i._adobeAssetSearchInterface,this,n);return new Uo(this._core._getAssetPool(),[o],n)}discard(){var e=this;return me(he().mark((function t(){var r,n,i,o,a;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isDiscarded){t.next=2;break}throw we.create(ge.INVALID_OPERATION,"Asset is already discarded");case 2:return t.next=4,e._getAssetInterface();case 4:return r=t.sent,t.next=7,r.discard();case 7:n=t.sent,i=e._getAssetContext(),e._hasArtifacts&&i._deleteAssetOutputsFolder(e),n&&(o=e._core._getAssetPool(),a=o.createUpdateSession(),i._adobeAssetUpdater.updateLocalItem(a,e,n),e.isFolder&&Qn({assetPool:o,asset:e,session:a,operation:{type:"discard"},assetContext:i}),a.commit());case 11:case"end":return t.stop()}}),t)})))()}get hasArtifacts(){return this._hasArtifacts}_clearRepositoryName(){this._repositoryName=void 0,this.emit("change")}_populateRepositoryName(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e._repositoryName){t.next=2;break}return t.abrupt("return");case 2:return r=e._getAssetContext(),n=e._core._getAssetPool(),t.next=6,r._repositoryNameFromID(e._repositoryID);case 6:(i=t.sent)&&(o=n.createUpdateSession(),r._adobeAssetUpdater.updateLocalItem(o,e,{repositoryName:i}),o.commit());case 8:case"end":return t.stop()}}),t)})))()}_populateStorageAssignee(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.hostAssetContext._getStorageAssigneeFromID(e._repositoryID);case 2:(r=t.sent)&&(e._storageAssignee=r);case 4:case"end":return t.stop()}}),t)})))()}createFolder(e,t=!1,r=0){var n=this;return me(he().mark((function i(){var o,a,s,c,l;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(n.isFolder){i.next=2;break}throw we.create(ge.INVALID_OPERATION,"Asset is not Folder");case 2:if(zn(e)){i.next=4;break}throw we.create(ge.BAD_REQUEST,"Invalid name provided for asset create folder operation.");case 4:return i.prev=4,o=e,i.next=8,n._ensureLink(tt.CREATE);case 8:return i.next=10,n._getAssetInterface();case 10:return a=i.sent,i.next=13,a.createFolder(o);case 13:if(s=i.sent,c=n._getAssetContext(),!s){i.next=18;break}return(n.isProject||n.isChildOfProject)&&sa(s,n.isChildOfProject?n.parentProjectID:n.id),i.abrupt("return",c._createAssetFromMetadata(s));case 18:return i.next=20,c.getAssetWithRepoPath(`${n.repoPath}/${o}`,n.repositoryID);case 20:return i.abrupt("return",i.sent);case 23:if(i.prev=23,i.t0=i.catch(4),i.t0.code!==ge.CONFLICT||!t){i.next=28;break}return l=Yn(e,n._core._environment.getValue("ASSET_CONFLICT_NAME_FORMAT"),r+1),i.abrupt("return",n.createFolder(l.newName,t,l.countUsed));case 28:throw i.t0;case 29:case"end":return i.stop()}}),i,null,[[4,23]])})))()}_setCreatedFromUploadData(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.patchAppMetadata([{op:"add",path:"/cc:createdFromUpload",value:!0}]);case 2:return t.next=4,e.updateLastAccessed();case 4:case"end":return t.stop()}}),t)})))()}importFile(e,t,r,n=!1,i=0,o=!0){var a=this;return me(he().mark((function s(){var c,l,u,d,p,h;return he().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(a.isFolder){s.next=2;break}throw we.create(ge.INVALID_OPERATION,"Asset is not Folder");case 2:if("string"!=typeof e){s.next=4;break}throw we.create(ge.BAD_REQUEST,"Unsupported string for file to import");case 4:if(zn(t)){s.next=6;break}throw we.create(ge.BAD_REQUEST,"Invalid name provided for file import operation.");case 6:return s.prev=6,c=t,s.next=10,a._ensureLink(tt.CREATE);case 10:return s.next=12,a._ensureLink(tt.BLOCK_INITIALIZE);case 12:return s.next=14,a._getAssetInterface();case 14:return l=s.sent,s.next=17,l.importFile(e,c,r);case 17:if(u=s.sent,p=a._getAssetContext(),!u){s.next=24;break}(a.isProject||a.isChildOfProject)&&sa(u,a.isChildOfProject?a.parentProjectID:a.id),d=p._createAssetFromMetadata(u),s.next=27;break;case 24:return s.next=26,p.getAssetWithRepoPath(`${a.repoPath}/${c}`,a.repositoryID);case 26:d=s.sent;case 27:if(!o){s.next=30;break}return s.next=30,d._setCreatedFromUploadData();case 30:return s.abrupt("return",d);case 33:if(s.prev=33,s.t0=s.catch(6),s.t0.code!==ge.CONFLICT||!n){s.next=38;break}return h=Yn(t,a._core._environment.getValue("ASSET_CONFLICT_NAME_FORMAT"),i+1),s.abrupt("return",a.importFile(e,h.newName,r,n,i+1));case 38:throw s.t0;case 39:case"end":return s.stop()}}),s,null,[[6,33]])})))()}getDownloadURL(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._ensureLink(tt.PRIMARY);case 2:return t.next=4,e._getAssetInterface();case 4:if(r=t.sent,!(e._size<10485760)){t.next=17;break}return t.next=8,r.getContent();case 8:if((n=t.sent).content){t.next=11;break}throw we.create(ge.INTERNAL_ERROR,"Cannot fetch blob");case 11:if(null==(i=URL.createObjectURL(n.content))?void 0:i.length){t.next=14;break}throw we.create(ge.INTERNAL_ERROR,"Cannot convert blob to URL");case 14:return t.abrupt("return",i);case 17:return t.next=19,e._ensureLink(tt.DOWNLOAD);case 19:return o=ot(e.__links,tt.DOWNLOAD),t.next=22,r.getBlockDownloadURL(o);case 22:return t.abrupt("return",t.sent);case 23:case"end":return t.stop()}}),t)})))()}get fileContent(){if(!this.isFile)throw we.create(ge.BAD_REQUEST,"Cannot get content of an asset that is not a file");return this._fileContent}commitFileChanges(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r.isFile){n.next=2;break}throw we.create(ge.INVALID_OPERATION,"Asset is not File");case 2:return n.prev=2,n.next=5,r._ensureLink(tt.PRIMARY);case 5:return n.next=7,r._getAssetInterface();case 7:return i=n.sent,n.next=10,i.commitFileChanges(e,t);case 10:return o=n.sent,r._fileContent.isLoaded&&r._fileContent._setContent(e,o.eTag),n.abrupt("return",{status:ia.NoErr,committedEtag:o.eTag});case 15:if(n.prev=15,n.t0=n.catch(2),!(n.t0 instanceof we)){n.next=32;break}if(n.t0.code!==ge.CONFLICT){n.next=20;break}return n.abrupt("return",{status:ia.Conflict});case 20:if(n.t0.code!==ge.NOT_FOUND){n.next=32;break}return a=r.repoPath.substring(0,r.repoPath.lastIndexOf("/")),s=!1,n.next=25,r._getAssetContext().getAssetWithRepoPath(a,r.repositoryID).catch((e=>{const t=e;if(ge.NOT_FOUND!==t.code)throw e;s=!0}));case 25:if(c=n.sent,!s){n.next=28;break}return n.abrupt("return",{status:ia.ParentDeletedConflict});case 28:return n.next=30,null==c?void 0:c.importFile(e,r.name);case 30:return l=n.sent,n.abrupt("return",{status:ia.DeleteConflict,newAsset:l});case 32:throw n.t0;case 33:case"end":return n.stop()}}),n,null,[[2,15]])})))()}restore(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l,u,d,p,h,f;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r.isDiscarded){n.next=2;break}throw we.create(ge.INVALID_OPERATION,"Cannot restore an asset that is not discarded");case 2:if(o=r._getAssetContext(),!r.isLibraryElement){n.next=11;break}return n.next=6,o.restoreLibraryElement(r.cloudID);case 6:(a=o._assetPool.createUpdateSession()).queueDiscardedItem(r),a.commit(),n.next=45;break;case 11:if(!(c=Xn(r.repoPath,e))){n.next=18;break}return n.next=15,r._move(c,!0);case 15:s=n.sent,n.next=44;break;case 18:return n.next=20,r._getAssetInterface();case 20:return l=n.sent,n.prev=21,n.next=24,l.restore(e||r.name);case 24:s=n.sent,n.next=44;break;case 27:if(n.prev=27,n.t0=n.catch(21),(u=n.t0).code!==ge.CONFLICT){n.next=35;break}return d=Yn(e||r.name,r._core._environment.getValue("ASSET_CONFLICT_NAME_FORMAT"),(t||0)+1),p=d.newName,h=d.countUsed,n.abrupt("return",r.restore(p,h));case 35:if(u.code!==ge.ACCESS_DENIED){n.next=43;break}if(!(null===(i=r.ancestorIDs)||void 0===i?void 0:i.length)){n.next=43;break}return f=r.ancestorIDs[r.ancestorIDs.length-1],n.next=40,o.getAssetWithCloudID(f);case 40:if(!n.sent.isDiscarded){n.next=43;break}throw we.create(ge.PARENT_DISCARDED,"Parent folder is discarded");case 43:throw u;case 44:s&&(a=o._assetPool.createUpdateSession(),o._adobeAssetUpdater.updateLocalItem(a,r,s),r.isFolder&&s["repo:path"]&&Qn({assetPool:o._assetPool,asset:r,session:a,operation:{type:"restore",newPath:s["repo:path"]},assetContext:o}),a.commit());case 45:case"end":return n.stop()}}),n,null,[[21,27]])})))()}permanentlyDelete(){var e=this;return me(he().mark((function t(){var r,n,i;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e._getAssetContext(),!e.isLibraryElement){t.next=9;break}return t.next=4,r.permanentlyDeleteLibraryElement(e.cloudID);case 4:(n=r._assetPool.createUpdateSession()).queueDiscardedItem(e),n.commit(),t.next=14;break;case 9:return t.next=11,r.permanentlyDeleteAssets([e]);case 11:if(!(i=t.sent).failedResults.length){t.next=14;break}throw i.failedResults[0].error;case 14:case"end":return t.stop()}}),t)})))()}get etag(){return this._etag}get version(){return this._version}get createdBy(){return this._createdBy}get modifiedBy(){return this._modifiedBy}get discarded(){return this._discarded}get discardedBy(){return this._discardedBy}hasPermission(...e){return e.every((e=>(this._permissions&e)===e))}get invitationServiceCapabilities(){let e="none";return this.hasPermission(Br.Read)&&(e=this.hasPermission(Br.Write)?this.hasPermission(Br.Ack)?"owner":"editor":"viewer"),{canComment:this.hasPermission(Br.WriteComment),canShare:this.hasPermission(Br.Share),role:e}}isReadOnly(){return this.hasPermission(Br.Read)&&!this.hasPermission(Br.Write)}get embeddedMetadata(){return this._embeddedMetadata}get appMetadata(){return this._appMetadata}patchAppMetadata(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._appMetadata._patch(e);case 2:case"end":return r.stop()}}),r)})))()}get manifest(){if(!this.isComposite)throw we.create(ge.BAD_REQUEST,"Cannot get manifest of an asset that is not a composite");return this._manifest}_releaseRenditions(){this._renditionFetcher.release()}getRenditionURL(e,t=Fn.PNG){return this.isFolder||this.isLibraryElement&&!this.links[tt.RENDITION]?"":this._renditionFetcher.getURL(e,t,this.etag)}get thumbnailURL(){return this.getRenditionURL(Zn,Fn.PNG)}get thumbnailStatus(){return this.renditionURLStatus(Zn,Fn.PNG)}getCustomRendition({size:e,type:t,urlTemplateOptions:r,additionalHeaders:n}={}){var i=this;return me(he().mark((function o(){var a;return he().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,i._ensureLink(tt.RENDITION);case 2:return o.next=4,i._getAssetInterface();case 4:return a=o.sent,o.abrupt("return",a.getCustomRendition({size:e,type:t,urlTemplateOptions:r,additionalHeaders:n}));case 6:case"end":return o.stop()}}),o)})))()}getAllCustomRenditions({type:e,urlTemplateOptions:t,additionalHeaders:r}={}){var n=this;return me(he().mark((function i(){var o;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n._ensureLink(tt.RENDITION);case 2:return i.next=4,n._getAssetInterface();case 4:return o=i.sent,i.abrupt("return",o.getAllCustomRenditions({type:e,urlTemplateOptions:t,additionalHeaders:r}));case 6:case"end":return i.stop()}}),i)})))()}clearRenditionError(e=Zn,t=Fn.PNG){this._renditionFetcher.clearRenditionError(e,t,this.etag)}renditionURLStatus(e,t){return this.isFolder||this.isLibraryElement&&!this.links[tt.RENDITION]?Mn.Done:this._renditionFetcher.renditionURLStatus(e,t,this.etag)}get spaceID(){var e,t,r;return gi("AdobeAsset.spaceID","AdobeAsset.spaceID is deprecated and will be removed on or after 2024-10-01."),null===(r=null===(t=null===(e=this.appMetadata.data)||void 0===e?void 0:e["cc:inherited"])||void 0===t?void 0:t["cc:space"])||void 0===r?void 0:r["repo:assetId"]}get isSpaceAsset(){return gi("AdobeAsset.isSpaceAsset","AdobeAsset.isSpaceAsset is deprecated and will be removed on or after 2024-10-01."),!!this.spaceID}getSpace(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return gi("AdobeAsset.getSpace","AdobeAsset.getSpace is deprecated and will be removed on or after 2024-10-01."),t.next=3,e._core.spaceContext.getEnclosingSpace(e.cloudID);case 3:if(r=t.sent){t.next=6;break}throw we.create(ge.NOT_FOUND,"Asset does not belong to a Space");case 6:return t.abrupt("return",r);case 7:case"end":return t.stop()}}),t)})))()}get links(){return Object.assign({},this.__links)}get _canLoadNewChildrenFromONSNotification(){return!0}_ensureLink(e){var t=this;return me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(null===(n=t.__links)||void 0===n?void 0:n[e])){r.next=2;break}return r.abrupt("return");case 2:return i=t._getAssetContext(),r.next=5,i._rapi.getAssetLinks(t.cloudID);case 5:o=r.sent,a=i._assetPool.createUpdateSession(),i._adobeAssetUpdater.updateLocalItem(a,t,{_links:Object.assign(Object.assign({},t.__links),o)}),a.commit();case 9:case"end":return r.stop()}}),r)})))()}_move(e,t=!1,r=0){var n=this;return me(he().mark((function i(){var o,a,s,c;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(i.prev=0,n._repositoryID){i.next=4;break}return i.next=4,n._load();case 4:return o={op:"move",source:{"repo:assetId":n.id,"repo:repositoryId":n._repositoryID},target:{"repo:path":e,"repo:repositoryId":n._repositoryID}},i.next=7,n._getAssetInterface();case 7:return a=i.sent,i.next=10,a.runOperation(o);case 10:return s=i.sent,i.abrupt("return",s.asset);case 14:if(i.prev=14,i.t0=i.catch(0),i.t0.code!==ge.CONFLICT||!t){i.next=19;break}return c=Yn(e,n._core._environment.getValue("ASSET_CONFLICT_NAME_FORMAT"),r+1),i.abrupt("return",n._move(c.newName,!0,c.countUsed));case 19:throw i.t0;case 20:case"end":return i.stop()}}),i,null,[[0,14]])})))()}_copy(e,t,r=!0,n=0,i){var o=this;return me(he().mark((function a(){var s;return he().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s={failedResults:[],newModels:[]},a.next=3,Nn.runExclusiveTask("copy",[o],me(he().mark((function r(){var a,c,l,u,d,p;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=o._finalizePath(e.repoPath,t,n),c=a.path,l=a.counter,n=l,(u=new Map).set(o.id,o),e.repositoryID){r.next=7;break}return r.next=7,e._load();case 7:return d=o._getCopyOp(e.repositoryID,c),p=o._getAssetContext(),r.next=11,p._runOperations([d],u,i||((e,t,r)=>{if(!r)throw we.create(ge.UNKNOWN,"Missing metadata from asset copy operation.");return p._adobeAssetUpdater.updateRemoteItem(e,r)}));case 11:s=r.sent;case 12:case"end":return r.stop()}}),r)}))));case 3:if(!s.failedResults.length){a.next=9;break}if(s.failedResults[0].error.code!==ge.CONFLICT||!0!==r){a.next=8;break}return a.next=7,o._copy(e,t,r,n+1);case 7:return a.abrupt("return",a.sent);case 8:throw s.failedResults[0].error;case 9:return a.abrupt("return",s.newModels[0]);case 10:case"end":return a.stop()}}),a)})))()}_copyWithDestMetadata(e,t,r,n=!0,i=0,o){var a=this;return me(he().mark((function s(){var c,l;return he().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return c={failedResults:[],newModels:[]},s.next=3,a._getAssetContext();case 3:return l=s.sent,s.next=6,Nn.runExclusiveTask("copy",[a],me(he().mark((function n(){var s,u,d,p,h;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s=a._finalizePath(t,r,i),u=s.path,d=s.counter,i=d,(p=new Map).set(a.id,a),h=a._getCopyOp(e,u),n.next=7,l._runOperations([h],p,o||((e,t,r)=>{if(!r)throw we.create(ge.UNKNOWN,"Missing metadata from asset copy operation.");return l._adobeAssetUpdater.updateRemoteItem(e,r)}));case 7:c=n.sent;case 8:case"end":return n.stop()}}),n)}))));case 6:if(!c.failedResults.length){s.next=12;break}if(c.failedResults[0].error.code!==ge.CONFLICT||!0!==n){s.next=11;break}return s.next=10,a._copyWithDestMetadata(e,t,r,n,i+1);case 10:return s.abrupt("return",s.sent);case 11:throw c.failedResults[0].error;case 12:return s.abrupt("return",c.newModels[0]);case 13:case"end":return s.stop()}}),s)})))()}_finalizePath(e,t,r=0){let n=this.name;if(void 0!==t){if(!zn(t))throw we.create(ge.BAD_REQUEST,"Invalid name provided for asset copy operation.");if(n=t,r){const e=Yn(n,this._core._environment.getValue("ASSET_CONFLICT_NAME_FORMAT"),r);n=e.newName,r=e.countUsed}}else{const t=e===this.repoPath.substring(0,this.repoPath.lastIndexOf("/"))?Yn(n,this._core._environment.getValue("ASSET_COPY_NAME_FORMAT"),r):r>0?Yn(n,this._core._environment.getValue("ASSET_CONFLICT_NAME_FORMAT"),r):{newName:n,countUsed:r};n=t.newName,r=t.countUsed}return{path:`${e}/${n}`,counter:r}}_getCopyOp(e,t){const r=[{reltype:tt.PRIMARY}];"application/pdf"===this.mediaType&&r.push({reltype:tt.APP_METADATA});const n={op:"copy",id:this.id,source:{"repo:assetId":this.id},target:{"repo:path":t,"repo:repositoryId":e},includeResources:r};return this.repositoryID&&(n.source["repo:repositoryId"]=this.repositoryID),n}copy(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._copy(e,t);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()}duplicate(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.ancestorIDs.slice(-1)[0],r.next=3,t._getAssetContext().getAssetWithCloudID(n);case 3:return i=r.sent,r.next=6,t._copy(i,e);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r)})))()}rename(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(zn(e)){r.next=2;break}throw we.create(ge.BAD_REQUEST,"Invalid name provided for asset rename operation.");case 2:return n=t._getAssetContext(),i=Jn(e,t),r.next=6,t._move(i);case 6:(o=r.sent)&&(a=n._assetPool,s=a.createUpdateSession(),t.isFolder&&Qn({assetPool:a,asset:t,session:s,operation:{type:"rename",newPath:i},assetContext:n}),n._adobeAssetUpdater.updateLocalItem(s,t,o),s.commit());case 8:case"end":return r.stop()}}),r)})))()}move(e,t){var r=this;return me(he().mark((function n(){var i,o;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t&&(i=new Map([[r.id,t]])),n.next=3,r._getAssetContext().moveAssets([r],e,i);case 3:if(!(o=n.sent).failedResults.length){n.next=6;break}throw o.failedResults[0].error;case 6:case"end":return n.stop()}}),n)})))()}transferToSpace(e){return gi("AdobeAsset.transferToSpace","AdobeAsset.transferToSpace is deprecated and will be removed on or after 2024-10-01."),this._getAssetContext().transfer(this,e)}}function da(e){var t;return void 0!==e.effectivePermission?e.effectivePermission:(null===(t=e._embedded)||void 0===t?void 0:t[tt.AC_EFFECTIVE])?Ur(e._embedded[tt.AC_EFFECTIVE]):Ni}Ie([$e],ua.prototype,"createdFromUpload",null),Ie([$e],ua.prototype,"createdByClientId",null),Ie([It],ua.prototype,"_loadWithRetry",null),Ie([Ue],ua.prototype,"versions",null),Ie([$e],ua.prototype,"assetType",null),Ie([$e],ua.prototype,"isFolder",null),Ie([$e],ua.prototype,"isAssignment",null),Ie([$e],ua.prototype,"isFile",null),Ie([$e],ua.prototype,"isComposite",null),Ie([$e],ua.prototype,"isLibraryElement",null),Ie([$e],ua.prototype,"imageLength",null),Ie([$e],ua.prototype,"imageWidth",null),Ie([$e],ua.prototype,"parentAssignmentID",null),Ie([$e],ua.prototype,"isChildOfAssignment",null),Ie([$e],ua.prototype,"parentClassroomId",null),Ie([$e],ua.prototype,"isChildOfClassroom",null),Ie([$e],ua.prototype,"parentAssignmentMaterialsId",null),Ie([$e],ua.prototype,"isChildOfAssignmentMaterials",null),Ie([$e],ua.prototype,"parentStudentAssignmentId",null),Ie([$e],ua.prototype,"isChildOfStudentAssignment",null),Ie([$e],ua.prototype,"parentProjectID",null),Ie([Ue],ua.prototype,"_fixParentProjectID",null),Ie([$e],ua.prototype,"isChildOfProject",null),Ie([$e],ua.prototype,"isArtifact",null),Ie([$e],ua.prototype,"name",null),Ie([$e],ua.prototype,"shellVisibility",null),Ie([$e],ua.prototype,"ancestorIDs",null),Ie([Ei(mo,"_storageAssignee")],ua.prototype,"storageAssignee",null),Ie([$e],ua.prototype,"extension",null),Ie([$e],ua.prototype,"mediaType",null),Ie([$e],ua.prototype,"cloudID",null),Ie([$e],ua.prototype,"repositoryID",null),Ie([$e],ua.prototype,"repositoryName",null),Ie([$e],ua.prototype,"repoPath",null),Ie([$e],ua.prototype,"storageRegion",null),Ie([$e],ua.prototype,"created",null),Ie([$e],ua.prototype,"modified",null),Ie([$e],ua.prototype,"lastAccessed",null),Ie([$e],ua.prototype,"shared",null),Ie([$e],ua.prototype,"sizeInBytes",null),Ie([$e],ua.prototype,"isDiscarded",null),Ie([$e],ua.prototype,"assetRefString",null),Ie([$e],ua.prototype,"isPublished",null),Ie([Ue],ua.prototype,"children",null),Ie([$e],ua.prototype,"hasArtifacts",null),Ie([$e],ua.prototype,"etag",null),Ie([$e],ua.prototype,"version",null),Ie([$e],ua.prototype,"createdBy",null),Ie([$e],ua.prototype,"modifiedBy",null),Ie([$e],ua.prototype,"discarded",null),Ie([$e],ua.prototype,"discardedBy",null),Ie([$e],ua.prototype,"hasPermission",null),Ie([$e],ua.prototype,"invitationServiceCapabilities",null),Ie([$e],ua.prototype,"appMetadata",null),Ie([$e],ua.prototype,"getRenditionURL",null),Ie([$e],ua.prototype,"thumbnailURL",null),Ie([$e],ua.prototype,"thumbnailStatus",null),Ie([$e],ua.prototype,"renditionURLStatus",null),Ie([$e],ua.prototype,"spaceID",null),Ie([$e],ua.prototype,"links",null);const pa={parse:e=>e,isEqual:(e,t)=>(null==e?void 0:e.id)===(null==t?void 0:t.id)&&(null==e?void 0:e.type)===(null==t?void 0:t.type)},ha=new Di({localItemType:ua,remoteIdProperty:"repo:assetId",changeEventMap:new Map([["_isShared",Cr],["_isSharedWithYouAsset",Cr]]),propertyUpdater:new Hi({_name:"repo:name",_etag:"repo:etag",_repositoryID:"repo:repositoryId",_repositoryName:"repositoryName",_path:"repo:path",_storageRegion:"storage:region",_type:"dc:format",_size:{name:"repo:size",format:"number"},_version:"repo:version",_assetClass:{name:"repo:assetClass",choices:Ii},_assetState:{name:"repo:state",choices:Ai},_created:{name:"storage:deviceCreateDate",format:"date"},_modified:{name:"storage:deviceModifyDate",format:"date"},_lastAccessed:{name:"lastAccessed",format:"date"},_storageAssignee:{name:"storage:assignee",format:pa},_discarded:{name:"repo:discardDate",format:"date"},_createdBy:"repo:createdBy",_modifiedBy:"repo:modifiedBy",_discardedBy:"repo:discardedBy",_imageLength:{name:"tiff:imageLength",format:"number"},_imageWidth:{name:"tiff:imageWidth",format:"number"},_permissions:{get:da,format:"number"},_isShared:{name:"isShared",format:"boolean"},_isSharedWithYouAsset:{name:"sharedViaInvite",format:"boolean"},_shareFlagsAreDirty:{name:"shareFlagsAreDirty",format:"boolean"},"_appMetadata._data":{name:`_embedded[${tt.APP_METADATA}]`,format:"object_subset",set:(e,t)=>{t.appMetadata._mergeData(e)}},_ancestorIDs:{name:"repo:ancestors",isArray:!0,format:"string"},__links:{name:"_links",format:"object"},_hasArtifacts:{name:"hasArtifacts",format:"boolean"},_createdByClientId:"repo:createdByClientId"})}),fa={localItemType:ua,remoteIdProperty:"asset_id",changeEventMap:new Map([["_isShared",Cr],["_isSharedWithYouAsset",Cr],["_isPublicLink",Cr],["_directCollaboratorCount",Cr]]),propertyUpdater:new Hi({_name:"asset_name",_etag:{get:function(e){var t;return e.composite_manifest_etag||(null===(t=e.etag)||void 0===t?void 0:t.primary)||""}},_repositoryID:"repo:repositoryId",_path:{get:function(e){return e.asset_name_path&&e.asset_name?kn.join(e.asset_name_path,e.asset_name):e.asset_name_path||e.asset_name||""},format:"string"},_type:{get:function(e){return e.type===ri?ti:e.type},format:"string"},_size:{name:"size",format:"number"},_version:"asset_version_id",_assetClass:{get:function(e){return e.type===ri||e.type===ti?"directory":"dcx"!==e.creative_cloud_asset_type?"file":e.asset_sub_type},choices:Ii,format:"string"},_permissions:{get:da,format:"number"},_created:{name:"create_date",format:"date"},_modified:{name:"modify_date",format:"date"},_shared:{name:"collab_metadata#mine.shared_date",format:"date_as_number"},_discarded:{name:"discarded_date",format:"date"},_discardedBy:"discarded_by",_assetState:{name:"repo:state",choices:Ai,format:"string"},_isArchivedLibraryElement:{name:"isArchivedLibraryElement",format:"boolean"},_lastAccessed:{get:function(e){var t,r;const n=null===(r=null===(t=e["api:metadata/peruser"])||void 0===t?void 0:t[0])||void 0===r?void 0:r["shell:lastAccessDate"];return void 0===n?Ni:""!==n?n:void 0},format:"date"},_createdFromUpload:{get:function(e){var t;return null===(t=e["api:metadata/application"])||void 0===t?void 0:t["cc:createdFromUpload"]},format:"boolean"},_storageAssignee:{name:"storage:assignee",format:pa},_storageRegion:{name:"region",get:function(e){var t,r;switch(null===(t=e.region)||void 0===t?void 0:t.toLowerCase()){case"us":return"VA6";case"ap":return"JPN3";case"eu":return"IRL1";default:return(null===(r=e.region)||void 0===r?void 0:r.toUpperCase())||""}},format:"string"},_createdBy:"creative_cloud_creator_id",_isSharedWithYouAsset:{name:"sharedViaInvite",format:"boolean"},_isSWYGroup:{name:"isSWYGroup",format:"boolean"},_isShared:{name:"isShared",format:"boolean"},_isPublicLink:{name:"isPublicLink",format:"boolean"},_directCollaboratorCount:{name:"directCollaboratorCount",format:"number"},_isPublished:{name:"published",format:"boolean"},_imageLength:{name:"image_height",format:"number"},_imageWidth:{name:"image_width",format:"number"},_shareFlagsAreDirty:{name:"shareFlagsAreDirty",format:"boolean"},"_appMetadata._data":{name:"app_metadata",format:"object_subset",set:(e,t)=>{t.appMetadata._mergeData(e)}},_ancestorIDs:{name:"path",isArray:!0,format:"string"},__links:{name:"_links",format:"object"},_createdByClientId:"repo:createdByClientId"})},ma=new Di(fa),ga=Symbol("reloadSpace"),va=Symbol("clearLastReloadError");class ya{constructor(e,t,r,n,i,o=!1){this._asset=r,this._ussInterface=n,this._artifactFilter=i,this._embedPermissions=o,this._getItemData=this._getItemDataWithRepoId(this._asset.repositoryID),this._ussLoaderHelper=new go(e,t,this)}supportsFilter(e){const t=[];if(t.push(e),!t.every((e=>e.artifactFilter===this._artifactFilter||void 0===e.artifactFilter)))throw we.create(ge.BAD_REQUEST,"SpaceSearchAssetFilter.artifactFilter does not match SpaceSearchAssetLoader.artifactFilter");return!0}loadPage(e){return this._ussLoaderHelper.loadPage(e)}_getUSSResults({start:e,limit:t,order:r,mediaTypes:n}){var i=this;return me(he().mark((function o(){return he().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",i._ussInterface.searchSpace(i._asset.id,"onlyArtifacts"===i._artifactFilter,i._embedPermissions,{type:n,sort_orderby:ro[r.field],sort_order:"descending"===r.direction?"desc":"asc",limit:t,start_index:e}));case 1:case"end":return o.stop()}}),o)})))()}_getItemDataWithRepoId(e){return t=>Object.assign(Object.assign({},t),{"repo:repositoryId":e})}}class ba extends zi{constructor(e){super({_includeHiddenRecursive:null==e?void 0:e._includeHiddenRecursive}),this._asset=null==e?void 0:e.asset,this.artifactFilter=null==e?void 0:e.artifactFilter}get hash(){var e;return["spaceSearch",null===(e=this._asset)||void 0===e?void 0:e.id,this.artifactFilter,super.hash].filter((e=>e)).join(":")}matches(e){var t;return!((null===(t=this._asset)||void 0===t?void 0:t.repoPath)&&!e.repoPath.startsWith(`${this._asset.repoPath}/`))&&(!e.isArtifact||"excludeArtifacts"!==this.artifactFilter)&&!(!e.isArtifact&&"onlyArtifacts"===this.artifactFilter)&&super.matches(e)}getRelationToFilter(e){var t,r;const n=null===(t=this._asset)||void 0===t?void 0:t.repoPath,i=null===(r=e._asset)||void 0===r?void 0:r.repoPath;if(n&&i&&!n.startsWith(`${i}/`)&&!i.startsWith(`${n}/`))return"disjoint";if(this.artifactFilter&&e.artifactFilter&&this.artifactFilter!==e.artifactFilter)return"disjoint";const o=super.getRelationToFilter(e);return"disjoint"===o?"disjoint":"unknown"===o||!n&&i||n&&i&&n.startsWith(`${i}/`)||!this.artifactFilter&&e.artifactFilter?"unknown":"subset"}}ba.default=new ba;class _a extends wi{constructor(){super(...arguments),this._name="",this._repositoryID="",this._repositoryName="",this._pathName="",this._created=new Date,this._modified=new Date,this._contributorCount=0,this._role="NONE",this._color="",this._isBookmarked=!1,this._teamID="",this._teamName="",this._thumbnail="",this._access="private",this._etag="",this._version=0,this._state="active",this._loadedGeneration=0,this._teamRole="UNKNOWN"}get spaceID(){return this.id}get name(){return this._name}get access(){return this._access}get etag(){return this._etag}get state(){return this._state}get repositoryID(){return this._repositoryID}get repositoryName(){return this._repositoryName}get pathName(){return this._pathName}get created(){return this._created}get modified(){return this._modified}get contributorCount(){return this._contributorCount}get role(){return this._role}get color(){return this._color}get isBookmarked(){return this._isBookmarked}get teamID(){return this._teamID}get teamName(){return this._teamName}get description(){return this._description}get thumbnail(){return this._thumbnail}get version(){return this._version}get teamRole(){return this._teamRole}get _links(){return this.__links}ensureDescription(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0!==e._description){t.next=3;break}return t.next=3,e.load({refreshTimeout:-1});case 3:return t.abrupt("return",null!==(r=e.description)&&void 0!==r?r:"");case 4:case"end":return t.stop()}}),t)})))()}getChild(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._children){r.next=3;break}return r.next=3,t.load({refreshTimeout:-1});case 3:return r.abrupt("return",null===(n=t._children)||void 0===n?void 0:n.get(e));case 4:case"end":return r.stop()}}),r)})))()}searchWorkingFiles(){var e=this;return me(he().mark((function t(){var r,n,i,o,a,s;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e._core.hostAssetContext,n=r._assetPool,i=r._ussInterface,t.next=3,e._core.hostAssetContext.getAssetWithRepoPath(`${e.pathName}/working_files`,e.repositoryID);case 3:return o=t.sent,a=new ya(n,e._core,o,i,"excludeArtifacts",!0),s=new ba({asset:o,artifactFilter:"excludeArtifacts"}),t.abrupt("return",new Uo(n,[a],s));case 7:case"end":return t.stop()}}),t)})))()}searchArtifacts(e=!1){var t=this;return me(he().mark((function r(){var n,i,o,a,s,c;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t._core.hostAssetContext,i=n._assetPool,o=n._ussInterface,r.next=3,t._core.hostAssetContext.getAssetWithCloudID(t.id);case 3:return a=r.sent,s=new ya(i,t._core,a,o,"onlyArtifacts",e),c=new ba({asset:a,artifactFilter:"onlyArtifacts",_includeHiddenRecursive:!0}),r.abrupt("return",new Uo(i,[s],c));case 7:case"end":return r.stop()}}),r)})))()}getWorkingFiles(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.hostAssetContext.getAssetWithRepoPath(`${e.pathName}/working_files`,e.repositoryID);case 2:return r=t.sent,t.abrupt("return",r.children);case 4:case"end":return t.stop()}}),t)})))()}load(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=null==e?void 0:e.refreshTimeout,(o=t._lastReload)&&(o.pending||-1===i||i&&o.requestTime+i>Date.now())||(o=t._lastReload={pending:!0,inProgress:!0,generation:(null!==(n=null==o?void 0:o.generation)&&void 0!==n?n:t._loadedGeneration)+1,requestTime:Date.now(),promise:new Promise(((e,r)=>{setTimeout((()=>t._executeReload(o).finally((()=>o.error?r(o.error):e()))),0)}))},t.dispatch(Ye)),r.next=6,o.promise;case 6:case"end":return r.stop()}}),r)})))()}_executeReload(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e===t._lastReload){r.next=3;break}return xe(!e.pending,"The pending flag must be false after the reload was cleared out."),r.abrupt("return");case 3:return e.pending=!1,r.prev=4,r.next=7,t._core.spaceContext[ga](t);case 7:r.next=12;break;case 9:r.prev=9,r.t0=r.catch(4),e.error=r.t0;case 12:if(e.inProgress=!1,!(t._lastReload!==e&&e.generation<=t._loadedGeneration)){r.next=16;break}return r.abrupt("return");case 16:e.error instanceof we&&e.error.code===ge.NOT_FOUND&&((n=t._core.spaceContext.spacePool.createUpdateSession()).queueDiscardedItem(t),n.commit()),t.dispatch(Ye);case 18:case"end":return r.stop()}}),r,null,[[4,9]])})))()}[va](){const e=this._lastReload;(null==e?void 0:e.error)&&(e.error=void 0,e.pending=!1,this.dispatch(Ye))}get isReloading(){var e,t;return null!==(t=null===(e=this._lastReload)||void 0===e?void 0:e.inProgress)&&void 0!==t&&t}get lastReloadError(){var e;return null===(e=this._lastReload)||void 0===e?void 0:e.error}update(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._core.spaceContext.updateSpace(t,e);case 2:case"end":return r.stop()}}),r)})))()}rename(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._core.spaceContext.updateSpace(t,{name:e});case 2:case"end":return r.stop()}}),r)})))()}archive(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.spaceContext.archiveSpaces([e]);case 2:if(!(r=t.sent).failedResults.length){t.next=5;break}throw r.failedResults[0].error;case 5:case"end":return t.stop()}}),t)})))()}restore(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return void 0!==e&&(n=new Map).set(t,e),r.next=3,t._core.spaceContext.restoreSpaces([t],n);case 3:if(!(i=r.sent).failedResults.length){r.next=6;break}throw i.failedResults[0].error;case 6:case"end":return r.stop()}}),r)})))()}}Ie([$e],_a.prototype,"name",null),Ie([$e],_a.prototype,"access",null),Ie([$e],_a.prototype,"etag",null),Ie([$e],_a.prototype,"state",null),Ie([$e],_a.prototype,"repositoryID",null),Ie([$e],_a.prototype,"repositoryName",null),Ie([$e],_a.prototype,"pathName",null),Ie([$e],_a.prototype,"created",null),Ie([$e],_a.prototype,"modified",null),Ie([$e],_a.prototype,"contributorCount",null),Ie([$e],_a.prototype,"role",null),Ie([$e],_a.prototype,"color",null),Ie([$e],_a.prototype,"isBookmarked",null),Ie([$e],_a.prototype,"teamID",null),Ie([$e],_a.prototype,"teamName",null),Ie([$e],_a.prototype,"description",null),Ie([$e],_a.prototype,"thumbnail",null),Ie([$e],_a.prototype,"version",null),Ie([$e],_a.prototype,"teamRole",null),Ie([$e],_a.prototype,"_links",null),Ie([Ue],_a.prototype,"searchWorkingFiles",null),Ie([Ue],_a.prototype,"searchArtifacts",null),Ie([Ue],_a.prototype,"getWorkingFiles",null),Ie([$e],_a.prototype,"isReloading",null),Ie([$e],_a.prototype,"lastReloadError",null);const Ea=new Di({localItemType:_a,remoteIdProperty:"id",propertyUpdater:new Hi({_name:"name",_access:{name:"access",choices:["private","team"]},_etag:"etag",_repositoryID:"repositoryId",_repositoryName:"repositoryName",_pathName:"pathName",_created:{name:"createdDate",format:"date"},_modified:{name:"modifiedDate",format:"date"},_contributorCount:{name:"contributorCount",format:"number"},_role:{name:"role",choices:["NONE","CONTRIBUTOR","REVIEWER"]},_color:{name:"color"},_isBookmarked:{name:"bookmarked",format:"boolean"},_teamID:"teamId",_teamName:"teamName",_description:"description",_thumbnail:"thumbnail",_children:{name:"children",mapByKey:"name",format:{parse:e=>({id:e.id,_links:e._links}),isEqual:(e,t)=>e.id===t.id&&nn(e._links,t._links)}},_version:{name:"version",format:"number"},_teamRole:{name:"teamRole",choices:["UNKNOWN","NONE","MEMBER"]},_state:{name:"state",choices:["active","archived","in_progress"]},__links:{name:"_links",format:"object"}})}),wa={[tt.REVIEW_SERVICE_PROVISION]:["documentId","assetRegion","repositoryId"],[tt.REVIEW_SERVICE_DISCARD]:["assetId","assetRegion","repositoryId"],[tt.REVIEW_SERVICE_OUTPUTS]:["assetId","assetRegion","documentId","embed","limit","orderBy","outputType","repositoryId","start"],[tt.REVIEW_SERIVCE_HAS_OUTPUTS]:["assetRegion"]},xa=function(e){return e.map((e=>({"repo:assetId":e.id,"repo:repositoryId":e.repositoryID})))};class La extends Pt{constructor(){super(...arguments),this.baseURL=`https://${this._core._environment.endpoints.REVIEW_SERVICE_HOST}`,this.baseEndpoint="/api/v1",this.indexEndpoint=this.baseEndpoint+"/index"}getEndpointURL(e){return`${this.baseURL}${e}`}_discoverLinks(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._getResponse(e,t._getHeaders());case 2:return n=r.sent,r.abrupt("return",n._links);case 4:case"end":return r.stop()}}),r)})))()}_getHeaders(e){const t={};return e&&(t["Content-Type"]=e),t}discoverLinks(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._discoverLinks(e.getEndpointURL(e.indexEndpoint)));case 1:case"end":return t.stop()}}),t)})))()}discardOutputsForAsset(e,t,r){var n=this;return me(he().mark((function i(){var o,a;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.discoverLinks();case 2:return o=i.sent,a=ot(o,tt.REVIEW_SERVICE_DISCARD,Object.assign(Object.assign({assetId:e},t&&{assetRegion:t}),r&&{repositoryID:r})),i.next=6,n._doPost(a,n._getHeaders(),void 0,[204]);case 6:case"end":return i.stop()}}),i)})))()}hasOutputs(e,t){var r=this;return me(he().mark((function n(){var i,o,a;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.discoverLinks();case 2:return i=n.sent,o=ot(i,tt.REVIEW_SERIVCE_HAS_OUTPUTS,Object.assign({},t&&{assetRegion:t})),n.next=6,r._doPost(o,r._getHeaders(Qe),JSON.stringify(e),[200]);case 6:return a=n.sent,n.next=9,a.json();case 9:return n.abrupt("return",n.sent);case 10:case"end":return n.stop()}}),n)})))()}_createFrameLinkUrl(e){const t=new URL(`${this.baseURL}/api/v1/frameioLink`);return Object.entries(e).forEach((([e,r])=>t.searchParams.set(e,r))),t.toString()}createReviewLink(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.reviewLinkId,i=e.artifactId,o=e.projectId,a=Pe(e,["reviewLinkId","artifactId","projectId"]),r.next=3,t._doPost(t._createFrameLinkUrl(a),{"Content-Type":"application/json"},JSON.stringify({reviewLinkId:`${n}`,artifactId:`${i}`,projectId:`${o}`}));case 3:return s=r.sent,r.next=6,s.json();case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r)})))()}getReviewLinks(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doGet(t._createFrameLinkUrl(e));case 2:return n=r.sent,r.next=5,n.json();case 5:return r.abrupt("return",r.sent);case 6:case"end":return r.stop()}}),r)})))()}updateReviewLink(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s,c;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.artifactId,i=e.projectId,o=e.etag,a=void 0===o?"*":o,s=Pe(e,["artifactId","projectId","etag"]),r.next=3,t._doPut(t._createFrameLinkUrl(s),{"Content-Type":"application/json","If-Match":`${a}`},JSON.stringify({artifactId:`${n}`,projectId:`${i}`}));case 3:return c=r.sent,r.next=6,c.json();case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r)})))()}deleteReviewLink(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.etag,i=Pe(e,["etag"]),o={},n&&(o={"If-Match":`${n}`}),r.next=5,t._doDelete(t._createFrameLinkUrl(i),o,[204]);case 5:case"end":return r.stop()}}),r)})))()}}Ie([Ge((function(e){return rt(e,wa)})),Ae(0,Ze)],La.prototype,"_discoverLinks",null);class Oa extends Pt{constructor(e,t){super(e),this._core=e,this._assetId=t}_getUrl(e){return`https://${this._core._environment.endpoints.COMMENT_HOST}${e}`}_getCommonHeaders(e){const t={"Content-Type":'application/ld+json; profile="https://www.w3.org/ns/anno.jsonld"',Accept:'application/ld+json; profile="https://www.w3.org/ns/anno.jsonld"',Prefer:'return=representation;include="https://www.w3.org/ns/oa#PreferContainedDescriptions"',"x-ccx-workflow":"true"};return e&&(t["If-Match"]=e),t}getCommentList(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t._getUrl(`/assets/${t._assetId}/annots/?status=open%2Cresolved`),i=t._getCommonHeaders(),e&&(i["If-None-Match"]=e),r.abrupt("return",t._doGet(n,{headers:i,successResponseCodes:[200,208]}));case 4:case"end":return r.stop()}}),r)})))()}getComment(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.annotationId,i=e.etag,o=t._getUrl(`/assets/${t._assetId}/annots/${n}?recursive=true`),r.abrupt("return",t._getResponse(o,{headers:t._getCommonHeaders(i)}));case 3:case"end":return r.stop()}}),r)})))()}createComment(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t._getUrl(`/assets/${t._assetId}/annots`),r.next=3,t._doPost(n,t._getCommonHeaders(),JSON.stringify(e));case 3:return i=r.sent,r.abrupt("return",i.json());case 5:case"end":return r.stop()}}),r)})))()}editComment(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.annotationId,i=e.etag,o=e.body,a=t._getUrl(`/assets/${t._assetId}/annots/${n}`),r.next=4,t._doPut(a,t._getCommonHeaders(i),JSON.stringify(o),[200]);case 4:return s=r.sent,r.abrupt("return",s.json());case 6:case"end":return r.stop()}}),r)})))()}deleteComment(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.annotationId,i=e.etag,o=t._getUrl(`/assets/${t._assetId}/annots/${n}?recursive=true`),r.next=4,t._doDelete(o,t._getCommonHeaders(i),[204]);case 4:return r.abrupt("return");case 5:case"end":return r.stop()}}),r)})))()}getMetadata(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e._getUrl(`/assets/${e._assetId}?operation=fetch_user_comment_metadata`),t.abrupt("return",e._getResponse(r,{headers:e._getCommonHeaders()}));case 2:case"end":return t.stop()}}),t)})))()}updateMetadata(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.annotId,i=e.read,o=n||"",a=t._getUrl(`/assets/${t._assetId}/annots/${o}/metadata?recursive=false`),r.next=5,t._doPut(a,{"Content-Type":'application/vnd.adobe.dc+json;profile="https://comments.adobe.io/schemas/annots_metadata.jsonld"',Accept:'application/vnd.adobe.dc+json;profile="https://comments.adobe.io/schemas/annots_metadata.jsonld"',"x-ccx-workflow":"true"},JSON.stringify({annotId:`/assets/${t._assetId}/annots/${o}`,read:i||!1}),[200]);case 5:return s=r.sent,r.abrupt("return",s.json());case 7:case"end":return r.stop()}}),r)})))()}}class Sa extends Nn{constructor(){super(...arguments),this._creator=void 0,this._created=new Date(0),this._bodyValue=void 0,this._motivation=void 0,this._generator="https://comments.acrobat.com/Comment",this._type="Annotation",this._target=void 0,this._mentions=void 0,this._modified=new Date(0),this._etag=void 0,this._uri=void 0,this._status=void 0,this._replies=void 0,this._readStatus=!1}get creator(){return this._creator}get created(){return this._created}get bodyValue(){return this._bodyValue||""}get motivation(){return this._motivation||"commenting"}get generator(){return this._generator||"https://comments.acrobat.com/Comment"}get type(){return this._type||"Annotation"}get target(){return this._target}get mentions(){return this._mentions}get modified(){return this._modified}get etag(){return this._etag||""}get uri(){return this._uri||""}get status(){return this._status||"open"}get replies(){return this._replies}get readStatus(){return this._readStatus}toJSON(){return{"@context":["https://www.w3.org/ns/anno.jsonld","https://comments.acrobat.com/ns/anno.jsonld"],creator:this._creator,created:this.created.toISOString(),bodyValue:this.bodyValue,motivation:this.motivation,generator:this.generator,type:this.type,target:this.target,modified:this.modified.toISOString(),etag:this.etag,id:this.uri,creationId:this.id,status:this.status}}get assetUrn(){const e=this.uri.split("/");return e.length>2?e[2]:""}get _pool(){return this._commentsResource._commentPool}get _interface(){return this._commentsResource._commentInterface}edit(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s,c;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t._interface,i=t._pool,o=t.toJSON(),a=Object.assign(Object.assign({},o),e),r.next=6,n.editComment({annotationId:t.id,etag:t.etag,body:a});case 6:return s=r.sent,c=i.createUpdateSession(),Ta.updateLocalItem(c,t,s),c.commit(),r.abrupt("return",t);case 11:case"end":return r.stop()}}),r)})))()}updateResolvedStatus(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e?"resolved":"open",r.abrupt("return",t.edit({status:n}));case 2:case"end":return r.stop()}}),r)})))()}updateReadStatus(e){var t=this;return me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t._interface,i=t._pool,r.next=4,n.updateMetadata({annotId:t.id,read:e});case 4:return o=r.sent,a=i.createUpdateSession(),Ta.updateLocalItem(a,t,{creationId:t.id,readStatus:o.read}),a.commit(),r.abrupt("return",t);case 9:case"end":return r.stop()}}),r)})))()}delete(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e._interface,n=e._pool,i=e.id,t.next=5,r.deleteComment({annotationId:i,etag:e.etag});case 5:(o=n.createUpdateSession()).queueDiscardedItem(e),o.commit(),n.removeLocalItems([i]);case 9:case"end":return t.stop()}}),t)})))()}reply(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={motivation:"replying",target:{source:t.uri}},r.abrupt("return",t._commentsResource.createComment(Object.assign(Object.assign({},e),n)));case 2:case"end":return r.stop()}}),r)})))()}}Ie([$e],Sa.prototype,"creator",null),Ie([$e],Sa.prototype,"created",null),Ie([$e],Sa.prototype,"bodyValue",null),Ie([$e],Sa.prototype,"motivation",null),Ie([$e],Sa.prototype,"generator",null),Ie([$e],Sa.prototype,"type",null),Ie([$e],Sa.prototype,"target",null),Ie([$e],Sa.prototype,"mentions",null),Ie([$e],Sa.prototype,"modified",null),Ie([$e],Sa.prototype,"etag",null),Ie([$e],Sa.prototype,"uri",null),Ie([$e],Sa.prototype,"status",null),Ie([$e],Sa.prototype,"replies",null),Ie([$e],Sa.prototype,"readStatus",null);const Ta=new Di({localItemType:Sa,remoteIdProperty:"creationId",propertyUpdater:new Hi({_creator:{name:"creator",format:"object"},_created:{name:"created",format:"date"},_bodyValue:{name:"bodyValue",format:"string"},_motivation:{name:"motivation",format:"string"},_generator:{name:"generator",format:"string"},_type:{name:"type",format:"string"},_target:{name:"target",format:"object"},_mentions:{name:"mentions",format:"object"},_modified:{name:"modified",format:"date"},_etag:{name:"etag",format:"string"},_uri:{name:"id",format:"string"},_status:{name:"status",format:"string"},_replies:{name:"replies",format:"object"},_readStatus:{name:"readStatus",format:"boolean"}})});class Pa{constructor(e){this._commentsResource=e}loadPage(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}get retryAfter(){return 1e3*+(this._retryAfter||"12")}get _pool(){return this._commentsResource._commentPool}get _interface(){return this._commentsResource._commentInterface}_loadPage(e,t){var r=this;return me(he().mark((function e(){var t,n,i,o,a,s;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r._interface.getCommentList(r._etag);case 2:if(n=e.sent,r._retryAfter=n.headers.get("retry-after")||void 0,r._etag=n.headers.get("etag")||void 0,200!==n.status){e.next=16;break}return e.next=9,n.json();case 9:return i=e.sent,o=i.first.items,a=r._pool.createLoaderUpdateSession(Date.now()),s=Ta.updateRemoteItems(a,o),a.commit(),s.forEach((e=>{e._commentsResource=r._commentsResource})),e.abrupt("return",{items:s,total:s.length,loadNextPage:void 0});case 16:return s=(null===(t=r._commentsResource.getCommentList())||void 0===t?void 0:t.items)||[],e.abrupt("return",{items:s,total:s.length,loadNextPage:void 0});case 18:case"end":return e.stop()}}),e)})))()}}const Ia={created:(e,t)=>Wi(e.created.getTime(),t.created.getTime())};class Aa extends(Ki(Ia)){}Aa.default=new Aa("ascending","created");const Ca="commentsChanged";class ka extends He{constructor(e){super(Ca),this.annotationIds=e}}class Da extends En{constructor(e,t){super(),this._core=e,this._assetId=t,this._commentInterface=new Oa(this._core,this._assetId),this._commentPool=new Jo(this._core,"comment"),this._loader=new Pa(this),this._source=new Uo(this._commentPool,[this._loader])}createComment(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._commentInterface.createComment(e);case 2:return n=r.sent,i=t._commentPool.createUpdateSession(),o=Ta.updateRemoteItem(i,n),i.commit(),o._commentsResource=t,r.abrupt("return",o);case 8:case"end":return r.stop()}}),r)})))()}getComment(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t._commentPool.getLocalItemById(e.annotationId)){r.next=9;break}return r.next=4,t._commentInterface.getComment(e);case 4:i=r.sent,o=t._commentPool.createUpdateSession(),n=Ta.updateRemoteItem(o,i),o.commit(),n._commentsResource=t;case 9:return r.abrupt("return",n);case 10:case"end":return r.stop()}}),r)})))()}getCommentList(){return this._list||(this._list=this._source.getList(Aa.default,void 0,{refreshTimeout:-1})),this._list}_poll(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(r=e.getCommentList()).setNeedsRefresh(),r.refresh(),t.next=5,Bo(r);case 5:return t.next=7,e._commentInterface.getMetadata();case 7:n=t.sent,i=new Map(n.map((e=>[e.annotId,e.read]))),o=e._commentPool.createLoaderUpdateSession(Date.now()),e._commentPool.forEach((e=>{const t=i.get(e.uri)||!1;e.readStatus!==t&&Ta.updateRemoteItem(o,{creationId:e.id,readStatus:t})})),o.commit(),e._stopTimeout=setTimeout((()=>e._poll()),e._loader.retryAfter);case 13:case"end":return t.stop()}}),t)})))()}startShortPoll(){this._stopTimeout||this._poll()}stopShortPoll(){this._stopTimeout&&(clearTimeout(this._stopTimeout),this._stopTimeout=void 0)}get isShortPollActive(){return void 0!==this._stopTimeout}_onONSNotification(e){var t;this.emit(Ca,new ka(e.annotationIds||[])),null===(t=this._list)||void 0===t||t.setNeedsRefresh()}}var Na;function Ra(){return"undefined"!=typeof window?null===window||void 0===window?void 0:window.acplModel:void 0}function Ma(e=""){const t=e.split(".");"0-main"===t[2]&&t.splice(2,1);const r=le(t,3),n=r[0],i=void 0===n?"0":n,o=r[1],a=void 0===o?"0":o,s=r[2];return[i,a,void 0===s?"0":s].map((e=>e.padStart(4,"0"))).join("")}function ja(e,t){var r;const n=Ma(null===(r=Ra())||void 0===r?void 0:r.version),i=Ma(t);switch(e){case"lt":return n<i;case"gte":return n>=i;default:return!1}}!function(e){e[e.Offline=0]="Offline",e[e.Wan=1]="Wan",e[e.Cellular=2]="Cellular",e[e.OnlineUnknown=3]="OnlineUnknown"}(Na||(Na={}));const Fa=new class extends He{constructor(){super("thumbnailChange")}},Za=new class extends He{constructor(){super("permissionsChange")}};function Ba(e){const t=Ra(),r=t.applicationAssetContext.constructor;if(ja("lt","9999.9999.9999")){Pn({klass:r,core:e,overrides:{getAssetWithCloudID(e,t=!1){return this.getAssetWithCloudID.original(e,t)},getAssetWithAssetRefString(e,t=!1){return this.getAssetWithAssetRefString.original(e,t)}},extensions:{getUserRepoID(){return this._userRepoID?Promise.resolve(this._userRepoID):this._core._AssetContextJS._rapi.getHomeDirectoryMetadata().then((e=>(this._userRepoID=e["repo:repositoryId"],this._userRepoID)))},transfer(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(t instanceof _a)){n.next=9;break}return n.next=3,t.getChild("working_files");case 3:if(o=n.sent){n.next=6;break}throw we.create(ge.NOT_FOUND,"unable to find working_files for provided space");case 6:i=o.id,n.next=10;break;case 9:i=t.cloudID;case 10:if(a=e.repositoryID,s=t.repositoryID,"~"!==a){n.next=16;break}return n.next=15,r.getUserRepoID();case 15:a=n.sent;case 16:if("~"!==s){n.next=20;break}return n.next=19,r.getUserRepoID();case 19:s=n.sent;case 20:return c={source:{assetId:e.cloudID,repositoryId:a},target:{assetId:i,repositoryId:s}},n.abrupt("return",r._core._AssetContextJS._assetTransferService.transfer(c));case 22:case"end":return n.stop()}}),n)})))()},assetPool:{get(){return gi("SAMCpp.ts _assetPool","AssetContext._assetPool is deprecated and will be removed on or after 2024-10-01. ItemPools are not for use by clients."),this._core._AssetContextJS._assetPool}},_assetPool:{get(){return this._core._AssetContextJS._assetPool}},isOnline:{get(){return void 0!==this.networkStatus?this.networkStatus!==Na.Offline:void 0}},recentAssetsSource:{get(){return this.recentsSource}},getRootFolder(){return Promise.resolve(this.rootFolder)},assetsHaveArtifacts:t=>me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!t.some((e=>!e.routesToAcplV2))){r.next=2;break}return r.abrupt("return",!1);case 2:return n=new La(e),i=xa(t),r.next=6,n.hasOutputs(i);case 6:if(0!==(o=r.sent).length){r.next=9;break}return r.abrupt("return",!1);case 9:return o.forEach((e=>{const r=t.find((t=>t.id===e["repo:assetId"]));r&&(r._hasArtifacts=!0,r.dispatch({type:"change"}))})),r.abrupt("return",!0);case 11:case"end":return r.stop()}}),r)})))()},observableMap:{networkChanged:["networkStatus"],stateChanged:["cloudSyncStatus"]}});const n=({properties:e,status:t,previews:r})=>{for(var n,i,o=0,a=[...e,...t];o<a.length;o++){const e=a[o];null===(n=e._onAssetChanged)||void 0===n||n.call(e)}var s,c=ue(r);try{for(c.s();!(s=c.n()).done;){const e=s.value;null===(i=null==e?void 0:e._onRenditionChanged)||void 0===i||i.call(e)}}catch(e){c.e(e)}finally{c.f()}};t.applicationAssetContext._isForwardingAssetChangeEvents||(t.applicationAssetContext.on("changedAssets",n),t.applicationAssetContext._isForwardingAssetChangeEvents=!0)}}function Ga(e){const t=Ra(),r={ascending:jo.Ascending,descending:jo.Descending},n={name:Fo.Name,modified:Fo.Modified,created:Fo.Created,shared:Fo.Shared},i=t.applicationAssetContext.rootFolder.children.constructor;ja("lt","9999.9999.9999")&&Pn({klass:i,core:e,overrides:{getList(e,t){var i,o;let a,s;const c=e;null===(o=null!==(i=c.direction)&&void 0!==i?i:c.field)||void 0===o||o?(s=r[c.direction],a=n[c.field]):(s=e,a=t,t=void 0),s=s in jo?s:jo.Descending,a=a in Fo?a:Fo.Modified;const l=t;let u;return u=(null==l?void 0:l.mediaTypes)?this.getListWithTypes(s,a,[...l.mediaTypes]):this.getList.original(s,a),u._addEventInterceptors(),u}}})}function Ua(e){const t=Ra(),r=["refreshed","movedAsset","addedAsset","removedAsset"],n=t.applicationAssetContext.rootFolder.children.getList(jo.Descending,Fo.Modified).constructor;ja("lt","9999.9999.9999")&&Pn({klass:n,core:e,extensions:{loadNextPage(){return this.loadMoreItems()},refresh(){return this.load()},_addEventInterceptors(){this._onError||(this._onError=e=>{this._errors=this._errors||[],this._errors.push(e),this.dispatch(Do)},this.on("error",this._onError)),this._onListNotification||(this._onListNotification=()=>{void 0===this._notificationTimer&&(this._notificationTimer=setTimeout((()=>{this._notificationTimer=void 0,this._items=this[Tn].items.call(this),this.dispatch(ko),this.dispatch(Do)}),120))},r.forEach((e=>this.on(e,this._onListNotification)))),this._onStatusChange||(this._onStatusChange=()=>{this.status===_o.Loading?this.dispatch(Do):this._onListNotification()},this.on("statusChanged",this._onStatusChange))},errors:{get(){return this._core._environment.mobx.reportObserved(this,Do.type),this._errors}}},overrides:{load(){this._errors=void 0,this.load.original(),this.dispatch(Do)},loadMoreItems(){this.loadMoreItems.original(),this.dispatch(Do)},items:{get(){return this._core._environment.mobx.reportObserved(this,ko.type),this._items||(this._items=this[Tn].items.call(this)),this._items}}},observableMap:{[Do.type]:["status"]}})}function Ha(e){const t=Ra().applicationAssetContext.rootFolder.constructor;ja("lt","9999.9999.9999")&&Pn({klass:t,core:e,overrides:{restore(e){return this.isLibraryElement?this._core._AssetContextJS.restoreLibraryElement(this.cloudID):this.restore.original(e)},permanentlyDelete(){return this.isLibraryElement?this._core._AssetContextJS.permanentlyDeleteLibraryElement(this.cloudID):this.permanentlyDelete.original()},duplicate(){return this.duplicate.original(!1)}},extensions:{_setCollaboratorData(e){ua.prototype._setCollaboratorData.apply(this,[e]),this._isCollaboratorDataLoaded=!0,this.dispatch(Cr)},_queueCollaborators(){this._isCollaboratorDataLoaded||ua.prototype._queueCollaborators.apply(this)},isShared:{get(){return this._core._environment.mobx.reportObserved(this,Ar),!!this.isSharedWithYouAsset||(this._queueCollaborators(),this._isShared)}},directCollaboratorCount:{get(){return this._core._environment.mobx.reportObserved(this,Ar),this._queueCollaborators(),this._directCollaboratorCount}},collaboratorArray:{get(){return this._core._environment.mobx.reportObserved(this,Ar),this._queueCollaborators(),this._collaboratorsArray}},isPublicLink:{get(){return this._core._environment.mobx.reportObserved(this,Ar),this._queueCollaborators(),this._isPublicLink}},id:{get(){return this.cloudID||this.localID}},removeCurrentUserFromCollaborationList(){return this._core.collaborationContext._removeCurrentUserFromCollaborationList(this)},discard(){return this.archive().then((()=>{this.routesToAcplV2||gi("discardAsArchive",`Asset.discard(): '${this.repoPath}' will be archived rather than discarded because it routes to ACPL v1 rather than V2.`);const e=()=>{this.isDiscarded&&this._hasArtifacts&&this.routesToAcplV2&&new La(this._core).discardOutputsForAsset(this.id).then((()=>{this._hasArtifacts=!1,this.off(Ye.type,e)}))};this.on(Ye.type,e),this.isDiscarded&&this._hasArtifacts&&e()}))},links:{get:()=>({})},hasPermission(...e){this._core._environment.mobx.reportObserved(this,Za.type);const t=!!this._permissions&&ua.prototype.hasPermission.apply(this,e);return this._hasLoadedPermissions||(this._hasLoadedPermissions=!0,this._core._AssetContextJS._rapi.resolveById(this.cloudID).then((e=>e.getEffectivePermissions())).then((e=>{this._permissions=e,this.dispatch(Za)}))),t},thumbnailURL:{get(){var e;return this._core._environment.mobx.reportObserved(this,Fa.type),this.isFolder||this.isLibraryElement?"":(!this._refreshThumbnail&&this._thumbnailInfo||(this._refreshThumbnail=!1,this._thumbnailStatus=Mn.Fetching,this.getThumbnailRendition().then((({file:e,hash:t})=>{var r,n;if(this._thumbnailStatus=Mn.Done,(null===(r=this._thumbnailInfo)||void 0===r?void 0:r.file)===e&&(null===(n=this._thumbnailInfo)||void 0===n?void 0:n.hash)===t)return;e=e.replace("#","%23").replace("^","%5E");const i=new URL(`file://${e}`);i.searchParams.append("force",t),this._thumbnailInfo={file:e,hash:t,url:i.href},this.dispatch(Fa)})).catch((()=>{this._thumbnailStatus=Mn.Error,this._thumbnailInfo={},this.dispatch(Fa)}))),(null===(e=this._thumbnailInfo)||void 0===e?void 0:e.url)||"")}},thumbnailStatus:{get(){var e;return null!==(e=this._thumbnailStatus)&&void 0!==e?e:Mn.NotStarted}},getRenditionURL(){return gi("getRenditionURL","SAM.cpp does not support all options of getRenditionURL. Clients that run on web and desktop should use AdobeAsset.thumbnailURL instead."),this.thumbnailURL},renditionURLStatus(){return this.thumbnailStatus},clearRenditionError(){this._thumbnailStatus===Mn.Error&&(this._thumbnailStatus=Mn.NotStarted,this._thumbnailInfo=void 0,this._refreshThumbnail=!0,this.dispatch(Fa))},_onAssetChanged(){this.dispatch(Ye)},_onRenditionChanged(){this._refreshThumbnail=!0,this.dispatch(Fa)},transferToSpace(e){return this._core.hostAssetContext.transfer(this,e)},versions:{get(){if(this._assetVersionSource)return this._assetVersionSource;const e=new Jo(this._core,"version"),t=this._core._AssetContextJS._rapi.resolveById(this.id),r=new Vo(e,t);return this._assetVersionSource=new Uo(e,[r],new To),this._assetVersionSource}},getCommentsResource(){return this._commentsResource||(this._commentsResource=new Da(this._core,this.id)),this._commentsResource},hasArtifacts:{get(){return this._core._environment.mobx.reportObserved(this,"change"),this._hasArtifacts}}},defaultObservableEvent:Ye.type})}function za(){const e=Ra().applicationAssetContext;ja("gte","2.0.0-main.1524")&&ja("lt","9999.9999.9999")?Object.defineProperties(_a.prototype,{searchWorkingFiles:{value(){return this._searchWorkingFilesSource?Promise.resolve(this._searchWorkingFilesSource):(this._searchWorkingFilesSource=new Promise(((t,r)=>{e.spaceContext.lookupSpaceById(this.id).then((e=>{e||r(we.create(ge.NOT_FOUND,`searchWorkingFiles could not find Space ${this.id}`)),t(e.searchWorkingFiles())}))})),this._searchWorkingFilesSource)}},searchArtifacts:{value(t=!1){return this._searchArtifactsSource?Promise.resolve(this._searchArtifactsSource):(this._searchArtifactsSource=new Promise(((r,n)=>{e.spaceContext.lookupSpaceById(this.id).then((e=>{e||n(we.create(ge.NOT_FOUND,`searchArtifacts could not find Space ${this.id}`)),r(e.searchArtifacts(t))}))})),this._searchArtifactsSource)}}}):ja("lt","2.0.0-main.1524")&&Object.defineProperties(_a.prototype,{searchWorkingFiles:{value(){var e=this;return me(he().mark((function t(){var r,n,i,o,a,s;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e._core._AssetContextJS,n=r._assetPool,i=r._ussInterface,t.next=4,e._core.hostAssetContext.getAssetWithRepoPath(`${e.pathName}/working_files`,e.repositoryID);case 4:return o=t.sent,a=new ya(n,e._core,o,i,"excludeArtifacts",!0),s=new ba({asset:o,artifactFilter:"excludeArtifacts"}),t.abrupt("return",new Uo(n,[a],s));case 8:case"end":return t.stop()}}),t)})))()}},searchArtifacts:{value(e=!1){var t=this;return me(he().mark((function r(){var n,i,o,a,s,c;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t._core._AssetContextJS,i=n._assetPool,o=n._ussInterface,r.next=4,t._core.hostAssetContext.getAssetWithCloudID(t.id);case 4:return a=r.sent,s=new ya(i,t._core,a,o,"onlyArtifacts",e),c=new ba({asset:a,artifactFilter:"onlyArtifacts",_includeHiddenRecursive:!0}),r.abrupt("return",new Uo(i,[s],c));case 8:case"end":return r.stop()}}),r)})))()}}})}class Va extends Ti{constructor(e,t){super(e,t),this._core=e,this._parent=t}_loadData(){var e=()=>super._loadData,t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e().call(t);case 2:n=t._core.classroomContext.assignmentPool.createMutationSession(),Wa.updateLocalItem(n,t._parent,t._data),n.commit();case 5:case"end":return r.stop()}}),r)})))()}}class Ya extends ua{constructor(e,t,r){super(e,t,r),this._core=e,this._studentAssignmentId="",this._sourceAssets=[],this._sourceTasks=[],this._sourceTutorials=[],this._studentAssignmentFileAppMetadata=new Va(e,this),this._needsRepoMetadata=!0}get adobeAsset(){return this}get isChildOfStudentAssignment(){return!0}get studentAssignmentId(){return this._studentAssignmentId}get sourceAssets(){return this._sourceAssets}get sourceTasks(){return this._sourceTasks}get sourceTutorials(){return this._sourceTutorials}get appMetadata(){return this._studentAssignmentFileAppMetadata}_load({repoMetadata:e,appMetadata:t,effectivePermission:r}={}){var n=()=>super._load,i=this;return me(he().mark((function o(){return he().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,n().call(i,{repoMetadata:e,appMetadata:t,effectivePermission:r});case 2:i._needsRepoMetadata=!1;case 3:case"end":return o.stop()}}),o)})))()}update({sourceAssets:e,sourceTasks:t,sourceTutorials:r}){var n=this;return me(he().mark((function i(){return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(e||t||r){i.next=2;break}throw Error("Incorrect parameters: sourceAssetId, sourceTask, or sourceTutorials parameter required");case 2:return i.next=4,n._core.classroomContext.updateStudentAssignmentFile(n,{"assignment:sourceAssets":e,"assignment:sourceTasks":t,"assignment:sourceTutorials":r});case 4:return i.abrupt("return",n);case 5:case"end":return i.stop()}}),i)})))()}}Ie([$e],Ya.prototype,"isChildOfStudentAssignment",null),Ie([$e],Ya.prototype,"studentAssignmentId",null),Ie([$e],Ya.prototype,"sourceAssets",null),Ie([$e],Ya.prototype,"sourceTasks",null),Ie([$e],Ya.prototype,"sourceTutorials",null),Ie([$e],Ya.prototype,"appMetadata",null);const Wa=new Di({localItemType:Ya,remoteIdProperty:"repo:assetId",propertyUpdater:new Hi({_repositoryID:"repo:repositoryId",_name:"repo:name",_path:"repo:path",_type:"dc:format",_created:{name:"repo:createDate",format:"date"},_modified:{name:"repo:modifyDate",format:"date"},_createdBy:"repo:createdBy",_modifiedBy:"repo:modifiedBy",__links:{name:"_links",format:"object"},_studentAssignmentId:{name:"computedStudentAssignmentId",format:"string"},_sourceAssets:{isArray:!0,name:"assignment:sourceAssets",format:"string"},_sourceTasks:{isArray:!0,name:"assignment:sourceTasks",format:"string"},_sourceTutorials:{isArray:!0,name:"assignment:sourceTutorials",format:"object"}})}),Ka={[tt.ASSIGNMENTS_COLLECTION]:["classroomId"],[tt.ASSIGNMENTS_CREATE]:["classroomId"],[tt.ASSIGNMENTS_PRIMARY]:["assignmentId"]};var $a;!function(e){e.DRAFT="DRAFT",e.ASSIGNED="ASSIGNED"}($a||($a={}));const qa={canClassroomReadSubmissions:"assignment:canClassroomReadSubmissions",instructions:"assignment:instructions",dueDate:"assignment:dueDate",externalTemplateIds:"assignment:externalTemplateIds",templateIds:"assignment:templateIds",name:"repo:name",tasks:"assignment:tasks",status:"assignment:status",referenceIds:"assignment:referenceIds",externalTutorials:"assignment:externalTemplateIds"};var Xa,Ja,Qa;function es(){return{[Qa.SAM_VERSION]:wn}}function ts(e,t,r=!0){let n=!0;if(Array.isArray(e)){for(let i=0;i<e.length&&(n=ts(e[i],t,r),n);i++);return n}if(!rs(e,"string",!0)&&(n=!1,r))throw Error(`${t} is not a valid string`);if(""===e&&(n=!1,r))throw Error(`${t} is an empty string`);return n}function rs(e,t,r,n){if(!r&&null==e)return!0;switch(t){case"string":return"string"==typeof e;case"date":return"object"==typeof e&&void 0!==e.toDateString;case"string[]":return Array.isArray(e)&&e.every((e=>rs(e,"string",!1)));case"enum":return Object.values(n).some((t=>t===e));case"blob":return e instanceof Blob;case"object":return"object"==typeof e&&!Array.isArray(e)&&null!==e}return!1}function ns(e,t){return e.reduce(((e,{key:r,type:n,ref:i,isRequired:o})=>{if(!rs(t[r],n,o,i)){const t="enum"===n||"object"===n?"an":"a";let i=`${r.toString()} is not ${t} ${n}`;o&&(i+=" or is missing"),e.push(i)}return e}),[])}function is(e,t){return`${e}-${t}`}function os(e){var t,r;return null===(r=null===(t=e["classroom:context"])||void 0===t?void 0:t["classroom:assignmentContext"])||void 0===r?void 0:r["classroom:assignmentAssetId"]}!function(e){e.ANY="ANY",e.NONE="NONE",e.SELF="SELF"}(Xa||(Xa={})),function(e){e.albumCover="album-cover",e.bannerPrint="banner-print",e.bannerWeb="banner-web",e.blogGraphic="blog-graphic",e.blogHeader="blog-header",e.bookCover="book-cover",e.bookmark="bookmark",e.brochure="brochure",e.businessCard="business-card",e.calendar="calendar",e.cardGreeting="card-greeting",e.certificate="certificate",e.checklist="checklist",e.classSchedule="class-schedule",e.comicStrip="comic-strip",e.conceptMap="concept-map",e.couponSheet="coupon-sheet",e.coverPage="cover-page",e.displayAd="display-ad",e.dividerPage="divider-page",e.drawing="drawing",e.drawingWorksheet="drawing-worksheet",e.ebookCover="ebook-cover",e.emailHeader="email-header",e.etsyShopBanner="etsy-shop-banner",e.etsyShopCover="etsy-shop-cover",e.eventbriteHeader="eventbrite-header",e.facebookAd="facebook-ad",e.facebookEventCover="facebook-event-cover",e.facebookGroupCover="facebook-group-cover",e.facebookPageCover="facebook-page-cover",e.facebookPost="facebook-post",e.facebookProfileCover="facebook-profile-cover",e.facebookShopCover="facebook-shop-cover",e.facebookStory="facebook-story",e.flashCard="flash-card",e.flashCardSheet="flash-card-sheet",e.flyer="flyer",e.giftCertificate="gift-certificate",e.giftTag="gift-tag",e.googleClassroomBanner="google-classroom-banner",e.graph="graph",e.graphicOrganizer="graphic-organizer",e.idCard="id-card",e.infographic="infographic",e.instagramAd="instagram-ad",e.instagramCarousel="instagram-carousel",e.instagramLandscapePost="instagram-landscape-post",e.instagramPortraitPost="instagram-portrait-post",e.instagramReel="instagram-reel",e.instagramSquarePost="instagram-square-post",e.instagramStory="instagram-story",e.instagramStoryAd="instagram-story-ad",e.invitation="invitation",e.invoice="invoice",e.journal="journal",e.label="label",e.labelSheet="label-sheet",e.leafletTrifold="leaflet-trifold",e.lessonPlan="lesson-plan",e.letter="letter",e.letterhead="letterhead",e.lineAdSmall="line-ad-small",e.lineAdSquare="line-ad-square",e.lineAdSquareVideo="line-ad-square-video",e.lineAdVertical="line-ad-vertical",e.lineRichMenuLarge="line-rich-menu-large",e.lineRichMenuSmall="line-rich-menu-small",e.lineRichMessage="line-rich-message",e.linkedinBlogPost="linkedin-blog-post",e.linkedinPost="linkedin-post",e.linkedinProfileCover="linkedin-profile-cover",e.logo="logo",e.magazine="magazine",e.mediaKit="media-kit",e.meme="meme",e.memo="memo",e.menu="menu",e.mindmap="mindmap",e.mobileVideo="mobile-video",e.mug="mug",e.nameTag="name-tag",e.newsletter="newsletter",e.noteHeaderImage="note-header-image",e.onlineNewsletter="online-newsletter",e.onlineReport="online-report",e.pamphlet="pamphlet",e.photoBook="photo-book",e.pinterestIdeaPin="pinterest-idea-pin",e.pinterestPost="pinterest-post",e.pinterestSquare="pinterest-square",e.pinterestVertical="pinterest-vertical",e.placeCard="place-card",e.planner="planner",e.playlistCover="playlist-cover",e.podcastCover="podcast-cover",e.postcard="postcard",e.poster="poster",e.presentation="presentation",e.printAd="print-ad",e.program="program",e.proposal="proposal",e.recipeCard="recipe-card",e.redditCover="reddit-cover",e.report="report",e.reportCard="report-card",e.resume="resume",e.rubric="rubric",e.snapchatAd="snapchat-ad",e.snapchatFilter="snapchat-filter",e.soundcloudBanner="soundcloud-banner",e.tableOfContents="table-of-contents",e.ticket="ticket",e.tiktokAd="tiktok-ad",e.tiktokVideo="tiktok-video",e.tshirt="tshirt",e.tumblrBanner="tumblr-banner",e.twitchBanner="twitch-banner",e.twitchOverlay="twitch-overlay",e.twitterHeader="twitter-header",e.twitterPost="twitter-post",e.twitterVideo="twitter-video",e.video="video",e.wallpaperDesktop="wallpaper-desktop",e.wallpaperMobile="wallpaper-mobile",e.webpage="webpage",e.worksheet="worksheet",e.youtubeBanner="youtube-banner",e.youtubeDisplayAds="youtube-display-ads",e.youtubeProfilePhoto="youtube-profile-photo",e.youtubeShorts="youtube-shorts",e.youtubeThumbnail="youtube-thumbnail",e.youtubeVideo="youtube-video",e.youtubeVideoAd="youtube-video-ad",e.zoomBackground="zoom-background"}(Ja||(Ja={})),function(e){e.PREFER_RAPI="X-Prefer-RAPI",e.SAM_VERSION="X-Shared-Asset-Model-Version"}(Qa||(Qa={}));const as=es(),ss={orderDirection:"ascending",orderBy:"repo:name",start:0,limit:0};function cs(e,t){const r=function(e,t){return Object.assign({},e,t)}(ss,t),n=function(e){const t={};return e.start&&(t.start=e.start),e.limit&&(t.limit=e.limit),t}(r);n.orderBy=function(e){return("ascending"===e.orderDirection?"+":"-")+e.orderBy}(r);const i=r.view,o=r.classroomId;return i&&(n.view=i),o&&(n.classroomId=o),ot(e,tt.ASSIGNMENTS_COLLECTION,n)}function ls(e){var t,r,n,i,o,a,s,c,l;const u=[],d=[{key:"classroomId",type:"string",isRequired:!0},{key:"createdBy",type:"string",isRequired:!1},{key:"dueDate",type:"date",isRequired:!1},{key:"externalTemplateIds",type:"string[]",isRequired:!1},{key:"instructions",type:"string",isRequired:!1},{key:"name",type:"string",isRequired:!0},{key:"status",type:"enum",isRequired:!1,ref:$a},{key:"tasks",type:"string[]",isRequired:!1},{key:"templateIds",type:"string[]",isRequired:!1}];u.push(...ns(d,e)),null===(t=e.references)||void 0===t||t.forEach(((e,t)=>{"object"==typeof e?(rs(e.content,"string",!0)||rs(e.content,"blob",!0)||u.push(`references[${t}].content is not a string, Blob, or is missing`),rs(e.name,"string",!0)||u.push(`references[${t}].name is not a string or is missing`)):"string"!=typeof e&&u.push(`references[${t}] is not an string or ExternalAsset`)})),e.externalTutorials&&(Array.isArray(e.externalTutorials)?e.externalTutorials.forEach(((e,t)=>{(function(e){return ns([{key:"surfaces",type:"object",isRequired:!0},{key:"aem_id",type:"string",isRequired:!0},{key:"metadata",type:"object",isRequired:!1}],e)})(e).forEach((e=>{u.push(`externalTutorials[${t}]: ${e}`)}))})):u.push("externalTutorials is not an array"));const p=(null!==(n=null===(r=e.tasks)||void 0===r?void 0:r.length)&&void 0!==n?n:0)>0,h=(null!==(o=null===(i=e.templateIds)||void 0===i?void 0:i.length)&&void 0!==o?o:0)>0,f=(null!==(s=null===(a=e.externalTutorials)||void 0===a?void 0:a.length)&&void 0!==s?s:0)>0,m=(null!==(l=null===(c=e.externalTemplateIds)||void 0===c?void 0:c.length)&&void 0!==l?l:0)>0;return e.status===$a.DRAFT||p||h||f||m||u.push("Assigned Assignment must have tasks, templates, externalTemplateIds, or tutorials"),u}class us extends Pt{_discoverLinks(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._getResponse(e,{headers:as});case 2:return n=r.sent,r.abrupt("return",n._links);case 4:case"end":return r.stop()}}),r)})))()}_getEndpointHref(e){return`https://${this._core._environment.endpoints.ASSIGNMENTS_HOST}${e}`}discoverLinks(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._discoverLinks(e._getEndpointHref("/api/v1/index")));case 1:case"end":return t.stop()}}),t)})))()}getAssignments(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.classroomId){r.next=2;break}throw we.create(ge.BAD_REQUEST,"classroomId is required to fetch assignments");case 2:return r.next=4,t.discoverLinks();case 4:return n=r.sent,!(i=cs(n,e)).includes("submissions")&&e.submissions&&(i=`${i}&submissions=${e.submissions}`),r.abrupt("return",t._getResponse(i,{headers:as}));case 8:case"end":return r.stop()}}),r)})))()}getAssignment(e,t,r){var n=this;return me(he().mark((function i(){var o,a,s;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.discoverLinks();case 2:return o=i.sent,a={assignmentId:e},t&&Object.assign(a,{submissions:t}),s=ot(o,tt.ASSIGNMENTS_PRIMARY,a),t&&!s.includes("submissions")&&(s=`${s}?submissions=${t}`),i.next=9,n._getResponse(s,{headers:Object.assign(Object.assign({},as),r)});case 9:return i.abrupt("return",i.sent);case 10:case"end":return i.stop()}}),i)})))()}getAssignmentByCode(e,t){var r=this;return me(he().mark((function n(){var i,o;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.discoverLinks();case 2:return i=n.sent,o=`${ot(i,tt.ASSIGNMENTS_PRIMARY)}code/${e}`,t&&!o.includes("submissions")&&(o=`${o}?submissions=${t}`),n.next=7,r._getResponse(o,{headers:as});case 7:return n.abrupt("return",n.sent);case 8:case"end":return n.stop()}}),n)})))()}createAssignment(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s,c,l,u,d,p,h,f;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return s=(null!==(i=null===(n=e.tasks)||void 0===n?void 0:n.length)&&void 0!==i?i:0)>0,c=e.status||(s?$a.ASSIGNED:$a.DRAFT),r.next=4,t.discoverLinks();case 4:return l=r.sent,(u=new URL(ot(l,tt.ASSIGNMENTS_CREATE))).searchParams.append("classroomId",e.classroomId),u.searchParams.append("assign",c===$a.ASSIGNED?"true":"false"),d=e.externalTemplateIds||[],p=(null===(o=e.externalTutorials)||void 0===o?void 0:o.map((e=>JSON.stringify(e))))||[],r.next=12,t._doPost(u.toString(),Object.assign(Object.assign({},as),{"Content-Type":Qe}),JSON.stringify({"assignment:canClassroomReadSubmissions":e.canClassroomReadSubmissions,"assignment:dueDate":null===(a=e.dueDate)||void 0===a?void 0:a.toISOString(),"assignment:instructions":e.instructions,"repo:name":e.name,"assignment:status":c,"assignment:tasks":e.tasks||[],"assignment:createdBy":e.createdBy,"assignment:externalTemplateIds":[...d,...p]}),[201]);case 12:return h=r.sent,r.next=15,h.json();case 15:return f=r.sent,r.abrupt("return",f);case 17:case"end":return r.stop()}}),r)})))()}patchAssignment(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.discoverLinks();case 2:return i=n.sent,o=ot(i,tt.ASSIGNMENTS_PRIMARY,{assignmentId:e}),n.next=6,r._doPatch(o,Object.assign(Object.assign({},as),{"Content-Type":Qe}),JSON.stringify(t),[200,204]);case 6:return a=n.sent,n.next=9,a.json();case 9:return s=n.sent,n.abrupt("return",s);case 11:case"end":return n.stop()}}),n)})))()}discardAssignment(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.discoverLinks();case 2:return n=r.sent,i=`${ot(n,tt.ASSIGNMENTS_PRIMARY,{assignmentId:e})}/:discard`,r.next=6,t._doPost(i,as,void 0,[204]);case 6:case"end":return r.stop()}}),r)})))()}restoreAssignment(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.discoverLinks();case 2:return n=r.sent,i=`${ot(n,tt.ASSIGNMENTS_PRIMARY,{assignmentId:e})}/:restore`,r.next=6,t._doPost(i,as,void 0,[204]);case 6:case"end":return r.stop()}}),r)})))()}}var ds;Ie([Ge((function(e){return rt(e,Ka)})),Ae(0,Ze)],us.prototype,"_discoverLinks",null),function(e){e.NOT_STARTED="NOT_STARTED",e.IN_PROGRESS="IN_PROGRESS",e.RETURNED="RETURNED",e.SUBMITTED="SUBMITTED"}(ds||(ds={}));const ps=[ds.IN_PROGRESS,ds.NOT_STARTED,ds.RETURNED,ds.SUBMITTED];var hs;!function(e){e.Any="ANY",e.Self="SELF"}(hs||(hs={}));const fs={[ds.SUBMITTED]:0,[ds.IN_PROGRESS]:1,[ds.RETURNED]:2,[ds.NOT_STARTED]:3},ms=(e,t)=>Wi(e.student.displayName||"",t.student.displayName||""),gs={studentDisplayName:(e,t)=>ms(e,t),submissionDate(e,t){let r;return r=e.submissionDate||t.submissionDate?e.submissionDate?t.submissionDate?Wi(e.submissionDate.getTime(),t.submissionDate.getTime()):-1:1:0,0===r?ms(e,t):r},status(e,t){const r=Wi(fs[e.status],fs[t.status]);return 0===r?ms(e,t):r}};class vs extends(Ki(gs)){}vs.default=new vs("ascending","studentDisplayName");var ys=Object.freeze({__proto__:null,default:vs});class bs extends Ti{constructor(e,t){super(e,t),this._core=e,this._parent=t}_loadData(){var e=()=>super._loadData,t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e().call(t);case 2:n=t._core.classroomContext.assignmentPool.createMutationSession(),xs.updateLocalItem(n,t._parent,t._data),n.commit();case 5:case"end":return r.stop()}}),r)})))()}}class _s{constructor(e){const t=e||{},r=t.assignmentCode,n=t.assignmentId;this.assignmentCode=r||"",this.assignmentId=n||""}matches(e){if(!this.assignmentId&&!this.assignmentCode)throw new Error("Getting StudentAssignments across Assignments is not supported at this time");if(!e.isStudentAssignment)return!1;const t=e;return!(this.assignmentId&&this.assignmentId!==t.assignmentId||this.assignmentCode&&this.assignmentCode!==t.assignmentCode)}getRelationToFilter(){return"subset"}get hash(){const e=this.assignmentId||this.assignmentCode;return e?`assignmentId=${e}`:"isStudentAssignment"}}const Es=Object.values($a);class ws extends ua{constructor(e,t,r){super(e,t,r),this._core=e,this._assetClass="directory",this._assignmentInterface=new us(this._core),this._canClassroomReadSubmissions=!1,this._classroomId="",this._code="",this._externalTemplateIds=[],this._externalTemplateIdsRemote=[],this._instructions="",this._isAutoCreated=!1,this._studentAssignments=[],this._externalTutorials=[],this._isExternalTutorialsDirty=!1,this._assignmentAppMetadata=new bs(e,this),this._needsRepoMetadata=!0}get appMetadata(){return this._assignmentAppMetadata}get canClassroomReadSubmissions(){return this._canClassroomReadSubmissions}get classroomId(){return this._classroomId}get studentAssignments(){return this._studentAssignments}getStudentAssignmentsFilter(){return new _s({assignmentId:this.id})}getStudentAssignments(){return this._core.classroomContext._getStudentAssignmentsSource(this.getStudentAssignmentsFilter())}getStudentAssignmentsByStatus(e){return Array.isArray(e)?this._studentAssignments.filter((t=>e.includes(t.status))):this._studentAssignments.filter((t=>t.status===e))}get existingStudentAssignments(){const e=[ds.IN_PROGRESS,ds.SUBMITTED,ds.RETURNED];return this.getStudentAssignmentsByStatus(e)}get code(){return this._code}get isAssignment(){return!0}get instructions(){return this._instructions}get isAutoCreated(){return this._isAutoCreated}get dueDate(){return this._dueDate}get status(){return this._status}get tasks(){var e;return null!==(e=this._tasks)&&void 0!==e?e:[]}get templateIds(){var e;return null!==(e=this._templateIds)&&void 0!==e?e:[]}get externalTemplateIds(){return this._isExternalTutorialsDirty&&(this._externalTemplateIds=this._externalTemplateIdsRemote.filter((e=>{try{return JSON.parse(e),!1}catch(e){return!0}}))),this._externalTemplateIds}get externalTutorials(){return this._isExternalTutorialsDirty&&(this._externalTutorials=this._externalTemplateIdsRemote.reduce(((e,t)=>{try{e.push(JSON.parse(t))}catch(e){}return e}),[])),this._externalTutorials}get referenceIds(){var e;return null!==(e=this._referenceIds)&&void 0!==e?e:[]}get templates(){return gi("Assignment.templates","Assignment.templates is deprecated and will be removed on or after 2024-10-01. Please use Assignment.templateIds instead."),[]}_loadWithRetry(){return this._load()}_load({repoMetadata:e,appMetadata:t,effectivePermission:r}={}){var n=()=>super._load,i=this;return me(he().mark((function o(){var a,s,c,l;return he().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,n().call(i,{repoMetadata:e,appMetadata:t,effectivePermission:r});case 2:if(i._needsRepoMetadata=!1,a=void 0!==i.links[T.ASSIGNMENTS_PRIMARY],s=0===i.studentAssignments.length,e&&t&&!s&&a){o.next=13;break}return o.next=9,i._assignmentInterface.getAssignment(i.id,void 0,{[Qa.PREFER_RAPI]:"true"});case 9:c=o.sent,l=i._core.classroomContext.assignmentPool.createMutationSession(),xs.updateRemoteItem(l,c),l.commit();case 13:case"end":return o.stop()}}),o)})))()}updateAssignment(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._core.classroomContext.updateAssignment(t.id,e));case 1:case"end":return r.stop()}}),r)})))()}setTemplates(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._core.classroomContext.updateAssignment(t.id,{templateIds:e}));case 1:case"end":return r.stop()}}),r)})))()}assignAssignment(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._core.classroomContext.updateAssignment(e.id,{status:$a.ASSIGNED}));case 1:case"end":return t.stop()}}),t)})))()}discard(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isDiscarded){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e._assignmentInterface.discardAssignment(e.id);case 4:r=e._core.classroomContext.assignmentPool,n=r.createUpdateSession(),xs.updateLocalItem(n,e,{"repo:state":Ai[1]}),n.commit();case 8:case"end":return t.stop()}}),t)})))()}restore(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isDiscarded){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e._assignmentInterface.restoreAssignment(e.id);case 4:r=e._core.classroomContext.assignmentPool,n=r.createUpdateSession(),xs.updateLocalItem(n,e,{"repo:state":Ai[0]}),n.commit();case 8:case"end":return t.stop()}}),t)})))()}get links(){return Object.assign({},this.__links)}}Ie([$e],ws.prototype,"appMetadata",null),Ie([$e],ws.prototype,"canClassroomReadSubmissions",null),Ie([$e],ws.prototype,"classroomId",null),Ie([$e],ws.prototype,"studentAssignments",null),Ie([$e],ws.prototype,"code",null),Ie([$e],ws.prototype,"isAssignment",null),Ie([$e],ws.prototype,"instructions",null),Ie([$e],ws.prototype,"isAutoCreated",null),Ie([$e],ws.prototype,"dueDate",null),Ie([$e],ws.prototype,"status",null),Ie([$e],ws.prototype,"tasks",null),Ie([$e],ws.prototype,"templateIds",null),Ie([$e],ws.prototype,"externalTemplateIds",null),Ie([$e],ws.prototype,"externalTutorials",null),Ie([$e],ws.prototype,"referenceIds",null),Ie([It],ws.prototype,"_loadWithRetry",null),Ie([$e],ws.prototype,"links",null);const xs=new Di({localItemType:ws,remoteIdProperty:"repo:assetId",propertyUpdater:new Hi({_canClassroomReadSubmissions:{name:"assignment:canClassroomReadSubmissions",format:"boolean"},_name:{name:"repo:name",format:"string"},_created:{name:"repo:createDate",format:"date"},_repositoryID:{name:"repo:repositoryId",format:"string"},__links:{name:"_links",format:"object"},_studentAssignments:{isArray:!0,name:"children",format:"object",set:(e,t)=>{const r=t;r.studentAssignments.length=0;const n=r._core.classroomContext._updateStudentAssignmentsCache({remoteStudentAssignments:e,assignmentId:r.id,assignmentCode:r.code});r.studentAssignments.push(...n),vs.default.sortItems(r.studentAssignments)}},_tasks:{isArray:!0,name:"assignment:tasks"},_code:{name:"assignment:code",format:"string"},_classroomId:{name:"assignment:classroomId",format:"string"},_createdBy:{name:"repo:createdBy",format:"string"},_status:{name:"assignment:status",format:"string",choices:Es},_dueDate:{name:"assignment:dueDate",format:"date"},_instructions:{name:"assignment:instructions",format:"string"},_templateIds:{name:"assignment:templateIds",isArray:!0},_externalTemplateIdsRemote:{name:"assignment:externalTemplateIds",isArray:!0,set:(e,t)=>{const r=t;r._externalTemplateIdsRemote=e,r._isExternalTutorialsDirty=!0}},_referenceIds:{name:"assignment:referenceIds",isArray:!0},_path:{name:"repo:path",format:"string"},_modifiedBy:{name:"repo:modifiedBy",format:"string"},_assetState:{name:"repo:state",choices:Ai},_isAutoCreated:{get:e=>"adobe"===e["assignment:createdBy"],format:"boolean"}})}),Ls=es();class Os extends Pt{_getUrl(e){return`https://${this._core._environment.endpoints.ASSIGNMENTS_HOST}${e}`}getStudentAssignments(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s,c;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.assignmentCode||e.assignmentId){r.next=2;break}throw we.create(ge.BAD_REQUEST,"Either assignmentCode or assignmentId must be provided");case 2:return n=e.loadDocuments,i=Pe(e,["loadDocuments"]),o=Object.assign({},i),Object.keys(o).forEach((e=>{const t=o[e];(""===t||void 0===t||Array.isArray(t)&&0===t.length)&&delete o[e]})),(a=new URLSearchParams(o)).append("includeStudentDocuments",n?"true":"false"),s=a.toString(),r.next=10,t._getResponse(t._getUrl(`/api/v1/studentAssignments?${s}`),{headers:Ls});case 10:return c=r.sent,r.abrupt("return",c);case 12:case"end":return r.stop()}}),r)})))()}getStudentAssignment(e,t,r){var n=this;return me(he().mark((function i(){var o,a;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=(null==t?void 0:t.loadDocuments)?"true":"false",a=`https://${n._core._environment.endpoints.ASSIGNMENTS_HOST}/api/v1/studentAssignments/${e}?includeStudentDocuments=${o}`,i.abrupt("return",n._getResponse(a,{headers:Object.assign(Object.assign({},Ls),r)}));case 3:case"end":return i.stop()}}),i)})))()}return(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.links,i=e.studentAssignmentId,o=e.submissionId,a=ot(n,tt.ASSIGNMENTS_RETURN,{studentAssignmentId:i,submissionId:o}),r.next=4,t._doPost(a,Ls,void 0,[200]);case 4:return s=r.sent,r.abrupt("return",s.json());case 6:case"end":return r.stop()}}),r)})))()}start(e){var t=this;return me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.assignmentId,i=e.links,o=ot(i,tt.ASSIGNMENTS_START,{assignmentId:n}),r.next=4,t._doPost(o,Ls,void 0,[200]);case 4:return a=r.sent,r.abrupt("return",a.json());case 6:case"end":return r.stop()}}),r)})))()}submit(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.links,i=e.studentAssignmentId,o=e.submissionId,a=ot(n,tt.ASSIGNMENTS_SUBMIT,{studentAssignmentId:i,submissionId:o}),r.next=4,t._doPost(a,Ls,void 0,[200]);case 4:return s=r.sent,r.abrupt("return",s.json());case 6:case"end":return r.stop()}}),r)})))()}}class Ss extends Ti{constructor(e,t){super(e,t),this._core=e,this._parent=t,this._studentAssignmentsInterface=new Os(this._core)}_loadData(){var e=this;return me(he().mark((function t(){var r,n,i,o,a;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.hostAssetContext._rapi.getAssetLinks(e._parent.id);case 2:return r=t.sent,t.next=5,e._studentAssignmentsInterface.getStudentAssignment(e._parent.id,void 0,{[Qa.PREFER_RAPI]:"true"});case 5:n=t.sent,i=n._links,o=Pe(n,["_links"]),e._data=Object.assign(Object.assign({},o),{_links:Object.assign(Object.assign({},r),i)}),a=e._core.classroomContext.assignmentPool.createMutationSession(),ks.updateLocalItem(a,e._parent,e._data),a.commit();case 11:case"end":return t.stop()}}),t)})))()}}class Ts{constructor({core:e,studentAssignmentsInterface:t}){this._core=e,this._studentAssignmentsInterface=t}loadPage(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_loadPage(e,t){var r=this;return me(he().mark((function t(){var n,i,o,a,s,c;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=Date.now(),i=e.filter.studentAssignmentId,o=r._core.classroomContext.assignmentPool.getLocalItemById(i),(a=null==o?void 0:o.studentAssignmentFiles)&&0!==a.length){t.next=10;break}return t.next=7,r._studentAssignmentsInterface.getStudentAssignment(i,{loadDocuments:!0});case 7:s=t.sent,c=r._core.classroomContext.assignmentPool.createMutationSession(),a=r._core.classroomContext._updateStudentAssignmentFilesCache({remoteStudentAssignmentFiles:s.children,session:c,studentAssignmentId:i});case 10:return t.abrupt("return",{items:a,total:a.length,mostRecentValidMutation:n});case 11:case"end":return t.stop()}}),t)})))()}}class Ps{constructor(e){var t,r;this._mediaTypes=void 0,this._excludeMediaTypes=void 0,(null==e?void 0:e.mediaTypes)&&(this._mediaTypes=new Set(e.mediaTypes)),(null==e?void 0:e.excludeMediaTypes)&&(this._excludeMediaTypes=new Set(e.excludeMediaTypes)),(null===(t=null==e?void 0:e.mediaTypes)||void 0===t?void 0:t.length)&&(null===(r=null==e?void 0:e.excludeMediaTypes)||void 0===r?void 0:r.length)&&(this._mediaTypes=new Set([]),console.warn("Both mediaTypes and excludeMediaTypes should not be specified while creating AdobeAssetFilter, setting default value for mediaTypes"))}get hash(){var e,t;let r="mediatypes="+((null===(e=this._mediaTypes)||void 0===e?void 0:e.size)?`${[...this._mediaTypes].sort().join(",")}`:"all-types");return r+=":excludemediatypes="+((null===(t=this._excludeMediaTypes)||void 0===t?void 0:t.size)?`${[...this._excludeMediaTypes].sort().join(",")}`:"none"),r}get mediaTypes(){return this._mediaTypes}get excludeMediaTypes(){return this._excludeMediaTypes}get name(){return"AdobeAssetFilter"}matches(e){var t,r;return(!(null===(t=this._excludeMediaTypes)||void 0===t?void 0:t.size)||!this._excludeMediaTypes.has(e.mediaType))&&(!(null===(r=this._mediaTypes)||void 0===r?void 0:r.size)||this._mediaTypes.has(e.mediaType))}getRelationToFilter(e){const t=this.getMediaRelationToFilter(e);return"disjoint"===t?"disjoint":"unknown"===t?"unknown":t}getMediaRelationToFilter(e){var t,r,n,i,o,a,s,c,l,u,d,p;let h;function f(e,t){let r=!0,n=!1;var i,o=ue(e);try{for(o.s();!(i=o.n()).done;){const e=i.value;t.has(e)?n=!0:r=!1}}catch(e){o.e(e)}finally{o.f()}return n?r?h.subset:h.intersaction:h.disjoint}!function(e){e[e.uninitialized=0]="uninitialized",e[e.subset=1]="subset",e[e.disjoint=2]="disjoint",e[e.intersaction=3]="intersaction"}(h||(h={}));let m=h.uninitialized,g=h.uninitialized,v=h.uninitialized,y=h.uninitialized;return(null===(t=this._mediaTypes)||void 0===t?void 0:t.size)&&(null===(r=e._mediaTypes)||void 0===r?void 0:r.size)&&(m=f(this._mediaTypes,e._mediaTypes)),(null===(n=this._mediaTypes)||void 0===n?void 0:n.size)&&(null===(i=e._excludeMediaTypes)||void 0===i?void 0:i.size)&&(g=f(this._mediaTypes,e._excludeMediaTypes)),(null===(o=this._excludeMediaTypes)||void 0===o?void 0:o.size)&&(null===(a=e._mediaTypes)||void 0===a?void 0:a.size)&&(v=f(e._mediaTypes,this._excludeMediaTypes)),(null===(s=this._excludeMediaTypes)||void 0===s?void 0:s.size)&&(null===(c=e._excludeMediaTypes)||void 0===c?void 0:c.size)&&(y=f(e._excludeMediaTypes,this._excludeMediaTypes)),v===h.subset||g===h.subset||m===h.disjoint?"disjoint":y===h.intersaction||v===h.intersaction||g===h.intersaction||m===h.intersaction?"unknown":(null===(l=this._mediaTypes)||void 0===l?void 0:l.size)||(null===(u=this._excludeMediaTypes)||void 0===u?void 0:u.size)||!(null===(d=e._mediaTypes)||void 0===d?void 0:d.size)&&!(null===(p=e._excludeMediaTypes)||void 0===p?void 0:p.size)?"subset":"unknown"}}var Is=Object.freeze({__proto__:null,default:Ps});class As extends Ps{matches(e){return!0===e.isChildOfStudentAssignment}}class Cs extends ua{constructor(e,t,r){super(e,t,r),this._core=e,this._assetClass="directory",this._assignmentId="",this._assignmentCode="",this._studentAssignmentLinks={},this._status=ds.NOT_STARTED,this._student={id:"",displayName:"",email:""},this._studentAssignmentsInterface=new Os(this._core),this._studentAssignmentFiles=[],this._studentAssignmentAppMetadata=new Ss(e,this),this._studentAssignmentFilesSource=new Uo(e.classroomContext.assignmentPool,[new Ts({core:e,studentAssignmentsInterface:this._studentAssignmentsInterface})],new As),this._needsRepoMetadata=!0}get appMetadata(){return this._studentAssignmentAppMetadata}get studentAssignmentFiles(){return this._studentAssignmentFiles}get studentAssignmentLinks(){return this._studentAssignmentLinks}get assignmentId(){return this._assignmentId}get assignmentCode(){return this._assignmentCode}get status(){return this._status}get student(){return this._student}get studentDirectoryId(){return this._studentDirectoryId}get submission(){return this._submission}get submissionDate(){return this._submissionDate}get isStudentAssignment(){return!0}getFiles(e={}){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._studentDirectoryId){r.next=2;break}return r.abrupt("return",[]);case 2:return r.abrupt("return",t._core.classroomContext.getStudentAssignmentFiles({studentDirectoryId:t.studentDirectoryId,order:e.order}));case 3:case"end":return r.stop()}}),r)})))()}get files(){if(this._studentDirectoryId)return this._studentAssignmentFilesSource}get _canLoadNewChildrenFromONSNotification(){return this.hasPermission(Br.Write)}canStart(){return this._status===ds.NOT_STARTED}canReturn(){return this._status===ds.SUBMITTED}_load({repoMetadata:e,appMetadata:t,effectivePermission:r,doFetchStudentAssignmentMetadata:n=!0}={}){var i=()=>super._load,o=this;return me(he().mark((function a(){var s;return he().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,i().call(o,{repoMetadata:e,appMetadata:t,effectivePermission:r});case 2:if(o._needsRepoMetadata=!1,!n){a.next=8;break}return a.next=6,o._studentAssignmentsInterface.getStudentAssignment(o.id,void 0,{[Qa.PREFER_RAPI]:"true"});case 6:s=a.sent,o._core.classroomContext._updateStudentAssignmentCache({remoteStudentAssignment:s});case 8:case"end":return a.stop()}}),a)})))()}return(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._core.classroomContext._returnAssignment({links:e._studentAssignmentLinks,studentAssignmentId:e.studentDirectoryId,submissionId:null===(r=e.submission)||void 0===r?void 0:r["repo:assetId"]}));case 1:case"end":return t.stop()}}),t)})))()}start(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._core.classroomContext._startAssignment({assignmentId:e.assignmentId,links:e._studentAssignmentLinks}));case 1:case"end":return t.stop()}}),t)})))()}submit(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s,c;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._status!==ds.NOT_STARTED){r.next=3;break}return r.next=3,t.start();case 3:return r.next=5,t._core.hostAssetContext.getAssetWithCloudID(t.studentDirectoryId);case 5:if(!(n=r.sent).children){r.next=10;break}return i=n.children.getList(Xi.default),r.next=10,Bo(i);case 10:if(!i||void 0!==i.items.find((t=>t.id===e))){r.next=21;break}return r.next=13,t._core.hostAssetContext.getAssetWithCloudID(e);case 13:return o=r.sent,a=t._core.classroomContext._getFormattedCreatedDateHelper({includeFormattedDate:!1,date:new Date}),r.next=17,t._core.classroomContext.getAssignmentByID(t.assignmentId);case 17:return s=r.sent,c=`${t.student.displayName} ${s.name} ${a}.${o.extension}`,r.next=21,o.move(n,c);case 21:return r.next=23,t._core.classroomContext.submitAssignment({links:t._studentAssignmentLinks,studentAssignmentId:t.studentDirectoryId,submissionId:e});case 23:return r.abrupt("return",t);case 24:case"end":return r.stop()}}),r)})))()}}Ie([$e],Cs.prototype,"appMetadata",null),Ie([$e],Cs.prototype,"studentAssignmentLinks",null),Ie([$e],Cs.prototype,"assignmentId",null),Ie([$e],Cs.prototype,"assignmentCode",null),Ie([$e],Cs.prototype,"status",null),Ie([$e],Cs.prototype,"student",null),Ie([$e],Cs.prototype,"studentDirectoryId",null),Ie([$e],Cs.prototype,"submission",null),Ie([$e],Cs.prototype,"submissionDate",null),Ie([$e],Cs.prototype,"getFiles",null);const ks=new Di({remoteIdProperty:"repo:assetId",getAlternateId:function(e){var t;return`${null===(t=e["assignment:assignee"])||void 0===t?void 0:t.id}-${e.computedAssignmentId}`},localItemType:Cs,propertyUpdater:new Hi({_assignmentId:{name:"computedAssignmentId",format:"string"},_assignmentCode:{name:"computedAssignmentCode",format:"string"},_studentAssignmentFiles:{isArray:!0,name:"children",format:"object",set:(e,t)=>{const r=t;r.studentAssignmentFiles.length=0;const n=r._core.classroomContext.assignmentPool.createMutationSession(),i=r._core.classroomContext._updateStudentAssignmentFilesCache({remoteStudentAssignmentFiles:e,session:n,studentAssignmentId:r.id});r.studentAssignmentFiles.push(...i)}},_studentAssignmentLinks:{name:"_links",format:"object",set:(e,t)=>{const r=t;r._studentAssignmentLinks=e,r.__links=e}},_status:{name:"assignment:submissionStatus",format:"string"},_student:{name:"assignment:assignee",format:"object_subset",set:(e,t)=>{const r=t;r._student=Object.assign(Object.assign({},r._student),e)}},_studentDirectoryId:{name:"repo:assetId",format:"string"},_submission:{name:"assignment:submission",format:"object"},_submissionDate:{name:"assignment:submissionDate",format:"date"}})}),Ds="application/vnd.adobe.library+dcx";function Ns(e){var t,r;return!!(null===(r=null===(t=null==e?void 0:e["cc:inheritable"])||void 0===t?void 0:t["cc:team"])||void 0===r?void 0:r["repo:assetId"])}function Rs(e){var t,r,n;return!!(null===(n=null===(r=null===(t=e.am)||void 0===t?void 0:t["cc:inheritable"])||void 0===r?void 0:r["cc:team"])||void 0===n?void 0:n["repo:assetId"])}function Ms(e){var t;return(null===(t=e.rm)||void 0===t?void 0:t["dc:format"])===Ds}function js(e){var t,r;return!!(null===(r=null===(t=null==e?void 0:e["cc:inheritable"])||void 0===t?void 0:t["cc:studentAssignment"])||void 0===r?void 0:r["repo:assetId"])}function Fs(e){return e.type===Ds}function Zs(e){return e.type===qr}function Bs(e){return{"repo:assetId":e.id}}function Gs(e){var t;return{"repo:assetId":e.asset_id,"repo:repositoryId":e["repo:repositoryId"],_embedded:{[tt.AC_EFFECTIVE]:null===(t=e._embedded)||void 0===t?void 0:t[tt.AC_EFFECTIVE],[tt.APP_METADATA]:e.app_metadata}}}function Us(e){return{library_urn:e.asset_id}}function Hs(e){return Object.assign(Object.assign({},e),{"repo:assetId":e.asset_id,application_metadata:e.app_metadata,"firefly#ffmodel":e["firefly#ffmodel"],"repo:path":e.original_path,"repo:createDate":Math.floor(new Date(e.create_date).getTime()/1e3),"repo:modifyDate":Math.floor(new Date(e.modify_date).getTime()/1e3),"repo:version":e.asset_version_id,"storage:region":e.region,"repo:size":e.size})}function zs(e){return{library_urn:e.id}}class Vs{constructor(e){this._core=e}assetsFromUSSV3AppMetadata(e,t,r,n){return n&&n._libraryUpdater.updateRemoteItems(e,t.filter(Ms).map(zs)),this._core.projectContext._projectUpdater.updateRemoteItems(e,t.filter(Rs).map(Bs)),this._core.hostAssetContext._adobeAssetUpdater.updateRemoteItems(e,t.map((e=>r(e))))}assetsFromUSSMetadata(e,t,r,n,i){var o,a=ue(this._core.projectContext._projectUpdater.updateRemoteItems(e,t.filter((e=>Ns(e.app_metadata))).map(Gs)));try{for(a.s();!(o=a.n()).done;)o.value._applyRestorePermission(e)}catch(e){a.e(e)}finally{a.f()}return n&&n._libraryUpdater.updateRemoteItems(e,t.filter(Fs).map(Us)),i&&i._customModelUpdaterMelville.updateRemoteItems(e,t.filter(Zs).map(Hs)),ma.updateRemoteItems(e,t.map((e=>(null==r?void 0:r(e))||e)))}assetsFromRepoMetadata(e,t,r){return t.map((t=>{var n,i,o;let a={};return(null===(n=t._embedded)||void 0===n?void 0:n[tt.AC_EFFECTIVE])&&(a=Ur(null===(i=t._embedded)||void 0===i?void 0:i[tt.AC_EFFECTIVE])),this.assetFromRepoMetadata(e,t,a,null===(o=t._embedded)||void 0===o?void 0:o[tt.APP_METADATA],r)}))}assetFromRepoMetadata(e,t,r,n,i,o,a){var s,c;let l;n&&Object.keys(n).length>0&&(t._embedded=Object.assign(Object.assign({},t._embedded),{[tt.APP_METADATA]:n}));const u=t||{};if(r&&Object.keys(r).length>0&&(u.effectivePermission=r),o&&Object.keys(o).length>0)l=this._core.projectContext._projectUpdater.updateRemoteItem(e,o),this._core.hostAssetContext._adobeAssetUpdater.updateLocalItem(e,l,u),this._core.projectContext._projectUpdater.updateLocalItem(e,l,o);else if(function(e){return(null==e?void 0:e["dc:format"])===Ds}(u)&&i){const t={library_urn:u["repo:assetId"]};i._libraryUpdater.updateRemoteItem(e,t),l=this._core.hostAssetContext._adobeAssetUpdater.updateRemoteItem(e,u)}else if(function({repoMetadata:e,appMetadata:t}){return function(e){var t,r;return!!(null===(r=null===(t=null==e?void 0:e["cc:inherited"])||void 0===t?void 0:t["cc:studentAssignment"])||void 0===r?void 0:r["repo:assetId"])}(t)||function(e){return/.*\/classrooms\/[^/]+\/assignments\/[^/]+\/students\/[^/]+\/[^/]+$/.test(e["repo:path"])}(e)}({repoMetadata:t,appMetadata:n})){const r=function(e,t){return Object.assign(Object.assign({},e),t)}(u,n),i=t["repo:ancestors"],o=(null===(c=null===(s=n["cc:inherited"])||void 0===s?void 0:s["cc:studentAssignment"])||void 0===c?void 0:c["repo:assetId"])||i[i.length-1];r.computedStudentAssignmentId=o,l=Wa.updateRemoteItem(e,r),this._core.hostAssetContext._adobeAssetUpdater.updateLocalItem(e,l,u)}else if(js(n)){const t=function(e,t){const r=t._links,n=Pe(t,["_links"]),i=e._links,o=Pe(e,["_links"]);return Object.assign(Object.assign(Object.assign({},o),n),{_links:Object.assign(Object.assign({},i),r)})}(u,Object.assign(Object.assign({},n),a));l=ks.updateRemoteItem(e,t),this._core.hostAssetContext._adobeAssetUpdater.updateLocalItem(e,l,u)}else if(function(e){var t,r;return!!(null===(r=null===(t=null==e?void 0:e["cc:inheritable"])||void 0===t?void 0:t["cc:assignment"])||void 0===r?void 0:r["repo:assetId"])}(n)){const t=function(e,t){return Object.assign(Object.assign(Object.assign({},e),t),{_links:void 0,children:[]})}(u,n);l=xs.updateRemoteItem(e,t),this._core.hostAssetContext._adobeAssetUpdater.updateLocalItem(e,l,u)}else l=this._core.hostAssetContext._adobeAssetUpdater.updateRemoteItem(e,u);return l}}var Ys=null;"undefined"!=typeof WebSocket?Ys=WebSocket:"undefined"!=typeof MozWebSocket?Ys=MozWebSocket:"undefined"!=typeof global?Ys=global.WebSocket||global.MozWebSocket:"undefined"!=typeof window?Ys=window.WebSocket||window.MozWebSocket:"undefined"!=typeof self&&(Ys=self.WebSocket||self.MozWebSocket);var Ws,Ks,$s=Ys;!function(e){e[e.NONE=0]="NONE",e[e.ERROR=1]="ERROR",e[e.WARN=2]="WARN",e[e.INFO=3]="INFO",e[e.DEBUG=4]="DEBUG"}(Ws||(Ws={}));class qs{static isoTime(){return(new Date).toISOString().slice(11)}error(e){console.error(`[ERROR][${qs.isoTime()}]${e}`)}warn(e){console.warn(`[WARN][${qs.isoTime()}]${e}`)}info(e){console.info(`[INFO][${qs.isoTime()}]${e}`)}debug(e){console.debug(`[DEBUG][${qs.isoTime()}]${e}`)}}class Xs{LogDebug(e){var t;this.logLevel>=Ws.DEBUG&&(null===(t=this._logger)||void 0===t||t.debug(`${Xs.LOG_PREFIX} ${e}`))}LogInfo(e){var t;this.logLevel>=Ws.INFO&&(null===(t=this._logger)||void 0===t||t.info(`${Xs.LOG_PREFIX} ${e}`))}LogWarn(e){var t;this.logLevel>=Ws.WARN&&(null===(t=this._logger)||void 0===t||t.warn(`${Xs.LOG_PREFIX} ${e}`))}LogError(e){var t;this.logLevel>=Ws.ERROR&&(null===(t=this._logger)||void 0===t||t.error(`${Xs.LOG_PREFIX} ${e}`))}_getSignedUrl(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t._authenticatedGetAbortController=new AbortController,n="https://"+t.endpoint+"/signed-url"+(e?"?sessionId="+e:""),r.prev=2,r.next=5,t._authenticatedGet(n,{noApiKeyHeader:!0});case 5:i=r.sent,r.next=19;break;case 8:if(r.prev=8,r.t0=r.catch(2),!(r.t0 instanceof TypeError)){r.next=14;break}return r.abrupt("return",{code:997,error:new Error("Failed to authenticate against Axon server",{cause:r.t0.message})});case 14:if(!(r.t0 instanceof Error)){r.next=18;break}return r.abrupt("return",{code:998,error:r.t0});case 18:return r.abrupt("return",{code:999,error:new Error("Unknown error while accessing Axon authentication service!")});case 19:return r.prev=19,r.next=22,i.json();case 22:o=r.sent,r.t1=i.status,r.next=200===r.t1?26:31;break;case 26:if(!("websocketUrl"in o)){r.next=30;break}return r.abrupt("return",{code:i.status,signedUrl:o.websocketUrl});case 30:return r.abrupt("return",{code:994,error:new Error("Invalid response from Axon service!")});case 31:return r.abrupt("return",{code:i.status,error:new Error(null==o?void 0:o.message)});case 32:r.next=41;break;case 34:if(r.prev=34,r.t2=r.catch(19),!(r.t2 instanceof Error)){r.next=40;break}return r.abrupt("return",{code:995,error:r.t2});case 40:return r.abrupt("return",{code:996,error:new Error("Unknown error while accessing Axon authentication service!")});case 41:case"end":return r.stop()}}),r,null,[[2,8],[19,34]])})))()}constructor(e,t=new qs,r=fetch){this.logLevel=Ws.WARN,this.endpoint=e,this._logger=t,this._authenticatedGet=r}authenticate(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t._authenticatedGetAbortController&&(t._authenticatedGetAbortController.abort(),t._authenticatedGetAbortController=void 0),t._authentication=void 0,r.next=4,t._getSignedUrl(e);case 4:return t._authentication=r.sent,r.abrupt("return",t.isAuthenticated());case 6:case"end":return r.stop()}}),r)})))()}isAuthenticated(){if(!this._authentication)return!1;if(200!==this._authentication.code)return!1;if(void 0===this._authentication.signedUrl)return!1;try{return new URL(this._authentication.signedUrl),!0}catch(e){return!1}}signedUrl(){var e;return(null===(e=null==this?void 0:this._authentication)||void 0===e?void 0:e.signedUrl)?this._authentication.signedUrl:""}}Xs.LogLevel=Ws,Xs.LOG_PREFIX="[AxonClient]",function(e){e[e.CONNECTING=0]="CONNECTING",e[e.RECONNECTING=1]="RECONNECTING",e[e.CONNECTED=2]="CONNECTED",e[e.DISCONNECTING=3]="DISCONNECTING",e[e.DISCONNECTED=4]="DISCONNECTED"}(Ks||(Ks={}));class Js extends hn{constructor(e){super(),this._config=e,this._txBuffer=[],this._lifecycleIteration=0,this._onWsOpen=e=>{this._debug(`WebSocket opened for ${this._config.endpoint}.`),this._state!==Ks.DISCONNECTED&&this._state!==Ks.DISCONNECTING?(this._state!==Ks.CONNECTING&&this._state!==Ks.RECONNECTING||(this._debug(`State Transition: ${Ks[this._state]} => CONNECTED.`),this._state=Ks.CONNECTED,this.emit("connected"),this._info("Connected.")),this._send()):this._warn("WebSocket opened for a disconnectig/disconnected Axon client!")},this._onWsClose=e=>{this._debug(`WebSocket closed (code:${e.code})[reason:${e.reason}].`),this._state===Ks.DISCONNECTING&&(this._debug(`State Transition: ${Ks[this._state]} => DISCONNECTED.`),this._state=Ks.DISCONNECTED,this.emit("disconnected"),this._info("Disconnected."))},this._onWsError=e=>{this._state===Ks.DISCONNECTING?this._warn(`WebSocket error (${e.message}).`):this._error(`WebSocket error (${e.message}).`)},this._onWsMessage=e=>{this._debug(`Message received (data=${e.data}).`),this.emit("message",e)},this._state=Ks.DISCONNECTED,this._debug(`Created with an initial state: ${Ks[this._state]}`)}connect(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._debug("connect() started; authenticating client before opening the WebSocket."),e._state===Ks.DISCONNECTED||e._state===Ks.RECONNECTING){t.next=4;break}return e._debug(`connect() ignored; client must be DISCONNECTED or RECONNECTING (current state: ${Ks[e._state]}).`),t.abrupt("return",!1);case 4:return r=e._lifecycleIteration,t.next=7,e._config.authenticate();case 7:if(t.sent){t.next=10;break}return e._error("Failed to authenticate against Axon service."),t.abrupt("return",!1);case 10:if(e._state===Ks.DISCONNECTED||e._state===Ks.RECONNECTING){t.next=13;break}return e._debug(`connect() ignored; client must be DISCONNECTED or RECONNECTING (current state: ${Ks[e._state]}).`),t.abrupt("return",!1);case 13:if(r===e._lifecycleIteration){t.next=16;break}return e._debug("connect() aborted; client must have been simultaneously disconnected."),t.abrupt("return",!1);case 16:return e._debug(`State Transition: ${Ks[e._state]} => CONNECTING.`),e._state=Ks.CONNECTING,e._ws=new $s(e._config.signedUrl(),"axon-v1"),e._ws.onerror=e._onWsError,e._ws.onopen=e._onWsOpen,e._ws.onclose=e._onWsClose,e._ws.onmessage=e._onWsMessage,e._debug("WebSocket initialized. Connection will continue asynchronously."),t.abrupt("return",!0);case 25:case"end":return t.stop()}}),t)})))()}_deinitialize(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t._ws,t._ws=void 0,!n){r.next=10;break}if(n.onmessage=null,n.readyState===$s.OPEN&&n.close(1e3),n.readyState!==$s.CLOSING){r.next=8;break}return r.next=8,new Promise((t=>{const r=setTimeout((()=>{t()}),e);n.addEventListener("close",(()=>{clearTimeout(r),t()}),{once:!0})}));case 8:n.onopen=null,n.onclose=null;case 10:t._debug("WebSocket deinitialized.");case 11:case"end":return r.stop()}}),r)})))()}_send(){if(this._ws&&this._ws.readyState===$s.OPEN){var e,t=ue(this._txBuffer);try{for(t.s();!(e=t.n()).done;){const t=e.value;this._debug("Sending message: "+t),this._ws.send(t)}}catch(e){t.e(e)}finally{t.f()}this._txBuffer=[]}}_debug(e){this._config.LogDebug(e)}_info(e){this._config.LogInfo(e)}_warn(e){this._config.LogWarn(e)}_error(e){this._config.LogError(e)}ensureConnected(e=600){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=Date.now()+e,t._ws){r.next=4;break}return r.next=4,new Promise((e=>{const r=setInterval((()=>{(t._ws||Date.now()>n)&&(e(),clearInterval(r))}),100)}));case 4:if(i=t._ws){r.next=7;break}return r.abrupt("return",!1);case 7:if(i.readyState!==$s.CONNECTING){r.next=10;break}return r.next=10,new Promise((e=>{const t=setTimeout((()=>{e()}),n-Date.now());i.addEventListener("open",(()=>{clearTimeout(t),e()}),{once:!0})}));case 10:return r.abrupt("return",t._state===Ks.CONNECTED);case 11:case"end":return r.stop()}}),r)})))()}send(e){switch(this._state){case Ks.CONNECTING:case Ks.RECONNECTING:this._txBuffer.push(e);break;case Ks.CONNECTED:this._txBuffer.push(e),this._send();case Ks.DISCONNECTING:case Ks.DISCONNECTED:}}reconnect(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._state!==Ks.RECONNECTING){t.next=3;break}return e._debug("reconnect() aborted; client is already in RECONNECTING state."),t.abrupt("return");case 3:return e._lifecycleIteration++,e._info("Reconnecting... WebSocket will be dropped and re-opened."),e._debug(`State Transition: ${Ks[e._state]} => RECONNECTING.`),e._state=Ks.RECONNECTING,t.next=9,e._deinitialize(100);case 9:return t.next=11,e.connect();case 11:case"end":return t.stop()}}),t)})))()}terminate(e=100){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._state!==Ks.DISCONNECTED){r.next=3;break}return t._debug("terminate() aborted; client is already in DISCONNECTED state."),r.abrupt("return");case 3:return t._state!==Ks.DISCONNECTING&&(t._debug(`State Transition: ${Ks[t._state]} => DISCONNECTING.`),t._state=Ks.DISCONNECTING),r.next=6,t._deinitialize(e);case 6:t._state===Ks.DISCONNECTING&&(t._debug(`State Transition: ${Ks[t._state]} => DISCONNECTED.`),t._state=Ks.DISCONNECTED,t.emit("disconnected"),t._info("Disconnected.")),t._txBuffer=[];case 8:case"end":return r.stop()}}),r)})))()}disconnect(e=300){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t._lifecycleIteration++,t._debug(`disconnect() started with timeout of ${e} ms.`),t._debug(`State Transition: ${Ks[t._state]} => DISCONNECTING.`),t._state=Ks.DISCONNECTING,n=Date.now(),r.next=7,t.ensureConnected(e);case 7:return r.next=9,t.terminate(Math.max(0,n+e-Date.now()));case 9:case"end":return r.stop()}}),r)})))()}}const Qs=Symbol.for("com.adobe.ccac-sam-js.instances");var ec;!function(e){e[e.Off=0]="Off",e[e.Err=1]="Err",e[e.Warn=2]="Warn",e[e.Info=3]="Info",e[e.Debug=4]="Debug"}(ec||(ec={}));class tc extends En{constructor(e,t={}){super(),this._assetPool=new Jo(this,"project or adobeasset"),this._adobeAssetFactory=new Vs(this),this._fetchIndexState={},this._environment=new dn(this,e,t),e.CACHE_KEEP_ALIVE_TTL&&kt.setTTL(e.CACHE_KEEP_ALIVE_TTL),this.on(Tr,((e,t,r)=>{var n;if("USE_AXON"===r.configurationKeyName)if(this._environment.getValue("USE_AXON")){const e=e=>{this._environment.error("Failed to activate Axon upon SAM config update"+(e instanceof Error?` (${e.message}).`:"."))};try{this.getAxonClient().then((t=>t.connect().catch(e)))}catch(t){e(t)}}else null===(n=this._AxonClient)||void 0===n||n.disconnect().catch((e=>{this._environment.error("Failed to deactivate Axon upon SAM config update"+(e instanceof Error?` (${e.message}).`:"."))}))}))}_getAssetPool(){return this._assetPool}_setAssetContextFromBindings(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!t._AssetContext){r.next=3;break}return console.error("[SAMCore] AssetContext already initialized"),r.abrupt("return");case 3:return t._AssetContext=e,r.next=6,Promise.resolve().then((function(){return bg}));case 6:n=r.sent.default,t._AssetContextJS=new n(t,t._assetPool);case 8:case"end":return r.stop()}}),r)})))()}_getAssetContext(){return this._AssetContext}get hostAssetContext(){if(!this._AssetContext)throw we.create(ge.UNSUPPORTED,"samCore.hostAssetContext cannot be used without first calling initializeSharedAssetModel()");return this._AssetContext}getAssetContext(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e._AssetContext){t.next=2;break}return t.abrupt("return",e._AssetContext);case 2:return t.next=4,Promise.resolve().then((function(){return bg}));case 4:return r=t.sent.default,e._AssetContext=new r(e,e._assetPool),t.abrupt("return",e._AssetContext);case 7:case"end":return t.stop()}}),t)})))()}get assetLinkManager(){if(!this._AssetContext)throw we.create(ge.UNSUPPORTED,"samCore.assetLinkManager and samCore.assetContext cannot be used without first calling initializeSharedAssetModel()");if(!this._AssetContext._getAssetLinkManager())throw we.create(ge.UNSUPPORTED,"samCore.assetLinkManager cannot be used without first calling initializeSharedAssetModel()");return this._AssetContext._getAssetLinkManager()}get spaceContext(){if(gi("SAMCore.spaceContext","spaceContext is deprecated and will be removed on or after 2024-10-01"),!this._SpaceContext)throw we.create(ge.UNSUPPORTED,"samCore.spaceContext cannot be used without first calling initializeSharedAssetModel()");return this._SpaceContext}getSpaceContext(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e._SpaceContext){t.next=2;break}return t.abrupt("return",e._SpaceContext);case 2:return t.next=4,Promise.resolve().then((function(){return yb}));case 4:return r=t.sent.default,e._SpaceContext=new r(e),t.abrupt("return",e._SpaceContext);case 7:case"end":return t.stop()}}),t)})))()}_getSpaceContext(){return this._SpaceContext}get collaborationContext(){if(!this._CollaborationContext)throw we.create(ge.UNSUPPORTED,"samCore.collaborationContext cannot be used without first calling initializeSharedAssetModel()");return this._CollaborationContext}getCollaborationContext(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e._CollaborationContext){t.next=2;break}return t.abrupt("return",e._CollaborationContext);case 2:return t.next=4,Promise.resolve().then((function(){return Cb}));case 4:return r=t.sent.default,e._CollaborationContext=new r(e),t.abrupt("return",e._CollaborationContext);case 7:case"end":return t.stop()}}),t)})))()}_getCollaborationContext(){return this._CollaborationContext}get projectContext(){if(!this._ProjectContext)throw we.create(ge.UNSUPPORTED,"samCore.projectContext cannot be used without first calling initializeSharedAssetModel()");return this._ProjectContext}getProjectContext(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e._ProjectContext){t.next=2;break}return t.abrupt("return",e._ProjectContext);case 2:return t.next=4,Promise.resolve().then((function(){return Bb}));case 4:return r=t.sent.default,e._ProjectContext=new r(e,e._assetPool),t.abrupt("return",e._ProjectContext);case 7:case"end":return t.stop()}}),t)})))()}_getProjectContext(){return this._ProjectContext}get classroomContext(){if(!this._ClassroomContext)throw we.create(ge.UNSUPPORTED,"samCore.classroomContext cannot be used without first calling initializeSharedAssetModel()");return this._ClassroomContext}getClassroomContext(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e._ClassroomContext){t.next=2;break}return t.abrupt("return",e._ClassroomContext);case 2:return t.next=4,Promise.resolve().then((function(){return IE}));case 4:return r=t.sent.default,e._ClassroomContext=new r(e,e._assetPool),t.abrupt("return",e._ClassroomContext);case 7:case"end":return t.stop()}}),t)})))()}_getClassroomContext(){return this._ClassroomContext}getAxonClient(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e._AxonClient){t.next=2;break}return t.abrupt("return",e._AxonClient);case 2:return r=e._environment.endpoints.AXON_HOST,n=new class{constructor(e){this._samCoreEnv=e}error(e){this._samCoreEnv.error(e)}warn(e){this._samCoreEnv.warn(e)}info(e){this._samCoreEnv.log(e)}debug(e){this._samCoreEnv.debug(e)}}(e._environment),i=e._environment.fetch.bind(e._environment),o=new Xs(r,n,i),e._environment.getValue("ENVIRONMENT")===an.Stage&&(o.logLevel=Xs.LogLevel.DEBUG),e._AxonClient=new Js(o),t.abrupt("return",e._AxonClient);case 9:case"end":return t.stop()}}),t)})))()}get frameioContext(){if(!this._FrameioContext)throw we.create(ge.UNSUPPORTED,"samCore.frameioContext cannot be used without first calling initializeSharedAssetModel()");return this._FrameioContext}getFrameioContext(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e._FrameioContext){t.next=2;break}return t.abrupt("return",e._FrameioContext);case 2:return t.next=4,Promise.resolve().then((function(){return eb}));case 4:return r=t.sent.default,e._FrameioContext=new r(e),t.abrupt("return",e._FrameioContext);case 7:case"end":return t.stop()}}),t)})))()}_getFrameioContext(){return this._FrameioContext}getLibraryContext(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e._LibraryContext){t.next=2;break}return t.abrupt("return",e._LibraryContext);case 2:return t.next=4,Promise.resolve().then((function(){return JE}));case 4:return r=t.sent.default,e._LibraryContext=new r(e,e._assetPool),t.abrupt("return",e._LibraryContext);case 7:case"end":return t.stop()}}),t)})))()}_getLibraryContext(){return this._LibraryContext}getCustomModelContext(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e._CustomModelContext){t.next=2;break}return t.abrupt("return",e._CustomModelContext);case 2:return t.next=4,Promise.resolve().then((function(){return gw}));case 4:return r=t.sent.default,e._CustomModelContext=new r(e,e._assetPool),t.abrupt("return",e._CustomModelContext);case 7:case"end":return t.stop()}}),t)})))()}_getCustomModelContext(){return this._CustomModelContext}makeObservable(e){return this._environment.mobx.register(e)}get environment(){return gi("SAMCore.environment","environment is deprecated and will be renamed for internal use on or after 2024-10-01"),this._environment}updateConfig(e){Object.keys(e).forEach((t=>{const r=t;this._environment.setValue(r,e[r])}))}}function rc(e){return nc.apply(this,arguments)}function nc(){return nc=me(he().mark((function e(t,r={}){var n,i,o,a,s,c,l,u,d,p,h,f;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={},"undefined"!=typeof window&&(window[Qs]?n=window[Qs]:window[Qs]=n),i=void 0!==t._VERSION_OVERRIDE_FOR_TEST&&""!==t._VERSION_OVERRIDE_FOR_TEST?t._VERSION_OVERRIDE_FOR_TEST:wn,o=i.split(".").map(Number),a=le(o,3),s=a[0],c=a[1],l=a[2],u=Object.keys(n),!(d=u.find((e=>{if(e===i)return!0;const t=le(e.split(".").map(Number),3),r=t[0],n=t[1],o=t[2];return 0!==s&&r===s&&(n>c||n===c&&o>=l)})))){e.next=8;break}return e.abrupt("return",n[d]);case 8:return u.length>0&&console.warn(`An instance of SAM.js already exists, but is not compatible with the requested version: ${i}. Because of this, a new instance of SAM.js will be created. Loaded versions: ${u.join(", ")}.`),p="undefined"!=typeof window&&window.acplModel,h=()=>{var e,t;const r=null===(e=p.applicationAssetContext)||void 0===e?void 0:e.rootFolder.constructor.prototype;return Boolean(r)&&!0===(null===(t=Object.getOwnPropertyDescriptor(r,"name"))||void 0===t?void 0:t.configurable)},f=function(){var e=me(he().mark((function e(t){var r;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t._getAssetContext()){e.next=7;break}return e.next=3,t.getAssetContext();case 3:if((r=t._getAssetContext())._getAssetLinkManager()){e.next=7;break}return e.next=7,r.getAssetLinkManager();case 7:if(t._getProjectContext()){e.next=10;break}return e.next=10,t.getProjectContext();case 10:if(t._getSpaceContext()){e.next=13;break}return e.next=13,t.getSpaceContext();case 13:if(t._getClassroomContext()){e.next=16;break}return e.next=16,t.getClassroomContext();case 16:if(t._getCollaborationContext()){e.next=19;break}return e.next=19,t.getCollaborationContext();case 19:if(t._getLibraryContext()){e.next=22;break}return e.next=22,t.getLibraryContext();case 22:if(t._getFrameioContext()){e.next=25;break}return e.next=25,t.getFrameioContext();case 25:if(t._getCustomModelContext()){e.next=28;break}return e.next=28,t.getCustomModelContext();case 28:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),n[i]=new Promise(((e,n)=>{var o;if(p&&!t._DISABLE_SAM_CPP)Promise.race([null!==(o=p.applicationAssetContext)&&void 0!==o?o:p.waitForApplicationContextReady()]).then((()=>{try{if(!h()){const n=new tc(t,r);return void f(n).then((()=>{e(n)}))}const n=new tc(t,r);Ha(n),za(),Ua(n),Ga(n),Ba(n),u.length>0&&console.error("[initializeSharedAssetModel] SAM.cpp can only be observable by one instance of SAMCore. Clients using SAM.js internal version "+i+" will not see Mobx observables working. Clients on a host app should align on the same SAM.js version before shipping to customers."),n._setAssetContextFromBindings(p.applicationAssetContext).then((()=>{e(n)}))}catch(e){console.error("[initializeSharedAssetModel] failed to patch SAM.cpp",e),n(e)}}));else{const n=new tc(t,r);f(n).then((()=>{e(n)}))}})),e.prev=13,e.next=16,n[i];case 16:e.next=22;break;case 18:throw e.prev=18,e.t0=e.catch(13),delete n[i],e.t0;case 22:return e.abrupt("return",n[i]);case 23:case"end":return e.stop()}}),e,null,[[13,18]])}))),nc.apply(this,arguments)}Ie([At],tc.prototype,"getAssetContext",null),Ie([Ue],tc.prototype,"assetLinkManager",null),Ie([At],tc.prototype,"getSpaceContext",null),Ie([Ue],tc.prototype,"collaborationContext",null),Ie([At],tc.prototype,"getCollaborationContext",null),Ie([Ue],tc.prototype,"frameioContext",null);const ic=(e,t)=>void 0!==Object.getOwnPropertyDescriptor(e,t),oc={scope:["creative_cloud"],asset_id_opacity:!0};class ac extends Pt{_getEndpointHref(e){return`https://${this._core._environment.endpoints.USS_HOST}${e}`}getQueryResponse(e){var t=this;return me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e=Object.assign(Object.assign({},oc),e),n=t._getEndpointHref("/universal-search/v2/search"),i=t._core._environment.getValue("HOST_PRODUCT_DATA"),o=i.PRODUCT_ID,r.next=5,t._doPost(n,{"Content-Type":"application/vnd.adobe.search-request+json","X-Product":o,"X-Product-Location":`SAM.js/${wn}`},JSON.stringify(e),[200]);case 5:return a=r.sent,r.abrupt("return",a.json());case 7:case"end":return r.stop()}}),r)})))()}searchSpace(e,t,r,n){var i=this;return me(he().mark((function o(){var a,s,c,l,u;return he().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return u={hints:[{acp_platform_v2:!0,creative_cloud_rendition_v2:!0}],fetch_fields:{includes:["app_metadata","collaboration_metadata"]},sort_orderby:null!==(a=null==n?void 0:n.sort_orderby)&&void 0!==a?a:"modify_date",sort_order:null!==(s=null==n?void 0:n.sort_order)&&void 0!==s?s:"desc",limit:null!==(c=null==n?void 0:n.limit)&&void 0!==c?c:50,start_index:null!==(l=null==n?void 0:n.start_index)&&void 0!==l?l:0,[Ji.TYPE]:(null==n?void 0:n.type)||[],container:{asset_id:[e]}},t?u.op_field_exists=[Ji.ARTIFACT_FIELD]:u.op_none_of=[{op_field_exists:[Ji.ARTIFACT_FIELD]},{[Ji.VISIBLITY]:["hiddenSelf","hiddenRecursive"]}],r&&u.fetch_fields.includes.push("_embedded"),o.abrupt("return",i.getQueryResponse(u));case 4:case"end":return o.stop()}}),o)})))()}}class sc extends Pt{constructor(){super(...arguments),this._batchRequestLimit=50}get batchRequestLimit(){return this._batchRequestLimit}_getUrl(e){return`https://${this._core._environment.endpoints.INVITATIONS_HOST}${e}`}getCollaborators(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._getSharedResponse(t._getUrl(`/api/v4/share/${encodeURIComponent(e)}?extraFeatures=direct_acl`));case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}addCollaborators(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPost(r._getUrl(`/api/v4/share/${encodeURIComponent(e)}`),{},JSON.stringify(t),[200]);case 2:case"end":return n.stop()}}),n)})))()}modifyCollaborators(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPatch(r._getUrl(`/api/v4/share/${encodeURIComponent(e)}?mode=direct_acl`),{},JSON.stringify(t),[200]);case 2:return i=n.sent,n.next=5,i.json();case 5:return n.abrupt("return",n.sent);case 6:case"end":return n.stop()}}),n)})))()}getCollaboratorListForUrns(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={operation:"bulkGetShares",parameters:{urns:e,queryParams:{extraFeatures:"direct_acl,legacy_role"}}},r.next=3,t._doPost(t._getUrl("/ops/v4/shares"),{"Content-Type":"application/json"},JSON.stringify(n),[200]);case 3:return i=r.sent,r.next=6,i.json();case 6:if((o=r.sent).result&&Array.isArray(o.result)){r.next=9;break}throw we.create(ge.UNKNOWN,"Failed to parse response for Invitation Service bulk API.");case 9:return r.abrupt("return",o);case 10:case"end":return r.stop()}}),r)})))()}confirmAccess(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doPost(t._getUrl(`/api/v4/invitations/urn/${encodeURIComponent(e)}`),{},void 0,[200]);case 2:case"end":return r.stop()}}),r)})))()}_shouldRetryMonitorResponse(e,t){return 200===e.status&&"completed"!==JSON.parse(t).jobStatus}declineAccess(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doDelete(t._getUrl(`/api/v4/invitations/urn/${encodeURIComponent(e)}`),{},[200]);case 2:case"end":return r.stop()}}),r)})))()}getPendingInvitations(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._doGet(e._getUrl("/api/v4/invitations"),{headers:{"Content-Type":"application/json"}});case 2:return r=t.sent,t.next=5,r.json();case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)})))()}}class cc extends Pt{constructor(){super(...arguments),this.repositoryIndex=`https://${this._core._environment.endpoints.ACP_CS_HOST}/index`,this.repositoryNameIndex=`https://${this._core._environment.endpoints.ACP_CS_HOST}/repositories`,this._useHighPriorityRequestsIfEnabled=!0,this._cache=this._core._environment.cache}get _fetchIndexState(){return this._core._fetchIndexState}set _fetchIndexState(e){this._core._fetchIndexState=e}_getAndCacheDocument(e){return this._getAllPages(e)}getRootLink(e,t={}){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.getIndex();case 2:return i=n.sent,n.abrupt("return",ot(i._links,e,t));case 4:case"end":return n.stop()}}),n)})))()}getIndex(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(i=e._fetchIndexState).pendingCacheClear){t.next=4;break}return t.next=4,i.pendingCacheClear;case 4:if(!i.response||!i.hasChildren){t.next=6;break}return t.abrupt("return",i.response);case 6:return t.next=8,e._cache.getItem(e.repositoryIndex);case 8:if((o=t.sent)!==wr&&(i.response=o,i.hasChildren=Boolean(null===(n=null===(r=i.response)||void 0===r?void 0:r.children)||void 0===n?void 0:n.length)),i.promise||(i.promise=new Promise(((t,r)=>{e._getResponse(e.repositoryIndex,{headers:{"Cache-Control":"no-cache, no-store, max-age=0"},additionalRetryErrorCodes:[404]}).then(function(){var r=me(he().mark((function r(n){var o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(null===(o=n.children)||void 0===o?void 0:o.length)){r.next=6;break}return r.next=3,e._cache.setItem(e.repositoryIndex,n);case 3:i.hasChildren=!0,r.next=8;break;case 6:i.hasChildren=!1,i.promise=void 0;case 8:i.response=n,t(n);case 10:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()).catch(r)}))),!i.promise||i.response&&i.hasChildren){t.next=14;break}return t.next=14,i.promise;case 14:return t.abrupt("return",i.response);case 15:case"end":return t.stop()}}),t)})))()}_clearIndexCache(){this._fetchIndexState.pendingCacheClear=new Promise((e=>{Promise.resolve(this._fetchIndexState.promise).finally((()=>this._cache.deleteItem(this.repositoryIndex))).finally((()=>{this._fetchIndexState={},e()}))}))}_getAndCacheLinksFromHref(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doGet(e);case 2:return n=r.sent,r.next=5,n.json();case 5:return i=r.sent,o=i._links,r.abrupt("return",{links:o});case 8:case"end":return r.stop()}}),r)})))()}getAssetResolveByIdHref(e){const t=new URL(`https://${this._core._environment.endpoints.ACP_CS_HOST}/links`);return t.searchParams.set("assetId",e),t.toString()}getCloudQuotaUsedAndMax(){var e=this;return me(he().mark((function t(){var r,n,i;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getHomeDirectoryMetadata();case 2:return r=t.sent,n=ot(r._links,tt.QUOTA),t.next=6,e._getResponse(n);case 6:return i=t.sent,t.abrupt("return",{used:i["xdm:consumed"],total:i["xdm:amount"]});case 8:case"end":return t.stop()}}),t)})))()}resolveById(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.getAssetResolveByIdHref(e),r.next=3,t._getAndCacheLinksFromHref(n);case 3:return i=r.sent,o=i.links,r.abrupt("return",new fi(t,e,o,""));case 6:case"end":return r.stop()}}),r)})))()}getRepoMetadataById(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.getRootLink(tt.RESOLVE_ID,{id:e});case 2:return n=r.sent,r.next=5,t._getResponse(n);case 5:return r.abrupt("return",r.sent);case 6:case"end":return r.stop()}}),r)})))()}getRepoMetadataByPath(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.getRootLink(tt.RESOLVE_PATH,{repositoryId:e,path:t,mode:"id"});case 2:return i=n.sent,n.next=5,r._getResponse(i);case 5:return o=n.sent,a=o["repo:assetId"],s=o._links,c=r.getAssetResolveByIdHref(a),n.next=11,r._cache.setItem(c,{links:s});case 11:return n.abrupt("return",o);case 12:case"end":return n.stop()}}),n)})))()}getHomeDirectoryMetadata(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._getHomeDirectoryMetadata(0);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}_getHomeDirectoryMetadata(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.getIndex();case 2:return i=r.sent,r.next=5,null!==(n=t._fetchIndexState.promise)&&void 0!==n?n:i;case 5:if((o=r.sent).children.length){r.next=17;break}if(!(e>=5)){r.next=11;break}throw we.create(ge.INVALID_OPERATION,"Home repository not found after 5 retries");case 11:return t._core._environment.log(`/index has no children, ${5-e} retries left`),r.next=14,new Promise((r=>setTimeout(r,t._getRetryErrorDelay(void 0,e))));case 14:return r.next=16,t._getHomeDirectoryMetadata(e+1);case 16:return r.abrupt("return",r.sent);case 17:return r.abrupt("return",o.children[0]._embedded[tt.REPO_METADATA]);case 18:case"end":return r.stop()}}),r)})))()}runOperation(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s,c,l,u,d,p,h;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.getRootLink(tt.OPS);case 2:return a=r.sent,s={"Content-type":"application/vnd.adobe.asset-operation+json"},"copy"===(null==(c=Array.isArray(e)?e[0]:e)?void 0:c.op)&&(s.directive="ops-2021"),l="move"===(null==c?void 0:c.op),u=t._core._environment.getValue("FEATURE_FLAGS"),l&&(null==u?void 0:u["enable-x-bucket-move"])&&(s["enable-x-bucket-move"]="true"),r.next=12,t._doPost(a,s,JSON.stringify(e),"any");case 12:return d=r.sent,r.prev=13,r.next=16,d.json();case 16:p=r.sent,r.next=21;break;case 19:r.prev=19,r.t0=r.catch(13);case 21:if(!p||Array.isArray(p)||200===d.status){r.next=23;break}return r.abrupt("return",[Object.assign(Object.assign({},c),{error:we.createWithRepositoryCode(d.status,null!==(n=p.type)&&void 0!==n?n:_e.OPERATION_FAILED,null!==(o=null!==(i=p.title)&&void 0!==i?i:p.message)&&void 0!==o?o:"Operation failed")})]);case 23:if(t._checkResponseStatus(d,a,[200]),p){r.next=26;break}throw we.create(ge.UNKNOWN,"Failed to parse response for repo bulk API.");case 26:return h=Array.isArray(p)?p:[p],r.abrupt("return",h.map((e=>{const t=e.error;return Object.assign(Object.assign({},e),{error:t?we.createWithRepositoryCode(t.status,t.type,t.title):void 0})})));case 28:case"end":return r.stop()}}),r,null,[[13,19]])})))()}runOperationsForContext(e,t,r,n,i){var o=this;return me(he().mark((function a(){var s,c,l,u,d,p,h,f,m,g,v,y,b,_;return he().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,o.runOperation(e);case 2:c=a.sent,l={failedResults:[],newModels:[]},u=r.createMutationSession(),d=[],p=ue(c),a.prev=7,p.s();case 9:if((h=p.n()).done){a.next=38;break}if(f=h.value,m=f.id&&t.get(f.id)){a.next=14;break}return a.abrupt("continue",36);case 14:if(g=f.asset,!(v=f.error)){a.next=23;break}if(!i){a.next=21;break}if(!(y=null===(s=i.find((e=>e.match(v))))||void 0===s?void 0:s.action)){a.next=21;break}return d.push(y(m,v).then((e=>{e&&l.failedResults.push(e)}))),a.abrupt("continue",36);case 21:return l.failedResults.push({model:m,error:v}),a.abrupt("continue",36);case 23:a.prev=23,(b=n(u,m,g))&&l.newModels.push(b),a.next=36;break;case 28:if(a.prev=28,a.t0=a.catch(23),!(_=a.t0)||_.code!==ge.UNKNOWN){a.next=35;break}l.failedResults.push({model:m,error:_}),a.next=36;break;case 35:throw a.t0;case 36:a.next=9;break;case 38:a.next=43;break;case 40:a.prev=40,a.t1=a.catch(7),p.e(a.t1);case 43:return a.prev=43,p.f(),a.finish(43);case 46:return u.commit(),a.next=49,Promise.all(d);case 49:return a.abrupt("return",l);case 50:case"end":return a.stop()}}),a,null,[[7,40,43,46],[23,28]])})))()}getRepositoriesData(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=()=>e._getResponse(e.repositoryNameIndex),t.next=4,e._cache.getItem(e.repositoryNameIndex,r,void 0,2592e6);case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)})))()}getRepositoryName(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.getRepositoriesData();case 2:if(o=r.sent){r.next=5;break}return r.abrupt("return",void 0);case 5:return a=o.children,s=a.find((t=>t._embedded[tt.PRIMARY]["repo:repositoryId"]===e)),r.abrupt("return",null===(i=null===(n=null==s?void 0:s._embedded[tt.PRIMARY]["dc:title"])||void 0===n?void 0:n["rdf:_1"])||void 0===i?void 0:i["@value"]);case 8:case"end":return r.stop()}}),r)})))()}getStorageAssignee(e){var t=this;return me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={id:"",type:"user"},r.next=3,t.getRepositoriesData();case 3:if(i=r.sent,o=i.children,!(null==(a=o.find((t=>t._embedded[tt.PRIMARY]["repo:repositoryId"]===e)))?void 0:a._embedded[tt.PRIMARY]["storage:assignee"])){r.next=10;break}return r.abrupt("return",null==a?void 0:a._embedded[tt.PRIMARY]["storage:assignee"]);case 10:return r.abrupt("return",n);case 11:case"end":return r.stop()}}),r)})))()}getAssetsOwnerDetails(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getRepositoriesData();case 2:return r=t.sent,t.abrupt("return",new Map(r.children.map((e=>{const t=e._embedded[tt.PRIMARY]||{};return[t["repo:repositoryId"],t["repo:owner"]]}))));case 4:case"end":return t.stop()}}),t)})))()}getAssetLinks(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.getAssetResolveByIdHref(e),r.next=3,t._getResponse(n);case 3:return i=r.sent,o=i._links,r.abrupt("return",o);case 6:case"end":return r.stop()}}),r)})))()}}Ie([Ge,Ae(0,Ze)],cc.prototype,"_getAndCacheDocument",null),Ie([Ge,Ae(0,Ze)],cc.prototype,"_getAndCacheLinksFromHref",null),Ie([At],cc.prototype,"getRepositoriesData",null);const lc="application/vnd.adobecloud.subscription+json",uc="X-User-Token",dc={includeResources:[{reltype:"api:annotation"},{reltype:"api:metadata/repository"},{reltype:"api:metadata/application"},{reltype:"api:ac/policy"}]};class pc extends Ve{constructor(e){super(),this.fromCache=e}}class hc extends xi{constructor(e,t){if(super(e._core),this._onsInterface=e,this._assets=new Map,this._watchedAssets=new Map,this._initializedFromCache=!1,t){const e=t.id,r=t.href,n=t.assets,i=t.expiresAt;this._subscriptionId=e,this._subscriptionHref=r,this._expiresAt=i,this._watchedAssets=new Map(Object.entries(n)),this._initializedFromCache=this._watchedAssets.size>0}}get subscriptionId(){return this._subscriptionId}get subscriptionHref(){return this._subscriptionHref}get expiresAt(){var e;return null!==(e=this._expiresAt)&&void 0!==e?e:0}_log(e){this._core._environment.log(e)}get lastError(){return this._lastError}get assets(){return this._assets}get watchedAssets(){return this._watchedAssets}abort(){return!!this._retryTimeout&&(clearTimeout(this._retryTimeout),this._retryTimeout=void 0,this._log(`subscription ${this.subscriptionId} retry got aborted`),!0)}set assets(e){this._assets=new Map(e),this._update()}_update(e=0){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.abort(),!nn(i=t._assets,t._watchedAssets)){r.next=5;break}return t._lastError?(t._lastError=void 0,t.emit("change")):t._initializedFromCache&&t.emit("change",new pc(!0)),r.abrupt("return");case 5:if(t._log(`Setting ${i.size} asset ids for ${t.subscriptionId||"<pending subscription id>"}`),r.prev=6,0!==i.size){r.next=13;break}return t._log(`deleting subscription ${t.subscriptionId} requested assets no longer exist`),r.next=11,t._deleteSubscriptionFromServer();case 11:r.next=22;break;case 13:if(!t._subscriptionHref){r.next=19;break}return t._log(`updating subscription on the server ${t.subscriptionId}`),r.next=17,t._updateSubscriptionOnServer(i);case 17:r.next=22;break;case 19:return t._log("creating subscription"),r.next=22,t._createSubscriptionOnServer(i);case 22:t._watchedAssets=i,t._lastError=void 0,t.emit("change"),r.next=33;break;case 27:r.prev=27,r.t0=r.catch(6),t._log(`Error updating subscription: ${r.t0}`),t._lastError=r.t0,t.emit("change"),e<3&&(o=1e3*(at(null===(n=r.t0.response)||void 0===n?void 0:n.headers)||hc.DEFAULT_RETRY_INTERVAL_SEC),o=Math.max(10,o),t._retryTimeout=setTimeout((()=>{t._retryTimeout=void 0,t._update(e+1)}),o));case 33:case"end":return r.stop()}}),r,null,[[6,27]])})))()}_parseSubscriptionResponse(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t();case 2:if(!((i=n.sent).status<200||i.status>=300)){n.next=12;break}if(o=`operation ${e} with http response.status: ${i.status}`,403!==i.status){n.next=10;break}return n.next=8,i.json();case 8:(a=n.sent).type===_e.SUBSCRIPTION_COUNT&&(o=`Maximum number of subscriptions per user per device exceeded (${a.max})`);case 10:throw r._log(o),we.createWithResponseAndDescription(i,o);case 12:return n.next=14,i.json();case 14:if((s=n.sent).id&&s._links&&s._links.self&&s._links.self.href){n.next=19;break}throw o="No subscription ID or href was returned in subscribe response.",r._log(o),we.create(ge.BAD_REQUEST,o,{response:i});case 19:r._subscriptionId=s.id,r._subscriptionHref=s._links.self.href,s.expiresAt&&(r._expiresAt=s.expiresAt);case 22:case"end":return n.stop()}}),n)})))()}_createObjectsRequestBody(e){const t=[];return e.forEach(((e,r)=>t.push(Object.assign(Object.assign({id:r},dc),e)))),t}_createRequestBody(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t._createObjectsRequestBody(null!=e?e:t.watchedAssets),r.next=3,t._core._environment.getDeviceId();case 3:return i=r.sent,o={id:t.subscriptionId,objects:n,device:{id:i},expiresAt:Date.now()+t._core._environment.getValue("ONS_SUBSCRIPTION_TIME_TO_LIVE")},r.abrupt("return",JSON.stringify(o));case 6:case"end":return r.stop()}}),r)})))()}_createSubscriptionOnServer(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._onsInterface._getLink(tt.SUBSCRIPTION_CREATE);case 2:return n=r.sent,r.next=5,t._createRequestBody(e);case 5:return i=r.sent,t._log(`Creating subscription for ${e.size} assets: ${[...e.keys()].join(", ")}`),r.abrupt("return",t._parseSubscriptionResponse("create",(()=>t._core._environment.fetch(n,{method:"POST",body:i,authHeader:uc,headers:{"Content-Type":lc}}))));case 8:case"end":return r.stop()}}),r)})))()}_updateSubscriptionOnServer(e){var t=this;return me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t._watchedAssets,o=[],(i=e).forEach(((e,t)=>{if(!n.has(t)){const r={op:"add",path:"/objects/-",value:Object.assign(Object.assign({id:t},dc),e)};o.push(r)}})),n.forEach(((e,t)=>{if(!i.has(t)){const e={op:"remove",path:`/objects/id=${t}`};o.push(e)}})),a=JSON.stringify(o),t._log(`Updating subscription ${t._subscriptionId}: ${a}`),r.prev=7,r.next=10,t._parseSubscriptionResponse("update",(()=>t._core._environment.fetch(t._subscriptionHref,{method:"PATCH",body:a,authHeader:uc,headers:{"Content-Type":et}})));case 10:r.next=18;break;case 12:if(r.prev=12,r.t0=r.catch(7),r.t0.code!==ge.NOT_FOUND){r.next=17;break}return t._log(`The subscription we tried to update no longer exists (${t._subscriptionId}) - creating a new subscription instead`),r.abrupt("return",t._createSubscriptionOnServer(e));case 17:throw r.t0;case 18:case"end":return r.stop()}}),r,null,[[7,12]])})))()}_deleteSubscriptionFromServer(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e._log(`Deleting subscription ${e._subscriptionId}`),t.prev=1,t.next=4,e._core._environment.fetch(e._subscriptionHref,{method:"DELETE",authHeader:uc});case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(1),e._log(`Unable to delete subscription: ${e._subscriptionHref}. Error: ${t.t0}`);case 9:e._subscriptionId=void 0,e._subscriptionHref=void 0,e._expiresAt=void 0;case 12:case"end":return t.stop()}}),t,null,[[1,6]])})))()}refreshSubscriptionExpiryDate(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e._log(`Refreshing expiry date on subscription ${e.subscriptionId}`),t.next=3,e._createRequestBody();case 3:return r=t.sent,t.abrupt("return",e._parseSubscriptionResponse("update",(()=>e._core._environment.fetch(e.subscriptionHref,{method:"PUT",body:r,authHeader:uc,headers:{"Content-Type":lc}}))).catch((()=>e._update())));case 5:case"end":return t.stop()}}),t)})))()}_fetchChangeLogPage(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s,c,l,u,d,p,h;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(s={subscriptionId:t._subscriptionId},!t._nextChangeLogLinks){r.next=5;break}r.t0=ot(t._nextChangeLogLinks,tt.GENERIC_NEXT,s),r.next=8;break;case 5:return r.next=7,t._onsInterface._getLink(tt.ONS_CHANGELOG,s);case 7:r.t0=r.sent;case 8:return c=r.t0,r.next=11,t._core._environment.fetch(c,{headers:{directive:"ons-repometa"}});case 11:if(200===(l=r.sent).status){r.next=21;break}if(u=`Unexpected response fetching change log: ${l.status}`,403!==l.status){r.next=19;break}return r.next=17,l.json();case 17:r.sent.type===_e.LIMIT_CHANGELOGRETENTION&&(u='Changelog retention period expired, discarding "next" link and fetching changelog again.',t._nextChangeLogLinks=void 0);case 19:throw t._log(u),we.createWithResponseAndDescription(l,u);case 21:return r.next=23,l.json();case 23:return d=r.sent,p=null!==(n=d["ons:changedSubscriptions"])&&void 0!==n?n:[],h=p.find((e=>e["ons:subscriptionId"]===t._subscriptionId)),(null!==(i=null==h?void 0:h["ons:changes"])&&void 0!==i?i:[]).forEach((t=>{var r,n,i;const o=t["repo:assetId"],a=null!==(r=t["ons:resources"])&&void 0!==r?r:[],s=[...Object.keys(a)],c=t["ons:subscribedDirectoryAssetId"],l=null===(i=null===(n=a["api:annotation"])||void 0===n?void 0:n["repo:resource"])||void 0===i?void 0:i.annotation_id;if(o)if(e.has(o)){const t=e.get(o);t.changedResources=[...new Set([...t.changedResources,...s])],l&&(t.annotationIds=[...new Set([...t.annotationIds||[],l])]),e.set(o,t)}else e.set(o,Object.assign({parentAssetId:c,changedResources:s},l&&{annotationIds:[l]}))})),t._nextChangeLogLinks=null==d?void 0:d._links,r.abrupt("return",null===(a=null===(o=t._nextChangeLogLinks)||void 0===o?void 0:o.next)||void 0===a?void 0:a.nextPage);case 30:case"end":return r.stop()}}),r)})))()}fetchAndNotifyChanges(e=0){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:t._log(`Fetching ChangeLog for subscription ${t._subscriptionId}...`),t._retryChangeLogTimeout&&clearTimeout(t._retryChangeLogTimeout),n=r=>{var n;const i=1e3*at(null===(n=r.response)||void 0===n?void 0:n.headers),o=Math.max(i,t._core._environment.getRetryInterval(e));t._log(`Retrying change log fetch in ${o}ms`),t._retryChangeLogTimeout=setTimeout((()=>t.fetchAndNotifyChanges(e+1)),o)},i=new Map,r.prev=4,o=!0;case 6:if(!o){r.next=12;break}return r.next=9,t._fetchChangeLogPage(i);case 9:o=r.sent,r.next=6;break;case 12:r.next=18;break;case 14:r.prev=14,r.t0=r.catch(4),t._log(`Error fetching change log: ${r.t0}`),n(r.t0);case 18:i.size&&(t._log(`Changed Assets: ${[...i.keys()].join(", ")}`),t._onsInterface.emit("change",new bc(i)));case 19:case"end":return r.stop()}}),r,null,[[4,14]])})))()}validate(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._subscriptionHref){t.next=6;break}if(!(e._assets.size>0)){t.next=4;break}return e._log("assets exist for subscription but no _subscriptionHref was found, trying to _update() again..."),t.abrupt("return",e._update());case 4:return e._log("subscription has no assets and no _subscriptionHref set"),t.abrupt("return");case 6:return t.prev=6,t.next=9,e._core._environment.fetch(e._subscriptionHref,{authHeader:uc});case 9:r=t.sent,e._log(`Subscription ${e._subscriptionId} exists on the server`),t.next=18;break;case 13:return t.prev=13,t.t0=t.catch(6),e._log(`Error checking ${e._subscriptionId}, it does not exist on the server`),e._log(t.t0.message),t.abrupt("return");case 18:if([200,201,204].includes(r.status)){t.next=24;break}return e._log("ONS subscription has been invalidated. Creating new subscription..."),e._subscriptionHref=void 0,e._subscriptionId=void 0,e._watchedAssets=new Map,t.abrupt("return",e._update());case 24:case"end":return t.stop()}}),t,null,[[6,13]])})))()}}hc.DEFAULT_RETRY_INTERVAL_SEC=0,Ie([At],hc.prototype,"_update",null),Ie([At],hc.prototype,"fetchAndNotifyChanges",null);const fc=[tt.SUBSCRIPTION_CREATE,tt.NOTIFICATIONS_LONGPOLL,tt.ONS_CHANGELOG],mc="X-User-Token",gc="firstLongPollStarted",vc="firstLongPollCompleted",yc="ONS_SUBSCRIPTIONS";class bc extends Ve{constructor(e){super(),this.changedAssets=e}}class _c extends Event{constructor(e){super("firstLongPollStarted"),this.cachedSubscriptionsUsed=e}}class Ec extends Event{constructor(e){super("firstLongPollCompleted"),this.expired=e}}class wc extends xi{constructor(e,t=e._environment.getValue("ENABLE_ONS_CACHE")){super(e),this._core=e,this._cacheEnabled=t,this._isStarted=!1,this._subscriptions=[],this._maxAssetsPerSubscription=5,this._assetIds=new Set,this._cachedSubscriptionsUsed=!1,this._onSubscriptionChange=e=>{(null==e?void 0:e.fromCache)||(this._cachedSubscriptionsUsed=!1),this._updateCachedSubscriptions(),this._startLongPoll()},this._onVisibilityChange=()=>{var e;this._stopTimeout&&(clearTimeout(this._stopTimeout),this._stopTimeout=void 0),"visible"===(null===(e=this._document)||void 0===e?void 0:e.visibilityState)?this._start():this._stopTimeout=setTimeout((()=>this._stop()),this._core._environment.getValue("ONS_DOCUMENT_VISIBILITY_TIMEOUT"))},this._cache=e._environment.cache}_getSubscriptionConfig(){var e=this;return me(he().mark((function t(){var r,n,i;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e._getRootDocument();case 3:return i=t.sent,t.abrupt("return",null!==(n=null===(r=null==i?void 0:i.config)||void 0===r?void 0:r.subscriptions)&&void 0!==n?n:{});case 7:return t.prev=7,t.t0=t.catch(0),e._log(`Error fetching subscription config from ONS root document: ${t.t0}`),t.abrupt("return",{});case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()}_updateCachedSubscriptions(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._cacheEnabled){t.next=2;break}return t.abrupt("return");case 2:return r=[],e._subscriptions.forEach((t=>{const n=t.subscriptionId,i=t.subscriptionHref,o=t.assets,a=t.expiresAt;if(!n||!i)return;const s={id:n,href:i,assets:Object.fromEntries(o),expiresAt:a||Date.now()+e._core._environment.getValue("ONS_SUBSCRIPTION_TIME_TO_LIVE")};r.push(s)})),t.next=6,e._cache.setItem(yc,JSON.stringify({subscriptions:r}),e._core._environment.getValue("ONS_SUBSCRIPTION_TIME_TO_LIVE"));case 6:case"end":return t.stop()}}),t)})))()}_getAndParseCachedSubscriptions(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._cacheEnabled){t.next=2;break}return t.abrupt("return",[]);case 2:return t.next=4,e._cache.getItem(yc);case 4:if((r=t.sent)===wr){t.next=13;break}return t.prev=6,t.abrupt("return",JSON.parse(r).subscriptions);case 10:t.prev=10,t.t0=t.catch(6),e._log("error parsing cached subscriptions");case 13:return t.abrupt("return",[]);case 14:case"end":return t.stop()}}),t,null,[[6,10]])})))()}_ensureSubscriptions(){var e=this;return me(he().mark((function t(){var r,n,i,o,a;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._getSubscriptionConfig();case 2:if(r=t.sent,n=r.maxSubscriptionPerLongPoll||e._core._environment.getValue("ONS_DEFAULT_MAX_SUBSCRIPTIONS"),e._maxAssetsPerSubscription=r.maxAssetsPerRequest||e._core._environment.getValue("ONS_DEFAULT_MAX_ASSETS_PER_SUBSCRIPTION"),!(n>e._subscriptions.length)){t.next=13;break}return t.next=8,e._getAndParseCachedSubscriptions();case 8:for(i=t.sent,e._cachedSubscriptionsUsed=i.length>0,o=e._subscriptions.length;o<n;++o)a=new hc(e,i[o]),e._subscriptions.push(a),a.on("change",e._onSubscriptionChange);t.next=14;break;case 13:if(n<e._subscriptions.length){for(o=n;o<e._subscriptions.length;++o)(a=e._subscriptions[o]).assets=new Map,a.off("change",e._onSubscriptionChange);e._subscriptions.length=n}case 14:case"end":return t.stop()}}),t)})))()}get _activeSubscriptionIds(){return Array.from(this._subscriptions).filter((e=>e.subscriptionId&&e.watchedAssets.size>0)).map((e=>`${e.subscriptionId}`)).sort()}_startLongPoll(){var e=this;return me(he().mark((function t(){var r,n,i;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==(r=e._activeSubscriptionIds).length){t.next=5;break}t.t0=void 0,t.next=8;break;case 5:return t.next=7,e._getLink(tt.NOTIFICATIONS_LONGPOLL,{includeJournal:"false",subscriptionId:r});case 7:t.t0=t.sent;case 8:n=t.t0,i=e._pollURL!==n,e._pollURL=n,e.isActive&&i&&(e._stop(),e._start());case 12:case"end":return t.stop()}}),t)})))()}_log(e){this._core._environment.debug(`ONS: ${e}`)}get isActive(){return Boolean(this._abortController)}get assetIds(){return new Set(this._assetIds)}get watchedAssetIds(){const e=new Set;return this._subscriptions.forEach((t=>{t.watchedAssets.forEach(((t,r)=>e.add(r)))})),e}get _document(){if("undefined"!=typeof window)return window.document}start(){var e;this._isStarted||(null===(e=this._document)||void 0===e||e.addEventListener("visibilitychange",this._onVisibilityChange),this._isStarted=!0,this._document&&"visible"!==this._document.visibilityState||this._start())}stop(){var e;this._isStarted&&(null===(e=this._document)||void 0===e||e.removeEventListener("visibilitychange",this._onVisibilityChange),this._isStarted=!1,this._subscriptions.forEach((e=>e.abort())),this._stop())}_stop(){if(!this.isActive)return;this._stopTimeout&&(clearTimeout(this._stopTimeout),this._stopTimeout=void 0),this._log("Stopping...");const e=this._abortController;delete this._abortController,this._abortController=void 0,null==e||e.abort()}_start(){this.isActive?this._log("Already starting skipping..."):(this._log("Starting..."),this._abortController=new AbortController,this._poll())}_truncateAssetIdsByMaxSizeIfNeeded(e){const t=this._maxAssetsPerSubscription*this._subscriptions.length;return e.size>t&&(this._log(`Number of assets ${e.size} exceeds the maximum allowed by ONS. Limiting to ${t}`),e=new Set(Array.from(e).slice(0,t))),e}watch(e){var t=this;return me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._ensureSubscriptions();case 2:n=new Set,e.forEach((r=>{var i;const o=t._core.hostAssetContext._assetPool.getLocalItemById(r),a=null!==(i=null==o?void 0:o.ancestorIDs)&&void 0!==i?i:[],s=a[a.length-1];e.has(s)&&!(null==o?void 0:o.isFolder)||n.add(r)})),t._assetIds=t._truncateAssetIdsByMaxSizeIfNeeded(n),i=new Set,o=Array.from(t._subscriptions.map((e=>{const r=new Map;return e.assets.forEach(((e,n)=>{t._assetIds.has(n)&&i.add(n)&&r.set(n,e)})),r}))),a=0,t._assetIds.forEach((e=>{if(i.has(e))return;for(;o[a].size>=t._maxAssetsPerSubscription;)a++;const r=t._core.hostAssetContext._assetPool.getLocalItemById(e);o[a].set(e,(null==r?void 0:r.isFolder)?{directoryLevel:"shallow"}:{})})),t._subscriptions.forEach(((e,t)=>e.assets=o[t]));case 10:case"end":return r.stop()}}),r)})))()}_notifyFirstLongPollStarted(e=!1){this.emit(gc,new _c(e))}_notifyFirstLongPollCompleted(e){this.emit(vc,new Ec(e))}_validateAndUpdateSubscriptionExpiration(){const e=Date.now(),t=Math.max(.1*this._core._environment.getValue("ONS_SUBSCRIPTION_TIME_TO_LIVE"),this._core._environment.getValue("ONS_SUBSCRIPTION_RENEW_TIME"));this._subscriptions.filter((r=>r.watchedAssets.size&&r.expiresAt-e<t)).forEach((e=>e.refreshSubscriptionExpiryDate()))}_poll(e=0){var t=this;return me(he().mark((function r(){var n,i,o,a,s;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=(r,n=0)=>{n=Math.max(t._core._environment.getRetryInterval(e),n);const i=t._abortController;if(!i)return;t._log(`Retrying long poll in ${n}ms`);const o=setTimeout((()=>t._poll(e+1)),n);i.signal.addEventListener("abort",(()=>{i!==t._abortController&&clearTimeout(o)}))},i=t._abortController){r.next=5;break}return t._log("No abort controller..."),r.abrupt("return");case 5:if(r.prev=5,void 0!==t._pollURL){r.next=9;break}return t._log("Poll URL undefined..."),r.abrupt("return");case 9:return t._notifyFirstLongPollStarted(t._cachedSubscriptionsUsed),o=t._pollURL,r.next=14,t._core._environment.fetch(o,{signal:i.signal,authHeader:mc,headers:{"x-poll-timeout":"160"},requestTimeoutMs:18e4});case 14:if(a=r.sent,![200,201,204].includes(a.status)){r.next=27;break}return r.next=18,a.json();case 18:s=r.sent,t._notifyFirstLongPollCompleted(!1),t._log(`Successful long poll for ${o}`),s&&s.subscriptions&&s.subscriptions.length>0&&(t._log(`Subscriptions changed: ${s.subscriptions.join(", ")}`),s.subscriptions.forEach((e=>{const r=t._subscriptions.find((t=>t.subscriptionId===e));null==r||r.fetchAndNotifyChanges()})),t._validateAndUpdateSubscriptionExpiration(),t.emit("notified")),s&&s.checkSubscriptions&&s.checkSubscriptions.length>0&&(t._log(`Checking subscriptions for subscriptions to check ${s.checkSubscriptions.length}`),s.checkSubscriptions.forEach((e=>{const r=t._subscriptions.find((t=>t.subscriptionId===e));r&&r.validate()}))),t._pollURL=s&&s._links&&s._links.next&&s._links.next.href,t._poll(),r.next=28;break;case 27:404===a.status?(t._notifyFirstLongPollCompleted(!0),t._log(`404 Response long poll for ${o}, subscription missing or expired`),t._subscriptions.forEach((e=>{e.subscriptionId&&e.validate()})),n(void 0,t._core._environment.getValue("MAX_RETRY_INTERVAL"))):(t._log(`Unexpected response, trying again ${o}`),n(void 0,1e3*at(a.headers)));case 28:r.next=38;break;case 30:if(r.prev=30,r.t0=r.catch(5),!i.signal.aborted||i===t._abortController){r.next=36;break}return t.emit("aborted"),t._notifyFirstLongPollCompleted(!0),r.abrupt("return");case 36:t._log("Error trying to create long poll request"),n();case 38:case"end":return r.stop()}}),r,null,[[5,30]])})))()}_getAndCacheDocument(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._core._environment.fetch(e,{headers:{Accept:"application/vnd.syncservice.v2.hal+json"},authHeader:mc});case 2:return n=r.sent,r.abrupt("return",n.json());case 4:case"end":return r.stop()}}),r)})))()}_getRootDocument(){return this._getAndCacheDocument(`https://${this._core._environment.endpoints.SYNC_SERVICE_HOST}/api/v1`)}_getLink(e,t={}){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._getRootDocument();case 2:return i=n.sent,n.abrupt("return",ot(i._links,e,t));case 4:case"end":return n.stop()}}),n)})))()}}Ie([At],wc.prototype,"_updateCachedSubscriptions",null),Ie([At],wc.prototype,"_startLongPoll",null),Ie([Ue],wc.prototype,"_notifyFirstLongPollStarted",null),Ie([Ue],wc.prototype,"_notifyFirstLongPollCompleted",null),Ie([Ge((e=>e._links&&fc.every((t=>e._links[t])))),Ae(0,Ze)],wc.prototype,"_getAndCacheDocument",null);const xc={name:"asset_name",created:"create_date",modified:"modify_date",shared:"shared_date"},Lc={name:(e,t)=>Yi(e.name,t.name),shared:(e,t)=>Wi(e.shared,t.shared),created:(e,t)=>Wi(e.created,t.created),modified:(e,t)=>Wi(e.modified,t.modified)};class Oc extends(Ki(Lc)){}Oc.default=new Oc("descending","shared");var Sc=Object.freeze({__proto__:null,OrderFieldToISWYAdobeAssetOrderBy:xc,default:Oc});class Tc{constructor(e,t,r){this._core=t,this._swyInterface=r,this._ussLoaderHelper=new go(e,t,this)}supportsFilter(e){return void 0!==e}loadPage(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._libraryContext){r.next=4;break}return r.next=3,t._core.getLibraryContext();case 3:t._libraryContext=r.sent;case 4:return r.abrupt("return",t._ussLoaderHelper.loadPage(e));case 5:case"end":return r.stop()}}),r)})))()}_getUSSResults({start:e,limit:t,mediaTypes:r,excludeMediaTypes:n,order:i}){var o=this;return me(he().mark((function a(){return he().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",o._swyInterface.getSWYAssets({orderBy:xc[i.field],orderDirection:i.direction,start:e,limit:t,mediaTypes:r,excludeMediaTypes:n,embedPermissions:!0}));case 1:case"end":return a.stop()}}),a)})))()}}function Pc(e){(null==e?void 0:e.find((e=>e===ti)))&&e.push(ri)}const Ic={orderDirection:"descending",orderBy:"shared_date",start:0,limit:0};class Ac extends Pt{getSharedByMeAssets(e,t){var r=this;return me(he().mark((function n(){var i,o;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return Pc((t=Object.assign(Object.assign({},Ic),t)).type),i={hints:{acp_platform_v2:!0},fetch_fields:{includes:["collab_metadata$$collaborators"]},"storage:assignee$$type":["user"],op_none_of:[{"app_metadata$$shell:visibility":"hiddenSelf"}],parent_id:[e],[Ji.TYPE]:t.type||[],sort_orderby:t.orderBy,sort_order:(a=t,"ascending"===a.orderDirection?"asc":"desc"),limit:t.limit,start_index:t.start},n.next=5,r._core.hostAssetContext._ussInterface.getQueryResponse(i);case 5:return o=n.sent,n.abrupt("return",o);case 7:case"end":return n.stop()}var a}),n)})))()}}const Cc={orderDirection:"descending",orderBy:"shared_date",start:0,limit:0,mediaTypes:[],excludeMediaTypes:[]};class kc extends Pt{getSWYAssets(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return Pc((e=Object.assign(Object.assign({},Cc),e)).mediaTypes),e.excludeMediaTypes=[...new Set(e.excludeMediaTypes.concat(ti))],Pc(e.excludeMediaTypes),n={shared_via_invite:!0,hints:{acp_platform_v2:!0},fetch_fields:{includes:Zr()},op_none_of:[{op_field_exists:["app_metadata$$cc:inheritable$$cc:team$$repo:assetId","app_metadata$$cc:inherited$$cc:space$$repo:assetId","app_metadata$$cc:inheritable$$cc:space$$repo:assetId"]},{[Ji.VISIBLITY]:["hiddenSelf","hiddenRecursive"]},{[Ji.CREATIVE_CLOUD_TOPLEVEL_COLLECTION_NAME]:"appdata"},{[Ji.TYPE]:e.excludeMediaTypes||[]},{[Ji.STORAGE_ASSIGNEE_ID]:t._core._environment.getValue("USER_ID")}],[Ji.TYPE]:e.mediaTypes||[],sort_orderby:e.orderBy,sort_order:(o=e,"ascending"===o.orderDirection?"asc":"desc"),limit:e.limit,start_index:e.start},e.embedPermissions&&n.fetch_fields.includes.push("_embedded"),r.next=8,t._core.hostAssetContext._ussInterface.getQueryResponse(n);case 8:return i=r.sent,r.abrupt("return",i);case 10:case"end":return r.stop()}var o}),r)})))()}}const Dc={orderDirection:"descending",orderBy:"modify_date",start:0,limit:0};class Nc extends Pt{getFilteredAssets(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return Pc((e=Object.assign(Object.assign({},Dc),e)).mediaTypes),Pc(e.excludeMediaTypes),n=Object.assign(Object.assign(Object.assign({hints:{acp_platform_v2:!0},fetch_fields:{includes:Zr()},[Ji.STORAGE_ASSIGNEE_TYPE]:["user"],op_none_of:[{op_field_exists:["app_metadata$$cc:inheritable$$cc:team$$repo:assetId","app_metadata$$cc:inherited$$cc:team$$repo:assetId"]},{[Ji.VISIBLITY]:["hiddenSelf","hiddenRecursive"]},{[Ji.CREATIVE_CLOUD_TOPLEVEL_COLLECTION_NAME]:"appdata"},{[Ji.TYPE]:e.excludeMediaTypes||[]}]},e.assetId?Object.assign({},e.deepSearch?{container:{asset_id:[e.assetId]}}:{parent_id:[e.assetId]}):{}),{[Ji.TYPE]:e.mediaTypes||[],sort_orderby:e.orderBy,sort_order:(c=e,"ascending"===c.orderDirection?"asc":"desc"),limit:e.limit,start_index:e.start}),e.query?{q:e.query}:{}),i=e.userId,o=e.uploadedFrom,i&&(n.op_and=n.op_and||[],n.op_and.push({[Ji.STORAGE_ASSIGNEE_ID]:i})),o&&(n.op_and=n.op_and||[],n.op_and.push({[Ji.CREATED_FROM_UPLOAD]:!0}),Array.isArray(o)&&(a=o.map((e=>({[Ji.CREATED_BY_CLIENT_ID]:e}))),n.op_and.push({[Ji.OP_OR]:a}))),r.next=10,t._core.hostAssetContext._ussInterface.getQueryResponse(n);case 10:return s=r.sent,r.abrupt("return",s);case 12:case"end":return r.stop()}var c}),r)})))()}}const Rc={orderDirection:"descending",orderBy:"modify_date",start:0,limit:0};class Mc extends Pt{getFilteredAssets(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return Pc((e=Object.assign(Object.assign({},Rc),e)).mediaTypes),Pc(e.excludeMediaTypes),n=Object.assign({hints:{acp_platform_v2:!0},fetch_fields:{includes:Zr()},[Ji.STORAGE_ASSIGNEE_TYPE]:["user"],op_none_of:[{op_field_exists:["app_metadata$$cc:inheritable$$cc:space$$repo:assetId","app_metadata$$cc:inherited$$cc:space$$repo:assetId"]},{[Ji.VISIBLITY]:["hiddenSelf","hiddenRecursive"]},{[Ji.CREATIVE_CLOUD_TOPLEVEL_COLLECTION_NAME]:"appdata"},{[Ji.TYPE]:e.excludeMediaTypes||[]}],op_or:[{[Ji.STORAGE_ASSIGNEE_ID]:t._core._environment.getValue("USER_ID")},{[Ji.SHARED_VIA_INVITE]:!0}],[Ji.TYPE]:e.mediaTypes||[],sort_orderby:e.orderBy,sort_order:(o=e,"ascending"===o.orderDirection?"asc":"desc"),limit:e.limit,start_index:e.start},e.query?{q:e.query}:{}),e.embedPermissions&&n.fetch_fields.includes.push("_embedded"),r.next=7,t._core.hostAssetContext._ussInterface.getQueryResponse(n);case 7:return i=r.sent,r.abrupt("return",i);case 9:case"end":return r.stop()}var o}),r)})))()}}const jc={start:0,limit:0,mediaTypes:[],excludeMediaTypes:[]};class Fc extends Pt{_getCommonFilters(e){const t=(null!=(e=Object.assign(Object.assign({},jc),e))?e:{}).uploadedFrom;Pc(e.mediaTypes),Pc(e.excludeMediaTypes),e.excludeMediaTypes=Array.from(new Set(["application/x-sharedcloud-collection+json",...e.excludeMediaTypes||[]]));const r={hints:{acp_platform_v2:!0},fetch_fields:{includes:Zr()},sort_order:"desc",limit:e.limit,start_index:e.start,[Ji.TYPE]:e.mediaTypes||[],op_none_of:[{[Ji.FIELD_EXISTS]:["app_metadata$$cc:inheritable$$cc:space$$repo:assetId","app_metadata$$cc:inherited$$cc:space$$repo:assetId","app_metadata$$cc:inheritable$$cc:team$$repo:assetId"]},{[Ji.VISIBLITY]:["hiddenSelf","hiddenRecursive"]},{[Ji.CREATIVE_CLOUD_TOPLEVEL_COLLECTION_NAME]:["appdata"]},{[Ji.TYPE]:e.excludeMediaTypes||[]},{[Ji.CREATIVE_CLOUD_TOPLEVEL_COLLECTION_NAME]:"pubs"},{[Ji.OP_AND]:[{[Ji.CREATIVE_CLOUD_TOPLEVEL_COLLECTION_NAME]:"cloud-content"},{[Ji.FIELD_EXISTS]:["app_metadata$$review:sourceAsset$$dc:format"]}]}]};if(e.embedPermissions&&r.fetch_fields.includes.push("_embedded"),t&&(r.op_and=[],r.op_and.push({[Ji.CREATED_FROM_UPLOAD]:!0})),t&&Array.isArray(t)){const e=r.op_and.push({[Ji.OP_OR]:[]});t.forEach((t=>{r.op_and[e-1][Ji.OP_OR].push({[Ji.CREATED_BY_CLIENT_ID]:t})}))}return t&&!Array.isArray(t)&&"ALL"!==t&&r.op_and.push({[Ji.CREATED_BY_CLIENT_ID]:t}),r}getRecentAssets(e){var t=this;return me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t._getCommonFilters(e),i=(null!=e?e:{}).userId,n.sort_orderby="modify_date",o={[Ji.STORAGE_ASSIGNEE_ID]:null!=i?i:t._core._environment.getValue("USER_ID")},i?(n.op_and||(n.op_and=[]),n.op_and.push(o)):(n.op_or||(n.op_or=[]),n.op_or.push(o),n.op_or.push({[Ji.SHARED_VIA_INVITE]:!0})),r.next=7,t._core.hostAssetContext._ussInterface.getQueryResponse(n);case 7:return a=r.sent,r.abrupt("return",a);case 9:case"end":return r.stop()}}),r)})))()}getMRUAssets(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(n=t._getCommonFilters(e)).fetch_fields.includes.push(to),(i=(null!=e?e:{}).userId)&&(n.op_and||(n.op_and=[]),n.op_and.push({[Ji.STORAGE_ASSIGNEE_ID]:i})),n.sort_orderby=to,n.op_field_exists=[to],r.next=8,t._core.hostAssetContext._ussInterface.getQueryResponse(n);case 8:return o=r.sent,r.abrupt("return",o);case 10:case"end":return r.stop()}}),r)})))()}}class Zc extends Pt{transfer(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.discoverLinks();case 2:return n=r.sent,r.next=5,t._doPost(ot(n,tt.ATS_MOVE),{"Content-Type":"application/json"},JSON.stringify(e),[200]);case 5:return i=r.sent,r.next=8,i.json();case 8:if(!(o=r.sent).status||200===o.status){r.next=11;break}throw we.createWithResponse(i);case 11:return r.abrupt("return",o.assetId);case 12:case"end":return r.stop()}}),r)})))()}discoverLinks(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._getResponse(e.getUrl("/"));case 2:return r=t.sent,t.abrupt("return",r._links);case 4:case"end":return t.stop()}}),t)})))()}getUrl(e){return`https://${this._core._environment.endpoints.TRANSFER_SERVICE_HOST}${e}`}}class Bc{constructor(e,t,r,n){this._core=t,this._recentInterface=r,this._implicitFilter=n,this._ussLoaderHelper=new go(e,t,this)}supportsFilter(e){return void 0!==e}loadPage(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._libraryContext){r.next=4;break}return r.next=3,t._core.getLibraryContext();case 3:t._libraryContext=r.sent;case 4:return r.abrupt("return",t._ussLoaderHelper.loadPage(e));case 5:case"end":return r.stop()}}),r)})))()}_getUSSResults({start:e,limit:t,mediaTypes:r,excludeMediaTypes:n,filter:i}){var o=this;return me(he().mark((function a(){var s,c;return he().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s={start:e,limit:t,mediaTypes:r,excludeMediaTypes:n,embedPermissions:!0},i.name===ho&&(c=i,s.userId=c.userId,s.uploadedFrom=c.uploadedFrom),a.abrupt("return",o._recentInterface.getRecentAssets(s));case 3:case"end":return a.stop()}}),a)})))()}_postProcessPage(e,t){const r=t.items;r.length&&(this._implicitFilter._lastModificationDate=r[r.length-1].modified)}}class Gc extends zi{constructor(){super({_isSharedWithYou:!0})}get hash(){return super.hash}matches(e){return!e.isFolder&&!(this._lastModificationDate&&e.modified<this._lastModificationDate)&&super.matches(e)}getRelationToFilter(e){var t,r;const n=e;return(null===(t=this._lastModificationDate)||void 0===t?void 0:t.valueOf())!==(null===(r=n._lastModificationDate)||void 0===r?void 0:r.valueOf())?"disjoint":super.getRelationToFilter(e)}}var Uc=Object.freeze({__proto__:null,default:Gc});function Hc(e,t,r,n,i){return zc.apply(this,arguments)}function zc(){return zc=me(he().mark((function e(t,r,n,i,o){var a,s,c,l,u,d,p,h;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=[],s=[],t.failedResults.forEach((e=>{e.error.code===ge.CONFLICT?a.push(e.model):s.push(e)})),!a.length){e.next=12;break}c=ue(i);try{for(c.s();!(l=c.n()).done;)u=le(l.value,2),d=u[0],p=u[1],i.set(d,{newName:p.newName,countUsed:p.countUsed+1})}catch(e){c.e(e)}finally{c.f()}return e.next=8,o(a,r,n,!0,i);case 8:return(h=e.sent).failedResults=[...h.failedResults,...s],h.newModels=[...h.newModels,...t.newModels],e.abrupt("return",h);case 12:return e.abrupt("return",t);case 13:case"end":return e.stop()}}),e)}))),zc.apply(this,arguments)}class Vc{constructor(e,t,r){this._recentInterface=r,this._ussLoaderHelper=new go(e,t,this)}supportsFilter(e){return void 0!==e}loadPage(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._ussLoaderHelper.loadPage(e));case 1:case"end":return r.stop()}}),r)})))()}_getUSSResults({start:e,limit:t,mediaTypes:r,excludeMediaTypes:n}){var i=this;return me(he().mark((function o(){return he().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",i._recentInterface.getMRUAssets({start:e,limit:t,mediaTypes:r,excludeMediaTypes:n,embedPermissions:!0}));case 1:case"end":return o.stop()}}),o)})))()}}class Yc extends zi{constructor(){super({_isSharedWithYou:!0})}get hash(){return`${super.hash}`}matches(e){return!e.isFolder&&void 0!==e.lastAccessed&&super.matches(e)}}function Wc(e){const t=e.split(":");return[t.pop(),t.join(":")]}function Kc(e){return!0===e?"team_view":!1===e?"team_edit":""}function $c(e){const t=le(e.split("?"),2),r=t[0],n=t[1],i=new URLSearchParams(n),o={};["start","limit","selector","type","orderBy","group","owner"].forEach((e=>{const t=i.get(e);t&&(o[e]=t,i.delete(e))}));const a=`${i}`;return[a.length>0?`${r}?${a}`:r,o]}class qc extends Pt{_getUrl(e){return`https://${this._core._environment.endpoints.MELVILLE_HOST}${e}`}getLibraryData(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=(null==t?void 0:t.selectors)?t.selectors:[],o=(null==t?void 0:t.isDiscarded)||!1,a=Array.from(new Set(["rendition_grid","collaboration",...i])).sort().join(","),s=o?"archive":"libraries",n.next=6,r._getResponse(r._getUrl(`/api/v1/${s}/${e}?selector=${a}`),{headers:{"Cache-Control":"no-cache, no-store, max-age=0"}});case 6:return n.abrupt("return",n.sent);case 7:case"end":return n.stop()}}),n)})))()}getLibraries(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s,c,l;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(null==e?void 0:e.limit)||void 0!==(null==e?void 0:e.start)){r.next=2;break}throw we.create(ge.BAD_REQUEST,"[Melville] If limit is provided, start must also be provided.");case 2:return u=e,e=Object.fromEntries(Object.entries(u).map((([e,t])=>Array.isArray(t)?[e,t.sort()]:[e,t])).sort()),n=st(t._getUrl("/api/v1/libraries"),e),i=$c(n),o=le(i,2),a=o[0],s=o[1],c={"Cache-Control":"no-cache, no-store, max-age=0"},l=Object.assign(Object.assign({},c),s),r.next=9,t._getResponse(a,{headers:l});case 9:return r.abrupt("return",r.sent);case 10:case"end":return r.stop()}var u}),r)})))()}getLibrariesForProject(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.getLibraries({team:e,selector:"rendition_grid,collaboration"});case 2:return n=r.sent,r.abrupt("return",n.libraries);case 4:case"end":return r.stop()}}),r)})))()}getLibrariesWithLink(e){var t=this;return me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=$c(t._getUrl(e.href)),i=le(n,2),o=i[0],a=i[1],r.next=3,t._getResponse(o,{headers:a});case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}}),r)})))()}restoreLibraryElement(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=Wc(e),i=le(n,2),o=i[0],a=i[1],s={self:{id:a.toString(),elements:[o]}},r.next=4,t._doPost(t._getUrl(`/api/v1/libraries/${a}/archive`),{"Content-Type":"application/json"},JSON.stringify(s),[200]);case 4:case"end":return r.stop()}}),r)})))()}permanentlyDeleteLibraryElement(e){var t=this;return me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=Wc(e),i=le(n,2),o=i[0],a=i[1],r.next=3,t._doDelete(t._getUrl(`/api/v1/libraries/${a}/archive/${o}`),{"Content-Type":"application/json"},[204]);case 3:case"end":return r.stop()}}),r)})))()}discardLibrary(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doDelete(t._getUrl(`/api/v1/libraries/${e}`),{"Content-Type":"application/json"},[204]);case 2:case"end":return r.stop()}}),r)})))()}permanentlyDeleteLibrary(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doDelete(t._getUrl(`/api/v1/libraries/${e}?permanent=true`),{"Content-Type":"application/json"},[204]);case 2:case"end":return r.stop()}}),r)})))()}restoreLibrary(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={self:`/api/v1/archive/${e}`},r.next=3,t._doPost(t._getUrl("/api/v1/libraries"),{"Content-Type":"application/json"},JSON.stringify(n),[201]);case 3:case"end":return r.stop()}}),r)})))()}copyLibrary(e,t,r,n){var i=this;return me(he().mark((function o(){var a,s,c;return he().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a=Kc(n),s=Object.assign(Object.assign(Object.assign({source:e},t&&{name:t}),a&&{access:a}),r&&{parent_assetId:r}),o.next=4,i._doPost(i._getUrl("/api/v1/libraries"),{"Content-Type":"application/json"},JSON.stringify(s),[200,201]);case 4:return c=o.sent,o.next=7,c.json();case 7:return o.abrupt("return",o.sent);case 8:case"end":return o.stop()}}),o)})))()}moveLibrary(e,t,r){var n=this;return me(he().mark((function i(){var o,a,s;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=Kc(r),a={self:e,parent_assetId:t,"repo:manifestPatch":[{op:"replace",path:"/id",value:e}]},""!==o&&(a.access=o),i.next=5,n._doPost(n._getUrl("/api/v1/libraries"),{"Content-Type":"application/json"},JSON.stringify(a),[200,201]);case 5:return s=i.sent,i.next=8,s.json();case 8:return i.abrupt("return",i.sent);case 9:case"end":return i.stop()}}),i)})))()}createLibrary(e){var t=this;return me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i="/api/v1/libraries","string"!=typeof e){r.next=5;break}n={name:e},r.next=11;break;case 5:if("object"!=typeof e){r.next=10;break}i=(n=e).syncCreate?"/api/v1/libraries?invocation_mode=sync":"/api/v1/libraries",r.next=11;break;case 10:throw new Error("Invalid arguments");case 11:return o=Pe(n,["syncCreate"]),r.next=14,t._doPost(t._getUrl(i),{"Content-Type":"application/json"},JSON.stringify(o),[201,200]);case 14:return a=r.sent,r.next=17,a.json();case 17:return r.abrupt("return",r.sent);case 18:case"end":return r.stop()}}),r)})))()}bookmarkLibraries(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e=e.map((e=>{if(!e.id||!e.urn&&!e.url||"collab"===e.type&&!e.urn||"public"===e.type&&!e.url)throw we.create(ge.BAD_REQUEST,"[Melville] BookmarkData must include `id` and either `urn` for collaborated libraries or `url` for public libraries.");return e.type=e.type||(e.url?"public":"collab"),e})),n={bookmarks:e},r.next=4,t._doPost(t._getUrl("/api/v1/libraries/bookmarks"),{"Content-Type":"application/json"},JSON.stringify(n),[200,201]);case 4:return i=r.sent,r.next=7,i.json();case 7:return r.abrupt("return",r.sent);case 8:case"end":return r.stop()}}),r)})))()}getBookmarks(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._getResponse(e._getUrl("/api/v1/libraries/bookmarks?useCache=false&ussCache=false"),{headers:{"Content-Type":Qe,"Cache-Control":"no-cache, no-store, max-age=0"}});case 2:return r=t.sent,t.next=5,r.bookmarks;case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)})))()}unbookmarkLibrary(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doDelete(t._getUrl(`/api/v1/libraries/bookmarks/${e}`),{"Content-Type":"application/json"},[204]);case 2:case"end":return r.stop()}}),r)})))()}updateMetadata(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPut(r._getUrl(`/api/v1/libraries/${e}/metadata`),{"Content-Type":"application/json"},JSON.stringify(t),[204,200]);case 2:case"end":return n.stop()}}),n)})))()}searchLibraries(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={query_string:e,asset_type:["library"],selector:"rendition_grid,collaboration"},r.next=3,t._doPost(t._getUrl("/api/v1/search"),{"Content-Type":"application/json"},JSON.stringify(n),[200]);case 3:return i=r.sent,r.next=6,i.json();case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r)})))()}searchLibrariesWithLink(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=$c(t.href),o=le(i,2),a=o[0],s=o[1],c={query_string:e,asset_type:["library"],selector:"rendition_grid,collaboration",start:s.start,limit:s.limit},n.next=4,r._doPost(r._getUrl(a),{"Content-Type":"application/json"},JSON.stringify(c),[200]);case 4:return l=n.sent,n.next=7,l.json();case 7:return n.abrupt("return",n.sent);case 8:case"end":return n.stop()}}),n)})))()}getRenditionTileImage(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=new URL(e),r.next=3,t._doGet(n.toString());case 3:return i=r.sent,r.next=6,i.blob();case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r)})))()}}const Xc={orderDirection:"descending",orderBy:"modify_date",start:0,limit:0,mediaTypes:[],excludeMediaTypes:[]};class Jc extends Pt{getPublishedAssets(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return Pc((e=Object.assign(Object.assign({},Xc),e)).mediaTypes),Pc(e.excludeMediaTypes),n={sort_orderby:e.orderBy,hints:{acp_platform_v2:!0},fetch_fields:{includes:["app_metadata"]},op_or:[{[Ji.CREATIVE_CLOUD_TOPLEVEL_COLLECTION_NAME]:"pubs"},{[Ji.OP_AND]:[{[Ji.CREATIVE_CLOUD_TOPLEVEL_COLLECTION_NAME]:"cloud-content"},{[Ji.FIELD_EXISTS]:["app_metadata$$review:sourceAsset$$dc:format"]}]}],op_none_of:[{[Ji.TYPE]:e.excludeMediaTypes||[]}],[Ji.STORAGE_ASSIGNEE_ID]:t._core._environment.getValue("USER_ID"),asset_id_opacity:!0,[Ji.TYPE]:e.mediaTypes||[],sort_order:(i=e,"ascending"===i.orderDirection?"asc":"desc"),limit:e.limit,start_index:e.start},r.next=6,t._core.hostAssetContext._ussInterface.getQueryResponse(n);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}var i}),r)})))()}}class Qc{constructor(e,t,r){this._publishedInterface=r,this._ussLoaderHelper=new go(e,t,this)}supportsFilter(e){return void 0!==e}loadPage(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._ussLoaderHelper.loadPage(e));case 1:case"end":return r.stop()}}),r)})))()}_getUSSResults({start:e,limit:t,mediaTypes:r,excludeMediaTypes:n,order:i}){var o=this;return me(he().mark((function a(){return he().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",o._publishedInterface.getPublishedAssets({orderBy:so[i.field],orderDirection:i.direction,start:e,limit:t,mediaTypes:r,excludeMediaTypes:n}));case 1:case"end":return a.stop()}}),a)})))()}_getItemData(e){return Object.assign(Object.assign({},e),{published:!0})}}class el extends zi{constructor(){super({_isPublished:!0})}}class tl extends zi{constructor(){super({_isDiscarded:!0,_isSharedWithYou:!0})}matches(e){return!this.isSyncedAsset(e)&&!this.isMobileCreation(e)&&!(!e.hasPermission(Br.Restore)&&!e.hasPermission(Br.Delete))&&super.matches(e)}isSyncedAsset(e){return e.repoPath.startsWith("/files/")}isMobileCreation(e){return e.repoPath.startsWith("/assets/")&&!e.repoPath.startsWith("/assets/adobe-libraries/")}}const rl={limit:50,start:0,orderDirection:"descending",orderBy:"modified",mediaTypes:[],excludeMediaTypes:[]},nl=["creative_cloud_colortheme","creative_cloud_gradient","_embedded"],il=["application/vnd.adobe.draw.project+dcx","application/vnd.adobe.sketch.project+dcx","application/vnd.adobe.photoshop-mix.composition+dcx","application/vnd.adobe.photoshop-fix.composition+dcx","application/vnd.adobe.line.sketchbook+dcx","application/vnd.adobe.layup.project+dcx","application/vnd.adobe.comp.project+dcx","application/vnd.adobe.clip.project+dcx","application/vnd.adobe.clsproject+dcx","image/vnd.adobe.cls+dcx"];class ol extends Pt{getDiscardedAssets(e){var t=this;return me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return Pc((e=Object.assign(Object.assign({},rl),e)).mediaTypes),Pc(e.excludeMediaTypes),n="ascending"===e.orderDirection?"asc":"desc",i=ro[e.orderBy||"modified"],o=t._core._environment.getValue("USER_ID"),a={hints:{acp_platform_v2:!0},creative_cloud_archive:!0,creative_cloud_discarded_directly:!0,[Ji.TYPE]:e.mediaTypes||[],fetch_fields:{includes:[...Zr(),...nl]},op_or:[{[Ji.STORAGE_ASSIGNEE_ID]:o},{op_and:[{[Ji.STORAGE_ASSIGNEE_TYPE]:"org"},{[Ji.TYPE]:["application/vnd.adobe.library+dcx"]},{[Ji.REPO_ACL_MODIFIER]:"grant",[Ji.REPO_ACL_PRIVILEGES]:["write"],[Ji.REPO_ACL_RELATIONS]:[tt.PRIMARY]}]},{op_and:[{op_or:[{[Ji.STORAGE_ASSIGNEE_ID]:o},{[Ji.STORAGE_ASSIGNEE_TYPE]:"org"}]},{op_field_exists:["app_metadata$$cc:inheritable$$cc:team$$repo:assetId","app_metadata$$cc:inherited$$cc:team$$repo:assetId"]}]}],op_none_of:[{[Ji.TYPE]:e.excludeMediaTypes||[]},{[Ji.VISIBLITY]:["hiddenSelf","hiddenRecursive"]},{[Ji.FIELD_EXISTS]:["app_metadata$$review:sourceAsset$$dc:format"]},{[Ji.CREATIVE_CLOUD_TOPLEVEL_COLLECTION_NAME]:["archive","files"]},{[Ji.TYPE]:il}],sort_orderby:i,sort_order:n,limit:e.limit,start_index:e.start},r.abrupt("return",t._core.hostAssetContext._ussInterface.getQueryResponse(a));case 8:case"end":return r.stop()}}),r)})))()}}class al{constructor(e,t,r){this._core=t,this._discardedInterface=r,this._ussLoaderHelper=new go(e,t,this)}supportsFilter(e){return void 0!==e}loadPage(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._libraryContext){r.next=4;break}return r.next=3,t._core.getLibraryContext();case 3:t._libraryContext=r.sent;case 4:return r.next=6,t._core.hostAssetContext._getListOfRepositoryIDs();case 6:return null==(n=r.sent)||n.forEach((e=>t._core.projectContext._canRestoreProject(e))),r.abrupt("return",t._ussLoaderHelper.loadPage(e));case 9:case"end":return r.stop()}}),r)})))()}_getUSSResults({start:e,limit:t,mediaTypes:r,excludeMediaTypes:n,order:i}){return this._discardedInterface.getDiscardedAssets({start:e,limit:t,orderBy:i.field,orderDirection:i.direction,mediaTypes:r,excludeMediaTypes:n})}_getItemData(e){var t;const r=e.creative_cloud_colortheme||e.creative_cloud_gradient||null===(t=e._links)||void 0===t?void 0:t[tt.RENDITION],n="element"===e.asset_sub_type;return n&&(e._links=Object.assign(Object.assign({},e._links||{}),{[tt.RENDITION]:r})),Object.assign(Object.assign({},e),{isArchivedLibraryElement:n})}}class sl extends zi{constructor(e){super({_isSharedWithYou:!0}),this._query="",this._projectsOnly=!1,this._query=(null==e?void 0:e._query)||"",this._projectsOnly=(null==e?void 0:e._projectsOnly)||!1}get hash(){return[super.hash,this.query?`query=${this._query}`:void 0,this.projectsOnly?`projects_only=${this._projectsOnly}`:void 0].filter((e=>e)).join(":")}get query(){return this._query}get projectsOnly(){return this._projectsOnly}matches(e){return!(this._matchingIDsFromSearch&&!this._matchingIDsFromSearch.has(e.id))&&!(this._query&&!this._matchingIDsFromSearch)&&super.matches(e)}getRelationToFilter(e){var t,r;return(null===(t=this.query)||void 0===t?void 0:t.toLowerCase())!==(null===(r=e.query)||void 0===r?void 0:r.toLowerCase())?"disjoint":super.getRelationToFilter(e)}}class cl extends Pt{constructor(){super(...arguments),this.queryPath="/uss/v3/query"}getQueryResponse(e){var t=this;return me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=`https://${t._core._environment.endpoints.USSv3_HOST}${t.queryPath}`,i=Object.assign({id:"query1",scope:{entities:["AcpAsset"]},fetchFields:[ao.SharedBy,ao.LastAccessDate,ao.CCInheritable,ao.CCInherited,ao.HzDocumentMetadata]},e),o={experienceId:"Default-Global-Search-Experience",queries:[i]},r.next=5,t._doPost(n,{"X-App-Token":t._core._environment.getValue("ENVIRONMENT")===an.Stage?"4c7f3f73-27a6-48f9-8447-d2c8404661fa":"4c988f33-6435-4469-b37b-7dbe33687bd8","content-type":"application/vnd.adobe.search-request+json"},JSON.stringify(o),[200]);case 5:return a=r.sent,r.abrupt("return",a.json());case 7:case"end":return r.stop()}}),r)})))()}}class ll{constructor(e,t,r){this._assetPool=e,this._core=t,this._loader=r,this._getItemData=this._getItemDataWithUserId(this._core._environment.getUserId())}loadPage(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l,u,d,p,h,f,m,g,v,y,b,_,E,w,x,L,O;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=e.order,s=e.limit,c=void 0===s?50:s,l=e.filter,u=e.implicitFilter,d=r._core._environment.getValue("USS_LIST_UPDATE_LATENCY"),p=Date.now()-d,t=t||0,h=l.mediaTypes,f=l.excludeMediaTypes,m=l.excludeInheritanceTypes,n.next=7,r._loader._getUSSResults({order:a,limit:c,filter:l,implicitFilter:u,start:t,mediaTypes:Array.from(null!=h?h:[]),excludeMediaTypes:Array.from(null!=f?f:[]),excludeInheritanceTypes:Array.from(null!=m?m:[])});case 7:return g=n.sent,v=g.queryResults[0],y=v.items||[],b=r._assetPool.createLoaderUpdateSession(p),_=r._loader._extractItems?r._loader._extractItems(b,y):r._extractItems(b,y),w=v.metadata.totalHits||0,x=y.length,(L=0===x?t+c:t+x)<w&&(E=e=>r.loadPage(e,L)),O={items:_,total:w,loadNextPage:E,mostRecentValidMutation:p},null===(o=(i=r._loader)._postProcessPage)||void 0===o||o.call(i,e,O),b.commit(),n.abrupt("return",O);case 20:case"end":return n.stop()}}),n)})))()}_getItemDataWithUserId(e){return t=>{var r,n;return Object.assign(Object.assign(Object.assign(Object.assign({},t.rm),{sharedViaInvite:(null===(r=t.cm)||void 0===r?void 0:r.sharedBy.length)>0&&t.cm.sharedBy[0]!==e,isShared:(null===(n=t.cm)||void 0===n?void 0:n.sharedBy.length)>0}),t.am&&{_embedded:{[tt.APP_METADATA]:t.am}}),{shareFlagsAreDirty:!1})}}_extractItems(e,t){var r,n;return this._core._adobeAssetFactory.assetsFromUSSV3AppMetadata(e,t,null!==(r=this._loader._getItemData)&&void 0!==r?r:this._getItemData,null===(n=this._loader)||void 0===n?void 0:n._libraryContext)}}class ul{constructor(e,t,r,n){this._core=t,this._globalSearchInterface=r,this._implicitFilter=n,this._ussLoaderHelper=new ll(e,this._core,this)}supportsFilter(e){return void 0!==e}loadPage(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._libraryContext){r.next=4;break}return r.next=3,t._core.getLibraryContext();case 3:t._libraryContext=r.sent;case 4:return r.abrupt("return",t._ussLoaderHelper.loadPage(e));case 5:case"end":return r.stop()}}),r)})))()}_getUSSResults({start:e,limit:t=50,order:r,mediaTypes:n,excludeMediaTypes:i,excludeInheritanceTypes:o}){const a=this._implicitFilter,s=a._query,c=a._projectsOnly;return this._globalSearchInterface.globalSearch({start:e,limit:t,query:s,order:r,mediaTypes:[...n||[]],excludeMediaTypes:[...i||[]],excludeInheritanceTypes:[...o||[]],projectsOnly:c})}_postProcessPage({filter:e},{items:t}){this._implicitFilter._matchingIDsFromSearch=new Set([...this._implicitFilter._matchingIDsFromSearch||[],...t.map((e=>e.id))])}}class dl extends Pt{constructor(e,t){super(e),this._ussInterface=t}globalSearch({query:e,start:t=0,limit:r=50,order:n,mediaTypes:i,excludeInheritanceTypes:o,projectsOnly:a}){var s=this;return me(he().mark((function c(){var l,u,d,p,h,f,m,g;return he().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return p=(d=n||{}).field,h=void 0===p?"modified":p,f=d.direction,m=void 0===f?"descending":f,g=[],a?g.push({[oo.DIRECTORY_TYPE]:["team"]}):(null!==(l=null==i?void 0:i.length)&&void 0!==l&&l&&g.push({[oo.MEDIA_TYPE]:i}),null!==(u=null==o?void 0:o.length)&&void 0!==u&&u&&g.push({[oo.INHERITANCE_TYPE]:{funcParams:{fields:o}}})),c.abrupt("return",s._ussInterface.getQueryResponse({start:t,limit:r,textQuery:e,sorts:[{sortOrderBy:co[h],sortOrder:"ascending"===m?io.Ascending:io.Descending}],filters:g}));case 4:case"end":return c.stop()}}),c)})))()}}class pl{constructor(e,t,r,n){this._implicitFilter=t,this._core=r,this._adobeAssetGlobalSearchInterface=n,this._ussLoaderHelper=new go(e,r,this)}supportsFilter(e){return void 0!==e}loadPage(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._libraryContext){r.next=4;break}return r.next=3,t._core.getLibraryContext();case 3:t._libraryContext=r.sent;case 4:return r.abrupt("return",t._ussLoaderHelper.loadPage(e));case 5:case"end":return r.stop()}}),r)})))()}_getUSSResults({start:e,limit:t,order:r,mediaTypes:n,excludeMediaTypes:i}){var o;const a=null===(o=this._implicitFilter)||void 0===o?void 0:o._query;return this._adobeAssetGlobalSearchInterface.getFilteredAssets({orderBy:so[r.field],orderDirection:r.direction,start:e,limit:t,mediaTypes:n,excludeMediaTypes:i,query:a,embedPermissions:!0})}_postProcessPage(e,t){const r=t.items;this._implicitFilter._matchingIDsFromSearch=new Set([...this._implicitFilter._matchingIDsFromSearch||[],...r.map((e=>e.id))])}}class hl extends zi{constructor(){super({_isSharedWithYou:!0})}get hash(){return super.hash}matches(e){return!!e._isSWYAsset_NoLazyLoad&&!e.isProject&&super.matches(e)}getRelationToFilter(e){const t=e;return super.getRelationToFilter(t)}}const fl=[tt.AC_EFFECTIVE,tt.APP_METADATA,tt.PROJECTS_CREATOR,tt.REPOSITORY],ml={orderDirection:"ascending",orderBy:"repo:name",start:0,limit:0,embed:fl,isDiscarded:!1},gl={first:10,embed:fl};function vl(e,t){const r=Object.assign(Object.assign({},ml),t),n=function(e){const t={};return e.start&&(t.start=e.start),e.limit&&(t.limit=e.limit),t}(r);n.orderBy=function(e){return("ascending"===e.orderDirection?"+":"-")+e.orderBy}(r);const i=r.embed,o=r.view,a=r.repositoryId,s=r.ownerId,c=r.nameContains,l=r.isDiscarded;return(null==i?void 0:i.length)&&(n.embed=i.join(",")),o&&(n.view=o),a&&(n.repositoryId=a),c&&(n.nameContains=c),s&&(n.ownerId=s),l&&(n.state="discarded"),ot(e,tt.PROJECTS_COLLECTION,n)}function yl(e,t){var r;const n=Object.assign(Object.assign({},gl),t),i={};return n.after&&(i.after=n.after),n.first&&(i.first=n.first),(null===(r=n.embed)||void 0===r?void 0:r.length)&&(i.embed=n.embed.join(",")),ot(e,tt.PROJECTS_RECENT,i)}class bl extends Pt{constructor(){super(...arguments),this._gradientLanguageFetched=""}_discoverLinks(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._getResponse(e);case 2:return n=r.sent,r.abrupt("return",n._links);case 4:case"end":return r.stop()}}),r)})))()}_getEndpointHref(e){return`https://${this._core._environment.endpoints.PROJECTS_HOST}${e}`}_discoverProjectLinks(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._discoverLinks(e._getEndpointHref("/api/v3/index")));case 1:case"end":return t.stop()}}),t)})))()}getProjects(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._discoverProjectLinks();case 2:return n=r.sent,i=vl(n,e),r.next=6,t._getResponse(i);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r)})))()}getRecentProjects(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._discoverProjectLinks();case 2:return n=r.sent,i=yl(n,e),r.next=6,t._getResponse(i);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r)})))()}_getProjectLink(e,t=fl){var r=this;return me(he().mark((function n(){var i,o;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._discoverProjectLinks();case 2:return i=n.sent,o=ot(i,tt.PROJECTS_PRIMARY,Object.assign({assetId:e},t.length?{embed:t.join(",")}:void 0)),n.abrupt("return",o);case 5:case"end":return n.stop()}}),n)})))()}getProject(e,t=fl){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._getProjectLink(e,t);case 2:return i=n.sent,n.next=5,r._getResponse(i);case 5:return n.abrupt("return",n.sent);case 6:case"end":return n.stop()}}),n)})))()}getProjectsWithLink(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._getResponse(e.href);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_getCreateLink(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._discoverProjectLinks();case 2:return n=r.sent,r.abrupt("return",ot(n,tt.PROJECTS_CREATE,e.length?{embed:e.join(",")}:void 0));case 4:case"end":return r.stop()}}),r)})))()}createProject(e,t=fl){var r=this;return me(he().mark((function n(){var i,o,a,s;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._getCreateLink(t);case 2:return i=n.sent,n.next=5,r._doPost(i,{"Content-Type":Qe},JSON.stringify(e),[201,403]);case 5:return o=n.sent,a={},n.prev=7,n.next=10,o.json();case 10:a=n.sent,n.next=15;break;case 13:n.prev=13,n.t0=n.catch(7);case 15:if(403!==a.status){n.next=23;break}if(a.type!==_e.CHILDREN_LIMIT_EXCEEDED){n.next=20;break}throw we.create(ge.PROJECT_LIMIT_EXCEEDED,"Maximum number of Projects exceeded",{response:o,reqId:o.headers.get("x-request-id")||""});case 20:throw s=we.createWithResponse(o,o.url),r._core._environment.error(`ProjectsInterface error ${s}`),s;case 23:return n.abrupt("return",a);case 24:case"end":return n.stop()}}),n,null,[[7,13]])})))()}resolveProjectByName(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._getResolveByPathLink(e);case 2:return n=r.sent,r.abrupt("return",t._getResponse(n));case 4:case"end":return r.stop()}}),r)})))()}renameProject(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=ot(t,tt.PROJECTS_RENAME),n.next=3,r._doPost(i,{"Content-Type":Qe},JSON.stringify({"repo:name":e}),[204]);case 3:case"end":return n.stop()}}),n)})))()}_getResolveByPathLink(e,t){var r=this;return me(he().mark((function n(){var i,o;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._discoverProjectLinks();case 2:return i=n.sent,o=ot(i,tt.RESOLVE_PATH,Object.assign({path:e},t?{repositoryId:t}:{})),n.abrupt("return",o);case 5:case"end":return n.stop()}}),n)})))()}validateProjectName(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._getResolveByPathLink(e,t);case 2:return i=n.sent,n.next=5,r._doHead(i);case 5:case"end":return n.stop()}}),n)})))()}discardProject(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(null==t?void 0:t[tt.DISCARD]){n.next=2;break}throw we.create(ge.BAD_REQUEST,`Discard link is missing for this project${e}`);case 2:return i=ot(t,tt.DISCARD),n.next=5,r._doPost(i,void 0,void 0,[204]);case 5:case"end":return n.stop()}}),n)})))()}restoreProject(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(null==t?void 0:t[tt.RESTORE]){n.next=2;break}throw we.create(ge.BAD_REQUEST,`Restore link is missing for this project${e}`);case 2:return i=ot(t,tt.RESTORE),n.next=5,r._doPost(i,void 0,void 0,[204]);case 5:case"end":return n.stop()}}),n)})))()}getGradients(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=`${e}-gradient-data`,r.next=3,t._core._environment.cache.getItem(n);case 3:if((i=r.sent)!==wr){r.next=6;break}return r.abrupt("return",t._refreshGradients(e));case 6:if(t._gradientLanguageFetched===e){r.next=8;break}return r.abrupt("return",t._refreshGradients(e));case 8:return r.abrupt("return",i);case 9:case"end":return r.stop()}}),r)})))()}_getGradientsLink(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._discoverProjectLinks();case 2:return r=t.sent,n=ot(r,tt.PROJECTS_GRADIENTS_COLLECTION),t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)})))()}_refreshGradients(e){var t=this;return me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._getGradientsLink();case 2:return n=r.sent,r.next=5,t._doGet(n,{headers:{"Content-Type":Qe,"Accept-Language":e}});case 5:return i=r.sent,r.next=8,i.json();case 8:return o=r.sent,a=`${e}-gradient-data`,r.next=12,t._core._environment.cache.setItem(a,o);case 12:return t._gradientLanguageFetched=e,r.abrupt("return",o);case 14:case"end":return r.stop()}}),r)})))()}patchProject(e,t){var r=this;return me(he().mark((function n(){var i,o;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=[],t.gradientID&&i.push({op:"replace",path:zr.GRADIENT_ID,value:t.gradientID}),o=ot(e,tt.APP_METADATA),n.next=5,r._doPatch(o,{"Content-Type":et,"If-Match":"*"},JSON.stringify(i),[204]);case 5:case"end":return n.stop()}}),n)})))()}_getCapabilityLink(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._discoverProjectLinks();case 2:return i=n.sent,n.abrupt("return",ot(i,tt.PROJECTS_CAPABILITY,Object.assign({privilege:e},t?{repositoryId:t}:{})));case 4:case"end":return n.stop()}}),n)})))()}getCapability(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._getCapabilityLink(e,t);case 2:return i=n.sent,n.prev=3,n.next=6,r._doGet(i);case 6:n.next=29;break;case 8:if(n.prev=8,n.t0=n.catch(3),Le(n.t0)){n.next=12;break}throw n.t0;case 12:if(o=n.t0,a=o._additionalInfo.response){n.next=16;break}throw n.t0;case 16:if([404,403].includes(a.status)){n.next=19;break}throw n.t0;case 19:return n.next=21,a.json();case 21:s=n.sent,n.t1=s.type,n.next=n.t1===_e.ADMIN_ONLY?25:n.t1===_e.NO_HOME_REPOSITORY?26:n.t1===_e.INVALID_HOME_REPOSITORY?27:28;break;case 25:throw we.create(ge.ACCESS_DENIED,"Admin disabled creation of projects for user",void 0,ve.PROJECTS_ADMIN_ONLY);case 26:throw we.create(ge.NOT_FOUND,"No home repository for the user",void 0,ve.PROJECTS_NO_HOME_REPOSITORY);case 27:throw we.create(ge.NOT_FOUND,"Invalid home Repository for the user",void 0,ve.PROJECTS_INVALID_REPOSITORY);case 28:throw n.t0;case 29:case"end":return n.stop()}}),n,null,[[3,8]])})))()}_issueContextAPIRequest(e,t,r){var n=this;return me(he().mark((function i(){var o,a;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=JSON.stringify({"repo:assetId":e,"repo:repositoryId":t}),i.next=3,n._doPost(r,{"Content-Type":"application/json"},o,[200]);case 3:return a=i.sent,i.abrupt("return",a.json());case 5:case"end":return i.stop()}}),i)})))()}_getOrganizationsCollectionLink(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._discoverProjectLinks();case 2:return r=t.sent,t.abrupt("return",ot(r,tt.ORGANIZATIONS_COLLECTION));case 4:case"end":return t.stop()}}),t)})))()}getOrganizations(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._getOrganizationsCollectionLink();case 2:return r=t.sent,t.next=5,e._getResponse(r);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)})))()}}Ie([Ge((function(e){return rt(e,Hr)})),Ae(0,Ze)],bl.prototype,"_discoverLinks",null),Ie([At],bl.prototype,"getGradients",null),Ie([At],bl.prototype,"_refreshGradients",null),Ie([At],bl.prototype,"getOrganizations",null);var _l="Invariant Violation",El=Object.setPrototypeOf,wl=void 0===El?function(e,t){return e.__proto__=t,e}:El,xl=function(e){function t(r){void 0===r&&(r=_l);var n=e.call(this,"number"==typeof r?_l+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=_l,wl(n,t.prototype),n}return Se(t,e),t}(Error);function Ll(e,t){if(!e)throw new xl(t)}var Ol=["debug","log","warn","error","silent"],Sl=Ol.indexOf("log");function Tl(e){return function(){if(Ol.indexOf(e)>=Sl)return(console[e]||console.log).apply(console,arguments)}}!function(e){e.debug=Tl("debug"),e.log=Tl("log"),e.warn=Tl("warn"),e.error=Tl("error")}(Ll||(Ll={}));var Pl="3.11.8",Il="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function Al(e){try{return e()}catch(e){}}var Cl=Al((function(){return globalThis}))||Al((function(){return window}))||Al((function(){return self}))||Al((function(){return Il}))||Al((function(){return Al.constructor("return this")()})),kl=new Map;function Dl(e){var t=kl.get(e)||1;return kl.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function Nl(e,t){void 0===t&&(t=0);var r=Dl("stringifyForDisplay");return JSON.stringify(e,(function(e,t){return void 0===t?r:t}),t).split(JSON.stringify(r)).join("<undefined>")}function Rl(e){return function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if("number"==typeof t){var i=t;(t=Bl(i))||(t=Gl(i,r),r=[])}e.apply(void 0,[t].concat(r))}}var Ml=Object.assign((function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];e||Ll(e,Bl(t,r)||Gl(t,r))}),{debug:Rl(Ll.debug),log:Rl(Ll.log),warn:Rl(Ll.warn),error:Rl(Ll.error)});function jl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new xl(Bl(e,t)||Gl(e,t))}var Fl=Symbol.for("ApolloErrorMessageHandler_3.11.8");function Zl(e){if("string"==typeof e)return e;try{return Nl(e,2).slice(0,1e3)}catch(e){return"<non-serializable>"}}function Bl(e,t){if(void 0===t&&(t=[]),e)return Cl[Fl]&&Cl[Fl](e,t.map(Zl))}function Gl(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:Pl,message:e,args:t.map(Zl)})))}function Ul(e,t){if(!Boolean(e))throw new Error(t)}function Hl(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const zl=/\r\n|[\n\r]/g;function Vl(e,t){let r=0,n=1;var i,o=ue(e.body.matchAll(zl));try{for(o.s();!(i=o.n()).done;){const e=i.value;if("number"==typeof e.index||Hl(!1),e.index>=t)break;r=e.index+e[0].length,n+=1}}catch(e){o.e(e)}finally{o.f()}return{line:n,column:t+1-r}}function Yl(e,t){const r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?r:0,c=t.column+s,l=`${e.name}:${a}:${c}\n`,u=n.split(/\r\n|[\n\r]/g),d=u[i];if(d.length>120){const e=Math.floor(c/80),t=c%80,r=[];for(let e=0;e<d.length;e+=80)r.push(d.slice(e,e+80));return l+Wl([[`${a} |`,r[0]],...r.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",r[e+1]]])}return l+Wl([[a-1+" |",u[i-1]],[`${a} |`,d],["|","^".padStart(c)],[`${a+1} |`,u[i+1]]])}function Wl(e){const t=e.filter((([e,t])=>void 0!==t)),r=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(r)+(t?" "+t:""))).join("\n")}class Kl extends Error{constructor(e,...t){var r,n,i;const o=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t),a=o.nodes,s=o.source,c=o.positions,l=o.path,u=o.originalError,d=o.extensions;super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=u?u:void 0,this.nodes=$l(Array.isArray(a)?a:a?[a]:void 0);const p=$l(null===(r=this.nodes)||void 0===r?void 0:r.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=s?s:null==p||null===(n=p[0])||void 0===n?void 0:n.source,this.positions=null!=c?c:null==p?void 0:p.map((e=>e.start)),this.locations=c&&s?c.map((e=>Vl(s,e))):null==p?void 0:p.map((e=>Vl(e.source,e.start)));const h="object"==typeof(f=null==u?void 0:u.extensions)&&null!==f?null==u?void 0:u.extensions:void 0;var f;this.extensions=null!==(i=null!=d?d:h)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Kl):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes){var t,r=ue(this.nodes);try{for(r.s();!(t=r.n()).done;){const r=t.value;r.loc&&(e+="\n\n"+Yl((o=r.loc).source,Vl(o.source,o.start)))}}catch(e){r.e(e)}finally{r.f()}}else if(this.source&&this.locations){var n,i=ue(this.locations);try{for(i.s();!(n=i.n()).done;){const t=n.value;e+="\n\n"+Yl(this.source,t)}}catch(e){i.e(e)}finally{i.f()}}var o;return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function $l(e){return void 0===e||0===e.length?void 0:e}function ql(e,t,r){return new Kl(`Syntax Error: ${r}`,{source:e,positions:[t]})}class Xl{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class Jl{constructor(e,t,r,n,i,o){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const Ql={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},eu=new Set(Object.keys(Ql));function tu(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&eu.has(t)}var ru,nu,iu,ou;function au(e){return 9===e||32===e}function su(e){return e>=48&&e<=57}function cu(e){return e>=97&&e<=122||e>=65&&e<=90}function lu(e){return cu(e)||95===e}function uu(e){return cu(e)||su(e)||95===e}function du(e){var t;let r=Number.MAX_SAFE_INTEGER,n=null,i=-1;for(let t=0;t<e.length;++t){var o;const a=e[t],s=pu(a);s!==a.length&&(n=null!==(o=n)&&void 0!==o?o:t,i=t,0!==t&&s<r&&(r=s))}return e.map(((e,t)=>0===t?e:e.slice(r))).slice(null!==(t=n)&&void 0!==t?t:0,i+1)}function pu(e){let t=0;for(;t<e.length&&au(e.charCodeAt(t));)++t;return t}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(ru||(ru={})),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(nu||(nu={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(iu||(iu={})),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(ou||(ou={}));class hu{constructor(e){const t=new Jl(ou.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==ou.EOF)do{if(e.next)e=e.next;else{const t=_u(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===ou.COMMENT);return e}}function fu(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function mu(e,t){return gu(e.charCodeAt(t))&&vu(e.charCodeAt(t+1))}function gu(e){return e>=55296&&e<=56319}function vu(e){return e>=56320&&e<=57343}function yu(e,t){const r=e.source.body.codePointAt(t);if(void 0===r)return ou.EOF;if(r>=32&&r<=126){const e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function bu(e,t,r,n,i){const o=e.line,a=1+r-e.lineStart;return new Jl(t,r,n,o,a,i)}function _u(e,t){const r=e.source.body,n=r.length;let i=t;for(;i<n;){const t=r.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===r.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return Eu(e,i);case 33:return bu(e,ou.BANG,i,i+1);case 36:return bu(e,ou.DOLLAR,i,i+1);case 38:return bu(e,ou.AMP,i,i+1);case 40:return bu(e,ou.PAREN_L,i,i+1);case 41:return bu(e,ou.PAREN_R,i,i+1);case 46:if(46===r.charCodeAt(i+1)&&46===r.charCodeAt(i+2))return bu(e,ou.SPREAD,i,i+3);break;case 58:return bu(e,ou.COLON,i,i+1);case 61:return bu(e,ou.EQUALS,i,i+1);case 64:return bu(e,ou.AT,i,i+1);case 91:return bu(e,ou.BRACKET_L,i,i+1);case 93:return bu(e,ou.BRACKET_R,i,i+1);case 123:return bu(e,ou.BRACE_L,i,i+1);case 124:return bu(e,ou.PIPE,i,i+1);case 125:return bu(e,ou.BRACE_R,i,i+1);case 34:return 34===r.charCodeAt(i+1)&&34===r.charCodeAt(i+2)?Au(e,i):Lu(e,i)}if(su(t)||45===t)return wu(e,i,t);if(lu(t))return Cu(e,i);throw ql(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":fu(t)||mu(r,i)?`Unexpected character: ${yu(e,i)}.`:`Invalid character: ${yu(e,i)}.`)}return bu(e,ou.EOF,n,n)}function Eu(e,t){const r=e.source.body,n=r.length;let i=t+1;for(;i<n;){const e=r.charCodeAt(i);if(10===e||13===e)break;if(fu(e))++i;else{if(!mu(r,i))break;i+=2}}return bu(e,ou.COMMENT,t,i,r.slice(t+1,i))}function wu(e,t,r){const n=e.source.body;let i=t,o=r,a=!1;if(45===o&&(o=n.charCodeAt(++i)),48===o){if(o=n.charCodeAt(++i),su(o))throw ql(e.source,i,`Invalid number, unexpected digit after 0: ${yu(e,i)}.`)}else i=xu(e,i,o),o=n.charCodeAt(i);if(46===o&&(a=!0,o=n.charCodeAt(++i),i=xu(e,i,o),o=n.charCodeAt(i)),69!==o&&101!==o||(a=!0,o=n.charCodeAt(++i),43!==o&&45!==o||(o=n.charCodeAt(++i)),i=xu(e,i,o),o=n.charCodeAt(i)),46===o||lu(o))throw ql(e.source,i,`Invalid number, expected digit but got: ${yu(e,i)}.`);return bu(e,a?ou.FLOAT:ou.INT,t,i,n.slice(t,i))}function xu(e,t,r){if(!su(r))throw ql(e.source,t,`Invalid number, expected digit but got: ${yu(e,t)}.`);const n=e.source.body;let i=t+1;for(;su(n.charCodeAt(i));)++i;return i}function Lu(e,t){const r=e.source.body,n=r.length;let i=t+1,o=i,a="";for(;i<n;){const n=r.charCodeAt(i);if(34===n)return a+=r.slice(o,i),bu(e,ou.STRING,t,i+1,a);if(92!==n){if(10===n||13===n)break;if(fu(n))++i;else{if(!mu(r,i))throw ql(e.source,i,`Invalid character within String: ${yu(e,i)}.`);i+=2}}else{a+=r.slice(o,i);const t=117===r.charCodeAt(i+1)?123===r.charCodeAt(i+2)?Ou(e,i):Su(e,i):Iu(e,i);a+=t.value,i+=t.size,o=i}}throw ql(e.source,i,"Unterminated string.")}function Ou(e,t){const r=e.source.body;let n=0,i=3;for(;i<12;){const e=r.charCodeAt(t+i++);if(125===e){if(i<5||!fu(n))break;return{value:String.fromCodePoint(n),size:i}}if(n=n<<4|Pu(e),n<0)break}throw ql(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+i)}".`)}function Su(e,t){const r=e.source.body,n=Tu(r,t+2);if(fu(n))return{value:String.fromCodePoint(n),size:6};if(gu(n)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){const e=Tu(r,t+8);if(vu(e))return{value:String.fromCodePoint(n,e),size:12}}throw ql(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}function Tu(e,t){return Pu(e.charCodeAt(t))<<12|Pu(e.charCodeAt(t+1))<<8|Pu(e.charCodeAt(t+2))<<4|Pu(e.charCodeAt(t+3))}function Pu(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Iu(e,t){const r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw ql(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function Au(e,t){const r=e.source.body,n=r.length;let i=e.lineStart,o=t+3,a=o,s="";const c=[];for(;o<n;){const n=r.charCodeAt(o);if(34===n&&34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)){s+=r.slice(a,o),c.push(s);const n=bu(e,ou.BLOCK_STRING,t,o+3,du(c).join("\n"));return e.line+=c.length-1,e.lineStart=i,n}if(92!==n||34!==r.charCodeAt(o+1)||34!==r.charCodeAt(o+2)||34!==r.charCodeAt(o+3))if(10!==n&&13!==n)if(fu(n))++o;else{if(!mu(r,o))throw ql(e.source,o,`Invalid character within String: ${yu(e,o)}.`);o+=2}else s+=r.slice(a,o),c.push(s),13===n&&10===r.charCodeAt(o+1)?o+=2:++o,s="",a=o,i=o;else s+=r.slice(a,o),a=o+1,o+=4}throw ql(e.source,o,"Unterminated string.")}function Cu(e,t){const r=e.source.body,n=r.length;let i=t+1;for(;i<n&&uu(r.charCodeAt(i));)++i;return bu(e,ou.NAME,t,i,r.slice(t,i))}function ku(e){return Du(e,[])}function Du(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:Du(t,r)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const r=Math.min(10,e.length),n=e.length-r,i=[];for(let n=0;n<r;++n)i.push(Du(e[n],t));return 1===n?i.push("... 1 more item"):n>1&&i.push(`... ${n} more items`),"["+i.join(", ")+"]"}(e,r);return function(e,t){const r=Object.entries(e);if(0===r.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const n=r.map((([e,r])=>e+": "+Du(r,t)));return"{ "+n.join(", ")+" }"}(e,r)}(e,t);default:return String(e)}}const Nu=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var r;const n=t.prototype[Symbol.toStringTag];if(n===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(r=e.constructor)||void 0===r?void 0:r.name)){const t=ku(e);throw new Error(`Cannot use ${n} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class Ru{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||Ul(!1,`Body must be a string. Received: ${ku(e)}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||Ul(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Ul(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class Mu{constructor(e,t={}){const r=function(e){return Nu(e,Ru)}(e)?e:new Ru(e);this._lexer=new hu(r),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(ou.NAME);return this.node(e,{kind:iu.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:iu.DOCUMENT,definitions:this.many(ou.SOF,this.parseDefinition,ou.EOF)})}parseDefinition(){if(this.peek(ou.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===ou.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw ql(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(ou.BRACE_L))return this.node(e,{kind:iu.OPERATION_DEFINITION,operation:ru.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let r;return this.peek(ou.NAME)&&(r=this.parseName()),this.node(e,{kind:iu.OPERATION_DEFINITION,operation:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(ou.NAME);switch(e.value){case"query":return ru.QUERY;case"mutation":return ru.MUTATION;case"subscription":return ru.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(ou.PAREN_L,this.parseVariableDefinition,ou.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:iu.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(ou.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(ou.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(ou.DOLLAR),this.node(e,{kind:iu.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:iu.SELECTION_SET,selections:this.many(ou.BRACE_L,this.parseSelection,ou.BRACE_R)})}parseSelection(){return this.peek(ou.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let r,n;return this.expectOptionalToken(ou.COLON)?(r=t,n=this.parseName()):n=t,this.node(e,{kind:iu.FIELD,alias:r,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(ou.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(ou.PAREN_L,t,ou.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,r=this.parseName();return this.expectToken(ou.COLON),this.node(t,{kind:iu.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(ou.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(ou.NAME)?this.node(e,{kind:iu.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:iu.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:iu.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:iu.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case ou.BRACKET_L:return this.parseList(e);case ou.BRACE_L:return this.parseObject(e);case ou.INT:return this.advanceLexer(),this.node(t,{kind:iu.INT,value:t.value});case ou.FLOAT:return this.advanceLexer(),this.node(t,{kind:iu.FLOAT,value:t.value});case ou.STRING:case ou.BLOCK_STRING:return this.parseStringLiteral();case ou.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:iu.BOOLEAN,value:!0});case"false":return this.node(t,{kind:iu.BOOLEAN,value:!1});case"null":return this.node(t,{kind:iu.NULL});default:return this.node(t,{kind:iu.ENUM,value:t.value})}case ou.DOLLAR:if(e){if(this.expectToken(ou.DOLLAR),this._lexer.token.kind===ou.NAME){const e=this._lexer.token.value;throw ql(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:iu.STRING,value:e.value,block:e.kind===ou.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:iu.LIST,values:this.any(ou.BRACKET_L,(()=>this.parseValueLiteral(e)),ou.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:iu.OBJECT,fields:this.any(ou.BRACE_L,(()=>this.parseObjectField(e)),ou.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,r=this.parseName();return this.expectToken(ou.COLON),this.node(t,{kind:iu.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(ou.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(ou.AT),this.node(t,{kind:iu.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(ou.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(ou.BRACKET_R),t=this.node(e,{kind:iu.LIST_TYPE,type:r})}else t=this.parseNamedType();return this.expectOptionalToken(ou.BANG)?this.node(e,{kind:iu.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:iu.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(ou.STRING)||this.peek(ou.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.many(ou.BRACE_L,this.parseOperationTypeDefinition,ou.BRACE_R);return this.node(e,{kind:iu.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(ou.COLON);const r=this.parseNamedType();return this.node(e,{kind:iu.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:iu.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:iu.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(ou.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(ou.BRACE_L,this.parseFieldDefinition,ou.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(ou.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:iu.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(ou.PAREN_L,this.parseInputValueDef,ou.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName();this.expectToken(ou.COLON);const n=this.parseTypeReference();let i;this.expectOptionalToken(ou.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:iu.INPUT_VALUE_DEFINITION,description:t,name:r,type:n,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:iu.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:iu.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(ou.EQUALS)?this.delimitedMany(ou.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:iu.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany(ou.BRACE_L,this.parseEnumValueDefinition,ou.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:iu.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw ql(this._lexer.source,this._lexer.token.start,`${ju(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:iu.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(ou.BRACE_L,this.parseInputValueDef,ou.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===ou.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),r=this.optionalMany(ou.BRACE_L,this.parseOperationTypeDefinition,ou.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:iu.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:iu.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:iu.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:iu.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:iu.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:iu.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:iu.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(ou.AT);const r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:iu.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(ou.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(nu,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new Xl(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw ql(this._lexer.source,t.start,`Expected ${Fu(e)}, found ${ju(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==ou.NAME||t.value!==e)throw ql(this._lexer.source,t.start,`Expected "${e}", found ${ju(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===ou.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return ql(this._lexer.source,t.start,`Unexpected ${ju(t)}.`)}any(e,t,r){this.expectToken(e);const n=[];for(;!this.expectOptionalToken(r);)n.push(t.call(this));return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);const n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);const r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r}advanceLexer(){const e=this._options.maxTokens,t=this._lexer.advance();if(void 0!==e&&t.kind!==ou.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw ql(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function ju(e){const t=e.value;return Fu(e.kind)+(null!=t?` "${t}"`:"")}function Fu(e){return function(e){return e===ou.BANG||e===ou.DOLLAR||e===ou.AMP||e===ou.PAREN_L||e===ou.PAREN_R||e===ou.SPREAD||e===ou.COLON||e===ou.EQUALS||e===ou.AT||e===ou.BRACKET_L||e===ou.BRACKET_R||e===ou.BRACE_L||e===ou.PIPE||e===ou.BRACE_R}(e)?`"${e}"`:e}const Zu=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Bu(e){return Gu[e.charCodeAt(0)]}const Gu=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Uu=Object.freeze({});function Hu(e,t,r=Ql){const n=new Map;for(var i=0,o=Object.values(iu);i<o.length;i++){const e=o[i];n.set(e,zu(t,e))}let a,s,c,l=Array.isArray(e),u=[e],d=-1,p=[],h=e;const f=[],m=[];do{d++;const i=d===u.length,o=i&&0!==p.length;if(i){if(s=0===m.length?void 0:f[f.length-1],h=c,c=m.pop(),o)if(l){h=h.slice();let t=0;var g,v=ue(p);try{for(v.s();!(g=v.n()).done;){const e=le(g.value,2),r=e[0],n=e[1],i=r-t;null===n?(h.splice(i,1),t++):h[i]=n}}catch(e){v.e(e)}finally{v.f()}}else{h=Object.defineProperties({},Object.getOwnPropertyDescriptors(h));var y,b=ue(p);try{for(b.s();!(y=b.n()).done;){const e=le(y.value,2),t=e[0],r=e[1];h[t]=r}}catch(e){b.e(e)}finally{b.f()}}d=a.index,u=a.keys,p=a.edits,l=a.inArray,a=a.prev}else if(c){if(s=l?d:u[d],h=c[s],null==h)continue;f.push(s)}let x;if(!Array.isArray(h)){var _,E;tu(h)||Ul(!1,`Invalid AST Node: ${ku(h)}.`);const e=i?null===(_=n.get(h.kind))||void 0===_?void 0:_.leave:null===(E=n.get(h.kind))||void 0===E?void 0:E.enter;if(x=null==e?void 0:e.call(t,h,s,c,f,m),x===Uu)break;if(!1===x){if(!i){f.pop();continue}}else if(void 0!==x&&(p.push([s,x]),!i)){if(!tu(x)){f.pop();continue}h=x}}var w;void 0===x&&o&&p.push([s,h]),i?f.pop():(a={inArray:l,index:d,keys:u,edits:p,prev:a},l=Array.isArray(h),u=l?h:null!==(w=r[h.kind])&&void 0!==w?w:[],d=-1,p=[],c&&m.push(c),c=h)}while(void 0!==a);return 0!==p.length?p[p.length-1][1]:e}function zu(e,t){const r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}const Vu={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Yu(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Ku("(",Yu(e.variableDefinitions,", "),")"),r=Yu([e.operation,Yu([e.name,t]),Yu(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+Ku(" = ",r)+Ku(" ",Yu(n," "))},SelectionSet:{leave:({selections:e})=>Wu(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){const o=Ku("",e,": ")+t;let a=o+Ku("(",Yu(r,", "),")");return a.length>80&&(a=o+Ku("(\n",$u(Yu(r,"\n")),"\n)")),Yu([a,Yu(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Ku(" ",Yu(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>Yu(["...",Ku("on ",e),Yu(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${Ku("(",Yu(r,", "),")")} on ${t} ${Ku("",Yu(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e,t){const r=e.replace(/"""/g,'\\"""'),n=r.split(/\r\n|[\n\r]/g),i=1===n.length,o=n.length>1&&n.slice(1).every((e=>0===e.length||au(e.charCodeAt(0)))),a=r.endsWith('\\"""'),s=e.endsWith('"')&&!a,c=e.endsWith("\\"),l=s||c,u=!i||e.length>70||l||o||a;let d="";const p=i&&au(e.charCodeAt(0));return(u&&!p||o)&&(d+="\n"),d+=r,(u||l)&&(d+="\n"),'"""'+d+'"""'}(e):`"${e.replace(Zu,Bu)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Yu(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Yu(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Ku("(",Yu(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>Ku("",e,"\n")+Yu(["schema",Yu(t," "),Wu(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>Ku("",e,"\n")+Yu(["scalar",t,Yu(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>Ku("",e,"\n")+Yu(["type",t,Ku("implements ",Yu(r," & ")),Yu(n," "),Wu(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>Ku("",e,"\n")+t+(qu(r)?Ku("(\n",$u(Yu(r,"\n")),"\n)"):Ku("(",Yu(r,", "),")"))+": "+n+Ku(" ",Yu(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>Ku("",e,"\n")+Yu([t+": "+r,Ku("= ",n),Yu(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>Ku("",e,"\n")+Yu(["interface",t,Ku("implements ",Yu(r," & ")),Yu(n," "),Wu(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>Ku("",e,"\n")+Yu(["union",t,Yu(r," "),Ku("= ",Yu(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>Ku("",e,"\n")+Yu(["enum",t,Yu(r," "),Wu(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>Ku("",e,"\n")+Yu([t,Yu(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>Ku("",e,"\n")+Yu(["input",t,Yu(r," "),Wu(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>Ku("",e,"\n")+"directive @"+t+(qu(r)?Ku("(\n",$u(Yu(r,"\n")),"\n)"):Ku("(",Yu(r,", "),")"))+(n?" repeatable":"")+" on "+Yu(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Yu(["extend schema",Yu(e," "),Wu(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Yu(["extend scalar",e,Yu(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>Yu(["extend type",e,Ku("implements ",Yu(t," & ")),Yu(r," "),Wu(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>Yu(["extend interface",e,Ku("implements ",Yu(t," & ")),Yu(r," "),Wu(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>Yu(["extend union",e,Yu(t," "),Ku("= ",Yu(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>Yu(["extend enum",e,Yu(t," "),Wu(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>Yu(["extend input",e,Yu(t," "),Wu(r)]," ")}};function Yu(e,t=""){var r;return null!==(r=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==r?r:""}function Wu(e){return Ku("{\n",$u(Yu(e,"\n")),"\n}")}function Ku(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function $u(e){return Ku("  ",e.replace(/\n/g,"\n  "))}function qu(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}function Xu(e){return e.kind===iu.FIELD||e.kind===iu.FRAGMENT_SPREAD||e.kind===iu.INLINE_FRAGMENT}function Ju(e,t){var r=e.directives;return!r||!r.length||function(e){var t=[];return e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var r=e.arguments,n=e.name.value;Ml(r&&1===r.length,71,n);var i=r[0];Ml(i.name&&"if"===i.name.value,72,n);var o=i.value;Ml(o&&("Variable"===o.kind||"BooleanValue"===o.kind),73,n),t.push({directive:e,ifArgument:i})}})),t}(r).every((function(e){var r=e.directive,n=e.ifArgument,i=!1;return"Variable"===n.value.kind?(i=t&&t[n.value.name.value],Ml(void 0!==i,70,r.name.value)):i=n.value.value,"skip"===r.name.value?!i:i}))}function Qu(e,t,r){var n=new Set(e),i=n.size;return Hu(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return Uu}}),r?!n.size:n.size<i}function ed(e){return e&&Qu(["client","export"],e,!0)}const td=()=>Object.create(null),rd=Array.prototype,nd=rd.forEach,id=rd.slice,od=Object.prototype.hasOwnProperty;class ad{constructor(e=!0,t=td){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return nd.call(e,(e=>t=t.getChildTrie(e))),od.call(t,"data")?t.data:t.data=this.makeData(id.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){const n=t.mapFor(e[r],!1);t=n&&n.get(e[r])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){const r=e[0],n=this.mapFor(r,!1),i=n&&n.get(r);i&&(t=i.removeArray(id.call(e,1)),i.data||i.weak||i.strong&&i.strong.size||n.delete(r))}else t=this.data,delete this.data;return t}getChildTrie(e){const t=this.mapFor(e,!0);let r=t.get(e);return r||t.set(e,r=new ad(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}var sd="ReactNative"==Al((function(){return navigator.product})),cd="function"==typeof WeakMap&&!(sd&&!Il.HermesInternal),ld="function"==typeof WeakSet,ud="function"==typeof Symbol&&"function"==typeof Symbol.for,dd=ud&&Symbol.asyncIterator;function pd(e){return null!==e&&"object"==typeof e}function hd(e,t){var r=t,n=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw jl(74,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&n.push(e)})),void 0===r&&(Ml(1===n.length,75,n.length),r=n[0].name.value),Te(Te({},e),{definitions:De([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function fd(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function md(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return Ml(n,76,r),n||null;default:return null}}function gd(){}Al((function(){return window.document.createElement})),Al((function(){return navigator.userAgent.indexOf("jsdom")>=0}));class vd{constructor(e=1/0,t=gd){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const e=t.older,r=t.newer;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}function yd(){}const bd=yd,_d="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},Ed="undefined"!=typeof WeakMap?WeakMap:Map,wd="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:yd,unregister:yd}};class xd{constructor(e=1/0,t=bd){this.max=e,this.dispose=t,this.map=new Ed,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){const t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);const r=t.key;delete t.key,t.keyRef=new _d(r),this.registry.register(r,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new wd(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const e=t.older,r=t.newer;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(e,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){const t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var Ld=new WeakSet;function Od(e){e.size<=(e.max||-1)||Ld.has(e)||(Ld.add(e),setTimeout((function(){e.clean(),Ld.delete(e)}),100))}var Sd=function(e,t){var r=new xd(e,t);return r.set=function(e,t){var r=xd.prototype.set.call(this,e,t);return Od(this),r},r},Td=function(e,t){var r=new vd(e,t);return r.set=function(e,t){var r=vd.prototype.set.call(this,e,t);return Od(this),r},r},Pd=Symbol.for("apollo.cacheSize"),Id=Te({},Cl[Pd]),Ad={};function Cd(e,t){Ad[e]=t}var kd=!1!==globalThis.__DEV__?function(){var e,t,r,n,i;if(!1===globalThis.__DEV__)throw new Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map((function(e){var t=e[0],r=e[1];return[t,Id[t]||r]}))),sizes:Te({print:null===(e=Ad.print)||void 0===e?void 0:e.call(Ad),parser:null===(t=Ad.parser)||void 0===t?void 0:t.call(Ad),canonicalStringify:null===(r=Ad.canonicalStringify)||void 0===r?void 0:r.call(Ad),links:Bd(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:Fd(this.queryManager.documentTransform)}},null===(i=(n=this.cache).getMemoryInternals)||void 0===i?void 0:i.call(n))}}:void 0,Dd=!1!==globalThis.__DEV__?function(){var e=this.config.fragments;return Te(Te({},Rd.apply(this)),{addTypenameDocumentTransform:Fd(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:Md(this.storeReader.executeSelectionSet),executeSubSelectedArray:Md(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:Md(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:Md(null==e?void 0:e.findFragmentSpreads),lookup:Md(null==e?void 0:e.lookup),transform:Md(null==e?void 0:e.transform)}})}:void 0,Nd=!1!==globalThis.__DEV__?Rd:void 0;function Rd(){return{cache:{fragmentQueryDocuments:Md(this.getFragmentDoc)}}}function Md(e){return function(e){return!!e&&"dirtyKey"in e}(e)?e.size:void 0}function jd(e){return null!=e}function Fd(e){return Zd(e).map((function(e){return{cache:e}}))}function Zd(e){return e?De(De([Md(null==e?void 0:e.performWork)],Zd(null==e?void 0:e.left),!0),Zd(null==e?void 0:e.right),!0).filter(jd):[]}function Bd(e){var t;return e?De(De([null===(t=null==e?void 0:e.getMemoryInternals)||void 0===t?void 0:t.call(e)],Bd(null==e?void 0:e.left),!0),Bd(null==e?void 0:e.right),!0).filter(jd):[]}var Gd,Ud=Object.assign((function(e){return JSON.stringify(e,Hd)}),{reset:function(){Gd=new Td(Id.canonicalStringify||1e3)}});function Hd(e,t){if(t&&"object"==typeof t){var r=Object.getPrototypeOf(t);if(r===Object.prototype||null===r){var n=Object.keys(t);if(n.every(zd))return t;var i=JSON.stringify(n),o=Gd.get(i);if(!o){n.sort();var a=JSON.stringify(n);o=Gd.get(a)||n,Gd.set(i,o),Gd.set(a,o)}var s=Object.create(r);return o.forEach((function(e){s[e]=t[e]})),s}}return t}function zd(e,t,r){return 0===t||r[t-1]<=e}function Vd(e){return{__ref:String(e)}}function Yd(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function Wd(e,t,r,n){if(function(e){return"IntValue"===e.kind}(r)||function(e){return"FloatValue"===e.kind}(r))e[t.value]=Number(r.value);else if(function(e){return"BooleanValue"===e.kind}(r)||function(e){return"StringValue"===e.kind}(r))e[t.value]=r.value;else if(function(e){return"ObjectValue"===e.kind}(r)){var i={};r.fields.map((function(e){return Wd(i,e.name,e.value,n)})),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(r)){var o=(n||{})[r.name.value];e[t.value]=o}else if(function(e){return"ListValue"===e.kind}(r))e[t.value]=r.values.map((function(e){var r={};return Wd(r,t,e,n),r[t.value]}));else if(function(e){return"EnumValue"===e.kind}(r))e[t.value]=r.value;else{if(!function(e){return"NullValue"===e.kind}(r))throw jl(85,t.value,r.kind);e[t.value]=null}}!1!==globalThis.__DEV__&&Cd("canonicalStringify",(function(){return Gd.size})),Ud.reset();var Kd=["connection","include","skip","client","rest","export","nonreactive"],$d=Ud,qd=Object.assign((function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach((function(e){i[e]=t[e]})),"".concat(r.connection.key,"(").concat($d(i),")")}return r.connection.key}var o=e;if(t){var a=$d(t);o+="(".concat(a,")")}return r&&Object.keys(r).forEach((function(e){-1===Kd.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat($d(r[e]),")"):o+="@".concat(e))})),o}),{setStringify:function(e){var t=$d;return $d=e,t}});function Xd(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach((function(e){var n=e.name,i=e.value;return Wd(r,n,i,t)})),r}return null}function Jd(e){return e.alias?e.alias.value:e.name.value}function Qd(e,t,r){for(var n,i=0,o=t.selections;i<o.length;i++)if(ep(c=o[i])){if("__typename"===c.name.value)return e[Jd(c)]}else n?n.push(c):n=[c];if("string"==typeof e.__typename)return e.__typename;if(n)for(var a=0,s=n;a<s.length;a++){var c,l=Qd(e,md(c=s[a],r).selectionSet,r);if("string"==typeof l)return l}}function ep(e){return"Field"===e.kind}function tp(e){Ml(e&&"Document"===e.kind,77);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw jl(78,e.kind);return e}));return Ml(t.length<=1,79,t.length),e}function rp(e){return tp(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function np(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&!!e.name})).map((function(e){return e.name.value}))[0]||null}function ip(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function op(e){var t=rp(e);return Ml(t&&"query"===t.operation,80),t}function ap(e){var t;tp(e);for(var r=0,n=e.definitions;r<n.length;r++){var i=n[r];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw jl(84)}function sp(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach((function(e){e.defaultValue&&Wd(t,e.variable.name,e.defaultValue)})),t}const cp=()=>Object.create(null),lp=Array.prototype,up=lp.forEach,dp=lp.slice,pp=Object.prototype.hasOwnProperty;class hp{constructor(e=!0,t=cp){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return up.call(e,(e=>t=t.getChildTrie(e))),pp.call(t,"data")?t.data:t.data=this.makeData(dp.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){const n=this.weakness&&fp(e[r])?t.weak:t.strong;t=n&&n.get(e[r])}return t&&t.data}getChildTrie(e){const t=this.weakness&&fp(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map);let r=t.get(e);return r||t.set(e,r=new hp(this.weakness,this.makeData)),r}}function fp(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}let mp=null;const gp={};let vp=1;function yp(e){try{return e()}catch(e){}}const bp="@wry/context:Slot",_p=yp((()=>globalThis))||yp((()=>global))||Object.create(null),Ep=_p[bp]||Array[bp]||function(e){try{Object.defineProperty(_p,bp,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",vp++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=mp;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===gp)break;return e!==mp&&(mp.slots[this.id]=t),!0}return mp&&(mp.slots[this.id]=gp),!1}getValue(){if(this.hasValue())return mp.slots[this.id]}withValue(e,t,r,n){const i={__proto__:null,[this.id]:e},o=mp;mp={parent:o,slots:i};try{return t.apply(n,r)}finally{mp=o}}static bind(e){const t=mp;return function(){const r=mp;try{return mp=t,e.apply(this,arguments)}finally{mp=r}}}static noContext(e,t,r){if(!mp)return e.apply(r,t);{const n=mp;try{return mp=null,e.apply(r,t)}finally{mp=n}}}}),wp=new Ep,xp=Object.prototype.hasOwnProperty,Lp=Array.from||function(e){const t=[];return e.forEach((e=>t.push(e))),t};function Op(e){const t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}const Sp=[];function Tp(e,t){if(!e)throw new Error(t||"assertion failure")}function Pp(e,t){const r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function Ip(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function Ap(e){return e.slice(0)}class Cp{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Cp.count}peek(){if(1===this.value.length&&!Np(this))return kp(this),this.value[0]}recompute(e){return Tp(!this.recomputing,"already recomputing"),kp(this),Np(this)?function(e,t){return Gp(e),wp.withValue(e,Dp,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{Op(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,Np(e)||Mp(e)}(e),Ip(e.value)}(this,e):Ip(this.value)}setDirty(){this.dirty||(this.dirty=!0,Rp(this),Op(this))}dispose(){this.setDirty(),Gp(this),jp(this,((e,t)=>{e.setDirty(),Up(e,this)}))}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=Sp.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(Lp(this.deps).forEach((e=>e.delete(this))),this.deps.clear(),Sp.push(this.deps),this.deps=null)}}function kp(e){const t=wp.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Np(e)?Fp(t,e):Zp(t,e),t}function Dp(e,t){e.recomputing=!0;const r=e.normalizeResult;let n;r&&1===e.value.length&&(n=Ap(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),r&&n&&!Pp(n,e.value))try{e.value[0]=r(e.value[0],n[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function Np(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Rp(e){jp(e,Fp)}function Mp(e){jp(e,Zp)}function jp(e,t){const r=e.parents.size;if(r){const n=Lp(e.parents);for(let i=0;i<r;++i)t(n[i],e)}}function Fp(e,t){Tp(e.childValues.has(t)),Tp(Np(t));const r=!Np(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=Sp.pop()||new Set;e.dirtyChildren.add(t),r&&Rp(e)}function Zp(e,t){Tp(e.childValues.has(t)),Tp(!Np(t));const r=e.childValues.get(t);0===r.length?e.childValues.set(t,Ap(t.value)):Pp(r,t.value)||e.setDirty(),Bp(e,t),Np(e)||Mp(e)}function Bp(e,t){const r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(Sp.length<100&&Sp.push(r),e.dirtyChildren=null))}function Gp(e){e.childValues.size>0&&e.childValues.forEach(((t,r)=>{Up(e,r)})),e.forgetDeps(),Tp(null===e.dirtyChildren)}function Up(e,t){t.parents.delete(e),e.childValues.delete(t),Bp(e,t)}Cp.count=0;const Hp={setDirty:!0,dispose:!0,forget:!0};function zp(e){const t=new Map,r=e&&e.subscribe;function n(e){const n=wp.getValue();if(n){let i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(Op(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){const n=t.get(e);if(n){const i=r&&xp.call(Hp,r)?r:"setDirty";Lp(n).forEach((e=>e[i]())),t.delete(e),Op(n)}},n}let Vp;function Yp(...e){return(Vp||(Vp=new hp("function"==typeof WeakMap))).lookupArray(e)}const Wp=new Set;function Kp(e,{max:t=Math.pow(2,16),keyArgs:r,makeCacheKey:n=Yp,normalizeResult:i,subscribe:o,cache:a=vd}=Object.create(null)){const s="function"==typeof a?new a(t,(e=>e.dispose())):a,c=function(){const t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=s.get(t);a||(s.set(t,a=new Cp(e)),a.normalizeResult=i,a.subscribe=o,a.forget=()=>s.delete(t));const c=a.recompute(Array.prototype.slice.call(arguments));return s.set(t,a),Wp.add(s),wp.hasValue()||(Wp.forEach((e=>e.clean())),Wp.clear()),c};function l(e){const t=e&&s.get(e);t&&t.setDirty()}function u(e){const t=e&&s.get(e);if(t)return t.peek()}function d(e){return!!e&&s.delete(e)}return Object.defineProperty(c,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:o,cache:s}),c.dirtyKey=l,c.dirty=function(){l(n.apply(null,arguments))},c.peekKey=u,c.peek=function(){return u(n.apply(null,arguments))},c.forgetKey=d,c.forget=function(){return d(n.apply(null,arguments))},c.makeCacheKey=n,c.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(c)}function $p(e){return e}var qp,Xp=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=ld?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e($p,{cache:!1})},e.split=function(t,r,n){return void 0===n&&(n=e.identity()),Object.assign(new e((function(e){return(t(e)?r:n).transformDocument(e)}),{cache:!1}),{left:r,right:n})},e.prototype.resetCache=function(){var t=this;if(this.cached){var r=new ad(cd);this.performWork=Kp(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var n=t.getCacheKey(e);if(n)return Ml(Array.isArray(n),69),r.lookupArray(n)},max:Id["documentTransform.cache"],cache:xd})}},e.prototype.performWork=function(e){return tp(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var r=this;return Object.assign(new e((function(e){return t.transformDocument(r.transformDocument(e))}),{cache:!1}),{left:this,right:t})},e}(),Jp=Object.assign((function(e){var t=qp.get(e);return t||(t=function(e){return Hu(e,Vu)}(e),qp.set(e,t)),t}),{reset:function(){qp=new Sd(Id.print||2e3)}});Jp.reset(),!1!==globalThis.__DEV__&&Cd("print",(function(){return qp?qp.size:0}));var Qp=Array.isArray;function eh(e){return Array.isArray(e)&&e.length>0}var th={kind:iu.FIELD,name:{kind:iu.NAME,value:"__typename"}};function rh(e,t){return!e||e.selectionSet.selections.every((function(e){return e.kind===iu.FRAGMENT_SPREAD&&rh(t[e.name.value],t)}))}function nh(e){return rh(rp(e)||function(e){Ml("Document"===e.kind,81),Ml(e.definitions.length<=1,82);var t=e.definitions[0];return Ml("FragmentDefinition"===t.kind,83),t}(e),fd(ip(e)))?null:e}function ih(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function oh(e,t){tp(t);for(var r=ih(""),n=ih(""),i=function(e){for(var t=0,i=void 0;t<e.length&&(i=e[t]);++t)if(!Qp(i)){if(i.kind===iu.OPERATION_DEFINITION)return r(i.name&&i.name.value);if(i.kind===iu.FRAGMENT_DEFINITION)return n(i.name.value)}return!1!==globalThis.__DEV__&&Ml.error(86),null},o=0,a=t.definitions.length-1;a>=0;--a)t.definitions[a].kind===iu.OPERATION_DEFINITION&&++o;var s,c,l,u=(s=e,c=new Map,l=new Map,s.forEach((function(e){e&&(e.name?c.set(e.name,e):e.test&&l.set(e.test,e))})),function(e){var t=c.get(e.name.value);return!t&&l.size&&l.forEach((function(r,n){n(e)&&(t=r)})),t}),d=function(e){return eh(e)&&e.map(u).some((function(e){return e&&e.remove}))},p=new Map,h=!1,f={enter:function(e){if(d(e.directives))return h=!0,null}},m=Hu(t,{Field:f,InlineFragment:f,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,o){var a=i(o);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,o){if(d(e.directives))return h=!0,null;var a=i(o);a&&a.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){p.set(JSON.stringify(n),e)},leave:function(e,t,r,i){return e===p.get(JSON.stringify(i))?e:o>0&&e.selectionSet.selections.every((function(e){return e.kind===iu.FIELD&&"__typename"===e.name.value}))?(n(e.name.value).removed=!0,h=!0,null):void 0}},Directive:{leave:function(e){if(u(e))return h=!0,null}}});if(!h)return t;var g=function e(t){return t.transitiveVars||(t.transitiveVars=new Set(t.variables),t.removed||t.fragmentSpreads.forEach((function(r){e(n(r)).transitiveVars.forEach((function(e){t.transitiveVars.add(e)}))}))),t},v=new Set;m.definitions.forEach((function(e){e.kind===iu.OPERATION_DEFINITION?g(r(e.name&&e.name.value)).fragmentSpreads.forEach((function(e){v.add(e)})):e.kind!==iu.FRAGMENT_DEFINITION||0!==o||n(e.name.value).removed||v.add(e.name.value)})),v.forEach((function(e){g(n(e)).fragmentSpreads.forEach((function(e){v.add(e)}))}));var y={enter:function(e){if(t=e.name.value,!v.has(t)||n(t).removed)return null;var t}};return nh(Hu(m,{FragmentSpread:y,FragmentDefinition:y,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=g(r(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return Te(Te({},e),{variableDefinitions:e.variableDefinitions.filter((function(e){return t.has(e.variable.name.value)}))})}}}}))}var ah=Object.assign((function(e){return Hu(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==iu.OPERATION_DEFINITION){var n=e.selections;if(n&&!n.some((function(e){return ep(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=r;if(!(ep(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return Te(Te({},e),{selections:De(De([],n,!0),[th],!1)})}}}}})}),{added:function(e){return e===th}});function sh(e){return"query"===ap(e).operation?e:Hu(e,{OperationDefinition:{enter:function(e){return Te(Te({},e),{operation:"query"})}}})}function ch(e){return tp(e),oh([{test:function(e){return"client"===e.name.value},remove:!0}],e)}var lh=Object.prototype.hasOwnProperty;function uh(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return dh(e)}function dh(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new hh,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var ph=function(e,t,r){return this.merge(e[r],t[r])},hh=function(){function e(e){void 0===e&&(e=ph),this.reconciler=e,this.isObject=pd,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return pd(t)&&pd(e)?(Object.keys(t).forEach((function(i){if(lh.call(e,i)){var o=e[i];if(t[i]!==o){var a=r.reconciler.apply(r,De([e,t,i],n,!1));a!==o&&((e=r.shallowCopyForMerge(e))[i]=a)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]})),e):t},e.prototype.shallowCopyForMerge=function(e){return pd(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):Te({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},e}();function fh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function mh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function gh(e,t,r){return t&&mh(e.prototype,t),r&&mh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var vh=function(){return"function"==typeof Symbol},yh=function(e){return vh()&&Boolean(Symbol[e])},bh=function(e){return yh(e)?Symbol[e]:"@@"+e};vh()&&!yh("observable")&&(Symbol.observable=Symbol("observable"));var _h=bh("iterator"),Eh=bh("observable"),wh=bh("species");function xh(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw new TypeError(r+" is not a function");return r}}function Lh(e){var t=e.constructor;return void 0!==t&&null===(t=t[wh])&&(t=void 0),void 0!==t?t:Dh}function Oh(e){Oh.log?Oh.log(e):setTimeout((function(){throw e}))}function Sh(e){Promise.resolve().then((function(){try{e()}catch(e){Oh(e)}}))}function Th(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=xh(t,"unsubscribe");r&&r.call(t)}}catch(e){Oh(e)}}function Ph(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function Ih(e,t,r){e._state="running";var n=e._observer;try{var i=xh(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(Ph(e),!i)throw r;i.call(n,r);break;case"complete":Ph(e),i&&i.call(n)}}catch(e){Oh(e)}"closed"===e._state?Th(e):"running"===e._state&&(e._state="ready")}function Ah(e,t,r){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:r}],void Sh((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(Ih(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}(e)}))):void Ih(e,t,r);e._queue.push({type:t,value:r})}}var Ch=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new kh(this);try{this._cleanup=t.call(void 0,r)}catch(e){r.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(Ph(this),Th(this))},gh(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),kh=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){Ah(this._subscription,"next",e)},t.error=function(e){Ah(this._subscription,"error",e)},t.complete=function(){Ah(this._subscription,"complete")},gh(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),Dh=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new Ch(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise((function(r,n){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(e){n(e),i.unsubscribe()}},error:n,complete:r});else n(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),r()}}))},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(Lh(this))((function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})}))},t.filter=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(Lh(this))((function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})}))},t.reduce=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=Lh(this),n=arguments.length>1,i=!1,o=arguments[1];return new r((function(r){return t.subscribe({next:function(t){var a=!i;if(i=!0,!a||n)try{o=e(o,t)}catch(e){return r.error(e)}else o=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(o),r.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=Lh(this);return new i((function(t){var n,o=0;return function e(a){n=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===r.length?(n=void 0,t.complete()):e(i.from(r[o++]))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}}))},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=Lh(this);return new r((function(n){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return n.error(e)}var o=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},t[Eh]=function(){return this},e.from=function(t){var r="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var n=xh(t,Eh);if(n){var i=n.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return function(e){return e instanceof Dh}(i)&&i.constructor===r?i:new r((function(e){return i.subscribe(e)}))}if(yh("iterator")&&(n=xh(t,_h)))return new r((function(e){Sh((function(){if(!e.closed){for(var r,i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return fh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fh(e,t):void 0}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n.call(t));!(r=i()).done;){var o=r.value;if(e.next(o),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new r((function(e){Sh((function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return new("function"==typeof this?this:e)((function(e){Sh((function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}}))}))},gh(e,null,[{key:wh,get:function(){return this}}]),e}();vh()&&Object.defineProperty(Dh,Symbol("extensions"),{value:{symbol:Eh,hostReportError:Oh},configurable:!0}),function(e){var t,r=("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")()).Symbol;if("function"==typeof r)if(r.observable)t=r.observable;else{t="function"==typeof r.for?r.for("https://github.com/benlesh/symbol-observable"):r("https://github.com/benlesh/symbol-observable");try{r.observable=t}catch(e){}}else t="@@observable"}();var Nh=Dh.prototype,Rh="@@observable";Nh[Rh]||(Nh[Rh]=function(){return this});var Mh=Object.prototype.toString;function jh(e){return Fh(e)}function Fh(e,t){switch(Mh.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach((function(e,n){r[n]=Fh(e,t)})),r;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var n=Object.create(Object.getPrototypeOf(e));return t.set(e,n),Object.keys(e).forEach((function(r){n[r]=Fh(e[r],t)})),n;default:return e}}function Zh(e){return!1!==globalThis.__DEV__&&function(e){var t=new Set([e]);t.forEach((function(e){pd(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(r){pd(e[r])&&t.add(e[r])}))}))}(e),e}function Bh(e,t,r){var n=[];e.forEach((function(e){return e[t]&&n.push(e)})),n.forEach((function(e){return e[t](r)}))}function Gh(e,t,r){return new Dh((function(n){var i={then:function(e){return new Promise((function(t){return t(e())}))}};function o(e,t){return function(r){if(e){var o=function(){return n.closed?0:e(r)};i=i.then(o,o).then((function(e){return n.next(e)}),(function(e){return n.error(e)}))}else n[t](r)}}var a={next:o(t,"next"),error:o(r,"error"),complete:function(){i.then((function(){return n.complete()}))}},s=e.subscribe(a);return function(){return s.unsubscribe()}}))}function Uh(e){function t(t){Object.defineProperty(e,t,{value:Dh})}return ud&&Symbol.species&&t(Symbol.species),t("@@species"),e}function Hh(e){return e&&"function"==typeof e.then}var zh=function(e){function t(t){var r=e.call(this,(function(e){return r.addObserver(e),function(){return r.removeObserver(e)}}))||this;return r.observers=new Set,r.promise=new Promise((function(e,t){r.resolve=e,r.reject=t})),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),Bh(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),Bh(r.observers,"error",e))},complete:function(){var e=r,t=e.sub,n=e.sources;if(null!==t){var i=(void 0===n?[]:n).shift();i?Hh(i)?i.then((function(e){return r.sub=e.subscribe(r.handlers)}),r.handlers.error):r.sub=i.subscribe(r.handlers):(t&&setTimeout((function(){return t.unsubscribe()})),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),Bh(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.error(e)},r.promise.catch((function(e){})),"function"==typeof t&&(t=[new Dh(t)]),Hh(t)?t.then((function(e){return r.start(e)}),r.handlers.error):r.start(t),r}return Se(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach((function(r){return r(e,t)})))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add((function(r,n){t||(t=!0,e(r,n))}))},t}(Dh);function Vh(e){return"incremental"in e}function Yh(e){return pd(e)&&"payload"in e}function Wh(e,t){var r=e,n=new hh;return Vh(t)&&eh(t.incremental)&&t.incremental.forEach((function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var a=i[o],s=isNaN(+a)?{}:[];s[a]=t,t=s}r=n.merge(r,t)})),r}function Kh(e){return eh($h(e))}function $h(e){var t=eh(e.errors)?e.errors.slice(0):[];return Vh(e)&&eh(e.incremental)&&e.incremental.forEach((function(e){e.errors&&t.push.apply(t,e.errors)})),t}function qh(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach((function(e){e&&Object.keys(e).forEach((function(t){var n=e[t];void 0!==n&&(r[t]=n)}))})),r}function Xh(e,t){return qh(e,t,t.variables&&{variables:qh(Te(Te({},e&&e.variables),t.variables))})}function Jh(e){return new Dh((function(t){t.error(e)}))}Uh(zh);var Qh=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n};function ef(e,t){return t?t(e):Dh.of()}function tf(e){return"function"==typeof e?new nf(e):e}function rf(e){return e.request.length<=1}var nf=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return Dh.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(tf).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,r,n){var i,o=tf(r),a=tf(n||new e(ef));return i=rf(o)&&rf(a)?new e((function(e){return t(e)?o.request(e)||Dh.of():a.request(e)||Dh.of()})):new e((function(e,r){return t(e)?o.request(e,r)||Dh.of():a.request(e,r)||Dh.of()})),Object.assign(i,{left:o,right:a})},e.execute=function(e,t){return e.request(function(e,t){var r=Te({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r=Te(Te({},r),"function"==typeof e?e(r):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return Te({},r)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?np(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];if(t.indexOf(i)<0)throw jl(44,i)}return e}(t))))||Dh.of()},e.concat=function(t,r){var n=tf(t);if(rf(n))return!1!==globalThis.__DEV__&&Ml.warn(36,n),n;var i,o=tf(r);return i=rf(o)?new e((function(e){return n.request(e,(function(e){return o.request(e)||Dh.of()}))||Dh.of()})):new e((function(e,t){return n.request(e,(function(e){return o.request(e,t)||Dh.of()}))||Dh.of()})),Object.assign(i,{left:n,right:o})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(ef)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw jl(37)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}(),of=nf.concat,af=nf.execute;function sf(e){var t={next:function(){return e.read()}};return dd&&(t[Symbol.asyncIterator]=function(){return this}),t}var cf=Symbol();function lf(e){return e.hasOwnProperty("graphQLErrors")}var uf=function(e){function t(r){var n,i,o=r.graphQLErrors,a=r.protocolErrors,s=r.clientErrors,c=r.networkError,l=r.errorMessage,u=r.extraInfo,d=e.call(this,l)||this;return d.name="ApolloError",d.graphQLErrors=o||[],d.protocolErrors=a||[],d.clientErrors=s||[],d.networkError=c||null,d.message=l||(i=De(De(De([],(n=d).graphQLErrors,!0),n.clientErrors,!0),n.protocolErrors,!0),n.networkError&&i.push(n.networkError),i.map((function(e){return pd(e)&&e.message||"Error message not found."})).join("\n")),d.extraInfo=u,d.cause=De(De(De([c],o||[],!0),a||[],!0),s||[],!0).find((function(e){return!!e}))||null,d.__proto__=t.prototype,d}return Se(t,e),t}(Error),df=Object.prototype.hasOwnProperty;function pf(e){var t={};return e.split("\n").forEach((function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}})),t}function hf(e,t){e.status>=300&&Qh(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(n){var r=n;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}var ff=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=jl(40,t,e.message);throw n.parseError=e,n}return r},mf={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},gf=function(e,t){return t(e)};var vf=Al((function(){return fetch})),yf=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,n=e.fetch,i=e.print,o=void 0===i?gf:i,a=e.includeExtensions,s=e.preserveHeaderCase,c=e.useGETForQueries,l=e.includeUnusedVariables,u=void 0!==l&&l,d=Pe(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&function(e){if(!e&&"undefined"==typeof fetch)throw jl(38)}(n||vf);var p={http:{includeExtensions:a,preserveHeaderCase:s},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new nf((function(e){var t=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}(e,r),i=e.getContext(),a={};if(i.clientAwareness){var s=i.clientAwareness,l=s.name,d=s.version;l&&(a["apollographql-client-name"]=l),d&&(a["apollographql-client-version"]=d)}var h=Te(Te({},a),i.headers),f={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:h};if(Qu(["client"],e.query)){var m=ch(e.query);if(!m)return Jh(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=m}var g,v,y,b,_,E=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i={},o={};r.forEach((function(e){i=Te(Te(Te({},i),e.options),{headers:Te(Te({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),o=Te(Te({},o),e.http)})),i.headers&&(i.headers=function(e,t){if(!t){var r={};return Object.keys(Object(e)).forEach((function(t){r[t.toLowerCase()]=e[t]})),r}var n={};Object.keys(Object(e)).forEach((function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}}));var i={};return Object.keys(n).forEach((function(e){i[n[e].originalName]=n[e].value})),i}(i.headers,o.preserveHeaderCase));var a=e.operationName,s=e.extensions,c=e.variables,l=e.query,u={operationName:a,variables:c};return o.includeExtensions&&(u.extensions=s),o.includeQuery&&(u.query=t(l,Jp)),{options:i,body:u}}(e,o,mf,p,f),w=E.options,x=E.body;x.variables&&!u&&(x.variables=(g=x.variables,v=e.query,y=Te({},g),b=new Set(Object.keys(g)),Hu(v,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&b.delete(e.name.value)}}),b.forEach((function(e){delete y[e]})),y)),w.signal||"undefined"==typeof AbortController||(_=new AbortController,w.signal=_.signal);var L,O="OperationDefinition"===(L=ap(e.query)).kind&&"subscription"===L.operation,S=Qu(["defer"],e.query);if(c&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(w.method="GET"),S||O){w.headers=w.headers||{};var T="multipart/mixed;";O&&S&&!1!==globalThis.__DEV__&&Ml.warn(39),O?T+="boundary=graphql;subscriptionSpec=1.0,application/json":S&&(T+="deferSpec=20220824,application/json"),w.headers.accept=T}if("GET"===w.method){var P=function(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=ff(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var o=void 0;try{o=ff(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",o)}var a="",s=e,c=e.indexOf("#");-1!==c&&(a=e.substr(c),s=e.substr(0,c));var l=-1===s.indexOf("?")?"?":"&";return{newURI:s+l+r.join("&")+a}}(t,x),I=P.newURI,A=P.parseError;if(A)return Jh(A);t=I}else try{w.body=ff(x,"Payload")}catch(A){return Jh(A)}return new Dh((function(r){var i=n||Al((function(){return fetch}))||vf,o=r.next.bind(r);return i(t,w).then((function(t){var r;e.setContext({response:t});var n,i=null===(r=t.headers)||void 0===r?void 0:r.get("content-type");return null!==i&&/^multipart\/mixed/i.test(i)?function(e,t){return Ce(this,void 0,void 0,(function(){var r,n,i,o,a,s,c,l,u,d,p,h,f,m,g,v,y,b,_,E,w,x,L,O;return ke(this,(function(S){switch(S.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),n=null===(O=e.headers)||void 0===O?void 0:O.get("content-type"),i="boundary=",o=(null==n?void 0:n.includes(i))?null==n?void 0:n.substring((null==n?void 0:n.indexOf(i))+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",a="\r\n--".concat(o),s="",c=function(e){var t,r,n,i=e;if(e.body&&(i=e.body),function(e){return!(!dd||!e[Symbol.asyncIterator])}(i))return function(e){var t,r=e[Symbol.asyncIterator]();return(t={next:function(){return r.next()}})[Symbol.asyncIterator]=function(){return this},t}(i);if(function(e){return!!e.getReader}(i))return sf(i.getReader());if(function(e){return!!e.stream}(i))return sf(i.stream().getReader());if(function(e){return!!e.arrayBuffer}(i))return t=i.arrayBuffer(),r=!1,n={next:function(){return r?Promise.resolve({value:void 0,done:!0}):(r=!0,new Promise((function(e,r){t.then((function(t){e({value:t,done:!1})})).catch(r)})))}},dd&&(n[Symbol.asyncIterator]=function(){return this}),n;if(function(e){return!!e.pipe}(i))return function(e){var t=null,r=null,n=!1,i=[],o=[];function a(e){if(!r){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){r=e,o.slice().forEach((function(t){t[1](e)})),!t||t()}function c(){n=!0,o.slice().forEach((function(e){e[0]({value:void 0,done:!0})})),!t||t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",s),e.removeListener("end",c),e.removeListener("finish",c),e.removeListener("close",c)},e.on("data",a),e.on("error",s),e.on("end",c),e.on("finish",c),e.on("close",c);var l={next:function(){return new Promise((function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):n?e({value:void 0,done:!0}):void o.push([e,t])}))}};return dd&&(l[Symbol.asyncIterator]=function(){return this}),l}(i);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),l=!0,S.label=1;case 1:return l?[4,c.next()]:[3,3];case 2:for(u=S.sent(),d=u.value,p=u.done,h="string"==typeof d?d:r.decode(d),f=s.length-a.length+1,l=!p,m=(s+=h).indexOf(a,f);m>-1;){if(g=void 0,x=[s.slice(0,m),s.slice(m+a.length)],s=x[1],v=(g=x[0]).indexOf("\r\n\r\n"),y=pf(g.slice(0,v)),(b=y["content-type"])&&-1===b.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(_=g.slice(v))if(E=hf(e,_),Object.keys(E).length>1||"data"in E||"incremental"in E||"errors"in E||"payload"in E)if(Yh(E)){if(w={},"payload"in E){if(1===Object.keys(E).length&&null===E.payload)return[2];w=Te({},E.payload)}"errors"in E&&(w=Te(Te({},w),{extensions:Te(Te({},"extensions"in w?w.extensions:null),(L={},L[cf]=E.errors,L))})),t(w)}else t(E);else if(1===Object.keys(E).length&&"hasNext"in E&&!E.hasNext)return[2];m=s.indexOf(a)}return[3,1];case 3:return[2]}}))}))}(t,o):(n=e,function(e){return e.text().then((function(t){return hf(e,t)})).then((function(t){return Array.isArray(t)||df.call(t,"data")||df.call(t,"errors")||Qh(e,t,"Server response was missing for query '".concat(Array.isArray(n)?n.map((function(e){return e.operationName})):n.operationName,"'.")),t}))})(t).then(o)})).then((function(){_=void 0,r.complete()})).catch((function(e){_=void 0,function(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(e,r)})),function(){_&&_.abort()}}))}))}(t).request)||this;return r.options=t,r}return Se(t,e),t}(nf);const bf=Object.prototype,_f=bf.toString,Ef=bf.hasOwnProperty,wf=Function.prototype.toString,xf=new Map;function Lf(e,t){try{return Of(e,t)}finally{xf.clear()}}function Of(e,t){if(e===t)return!0;const r=_f.call(e);if(r!==_f.call(t))return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(If(e,t))return!0;const r=Sf(e),n=Sf(t),i=r.length;if(i!==n.length)return!1;for(let e=0;e<i;++e)if(!Ef.call(t,r[e]))return!1;for(let n=0;n<i;++n){const i=r[n];if(!Of(e[i],t[i]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(If(e,t))return!0;const n=e.entries(),i="[object Map]"===r;for(;;){const e=n.next();if(e.done)break;const r=le(e.value,2),o=r[0],a=r[1];if(!t.has(o))return!1;if(i&&!Of(a,t.get(o)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let r=e.byteLength;if(r===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const r=wf.call(e);return r===wf.call(t)&&!function(e,t){const r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(r,Pf)}}return!1}function Sf(e){return Object.keys(e).filter(Tf,e)}function Tf(e){return void 0!==this[e]}const Pf="{ [native code] }";function If(e,t){let r=xf.get(e);if(r){if(r.has(t))return!0}else xf.set(e,r=new Set);return r.add(t),!1}function Af(e,t,r,n){var i=t.data,o=Pe(t,["data"]),a=r.data;return Lf(o,Pe(r,["data"]))&&Cf(ap(e).selectionSet,i,a,{fragmentMap:fd(ip(e)),variables:n})}function Cf(e,t,r,n){if(t===r)return!0;var i=new Set;return e.selections.every((function(e){if(i.has(e))return!0;if(i.add(e),!Ju(e,n.variables))return!0;if(kf(e))return!0;if(ep(e)){var o=Jd(e),a=t&&t[o],s=r&&r[o],c=e.selectionSet;if(!c)return Lf(a,s);var l=Array.isArray(a),u=Array.isArray(s);if(l!==u)return!1;if(l&&u){var d=a.length;if(s.length!==d)return!1;for(var p=0;p<d;++p)if(!Cf(c,a[p],s[p],n))return!1;return!0}return Cf(c,a,s,n)}var h=md(e,n.fragmentMap);return h?!!kf(h)||Cf(h.selectionSet,t,r,n):void 0}))}function kf(e){return!!e.directives&&e.directives.some(Df)}function Df(e){return"nonreactive"===e.name.value}var Nf=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=Kp(hd,{max:Id["cache.fragmentQueryDocuments"]||1e3,cache:xd})}return e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction((function(){return t=e.update(r)}),n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(Te(Te({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.watchFragment=function(e){var t,r=this,n=e.fragment,i=e.fragmentName,o=e.from,a=e.optimistic,s=void 0===a||a,c=Pe(e,["fragment","fragmentName","from","optimistic"]),l=this.getFragmentDoc(n,i),u=Te(Te({},c),{returnPartialData:!0,id:void 0===o||"string"==typeof o?o:this.identify(o),query:l,optimistic:s});return new Dh((function(e){return r.watch(Te(Te({},u),{immediate:!0,callback:function(r){if(!t||!Af(l,{data:null==t?void 0:t.result},{data:r.result})){var n={data:r.result,complete:!!r.complete};r.missing&&(n.missing=dh(r.missing.map((function(e){return e.missing})))),t=r,e.next(n)}}}))}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(Te(Te({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,n=Pe(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,n=e.fragment,i=e.fragmentName,o=Pe(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(n,i),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var n=r.readQuery(e),i=t(n);return null==i?n:(r.writeQuery(Te(Te({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var n=r.readFragment(e),i=t(n);return null==i?n:(r.writeFragment(Te(Te({},e),{data:i})),i)}})},e}();!1!==globalThis.__DEV__&&(Nf.prototype.getMemoryInternals=Nd);var Rf=function(e){function t(r,n,i,o){var a,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var c=s.path.length-1;c>=0;--c)s.missing=((a={})[s.path[c]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return Se(t,e),t}(Error),Mf=Object.prototype.hasOwnProperty;function jf(e){return null==e}function Ff(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=jf(n)?jf(i)?void 0:{_id:i}:{id:n}),jf(n)&&!jf(i)&&(n=i),!jf(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var Zf={dataIdFromObject:Ff,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Bf(e){var t=e.canonizeResults;return void 0===t?Zf.canonizeResults:t}var Gf=/^[_a-z][_0-9a-z]*/i;function Uf(e){var t=e.match(Gf);return t?t[0]:e}function Hf(e,t,r){return!!pd(t)&&(Qp(t)?t.every((function(t){return Hf(e,t,r)})):e.selections.every((function(e){if(ep(e)&&Ju(e,r)){var n=Jd(e);return Mf.call(t,n)&&(!e.selectionSet||Hf(e.selectionSet,t[n],r))}return!0})))}function zf(e){return pd(e)&&!Yd(e)&&!Qp(e)}function Vf(e,t){var r=fd(ip(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var Yf=Object.create(null),Wf=function(){return Yf},Kf=Object.create(null),$f=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return Zh(Yd(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return Yd(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return Vd(e);if(Yd(e))return e;var n=r.policies.identify(e)[0];if(n){var i=Vd(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return Te({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),Mf.call(this.data,e)){var r=this.data[e];if(r&&Mf.call(r,t))return r[t]}return"__typename"===t&&Mf.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof Qf?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),Mf.call(this.data,e)?this.data[e]:this instanceof Qf?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;Yd(e)&&(e=e.__ref),Yd(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(r=e):e,o="string"==typeof t?this.lookup(r=t):t;if(o){Ml("string"==typeof r,1);var a=new hh(tm).merge(i,o);if(this.data[r]=a,a!==i&&(delete this.refs[r],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(o).forEach((function(e){if(!i||i[e]!==a[e]){s[e]=1;var t=Uf(e);t===e||n.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||n instanceof Qf||delete a[e]}})),!s.__typename||i&&i.__typename||this.policies.rootTypenamesById[r]!==a.__typename||delete s.__typename,Object.keys(s).forEach((function(e){return n.group.dirty(r,e)}))}}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=Object.create(null),o=!1,a=!0,s={DELETE:Yf,INVALIDATE:Kf,isReference:Yd,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||Vd(e)}:t,{store:r})}};if(Object.keys(n).forEach((function(c){var l=Uf(c),u=n[c];if(void 0!==u){var d="function"==typeof t?t:t[c]||t[l];if(d){var p=d===Wf?Yf:d(Zh(u),Te(Te({},s),{fieldName:l,storeFieldName:c,storage:r.getStorage(e,c)}));if(p===Kf)r.group.dirty(e,c);else if(p===Yf&&(p=void 0),p!==u&&(i[c]=p,o=!0,u=p,!1!==globalThis.__DEV__)){var h=function(e){if(void 0===r.lookup(e.__ref))return!1!==globalThis.__DEV__&&Ml.warn(2,e),!0};if(Yd(p))h(p);else if(Array.isArray(p))for(var f=!1,m=void 0,g=0,v=p;g<v.length;g++){var y=v[g];if(Yd(y)){if(f=!0,h(y))break}else"object"==typeof y&&y&&r.policies.identify(y)[0]&&(m=y);if(f&&void 0!==m){!1!==globalThis.__DEV__&&Ml.warn(3,m);break}}}}void 0!==u&&(a=!1)}})),o)return this.merge(e,i),a&&(this instanceof Qf?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=Wf,n):Wf)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(Mf.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof Qf&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach((function(t){Mf.call(e.policies.rootTypenamesById,t)||r.push(t)})),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(r){e&&Mf.call(e,r)||t.delete(r)})),e){var r=e.__META,n=Pe(e,["__META"]);Object.keys(n).forEach((function(e){t.merge(e,n[e])})),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof Qf?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach((function(n){Mf.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])}));var n=Object.keys(r);if(n.length){for(var i=this;i instanceof Qf;)i=i.parent;n.forEach((function(e){return i.delete(e)}))}return n},e.prototype.findChildRefIds=function(e){if(!Mf.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach((function(e){Yd(e)&&(t[e.__ref]=!0),pd(e)&&Object.keys(e).forEach((function(t){var r=e[t];pd(r)&&n.add(r)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),qf=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?zp():null,this.keyMaker=new ad(cd)},e.prototype.depend=function(e,t){if(this.d){this.d(Xf(e,t));var r=Uf(t);r!==t&&this.d(Xf(e,r)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(Xf(e,t),"__exists"===t?"forget":"setDirty")},e}();function Xf(e,t){return t+"#"+e}function Jf(e,t){rm(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=void 0===n||n,o=t.seed,a=e.call(this,r,new qf(i))||this;return a.stump=new em(a),a.storageTrie=new ad(cd),o&&a.replace(o),a}return Se(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}($f||($f={}));var Qf=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return Se(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach((function(r){Lf(n[r],i[r])||t.group.dirty(e,r)})):(t.group.dirty(e,"__exists"),Object.keys(i).forEach((function(r){t.group.dirty(e,r)}))):t.delete(e)})),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return Te(Te({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return Mf.call(this.data,t)?Te(Te({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}($f),em=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new qf(t.group.caching,t.group))||this}return Se(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(Qf);function tm(e,t,r){var n=e[r],i=t[r];return Lf(n,i)?n:i}function rm(e){return!!(e instanceof $f&&e.group.caching)}var nm=function(){function e(){this.known=new(ld?WeakSet:Set),this.pool=new ad(cd),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return pd(e)&&this.known.has(e)},e.prototype.pass=function(e){if(pd(e)){var t=function(e){return pd(e)?Qp(e)?e.slice(0):Te({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(pd(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var n=e.map(this.admit,this);return(s=this.pool.lookupArray(n)).array||(this.known.add(s.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),s.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),o=[i],a=this.sortedKeys(e);o.push(a.json);var s,c=o.length;if(a.sorted.forEach((function(r){o.push(t.admit(e[r]))})),!(s=this.pool.lookupArray(o)).object){var l=s.object=Object.create(i);this.known.add(l),a.sorted.forEach((function(e,t){l[e]=o[c+t]})),!1!==globalThis.__DEV__&&Object.freeze(l)}return s.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}();function im(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var om=function(){function e(e){var t=this;this.knownResults=new(cd?WeakMap:Map),this.config=qh(e,{addTypename:!1!==e.addTypename,canonizeResults:Bf(e)}),this.canon=e.canon||new nm,this.executeSelectionSet=Kp((function(e){var r,n=e.context.canonizeResults,i=im(e);i[3]=!n;var o=(r=t.executeSelectionSet).peek.apply(r,i);return o?n?Te(Te({},o),{result:t.canon.admit(o.result)}):o:(Jf(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize||Id["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:im,makeCacheKey:function(e,t,r,n){if(rm(r.store))return r.store.makeCacheKey(e,Yd(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=Kp((function(e){return Jf(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize||Id["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(rm(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new nm},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,n=e.rootId,i=void 0===n?"ROOT_QUERY":n,o=e.variables,a=e.returnPartialData,s=void 0===a||a,c=e.canonizeResults,l=void 0===c?this.config.canonizeResults:c,u=this.config.cache.policies;o=Te(Te({},sp(op(r))),o);var d,p=Vd(i),h=this.executeSelectionSet({selectionSet:ap(r).selectionSet,objectOrReference:p,enclosingRef:p,context:Te({store:t,query:r,policies:u,variables:o,varString:Ud(o),canonizeResults:l},Vf(r,this.config.fragments))});if(h.missing&&(d=[new Rf(am(h.missing),h.missing,r,o)],!s))throw d[0];return{result:h.result,complete:!d,missing:d}},e.prototype.isFresh=function(e,t,r,n){if(rm(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,r=e.selectionSet,n=e.objectOrReference,i=e.enclosingRef,o=e.context;if(Yd(n)&&!o.policies.rootTypenamesById[n.__ref]&&!o.store.has(n.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(n.__ref," object")};var a,s=o.variables,c=o.policies,l=o.store.getFieldValue(n,"__typename"),u=[],d=new hh;function p(e,t){var r;return e.missing&&(a=d.merge(a,((r={})[t]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof l&&!c.rootIdsByTypename[l]&&u.push({__typename:l});var h=new Set(r.selections);h.forEach((function(e){var r,f;if(Ju(e,s))if(ep(e)){var m=c.readField({fieldName:e.name.value,field:e,variables:o.variables,from:n},o),g=Jd(e);void 0===m?ah.added(e)||(a=d.merge(a,((r={})[g]="Can't find field '".concat(e.name.value,"' on ").concat(Yd(n)?n.__ref+" object":"object "+JSON.stringify(n,null,2)),r))):Qp(m)?m.length>0&&(m=p(t.executeSubSelectedArray({field:e,array:m,enclosingRef:i,context:o}),g)):e.selectionSet?null!=m&&(m=p(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:m,enclosingRef:Yd(m)?m:i,context:o}),g)):o.canonizeResults&&(m=t.canon.pass(m)),void 0!==m&&u.push(((f={})[g]=m,f))}else{var v=md(e,o.lookupFragment);if(!v&&e.kind===iu.FRAGMENT_SPREAD)throw jl(9,e.name.value);v&&c.fragmentMatches(v,l)&&v.selectionSet.selections.forEach(h.add,h)}}));var f={result:dh(u),missing:a},m=o.canonizeResults?this.canon.admit(f):Zh(f);return m.result&&this.knownResults.set(m.result,r),m},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,o=e.enclosingRef,a=e.context,s=new hh;function c(e,r){var n;return e.missing&&(t=s.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map((function(e,t){return null===e?null:Qp(e)?c(r.executeSubSelectedArray({field:n,array:e,enclosingRef:o,context:a}),t):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:Yd(e)?e:o,context:a}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach((function(r){pd(r)&&(Ml(!Yd(r),10,function(e,t){return Yd(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,r),t.name.value),Object.values(r).forEach(n.add,n))}))}}(a.store,n,e),e)})),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}();function am(e){try{JSON.stringify(e,(function(e,t){if("string"==typeof t)throw t;return t}))}catch(e){return e}}var sm=new Ep,cm=new WeakMap;function lm(e){var t=cm.get(e);return t||cm.set(e,t={vars:new Set,dep:zp()}),t}function um(e){lm(e).vars.forEach((function(t){return t.forgetCache(e)}))}function dm(e){var t=new Set,r=new Set,n=function n(o){if(arguments.length>0){if(e!==o){e=o,t.forEach((function(e){lm(e).dep.dirty(n),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)}));var a=Array.from(r);r.clear(),a.forEach((function(t){return t(e)}))}}else{var s=sm.getValue();s&&(i(s),lm(s).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var i=n.attachCache=function(e){return t.add(e),lm(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}var pm=Object.create(null);function hm(e){var t=JSON.stringify(e);return pm[t]||(pm[t]=Object.create(null))}function fm(e){var t=hm(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},i=r.keyObject=gm(e,(function(e){var i=bm(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&Mf.call(t,e[0])&&(i=bm(t,e,ym)),Ml(void 0!==i,4,e.join("."),t),i}));return"".concat(r.typename,":").concat(JSON.stringify(i))})}function mm(e){var t=hm(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,a=gm(e,(function(e){var r=e[0],o=r.charAt(0);if("@"!==o)if("$"!==o){if(t)return bm(t,e)}else{var a=r.slice(1);if(i&&Mf.call(i,a)){var s=e.slice(0);return s[0]=a,bm(i,s)}}else if(n&&eh(n.directives)){var c=r.slice(1),l=n.directives.find((function(e){return e.name.value===c})),u=l&&Xd(l,i);return u&&bm(u,e.slice(1))}})),s=JSON.stringify(a);return(t||"{}"!==s)&&(o+=":"+s),o})}function gm(e,t){var r=new hh;return vm(e).reduce((function(e,n){var i,o=t(n);if(void 0!==o){for(var a=n.length-1;a>=0;--a)(i={})[n[a]]=o,o=i;e=r.merge(e,o)}return e}),Object.create(null))}function vm(e){var t=hm(e);if(!t.paths){var r=t.paths=[],n=[];e.forEach((function(t,i){Qp(t)?(vm(t).forEach((function(e){return r.push(n.concat(e))})),n.length=0):(n.push(t),Qp(e[i+1])||(r.push(n.slice(0)),n.length=0))}))}return t.paths}function ym(e,t){return e[t]}function bm(e,t,r){return r=r||ym,_m(t.reduce((function e(t,n){return Qp(t)?t.map((function(t){return e(t,n)})):t&&r(t,n)}),e))}function _m(e){return pd(e)?Qp(e)?e.map(_m):gm(Object.keys(e).sort(),(function(t){return bm(e,t)})):e}function Em(e){return void 0!==e.args?e.args:e.field?Xd(e.field,e.variables):null}var wm=function(){},xm=function(e,t){return t.fieldName},Lm=function(e,t,r){return(0,r.mergeObjects)(e,t)},Om=function(e,t){return t},Sm=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=Te({dataIdFromObject:Ff},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,n=this,i=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var o,a=t&&t.storeObject||e,s=Te(Te({},t),{typename:i,storeObject:a,readField:t&&t.readField||function(){var e=Pm(arguments,a);return n.readField(e,{store:n.cache.data,variables:e.variables})}}),c=i&&this.getTypePolicy(i),l=c&&c.keyFn||this.config.dataIdFromObject;l;){var u=l(Te(Te({},e),a),s);if(!Qp(u)){o=u;break}l=fm(u)}return o=o?String(o):void 0,s.keyObject?[o,s.keyObject]:[o]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(r){var n=e[r],i=n.queryType,o=n.mutationType,a=n.subscriptionType,s=Pe(n,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),o&&t.setRootTypename("Mutation",r),a&&t.setRootTypename("Subscription",r),Mf.call(t.toBeAdded,r)?t.toBeAdded[r].push(s):t.toBeAdded[r]=[s]}))},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?Lm:!1===t?Om:e.merge}a(n,t.merge),n.keyFn=!1===i?wm:Qp(i)?fm(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEach((function(t){var n=r.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,c=i.read,l=i.merge;n.keyFn=!1===s?xm:Qp(s)?mm(s):"function"==typeof s?s:n.keyFn,"function"==typeof c&&(n.read=c),a(n,l)}n.read&&n.merge&&(n.keyFn=n.keyFn||xm)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&(Ml(!n||n===e,5,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(r){t.getSupertypeSet(r,!0),e[r].forEach((function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(Gf);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!Mf.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var n=this.supertypeMap.get(e);!n&&this.fuzzySubtypes.size&&(n=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((function(r,i){if(r.test(e)){var o=t.supertypeMap.get(i);o&&o.forEach((function(e){return n.add(e)}))}}))),n&&n.size&&n.forEach((function(e){var n=t.getTypePolicy(e),i=n.fields,o=Pe(n,["fields"]);Object.assign(r,o),Object.assign(r.fields,i)}))}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach((function(r){t.updateTypePolicy(e,r)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],c=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},l=!(!r||!this.fuzzySubtypes.size),u=!1,d=0;d<s.length;++d){var p=s[d];if(p.has(o))return a.has(o)||(u&&!1!==globalThis.__DEV__&&Ml.warn(6,t,o),a.add(o)),!0;p.forEach(c),l&&d===s.length-1&&Hf(e.selectionSet,r,n)&&(l=!1,u=!0,this.fuzzySubtypes.forEach((function(e,r){var n=t.match(e);n&&n[0]===t&&c(r)})))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!(!r||!r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n,!1),o=i&&i.keyFn;if(o&&r)for(var a={typename:r,fieldName:n,field:e.field||null,variables:e.variables},s=Em(e);o;){var c=o(s,a);if(!Qp(c)){t=c||n;break}o=mm(c)}return void 0===t&&(t=e.field?function(e,t){var r=null;e.directives&&(r={},e.directives.forEach((function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach((function(n){var i=n.name,o=n.value;return Wd(r[e.name.value],i,o,t)}))})));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach((function(e){var r=e.name,i=e.value;return Wd(n,r,i,t)}))),qd(e.name.value,n,r)}(e.field,e.variables):qd(n,Em(e))),!1===t?n:n===Uf(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),o=Uf(i),a=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,o,!1),c=s&&s.read;if(c){var l=Tm(this,r,e,t,t.store.getStorage(Yd(r)?r.__ref:r,i));return sm.withValue(this.cache,c,[a,l])}return a}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t,!1),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var o=r.field,a=r.typename,s=r.merge;return s===Lm?Im(n.store)(e,t):s===Om?t:(n.overwrite&&(e=void 0),s(e,t,Tm(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function Tm(e,t,r,n,i){var o=e.getStoreFieldName(r),a=Uf(o),s=r.variables||n.variables,c=n.store,l=c.toReference,u=c.canRead;return{args:Em(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:Yd,toReference:l,storage:i,cache:e.cache,canRead:u,readField:function(){return e.readField(Pm(arguments,t,s),n)},mergeObjects:Im(n.store)}}function Pm(e,t,r){var n,i=e[0],o=e[1],a=e.length;return"string"==typeof i?n={fieldName:i,from:a>1?o:t}:(n=Te({},i),Mf.call(n,"from")||(n.from=t)),!1!==globalThis.__DEV__&&void 0===n.from&&!1!==globalThis.__DEV__&&Ml.warn(7,Nl(Array.from(e))),void 0===n.variables&&(n.variables=r),n}function Im(e){return function(t,r){if(Qp(t)||Qp(r))throw jl(8);if(pd(t)&&pd(r)){var n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if(Yd(t)&&zf(r))return e.merge(t.__ref,r),t;if(zf(t)&&Yd(r))return e.merge(t,r.__ref),r;if(zf(t)&&zf(r))return Te(Te({},t),r)}return r}}function Am(e,t,r){var n="".concat(t).concat(r),i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:Te(Te({},e),{clientOnly:t,deferred:r})),i}var Cm=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,n=t.query,i=t.result,o=t.dataId,a=t.variables,s=t.overwrite,c=rp(n),l=new hh;a=Te(Te({},sp(c)),a);var u=Te(Te({store:e,written:Object.create(null),merge:function(e,t){return l.merge(e,t)},variables:a,varString:Ud(a)},Vf(n,this.fragments)),{overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),d=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:u});if(!Yd(d))throw jl(11,i);return u.incomingById.forEach((function(t,n){var i=t.storeObject,o=t.mergeTree,a=t.fieldNodeSet,s=Vd(n);if(o&&o.map.size){var c=r.applyMerges(o,s,i,u);if(Yd(c))return;i=c}if(!1!==globalThis.__DEV__&&!u.overwrite){var l=Object.create(null);a.forEach((function(e){e.selectionSet&&(l[e.name.value]=!0)})),Object.keys(i).forEach((function(e){(function(e){return!0===l[Uf(e)]})(e)&&!function(e){var t=o&&o.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,r,n){var i=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},o=i(e);if(o){var a=i(t);if(a&&!Yd(o)&&!Lf(o,a)&&!Object.keys(o).every((function(e){return void 0!==n.getFieldValue(a,e)}))){var s=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),c=Uf(r),l="".concat(s,".").concat(c);if(!Fm.has(l)){Fm.add(l);var u=[];Qp(o)||Qp(a)||[o,a].forEach((function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||u.includes(t)||u.push(t)})),!1!==globalThis.__DEV__&&Ml.warn(14,c,s,u.length?"either ensure all objects of type "+u.join(" and ")+" have an ID or a custom merge function, or ":"",l,Te({},o),Te({},a))}}}}(s,i,e,u.store)}))}e.merge(n,i)})),e.retain(d.__ref),d},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,o=e.context,a=e.mergeTree,s=this.cache.policies,c=Object.create(null),l=r&&s.rootTypenamesById[r]||Qd(n,i,o.fragmentMap)||r&&o.store.get(r,"__typename");"string"==typeof l&&(c.__typename=l);var u=function(){var e=Pm(arguments,c,o.variables);if(Yd(e.from)){var t=o.incomingById.get(e.from.__ref);if(t){var r=s.readField(Te(Te({},e),{from:t.storeObject}),o);if(void 0!==r)return r}}return s.readField(e,o)},d=new Set;this.flattenFields(i,n,o,l).forEach((function(e,r){var i,o=Jd(r),p=n[o];if(d.add(r),void 0!==p){var h=s.getStoreFieldName({typename:l,fieldName:r.name.value,field:r,variables:e.variables}),f=Dm(a,h),m=t.processFieldValue(p,r,r.selectionSet?Am(e,!1,!1):e,f),g=void 0;r.selectionSet&&(Yd(m)||zf(m))&&(g=u("__typename",m));var v=s.getMergeFunction(l,r.name.value,g);v?f.info={field:r,typename:l,merge:v}:Mm(a,h),c=e.merge(c,((i={})[h]=m,i))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||ah.added(r)||s.getReadFunction(l,r.name.value)||!1!==globalThis.__DEV__&&Ml.error(12,Jd(r),n)}));try{var p=s.identify(n,{typename:l,selectionSet:i,fragmentMap:o.fragmentMap,storeObject:c,readField:u}),h=p[0],f=p[1];r=r||h,f&&(c=o.merge(c,f))}catch(e){if(!r)throw e}if("string"==typeof r){var m=Vd(r),g=o.written[r]||(o.written[r]=[]);if(g.indexOf(i)>=0)return m;if(g.push(i),this.reader&&this.reader.isFresh(n,m,i,o))return m;var v=o.incomingById.get(r);return v?(v.storeObject=o.merge(v.storeObject,c),v.mergeTree=Nm(v.mergeTree,a),d.forEach((function(e){return v.fieldNodeSet.add(e)}))):o.incomingById.set(r,{storeObject:c,mergeTree:Rm(a)?void 0:a,fieldNodeSet:d}),m}return c},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?Qp(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,r,Dm(n,o));return Mm(n,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?jh(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=Qd(t,e,r.fragmentMap));var i=new Map,o=this.cache.policies,a=new ad(!1);return function e(s,c){var l=a.lookup(s,c.clientOnly,c.deferred);l.visited||(l.visited=!0,s.selections.forEach((function(a){if(Ju(a,r.variables)){var s=c.clientOnly,l=c.deferred;if(s&&l||!eh(a.directives)||a.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var n=Xd(e,r.variables);n&&!1===n.if||(l=!0)}})),ep(a)){var u=i.get(a);u&&(s=s&&u.clientOnly,l=l&&u.deferred),i.set(a,Am(r,s,l))}else{var d=md(a,r.lookupFragment);if(!d&&a.kind===iu.FRAGMENT_SPREAD)throw jl(13,a.name.value);d&&o.fragmentMatches(d,n,t,r.variables)&&e(d.selectionSet,Am(r,s,l))}}})))}(e,r),i},e.prototype.applyMerges=function(e,t,r,n,i){var o,a=this;if(e.map.size&&!Yd(r)){var s,c=Qp(r)||!Yd(t)&&!zf(t)?void 0:t,l=r;c&&!i&&(i=[Yd(c)?c.__ref:c]);var u=function(e,t){return Qp(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var r=u(c,t),o=u(l,t);if(void 0!==o){i&&i.push(t);var d=a.applyMerges(e,r,o,n,i);d!==o&&(s=s||new Map).set(t,d),i&&Ml(i.pop()===t)}})),s&&(r=Qp(l)?l.slice(0):Te({},l),s.forEach((function(e,t){r[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&(o=n.store).getStorage.apply(o,i)):r},e}(),km=[];function Dm(e,t){var r=e.map;return r.has(t)||r.set(t,km.pop()||{map:new Map}),r.get(t)}function Nm(e,t){if(e===t||!t||Rm(t))return e;if(!e||Rm(e))return t;var r=e.info&&t.info?Te(Te({},e.info),t.info):e.info||t.info,n=e.map.size&&t.map.size,i={info:r,map:n?new Map:e.map.size?e.map:t.map};if(n){var o=new Set(t.map.keys());e.map.forEach((function(e,r){i.map.set(r,Nm(e,t.map.get(r))),o.delete(r)})),o.forEach((function(r){i.map.set(r,Nm(t.map.get(r),e.map.get(r)))}))}return i}function Rm(e){return!e||!(e.info||e.map.size)}function Mm(e,t){var r=e.map,n=r.get(t);n&&Rm(n)&&(km.push(n),r.delete(t))}var jm,Fm=new Set,Zm=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new Xp(ah),r.assumeImmutableResults=!0,r.makeVar=dm,r.txCount=0,r.config=function(e){return qh(Zf,e)}(t),r.addTypename=!!r.config.addTypename,r.policies=new Sm({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return Se(t,e),t.prototype.init=function(){var e=this.data=new $f.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new Cm(this,this.storeReader=new om({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Bf(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=Kp((function(e,r){return t.broadcastWatch(e,r)}),{max:this.config.resultCacheMaxSize||Id["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(rm(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,Ud({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,r=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(Te(Te({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r})).result||null}catch(e){if(e instanceof Rf)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(Mf.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(Te(Te({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||function(e){lm(e).vars.forEach((function(t){return t.attachCache(e)}))}(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&um(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){var t;Ud.reset(),Jp.reset(),this.addTypenameTransform.resetCache(),null===(t=this.config.fragments)||void 0===t||t.resetCaches();var r=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),r},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(Yd(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&Ml.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(Mf.call(e,"id"))return!1;e=Te(Te({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),Ud.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),um(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,n=e.update,i=e.optimistic,o=void 0===i||i,a=e.removeOptimistic,s=e.onWatchUpdated,c=function(e){var i=r,o=i.data,a=i.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=o,r.optimisticData=a}},l=new Set;return s&&!this.txCount&&this.broadcastWatches(Te(Te({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,c):!1===o?c(this.data):c(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),s&&l.size?(this.broadcastWatches(Te(Te({},e),{onWatchUpdated:function(e,t){var r=s.call(this,e,t);return!1!==r&&l.delete(e),r}})),l.size&&l.forEach((function(e){return r.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(r){return t.maybeBroadcastWatch(r,e)}))},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,n,r))||r&&Lf(r.result,n.result)||e.callback(e.lastDiff=n,r)},t}(Nf);function Bm(e){return!!e&&e<7}!1!==globalThis.__DEV__&&(Zm.prototype.getMemoryInternals=Dd),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(jm||(jm={}));var Gm=Object.assign,Um=Object.hasOwnProperty,Hm=function(e){function t(t){var r=t.queryManager,n=t.queryInfo,i=t.options,o=e.call(this,(function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=Vm)}catch(e){}var r=!o.observers.size;o.observers.add(e);var n=o.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(n.result),r&&o.reobserve().catch((function(){})),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}}))||this;o.observers=new Set,o.subscriptions=new Set,o.queryInfo=n,o.queryManager=r,o.waitForOwnResult=Wm(i.fetchPolicy),o.isTornDown=!1,o.subscribeToMore=o.subscribeToMore.bind(o);var a=r.defaultOptions.watchQuery,s=(void 0===a?{}:a).fetchPolicy,c=void 0===s?"cache-first":s,l=i.fetchPolicy,u=void 0===l?c:l,d=i.initialFetchPolicy,p=void 0===d?"standby"===u?c:u:d;o.options=Te(Te({},i),{initialFetchPolicy:p,fetchPolicy:u}),o.queryId=n.queryId||r.generateQueryId();var h=rp(o.query);return o.queryName=h&&h.name&&h.name.value,o}return Se(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:r},i=e.subscribe(n)}))},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||jm.ready,n=Te(Te({},t),{loading:Bm(r),networkStatus:r}),i=this.options.fetchPolicy,o=void 0===i?"cache-first":i;if(Wm(o)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var a=this.queryInfo.getDiff();(a.complete||this.options.returnPartialData)&&(n.data=a.result),Lf(n.data,{})&&(n.data=void 0),a.complete?(delete n.partial,!a.complete||n.networkStatus!==jm.loading||"cache-first"!==o&&"cache-only"!==o||(n.networkStatus=jm.ready,n.loading=!1)):n.partial=!0,!1===globalThis.__DEV__||a.complete||this.options.partialRefetch||n.loading||n.data||n.error||Ym(a.missing)}return e&&this.updateLastResult(n),n},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||(this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!Af(this.query,this.last.result,e,this.variables):!Lf(this.last.result,e))||t&&!Lf(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||Lf(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0},n=this.options.fetchPolicy;if(r.fetchPolicy="cache-and-network"===n?n:"no-cache"===n?"no-cache":"network-only",!1!==globalThis.__DEV__&&e&&Um.call(e,"variables")){var i=op(this.query),o=i.variableDefinitions;o&&o.some((function(e){return"variables"===e.variable.name.value}))||!1!==globalThis.__DEV__&&Ml.warn(20,e,(null===(t=i.name)||void 0===t?void 0:t.value)||i)}return e&&!Lf(this.options.variables,e)&&(r.variables=this.options.variables=Te(Te({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,jm.refetch)},t.prototype.fetchMore=function(e){var t=this,r=Te(Te({},e.query?e:Te(Te(Te(Te({},this.options),{query:this.options.query}),e),{variables:Te(Te({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});r.query=this.transformDocument(r.query);var n=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):r.query;var i=this.queryInfo,o=i.networkStatus;i.networkStatus=jm.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var a=new Set,s=null==e?void 0:e.updateQuery,c="no-cache"!==this.options.fetchPolicy;return c||Ml(s,21),this.queryManager.fetchQuery(n,r,jm.fetchMore).then((function(l){if(t.queryManager.removeQuery(n),i.networkStatus===jm.fetchMore&&(i.networkStatus=o),c)t.queryManager.cache.batch({update:function(n){var i=e.updateQuery;i?n.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},(function(e){return i(e,{fetchMoreResult:l.data,variables:r.variables})})):n.writeQuery({query:r.query,variables:r.variables,data:l.data})},onWatchUpdated:function(e){a.add(e.query)}});else{var u=t.getLast("result"),d=s(u.data,{fetchMoreResult:l.data,variables:r.variables});t.reportResult(Te(Te({},u),{data:d}),t.variables)}return l})).finally((function(){c&&!a.has(t.query)&&zm(t)}))},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery((function(e,t){var i=t.variables;return n(e,{subscriptionData:r,variables:i})}))},error:function(t){e.onError?e.onError(t):!1!==globalThis.__DEV__&&Ml.error(22,t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=qh(this.options,e||{});Gm(this.options,t)},t.prototype.setVariables=function(e){return Lf(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},jm.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,r=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(t.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,i=t.initialFetchPolicy,o=void 0===i?n:i;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:o}):t.fetchPolicy="variables-changed"===e?o:t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,r){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t,r)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(r&&this.hasObservers()){if(!t||t.interval!==r){Ml(r,23),(t||(this.pollingInfo={})).interval=r;var n=function(){var t,r;e.pollingInfo&&(Bm(e.queryInfo.networkStatus)||(null===(r=(t=e.options).skipPollAttempt)||void 0===r?void 0:r.call(t))?i():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},jm.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var r=this.getLastError();return r&&this.last&&!Lf(t,this.last.variables)&&(r=void 0),this.last=Te({result:this.queryManager.assumeImmutableResults?e:jh(e),variables:t},r?{error:r}:null)},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var n=t===jm.refetch||t===jm.fetchMore||t===jm.poll,i=this.options.variables,o=this.options.fetchPolicy,a=qh(this.options,e||{}),s=n?a:Gm(this.options,a),c=this.transformDocument(s.query);this.lastQuery=c,n||(this.updatePolling(),!e||!e.variables||Lf(e.variables,i)||"standby"===s.fetchPolicy||s.fetchPolicy!==o&&"function"!=typeof s.nextFetchPolicy||(this.applyNextFetchPolicy("variables-changed",s),void 0===t&&(t=jm.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=Wm(s.fetchPolicy));var l=function(){r.concast===p&&(r.waitForOwnResult=!1)},u=s.variables&&Te({},s.variables),d=this.fetch(s,t,c),p=d.concast,h=d.fromLink,f={next:function(e){Lf(r.variables,u)&&(l(),r.reportResult(e,u))},error:function(e){Lf(r.variables,u)&&(lf(e)||(e=new uf({networkError:e})),l(),r.reportError(e,u))}};return n||!h&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=p,this.observer=f),p.addObserver(f),p},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},t.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.last;this.resetLastResults();var n=this.subscribe.apply(this,e);return this.last=r,n},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this.getLastError(),n=this.isDifferentFromLastResult(e,t);(r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(r||n)&&Bh(this.observers,"next",e)},t.prototype.reportError=function(e,t){var r=Te(Te({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:jm.error,loading:!1});this.updateLastResult(r,t),Bh(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t}(Dh);function zm(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,t){return this.nextFetchPolicy=n,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(e,t):r}}):e.reobserve()}function Vm(e){!1!==globalThis.__DEV__&&Ml.error(24,e.message,e.stack)}function Ym(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&Ml.debug(25,e)}function Wm(e){return"network-only"===e||"no-cache"===e||"standby"===e}Uh(Hm);var Km=new(cd?WeakMap:Map);function $m(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return Km.set(e,(Km.get(e)+1)%1e15),r.apply(this,arguments)})}function qm(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Xm=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;Km.has(r)||(Km.set(r,0),$m(r,"evict"),$m(r,"modify"),$m(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||jm.loading;return this.variables&&this.networkStatus!==jm.loading&&!Lf(this.variables,e.variables)&&(t=jm.setVariables),Lf(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){qm(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&Lf(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(e);return this.updateLastDiff(r,e),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,r=this,n=this.lastDiff&&this.lastDiff.diff;e&&!e.complete&&(null===(t=this.observableQuery)||void 0===t?void 0:t.getLastError())||(this.updateLastDiff(e),this.dirty||Lf(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return r.notify()}),0))))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():zm(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;qm(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Bm(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var n=Te(Te({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&Lf(n,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=n))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===Km.get(this.cache)&&Lf(t,r.variables)&&Lf(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i=this,o=new hh,a=eh(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&eh(e.incremental)){var s=Wh(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var c=this.getDiff();e.data=o.merge(c.result,e.data)}this.graphQLErrors=a,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(Jm(e,r.errorPolicy)?this.cache.performTransaction((function(o){if(i.shouldWrite(e,r.variables))o.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),i.lastWrite={result:e,variables:r.variables,dmCount:Km.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete)return void(e.data=i.lastDiff.diff.result);var a=i.getDiffOptions(r.variables),s=o.diff(a);!i.stopped&&Lf(i.variables,r.variables)&&i.updateWatch(r.variables),i.updateLastDiff(s,a),s.complete&&(e.data=s.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=jm.ready},e.prototype.markError=function(e){return this.networkStatus=jm.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function Jm(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!Kh(e);return!n&&r&&e.data&&(n=!0),n}var Qm=Object.prototype.hasOwnProperty,eg=Object.create(null),tg=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new Sd(Id["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new ad(!1);var r=new Xp((function(e){return t.cache.transformDocument(e)}),{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults;var n=e.documentTransform;this.documentTransform=n?r.concat(n).concat(r):r,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,r){e.stopQueryNoBroadcast(r)})),this.cancelPendingFetches(jl(26))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return Ce(this,arguments,void 0,(function(e){var t,r,n,i,o,a,s,c=e.mutation,l=e.variables,u=e.optimisticResponse,d=e.updateQueries,p=e.refetchQueries,h=void 0===p?[]:p,f=e.awaitRefetchQueries,m=void 0!==f&&f,g=e.update,v=e.onQueryUpdated,y=e.fetchPolicy,b=void 0===y?(null===(a=this.defaultOptions.mutate)||void 0===a?void 0:a.fetchPolicy)||"network-only":y,_=e.errorPolicy,E=void 0===_?(null===(s=this.defaultOptions.mutate)||void 0===s?void 0:s.errorPolicy)||"none":_,w=e.keepRootFields,x=e.context;return ke(this,(function(e){switch(e.label){case 0:return Ml(c,27),Ml("network-only"===b||"no-cache"===b,28),t=this.generateMutationId(),c=this.cache.transformForLink(this.transform(c)),r=this.getDocumentInfo(c).hasClientExports,l=this.getVariables(c,l),r?[4,this.localState.addExportedVariables(c,l,x)]:[3,2];case 1:l=e.sent(),e.label=2;case 2:return n=this.mutationStore&&(this.mutationStore[t]={mutation:c,variables:l,loading:!0,error:null}),i=u&&this.markMutationOptimistic(u,{mutationId:t,document:c,variables:l,fetchPolicy:b,errorPolicy:E,context:x,updateQueries:d,update:g,keepRootFields:w}),this.broadcastQueries(),o=this,[2,new Promise((function(e,r){return Gh(o.getObservableFromLink(c,Te(Te({},x),{optimisticResponse:i?u:void 0}),l,{},!1),(function(e){if(Kh(e)&&"none"===E)throw new uf({graphQLErrors:$h(e)});n&&(n.loading=!1,n.error=null);var r=Te({},e);return"function"==typeof h&&(h=h(r)),"ignore"===E&&Kh(r)&&delete r.errors,o.markMutationResult({mutationId:t,result:r,document:c,variables:l,fetchPolicy:b,errorPolicy:E,context:x,update:g,updateQueries:d,awaitRefetchQueries:m,refetchQueries:h,removeOptimistic:i?t:void 0,onQueryUpdated:v,keepRootFields:w})})).subscribe({next:function(t){o.broadcastQueries(),"hasNext"in t&&!1!==t.hasNext||e(t)},error:function(e){n&&(n.loading=!1,n.error=e),i&&o.cache.removeOptimistic(t),o.broadcastQueries(),r(e instanceof uf?e:new uf({networkError:e}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var n=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&Jm(n,e.errorPolicy)){if(Vh(n)||i.push({result:n.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),Vh(n)&&eh(n.incremental)){var a=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),s=void 0;a.result&&(s=Wh(a.result,n)),void 0!==s&&(n.data=s,i.push({result:s,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach((function(e,o){var a=e.observableQuery,s=a&&a.queryName;if(s&&Qm.call(c,s)){var l=c[s],u=r.queries.get(o),d=u.document,p=u.variables,h=t.diff({query:d,variables:p,returnPartialData:!0,optimistic:!1}),f=h.result;if(h.complete&&f){var m=l(f,{mutationResult:n,queryName:d&&np(d)||void 0,queryVariables:p});m&&i.push({result:m,dataId:"ROOT_QUERY",query:d,variables:p})}}}))}if(i.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach((function(e){return t.write(e)}));var a,s=e.update,c=!(Vh(a=n)||function(e){return"hasNext"in e&&"data"in e}(a))||Vh(n)&&!n.hasNext;if(s){if(!o){var l=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});l.complete&&("incremental"in(n=Te(Te({},n),{data:l.result}))&&delete n.incremental,"hasNext"in n&&delete n.hasNext)}c&&s(t,n,{context:e.context,variables:e.variables})}o||e.keepRootFields||!c||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return l.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).then((function(){return n}))}return Promise.resolve(n)},e.prototype.markMutationOptimistic=function(e,t){var r=this,n="function"==typeof e?e(t.variables,{IGNORE:eg}):e;return n!==eg&&(this.cache.recordOptimisticTransaction((function(e){try{r.markMutationResult(Te(Te({},t),{result:{data:n}}),e)}catch(e){!1!==globalThis.__DEV__&&Ml.error(e)}}),t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(e,t,r).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:ed(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:Qu(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:oh([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:sp(rp(e)),asQuery:Te(Te({},e),{definitions:e.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?Te(Te({},e),{operation:"query"}):e}))})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return Te(Te({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=Te(Te({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new Xm(this),n=new Hm({queryManager:this,queryInfo:r,options:e});return n.lastQuery=t,this.queries.set(n.queryId,r),r.init({document:t,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(e,t){var r=this;return void 0===t&&(t=this.generateQueryId()),Ml(e.query,29),Ml("Document"===e.query.kind,30),Ml(!e.returnPartialData,31),Ml(!e.pollInterval,32),this.fetchQuery(t,Te(Te({},e),{query:this.transform(e.query)})).finally((function(){return r.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(jl(33)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=jm.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,n=new Map,i=new Set;return Array.isArray(e)&&e.forEach((function(e){var r;"string"==typeof e?n.set(e,!1):pd(r=e)&&"Document"===r.kind&&Array.isArray(r.definitions)?n.set(t.transform(e),!1):pd(e)&&e.query&&i.add(e)})),this.queries.forEach((function(t,i){var o=t.observableQuery,a=t.document;if(o){if("all"===e)return void r.set(i,o);var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&n.has(s)||a&&n.has(a))&&(r.set(i,o),s&&n.set(s,!0),a&&n.set(a,!0))}})),i.size&&i.forEach((function(e){var n=Dl("legacyOneTimeQuery"),i=t.getQuery(n).init({document:e.query,variables:e.variables}),o=new Hm({queryManager:t,queryInfo:i,options:Te(Te({},e),{fetchPolicy:"network-only"})});Ml(o.queryId===n),i.setObservableQuery(o),r.set(n,o)})),!1!==globalThis.__DEV__&&n.size&&n.forEach((function(e,t){e||!1!==globalThis.__DEV__&&Ml.warn("string"==typeof t?34:35,t)})),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach((function(n,i){var o=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,o=void 0===i?"none":i,a=e.variables,s=e.context,c=void 0===s?{}:s,l=e.extensions,u=void 0===l?{}:l;r=this.transform(r),a=this.getVariables(r,a);var d=function(e){return t.getObservableFromLink(r,c,e,u).map((function(i){"no-cache"!==n&&(Jm(i,o)&&t.cache.write({query:r,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=Kh(i),s=function(e){return!!e.extensions&&Array.isArray(e.extensions[cf])}(i);if(a||s){var c={};if(a&&(c.graphQLErrors=i.errors),s&&(c.protocolErrors=i.extensions[cf]),"none"===o||s)throw new uf(c)}return"ignore"===o&&delete i.errors,i}))};if(this.getDocumentInfo(r).hasClientExports){var p=this.localState.addExportedVariables(r,a,c).then(d);return new Dh((function(e){var t=null;return p.then((function(r){return t=r.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return d(a)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n,i){var o,a,s=this;void 0===i&&(i=null!==(o=null==t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var c=this.getDocumentInfo(e),l=c.serverQuery,u=c.clientQuery;if(l){var d=this.inFlightLinkObservables,p=this.link,h={query:l,variables:r,operationName:np(l)||void 0,context:this.prepareContext(Te(Te({},t),{forceFetch:!i})),extensions:n};if(t=h.context,i){var f=Jp(l),m=Ud(r),g=d.lookup(f,m);if(!(a=g.observable)){var v=new zh([af(p,h)]);a=g.observable=v,v.beforeNext((function(){d.remove(f,m)}))}}else a=new zh([af(p,h)])}else a=new zh([Dh.of({data:{}})]),t=this.prepareContext(t);return u&&(a=Gh(a,(function(e){return s.localState.runResolvers({document:u,remoteResult:e,context:t,variables:r})}))),a},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return Gh(this.getObservableFromLink(i,r.context,r.variables),(function(o){var a=$h(o),s=a.length>0,c=r.errorPolicy;if(n>=e.lastRequestId){if(s&&"none"===c)throw e.markError(new uf({graphQLErrors:a}));e.markResult(o,i,r,t),e.markReady()}var l={data:o.data,loading:!1,networkStatus:jm.ready};return s&&"none"===c&&(l.data=void 0),s&&"ignore"!==c&&(l.errors=a,l.networkStatus=jm.error),l}),(function(t){var r=lf(t)?t:new uf({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r}))},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i=this;void 0===r&&(r=jm.loading),void 0===n&&(n=t.query);var o,a,s=this.getVariables(n,t.variables),c=this.getQuery(e),l=this.defaultOptions.watchQuery,u=t.fetchPolicy,d=void 0===u?l&&l.fetchPolicy||"cache-first":u,p=t.errorPolicy,h=void 0===p?l&&l.errorPolicy||"none":p,f=t.returnPartialData,m=void 0!==f&&f,g=t.notifyOnNetworkStatusChange,v=void 0!==g&&g,y=t.context,b=void 0===y?{}:y,_=Object.assign({},t,{query:n,variables:s,fetchPolicy:d,errorPolicy:h,returnPartialData:m,notifyOnNetworkStatusChange:v,context:b}),E=function(e){_.variables=e;var n=i.fetchQueryByPolicy(c,_,r);return"standby"!==_.fetchPolicy&&n.sources.length>0&&c.observableQuery&&c.observableQuery.applyNextFetchPolicy("after-fetch",t),n},w=function(){return i.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,(function(e){w(),setTimeout((function(){return o.cancel(e)}))})),this.getDocumentInfo(_.query).hasClientExports)o=new zh(this.localState.addExportedVariables(_.query,_.variables,_.context).then(E).then((function(e){return e.sources}))),a=!0;else{var x=E(_.variables);a=x.fromLink,o=new zh(x.sources)}return o.promise.then(w,w),{concast:o,fromLink:a}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?Dl("refetchQueries"):void 0:a,c=e.onQueryUpdated,l=new Map;n&&this.getObservableQueries(n).forEach((function(e,r){l.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})}));var u=new Map;return r&&this.cache.batch({update:r,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof Xm&&e.watcher.observableQuery;if(n){if(c){l.delete(n.queryId);var i=c(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&u.set(n,i),i}null!==c&&l.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),l.size&&l.forEach((function(e,r){var n,i=e.oq,o=e.lastDiff,a=e.diff;if(c){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}n=c(i,a,o)}c&&!0!==n||(n=i.refetch()),!1!==n&&u.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)})),s&&this.cache.removeOptimistic(s),u},e.prototype.fetchQueryByPolicy=function(e,t,r){var n=this,i=t.query,o=t.variables,a=t.fetchPolicy,s=t.refetchWritePolicy,c=t.errorPolicy,l=t.returnPartialData,u=t.context,d=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:i,variables:o,networkStatus:r});var h=function(){return e.getDiff()},f=function(t,r){void 0===r&&(r=e.networkStatus||jm.loading);var a=t.result;!1===globalThis.__DEV__||l||Lf(a,{})||Ym(t.missing);var s=function(e){return Dh.of(Te({data:e,loading:Bm(r),networkStatus:r},t.complete?null:{partial:!0}))};return a&&n.getDocumentInfo(i).hasForcedResolvers?n.localState.runResolvers({document:i,remoteResult:{data:a},context:u,variables:o,onlyRunForcedResolvers:!0}).then((function(e){return s(e.data||void 0)})):"none"===c&&r===jm.refetch&&Array.isArray(t.missing)?s(void 0):s(a)},m="no-cache"===a?0:r===jm.refetch&&"merge"!==s?1:2,g=function(){return n.getResultsFromLink(e,m,{query:i,variables:o,context:u,fetchPolicy:a,errorPolicy:c})},v=d&&"number"==typeof p&&p!==r&&Bm(r);switch(a){default:case"cache-first":return(y=h()).complete?{fromLink:!1,sources:[f(y,e.markReady())]}:l||v?{fromLink:!0,sources:[f(y),g()]}:{fromLink:!0,sources:[g()]};case"cache-and-network":var y;return(y=h()).complete||l||v?{fromLink:!0,sources:[f(y),g()]}:{fromLink:!0,sources:[g()]};case"cache-only":return{fromLink:!1,sources:[f(h(),e.markReady())]};case"network-only":return v?{fromLink:!0,sources:[f(h()),g()]}:{fromLink:!0,sources:[g()]};case"no-cache":return v?{fromLink:!0,sources:[f(e.getDiff()),g()]}:{fromLink:!0,sources:[g()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Xm(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Te(Te(Te({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),rg=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=uh(t.resolvers,e)})):this.resolvers=uh(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return Ce(this,arguments,void 0,(function(e){var t=e.document,r=e.remoteResult,n=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return ke(this,(function(e){return t?[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,a).then((function(e){return Te(Te({},r),{data:e.result})}))]:[2,r]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Qu(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return ch(e)},e.prototype.prepareContext=function(e){var t=this.cache;return Te(Te({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return Ce(this,arguments,void 0,(function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),ke(this,(function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(e){return Te(Te({},t),e.exportedVariables)}))]:[2,Te({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Hu(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return Uu}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:sh(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return Ce(this,arguments,void 0,(function(e,t,r,n,i,o){var a,s,c,l,u,d,p,h,f,m;return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),ke(this,(function(g){return a=ap(e),s=ip(e),c=fd(s),l=this.collectSelectionsToResolve(a,c),u=a.operation,d=u?u.charAt(0).toUpperCase()+u.slice(1):"Query",h=(p=this).cache,f=p.client,m={fragmentMap:c,context:Te(Te({},r),{cache:h,client:f}),variables:n,fragmentMatcher:i,defaultOperationType:d,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,!1,t,m).then((function(e){return{result:e,exportedVariables:m.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,r,n){return Ce(this,void 0,void 0,(function(){var i,o,a,s,c,l=this;return ke(this,(function(u){return i=n.fragmentMap,o=n.context,a=n.variables,s=[r],c=function(e){return Ce(l,void 0,void 0,(function(){var c,l;return ke(this,(function(u){return(t||n.selectionsToResolve.has(e))&&Ju(e,a)?ep(e)?[2,this.resolveField(e,t,r,n).then((function(t){var r;void 0!==t&&s.push(((r={})[Jd(e)]=t,r))}))]:(function(e){return"InlineFragment"===e.kind}(e)?c=e:(c=i[e.name.value],Ml(c,18,e.name.value)),c&&c.typeCondition&&(l=c.typeCondition.name.value,n.fragmentMatcher(r,l,o))?[2,this.resolveSelectionSet(c.selectionSet,t,r,n).then((function(e){s.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(c)).then((function(){return dh(s)}))]}))}))},e.prototype.resolveField=function(e,t,r,n){return Ce(this,void 0,void 0,(function(){var i,o,a,s,c,l,u,d,p,h=this;return ke(this,(function(f){return r?(i=n.variables,o=e.name.value,a=Jd(e),s=o!==a,c=r[a]||r[o],l=Promise.resolve(c),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(u=r.__typename||n.defaultOperationType,(d=this.resolvers&&this.resolvers[u])&&(p=d[s?o:a])&&(l=Promise.resolve(sm.withValue(this.cache,p,[r,Xd(e,i),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,l.then((function(r){var i,o;if(void 0===r&&(r=c),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=r)}))})),!e.selectionSet)return r;if(null==r)return r;var a=null!==(o=null===(i=e.directives)||void 0===i?void 0:i.some((function(e){return"client"===e.name.value})))&&void 0!==o&&o;return Array.isArray(r)?h.resolveSubSelectedArray(e,t||a,r,n):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t||a,r,n):void 0}))]):[2,null]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map((function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0})))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(i){if(!n.has(i)){var o=new Set;n.set(i,o),Hu(i,{Directive:function(e,t,n,i,a){"client"===e.name.value&&a.forEach((function(e){r(e)&&Xu(e)&&o.add(e)}))},FragmentSpread:function(n,i,a,s,c){var l=t[n.name.value];Ml(l,19,n.name.value);var u=e(l);u.size>0&&(c.forEach((function(e){r(e)&&Xu(e)&&o.add(e)})),o.add(n),u.forEach((function(e){o.add(e)})))}})}return n.get(i)}(e)},e}(),ng=!1,ig=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw jl(15);var r=e.uri,n=e.credentials,i=e.headers,o=e.cache,a=e.documentTransform,s=e.ssrMode,c=void 0!==s&&s,l=e.ssrForceFetchDelay,u=void 0===l?0:l,d=e.connectToDevTools,p=e.queryDeduplication,h=void 0===p||p,f=e.defaultOptions,m=e.defaultContext,g=e.assumeImmutableResults,v=void 0===g?o.assumeImmutableResults:g,y=e.resolvers,b=e.typeDefs,_=e.fragmentMatcher,E=e.name,w=e.version,x=e.devtools,L=e.link;L||(L=r?new yf({uri:r,credentials:n,headers:i}):nf.empty()),this.link=L,this.cache=o,this.disableNetworkFetches=c||u>0,this.queryDeduplication=h,this.defaultOptions=f||Object.create(null),this.typeDefs=b,this.devtoolsConfig=Te(Te({},x),{enabled:(null==x?void 0:x.enabled)||d}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),u&&setTimeout((function(){return t.disableNetworkFetches=!1}),u),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=Pl,this.localState=new rg({cache:o,client:this,resolvers:y,fragmentMatcher:_}),this.queryManager=new tg({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:m,documentTransform:a,queryDeduplication:h,ssrMode:c,clientAwareness:{name:E,version:w},localState:this.localState,assumeImmutableResults:v,onBroadcast:this.devtoolsConfig.enabled?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("undefined"!=typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,ng||!1===globalThis.__DEV__||(ng=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout((function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,r=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),r&&!1!==globalThis.__DEV__&&Ml.log("Download the Apollo DevTools for a better development experience: %s",r)}}),1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Xh(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Te(Te({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Xh(this.defaultOptions.query,e)),Ml("cache-and-network"!==e.fetchPolicy,16),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Te(Te({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Xh(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){return this.cache.watchFragment(e)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return af(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach((function(e,t){r.push(t),n.push(e)}));var i=Promise.all(n);return i.queries=r,i.results=n,i.catch((function(e){!1!==globalThis.__DEV__&&Ml.debug(17,e)})),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(ig.prototype.getMemoryInternals=kd);var og=new Map,ag=new Map,sg=!0,cg=!1;function lg(e){return e.replace(/[\s,]+/g," ").trim()}function ug(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var n=e[0];return t.forEach((function(t,r){t&&"Document"===t.kind?n+=t.loc.source.body:n+=t,n+=e[r+1]})),function(e){var t=lg(e);if(!og.has(t)){var r=function(e,t){return new Mu(e,t).parseDocument()}(e,{experimentalFragmentVariables:cg,allowLegacyFragmentVariables:cg});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");og.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(r){var n=e[r];n&&"object"==typeof n&&t.add(n)}))}));var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}(function(e){var t=new Set,r=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,i=lg((a=e.loc).source.body.substring(a.start,a.end)),o=ag.get(n);o&&!o.has(i)?sg&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||ag.set(n,o=new Set),o.add(i),t.has(i)||(t.add(i),r.push(e))}else r.push(e);var a})),Te(Te({},e),{definitions:r})}(r)))}return og.get(t)}(n)}var dg,pg=ug;(dg=ug||(ug={})).gql=pg,dg.resetCaches=function(){og.clear(),ag.clear()},dg.disableFragmentWarnings=function(){sg=!1},dg.enableExperimentalFragmentVariables=function(){cg=!0},dg.disableExperimentalFragmentVariables=function(){cg=!1},ug.default=ug;class hg{constructor(e,t=!0){this._core=e;const r=new yf({uri:`https://${e._environment.endpoints.ACPC_SUPERGRAPH_HOST}`}),n=new nf(((e,t)=>{const r=this._core._environment.getValue("ACCESS_TOKEN");return e.setContext({headers:{authorization:`Bearer ${r}`,"x-api-key":this._core._environment.getValue("CLIENT_ID")}}),t(e)}));this._client=new ig({link:of(n,r),cache:new Zm({addTypename:t})})}get gqlClient(){return this._client}getAssetById(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.gqlClient.query({query:ug`
                 query {
                     resolveAssetById(assetId: "${e}") {
                         appMetadata
                         dc_format
                         effectivePermissions
                         perUserMetadata
                         repo_ancestors
                         repo_assetClass
                         repo_assetId
                         repo_createDate
                         repo_createdBy
                         repo_modifiedBy
                         repo_modifyDate
                         repo_name
                         repo_path
                         repo_state
                         storage_assignee {
                           id
                           type
                         }
                         storage_deviceCreateDate
                         storage_deviceModifyDate
                         storage_region
                         repository {
                            repo_repositoryId
                            repo_owner {
                              id
                              type
                            }
                            repo_repositoryType
                        }
                         ... on Composite {
                           repo_size
                           repo_version
                        }
                         ... on File {
                            repo_size
                            repo_version
                        }
                    }
                }`});case 2:return n=r.sent,r.abrupt("return",n.data);case 4:case"end":return r.stop()}}),r)})))()}}class fg{constructor(e){this._core=e,this._gqlInterface=new hg(this._core)}get gqlInterface(){return this._gqlInterface}getAssetById(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._gqlInterface.getAssetById(e);case 2:return n=r.sent,r.abrupt("return",t._convertGQLAssetToAdobeAssetData(n));case 4:case"end":return r.stop()}}),r)})))()}_convertGQLAssetToAdobeAssetData(e){var t;const r=e.resolveAssetById;return{"dc:format":r.dc_format,"repo:ancestors":r.repo_ancestors,"repo:assetClass":r.repo_assetClass.toLowerCase(),"repo:assetId":r.repo_assetId,"repo:createDate":r.repo_createDate,"repo:createdBy":r.repo_createdBy,"repo:modifyDate":r.repo_modifyDate,"repo:name":r.repo_name,"repo:path":r.repo_path,"repo:modifiedBy":r.repo_modifiedBy,"repo:repositoryId":r.repository.repo_repositoryId,"repo:state":r.repo_state,"repo:size":r.repo_size,"repo:version":r.repo_version,"storage:assignee":r.storage_assignee,effectivePermission:Ur(r.effectivePermissions),lastAccessed:null===(t=r.perUserMetadata)||void 0===t?void 0:t["shell:lastAccessDate"],_embedded:{[tt.APP_METADATA]:r.appMetadata}}}}const mg="organizations_changed",gg=new class extends He{constructor(){super(mg)}};var vg;!function(e){e[e.Initializing=0]="Initializing",e[e.Offline=1]="Offline",e[e.NotStarted=2]="NotStarted",e[e.Disabled=3]="Disabled",e[e.Synchronized=4]="Synchronized",e[e.InProgress=5]="InProgress",e[e.ErrorQuotaExceeded=6]="ErrorQuotaExceeded",e[e.ErrorSyncDown=7]="ErrorSyncDown",e[e.ErrorOther=8]="ErrorOther"}(vg||(vg={}));class yg extends xi{constructor(e,t){super(e),this._core=e,this._assetPool=t,this._rapi=new cc(this._core),this._gqlManager=new fg(this._core),this._ons=new wc(this._core),this._invitationInterface=new sc(this._core),this._ussInterface=new ac(this._core),this._SBMInterface=new Ac(this._core),this._swyInterface=new kc(this._core),this._recentInterface=new Fc(this._core),this._adobeAssetSearchInterface=new Nc(this._core),this._adobeAssetGlobalSearchInterface=new Mc(this._core),this._assetTransferService=new Zc(this._core),this._assetReviewServiceInterface=new La(this._core),this._publishedInterface=new Jc(this._core),this._discardedInterface=new ol(this._core),this.__ussInterfaceV3=new cl(this._core),this._globalSearchInterfaceV3=new dl(this._core,this.__ussInterfaceV3),this._libraryInterface=new qc(this._core),this._commentsById=new Map,this._adobeAssetUpdater=ha,this._onHomeFolderChange=()=>{this._rapi._clearIndexCache()},this._onONSNotification=e=>{e.changedAssets.forEach(((e,t)=>{var r,n,i,o,a;if(null===(r=e.changedResources)||void 0===r?void 0:r.includes("api:annotation")){const r=null===(n=this._commentsById.get(t))||void 0===n?void 0:n.deref();r&&r._onONSNotification(e)}const s=this._assetPool.getLocalItemById(t);s?((null===(i=e.changedResources)||void 0===i?void 0:i.includes("api:metadata/repository"))&&s._loadWithRetry(),(null===(o=e.changedResources)||void 0===o?void 0:o.includes("api:metadata/application"))&&s.appMetadata.load(),(null===(a=e.changedResources)||void 0===a?void 0:a.includes("api:ac/policy"))&&s._reloadPermissions()):e.parentAssetId&&this._assetPool.getLocalItemById(e.parentAssetId)&&this._assetPool.getLocalItemById(e.parentAssetId)._canLoadNewChildrenFromONSNotification&&this._getAssetById(t,void 0,!0)}));const t=new Set(e.changedAssets.keys()),r=this._getAssetLinkManager();r&&r.lists.forEach((e=>e._onONSNotification(t)))},this._onAssetsChanged=e=>{var t;const r=null===(t=null==e?void 0:e.discardedItems)||void 0===t?void 0:t.map((e=>e.id));this._updateONSSubscriptions(r)},this._assetPool.on($o,this._onAssetsChanged),this._ons.on("change",this._onONSNotification),this._ons.on(gc,(e=>{this.dispatch(new _c(e.cachedSubscriptionsUsed))})),this._ons.on(vc,(e=>{this.dispatch(new Ec(e.expired))})),_i.manageLazyLoading(this,[{event:gg,fetchData:this._fetchOrganizations,prefetchTimeout:0}])}get repoInterface(){return gi("AssetContext.repoInterface","AssetContext.repoInterface is deprecated and will be removed on or after 2024-10-01. It is for internal SAM.js use only."),this._rapi}get onsInterface(){return gi("AssetContext.onsInterface","AssetContext.onsInterface is deprecated and will be removed on or after 2024-10-01. It is for internal SAM.js use only."),this._ons}get ussInterface(){return gi("AssetContext.ussInterface","AssetContext.ussInterface is deprecated and will be removed on or after 2024-10-01. It is for internal SAM.js use only."),this._ussInterface}get ussInterfaceV3(){return gi("AssetContext.ussInterfaceV3","AssetContext.ussInterfaceV3 is deprecated and will be removed on or after 2024-10-01. It is for internal SAM.js use only."),this.__ussInterfaceV3}get sbmInterface(){return gi("AssetContext.sbmInterface","AssetContext.sbmInterface is deprecated and will be removed on or after 2024-10-01."),this._SBMInterface}get swyInterface(){return gi("AssetContext.swyInterface","AssetContext.swyInterface is deprecated and will be removed on or after 2024-10-01. It is for internal SAM.js use only."),this._swyInterface}get recentInterface(){return gi("AssetContext.recentInterface","AssetContext.recentInterface is deprecated and will be removed on or after 2024-10-01. It is for internal SAM.js use only."),this._recentInterface}get invitationInterface(){return gi("AssetContext.invitationInterface","AssetContext.invitationInterface is deprecated and will be removed on or after 2024-10-01. It is for internal SAM.js use only."),this._invitationInterface}get publishedInterface(){return gi("AssetContext.publishedInterface","AssetContext.publishedInterface is deprecated and will be removed on or after 2024-10-01. It is for internal SAM.js use only."),this._publishedInterface}get assetPool(){return gi("AsseContext._assetPool","AssetContext._assetPool is deprecated and will be removed on or after 2024-10-01. ItemPools are for internal SAM.js use only."),this._assetPool}get sharedSource(){const e=new hl,t=new Tc(this._assetPool,this._core,this._swyInterface);return new Uo(this._assetPool,[t],e)}get recentAssetsSource(){const e=new Gc,t=new Bc(this._assetPool,this._core,this._recentInterface,e);return e._lastModificationDate=new Date(9999,0,1),new Uo(this._assetPool,[t],e)}get MRUAssetsSource(){const e=new Yc,t=new Vc(this._assetPool,this._core,this._recentInterface);return new Uo(this._assetPool,[t],e)}get publishedSource(){const e=new el,t=new Qc(this._assetPool,this._core,this._publishedInterface);return new Uo(this._assetPool,[t],e)}get discardedSource(){const e=new tl,t=new al(this._assetPool,this._core,this._discardedInterface);return new Uo(this._assetPool,[t],e)}getAssetLinkManager(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e._AssetLinkManager){t.next=2;break}return t.abrupt("return",e._AssetLinkManager);case 2:return t.next=4,Promise.resolve().then((function(){return xw}));case 4:return r=t.sent.default,e._AssetLinkManager=new r(e),t.abrupt("return",e._AssetLinkManager);case 7:case"end":return t.stop()}}),t)})))()}_getAssetLinkManager(){return this._AssetLinkManager}getGlobalSearchAssetsSource(e){const t=new sl({_query:e,_matchingIDsFromSearch:new Set}),r=new pl(this._assetPool,t,this._core,this._adobeAssetGlobalSearchInterface);return new Uo(this._assetPool,[r],t)}getGlobalSearchAssetsSourceV3(e){const t=new sl({_query:e,_matchingIDsFromSearch:new Set}),r=new ul(this._assetPool,this._core,this._globalSearchInterfaceV3,t);return new Uo(this._assetPool,[r],t)}get isOnline(){return gi("AssetContext.isOnline","AssetContext.isOnline() is not fully implemented for web"),this.networkStatus!==Na.Offline}get networkStatus(){return gi("AssetContext.networkStatus","AssetContext.networkStatus is not fully implemented for web"),Na.OnlineUnknown}_getAssetById(e,t,r){var n=this;return me(he().mark((function i(){var o,a,s,c,l,u,d,p,h,f,m,g,v,y,b,_,E,w,x,L;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!(s=n._assetPool.getLocalItemById(e))){i.next=10;break}if(!n._core._environment.getValue("DISABLE_ONS")&&!s.needsRepoMetadata){i.next=8;break}return i.next=6,s._loadWithRetry();case 6:i.next=9;break;case 8:s._linksCameFromResolveAPI||n._rapi.getAssetLinks(e).then((e=>{const t=n._assetPool.createUpdateSession();n._adobeAssetUpdater.updateLocalItem(t,s,{_links:e}),s._linksCameFromResolveAPI=!0,t.commit()}));case 9:return i.abrupt("return",s);case 10:if(d=n._core._environment.getValue("USE_GRAPHQL")){i.next=31;break}if(t){i.next=16;break}return i.next=15,n._rapi.getRepoMetadataById(e);case 15:t=i.sent;case 16:return u=t,p=new fi(n._rapi,e,t._links,t["repo:etag"]),i.next=20,p.getEffectivePermissions();case 20:if(((c=i.sent)&Br.ReadAppMetadata)!==Br.ReadAppMetadata){i.next=27;break}return i.next=24,p.getAppMetadata();case 24:i.t0=i.sent,i.next=28;break;case 27:i.t0={};case 28:l=i.t0,i.next=36;break;case 31:return i.next=33,n._gqlManager.getAssetById(e);case 33:u=i.sent,c=u.effectivePermission,l=null!==(a=null===(o=u._embedded)||void 0===o?void 0:o[tt.APP_METADATA])&&void 0!==a?a:{};case 36:return u=d?u:t,i.next=39,n._core.getLibraryContext();case 39:if(h=i.sent,f=new bl(n._core),m=new Os(n._core),v={},y=Ns(l),b=js(l),!y){i.next=51;break}return i.next=48,f.getProject(u["repo:assetId"]);case 48:g=i.sent,i.next=60;break;case 51:if(!b){i.next=60;break}return i.next=54,m.getStudentAssignment(e,void 0,{[Qa.PREFER_RAPI]:"true"});case 54:return _=i.sent,E=os(_),i.next=58,n._core.getClassroomContext();case 58:w=i.sent,v=w._computeRemoteStudentAssignment({remoteStudentAssignment:_,assignmentId:E});case 60:if(x=n._assetPool.createMutationSession(),L=n._core._adobeAssetFactory.assetFromRepoMetadata(x,u,c,l,h,g,b?v:void 0),t&&t["storage:assignee"]&&L._storageAssignee_NoLazyLoad.id===t["storage:assignee"].id&&_i.updatedByItemUpdater(L,fo),x.commit(),!r||!L.isLibrary){i.next=67;break}return i.next=67,L._waitForLibraryLoad();case 67:if(!y){i.next=72;break}return i.next=70,L._load({repoMetadata:t,appMetadata:l,effectivePermission:c,projectMetadata:g});case 70:i.next=79;break;case 72:if(!b){i.next=77;break}return i.next=75,L._load({repoMetadata:t,appMetadata:l,effectivePermission:c,doFetchStudentAssignmentMetadata:!1});case 75:i.next=79;break;case 77:return i.next=79,L._load({repoMetadata:u,appMetadata:l,effectivePermission:c});case 79:return L._linksCameFromResolveAPI=!0,i.abrupt("return",L);case 81:case"end":return i.stop()}}),i)})))()}getHomeFolder(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._homeFolder){t.next=8;break}return t.next=3,e._rapi.getHomeDirectoryMetadata();case 3:r=t.sent,n=e._assetPool.createMutationSession(),e._homeFolder=e._adobeAssetUpdater.updateRemoteItem(n,r),n.commit(),e._homeFolder.on(ze,e._onHomeFolderChange);case 8:return t.abrupt("return",e._homeFolder);case 9:case"end":return t.stop()}}),t)})))()}getRootFolder(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._rootFolder){t.next=4;break}return t.next=3,e.getAssetWithRepoPath("/cloud-content");case 3:e._rootFolder=t.sent;case 4:return t.abrupt("return",e._rootFolder);case 5:case"end":return t.stop()}}),t)})))()}getUserRepoID(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.getHomeFolder().then((e=>e.repositoryID)));case 1:case"end":return t.stop()}}),t)})))()}getAssetWithCloudID(e,t=!1){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t){n.next=6;break}return n.next=3,r._core.getCollaborationContext();case 3:return i=n.sent,n.next=6,i.confirmAccess(e);case 6:return n.abrupt("return",r._getAssetById(e));case 7:case"end":return n.stop()}}),n)})))()}getAssetWithRepoPath(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l,u,d;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t){n.next=7;break}return n.next=3,r.getHomeFolder();case 3:i=n.sent,t=i.repositoryID,o=i.repoPath,e=kn.join(o,e);case 7:return n.prev=7,n.next=10,r._rapi.getRepoMetadataByPath(t,e);case 10:return a=n.sent,n.abrupt("return",r._getAssetById(a["repo:assetId"],a));case 14:n.prev=14,n.t0=n.catch(7),s=0,c=["cloud-content","temp"];case 18:if(!(s<c.length)){n.next=30;break}if(l=c[s],u=`/${l}`,d=e.indexOf(u)===e.lastIndexOf(u),n.t0.code!==ge.NOT_FOUND||!d||!e.endsWith(u)){n.next=27;break}return n.next=25,r.getHomeFolder();case 25:return i=n.sent,n.abrupt("return",i.createFolder(l));case 27:s++,n.next=18;break;case 30:throw n.t0;case 31:case"end":return n.stop()}}),n,null,[[7,14]])})))()}getAssetWithAssetRefString(e,t=!1){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.prev=0,i=JSON.parse(e),n.next=7;break;case 4:throw n.prev=4,n.t0=n.catch(0),we.create(ge.BAD_REQUEST,"Incorrectly formatted AssetRefString",{underlyingError:n.t0});case 7:if(!i.cloud_id){n.next=11;break}return n.abrupt("return",r.getAssetWithCloudID(i.cloud_id,t));case 11:if(!i.path){n.next=15;break}return n.abrupt("return",r.getAssetWithRepoPath(i.path,i.repository_id));case 15:throw we.create(ge.BAD_REQUEST,"Invalid AssetRefString");case 16:case"end":return n.stop()}}),n,null,[[0,4]])})))()}_createAssetFromMetadata(e){const t=this._assetPool.createUpdateSession(),r=this._adobeAssetUpdater.updateRemoteItem(t,e);return t.commit(),r}_repositoryNameFromID(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._rapi.getRepositoryName(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_getStorageAssigneeFromID(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._rapi.getStorageAssignee(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_getListOfRepositoryIDs(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._rapi.getRepositoriesData();case 2:if(r=t.sent){t.next=5;break}return t.abrupt("return",void 0);case 5:return n=r.children,t.abrupt("return",n.map((e=>e._embedded[tt.PRIMARY]["repo:repositoryId"])));case 7:case"end":return t.stop()}}),t)})))()}getXDCEData(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._core._environment.fetch(`https://${t._core._environment.endpoints.XDCE_HOST}/v2/document/${e}`).then((e=>e.json())));case 1:case"end":return r.stop()}}),r)})))()}removeAssetsFromAssetsPool(e){this._assetPool.removeLocalItems(e)}permanentlyDeleteAssets(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=r=>{if(r.discardedItems){const n=r.discardedItems.filter((t=>e.includes(t))).map((e=>e.id));n.length&&t.removeAssetsFromAssetsPool(n)}},t._assetPool.on($o,i),r.prev=2,r.next=5,Nn.runExclusiveTask("delete",e,me(he().mark((function r(){var i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=new Map,o=e.map((e=>{i.set(e.id,e);const t={op:"delete",id:e.id,target:{"repo:assetId":e.id}};return e.repositoryID&&(t.target["repo:repositoryId"]=e.repositoryID),t.recursive=e.isFolder,t})),r.next=4,t._runOperations(o,i,((e,r)=>{r._releaseRenditions(),t._assetPool.getLocalItemById(r.id)&&(t._adobeAssetUpdater.updateLocalItem(e,r,{effectivePermission:Br.None}),e.queueDiscardedItem(r))}));case 4:n=r.sent;case 5:case"end":return r.stop()}}),r)}))));case 5:return r.prev=5,t._assetPool.off($o,i),r.finish(5);case 8:return r.abrupt("return",n);case 9:case"end":return r.stop()}}),r,null,[[2,,5,8]])})))()}getCloudQuotaUsedAndMax(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._rapi.getCloudQuotaUsedAndMax());case 1:case"end":return t.stop()}}),t)})))()}transfer(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(t instanceof _a)){n.next=9;break}return n.next=3,t.getChild("working_files");case 3:if(o=n.sent){n.next=6;break}throw we.create(ge.NOT_FOUND,"unable to find working_files for provided space");case 6:i=o.id,n.next=10;break;case 9:i=t.cloudID;case 10:return a={source:{assetId:e.cloudID,repositoryId:e.repositoryID},target:{assetId:i,repositoryId:t.repositoryID}},n.next=13,r._assetTransferService.transfer(a);case 13:return s=n.sent,(c=r._assetPool.createUpdateSession()).queueDiscardedItem(e),c.commit(),n.abrupt("return",s);case 18:case"end":return n.stop()}}),n)})))()}_moveAssets(e,t,r=new Map,n=!0,i){var o=this;return me(he().mark((function a(){var s;return he().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s={failedResults:[],newModels:[]},a.next=3,Nn.runExclusiveTask("move",e,me(he().mark((function n(){var a,c;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.repositoryID){n.next=3;break}return n.next=3,t._load();case 3:return void 0===i&&(i=new Map),a=new Map,c=e.map((e=>{a.set(e.id,e);let n=`${t.repoPath}/${ei(e,r)}`;n=Wn(o._core,e.id,n,!1,i);const s={op:"move",id:e.id,source:{"repo:assetId":e.id},target:{"repo:path":n,"repo:repositoryId":t.repositoryID}};if(e.repositoryID&&(s.source["repo:repositoryId"]=e.repositoryID),e.repositoryID!==t.repositoryID&&e._clearRepositoryName(),e.isFolder){const t=o._assetPool.createUpdateSession();Qn({assetPool:o._assetPool,asset:e,session:t,operation:{type:"rename",newPath:n},assetContext:o}),t.commit()}return s})),n.next=8,o._runOperations(c,a);case 8:s=n.sent;case 9:case"end":return n.stop()}}),n)}))));case 3:if(!n){a.next=7;break}return a.next=6,Hc(s,t,r,i,o._moveAssets.bind(o));case 6:return a.abrupt("return",a.sent);case 7:return a.abrupt("return",s);case 8:case"end":return a.stop()}}),a)})))()}moveAssets(e,t,r=new Map){var n=this;return me(he().mark((function i(){return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",n._moveAssets(e,t,r));case 1:case"end":return i.stop()}}),i)})))()}getMoveCapability(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l,u,d,p,h,f,m;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.isFolder){n.next=2;break}return n.abrupt("return",{canMove:!1,reason:ki.NotAFolder});case 2:if(t.hasPermission(Br.Write)){n.next=4;break}return n.abrupt("return",{canMove:!1,reason:ki.PermissionDeniedDestination});case 4:if(!e.some((e=>!e.hasPermission(Br.Move)))){n.next=6;break}return n.abrupt("return",{canMove:!1,reason:ki.PermissionDeniedSource});case 6:return n.next=8,Promise.all([...e,t].map((e=>_i.fetchIfNeeded(e,fo))));case 8:if(!e.every((e=>e.storageAssignee.id===t.storageAssignee.id))){n.next=10;break}return n.abrupt("return",{canMove:!0,warning:Ci.None});case 10:return n.next=12,r._rapi.getAssetsOwnerDetails();case 12:if(o=n.sent,void 0!==(a=o.get(t.repositoryID))){n.next=16;break}throw we.create(ge.NOT_FOUND,"target's repo owner detail is not available");case 16:s=ue(e),n.prev=17,s.s();case 19:if((c=s.n()).done){n.next=36;break}if(""!==(l=c.value).repositoryID){n.next=34;break}return gi("AssetContext.getMoveCapability","getMoveCapability() requires asset._repositoryID to be set."),n.next=25,l._ensureLink(tt.REPO_METADATA);case 25:return n.next=27,l._getAssetInterface();case 27:return u=n.sent,n.next=30,u.getRepoMetadata();case 30:d=n.sent,p=r._assetPool.createUpdateSession(),r._adobeAssetUpdater.updateLocalItem(p,l,d),p.commit();case 34:n.next=19;break;case 36:n.next=41;break;case 38:n.prev=38,n.t0=n.catch(17),s.e(n.t0);case 41:return n.prev=41,s.f(),n.finish(41);case 44:if(null===(i=r._core._environment.getValue("FEATURE_FLAGS"))||void 0===i?void 0:i["enable-x-bucket-move"]){n.next=46;break}return n.abrupt("return",{canMove:!1,reason:ki.CrossBucketMoveDisabled});case 46:if(!e.some((e=>{var t,n;const i=o.get(e.repositoryID);return(!(null===(n=null===(t=r._core._environment.getValue("FEATURE_FLAGS"))||void 0===t?void 0:t["move-capabilities"])||void 0===n?void 0:n["enable-CCI-CCI-move"])||"user"!==(null==i?void 0:i.type)||"user"!==a.type)&&(null==i?void 0:i.id)!==a.id}))){n.next=48;break}return n.abrupt("return",{canMove:!1,reason:ki.DifferentOwner});case 48:if(!(h=e.some((e=>e.isFolder||e.isProject||e.isChildOfProject||e._isShared_NoLazyLoad)))){n.next=51;break}return n.abrupt("return",{canMove:!0,warning:Ci.CollaboratorMaybeEditing});case 51:if(f=!1,e.forEach((e=>{e._isCollaboratorDataLoaded||void 0!==e.isShared||(_i.fetchIfNeeded(e,Ar),f=!0)})),!f){n.next=62;break}return n.next=56,r._core.getCollaborationContext();case 56:return m=n.sent,n.next=59,m._collaboratorRequestQueue._processNow();case 59:if(h=e.some((e=>e.isShared&&e.collaboratorArray.some((e=>e.isDirect&&"editor"===e.role)))),!h){n.next=62;break}return n.abrupt("return",{canMove:!0,warning:Ci.CollaboratorMaybeEditing});case 62:return n.abrupt("return",{canMove:!0,warning:Ci.None});case 63:case"end":return n.stop()}}),n,null,[[17,38,41,44]])})))()}assetsHaveArtifacts(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=xa(e),r.next=3,t._assetReviewServiceInterface.hasOutputs(n);case 3:if(0!==(i=r.sent).length){r.next=6;break}return r.abrupt("return",!1);case 6:return o=t._assetPool.createUpdateSession(),t._adobeAssetUpdater.updateRemoteItems(o,i.map((e=>({"repo:assetId":e["repo:assetId"],hasArtifacts:!0})))),o.commit(),r.abrupt("return",!0);case 10:case"end":return r.stop()}}),r)})))()}_deleteAssetOutputsFolder(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._assetReviewServiceInterface.discardOutputsForAsset(e.id));case 1:case"end":return r.stop()}}),r)})))()}_copyAssets(e,t,r=new Map,n=!0,i){var o=this;return me(he().mark((function a(){var s;return he().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s={failedResults:[],newModels:[]},a.next=3,Nn.runExclusiveTask("copy",e,me(he().mark((function n(){var a,c;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.repositoryID){n.next=3;break}return n.next=3,t._load();case 3:return void 0===i&&(i=new Map),a=new Map,c=e.map((e=>{a.set(e.id,e);let n=`${t.repoPath}/${ei(e,r)}`;const s=t.repoPath===e.repoPath.substring(0,e.repoPath.lastIndexOf("/"));n=Wn(o._core,e.id,n,s,i);const c=[{reltype:tt.PRIMARY}];"application/pdf"===e.mediaType&&c.push({reltype:tt.APP_METADATA});const l={op:"copy",id:e.id,source:{"repo:assetId":e.id},target:{"repo:path":n,"repo:repositoryId":t.repositoryID},includeResources:c};return e.repositoryID&&(l.source["repo:repositoryId"]=e.repositoryID),l})),n.next=8,o._runOperations(c,a,((e,t,r)=>{if(!r)throw we.create(ge.UNKNOWN,"Missing metadata from asset bulk operation.");return o._adobeAssetUpdater.updateRemoteItem(e,r)}));case 8:s=n.sent;case 9:case"end":return n.stop()}}),n)}))));case 3:if(!n){a.next=7;break}return a.next=6,Hc(s,t,r,i,o._copyAssets.bind(o));case 6:return a.abrupt("return",a.sent);case 7:return a.abrupt("return",s);case 8:case"end":return a.stop()}}),a)})))()}copyAssets(e,t,r=new Map){var n=this;return me(he().mark((function i(){return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n._copyAssets(e,t,r);case 2:return i.abrupt("return",i.sent);case 3:case"end":return i.stop()}}),i)})))()}duplicateAssets(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e[0].repoPath.substring(0,e[0].repoPath.lastIndexOf("/")),r.next=3,t.getAssetWithRepoPath(n,e[0].repositoryID);case 3:return i=r.sent,r.next=6,t._copyAssets(e,i);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r)})))()}_runOperations(e,t,r){var n=this;return me(he().mark((function i(){return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n._rapi.runOperationsForContext(e,t,n._assetPool,r||((e,t,r)=>{if(!r)throw we.create(ge.UNKNOWN,"Missing metadata from asset bulk operation.");n._adobeAssetUpdater.updateLocalItem(e,t,r)}),[{match:e=>e.code===ge.ACCESS_DENIED||e.code===ge.NOT_FOUND,action:function(){var e=me(he().mark((function e(t,r){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._load();case 2:return e.abrupt("return",{model:t,error:r});case 3:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()}]);case 2:return i.abrupt("return",i.sent);case 3:case"end":return i.stop()}}),i)})))()}_updateONSSubscriptions(e){const t=new Set;this._assetPool.forEach((e=>t.add(e.id))),null==e||e.forEach((e=>t.delete(e)));const r=this._getAssetLinkManager();r&&r.lists.forEach((e=>e.monitoredAssetIDs.forEach((e=>t.add(e))))),this._commentsById.forEach(((e,r)=>{const n=e.deref();n?t.add(n._assetId):this._commentsById.delete(r)})),t.size>0&&!this._core._environment.getValue("DISABLE_ONS")?(this._ons.watch(t),this._ons.start()):this._ons.stop()}restoreLibraryElement(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._libraryInterface.restoreLibraryElement(e);case 2:case"end":return r.stop()}}),r)})))()}permanentlyDeleteLibraryElement(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._libraryInterface.permanentlyDeleteLibraryElement(e);case 2:case"end":return r.stop()}}),r)})))()}getAssetInterface(e){return gi("AdobeAsset.getAssetInterface","AdobeAsset.getAssetInterface is deprecated and will be removed on or after 2024-10-01."),new fi(this._rapi,e["repo:assetId"],e._links,e["repo:etag"])}getCommentsResource(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(i=null===(n=t._commentsById.get(e))||void 0===n?void 0:n.deref())||(i=new Da(t._core,e),t._commentsById.set(e,new Zo(i)),t._updateONSSubscriptions()),r.abrupt("return",i);case 3:case"end":return r.stop()}}),r)})))()}_fetchOrganizations(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=new bl(e._core),t.next=3,r.getOrganizations();case 3:n=t.sent,e._defaultOrganizationId=n.default,e._organizations=n.children.map((e=>({id:e["organization:id"],name:e["organization:name"]||""})));case 6:case"end":return t.stop()}}),t)})))()}get organizations(){return this._organizations}get defaultOrganizationId(){return this._defaultOrganizationId}getAdobeAssetOrder(e="descending",t="modified"){return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.resolve().then((function(){return Qi}));case 2:return n=r.sent,i=n.default,r.abrupt("return",new i(e,t));case 5:case"end":return r.stop()}}),r)})))()}getSWYAdobeAssetOrder(e="descending",t="shared"){return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.resolve().then((function(){return Sc}));case 2:return n=r.sent,i=n.default,r.abrupt("return",new i(e,t));case 5:case"end":return r.stop()}}),r)})))()}getUSSAdobeAssetOrder(e="descending",t="modified"){return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.resolve().then((function(){return po}));case 2:return n=r.sent,i=n.default,r.abrupt("return",new i(e,t));case 5:case"end":return r.stop()}}),r)})))()}getAssetVersionOrder(e="descending",t="created"){return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.resolve().then((function(){return wg}));case 2:return n=r.sent,i=n.default,r.abrupt("return",new i(e,t));case 5:case"end":return r.stop()}}),r)})))()}getAdobeAssetFilter(e){return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.resolve().then((function(){return Is}));case 2:return r=t.sent,n=r.default,t.abrupt("return",new n(e));case 5:case"end":return t.stop()}}),t)})))()}getSWYAdobeAssetFilter(){return me(he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new hl);case 1:case"end":return e.stop()}}),e)})))()}getUSSAdobeAssetFilter(e){return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.resolve().then((function(){return by}));case 2:return r=t.sent,n=r.default,t.abrupt("return",new n(e));case 5:case"end":return t.stop()}}),t)})))()}getRecentAdobeAssetFilter(){return me(he().mark((function e(){var t,r;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then((function(){return Uc}));case 2:return t=e.sent,r=t.default,e.abrupt("return",new r);case 5:case"end":return e.stop()}}),e)})))()}getAssetVersionFilter(e){return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.resolve().then((function(){return oa}));case 2:return r=t.sent,n=r.default,t.abrupt("return",new n(e));case 5:case"end":return t.stop()}}),t)})))()}}Ie([Ue],yg.prototype,"sharedSource",null),Ie([Ue],yg.prototype,"recentAssetsSource",null),Ie([Ue],yg.prototype,"MRUAssetsSource",null),Ie([Ue],yg.prototype,"publishedSource",null),Ie([Ue],yg.prototype,"discardedSource",null),Ie([At],yg.prototype,"getAssetLinkManager",null),Ie([At,Ae(0,Ze)],yg.prototype,"_getAssetById",null),Ie([Dt,At],yg.prototype,"getHomeFolder",null),Ie([Dt],yg.prototype,"getRootFolder",null),Ie([Dt],yg.prototype,"getAssetWithCloudID",null),Ie([Dt,At],yg.prototype,"getAssetWithRepoPath",null),Ie([Dt],yg.prototype,"getAssetWithAssetRefString",null),Ie([Ei(gg,"_organizations")],yg.prototype,"organizations",null),Ie([Ei(gg,"_defaultOrganizationId")],yg.prototype,"defaultOrganizationId",null);var bg=Object.freeze({__proto__:null,get CloudSyncStatus(){return vg},default:yg});const _g={created:(e,t)=>Wi(e.created,t.created)};class Eg extends(Ki(_g)){}Eg.default=new Eg("descending","created");var wg=Object.freeze({__proto__:null,default:Eg});const xg="library_data_changed",Lg=new class extends He{constructor(){super(xg)}},Og="restrict_edit_changed",Sg=new class extends He{constructor(){super(Og)}};var Tg,Pg,Ig,Ag;!function(e){e.MODIFIED_DATE="modified_date",e.CREATED_DATE="created_date",e.NAME="name"}(Tg||(Tg={})),function(e){e.Personal="private",e.Public="public",e.Incoming="incoming",e.Discovery="discovery",e.All="all"}(Pg||(Pg={})),function(e){e.All="all",e.None="none"}(Ig||(Ig={})),function(e){e.None="none",e.Brand="brand",e.TrainingSet="cm_training_set"}(Ag||(Ag={}));const Cg={name:Tg.NAME,created:Tg.CREATED_DATE,modified:Tg.MODIFIED_DATE},kg={name:(e,t)=>Yi(e.displayName||e.name,t.displayName||t.name),created:(e,t)=>Wi(e.created,t.created),modified:(e,t)=>Wi(e.modified,t.modified)};class Dg extends(Ki(kg)){}Dg.default=new Dg("descending","modified");var Ng=Object.freeze({__proto__:null,OrderFieldToLibraryOrderBy:Cg,default:Dg});function Rg(e,t){return t.has(e.ownership)||t.has(Pg.All)&&!e._isPublic||t.has(Pg.Incoming)&&!e._isPublic&&e.isBookmarked||t.has(Pg.Discovery)&&"private"!==e.ownership&&!e._isPublic&&!e._isCCIProjectLibrary}function Mg(e,t){var r;return t.has(Ag.None)&&(!e.roles||0===e.roles.length)||(null===(r=e.roles)||void 0===r?void 0:r.some((e=>t.has(e.type))))}function jg(e=new Set([Pg.All]),t=new Set([Pg.All])){const r=new Set([...t].filter((t=>e.has(t))));if(r.size===e.size)return"subset";const n=function(e,t){const r=new Set;var n,i=ue(e);try{for(i.s();!(n=i.n()).done;){const e=n.value;t.has(e)||r.add(e)}}catch(e){i.e(e)}finally{i.f()}var o,a=ue(t);try{for(a.s();!(o=a.n()).done;){const t=o.value;e.has(t)||r.add(t)}}catch(e){a.e(e)}finally{a.f()}return r}(e,t);return n.has(Pg.Public)?"disjoint":t.has(Pg.All)?"subset":e.has(Pg.All)||n.has(Pg.Discovery)&&n.has(Pg.Incoming)&&(e.has(Pg.Discovery)&&t.has(Pg.Incoming)||t.has(Pg.Discovery)&&e.has(Pg.Incoming))||r.size>0?"unknown":"disjoint"}function Fg(e,t){return e&&t?function(e,t){const r=(n=e,i=t,new Set([...i].filter((e=>n.has(e)))));var n,i;return r.size===e.size?"subset":r.size>0?"unknown":"disjoint"}(e,t):e||t?"unknown":"subset"}function Zg(e,t){if(e){const r=e=>!Object.values(Ig).includes(e);return!t||e===t||r(e)&&t===Ig.All?"subset":"disjoint"}return!e&&t?"unknown":"subset"}class Bg{constructor(e={}){if(this.filterOptions=e,this._project=e.project,e.roles&&e.roles.length>0&&(this._roles=new Set([...e.roles])),this._owner=e.owner?new Set([...e.owner]):Bg.DEFAULT._owner,this._owner.size>1){if(this._owner.has(Pg.Public))throw we.create(ge.BAD_REQUEST,"Public libraries cannot be combined with other ownership types.");if(this._owner.has(Pg.Discovery)&&this._owner.has(Pg.Incoming))throw we.create(ge.BAD_REQUEST,"Discovery and Incoming are redundant, as Incoming is a subset of Discovery.")}}get hash(){return this._hash||(this._hash=[`owner=${[...this._owner].sort().join(",")}`,this._roles?`roles=${[...this._roles].sort().join(",")}`:void 0,this._project?`project=${this._project}`:void 0].filter((e=>e)).join(":")),this._hash}matches(e){return!(!e.isLibrary||!1===e._libraryLoaded||this._owner&&!Rg(e,this._owner)||this._project&&!function(e,t){return t===Ig.All&&e.isChildOfProject||"none"===t&&!e.isChildOfProject||"other"===t&&e.isChildOfProject&&!e.isBookmarked||t===e.parentProjectID}(e,this._project)||this._roles&&!Mg(e,this._roles))}getRelationToFilter(e){const t=[jg(this._owner,e._owner),Fg(this._roles,e._roles),Zg(this._project,e._project)];return t.includes("disjoint")?"disjoint":t.every((e=>"subset"===e))?"subset":"unknown"}}Bg.AllLibraries=new Bg({owner:[Pg.Incoming,Pg.Personal]}),Bg.DEFAULT=Bg.AllLibraries;var Gg,Ug,Hg,zg,Vg,Yg,Wg,Kg,$g,qg,Xg,Jg,Qg,ev=Object.freeze({__proto__:null,default:Bg});!function(e){e.GC="GC"}(Gg||(Gg={})),function(e){e.STUDENT="STUDENT",e.TEACHER="TEACHER"}(Ug||(Ug={})),function(e){e.BLOCKED="BLOCKED",e.INVITED="INVITED",e.JOINED="JOINED",e.NOT_ENROLLED="NOT_ENROLLED",e.REMOVED="REMOVED"}(Hg||(Hg={})),function(e){e.CLEVER="clever",e.CLASS_LINK="classlink"}(zg||(zg={})),function(e){e.ACTIVE="ACTIVE",e.ARCHIVED="ARCHIVED"}(Vg||(Vg={})),function(e){e.TRUE="TRUE",e.RESTRICTED="RESTRICTED",e.UNRESTRICTED="UNRESTRICTED",e.NONE="NONE"}(Yg||(Yg={})),function(e){e.noSubject="",e.allsubjects="allsubjects",e.careersTechnicalEducation="careersTechnicalEducation",e.computerScience="computerScience",e.english="english",e.math="math",e.otherLanguages="otherLanguages",e.others="others",e.science="science",e.socialStudies="socialStudies",e.visualPerformingArts="visualPerformingArts"}(Wg||(Wg={})),function(e){e.STUDENT="STUDENT",e.TEACHER="TEACHER"}(Kg||(Kg={})),function(e){e.REMOVE_STUDENT_SUCCESS="REMOVE_STUDENT_SUCCESS",e.BLOCK_STUDENT_SUCCESS="BLOCK_STUDENT_SUCCESS",e.UNBLOCK_STUDENT_SUCCESS="UNBLOCK_STUDENT_SUCCESS",e.DELETE_DOMAIN_MAPPING_ACCEPTED="DELETE_DOMAIN_MAPPING_ACCEPTED"}($g||($g={})),function(e){e.OWNER="OWNER",e.ACTIVE="ACTIVE",e.INACTIVE="INACTIVE",e.INVITED="INVITED",e.IN_REVIEW="IN_REVIEW",e.DECLINED="DECLINED",e.NOT_A_MEMBER="NOT_A_MEMBER"}(qg||(qg={})),function(e){e.STUDENT="student",e.TEACHER="teacher",e.NONE="none"}(Xg||(Xg={})),function(e){e.ACTIVE="ACTIVE",e.DECLINED="DECLINED",e.INACTIVE="INACTIVE",e.INVITED="INVITED",e.IN_REVIEW="IN_REVIEW",e.NOT_A_MEMBER="NOT_A_MEMBER",e.OWNER="OWNER"}(Jg||(Jg={})),function(e){e.CLASSLINK="CLASSLINK",e.CLEVER="CLEVER",e.EMAIL="EMAIL",e.GOOGLE_CLASSROOM="GOOGLE_CLASSROOM",e.NONE="NONE"}(Qg||(Qg={}));const tv={name:(e,t)=>Yi(e.name,t.name),created(e,t){let r;return r=e.created||t.created?e.created?t.created?Wi(e.created.getTime(),t.created.getTime()):-1:1:0,0===r?Yi(e.name,t.name):r}};class rv extends(Ki(tv)){}rv.default=new rv("ascending","name");var nv=Object.freeze({__proto__:null,default:rv});class iv extends Nn{constructor(){super(...arguments),this._classroomId="",this._displayName="",this._email="",this._firstName="",this._inviteSource=Qg.NONE,this._lastName="",this._membershipStatus=Jg.NOT_A_MEMBER,this._role=Xg.NONE,this._userId=""}get classroomId(){return this._classroomId}get displayName(){return this._displayName}get email(){return this._email}get firstName(){return this._firstName}get inviteSource(){return this._inviteSource}get lastName(){return this._lastName}get membershipStatus(){return this._membershipStatus}get role(){return this._role}get userId(){return this._userId}}Ie([$e],iv.prototype,"classroomId",null),Ie([$e],iv.prototype,"displayName",null),Ie([$e],iv.prototype,"email",null),Ie([$e],iv.prototype,"firstName",null),Ie([$e],iv.prototype,"inviteSource",null),Ie([$e],iv.prototype,"lastName",null),Ie([$e],iv.prototype,"membershipStatus",null),Ie([$e],iv.prototype,"role",null),Ie([$e],iv.prototype,"userId",null);const ov=new Di({localItemType:iv,remoteIdProperty:"computedKey",propertyUpdater:new Hi({_classroomId:{name:"classroomId",format:"string"},_displayName:{name:"displayName",format:"string"},_email:{name:"email",format:"string"},_firstName:{name:"firstName",format:"string"},_inviteSource:{name:"inviteSource",format:"string",choices:Object.values(Qg)},_lastName:{name:"lastName",format:"string"},_membershipStatus:{name:"membershipStatus",format:"string",choices:Object.values(Jg)},_role:{name:"role",format:"string",choices:Object.values(Xg)},_userId:{name:"userId",format:"string"}})}),av={name:(e,t)=>Yi(e.displayName,t.displayName)};class sv extends(Ki(av)){}sv.default=new sv("ascending","name");var cv=Object.freeze({__proto__:null,default:sv});class lv{constructor(e){this.classroomId=e.classroomId||"",this.role=e.role||Xg.NONE}matches(e){return this.classroomId===e.classroomId&&(this.role&&this.role!==Xg.NONE?e.role===this.role:e.role===Xg.STUDENT||e.role===Xg.TEACHER)}getRelationToFilter(e){return e.classroomId!==this.classroomId||this.role!==e.role&&this.role!==Xg.NONE&&e.role!==Xg.NONE?"disjoint":this.role===e.role||e.role===Xg.NONE?"subset":"unknown"}get hash(){return`id=${this.classroomId}-${this.role}`}}var uv=Object.freeze({__proto__:null,default:lv});const dv={[$a.DRAFT]:0,[$a.ASSIGNED]:1},pv=(e,t)=>Yi(e.name||"",t.name||""),hv={name:(e,t)=>pv(e,t),dueDate(e,t){let r;return r=e.dueDate||t.dueDate?e.dueDate?t.dueDate?Wi(e.dueDate.getTime(),t.dueDate.getTime()):-1:1:0,0===r?pv(e,t):r},status(e,t){const r=Wi(dv[e.status],dv[t.status]);return 0===r?pv(e,t):r}};class fv extends(Ki(hv)){}fv.default=new fv("ascending","name");var mv=Object.freeze({__proto__:null,default:fv}),gv=Object.freeze({__proto__:null,default:class{constructor(e={}){this.classroomId=e.classroomId||"",this.submissions=e.submissions}matches(e){return!!e.isAssignment&&e.classroomId===this.classroomId&&!e.isDiscarded}getRelationToFilter(e){return this.classroomId!==e.classroomId?"disjoint":"subset"}get hash(){return`classroomId=${this.classroomId}`}}}),vv=Object.freeze({__proto__:null,default:class{constructor(e={}){this.owner=hs.Any;const t=e.assignmentId,r=e.assignmentCode,n=e.currentUserId,i=e.loadDocuments,o=e.status;this.assignmentId=t,this.assignmentCode=r,this.loadDocuments=void 0===i||i,this.status=o&&o.length>0?o:ps,this.currentUserId=n}matches(e){return!(this.currentUserId&&e.student.id!==this.currentUserId||!this.status.includes(e.status))}getRelationToFilter(e){return e.status.every((e=>!this.status.includes(e)))?"disjoint":this.status.every((t=>e.status.includes(t)))?this.loadDocuments&&!e.loadDocuments||!this.currentUserId&&e.currentUserId?"unknown":"subset":"unknown"}get hash(){const e=this.assignmentId||this.assignmentCode;return`${e?`assignmentId=${e}&`:""}status=${this.status.join()}&loadDocuments=${this.loadDocuments}${this.currentUserId?`&currentUserId=${this.currentUserId}`:""}`}}});const yv={modified:(e,t)=>Wi(e.modified,t.modified),name:(e,t)=>Wi(e.name,t.name),created:(e,t)=>Wi(e.created,t.created)};class bv extends(Ki(yv)){}bv.default=new bv("descending","modified");var _v=Object.freeze({__proto__:null,default:bv}),Ev=Object.freeze({__proto__:null,default:class{constructor(e,t){var r;this.studentAssignmentId=e,this.loadDocuments=null===(r=null==t?void 0:t.loadDocuments)||void 0===r||r}matches(e){return!0===e.isChildOfStudentAssignment&&e.studentAssignmentId===this.studentAssignmentId}getRelationToFilter(e){return this.loadDocuments!==e.loadDocuments?"disjoint":this.studentAssignmentId===e.studentAssignmentId?"subset":"disjoint"}get hash(){return`studentAssignmentId=${this.studentAssignmentId}&loadDocuments=${this.loadDocuments}`}}});class wv extends Nn{constructor(){super(...arguments),this._repositoryID=""}get repositoryID(){return this._repositoryID}createTeam(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._core.spaceContext.createTeam(t,e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}}Ie([$e],wv.prototype,"repositoryID",null);const xv=new Di({localItemType:wv,remoteIdProperty:"repositoryId",propertyUpdater:new Hi({_repositoryID:"repositoryId"})});var Lv;!function(e){e.Size50="50",e.Size100="100",e.Size115="115",e.Size230="230",e.Size138="138",e.Size276="276"}(Lv||(Lv={}));class Ov extends Nn{constructor(e,t){super(e,t),this._countryCode="",this._displayName="",this._email="",this._firstName="",this._lastName="",this._addressBookIdent="",this._images={},this._linkedIdentity="",this._urn=""}get ident(){return this.id}get countryCode(){return this._countryCode}get displayName(){return this._displayName}get email(){return this._email}get firstName(){return this._firstName}get lastName(){return this._lastName}get addressBookIdent(){return this._addressBookIdent}get images(){return this._images}get linkPolicy(){return this._linkPolicy}get linkedIdentity(){return this._linkedIdentity}get urn(){return this._urn}}Ie([$e],Ov.prototype,"countryCode",null),Ie([$e],Ov.prototype,"displayName",null),Ie([$e],Ov.prototype,"email",null),Ie([$e],Ov.prototype,"firstName",null),Ie([$e],Ov.prototype,"lastName",null),Ie([$e],Ov.prototype,"addressBookIdent",null),Ie([$e],Ov.prototype,"images",null),Ie([$e],Ov.prototype,"linkPolicy",null),Ie([$e],Ov.prototype,"linkedIdentity",null),Ie([$e],Ov.prototype,"urn",null);const Sv=new Di({localItemType:Ov,remoteIdProperty:"ident",propertyUpdater:new Hi({_countryCode:"countryCode",_displayName:"displayName",_email:"email",_firstName:"firstName",_addressBookIdent:"addressBookIdent",_images:{format:"object",name:"images"},_lastName:"lastName",_linkPolicy:"linkPolicy",_linkedIdentity:"linkedIdentity",_urn:"urn"})});class Tv{constructor(e,t,r,n){this._addressBookUrl=e,this._groupMemberPool=t,this._addressBookInterface=r,this._groupMemberUpdater=n}loadPage(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=(e||{limit:100}).limit,o=void 0===i?100:i,t){n.next=7;break}return n.next=4,r._addressBookInterface.getMembersFirstPage(r._addressBookUrl,o);case 4:a=n.sent,n.next=10;break;case 7:return n.next=9,r._addressBookInterface.getMembersNextPage(t);case 9:a=n.sent;case 10:return s=r._groupMemberPool.createLoaderMutationSession(),c=r._groupMemberUpdater.updateRemoteItems(s,a._embedded.contacts),s.commit(),l=a._links.next?()=>r.loadPage(void 0,a._links.next.href):void 0,n.abrupt("return",{items:c,loadNextPage:l,total:a.total});case 15:case"end":return n.stop()}}),n)})))()}}class Pv extends Pt{constructor(e){super(e)}get endpoint(){return`https://${this._core._environment.endpoints.ABS_HOST}`}getAddressBookURL(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._getResponse(`${t.endpoint}/api/urns/resolve/${e}`);case 2:return n=r.sent,r.abrupt("return",n.url);case 4:case"end":return r.stop()}}),r)})))()}getMembersFirstPage(e,t=100){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r._getResponse(`${e}/members/flat?limit=${t}`));case 1:case"end":return n.stop()}}),n)})))()}getMembersNextPage(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getResponse(e));case 1:case"end":return r.stop()}}),r)})))()}getAddressBooks(e=100){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getResponse(`${t.endpoint}/api/address-books?limit=${e}`));case 1:case"end":return r.stop()}}),r)})))()}getContactInAddressBook(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r._getResponse(`${r.endpoint}/api/address-books/${e}/contacts?linkedIdentity=${t}`));case 1:case"end":return n.stop()}}),n)})))()}}function Iv(e){return new URL(e).pathname.match(/^\/api\/address-books\/[^/]+/)[1]}const Av=["owner","viewer","editor","none"],Cv=["editor","owner"],kv=["self","deep","deep_override"];class Dv extends Nn{constructor(){super(...arguments),this._role="viewer",this._type="imsUser",this._isDirect=!1,this._assetID="",this._canShare=!1}get assetId(){return this._assetID}get hasProfile(){gi("Collaborator.hasProfile","Collaborator.hasProfile is deprecated and will be removed on or after 2024-10-01")}get collaboratorID(){return this.id}get imsUserId(){var e;return"imsUser"===this._type?this.id:null===(e=this._additionalData)||void 0===e?void 0:e.linkedIdentity}get email(){var e;return null===(e=this._additionalData)||void 0===e?void 0:e.email}get name(){var e,t;const r=this._additionalData;return null!==(t=null!==(e=null==r?void 0:r.displayName)&&void 0!==e?e:null==r?void 0:r.groupName)&&void 0!==t?t:null==r?void 0:r.organizationName}get role(){return this._role}get type(){return this._type}get inheritances(){return this._inheritances}get isDirect(){return this._isDirect}get hasContributorRole(){return Cv.includes(this._role)}get hasName(){return!!this.name}get invited(){var e;return null===(e=this._inheritances)||void 0===e?void 0:e.includes("deep")}get isAdmin(){var e;return null===(e=this._inheritances)||void 0===e?void 0:e.includes("deep_override")}get canShare(){return this._canShare}get isCurrentUser(){return this._core._environment.getValue("USER_ID")===this.imsUserId}get avatarURL(){return this.getAvatarURL(Lv.Size138)}getAvatarURL(e){var t,r,n;return null!==(n=null===(r=null===(t=this._additionalData)||void 0===t?void 0:t.images)||void 0===r?void 0:r[e])&&void 0!==n?n:""}get addressBookGroupUrn(){var e;return(null===(e=this._additionalData)||void 0===e?void 0:e.groupUrn)||""}getGroupMemberSource(){var e=this;return me(he().mark((function t(){var r,n,i,o,a;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("addressBookGroup"===e.type){t.next=2;break}throw we.create(E.BAD_REQUEST,"groupMemberSource only applies to addressBookGroup Collaborator");case 2:if(e.addressBookGroupUrn){t.next=4;break}throw we.create(E.BAD_REQUEST,"addressBookGroupUrn is required");case 4:return r=new Pv(e._core),t.next=7,r.getAddressBookURL(e.addressBookGroupUrn);case 7:return n=t.sent,i=Iv(n),o=e._core.collaborationContext._getAddressBookContactPool(i),a=new Tv(n,o,r,Sv),t.abrupt("return",new Uo(o,[a]));case 12:case"end":return t.stop()}}),t)})))()}}Ie([$e(Cr)],Dv.prototype,"email",null),Ie([$e(Cr)],Dv.prototype,"name",null),Ie([$e(Cr)],Dv.prototype,"avatarURL",null),Ie([$e(Cr)],Dv.prototype,"getAvatarURL",null),Ie([$e(Cr)],Dv.prototype,"addressBookGroupUrn",null),Ie([Ue],Dv.prototype,"getGroupMemberSource",null);const Nv=new Di({localItemType:Dv,remoteIdProperty:"id",changeEvent:Cr,propertyUpdater:new Hi({_type:{name:"type",choices:["imsUser","addressBookGroup","addressBookContact","predefinedPrincipal","imsGroup"]},_role:{name:"role",choices:Av},_inheritances:{name:"inheritances",isArray:!0,choices:kv},_additionalData:{name:"additionalData",format:"object"},_isDirect:{name:"isDirect",format:"boolean"},_avatarURLs:{name:"avatarURLs",format:"object"},_assetID:{name:"assetID",format:"string"},_canShare:{name:"canShare",format:"boolean"}})});class Rv extends uo{}Rv.default=new Rv("descending","lastAccessed");class Mv extends uo{}Mv.default=new Mv("descending","modified");const jv={name:"repo:name",created:"repo:createDate",lastAccessed:to},Fv={name:(e,t)=>Yi(e.name,t.name),created:(e,t)=>Wi(e.created,t.created),lastAccessed:(e,t)=>Wi(e.lastAccessed,t.lastAccessed)};class Zv extends(Ki(Fv)){}Zv.default=new Zv("ascending","name"),Zv.createdDesc=new Zv("descending","created"),Zv.lastAccessed=new Zv("descending","lastAccessed");var Bv=Object.freeze({__proto__:null,OrderFieldToIProjectsOrderBy:jv,default:Zv});const Gv={name:Jr.NAME,created:Jr.CREATE_DATE,modified:Jr.MODIFY_DATE},Uv={name:(e,t)=>Yi(e.name,t.name),created:(e,t)=>Wi(e.created,t.created),modified:(e,t)=>Wi(e.modified,t.modified)};class Hv extends(Ki(Uv)){}Hv.default=new Hv("descending","modified");const zv=e=>({sort_order:"ascending"===e.direction?"asc":"desc",sort_orderby:{name:"asset_name",created:"create_date",modified:"modify_date"}[e.field]});var Vv=Object.freeze({__proto__:null,OrderFieldToCustomModelOrderBy:Gv,default:Hv,customModelOrderToUSSOrder:zv});const Yv={name:en.NAME,created:en.CREATE_DATE,modified:en.MODIFY_DATE},Wv={name:(e,t)=>Yi(e.name,t.name),created:(e,t)=>Wi(e.created,t.created),modified:(e,t)=>Wi(e.modified,t.modified)};class Kv extends(Ki(Wv)){}Kv.default=new Kv("descending","modified");var $v=Object.freeze({__proto__:null,LegacyOrderFieldToCustomModelOrderBy:Yv,default:Kv});const qv={id:(e,t)=>Yi(e.id,t.id)};class Xv extends(Ki(qv)){}Xv.default=new Xv("ascending","id");const Jv={name:"name",created:"createDate"},Qv={name:(e,t)=>Yi(e.name,t.name),created:(e,t)=>Wi(e.created,t.created)};class ey extends(Ki(Qv)){}ey.default=new ey("ascending","name");const ty={name:"name",created:"createdDate"},ry={name:(e,t)=>Yi(e.name,t.name),created:(e,t)=>Wi(e.created,t.created)};class ny extends(Ki(ry)){}ny.default=new ny("ascending","name");const iy={name(e,t){var r,n;return Yi(null!==(r=e.name)&&void 0!==r?r:e.id,null!==(n=t.name)&&void 0!==n?n:e.id)}};class oy extends(Ki(iy)){}oy.default=new oy("ascending","name");const ay={email(e,t){var r,n;return Yi(null!==(r=e.email)&&void 0!==r?r:e.id,null!==(n=t.email)&&void 0!==n?n:e.id)}};class sy extends(Ki(ay)){}sy.default=new sy("ascending","email");const cy={noop:(e,t)=>0};class ly extends(Ki(cy)){}ly.default=new ly("ascending","noop");const uy=e=>/\S/.test(e);var dy;!function(e){e[e.DISJOINTED=0]="DISJOINTED",e[e.SUPERSET=1]="SUPERSET",e[e.SUBSET=2]="SUBSET",e[e.UNKNOWN=3]="UNKNOWN",e[e.IDENTICAL=4]="IDENTICAL"}(dy||(dy={}));const py=[I.Yours,I.SWY];class hy{constructor(e={view:I.All}){this._view=I.All;const t=e._isDiscarded,r=e.view,n=e.repositoryID,i=e.organizationID,o=e.nameContains,a=e.isDiscarded;this._isDiscarded=!(!t&&!a),void 0!==r&&(this._view=r),this._repositoryID=n,this._organizationID=i,this._nameContains=o}get hash(){return`discarded=${this._isDiscarded}view=${this._view}repositoryId=${this._repositoryID}orgID=${this._organizationID||""}nameContains=${this._nameContains}`}get view(){return this._view}get repositoryID(){return this._repositoryID}get nameContains(){return this._nameContains}get isDiscarded(){return this._isDiscarded}_getRelationToNameContains(e="",t=""){if(e===t)return dy.IDENTICAL;if(!e&&t)return dy.UNKNOWN;const r=e.toLowerCase().split(" ").filter(uy).sort(),n=t.toLowerCase().split(" ").filter(uy).sort();if(0===r.length&&0===n.length)return dy.IDENTICAL;if(r.length===n.length&&r.every(((e,t)=>e===n[t])))return dy.IDENTICAL;let i=0,o=0;return r.forEach((e=>{const t=n.find((t=>{const r=t.startsWith(e),n=e.startsWith(t);return r||n}));t&&(e.length<=t.length&&o++,e.length>t.length&&i++)})),r.length===i?dy.SUBSET:r.length===o?dy.SUPERSET:0===i&&0===o?dy.DISJOINTED:dy.UNKNOWN}_searchTarget(e,t){const r=e.toLowerCase().split(/\s+/),n=t.toLowerCase().split(/\s+/);return 0!==r.length&&0!==n.length&&r.every((e=>n.find((t=>t.startsWith(e)))))}get organizationID(){return this._organizationID}matches(e){if(this._view===I.Recent&&!e._isRecent)return!1;if(!e.isProject)return!1;if(e.isDiscarded!==this._isDiscarded)return!1;if(this._repositoryID&&this._repositoryID!==e.repositoryID)return!1;if(this._organizationID&&this._organizationID!==e.repositoryOwner.id)return!1;const t=this._nameContains;return!(t&&!this._searchTarget(t,e.name)||py.includes(this._view)&&this._view!==e.view)}getRelationToFilter(e){if(this._repositoryID&&e.repositoryID&&this._repositoryID!==e.repositoryID)return"disjoint";if(this._isDiscarded!==e._isDiscarded)return"disjoint";if(this._view!==e.view&&py.includes(this._view)&&py.includes(e.view))return"disjoint";let t;if((this.nameContains||e.nameContains)&&(t=this._getRelationToNameContains(this.nameContains,e.nameContains),t===dy.DISJOINTED))return"disjoint";if(this._organizationID&&e.organizationID&&this._organizationID!==e.organizationID)return"disjoint";if(t&&t===dy.SUPERSET||t===dy.UNKNOWN)return"unknown";if(!this._organizationID&&e.organizationID)return"unknown";if([I.All,I.Admin,void 0].includes(this._view)&&py.includes(e.view))return"unknown";if(this.view===I.Admin&&e.view===I.All)return"unknown";if(this._view===I.Recent){switch(e.view){case I.Recent:case I.All:case I.Admin:case I.Yours:case I.SWY:case I.Organization:}return"unknown"}return e.view===I.Recent?"unknown":"subset"}}hy.YourProjects=new hy({view:I.Yours}),hy.AllProjects=new hy({view:I.All}),hy.SWYProjects=new hy({view:I.SWY}),hy.AdminProjects=new hy({view:I.Admin});var fy=Object.freeze({__proto__:null,default:hy});class my{constructor(e){this._listingOptions={},e&&(this._listingOptions=e)}get listingOptions(){return this._listingOptions}get hash(){return[this._listingOptions.publishedState?`publishedState:${this._listingOptions.publishedState}`:void 0,this._listingOptions.createDateMin?`createDateMin:${this._listingOptions.createDateMin.getTime()}`:void 0,this._listingOptions.createDateMax?`createDateMax:${this._listingOptions.createDateMax.getTime()}`:void 0,this._listingOptions.modifyDateMin?`modifyDateMin:${this._listingOptions.modifyDateMin.getTime()}`:void 0,this._listingOptions.modifyDateMax?`modifyDateMax:${this._listingOptions.modifyDateMax.getTime()}`:void 0,this._listingOptions.createdBy?`createdBy:${this._listingOptions.createdBy}`:void 0].filter((e=>e)).join(":")}matches(e){return!(this._listingOptions.publishedState&&e.publishedState!==this._listingOptions.publishedState||this._listingOptions.createdBy&&e.createdBy!==this._listingOptions.createdBy||this._listingOptions.createDateMin&&e.created<this._listingOptions.createDateMin||this._listingOptions.createDateMax&&e.created>this._listingOptions.createDateMax||this._listingOptions.modifyDateMin&&e.modified<this._listingOptions.modifyDateMin||this._listingOptions.modifyDateMax&&e.modified>this._listingOptions.modifyDateMax)}getRelationToFilter(e){const t=this.getRelationPublishedState(e),r=this.getRelationCreatedBy(e),n=bo(this._listingOptions.createDateMin,this._listingOptions.createDateMax,e._listingOptions.createDateMin,e._listingOptions.createDateMax),i=bo(this._listingOptions.modifyDateMin,this._listingOptions.modifyDateMax,e._listingOptions.modifyDateMin,e._listingOptions.modifyDateMax);return[t,r,n,i].some((e=>"disjoint"===e))?"disjoint":[t,r,n,i].some((e=>"unknown"===e))?"unknown":"subset"}getRelationPublishedState(e){return!this._listingOptions.publishedState&&e._listingOptions.publishedState?"unknown":this._listingOptions.publishedState!==e._listingOptions.publishedState&&e._listingOptions.publishedState?"disjoint":"subset"}getRelationCreatedBy(e){return this._listingOptions.createdBy===e._listingOptions.createdBy?"subset":e._listingOptions.createdBy?this._listingOptions.createdBy?"disjoint":"unknown":"subset"}}var gy,vy=Object.freeze({__proto__:null,default:my}),yy=Object.freeze({__proto__:null,default:class{constructor(e){this._listingOptions={},e&&(this._listingOptions=e)}get listingOptions(){return this._listingOptions}get hash(){return[this._listingOptions.publishedState?`publishedState:${this._listingOptions.publishedState}`:void 0,this._listingOptions.createDateMin?`createDateMin:${this._listingOptions.createDateMin.getTime()}`:void 0,this._listingOptions.createDateMax?`createDateMax:${this._listingOptions.createDateMax.getTime()}`:void 0,this._listingOptions.modifyDateMin?`modifyDateMin:${this._listingOptions.modifyDateMin.getTime()}`:void 0,this._listingOptions.modifyDateMax?`modifyDateMax:${this._listingOptions.modifyDateMax.getTime()}`:void 0,this._listingOptions.createdBy?`createdBy:${this._listingOptions.createdBy}`:void 0].filter((e=>e)).join(":")}matches(e){return!(this._listingOptions.publishedState&&e.publishedState!==this._listingOptions.publishedState&&this._listingOptions.publishedState!==Qr.ALL||this._listingOptions.createdBy&&e.createdBy!==this._listingOptions.createdBy||this._listingOptions.createDateMin&&e.created<this._listingOptions.createDateMin||this._listingOptions.createDateMax&&e.created>this._listingOptions.createDateMax||this._listingOptions.modifyDateMin&&e.modified<this._listingOptions.modifyDateMin||this._listingOptions.modifyDateMax&&e.modified>this._listingOptions.modifyDateMax)}getRelationToFilter(e){const t=this.getRelationPublishedState(e),r=this.getRelationCreatedBy(e),n=bo(this._listingOptions.createDateMin,this._listingOptions.createDateMax,e._listingOptions.createDateMin,e._listingOptions.createDateMax),i=bo(this._listingOptions.modifyDateMin,this._listingOptions.modifyDateMax,e._listingOptions.modifyDateMin,e._listingOptions.modifyDateMax);return[t,r,n,i].some((e=>"disjoint"===e))?"disjoint":[t,r,n,i].some((e=>"unknown"===e))?"unknown":"subset"}getRelationPublishedState(e){return this._listingOptions.publishedState===e._listingOptions.publishedState||e._listingOptions.publishedState===Qr.ALL||void 0===e._listingOptions.publishedState?"subset":this._listingOptions.publishedState===Qr.ALL||void 0===this._listingOptions.publishedState?"unknown":"disjoint"}getRelationCreatedBy(e){return this._listingOptions.createdBy===e._listingOptions.createdBy?"subset":e._listingOptions.createdBy?this._listingOptions.createdBy?"disjoint":"unknown":"subset"}}}),by=Object.freeze({__proto__:null,default:class extends Ps{constructor(e){super(e),this._excludeInheritanceTypes=void 0;const t=null!=e?e:{},r=t.uploadedFrom,n=t.userId,i=t.excludeInheritanceTypes;if(void 0!==r){if(!r.length)throw we.create(ge.UNSUPPORTED,"Empty uploadedFrom array is not currently supported.");this._uploadedFrom=r}n&&(this._userId=n),i&&(this._excludeInheritanceTypes=new Set(i))}get name(){return ho}get hash(){var e;let t=`${super.hash}:${this._uploadedFrom}:${this._userId}`;return t+=":excludeinheritancetypes="+((null===(e=this._excludeInheritanceTypes)||void 0===e?void 0:e.size)?`${[...this._excludeInheritanceTypes].sort().join(",")}`:"none"),t}get uploadedFrom(){return this._uploadedFrom}get userId(){return this._userId}get excludeInheritanceTypes(){return this._excludeInheritanceTypes}matches(e){var t,r;return(!this._userId||this._userId===e.storageAssignee.id)&&!(Array.isArray(this._uploadedFrom)&&e.createdFromUpload&&!this._uploadedFrom.includes(null!==(t=e.createdByClientId)&&void 0!==t?t:""))&&!(("ALL"===this._uploadedFrom||Array.isArray(this._uploadedFrom))&&!e.createdFromUpload)&&(!(null===(r=this._excludeInheritanceTypes)||void 0===r?void 0:r.has(ao.StudentAssignmentAssetId))||!e.isChildOfStudentAssignment)&&super.matches(e)}getRelationToFilter(e){if(e.name!==ho)return gi("USSAdobeAssetFilter","Cannot switch between an AdobeAssetFilter and a USSAdobeAssetFilter"),"disjoint";if(this._userId&&e.userId&&this._userId!==e.userId)return"disjoint";if(this._excludeInheritanceTypes&&e._excludeInheritanceTypes&&[...this._excludeInheritanceTypes].sort()!==[...e._excludeInheritanceTypes].sort())return"disjoint";if(this.excludeInheritanceTypes&&!e.excludeInheritanceTypes||!this.excludeInheritanceTypes&&e.excludeInheritanceTypes)return"unknown";if(Array.isArray(this.uploadedFrom)&&Array.isArray(e.uploadedFrom)){const t=function(e,t){let r=0;return e.forEach((e=>{t.find((t=>e===t))&&r++})),r===e.length&&r===t.length?"all":r>0?"some":"none"}(this.uploadedFrom,e.uploadedFrom);if("none"===t)return"disjoint";if("some"===t&&this.uploadedFrom.length>=e.uploadedFrom.length)return"unknown"}return!this.uploadedFrom&&e.uploadedFrom||"ALL"===this.uploadedFrom&&Array.isArray(e.uploadedFrom)||!this.userId&&e.userId?"unknown":super.getRelationToFilter(e)}}});class _y{constructor(e){this._bookmarked=!1,this._bookmarked=Boolean(null==e?void 0:e.bookmarked),this._teamID=null==e?void 0:e.teamID,this._teamRole=null==e?void 0:e.teamRole,this._state=null==e?void 0:e.state,this._teamRole=null==e?void 0:e.teamRole}static ActiveSpacesFromTeam(e){return new _y({state:"active",teamID:e})}get bookmarked(){return this._bookmarked}get teamID(){return this._teamID}get teamRole(){return this._teamRole}get state(){return this._state}get hash(){var e,t;return String(this.bookmarked)+":"+(this.teamID||"all-teams")+":"+(null!==(e=this._teamRole)&&void 0!==e?e:"all-roles")+":"+(null!==(t=this._state)&&void 0!==t?t:"any-state")}matches(e){if(this._bookmarked&&!e.isBookmarked)return!1;const t=this._teamID;if(t&&e.teamID!==t)return!1;const r=this._teamRole;if(r&&e.teamRole!==r)return!1;const n=this._state;return!n||n===e.state}getRelationToFilter(e){const t=e;return this._teamRole!==t._teamRole?this._teamRole&&t._teamRole?"disjoint":"unknown":this.teamID&&t.teamID&&this.teamID!==t.teamID?"disjoint":!this.teamID&&t.teamID||!this.bookmarked&&e.bookmarked?"unknown":this._state!==e._state?this._state&&e._state?"disjoint":"unknown":"subset"}}_y.ActiveSpaces=new _y({state:"active"}),_y.ArchivedSpaces=new _y({state:"archived"}),_y.ActiveBookmarkedSpaces=new _y({state:"active",bookmarked:!0}),_y.ActiveSpacesFromOtherTeams=new _y({state:"active",teamRole:"NONE"}),function(e){e[e.DISJOINTED=0]="DISJOINTED",e[e.SUPERSET=1]="SUPERSET",e[e.SUBSET=2]="SUBSET",e[e.UNKNOWN=3]="UNKNOWN",e[e.IDENTICAL=4]="IDENTICAL"}(gy||(gy={}));class Ey{constructor(e){this._nameContains=null==e?void 0:e.nameContains,this._state=null==e?void 0:e.state}static TeamsContainingName(e){return new Ey({nameContains:e})}get nameContains(){return this._nameContains}get state(){return this._state}get hash(){var e,t;return(null!==(e=this._nameContains)&&void 0!==e?e:"any-name")+":"+(null!==(t=this._state)&&void 0!==t?t:"any-state")}_getRelationToNameContains(e,t){if(e===t)return gy.IDENTICAL;const r=e.toLowerCase().split(" ").filter(uy).sort(),n=t.toLowerCase().split(" ").filter(uy).sort();if(0===r.length&&0===n.length)return gy.IDENTICAL;if(0===r.length||0===n.length)return gy.DISJOINTED;if(r.length===n.length&&r.every(((e,t)=>e===n[t])))return gy.IDENTICAL;let i=0,o=0;return r.forEach((e=>{const t=n.find((t=>{const r=t.startsWith(e),n=e.startsWith(t);return r||n}));t&&(e.length<=t.length&&o++,e.length>t.length&&i++)})),r.length===i?gy.SUBSET:r.length===o?gy.SUPERSET:0===i&&0===o?gy.DISJOINTED:gy.UNKNOWN}_searchTarget(e,t){const r=e.toLowerCase().split(" ").filter(uy),n=t.toLowerCase().split(" ").filter(uy);return 0!==r.length&&0!==n.length&&r.every((e=>n.find((t=>t.startsWith(e)))))}matches(e){const t=this._state;if(t&&t!==e.state)return!1;const r=this._nameContains;return!(r&&!this._searchTarget(r,e.name))}getRelationToFilter(e){let t;return this.nameContains&&e.nameContains&&(t=this._getRelationToNameContains(this.nameContains,e.nameContains),t===gy.DISJOINTED)||this.state&&e.state&&this.state!==e.state?"disjoint":!this.state&&e.state||!this.nameContains&&e.nameContains||t&&t===gy.SUPERSET||t===gy.UNKNOWN?"unknown":"subset"}}Ey.ActiveTeams=new Ey({state:"active"}),Ey.DiscardedTeams=new Ey({state:"discarded"});class wy extends wi{constructor(){super(...arguments),this._created=new Date,this._createdBy="",this._name="",this._repositoryID="",this._repositoryName="",this._state="active",this._role="none"}get teamID(){return this.id}get created(){return this._created}get createdBy(){return this._createdBy}get name(){return this._name}get description(){return this._description}get repositoryID(){return this._repositoryID}get repositoryName(){return this._repositoryName}get repositoryOwnerID(){return this._repositoryOwnerID}get repositoryOwnerEmail(){return this._repositoryOwnerEmail}get repositoryOwnerType(){return this._repositoryOwnerType}get collaboratorRole(){return gi("collaboratorRoleDeprecated","The property collaboratorRole has been depecrated in favor of role."),"owner"===this._role?"editor":this._role}get role(){return this._role}get state(){return this._state}get _links(){return this.__links}archive(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.spaceContext.archiveTeam(e);case 2:case"end":return t.stop()}}),t)})))()}createSpace(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._core.spaceContext.createSpace(t,e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}permanentlyDelete(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.spaceContext.permanentlyDeleteTeam(e);case 2:case"end":return t.stop()}}),t)})))()}rename(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._core.spaceContext.renameTeam(t,e);case 2:case"end":return r.stop()}}),r)})))()}restore(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.spaceContext.restoreTeam(e);case 2:case"end":return t.stop()}}),t)})))()}update(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._core.spaceContext.updateTeam(t,e);case 2:case"end":return r.stop()}}),r)})))()}ensureDescription(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.spaceContext.loadTeamProperties(e);case 2:case"end":return t.stop()}}),t)})))()}}Ie([$e],wy.prototype,"created",null),Ie([$e],wy.prototype,"createdBy",null),Ie([$e],wy.prototype,"name",null),Ie([$e],wy.prototype,"description",null),Ie([$e],wy.prototype,"repositoryID",null),Ie([$e],wy.prototype,"repositoryName",null),Ie([$e],wy.prototype,"repositoryOwnerID",null),Ie([$e],wy.prototype,"repositoryOwnerEmail",null),Ie([$e],wy.prototype,"repositoryOwnerType",null),Ie([$e],wy.prototype,"collaboratorRole",null),Ie([$e],wy.prototype,"role",null),Ie([$e],wy.prototype,"state",null),Ie([$e],wy.prototype,"_links",null);const xy=new Di({localItemType:wy,remoteIdProperty:"id",propertyUpdater:new Hi({_created:{name:"createDate",format:"date"},_createdBy:"createdBy",_description:"description",_name:"name",_repositoryID:"repositoryId",_repositoryName:"repositoryName",_repositoryOwnerID:"repositoryOwner.id",_repositoryOwnerEmail:"repositoryOwner.email",_repositoryOwnerType:{name:"repositoryOwner.type",choices:["org","user"]},_role:{name:"role",choices:Av},_state:{name:"state",choices:["active","discarded"]},__links:{name:"_links",format:"object"}})}),Ly={displayName:(e,t)=>Yi(e.displayName,t.displayName)};class Oy extends(Ki(Ly)){}Oy.default=new Oy("ascending","displayName");const Sy={displayName:(e,t)=>Yi(e.displayName,t.displayName)};class Ty extends(Ki(Sy)){}Ty.default=new Ty("ascending","displayName");class Py extends En{constructor(e,t,r){var n;super(),n=this,this._library=r,this._index=-1,this._core=this._library._core,this.type=e.type,this._index=t,"href"===this.type?(this._renditionUrl=e.rendition,this._renditionFetcher=new Gn(this._core,[200],me(he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n._library._libraryInterface.getRenditionTileImage(n._renditionUrl));case 1:case"end":return e.stop()}}),e)})))),this._renditionFetcher.on("change",(()=>{this.dispatch({type:"change"})}))):(this._renditionData=e.rendition,this.mimetype=e.rendition_mimetype),this.elementId=e.elementId,this.elementType=e.elementType}get imageUrl(){if("href"!==this.type)throw we.create(ge.UNKNOWN,"Cannot fetch rendition for non-image renditions");return this._renditionFetcher.getURL(200,Fn.PNG,this._renditionUrl)}get data(){if("href"!==this.type)return"object"==typeof this._renditionData?this._renditionData:(console.warn("Rendition data is not an object, returning default value."),{});throw we.create(ge.UNKNOWN,"Cannot get data for image renditions")}get imageStatus(){return this._renditionFetcher.renditionURLStatus(200,Fn.PNG,this._renditionUrl)}_releaseRenditions(){this._renditionFetcher&&this._renditionFetcher.release()}}Ie([$e],Py.prototype,"imageUrl",null),Ie([$e],Py.prototype,"imageStatus",null);const Iy=new Di({localItemType:class extends Nn{constructor(){super(...arguments),this._isDefault=!1,this._type="",this._angle=0,this._stops=[],this._name="",this._languageCode="",this._gradientID="",this._textAlpha=1,this._textMode="RGB",this._textColorValue={r:0,g:0,b:0},this._textType="process"}get isDefault(){return this._isDefault}get type(){return this._type}get angle(){return this._angle}get stops(){return this._stops}get name(){return this._name}get languageCode(){return this._languageCode}get gradientID(){return this._gradientID}get textAlpha(){return this._textAlpha}get textMode(){return this._textMode}get textColorValue(){return this._textColorValue}get textType(){return this._textType}},remoteIdProperty:"computedID",propertyUpdater:new Hi({_isDefault:{name:"project:gradientData.isDefault",format:"boolean"},_type:{name:"project:gradientData.type",format:"string"},_angle:{name:"project:gradientData.angle",format:"string"},_name:{name:"project:gradientName",format:"string"},_stops:{name:"project:gradientData.stops",format:"object"},_languageCode:{name:"project:gradientData.languageCode",format:"string"},_gradientID:"project:gradientId",_textAlpha:{name:"project:gradientTextColor.alpha",format:"number"},_textMode:{name:"project:gradientTextColor.mode",format:"string"},_textColorValue:{name:"project:gradientTextColor.value",format:"object"},_textType:{name:"project:gradientTextColor.type",format:"string"}})}),Ay="frameioAuthorizationChange",Cy=new class extends He{constructor(){super(Ay)}},ky="frameioReviewLinksChange",Dy=new class extends He{constructor(){super(ky)}},Ny="https://api.frame.io",Ry={ME:`${Ny}/v2/me`,ACCOUNT:`${Ny}/v2/accounts/{accountId}`,ACCOUNTS:`${Ny}/v2/accounts?join=collaborator`,TEAMS:`${Ny}/v2/accounts/{accountId}/teams?include=user_role&role=member`,TEAM:`${Ny}/v2/teams/{teamId}?include=account`,PROJECT:`${Ny}/v2/projects/{projectId}?include=string`,PROJECTS:`${Ny}/v2/teams/{teamId}/projects?filter[archived]`,SHAREDPROJECTS:`${Ny}/v2/projects/shared?filter[account_id]={accountId}`,REVIEWS:`${Ny}/v2/projects/{projectId}/review_links`,REVIEW:`${Ny}/v2/review_links/{reviewLinkId}`,ITEMCREATE:`${Ny}/v2/review_links/{reviewLinkId}/assets`,ASSETS:`${Ny}/v2/assets/{assetId}/children?include=cover_asset`,ASSET:`${Ny}/v2/assets/{assetId}?type=folder&include=cover_asset`,CREATEASSET:`${Ny}/v2/assets/{parentId}/children`,VERSION:`${Ny}/v2/assets/{assetId}/version`,CREATECOMMENT:`${Ny}/v2/assets/{assetId}/comments`,GETCOMMENT:`${Ny}/v2/comments/{commentId}?include=string`,GETCOMMENTS:`${Ny}/v2/assets/{assetId}/comments?include=string`,IMPRESSIONS:`${Ny}/v2/comments/{commentId}/impressions?include=string`,COMMENT:`${Ny}/v2/comments/{commentId}`,REPLY:`${Ny}/v2/comments/{commentId}/replies`,GETREPLIES:`${Ny}/v2/comments/{commentId}/replies?include=replies`,LIKE:`${Ny}/v2/comments/{commentId}/like`,COMPLETE:`${Ny}/v2/comments/{commentId}/complete`,FOLDERTREE:`${Ny}/v2/projects/{projectId}/folder_tree`,ANCESTORS:`${Ny}/v2/assets/{assetId}/ancestors`,ADOBE_SUSI_USER:`${Ny}/v2/auth/adobe/method`,ADOBE_SUSI:`${Ny}/v2/auth/adobe/callback`};function My(e,t){return Je(e).fill(t)}var jy;!function(e){e[e.authLoggedOut=0]="authLoggedOut",e[e.authLoggedIn=1]="authLoggedIn",e[e.authExpired=2]="authExpired"}(jy||(jy={}));class Fy extends Pt{constructor(e){super(e._core),this._frameioContext=e;const t="adobe+"+this._core._environment.getValue("HOST_PRODUCT_DATA").PRODUCT_ID;this._frameioClientId=t.toLowerCase()}get nativeContext(){const e="undefined"!=typeof window&&window.acplModel;if(!this._nativeContext&&e){const t=e.Workflows;if(t.createShareForReviewWorkflow){const r=t.createShareForReviewWorkflow(e.applicationAssetContext);if(this._nativeContext=r.getFrameioAssetContext(),this._nativeContext){const e=this;this._nativeContext.addEventListener(ky,(t=>{e._frameioContext._handleReviewLinksChangeEvent(t)})),this._nativeContext.addEventListener(Ay,me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=e.nativeContext.authenticationInfo()).frameioToken){t.next=7;break}return t.next=4,e._cacheCredentials(JSON.stringify(r));case 4:e._frameioContext._updateCurrentUserId(r.frameioUserId),t.next=10;break;case 7:return t.next=9,e._core._environment.cache.deleteItem(e._cachedCredentialsId());case 9:e._frameioContext._updateCurrentUserId(void 0);case 10:e._frameioContext.dispatch(Cy);case 11:case"end":return t.stop()}}),t)}))))}}else gi("FrameioInterface.nativeContext","Share for Review workflows are not enabled for this application")}return this._nativeContext||gi("FrameioInterface.nativeContext","native Frameio context does not exist, web/browser mode is utilized for testing only"),this._nativeContext}get _authenticationId(){return this.adobeId}_cachedCredentialsId(){return"FRAMEIO_CREDENTIALS_"+this._authenticationId}_getRefreshTokenExpiration(e){const t=parseInt(e);return t?t+1296e3:0}_getCachedCredentials(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e._cachedCredentialsId(),t.next=3,e._core._environment.cache.getItem(r);case 3:if((n=t.sent)===wr){t.next=6;break}return t.abrupt("return",n);case 6:return t.abrupt("return","");case 7:case"end":return t.stop()}}),t)})))()}_cacheCredentials(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._core._environment.cache.setItem(t._cachedCredentialsId(),e,12096e5));case 1:case"end":return r.stop()}}),r)})))()}get adobeId(){return this._core._environment.getValue("USER_ID")}get ccUserId(){return this._core._environment.getValue("USER_EMAIL")||""}get imsToken(){return this._core._environment.getValue("ACCESS_TOKEN")}get xFrameioClient(){return this._frameioClientId}get productKey(){const e=this._core._environment.getValue("HOST_PRODUCT_DATA").PRODUCT_ID;return e.includes("Photoshop")?"PHXS":e.includes("Illustrator")?"ILST":e.includes("InDesign")?"IDSN":e.includes("SAMJSDemoApp")?"dev":e.includes("/")?e.slice(0,e.indexOf("/")):"dev"}checkForCachedCredentials(){var e=this;return me(he().mark((function t(){var r,n,i,o,a,s;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._getCachedCredentials();case 2:if(""===(r=t.sent)){t.next=22;break}if(n=e.nativeContext,i=JSON.parse(r),!(o=e._getRefreshTokenExpiration(i.frameioLastRefresh))){t.next=12;break}if(a=Math.floor(Date.now()/1e3),!(o-a<=0)){t.next=12;break}return t.abrupt("return",jy.authExpired);case 12:if(i.xFrameioClient=e.xFrameioClient,!n){t.next=22;break}return t.next=16,n.authenticateUser(i);case 16:if(t.sent===i.token){t.next=22;break}return s=n.authenticationInfo(),t.next=21,e._cacheCredentials(JSON.stringify(s));case 21:return t.abrupt("return",jy.authLoggedIn);case 22:return t.abrupt("return",jy.authLoggedOut);case 23:case"end":return t.stop()}}),t)})))()}isAuthenticated(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.authenticationStatus();case 2:return r=t.sent,t.abrupt("return",r===jy.authLoggedIn);case 4:case"end":return t.stop()}}),t)})))()}authenticationStatus(){var e=this;return me(he().mark((function t(){var r,n,i,o,a,s,c;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(o=e.nativeContext)){t.next=8;break}if((a=o.authenticationStatus(e._authenticationId))!==jy.authLoggedOut){t.next=7;break}return t.next=6,e.checkForCachedCredentials();case 6:a=t.sent;case 7:return t.abrupt("return",a);case 8:if(!(null===(r=e._authenticationInfo)||void 0===r?void 0:r.frameioLastRefresh)){t.next=17;break}if(s=new Date,(c=new Date(0)).setUTCSeconds(parseInt(null===(n=e._authenticationInfo)||void 0===n?void 0:n.frameioLastRefresh)),!(Math.abs(s.valueOf()-c.valueOf())/36e5>=359)){t.next=16;break}return t.abrupt("return",jy.authExpired);case 16:return t.abrupt("return",(null===(i=e._authenticationInfo)||void 0===i?void 0:i.frameioToken)?jy.authLoggedIn:jy.authLoggedOut);case 17:return t.abrupt("return",jy.authLoggedOut);case 18:case"end":return t.stop()}}),t)})))()}getToken(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=e.nativeContext)){t.next=5;break}return t.next=4,n.getToken();case 4:return t.abrupt("return",t.sent);case 5:return t.abrupt("return",(null===(r=e._authenticationInfo)||void 0===r?void 0:r.frameioToken)||"");case 6:case"end":return t.stop()}}),t)})))()}refreshToken(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=e.nativeContext)){t.next=10;break}return t.next=4,n.getToken(!0);case 4:if(i=t.sent,o=n.authenticationInfo(),i!==o.frameioToken){t.next=9;break}return t.next=9,e._cacheCredentials(JSON.stringify(o));case 9:return t.abrupt("return",i);case 10:return t.abrupt("return",(null===(r=e._authenticationInfo)||void 0===r?void 0:r.frameioToken)||"");case 11:case"end":return t.stop()}}),t)})))()}authenticate(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s,c,l,u;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(n=t.nativeContext)){r.next=19;break}if(i=t.adobeId,o=t.ccUserId,a=t.productKey,s=t.xFrameioClient,n.isUserAuthenticated(t._authenticationId)){r.next=17;break}return c={adobeId:i,ccUserId:o,productKey:a,xFrameioClient:s},void 0!==e&&(c.frameioToken=e.frameioToken,c.frameioRefreshToken=(null==e?void 0:e.frameioRefreshToken)||void 0,c.frameioTokenExpires=(null==e?void 0:e.frameioTokenExpires)||void 0,c.frameioUserId=(null==e?void 0:e.frameioUserId)||void 0,c.frameioLastRefresh=(null==e?void 0:e.frameioLastRefresh)||void 0),r.next=11,n.authenticateUser(c);case 11:if(""===(l=r.sent)){r.next=16;break}return u=n.authenticationInfo(),r.next=16,t._cacheCredentials(JSON.stringify(u));case 16:return r.abrupt("return",l);case 17:r.next=20;break;case 19:t._authenticationInfo=e||void 0;case 20:return r.next=22,t.getToken();case 22:return r.abrupt("return",r.sent);case 23:case"end":return r.stop()}}),r)})))()}deauthenticate(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e._authenticationInfo=void 0,t.next=3,e._core._environment.cache.deleteItem(e._cachedCredentialsId());case 3:if(!(r=e.nativeContext)){t.next=7;break}return t.next=7,r.deauthenticateUser(e._authenticationId);case 7:return t.abrupt("return");case 8:case"end":return t.stop()}}),t)})))()}openFile(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(n=t.nativeContext)){r.next=5;break}return r.next=4,n.openFile(e);case 4:return r.abrupt("return",r.sent);case 5:throw we.create(ge.UNSUPPORTED,"Method is not supported in browser _environment.");case 6:case"end":return r.stop()}}),r)})))()}dispatchReviewLinksChangeEvent(e){const t=this.nativeContext;if(!t)throw we.create(ge.UNSUPPORTED,"Method is not supported in browser _environment.");t.dispatchReviewLinksChangeEvent(e)}getAdobeSusiInfo(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._adobeSusiUserRequest();case 2:return r=t.sent,n={userExists:r.exists,susiAvailable:"adobe"===r.method,restriction:r.restriction||void 0},t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)})))()}authenticateAdobeSusi(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._adobeSusiRequest();case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})))()}_adobeSusiUserRequest(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._doPost(Ry.ADOBE_SUSI_USER,{"Content-Type":"application/json"},JSON.stringify({access_token:e.imsToken}),[200]);case 2:return r=t.sent,t.abrupt("return",r.json());case 4:case"end":return t.stop()}}),t)})))()}_adobeSusiRequest(){var e=this;return me(he().mark((function t(){var r,n,i,o,a,s,c;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._doPost(Ry.ADOBE_SUSI,{"Content-Type":"application/json"},JSON.stringify({access_token:e.imsToken}),[200]);case 2:return r=t.sent,n=r.headers,t.next=6,r.json();case 6:return i=t.sent,o=n.get("authorization"),a=n.get("x-refresh-token"),s=n.get("x-expires"),c={frameioToken:o?o.replace("Bearer ",""):"",frameioRefreshToken:a||void 0,frameioTokenExpires:s||void 0,frameioUserId:i.id||void 0,frameioLastRefresh:Date.now().toString(),useAdobeSusi:!0},t.abrupt("return",c);case 12:case"end":return t.stop()}}),t)})))()}_getFetchOptionOverrides(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.getToken();case 2:return i=n.sent,n.abrupt("return",{href:e,options:Object.assign(Object.assign({},t),{headers:Object.assign(Object.assign({},t.headers),{authorization:`Bearer ${i}`,"x-frameio-client":r.xFrameioClient}),noOtherHeaders:!0})});case 4:case"end":return n.stop()}}),n)})))()}_getMultiPageResponse(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=[],i=e=>{const t=e&&e.headers&&e.headers.get("Link"),r=t&&_t.parse(t),n=r&&r.has("rel","next")&&r.get("rel","next"),i=n&&n[0]&&n[0].uri;return i&&i.replace("http:","https:")},o=function(){var e=me(he().mark((function e(r){var a,s,c;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._doGet(r);case 2:return a=e.sent,e.next=5,a.json();case 5:return s=e.sent,c=i(a),n=n.concat(s),e.abrupt("return",c?o(c):n);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),r.abrupt("return",o(e));case 4:case"end":return r.stop()}}),r)})))()}getCurrentUser(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._getResponse(Ry.ME));case 1:case"end":return t.stop()}}),t)})))()}getAccount(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getResponse(My(Ry.ACCOUNT,{accountId:e})));case 1:case"end":return r.stop()}}),r)})))()}getAccounts(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._getMultiPageResponse(Ry.ACCOUNTS));case 1:case"end":return t.stop()}}),t)})))()}getTeams(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getMultiPageResponse(My(Ry.TEAMS,{accountId:e})));case 1:case"end":return r.stop()}}),r)})))()}getTeam(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getResponse(My(Ry.TEAM,{teamId:e})));case 1:case"end":return r.stop()}}),r)})))()}getProject(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getResponse(My(Ry.PROJECT,{projectId:e})));case 1:case"end":return r.stop()}}),r)})))()}getProjects(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getMultiPageResponse(My(Ry.PROJECTS,{teamId:e})));case 1:case"end":return r.stop()}}),r)})))()}getSharedProjects(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getMultiPageResponse(My(Ry.SHAREDPROJECTS,{accountId:e})));case 1:case"end":return r.stop()}}),r)})))()}getReviewLinks(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getMultiPageResponse(My(Ry.REVIEWS,{projectId:e})));case 1:case"end":return r.stop()}}),r)})))()}getReviewLink(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getResponse(My(Ry.REVIEW,{reviewLinkId:e})));case 1:case"end":return r.stop()}}),r)})))()}createReviewLink(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPost(My(Ry.REVIEWS,{projectId:e}),{"Content-Type":"application/json"},JSON.stringify({name:t}),[200]);case 2:return i=n.sent,n.abrupt("return",i.json());case 4:case"end":return n.stop()}}),n)})))()}createFolder(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPost(My(Ry.CREATEASSET,{parentId:e}),{"Content-Type":"application/json"},JSON.stringify({name:t,type:"folder"}),[200]);case 2:return i=n.sent,n.abrupt("return",i.json());case 4:case"end":return n.stop()}}),n)})))()}createFile(e,t,r,n="application/pdf"){var i=this;return me(he().mark((function o(){var a;return he().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,i._doPost(My(Ry.CREATEASSET,{parentId:e}),{"Content-Type":"application/json"},JSON.stringify({name:t,type:"file",filetype:n,filesize:r}),[200]);case 2:return a=o.sent,o.abrupt("return",a.json());case 4:case"end":return o.stop()}}),o)})))()}uploadFile(e,t,r="application/pdf"){return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i={method:"PUT",headers:{"Content-Type":r,"x-amz-acl":"private"},body:t},n.next=3,fetch(e,i);case 3:case"end":return n.stop()}}),n)})))()}reviewLinkAddAsset(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPost(My(Ry.ITEMCREATE,{reviewLinkId:e}),{"Content-Type":"application/json"},JSON.stringify({asset_ids:[t]}),[200]);case 2:return i=n.sent,n.abrupt("return",i.json());case 4:case"end":return n.stop()}}),n)})))()}getChildren(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getMultiPageResponse(My(Ry.ASSETS,{assetId:e})));case 1:case"end":return r.stop()}}),r)})))()}getAsset(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getResponse(My(Ry.ASSET,{assetId:e})));case 1:case"end":return r.stop()}}),r)})))()}addVersionToAsset(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPost(My(Ry.VERSION,{assetId:e}),{"Content-Type":"application/json"},JSON.stringify({next_asset_id:t}),[200]);case 2:return i=n.sent,n.abrupt("return",i.json());case 4:case"end":return n.stop()}}),n)})))()}createComment(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPost(My(Ry.CREATECOMMENT,{assetId:e}),{"Content-Type":"application/json"},JSON.stringify({text:t}),[200]);case 2:return i=n.sent,n.abrupt("return",i.json());case 4:case"end":return n.stop()}}),n)})))()}getComment(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getResponse(My(Ry.GETCOMMENT,{commentId:e})));case 1:case"end":return r.stop()}}),r)})))()}getComments(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getMultiPageResponse(My(Ry.GETCOMMENTS,{assetId:e})));case 1:case"end":return r.stop()}}),r)})))()}getImpressions(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getMultiPageResponse(My(Ry.IMPRESSIONS,{commentId:e})));case 1:case"end":return r.stop()}}),r)})))()}updateComment(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPut(My(Ry.COMMENT,{commentId:e}),{"Content-Type":"application/json"},JSON.stringify({text:t}),[200]);case 2:return i=n.sent,n.abrupt("return",i.json());case 4:case"end":return n.stop()}}),n)})))()}deleteComment(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doDelete(My(Ry.COMMENT,{commentId:e}));case 2:return n=r.sent,r.abrupt("return",n.json());case 4:case"end":return r.stop()}}),r)})))()}createReply(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPost(My(Ry.REPLY,{commentId:e}),{"Content-Type":"application/json"},JSON.stringify({text:t}),[200]);case 2:return i=n.sent,n.abrupt("return",i.json());case 4:case"end":return n.stop()}}),n)})))()}getReplies(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getMultiPageResponse(My(Ry.GETREPLIES,{commentId:e})));case 1:case"end":return r.stop()}}),r)})))()}createLike(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doPost(My(Ry.LIKE,{commentId:e}),{},void 0,[200]);case 2:return n=r.sent,r.abrupt("return",n.json());case 4:case"end":return r.stop()}}),r)})))()}deleteLike(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doDelete(My(Ry.LIKE,{commentId:e}));case 2:return n=r.sent,r.abrupt("return",n.json());case 4:case"end":return r.stop()}}),r)})))()}completeComment(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doPost(My(Ry.COMPLETE,{commentId:e}),{},void 0,[200]);case 2:return n=r.sent,r.abrupt("return",n.json());case 4:case"end":return r.stop()}}),r)})))()}uncompleteComment(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doDelete(My(Ry.COMPLETE,{commentId:e}));case 2:return n=r.sent,r.abrupt("return",n.json());case 4:case"end":return r.stop()}}),r)})))()}getFolderTree(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getResponse(My(Ry.FOLDERTREE,{projectId:e})));case 1:case"end":return r.stop()}}),r)})))()}getAncestors(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getMultiPageResponse(My(Ry.ANCESTORS,{assetId:e})));case 1:case"end":return r.stop()}}),r)})))()}}class Zy extends Nn{get context(){return this._core.frameioContext}}const By=new Di({localItemType:class extends Zy{constructor(){super(...arguments),this._accountId="",this._email="",this._name="",this._profileImage="",this._userDefaultColor=""}get accountId(){return this._accountId}get email(){return this._email}get name(){return this._name}get profileImage(){return this._profileImage}get userDefaultColor(){return this._userDefaultColor}getAccount(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._account){t.next=4;break}return t.next=3,e.context.getAccount(e.accountId);case 3:e._account=t.sent;case 4:return t.abrupt("return",e._account);case 5:case"end":return t.stop()}}),t)})))()}},remoteIdProperty:"id",propertyUpdater:new Hi({_accountId:"account_id",_email:"email",_name:"name",_profileImage:"profile_image",_userDefaultColor:"user_default_color"})});class Gy extends Zy{constructor(){super(...arguments),this._name="",this._projectId="",this._teamId=""}get insertedAt(){return this._insertedAt}get name(){return this._name}get parentId(){return this._parentId}getParent(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.context,!(n=e.parentId)){t.next=4;break}return t.abrupt("return",r.getAsset(n));case 4:return t.abrupt("return",void 0);case 5:case"end":return t.stop()}}),t)})))()}get projectId(){return this._projectId}get teamId(){return this._teamId}get updatedAt(){return this._updatedAt}getAncestors(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.context.getAncestors(e.id));case 1:case"end":return t.stop()}}),t)})))()}}const Uy=new Di({localItemType:class extends Zy{get anonymousUserId(){return this._anonymousUserId||""}get comment(){return this._comment}get commentId(){return this._commentId||""}get deletedAt(){return this._deletedAt}get insertedAt(){return this._insertedAt}get updatedAt(){return this._updatedAt}get userId(){return this._userId||""}},remoteIdProperty:"id",propertyUpdater:new Hi({_anonymousUserId:"anonymous_user_id",_comment:{set:(e,t)=>{const r=t,n=r.context._objectPool.createUpdateSession();r._comment=Hy.updateRemoteItem(n,e),n.commit()},name:"comment",format:"object"},_commentId:"comment_id",_deletedAt:{name:"deleted_at",format:"date"},_insertedAt:{name:"inserted_at",format:"date"},_updatedAt:{name:"updated_at",format:"date"},_userId:"user_id"})}),Hy=new Di({localItemType:class extends Zy{constructor(){super(...arguments),this._completed=!1,this._hasReplies=!1,this._likeCount=0,this._private=!1,this._readCount=0,this._timestamp=0,this._timestampMicroseconds=0}get assetId(){return this._assetId||""}get completed(){return this._completed}get completedAt(){return this._completedAt}get completerId(){return this._completerId||""}get deletedAt(){return this._deletedAt}get hasReplies(){return this._hasReplies}get insertedAt(){return this._insertedAt}get likeCount(){return this._likeCount}get owner(){return this._owner}get ownerId(){return this._ownerId||""}get page(){return this._page||""}get parentId(){return this._parentId||""}get private(){return this._private}get readCount(){return this._readCount}get reviewLinkId(){return this._reviewLinkId||""}get targetAssetId(){return this._targetAssetId||""}get text(){return this._text||""}get textEditedAt(){return this._textEditedAt}get timestamp(){return this._timestamp}get timestampMicroseconds(){return this._timestampMicroseconds}get updatedAt(){return this._updatedAt}updateComment(e){var t=this;return me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.context,r.next=3,n._frameioInterface.updateComment(t.id,e.text);case 3:return i=r.sent,o=n._objectPool.createUpdateSession(),a=Hy.updateRemoteItem(o,i),o.commit(),r.abrupt("return",a);case 8:case"end":return r.stop()}}),r)})))()}deleteComment(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.context,t.next=3,r._frameioInterface.deleteComment(e.id);case 3:return n=t.sent,i=r._objectPool.createUpdateSession(),o=Hy.updateRemoteItem(i,n),i.commit(),t.abrupt("return",o);case 8:case"end":return t.stop()}}),t)})))()}createLike(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.context,t.next=3,r._frameioInterface.createLike(e.id);case 3:return n=t.sent,i=r._objectPool.createUpdateSession(),o=Uy.updateRemoteItem(i,n),i.commit(),t.abrupt("return",o);case 8:case"end":return t.stop()}}),t)})))()}deleteLike(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.context,t.next=3,r._frameioInterface.deleteLike(e.id);case 3:return n=t.sent,i=r._objectPool.createUpdateSession(),o=Uy.updateRemoteItem(i,n),i.commit(),t.abrupt("return",o);case 8:case"end":return t.stop()}}),t)})))()}createReply(e){var t=this;return me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.context,r.next=3,n._frameioInterface.createReply(t.id,e.text);case 3:return i=r.sent,o=n._objectPool.createUpdateSession(),a=Hy.updateRemoteItem(o,i),o.commit(),r.abrupt("return",a);case 8:case"end":return r.stop()}}),r)})))()}getReplies(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.context,t.next=3,r._frameioInterface.getReplies(e.id);case 3:return n=t.sent,i=r._objectPool.createUpdateSession(),o=Hy.updateRemoteItems(i,n),i.commit(),t.abrupt("return",o);case 8:case"end":return t.stop()}}),t)})))()}completeComment(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.context,t.next=3,r._frameioInterface.completeComment(e.id);case 3:return n=t.sent,i=r._objectPool.createUpdateSession(),o=Hy.updateRemoteItem(i,n),i.commit(),t.abrupt("return",o);case 8:case"end":return t.stop()}}),t)})))()}uncompleteComment(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.context,t.next=3,r._frameioInterface.uncompleteComment(e.id);case 3:return n=t.sent,i=r._objectPool.createUpdateSession(),o=Hy.updateRemoteItem(i,n),i.commit(),t.abrupt("return",o);case 8:case"end":return t.stop()}}),t)})))()}},remoteIdProperty:"id",propertyUpdater:new Hi({_assetId:"asset_id",_completed:{name:"completed",format:"boolean"},_completedAt:{name:"completed_at",format:"date"},_completerId:"completer_id",_deletedAt:{name:"deleted_at",format:"date"},_hasReplies:{name:"has_replies",format:"boolean"},_insertedAt:{name:"inserted_at",format:"date"},_likeCount:{name:"like_count",format:"number"},_owner:{set:(e,t)=>{const r=t,n=r.context._objectPool.createUpdateSession();r._owner=By.updateRemoteItem(n,e),n.commit()},name:"owner",format:"object"},_ownerId:"owner_id",_page:"page",_parentId:"parent_id",_private:{name:"private",format:"boolean"},_readCount:{name:"read_count",format:"number"},_reviewLinkId:"review_link_id",_targetAssetId:"target_asset_id",_text:"text",_textEditedAt:{name:"text_edited_at",format:"date"},_timestamp:{name:"timestamp",format:"number"},_timestampMicroseconds:{name:"timestamp_microseconds",format:"number"},_updatedAt:{name:"updated_at",format:"date"}})}),zy=new Di({localItemType:class extends Gy{createComment(e){var t=this;return me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.context,r.next=3,n._frameioInterface.createComment(t.id,e.text);case 3:return i=r.sent,o=n._objectPool.createUpdateSession(),a=Hy.updateRemoteItem(o,i),o.commit(),t._comments=void 0,r.abrupt("return",a);case 9:case"end":return r.stop()}}),r)})))()}getComments(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e._comments){t.next=10;break}return n=e.context,t.next=5,n._frameioInterface.getComments(e.id);case 5:i=t.sent,o=n._objectPool.createUpdateSession(),r=Hy.updateRemoteItems(o,i),o.commit(),e._comments=r;case 10:return t.abrupt("return",r);case 11:case"end":return t.stop()}}),t)})))()}},remoteIdProperty:"id",propertyUpdater:new Hi({_commentCount:"comment_count",_insertedAt:{name:"inserted_at",format:"date"},_name:"name",_parentId:"parent_id",_projectId:"project_id",_teamId:"team_id",_updatedAt:{name:"updated_at",format:"date"}})}),Vy=new Di({localItemType:class extends Gy{getChildren(){var e=this;return me(he().mark((function t(){var r,n,i;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._children){t.next=8;break}return r=e.context,t.next=4,r._frameioInterface.getChildren(e.id);case 4:n=t.sent,i=r._objectPool.createUpdateSession(),e._children=n.map((e=>Qy(i,e))),i.commit();case 8:return t.abrupt("return",e._children);case 9:case"end":return t.stop()}}),t)})))()}_uploadFile(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l,u,d,p;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:for(i=r.context,o=t.size(),a=e.length,s=Math.ceil(o/a),c=0,l=function(){var r=me(he().mark((function r(n){var o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=c++,r.next=3,t.read(o*s,n);case 3:return n=r.sent,r.abrupt("return",i._frameioInterface.uploadFile(e[o],n).then((()=>c<a?l(n):Promise.resolve())));case 5:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}(),u=Math.min(a,8),d=[],p=0;p<u;p++)d.push(l(new ArrayBuffer(s)));return n.next=12,Promise.all(d);case 12:case"end":return n.stop()}}),n)})))()}createFile(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=r.context,n.next=3,i._frameioInterface.openFile(t);case 3:return o=n.sent,a=o.size(),n.next=7,i._frameioInterface.createFile(r.id,e,a);case 7:return s=n.sent,c=i._objectPool.createUpdateSession(),l=zy.updateRemoteItem(c,s),c.commit(),n.next=13,r._uploadFile(s.upload_urls,o);case 13:return o.close(),n.abrupt("return",l);case 15:case"end":return n.stop()}}),n)})))()}createFolder(e){var t=this;return me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.context,r.next=3,n._frameioInterface.createFolder(t.id,e);case 3:return i=r.sent,o=n._objectPool.createUpdateSession(),a=Vy.updateRemoteItem(o,i),o.commit(),r.abrupt("return",a);case 8:case"end":return r.stop()}}),r)})))()}},remoteIdProperty:"id",propertyUpdater:new Hi({_insertedAt:{name:"inserted_at",format:"date"},_name:"name",_parentId:"parent_id",_projectId:"project_id",_teamId:"team_id",_updatedAt:{name:"updated_at",format:"date"}})}),Yy=new Di({localItemType:class extends Zy{constructor(){super(...arguments),this._email="",this._name=""}get email(){return this._email}get name(){return this._name}getProjects(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e._projects){t.next=10;break}return n=e.context,t.next=5,e._core.frameioContext._frameioInterface.getProjects(e.id);case 5:i=t.sent,o=n._objectPool.createUpdateSession(),r=qy.updateRemoteItems(o,i),o.commit(),e._projects=r;case 10:return t.abrupt("return",r);case 11:case"end":return t.stop()}}),t)})))()}},remoteIdProperty:"id",propertyUpdater:new Hi({_email:"owner.email",_name:"name"})});class Wy extends Gy{constructor(){super(...arguments),this._coverAssetId="",this._versions=0}get coverAssetId(){return this._coverAssetId}getCoverAsset(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._coverAsset){t.next=4;break}return t.next=3,e.context.getAsset(e.coverAssetId);case 3:e._coverAsset=t.sent;case 4:return t.abrupt("return",e._coverAsset);case 5:case"end":return t.stop()}}),t)})))()}get versions(){return this._versions}set coverAsset(e){this._coverAsset=e}getChildren(){var e=this;return me(he().mark((function t(){var r,n,i;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._children){t.next=8;break}return r=e.context,t.next=4,r._frameioInterface.getChildren(e.id);case 4:n=t.sent,i=r._objectPool.createUpdateSession(),e._children=n.map((e=>Qy(i,e))),i.commit();case 8:return t.abrupt("return",e._children);case 9:case"end":return t.stop()}}),t)})))()}}const Ky=new Di({localItemType:Wy,remoteIdProperty:"id",propertyUpdater:new Hi({_coverAsset:{name:"cover_asset",format:"object",set:(e,t)=>{const r=t,n=r.context._objectPool.createUpdateSession(),i=Qy(n,e);n.commit(),r.coverAsset=i}},_coverAssetId:"cover_asset_id",_insertedAt:{name:"inserted_at",format:"date"},_name:"name",_parentId:"parent_id",_projectId:"project_id",_teamId:"team_id",_updatedAt:{name:"updated_at",format:"date"},_versions:{name:"versions",format:"number"}})}),$y=new Di({localItemType:class extends Zy{constructor(){super(...arguments),this._name="",this._shortUrl="",this._ownerId="",this._projectId="",this._active=!1,this._inviteOnly=!1}get name(){return this._name}get shortUrl(){return this._shortUrl}get ownerId(){return this._ownerId}get projectId(){return this._projectId}get active(){return this._active}get inviteOnly(){return this._inviteOnly}get itemId(){return this._itemId}getArtifactCount(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getItem();case 2:if(!((r=t.sent)instanceof Wy)){t.next=5;break}return t.abrupt("return",r.versions);case 5:return t.abrupt("return",1);case 6:case"end":return t.stop()}}),t)})))()}getArtifact(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getItem();case 2:if(!((r=t.sent)instanceof Wy)){t.next=7;break}return t.next=6,r.getCoverAsset();case 6:return t.abrupt("return",t.sent);case 7:return t.abrupt("return",r);case 8:case"end":return t.stop()}}),t)})))()}getItem(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._item){t.next=6;break}if(e._itemId){t.next=3;break}return t.abrupt("return",Promise.reject(we.create(ge.BAD_REQUEST,`FrameioReviewLink.getItem() could not find item ${e._itemId}`)));case 3:return t.next=5,e.context.getAsset(e._itemId);case 5:e._item=t.sent;case 6:return t.abrupt("return",e._item);case 7:case"end":return t.stop()}}),t)})))()}_dispatchReviewLinksChangeEvent(e){const t=this.context,r={source:e,reviewLink:{id:this.id,name:this._name,short_url:this._shortUrl,owner_id:this._ownerId,project_id:this._projectId,is_active:!!this._active,access_control:{invite_only:!!this._inviteOnly},"frameio:artifactId":this._itemId,"repo:etag":this._etag}};t._frameioInterface.dispatchReviewLinksChangeEvent(JSON.stringify(r))}updateReviewLink(e,t,r){var n=this;return me(he().mark((function i(){var o,a,s,c,l,u;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t.createFile(n.name,r);case 2:if(o=i.sent,n._itemId){i.next=19;break}return a=n.context,i.next=7,a._frameioInterface.reviewLinkAddAsset(n.id,o.id);case 7:return s=i.sent,c=a._objectPool.createUpdateSession(),$y.updateRemoteItem(c,s),c.commit(),i.next=13,a._reviewServiceInterface.createReviewLink(Object.assign(Object.assign({},e),{projectId:n.projectId,reviewLinkId:n.id,artifactId:o.id}));case 13:l=i.sent,n._etag=l["repo:etag"],n._item=o,n._itemId=o.id,i.next=33;break;case 19:return a=n.context,i.next=22,a._frameioInterface.addVersionToAsset(n._itemId,o.id);case 22:if(s=i.sent,c=a._objectPool.createUpdateSession(),u=Ky.updateRemoteItem(c,s),c.commit(),n._itemId===u.id){i.next=33;break}return i.next=29,a._reviewServiceInterface.updateReviewLink(Object.assign(Object.assign({},e),{projectId:n.projectId,reviewLinkId:n.id,artifactId:u.id,etag:n._etag}));case 29:l=i.sent,n._etag=l["repo:etag"],n._item=u,n._itemId=u.id;case 33:n._dispatchReviewLinksChangeEvent(e);case 34:case"end":return i.stop()}}),i)})))()}},remoteIdProperty:"id",propertyUpdater:new Hi({_name:"name",_shortUrl:"short_url",_ownerId:"owner_id",_projectId:"project_id",_active:{name:"is_active",format:"boolean"},_inviteOnly:{name:"access_control.invite_only",format:"boolean"},_itemId:"frameio:artifactId",_etag:"repo:etag"})}),qy=new Di({localItemType:class extends Zy{constructor(){super(...arguments),this._rootAssetId="",this._name="",this._ownerId="",this._teamId=""}get name(){return this._name}get ownerId(){return this._ownerId}get rootAssetId(){return this._rootAssetId}get teamId(){return this._teamId}getTeam(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._team){t.next=4;break}return t.next=3,e.context.getTeam(e.rootAssetId);case 3:e._team=t.sent;case 4:return t.abrupt("return",e._team);case 5:case"end":return t.stop()}}),t)})))()}getRootFolder(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._rootFolder){t.next=4;break}return t.next=3,e.context.getAsset(e.rootAssetId);case 3:e._rootFolder=t.sent;case 4:return t.abrupt("return",e._rootFolder);case 5:case"end":return t.stop()}}),t)})))()}getReviewLinks(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e._reviews){t.next=10;break}return n=e.context,t.next=5,n._frameioInterface.getReviewLinks(e.id);case 5:i=t.sent,o=n._objectPool.createUpdateSession(),r=$y.updateRemoteItems(o,i),o.commit(),e._reviews=r;case 10:return t.abrupt("return",r);case 11:case"end":return t.stop()}}),t)})))()}createFolder(e,t){const r=this.context,n=t;n.project_id=this.id,n.team_id=this.teamId;const i=r._objectPool.createUpdateSession(),o=Vy.updateRemoteItem(i,n);return i.commit(),o._children=e[n.id].map((t=>this.createFolder(e,t))),o}getFolderTree(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.frameioContext._frameioInterface.getFolderTree(e.id);case 2:return r=t.sent,e._rootFolder=e.createFolder(r.data,r.data.root[0]),t.abrupt("return",e._rootFolder);case 5:case"end":return t.stop()}}),t)})))()}createReviewLink(e){var t=this;return me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.context,r.next=3,n._frameioInterface.createReviewLink(t.id,e);case 3:return i=r.sent,o=n._objectPool.createUpdateSession(),a=$y.updateRemoteItem(o,i),o.commit(),t._reviews&&t._reviews.push(a),r.abrupt("return",a);case 9:case"end":return r.stop()}}),r)})))()}},remoteIdProperty:"id",propertyUpdater:new Hi({_name:"name",_ownerId:"owner_id",_rootAssetId:"root_asset_id",_rootFolder:{name:"root_asset",format:"object",set:(e,t)=>{const r=t,n=r.context._objectPool.createUpdateSession(),i=Vy.updateRemoteItem(n,e);n.commit(),r._rootFolder=i}},_team:{set:(e,t)=>{const r=t,n=r.context._objectPool.createUpdateSession();r._team=Yy.updateRemoteItem(n,e),n.commit()},name:"team",format:"object"},_teamId:"team_id"})}),Xy=new Di({localItemType:class extends Zy{constructor(){super(...arguments),this._displayName="",this._ownerId="",this._version=0}get ownerId(){return this._ownerId}get owner(){return this._owner}get displayName(){return this._displayName}get version(){return this._version}getTeams(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e._teams){t.next=10;break}return n=e.context,t.next=5,n._frameioInterface.getTeams(e.id);case 5:i=t.sent,o=n._objectPool.createUpdateSession(),r=Yy.updateRemoteItems(o,i),o.commit(),e._teams=r;case 10:return t.abrupt("return",r);case 11:case"end":return t.stop()}}),t)})))()}getSharedProjects(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e._sharedProjects){t.next=10;break}return n=e.context,t.next=5,n._frameioInterface.getSharedProjects(e.id);case 5:i=t.sent,o=n._objectPool.createUpdateSession(),r=qy.updateRemoteItems(o,i),o.commit(),e._sharedProjects=r;case 10:return t.abrupt("return",r);case 11:case"end":return t.stop()}}),t)})))()}getSharedTeams(){var e=this;return me(he().mark((function t(){var r,n,i,o,a,s,c,l;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getSharedProjects();case 2:r=t.sent,n=new Set,i=[],o=ue(r),t.prev=6,o.s();case 8:if((a=o.n()).done){t.next=19;break}if(s=a.value,c=s.teamId,n.has(c)){t.next=17;break}return t.next=14,s.getTeam();case 14:l=t.sent,n.add(c),i.push(l);case 17:t.next=8;break;case 19:t.next=24;break;case 21:t.prev=21,t.t0=t.catch(6),o.e(t.t0);case 24:return t.prev=24,o.f(),t.finish(24);case 27:return t.abrupt("return",i);case 28:case"end":return t.stop()}}),t,null,[[6,21,24,27]])})))()}getProjectTree(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getTeams();case 2:return r=t.sent,n=[],r.forEach((e=>{n.push(e.getProjects())})),t.next=7,Promise.all(n);case 7:return t.abrupt("return",r);case 8:case"end":return t.stop()}}),t)})))()}},remoteIdProperty:"id",propertyUpdater:new Hi({_displayName:"display_name",_owner:{set:(e,t)=>{const r=t,n=r.context._objectPool.createUpdateSession();r._owner=By.updateRemoteItem(n,e),n.commit()},name:"owner",format:"object"},_ownerId:"owner_id",_version:{name:"version",format:"number"}})});class Jy extends En{constructor(e){super(),this._core=e,this._objectPool=new Jo(this._core,"frameio"),this._frameioInterface=new Fy(this),this._reviewServiceInterface=new La(this._core),this._reviewLinksForDocument=new Map}_updateCurrentUserId(e){e&&this._currentUserId===e||(this._currentUserId=e,this._currentUser=void 0,this._accounts=void 0,this._reviewLinksForDocument.clear())}_mapKeyForSourceDocument(e){return e.documentId?e.documentId:e.assetId}_retainUntilTimeout(e,t=12e4){const r=e.deref();setTimeout((function(){return r}),t)}_handleReviewLinksChangeEvent(e){const t=JSON.parse(e),r=t.reviewLink,n=this._mapKeyForSourceDocument(t.source),i=this._objectPool.createUpdateSession(),o=$y.updateRemoteItem(i,r);i.commit();const a=new WeakRef([{reviewLink:o}]);this._reviewLinksForDocument.set(n,a),this._retainUntilTimeout(a),this.dispatch(Dy)}isAuthenticated(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._frameioInterface.isAuthenticated();case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}authenticationStatus(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._frameioInterface.authenticationStatus();case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}getToken(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._frameioInterface.getToken());case 1:case"end":return t.stop()}}),t)})))()}refreshToken(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._frameioInterface.refreshToken());case 1:case"end":return t.stop()}}),t)})))()}authenticate(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._frameioInterface.authenticate(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}deauthenticate(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._frameioInterface.deauthenticate();case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}getCurrentUser(){var e=this;return me(he().mark((function t(){var r,n,i;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e._currentUser){t.next=9;break}return t.next=4,e._frameioInterface.getCurrentUser();case 4:n=t.sent,i=e._objectPool.createUpdateSession(),r=By.updateRemoteItem(i,n),i.commit(),e._currentUser=r;case 9:return t.abrupt("return",r);case 10:case"end":return t.stop()}}),t)})))()}getAccounts(){var e=this;return me(he().mark((function t(){var r,n,i;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e._accounts){t.next=9;break}return t.next=4,e._frameioInterface.getAccounts();case 4:n=t.sent,i=e._objectPool.createUpdateSession(),r=Xy.updateRemoteItems(i,n),i.commit(),e._accounts=r;case 9:return t.abrupt("return",r);case 10:case"end":return t.stop()}}),t)})))()}_getLocalAncestors(e){const t=new Array;for(;;){const r=this._objectPool.getLocalItemById(e);if(void 0===r)return;if(t.unshift(r),!r.parentId)break;e=r.parentId}return t}getAncestors(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t._getLocalAncestors(e)){r.next=8;break}return r.next=4,t._frameioInterface.getAncestors(e);case 4:i=r.sent,o=t._objectPool.createUpdateSession(),n=i.map((e=>Qy(o,e))),o.commit();case 8:return r.abrupt("return",n);case 9:case"end":return r.stop()}}),r)})))()}getReviewLinksForDocument(e,t=!0){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l,u,d,p,h,f,m,g,v,y,b,_;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=r._mapKeyForSourceDocument(e),o=r._reviewLinksForDocument.get(i),a=o?o.deref():void 0,t||!a){n.next=6;break}return r._retainUntilTimeout(o),n.abrupt("return",a);case 6:return a=[],n.next=9,r._reviewServiceInterface.getReviewLinks(e);case 9:(s=n.sent).sort(((e,t)=>t["repo:createdDate"]-e["repo:createdDate"])),c=0;case 12:if(!(c<s.length)){n.next=59;break}return l=s[c],u=l["frameio:projectId"],d=l["frameio:reviewLinkId"],p=l["frameio:artifactId"],h=l["repo:etag"],f=void 0,n.prev=19,n.next=22,r._frameioInterface.getReviewLink(d);case 22:m=n.sent,g=r._objectPool.createUpdateSession(),f=$y.updateRemoteItem(g,m),g.commit(),n.next=30;break;case 28:n.prev=28,n.t0=n.catch(19);case 30:if(n.prev=30,f){n.next=39;break}return n.next=34,r.getProject(u);case 34:return v=n.sent,n.next=37,v.getReviewLinks();case 37:y=n.sent,f=y.find((({id:e})=>e===d));case 39:if(!f){n.next=48;break}return f._itemId=p,f._etag=h,n.next=44,f.getItem();case 44:return a.push({reviewLink:f}),n.abrupt("break",59);case 48:b=we.create(ge.NOT_FOUND,`frameio:reviewLinkId = ${d} not found in projectId = ${u}`),a.push({error:b});case 50:n.next=56;break;case 52:n.prev=52,n.t1=n.catch(30),b=n.t1,a.push({error:b});case 56:c++,n.next=12;break;case 59:return _=new WeakRef(a),r._reviewLinksForDocument.set(i,_),r._retainUntilTimeout(_),n.abrupt("return",a);case 63:case"end":return n.stop()}}),n,null,[[19,28],[30,52]])})))()}getAccount(e){var t=this;return me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.getAccounts();case 2:if(n=r.sent,i=n.find((t=>t.id===e))){r.next=11;break}return r.next=7,t._frameioInterface.getAccount(e);case 7:o=r.sent,a=t._objectPool.createUpdateSession(),i=Xy.updateRemoteItem(a,o),a.commit();case 11:return r.abrupt("return",i);case 12:case"end":return r.stop()}}),r)})))()}getAsset(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t._objectPool.getLocalItemById(e)){r.next=8;break}return r.next=4,t._frameioInterface.getAsset(e);case 4:i=r.sent,o=t._objectPool.createUpdateSession(),n=Qy(o,i),o.commit();case 8:return r.abrupt("return",n);case 9:case"end":return r.stop()}}),r)})))()}getTeam(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t._objectPool.getLocalItemById(e)){r.next=8;break}return r.next=4,t._frameioInterface.getTeam(e);case 4:i=r.sent,o=t._objectPool.createUpdateSession(),n=Yy.updateRemoteItem(o,i),o.commit();case 8:return r.abrupt("return",n);case 9:case"end":return r.stop()}}),r)})))()}getProject(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t._objectPool.getLocalItemById(e)){r.next=8;break}return r.next=4,t._frameioInterface.getProject(e);case 4:i=r.sent,o=t._objectPool.createUpdateSession(),n=qy.updateRemoteItem(o,i),o.commit();case 8:return r.abrupt("return",n);case 9:case"end":return r.stop()}}),r)})))()}getComment(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t._objectPool.getLocalItemById(e)){r.next=8;break}return r.next=4,t._frameioInterface.getComment(e);case 4:i=r.sent,o=t._objectPool.createUpdateSession(),n=Hy.updateRemoteItem(o,i),o.commit();case 8:return r.abrupt("return",n);case 9:case"end":return r.stop()}}),r)})))()}getAdobeSusiInfo(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._frameioInterface.getAdobeSusiInfo();case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}}function Qy(e,t){if("file"===t.type){const r=e;return zy.updateRemoteItem(r,t)}if("folder"===t.type){const r=e;return Vy.updateRemoteItem(r,t)}if("version_stack"===t.type){const r=e;return Ky.updateRemoteItem(r,t)}throw we.create(ge.UNSUPPORTED,`Invalid Frameio asset type ${t.type}`)}Ie([Dt],Jy.prototype,"getAsset",null);var eb=Object.freeze({__proto__:null,default:Jy,frameioAssetUpdater:Qy});const tb={[tt.WORKSPACES_CONTEXT]:[],[tt.TEAMS_PAGE]:["start","limit"],[tt.WORKSPACES_PRIMARY]:["id","selector"],[tt.WORKSPACES_PAGE]:["orderBy","start","limit","teamId","bookmarkFilter","teamAccess"],[tt.REPOSITORIES_PAGE]:[],[tt.TEAMS_CREATE]:[],[tt.TEAM_PROVISION]:[],[tt.WORKSPACES_BOOKMARKS_BATCH]:[]},rb=[200,201],nb=["FULL"],ib={start:0,limit:0,orderDirection:"ascending",orderBy:"name"},ob={orderDirection:"ascending",orderBy:"name",bookmarked:!1,teamID:void 0,start:0,limit:0};function ab(e,t){return Object.assign({},e,t)}function sb(e){return("ascending"===e.orderDirection?"+":"-")+e.orderBy}function cb(e){const t={};return e.start&&(t.start=e.start),e.limit&&(t.limit=e.limit),t}function lb(e,t){const r=ab(ib,t),n=cb(r);return n.orderBy=sb(r),n.nameContains=r.nameContains,n.state=r.state,ot(e,tt.TEAMS_PAGE,n)}function ub(e,t){const r=ab(ob,t),n=cb(r);n.orderBy=sb(r),r.bookmarked||(n.bookmarkFilter=!1),!1===r.teamAccess&&(n.teamAccess=!1);const i=r.teamID;return i&&(n.teamId=i),ot(e,tt.WORKSPACES_PAGE,n)}class db extends Pt{_getHeaders(e){const t={"x-service-features":"CanvasMigration","Cache-Control":"no-cache"};return e&&(t["Content-Type"]=e),t}_discoverLinks(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._getResponse(e,t._getHeaders());case 2:return n=r.sent,r.abrupt("return",n._links);case 4:case"end":return r.stop()}}),r)})))()}_getEndpointHref(e){return`https://${this._core._environment.endpoints.PROJECTS_HOST}${e}`}discoverLinks(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._discoverLinks(e._getEndpointHref("/api/v2/index")));case 1:case"end":return t.stop()}}),t)})))()}getTeams(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.discoverLinks();case 2:return n=r.sent,i=lb(n,e),r.next=6,t._getResponse(i,t._getHeaders());case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r)})))()}getOrgRepositories(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.discoverLinks();case 2:return r=t.sent,n=ot(r,tt.REPOSITORIES_PAGE,{}),t.next=6,e._getResponse(n,e._getHeaders());case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}}),t)})))()}createTeam(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.discoverLinks();case 2:return n=r.sent,i=ot(n,tt.TEAMS_CREATE,{}),r.next=6,t._doPost(i,t._getHeaders(Qe),JSON.stringify(e));case 6:return o=r.sent,r.abrupt("return",o.json());case 8:case"end":return r.stop()}}),r)})))()}permanentlyDeleteTeam(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=ot(e,tt.TEAMS_PRIMARY),r.next=3,t._doDelete(n,t._getHeaders(),[204]);case 3:case"end":return r.stop()}}),r)})))()}archiveTeam(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=ot(e,tt.TEAMS_DISCARD),r.next=3,t._doPost(n,t._getHeaders(),void 0,[204]);case 3:case"end":return r.stop()}}),r)})))()}restoreTeam(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=ot(e,tt.TEAMS_RESTORE),r.next=3,t._doPost(n,t._getHeaders(),void 0,[204]);case 3:case"end":return r.stop()}}),r)})))()}renameTeam(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=ot(e,tt.TEAMS_RENAME),n.next=3,r._doPost(i,r._getHeaders(Qe),JSON.stringify({name:t}),[204]);case 3:case"end":return n.stop()}}),n)})))()}patchTeam(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=ot(e,tt.TEAMS_PROPERTIES),n.next=3,r._doPatch(i,Object.assign(Object.assign({},r._getHeaders(et)),{"If-Match":"*"}),JSON.stringify(t),[204]);case 3:case"end":return n.stop()}}),n)})))()}getTeamProperties(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=ot(e,tt.TEAMS_PROPERTIES),r.next=3,t._getResponse(n,t._getHeaders());case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}}),r)})))()}provisionTeam(){var e=this;return me(he().mark((function t(){var r,n,i;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.discoverLinks();case 2:return r=t.sent,n=ot(r,tt.TEAM_PROVISION,{}),t.next=6,e._doPost(n,e._getHeaders(),void 0,rb);case 6:return i=t.sent,t.abrupt("return",i.json());case 8:case"end":return t.stop()}}),t)})))()}getSpaces(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.discoverLinks();case 2:return n=r.sent,i=ub(n,e),r.next=6,t._getResponse(i,t._getHeaders());case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r)})))()}getSpace(e,t=nb){var r=this;return me(he().mark((function n(){var i,o;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.discoverLinks();case 2:return i=n.sent,o=ot(i,tt.WORKSPACES_PRIMARY,{id:e,selector:t}),n.next=6,r._getResponse(o,r._getHeaders());case 6:return n.abrupt("return",n.sent);case 7:case"end":return n.stop()}}),n)})))()}reloadSpace(e,t=nb){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=ot(e,tt.WORKSPACES_PRIMARY,{selector:t}),n.next=3,r._getResponse(i,r._getHeaders());case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}}),n)})))()}bookmarkOp(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.discoverLinks();case 2:return n=r.sent,i=ot(n,tt.WORKSPACES_BOOKMARKS_BATCH),r.next=6,t._doPost(i,t._getHeaders(Qe),JSON.stringify(e),[200]);case 6:return o=r.sent,r.abrupt("return",o.json());case 8:case"end":return r.stop()}}),r)})))()}createSpace(e,t){var r=this;return me(he().mark((function n(){var i,o;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=ot(e,tt.WORKSPACES_CREATE),n.next=3,r._doPost(i,r._getHeaders(Qe),JSON.stringify(t));case 3:return o=n.sent,n.abrupt("return",o.json());case 5:case"end":return n.stop()}}),n)})))()}patchSpace(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=ot(e,tt.WORKSPACES_PRIMARY),n.next=3,r._doPatch(i,r._getHeaders(et),JSON.stringify(t),[200,204]);case 3:case"end":return n.stop()}}),n)})))()}getEnclosingSpaces(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.discoverLinks();case 2:return n=r.sent,i=ot(n,tt.WORKSPACES_CONTEXT),r.next=6,t._doPost(i,t._getHeaders(Qe),JSON.stringify(e),[200]);case 6:return o=r.sent,r.abrupt("return",o.json());case 8:case"end":return r.stop()}}),r)})))()}}Ie([Ge((function(e){return rt(e,tb)})),Ae(0,Ze)],db.prototype,"_discoverLinks",null);class pb{constructor(e,t,r){this._spacePool=e,this._workspaceInterface=t,this._teamRoleGetterFactory=r}supportsFilter(e){if(!e)return!1;const t=e.teamRole,r=e.state;return"MEMBER"!==t&&"active"===r}loadPage(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_loadPage(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l,u,d,p,h,f,m,g,v,y;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=e.order,o=e.filter,a=e.limit,"MEMBER"!==(s=null==o?void 0:o.teamRole)){n.next=4;break}throw we.create(ge.BAD_REQUEST,"Filtering only for spaces with reamRole MEMBER is not supported.");case 4:if(c=r._spacePool._core._environment.getValue("PROJECTS_LIST_UPDATE_LATENCY"),l=Date.now()-c,u=r._workspaceInterface.getSpaces({orderBy:ty[i.field],orderDirection:i.direction,teamID:null==o?void 0:o.teamID,bookmarked:null==o?void 0:o.bookmarked,teamAccess:"NONE"!==s&&void 0,start:t,limit:a}),!s){n.next=11;break}n.t0=()=>s,n.next=14;break;case 11:return n.next=13,r._teamRoleGetterFactory();case 13:n.t0=n.sent;case 14:return d=n.t0,n.next=17,u;case 17:p=n.sent,h=r._spacePool.createLoaderUpdateSession(l),f=Ea.updateRemoteItems(h,p.projects.map((e=>Object.assign(Object.assign({},e),{teamRole:d(e.teamId),state:"active"})))),m=ue(f);try{for(m.s();!(g=m.n()).done;)g.value[va]()}catch(e){m.e(e)}finally{m.f()}return h.commit(),(y=p.pageSpec.start+p.pageSpec.limit)<p.pageSpec.totalLimit&&(v=e=>r._loadPage(e,y)),n.abrupt("return",{items:f,total:p.pageSpec.totalLimit,loadNextPage:v,mostRecentValidMutation:l});case 26:case"end":return n.stop()}}),n)})))()}}class hb{constructor(e,t){this._teamPool=e,this._projectInterface=t}loadPage(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_loadPage(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l,u,d,p,h;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=e.limit,o=e.filter,a=e.order,s=r._teamPool._core._environment.getValue("PROJECTS_LIST_UPDATE_LATENCY"),c=Date.now()-s,n.next=5,r._projectInterface.getTeams({orderBy:Jv[a.field],orderDirection:a.direction,start:t,limit:i,nameContains:null==o?void 0:o.nameContains,state:null==o?void 0:o.state});case 5:return l=n.sent,u=r._teamPool.createLoaderUpdateSession(c),d=xy.updateRemoteItems(u,l.teams),u.commit(),(h=l.pageSpec.start+l.pageSpec.limit)<l.pageSpec.totalLimit&&(p=e=>r._loadPage(e,h)),n.abrupt("return",{items:d,total:l.pageSpec.totalLimit,loadNextPage:p,mostRecentValidMutation:c});case 12:case"end":return n.stop()}}),n)})))()}}class fb{constructor(e,t){this._orgRepositoryPool=e,this._projectInterface=t}loadPage(){var e=this;return me(he().mark((function t(){var r,n,i;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._projectInterface.getOrgRepositories();case 2:return r=t.sent,n=e._orgRepositoryPool.createLoaderUpdateSession(Date.now()),i=xv.updateRemoteItems(n,r.repositories),n.commit(),t.abrupt("return",{items:i});case 7:case"end":return t.stop()}}),t)})))()}}function mb(e){const t=new Set(e.items.map((e=>e.id)));return e=>t.has(e)?"MEMBER":"NONE"}function gb(e){const t=e._links;if(!t)throw we.create(ge.BAD_REQUEST,'Object has not been loaded correctly, missing "_links" property.');return t}class vb{constructor(e){var t=this;this._core=e,this._orgRepositoryPool=new Jo(this._core,"orgRepository"),this._teamPool=new Jo(this._core,"team"),this._spacePool=new Jo(this._core,"space"),this._projectInterface=new db(this._core),this._rapi=new cc(this._core),this._hostAssetContext=this._core.hostAssetContext,this._teamRoleGetterFactory=me(he().mark((function e(){var r;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._fetchTeams();case 2:return r=e.sent,e.abrupt("return",mb(r));case 4:case"end":return e.stop()}}),e)}))),this._teamPoolDelegate={onItemsUpdated:()=>{const e=this.getTeams()._getExistingList(ey.default,new To);if(!e||!e.items.length)return void this._core._environment.debug("[SpaceContext._teamPoolDelegate] skipping update of Space.teamRole -- no teams");const t=this._spacePool,r=mb(e),n=t.createUpdateSession("Updating teamRole across all spaces");this._spacePool.forEach((e=>{const t=r(e.teamID);e.teamRole!==t&&Ea.updateLocalItem(n,e,{teamRole:t})})),n.commit()}},this._teamPool.addDelegate(this._teamPoolDelegate,"context")}get projectInterface(){return this._projectInterface}get orgRepositoryPool(){return this._orgRepositoryPool}get teamPool(){return this._teamPool}get spacePool(){return this._spacePool}discoverLinks(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._projectInterface.discoverLinks();case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}getOrgRepositories(){const e=new fb(this._orgRepositoryPool,this._projectInterface);return new Uo(this._orgRepositoryPool,[e])}getTeams(){const e=new hb(this._teamPool,this._projectInterface);return new Uo(this._teamPool,[e],new Ey)}getSpaces(){const e=new pb(this._spacePool,this._projectInterface,this._teamRoleGetterFactory);return new Uo(this._spacePool,[e],new _y)}_fetchTeams(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.getTeams().getList(ey.default,void 0,{refreshTimeout:3e5}),t.next=3,Bo(r);case 3:return t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})))()}provisionType1Team(){var e=this;return me(he().mark((function t(){var r,n,i,o,a;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("type1"===e._core._environment.getValue("ACCOUNT_TYPE")){t.next=2;break}return t.abrupt("return",void 0);case 2:return t.next=4,e._fetchTeams();case 4:if(r=t.sent,n=e._core._environment.getValue("USER_ID"),i=r.items.find((e=>e.repositoryOwnerID===n&&"user"===e.repositoryOwnerType))){t.next=14;break}return t.next=10,e._projectInterface.provisionTeam();case 10:o=t.sent,a=e._teamPool.createMutationSession(),i=xy.updateRemoteItem(a,o),a.commit();case 14:return t.abrupt("return",i);case 15:case"end":return t.stop()}}),t)})))()}createTeam(e,t){var r=this;return me(he().mark((function n(){var i,o,a;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._projectInterface.createTeam(Object.assign(Object.assign({},t),{repositoryId:e.repositoryID}));case 2:return i=n.sent,o=r._teamPool.createMutationSession(),a=xy.updateRemoteItem(o,i),o.commit(),n.abrupt("return",a);case 7:case"end":return n.stop()}}),n)})))()}_renameAsset(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(zn(t)){n.next=2;break}throw we.create(ge.BAD_REQUEST,"Invalid name provided for the rename operation.");case 2:return n.next=4,r._hostAssetContext.getAssetWithCloudID(e);case 4:return i=n.sent,n.next=7,i.rename(t);case 7:return n.abrupt("return",i);case 8:case"end":return n.stop()}}),n)})))()}_renameTeam(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l,u,d;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=t.name){n.next=3;break}return n.abrupt("return");case 3:if(zn(i)){n.next=5;break}throw we.create(ge.BAD_REQUEST,"Invalid name provided for the rename operation.");case 5:return o=gb(e),n.next=8,r._projectInterface.renameTeam(o,i);case 8:return a=r._core._getAssetPool(),s=a.getLocalItemById(e.id),n.next=12,r._core.getAssetContext();case 12:c=n.sent,s&&(l=Jn(i,s),u=a.createUpdateSession(),Qn({assetPool:a,asset:s,session:u,operation:{type:"rename",newPath:l},assetContext:c}),r._hostAssetContext._adobeAssetUpdater.updateLocalItem(u,s,{"repo:path":l,"repo:name":i}),u.commit()),d=r.teamPool.createMutationSession(),xy.updateLocalItem(d,e,{name:i}),d.commit();case 17:case"end":return n.stop()}}),n)})))()}renameTeam(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.updateTeam(e,{name:t});case 2:case"end":return n.stop()}}),n)})))()}restoreTeam(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Nn.runExclusiveTask("restore",[e],me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,n=gb(e),i=t.teamPool.createUpdateSession(),r.next=5,t._projectInterface.restoreTeam(n);case 5:xy.updateLocalItem(i,e,{state:"active"}),i.commit(),r.next=12;break;case 9:throw r.prev=9,r.t0=r.catch(0),we.create(ge.UNKNOWN,"An error occured restoring team",{underlyingError:r.t0});case 12:case"end":return r.stop()}}),r,null,[[0,9]])}))));case 2:case"end":return r.stop()}}),r)})))()}archiveTeam(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Nn.runExclusiveTask("archive",[e],me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.teamPool.createUpdateSession(),r.prev=1,i=gb(e),r.next=5,t._projectInterface.archiveTeam(i);case 5:r.next=19;break;case 7:if(r.prev=7,r.t0=r.catch(1),(o=r.t0).code!==ge.BAD_REQUEST){r.next=18;break}return r.next=13,t._hostAssetContext.getAssetWithCloudID(e.id);case 13:return a=r.sent,r.next=16,a.discard();case 16:r.next=19;break;case 18:throw o;case 19:xy.updateLocalItem(n,e,{state:"discarded"}),n.commit();case 21:case"end":return r.stop()}}),r,null,[[1,7]])}))));case 2:case"end":return r.stop()}}),r)})))()}_validateDescription(e){return e.length<=1e3}_validateColor(e){return/^#[A-Fa-f0-9]{6}$/.test(e)}_getPatchOP(e,t,r,n){if(n&&!n(e))throw we.create(ge.BAD_REQUEST,`Property ${t} has invalid value`);return 0===e.length&&r&&r.length>0?{op:"remove",path:t}:{op:r?"replace":"add",value:e,path:t}}_patchTeam(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=t.description,o=[],a={},void 0!==i&&(o.push(r._getPatchOP(i,"/description",e.description,r._validateDescription)),a.description=i),o.length){n.next=6;break}return n.abrupt("return");case 6:return s=gb(e),n.next=9,r._projectInterface.patchTeam(s,o);case 9:c=r.teamPool.createMutationSession(),xy.updateLocalItem(c,e,a),c.commit();case 12:case"end":return n.stop()}}),n)})))()}updateTeam(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Nn.runExclusiveTask("update",[e],me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.allSettled([r._patchTeam(e,t),r._renameTeam(e,t)]);case 2:i=n.sent,r._checkForRejection(i,(()=>{const t=r.teamPool.createUpdateSession();t.queueDiscardedItem(e),t.commit()}));case 4:case"end":return n.stop()}}),n)}))));case 2:case"end":return n.stop()}}),n)})))()}loadTeamProperties(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=gb(e),r.next=3,t._projectInterface.getTeamProperties(n);case 3:if((i=r.sent)&&0!==Object.keys(i).length){r.next=6;break}return r.abrupt("return");case 6:o=t.teamPool.createMutationSession(),xy.updateLocalItem(o,e,Object.assign({},i)),o.commit();case 9:case"end":return r.stop()}}),r)})))()}permanentlyDeleteTeam(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("active"!==e.state){r.next=2;break}throw we.create(ge.UNSUPPORTED,"Teams that are not 'discarded' cannot be permanently deleted.");case 2:return n=r=>{if(r.discardedItems){const n=r.discardedItems.filter((t=>t.id===e.id)).map((e=>e.id));n.length&&t._teamPool.removeLocalItems(n)}},t._teamPool.on($o,n),r.prev=4,r.next=7,Nn.runExclusiveTask("delete",[e],me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=gb(e),r.next=3,t._projectInterface.permanentlyDeleteTeam(n);case 3:(i=t.teamPool.createUpdateSession()).queueDiscardedItem(e),i.commit();case 6:case"end":return r.stop()}}),r)}))));case 7:return r.prev=7,t.teamPool.off($o,n),r.finish(7);case 10:case"end":return r.stop()}}),r,null,[[4,,7,10]])})))()}[ga](e){var t=this;return me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t._core._environment.getValue("PROJECTS_ITEM_UPDATE_LATENCY"),r.next=3,e.waitForMutationPropagationIfNeeded(n);case 3:return i=gb(e),r.next=6,t._projectInterface.reloadSpace(i,nb);case 6:o=r.sent,a=t._spacePool.createUpdateSession(),Ea.updateLocalItem(a,e,o),a.commit();case 10:case"end":return r.stop()}}),r)})))()}_moveSpaces(e,t,r=new Map,n=!0,i){var o=this;return me(he().mark((function a(){var s;return he().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s={failedResults:[],newModels:[]},a.next=3,Nn.runExclusiveTask("move",e,me(he().mark((function n(){var a,c,l;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,o._hostAssetContext.getAssetWithCloudID(t.id);case 2:return a=n.sent,void 0===i&&(i=new Map),c=new Map,l=e.map((e=>{c.set(e.id,e);let t=`${a.repoPath}/${ei(e,r)}`;return t=Wn(o._core,e.id,t,!1,i),{op:"move",id:e.id,source:{"repo:assetId":e.id,"repo:repositoryId":e.repositoryID},target:{"repo:path":t,"repo:repositoryId":a.repositoryID}}})),n.next=8,o._runOperations(l,c,{teamId:t.id,teamName:t.name});case 8:s=n.sent;case 9:case"end":return n.stop()}}),n)}))));case 3:if(!n){a.next=7;break}return a.next=6,Hc(s,t,r,i,o._moveSpaces.bind(o));case 6:return a.abrupt("return",a.sent);case 7:return a.abrupt("return",s);case 8:case"end":return a.stop()}}),a)})))()}moveSpaces(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r._moveSpaces(e,t));case 1:case"end":return n.stop()}}),n)})))()}archiveSpaces(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Nn.runExclusiveTask("archive",e,me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=new Map,i=e.map((e=>(n.set(e.id,e),{op:"discard",id:e.id,target:{"repo:assetId":e.id,"repo:repositoryId":e.repositoryID}}))),r.next=4,t._runOperations(i,n);case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)}))));case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}restoreSpaces(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Nn.runExclusiveTask("restore",e,me(he().mark((function n(){var i,o;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=new Map,o=e.map((e=>(i.set(e.id,e),{op:"restore",id:e.id,target:{"repo:assetId":e.id,"repo:repositoryId":e.repositoryID},name:null==t?void 0:t.get(e)}))),n.next=4,r._runOperations(o,i);case 4:return n.abrupt("return",n.sent);case 5:case"end":return n.stop()}}),n)}))));case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()}_runOperations(e,t,r={}){var n=this;return me(he().mark((function i(){var o;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n._core.getAssetContext();case 2:return o=i.sent,i.next=5,n._rapi.runOperationsForContext(e,t,n._spacePool,((e,t,i)=>{if(!i)throw we.create(ge.UNKNOWN,"Missing metadata from asset bulk operation.");const a=i["repo:path"];if(t.pathName!==a){const e=n._core._getAssetPool(),r=e.getLocalItemById(t.id),i=e.createUpdateSession();r&&(Qn({assetPool:e,asset:r,session:i,operation:{type:"rename",newPath:a},assetContext:o}),o._adobeAssetUpdater.updateLocalItem(i,r,{"repo:path":a}),i.commit())}Ea.updateLocalItem(e,t,Object.assign({state:"ACTIVE"===i["repo:state"]?"active":"archived",name:i["repo:name"],pathName:i["repo:path"]},r))}),[{match:e=>e.code===ge.ACCESS_DENIED||e.code===ge.NOT_FOUND,action:function(){var e=me(he().mark((function e(t){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.load().catch((e=>({model:t,error:e})));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}]);case 5:return i.abrupt("return",i.sent);case 6:case"end":return i.stop()}}),i)})))()}createSpaceBookmarks(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._bookmarkSpaces("ADD",e));case 1:case"end":return r.stop()}}),r)})))()}removeSpaceBookmarks(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._bookmarkSpaces("REMOVE",e));case 1:case"end":return r.stop()}}),r)})))()}_bookmarkSpaces(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Nn.runExclusiveTask("bookmark",t,me(he().mark((function n(){var i,o,a,s,c,l,u,d,p,h,f,m,g,v,y,b,_,E,w;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=r._core._environment.getValue("USER_ID"),a={bookmarked:"ADD"===e},s=r.spacePool.createUpdateSession(),c=new Map,l=t.map((e=>(c.set(e.id,{space:e,wasBookmarked:e.isBookmarked}),Ea.updateLocalItem(s,e,a),{projectUrn:e.id,userId:o}))),s.commit(),n.prev=6,n.next=9,r._projectInterface.bookmarkOp({op:e,items:l});case 9:u=n.sent;case 10:if(n.prev=10,u){d=ue(u.responses);try{for(d.s();!(p=d.n()).done;)h=p.value,(f=c.get(null===(i=h.request)||void 0===i?void 0:i.projectUrn))&&(f.status=h.status)}catch(e){d.e(e)}finally{d.f()}}m=r.spacePool.createUpdateSession(),g=r.spacePool.createMutationSession(),v=ue(c.values());try{for(v.s();!(y=v.n()).done;)b=y.value,_=b.space,E=b.wasBookmarked,201===(w=b.status)?Ea.updateLocalItem(g,_,a):(Ea.updateLocalItem(m,_,{bookmarked:E}),404===w&&m.queueDiscardedItem(_))}catch(e){v.e(e)}finally{v.f()}return m.commit(),g.commit(),n.finish(10);case 19:case"end":return n.stop()}}),n,null,[[6,,10,19]])}))));case 2:case"end":return n.stop()}}),n)})))()}_checkForRejection(e,t){var r,n=ue(e);try{for(n.s();!(r=n.n()).done;){const e=r.value;if("rejected"===e.status){const r=e.reason;throw r instanceof we&&r.code===ge.NOT_FOUND&&t(),r}}}catch(e){n.e(e)}finally{n.f()}}updateSpace(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Nn.runExclusiveTask("update",[e],me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.allSettled([r._renameSpace(e,t),r._patchSpace(e,t)]);case 2:i=n.sent,r._checkForRejection(i,(()=>{const t=r.spacePool.createUpdateSession();t.queueDiscardedItem(e),t.commit()}));case 4:case"end":return n.stop()}}),n)}))));case 2:case"end":return n.stop()}}),n)})))()}_renameSpace(e,t){var r=this;return me(he().mark((function n(){var i,o,a;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(void 0!==(i=t.name)){n.next=3;break}return n.abrupt("return");case 3:return n.next=5,r._renameAsset(e.id,i);case 5:o=n.sent,a=r.spacePool.createMutationSession(),Ea.updateLocalItem(a,e,{name:o.name,pathName:o.repoPath}),a.commit();case 9:case"end":return n.stop()}}),n)})))()}_patchSpace(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=t.description,o=t.color,a=[],s={},void 0!==i&&(a.push(r._getPatchOP(i,"/description",e.description,r._validateDescription)),s.description=i),void 0!==o&&(a.push(r._getPatchOP(o,"/color",e.color,r._validateColor)),s.color=o),a.length){n.next=7;break}return n.abrupt("return");case 7:return c=gb(e),n.next=10,r._projectInterface.patchSpace(c,a);case 10:l=r.spacePool.createMutationSession(),Ea.updateLocalItem(l,e,s),l.commit();case 13:case"end":return n.stop()}}),n)})))()}createSpace(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=gb(e),r._validateColor(t.color),r._validateDescription(t.description),zn(t.name),n.next=6,r._projectInterface.createSpace(i,Object.assign(Object.assign({},t),{parentId:e.id}));case 6:return o=n.sent,a=r.spacePool.createMutationSession(),s=Ea.updateRemoteItem(a,Object.assign(Object.assign({},o),{teamId:e.id})),a.commit(),n.abrupt("return",s);case 11:case"end":return n.stop()}}),n)})))()}getEnclosingSpace(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.getEnclosingSpaces([e]);case 2:return n=r.sent,r.abrupt("return",n.get(e));case 4:case"end":return r.stop()}}),r)})))()}getEnclosingSpaces(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s,c,l,u,d,p;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t._core._environment.getValue("PROJECTS_LIST_UPDATE_LATENCY"),i=Date.now()-n,r.next=4,t._projectInterface.getEnclosingSpaces(e.map((e=>({"repo:assetId":e}))));case 4:o=r.sent,a=new Map,s=t.spacePool.createUpdateSession("get enclosing spaces",i),c=ue(o.responses),r.prev=8,c.s();case 10:if((l=c.n()).done){r.next=19;break}if(200===(u=l.value).status){r.next=14;break}return r.abrupt("continue",17);case 14:d=u.request["repo:assetId"],p=Ea.updateRemoteItem(s,u.body),a.set(d,p);case 17:r.next=10;break;case 19:r.next=24;break;case 21:r.prev=21,r.t0=r.catch(8),c.e(r.t0);case 24:return r.prev=24,c.f(),r.finish(24);case 27:return s.commit(),r.abrupt("return",a);case 29:case"end":return r.stop()}}),r,null,[[8,21,24,27]])})))()}lookupSpaceById(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t._spacePool.getLocalItemById(e)){r.next=8;break}return r.next=4,t._projectInterface.getSpace(e,nb);case 4:i=r.sent,o=t._spacePool.createUpdateSession(),n=Ea.updateRemoteItem(o,i),o.commit();case 8:return r.abrupt("return",n);case 9:case"end":return r.stop()}}),r)})))()}onUserLeftTeam(e){const t=this._teamPool.getLocalItemById(e);if(t){const e=this._teamPool.createUpdateSession();e.queueDiscardedItem(t),e.commit()}}}Ie([Ue],vb.prototype,"getOrgRepositories",null),Ie([Ue],vb.prototype,"getTeams",null),Ie([Ue],vb.prototype,"getSpaces",null);var yb=Object.freeze({__proto__:null,default:vb});class bb{constructor(e,t,r){this._collaboratorPool=e,this._invitationInterface=t,this._urn=r}loadPage(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._invitationInterface.getCollaborators(e._urn);case 2:return r=t.sent,n=e._collaboratorPool.createLoaderUpdateSession(Date.now()),i=new Set(r.directCollaborators.map((({id:e})=>e))),r.collaborators.forEach((e=>e.isDirect=i.has(e.id))),o=Nv.updateRemoteItems(n,r.collaborators),n.commit(),t.abrupt("return",{items:o});case 9:case"end":return t.stop()}}),t)})))()}}const _b=new Di({localItemType:class extends Nn{constructor(){super(...arguments),this._email="",this._role="viewer",this._canComment=!1,this._canShare=!1,this._acceptanceRequired=!1,this._created=new Date}get invitationID(){return this.id}get email(){return this._email}get role(){return this._role}get canComment(){return this._canComment}get canShare(){return this._canShare}get acceptanceRequired(){return this._acceptanceRequired}get inheritance(){return this._inheritance}get created(){return this._created}},remoteIdProperty:"id",propertyUpdater:new Hi({_email:"email",_role:{name:"role",choices:Av},_canComment:{name:"canComment",format:"boolean"},_canShare:{name:"canShare",format:"boolean"},_acceptanceRequired:{name:"acceptanceRequired",format:"boolean"},_inheritance:{name:"inheritance",choices:kv},_created:{name:"created",format:"date_as_number"}})});class Eb{constructor(e,t,r){this._invitedCollaboratorPool=e,this._invitationInterface=t,this._urn=r}loadPage(){var e=this;return me(he().mark((function t(){var r,n,i;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._invitationInterface.getCollaborators(e._urn);case 2:return r=t.sent,n=e._invitedCollaboratorPool.createLoaderUpdateSession(Date.now()),i=_b.updateRemoteItems(n,r.invitations),n.commit(),t.abrupt("return",{items:i});case 7:case"end":return t.stop()}}),t)})))()}}const wb={parse:e=>e,isEqual:(e,t)=>nn(e,t)},xb={parse:e=>e,isEqual:(e,t)=>nn(e,t)},Lb=new Di({localItemType:class extends Nn{constructor(){super(...arguments),this._collaborators=[],this._error=void 0}get getAssetID(){return this.id}get collaborators(){return this._collaborators}get error(){return this._error}},remoteIdProperty:"urn",propertyUpdater:new Hi({_collaborators:{get:function(e,t){const r=new Jo(t._core,"collaborator").createUpdateSession();if(200!==e.statusCode)return[];const n=JSON.parse(e.response).collaborators.map((t=>Object.assign(Object.assign({},t),{assetID:e.urn}))),i=Nv.updateRemoteItems(r,n);return r.commit(),i},format:wb},_error:{get:function(e){if(200===e.statusCode)return;const t=JSON.parse(e.response);return we.createWithRepositoryCode(t.statusCode,"",t.error)},format:xb}})});class Ob{constructor(e,t,r){this._collaboratorsByAssetIDPool=e,this._invitationInterface=t,this._assetIDs=r}loadPage(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_loadPage(e,t=0){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=void 0===(i=e.limit)?r._invitationInterface.batchRequestLimit:i,i=Math.min(i,r._invitationInterface.batchRequestLimit),o=r._assetIDs.slice(t,t+i),n.next=6,r._invitationInterface.getCollaboratorListForUrns(o);case 6:return a=n.sent,s=r._collaboratorsByAssetIDPool.createLoaderUpdateSession(Date.now()),c=Lb.updateRemoteItems(s,a.result),s.commit(),t+c.length<r._assetIDs.length&&(l=e=>r._loadPage(e,t+c.length)),n.abrupt("return",{items:c,loadNextPage:l});case 12:case"end":return n.stop()}}),n)})))()}}var Sb=class{constructor(e,t=50,r=50,n=3){var i=this;this._batchProcessor=e,this._maxItemsPerBatch=t,this._delay=r,this._maxInFlightBatches=n,this._itemQueue=new Set,this._itemPromises=new Map,this._inFlightBatches=new Set,this._processQueue=me(he().mark((function e(){var t,r,n;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(clearTimeout(i._timer),i._timer=void 0,e.prev=2,!(i.inFlightCount>=i._maxInFlightBatches)){e.next=6;break}return e.next=6,Promise.race([...i._inFlightBatches].map((e=>e.promise)));case 6:e.next=10;break;case 8:e.prev=8,e.t0=e.catch(2);case 10:for(;i.inFlightCount<=i._maxInFlightBatches&&i._itemQueue.size>0;){for(t=new Set;i._itemQueue.size>0&&t.size<i._maxItemsPerBatch;)r=i._itemQueue.values().next().value,i._itemQueue.delete(r),t.add(r);n={batch:t,promise:i._batchProcessor(t).catch((()=>{[...t.values()].forEach((e=>i.rejectItemPromise(e)))})).finally((()=>{i._inFlightBatches.delete(n),[...t.values()].forEach((e=>i.resolveItemPromise(e)))}))},i._inFlightBatches.add(n)}i._itemQueue.size>0&&!i._timer&&(i._timer=setTimeout(i._processQueue,i._delay));case 12:case"end":return e.stop()}}),e,null,[[2,8]])})))}enqueue(e){if(this.isInQueue(e)||this.isInFlight(e))return this._itemPromises.get(e).promise;this._itemQueue.add(e);const t=new vi;return this._itemPromises.set(e,t),this._timer||(this._timer=setTimeout(this._processQueue,this._delay)),this._itemQueue.size>=this._maxItemsPerBatch&&this._processQueue(),t.promise}dequeue(e){const t=this._itemQueue.has(e);return this._itemQueue.delete(e),t&&(this._itemPromises.get(e).resolve(),this._itemPromises.delete(e)),t}resolveItemPromise(e){var t;null===(t=this._itemPromises.get(e))||void 0===t||t.resolve(),this._itemPromises.delete(e)}rejectItemPromise(e){var t;null===(t=this._itemPromises.get(e))||void 0===t||t.reject(),this._itemPromises.delete(e)}get size(){return this._itemQueue.size}get inFlightCount(){return this._inFlightBatches.size}isInQueue(e){return this._itemQueue.has(e)}isInFlight(e){return!![...this._inFlightBatches].find((t=>t.batch.has(e)))}_processNow(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._itemQueue.size||e._inFlightBatches.size){t.next=2;break}return t.abrupt("return");case 2:return e._processQueue(),t.prev=3,t.next=6,Promise.race([...e._inFlightBatches].map((e=>e.promise)));case 6:t.next=10;break;case 8:t.prev=8,t.t0=t.catch(3);case 10:if(e._itemQueue.size){t.next=2;break}case 11:case"end":return t.stop()}}),t,null,[[3,8]])})))()}};class Tb extends Nn{constructor(e,t){super(e,t),this._displayName="",this._ownerId=""}get ident(){return this.id}get displayName(){return this._displayName}get ownerId(){return this._ownerId}getContactInAddressBook(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._core.collaborationContext.getContactInAddressBook(t.ident,e));case 1:case"end":return r.stop()}}),r)})))()}}Ie([$e],Tb.prototype,"ident",null),Ie([$e],Tb.prototype,"displayName",null),Ie([$e],Tb.prototype,"ownerId",null);const Pb=new Di({localItemType:Tb,remoteIdProperty:"ident",propertyUpdater:new Hi({_displayName:"displayName",_ownerId:"ownerId"})});class Ib{constructor(e,t,r){this._addressBookPool=e,this._addressBookInterface=t,this._addressBookUpdater=r}loadPage(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=(e||{limit:100}).limit,i=void 0===n?100:n,r.next=3,t._addressBookInterface.getAddressBooks(i);case 3:return o=r.sent,a=t._addressBookPool.createLoaderMutationSession(),s=t._addressBookUpdater.updateRemoteItems(a,o._embedded.addressBooks),r.abrupt("return",{items:s,total:o.total});case 7:case"end":return r.stop()}}),r)})))()}}class Ab{constructor(e){var t=this;this._core=e,this._collaboratorSourceMap=new Map,this._invitationInterface=new sc(this._core),this._collaboratorsByAssetIDPool=new Jo(this._core,"collaboratorsByAssetID"),this._accessConfirmedIDs=new Set,this._addressBookPool=new Jo(this._core,"addressBook"),this._addressBookContactPoolMap=new Map,this._handleBatchRequest=function(){var e=me(he().mark((function e(r){var n;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new Map([...r].map((e=>[e.id,e]))),e.next=3,t._invitationInterface.getCollaboratorListForUrns([...n.keys()]);case 3:e.sent.result.forEach((e=>{const r=e.urn,i=n.get(r);if(!i)return;if(200!==e.statusCode)return void t._collaboratorRequestQueue.rejectItemPromise(i);const o=t._getCollaboratorSources(r),a=JSON.parse(e.response),s=a.collaborators.map((e=>{const t=a.directCollaborators.find((t=>t.id===e.id));return Object.assign(Object.assign({},e),{assetID:r,isDirect:!!t})})),c=o.collaboratorPool.createUpdateSession(),l=Nv.updateRemoteItems(c,s);c.commit(),i._setCollaboratorData(l)}));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this._collaboratorRequestQueue=new Sb(this._handleBatchRequest)}_getCollaboratorsNow(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t._collaboratorRequestQueue.enqueue(e),r.next=3,t._collaboratorRequestQueue._processNow();case 3:_i.hasManager(e,Cr)?_i.updatedExternally(e,Cr):e.dispatch(Cr);case 4:case"end":return r.stop()}}),r)})))()}getCollaboratorsForAssets(e){gi("getCollaboratorsForAssets","This method is deprecated and will be removed. Use ShareableItem.collaboratorArray instead.");const t=new Ob(this._collaboratorsByAssetIDPool,this._invitationInterface,e);return new Uo(this._collaboratorsByAssetIDPool,[t],new To)}_getCollaboratorSources(e){const t=this._collaboratorSourceMap.get(e);if(t)return t;const r=new Jo(this._core,"collaborator"),n=new bb(r,this._invitationInterface,e),i=new Uo(r,[n],new To),o=new Jo(this._core,"invitedCollaborator"),a=new Eb(o,this._invitationInterface,e),s={collaboratorPool:r,collaboratorSource:i,invitedCollaboratorPool:o,invitedCollaboratorSource:new Uo(o,[a],new To)};return this._collaboratorSourceMap.set(e,s),s}getCollaborators(e){return gi("CollaborationContext.getCollaborators","This method is deprecated and will be removed. Use ShareableItem.collaboratorArray instead."),this._getCollaboratorSources(e).collaboratorSource}removeCollaborator(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return gi("CollaborationContext.removeCollaborator","This method is deprecated and will be removed on or after 2024-10-01. Use ShareableItem.removeCollaborator instead."),n.abrupt("return",r._removeCollaborator(e,t));case 2:case"end":return n.stop()}}),n)})))()}_removeCollaborator(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l,u;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._invitationInterface.modifyCollaborators(e,{collaborators:[{id:t.id,action:"remove"}]});case 2:if(a=n.sent,s=null===(i=a.collaborators)||void 0===i?void 0:i.find((e=>e.id===t.id))){n.next=6;break}throw we.create(ge.BAD_REQUEST,"Collaborator patch request unsuccessful");case 6:if(200===s.statusCode){n.next=8;break}throw we.createWithRepositoryCode(s.statusCode,null!==(o=s.errorSubcode)&&void 0!==o?o:"",s.statusText);case 8:c=r._getCollaboratorSources(e),l=c.collaboratorPool,(u=l.createUpdateSession()).queueDiscardedItem(t),t.isCurrentUser&&r._accessConfirmedIDs.delete(e),u.commit();case 13:case"end":return n.stop()}}),n)})))()}removeInvitedCollaborator(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l,u;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return gi("CollaborationContext.removeInvitedCollaborator","This method is deprecated and will be removed on or after 2025-01-01."),n.next=3,r._invitationInterface.modifyCollaborators(e,{invitations:[{id:t.id,action:"remove"}]});case 3:if(a=n.sent,s=null===(i=a.invitations)||void 0===i?void 0:i.find((e=>e.id===t.id))){n.next=7;break}throw we.create(ge.BAD_REQUEST,"InvitedCollaborator patch request unsuccessful");case 7:if(200===s.statusCode){n.next=9;break}throw we.createWithRepositoryCode(s.statusCode,null!==(o=s.errorSubcode)&&void 0!==o?o:"",s.statusText);case 9:c=r._getCollaboratorSources(e),l=c.invitedCollaboratorPool,(u=l.createUpdateSession()).queueDiscardedItem(t),u.commit();case 13:case"end":return n.stop()}}),n)})))()}getInvitedCollaborators(e){return gi("CollaborationContext.getInvitedCollaborators","This method is deprecated and will be removed on or after 2025-01-01. Use ShareableItem.collaboratorArray instead."),this._getCollaboratorSources(e).invitedCollaboratorSource}_removeCurrentUserFromCollaborationList(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e._isCollaboratorDataLoaded){r.next=3;break}return r.next=3,t._getCollaboratorsNow(e);case 3:if(n=e.collaboratorArray.find((e=>e.isCurrentUser))){r.next=6;break}throw we.create(ge.BAD_REQUEST,`Current user is not a collaborator on ${e.id}`);case 6:return r.next=8,t._removeCollaborator(e.id,n);case 8:e.collaboratorArray.includes(n)&&(i=e.collaboratorArray.filter((e=>e!==n)),e._setCollaboratorData(i),_i.hasManager(e,Cr)?_i.updatedExternally(e,Cr):e.dispatch(Cr));case 9:case"end":return r.stop()}}),r)})))()}removeCurrentUserFromCollaborationList(e){gi("removeCurrentUserFromCollaborationList/getCollaborator","This method does not work correctly and will be removed. Use ShareableItem.removeCurrentUserFromCollaboratorList() insstead.");const t=this.getCollaborator(e);return this._removeCollaborator(e,t)}getCollaborator(e){var t;gi("removeCurrentUserFromCollaborationList/getCollaborator","This method does not work correctly and will be removed. Use ShareableItem.collaboratorsArray.find(c => c.isCurrentUser()) instead.");const r=this._core._environment.getValue("USER_ID");return null!==(t=this._getCollaboratorSources(e).collaboratorPool.getLocalItemById(r))&&void 0!==t?t:new Dv(this._core,r)}_addCollaborators(e,t,r,n,i){const o=Object.assign(Object.assign(Object.assign({recipients:t},n?{notification:n}:{notification:{ans:{}}}),r?{configuration:r}:{}),i?{captcha:i}:{});this._invitationInterface.addCollaborators(e,o)}getPendingInvitations(){return this._invitationInterface.getPendingInvitations()}confirmAccess(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!t._accessConfirmedIDs.has(e)){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,t._invitationInterface.confirmAccess(e);case 4:t._accessConfirmedIDs.add(e);case 5:case"end":return r.stop()}}),r)})))()}get addressBookSource(){const e=new Ib(this._addressBookPool,new Pv(this._core),Pb);return new Uo(this._addressBookPool,[e])}_getAddressBookContactPool(e){let t=this._addressBookContactPoolMap.get(e);return t||(t=new Jo(this._core,"addressBookContact"),this._addressBookContactPoolMap.set(e,t)),t}getContactInAddressBook(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=r._getAddressBookContactPool(e),!(o=i.getLocalItemById(t))){n.next=4;break}return n.abrupt("return",o);case 4:return a=new Pv(r._core),n.next=7,a.getContactInAddressBook(e,t);case 7:return s=n.sent,c=i.createMutationSession(),o=Sv.updateRemoteItem(c,s),c.commit(),n.abrupt("return",o);case 12:case"end":return n.stop()}}),n)})))()}}Ie([Ue],Ab.prototype,"addressBookSource",null),Ie([Dt],Ab.prototype,"getContactInAddressBook",null);var Cb=Object.freeze({__proto__:null,default:Ab});function kb(e,t){return`${e}-${t}`}function Db(e,t,r){return e.map((e=>Object.assign(Object.assign({},e),{computedID:kb(e["project:gradientId"],r),"project:gradientData":Object.assign(Object.assign({},e["project:gradientData"]),{isDefault:t===e["project:gradientId"],languageCode:r})})))}class Nb{constructor(e){const t=e.asset,r=e.mediaTypes,n=e.excludeMediaTypes,i=Pe(e,["asset","mediaTypes","excludeMediaTypes"]);this._implicitDirectoryListingFilter=new aa(Object.assign({asset:t},i)),(r||n)&&(this._adobeAssetFilter=new Ps({mediaTypes:r,excludeMediaTypes:n}))}get hash(){var e,t;return[null===(e=this._implicitDirectoryListingFilter)||void 0===e?void 0:e.hash,null===(t=this._adobeAssetFilter)||void 0===t?void 0:t.hash].filter((e=>!!e)).join(":")}getRelationToFilter(e){return this._adobeAssetFilter&&e._adobeAssetFilter&&"disjoint"===this._adobeAssetFilter.getRelationToFilter(e._adobeAssetFilter)||this._implicitDirectoryListingFilter&&e._implicitDirectoryListingFilter&&"disjoint"===this._implicitDirectoryListingFilter.getRelationToFilter(e._implicitDirectoryListingFilter)?"disjoint":this._adobeAssetFilter&&e._adobeAssetFilter&&"unknown"===this._adobeAssetFilter.getRelationToFilter(e._adobeAssetFilter)||this._implicitDirectoryListingFilter&&e._implicitDirectoryListingFilter&&"unknown"===this._implicitDirectoryListingFilter.getRelationToFilter(e._implicitDirectoryListingFilter)?"unknown":"subset"}matches(e){return!(this._adobeAssetFilter&&!this._adobeAssetFilter.matches(e)||this._implicitDirectoryListingFilter&&!this._implicitDirectoryListingFilter.matches(e))}get mediaTypes(){var e;return null===(e=this._adobeAssetFilter)||void 0===e?void 0:e.mediaTypes}}class Rb extends ua{constructor(e,t,r){super(e,t,r),this._core=e,this._description="",this._projectPermissions=Gr,this._assetClass="directory",this._projectInterface=new bl(this._core),this.isProject=!0,this._repositoryOwner={id:"",type:"user"},this._isRecentPrivate=!1,this._allowInLists=!1,this._projectLinks=null==r?void 0:r.projectLinks,this._needsRepoMetadata=!0,_i.manageLazyLoading(this,[{event:Ye,fetchData:this._getGradient}])}get gradientID(){var e;return null!==(e=this._gradientID)&&void 0!==e?e:""}get gradient(){return this._gradient}_getGradient(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.projectContext.getGradient(e.gradientID);case 2:e._gradient=t.sent;case 3:case"end":return t.stop()}}),t)})))()}get description(){return gi("Description Not yet Supported","Currently the description field is not supported by the service."),this._description}_load({repoMetadata:e,appMetadata:t,effectivePermission:r,projectMetadata:n}={}){var i=()=>super._load,o=this;return me(he().mark((function a(){var s;return he().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,i().call(o,{repoMetadata:e,appMetadata:t,effectivePermission:r});case 2:if(o._needsRepoMetadata=!1,n){a.next=7;break}return a.next=6,o._projectInterface.getProject(o.id);case 6:n=a.sent;case 7:s=o._core.projectContext._assetPool.createMutationSession(),o._core.projectContext._projectUpdater.updateRemoteItem(s,n),s.commit();case 10:case"end":return a.stop()}}),a)})))()}get projectLinks(){return this._projectLinks}get creator(){return this._creator}get view(){if(!this._repositoryOwner.id)return;const e=this._core._environment.getUserId(),t=this._core.hostAssetContext,r=t.defaultOrganizationId,n=t.organizations,i=[e,...(null==n?void 0:n.map((e=>e.id)))||[]];return this._repositoryOwner.id===e||this._repositoryOwner.id===r?Vr.Yours:i.includes(this._repositoryOwner.id)?void 0:Vr.SWY}move(e){return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return gi("[MOVE_UNSUPPORTED]",`Move on a project is not supported ${e}`),t.abrupt("return");case 2:case"end":return t.stop()}}),t)})))()}rename(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(null===(n=t._projectLinks)||void 0===n?void 0:n[tt.PROJECTS_RENAME]){r.next=2;break}throw we.create(ge.BAD_REQUEST,"Rename link is missing for this project.");case 2:if(zn(e)){r.next=4;break}throw we.create(ge.BAD_REQUEST,"Invalid name provided for asset rename operation.");case 4:return r.next=6,t._projectInterface.renameProject(e,t._projectLinks);case 6:return i=t._core.projectContext._assetPool,r.next=9,t._core.getAssetContext();case 9:o=r.sent,a=i.createUpdateSession(),s=Jn(e,t),Qn({assetPool:t._core._getAssetPool(),asset:t,session:a,operation:{type:"rename",newPath:s},assetContext:o}),t._core.projectContext._projectUpdater.updateLocalItem(a,t,{"repo:name":e,"repo:path":s}),a.commit();case 15:case"end":return r.stop()}}),r)})))()}discard(){var e=this;return me(he().mark((function t(){var r,n,i;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isDiscarded){t.next=2;break}throw we.create(ge.INVALID_OPERATION,"Asset is already discarded");case 2:return t.next=4,e._ensureLink(tt.DISCARD);case 4:return t.next=6,e._projectInterface.discardProject(e.id,e._projectLinks);case 6:return r=e._core._getAssetPool(),t.next=9,e._core.getAssetContext();case 9:n=t.sent,i=r.createUpdateSession(),Qn({assetPool:r,asset:e,session:i,operation:{type:"discard"},assetContext:n}),e._core.projectContext._projectUpdater.updateLocalItem(i,e,{"repo:state":"DISCARDED"}),i.commit();case 14:case"end":return t.stop()}}),t)})))()}restore(){var e=this;return me(he().mark((function t(){var r,n,i;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isDiscarded){t.next=2;break}throw we.create(ge.INVALID_OPERATION,"Cannot restore an asset that is not discarded");case 2:return t.next=4,e._ensureLink(tt.RESTORE);case 4:return t.next=6,e._projectInterface.restoreProject(e.id,e._projectLinks);case 6:return r=e._core._getAssetPool(),t.next=9,e._core.getAssetContext();case 9:n=t.sent,i=r.createUpdateSession(),Qn({assetPool:r,asset:e,session:i,operation:{type:"restore"},assetContext:n}),e._core.projectContext._projectUpdater.updateLocalItem(i,e,{"repo:state":"ACTIVE"}),i.commit();case 14:case"end":return t.stop()}}),t)})))()}_updateProjectLinksFromService(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._projectInterface.getProject(e.id);case 2:r=t.sent,n=r._links,i=e._core.projectContext._assetPool,o=i.createUpdateSession(),e._core.projectContext._projectUpdater.updateLocalItem(o,e,{_links:n}),o.commit();case 8:case"end":return t.stop()}}),t)})))()}_isProjectLinkType(e){return[tt.CREATE,tt.RESTORE,tt.DISCARD,tt.PROJECTS_RENAME,tt.PAGE].includes(e)}_ensureLink(e){var t=()=>super._ensureLink,r=this;return me(he().mark((function n(){var i,o,a;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r._isProjectLinkType(e)){n.next=9;break}if(null===(i=r._projectLinks)||void 0===i?void 0:i[e]){n.next=4;break}return n.next=4,r._updateProjectLinksFromService();case 4:return o=Object.assign(Object.assign({},r.__links),{[e]:r._projectLinks[e]}),a=r._core.hostAssetContext._assetPool.createUpdateSession(),r._core.hostAssetContext._adobeAssetUpdater.updateLocalItem(a,r,{_links:o}),a.commit(),n.abrupt("return");case 9:return r._core._environment.debug(`ProjectLinkMissing ${e} Link ${e} missing on project, called out fetch it`),n.next=12,t().call(r,e);case 12:case"end":return n.stop()}}),n)})))()}validateProjectNameForRename(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.toLowerCase()!==t.name.toLowerCase()){r.next=2;break}return r.abrupt("return",!0);case 2:return r.next=4,t._core.projectContext.validateProjectNameForCreate(e,t);case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)})))()}updateProperties(){return me(he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()}leaveStatus(){const e=this.collaboratorArray;if(!this._isCollaboratorDataLoaded)return Kr.PENDING;if(0===e.length)return Kr.CANNOT_LEAVE_NO_COLLABORATORS;const t=e.find((e=>e.isCurrentUser));return t?"owner"===t.role?Kr.CANNOT_LEAVE_IS_OWNER:!t.isDirect&&t.isAdmin?Kr.CANNOT_LEAVE_IS_ADMIN_OF_PROJECT:1===e.length?Kr.CANNOT_LEAVE_LAST_COLLABORATOR:e.find((e=>e.canShare&&e.isDirect&&e!==t))||"user"===this.storageAssignee.type?t.isDirect?Kr.CAN_LEAVE:Kr.CANNOT_LEAVE_ADDRESS_BOOK_GROUP_MEMBER:Kr.CANNOT_LEAVE_LAST_DIRECT_COLLAB_WITH_SHARE_PERMISSION:Kr.CANNOT_LEAVE_ADDRESS_BOOK_GROUP_MEMBER}userCanLeaveProject(){switch(gi("userCanLeaveProject Deprecated","Use Project.leaveStatus instead. This will be removed on or after 2024-10-01."),this.leaveStatus()){case Kr.PENDING:return;case Kr.CAN_LEAVE:return!0;case Kr.CANNOT_LEAVE_NO_COLLABORATORS:case Kr.CANNOT_LEAVE_ADDRESS_BOOK_GROUP_MEMBER:case Kr.CANNOT_LEAVE_LAST_COLLABORATOR:case Kr.CANNOT_LEAVE_LAST_DIRECT_COLLAB_WITH_SHARE_PERMISSION:case Kr.CANNOT_LEAVE_IS_ADMIN_OF_PROJECT:case Kr.CANNOT_LEAVE_IS_OWNER:return!1}}hasPermission(...e){return e.every((e=>(this._projectPermissions&e)===e))}updateProject(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._core.projectContext.updateProject(t.id,e);case 2:case"end":return r.stop()}}),r)})))()}_applyRestorePermission(e){this._core.projectContext._getCachedRestoreCapability(this.repositoryID)?this._projectPermissions|=Br.Restore:this._projectPermissions&=~Br.Restore,this._core.projectContext._projectUpdater.updateLocalItem(e,this,{projectPermissions:this._projectPermissions})}_reloadPermissions(){var e=()=>super._reloadPermissions,t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._load();case 2:e().call(t);case 3:case"end":return r.stop()}}),r)})))()}get librariesSource(){const e=new eo(this._core.hostAssetContext._assetPool,this,this._core,!0,!0),t=new Nb({asset:this,mediaTypes:[Ds],_isSharedWithYou:!0});return new Uo(this._core.hostAssetContext._assetPool,[e],t)}get repositoryOwner(){return this._repositoryOwner}createLibrary(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._core.getLibraryContext();case 2:return n=r.sent,(i={name:e.name,parent_assetId:t.id,roles:e.roles}).access=e.restrictEdit?"team_view":"team_edit",r.abrupt("return",n._createLibrary(i));case 6:case"end":return r.stop()}}),r)})))()}get _isRecent(){return this._isRecentPrivate}updateLastAccessed(){var e=()=>super.updateLastAccessed,t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e().call(t);case 2:n=t._core.projectContext._assetPool.createUpdateSession(),t._core.projectContext._projectUpdater.updateLocalItem(n,t,{isRecent:!0,allowInLists:!0}),n.commit();case 5:case"end":return r.stop()}}),r)})))()}}Ie([$e],Rb.prototype,"gradientID",null),Ie([Ei(Ye,"_gradient")],Rb.prototype,"gradient",null),Ie([$e],Rb.prototype,"description",null),Ie([$e],Rb.prototype,"view",null),Ie([Ei(Cr,"_collaboratorsArray")],Rb.prototype,"leaveStatus",null),Ie([$e],Rb.prototype,"hasPermission",null),Ie([Ue],Rb.prototype,"librariesSource",null),Ie([$e],Rb.prototype,"repositoryOwner",null);const Mb=new Di({localItemType:Rb,remoteIdProperty:"repo:assetId",propertyUpdater:new Hi({_repositoryID:"repo:repositoryId",_path:"repo:path",_etag:"repo:etag",_created:{name:"repo:createDate",format:"date"},_description:"description",_name:"repo:name",_assetState:{name:"repo:state",choices:Ai},_storageAssignee:{name:"storage:assignee",format:pa},_projectLinks:{name:"_links",format:"object"},_creator:{name:`_embedded[${tt.PROJECTS_CREATOR}]`,format:"object"},_createdBy:`_embedded[${tt.PROJECTS_CREATOR}].id`,_gradientID:{name:`_embedded[${tt.APP_METADATA}][project:rendition].gradientId`,set:(e,t)=>{const r=t;if(!e)return void(r._gradientID="");const n=kb(e,r._core._environment.getValue("LOCALE"));r._gradientID!==n&&(r._gradientID=n,_i.setLoadStatus(r,ze,bi.NotLoaded))}},_projectPermissions:{get:function(e){var t;return(null===(t=e._embedded)||void 0===t?void 0:t[tt.AC_EFFECTIVE])?function(e){const t=e[tt.PROJECTS_PRIMARY]||e["*"]||[],r=e[tt.PRIMARY]||e["*"]||[],n=e[tt.DIRECTORY]||e["*"]||[],i=e[tt.ANNOTATIONS]||e["*"]||[],o=e[tt.AC_POLICY]||e["*"]||[];let a=Br.None;return t.forEach((e=>{switch(e){case"ack":a|=Br.Ack;break;case"read":a|=Br.Read;break;case"rename":a|=Br.Rename;break;case"discard":a|=Br.Discard;break;case"restore":a|=Br.Restore}})),r.forEach((e=>{switch(e){case"write":a|=Br.Write;break;case"delete":n.includes("write")&&(a|=Br.Delete)}})),o.includes("write")&&(a|=Br.Share),i.includes("write")&&(a|=Br.WriteComment),a}(e._embedded[tt.AC_EFFECTIVE]):Ni},format:"number"},_repositoryOwner:{name:`_embedded[${tt.REPOSITORY}][repo:owner]`,format:pa},_isRecentPrivate:{name:"isRecent",format:"boolean"},_allowInLists:{name:"allowInLists",format:"boolean"}})});class jb{constructor(e,t,r,n){this._projectPool=e,this._projectInterface=t,this._projectUpdater=r,this._core=n}supportsFilter(e){return void 0!==e}loadPage(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_loadPage(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l,u,d,p,h,f,m,g,v,y,b,_,E,w,x;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(a=e.order,s=e.limit,c=e.filter,l=r._projectPool._core._environment.getValue("PROJECTS_LIST_UPDATE_LATENCY"),u=Date.now()-l,!t){n.next=9;break}return n.next=6,r._projectInterface.getProjectsWithLink(t);case 6:d=n.sent,n.next=28;break;case 9:if((null==c?void 0:c.view)!==Vr.Recent){n.next=16;break}return p=s?{first:s}:{},n.next=13,r._projectInterface.getRecentProjects(p);case 13:d=n.sent,n.next=28;break;case 16:return h=c.view?{view:Yr[c.view]}:{},f=c.repositoryID?{repositoryId:c.repositoryID}:{},m=c.nameContains?{nameContains:c.nameContains}:{},g=c.isDiscarded?{isDiscarded:!0}:{},v=[],n.next=23,_i.fetchIfNeeded(r._core.hostAssetContext,mg);case 23:return y=r._core.hostAssetContext.defaultOrganizationId||"",c.view===Vr.Yours?(v.push(r._core._environment.getUserId()),y&&v.push(y)):c.view!==Vr.Organization&&c.view!==Vr.Admin||c.organizationID&&v.push(c.organizationID),n.next=27,r._projectInterface.getProjects(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({orderBy:jv[a.field],orderDirection:a.direction,limit:s},h),f),m),g),v.length?{ownerId:v.join(",")}:{}));case 27:d=n.sent;case 28:return b=r._projectPool.createLoaderUpdateSession(u),_=d.children.map((e=>c.view===Vr.Recent?Object.assign(Object.assign({},e),{isRecent:!0,allowInLists:!0}):Object.assign(Object.assign({},e),{allowInLists:!0}))),E=r._projectUpdater.updateRemoteItems(b,_),b.commit(),(x=null===(i=d._links)||void 0===i?void 0:i.next)&&(w=e=>r._loadPage(e,x)),n.abrupt("return",{items:E,total:null===(o=d._page)||void 0===o?void 0:o.total,loadNextPage:w,mostRecentValidMutation:u});case 35:case"end":return n.stop()}}),n)})))()}}class Fb{constructor(){this.hash="ImplicitProjectFilter",this.view=I.All}matches(e){return e.isProject&&e._allowInLists}getRelationToFilter(){return"subset"}}class Zb{constructor(e,t){this._core=e,this._assetPool=t,this._projectInterface=new bl(this._core),this._gradientPool=new Jo(this._core,"gradient"),this._canRestoreProjectCache=new Map,this._projectUpdater=Mb,this._core.on(Tr,((e,t,r)=>{"LOCALE"===r.configurationKeyName&&this._getGradients()}))}get assetPool(){return gi("ProjectContext._assetPool","This property is deprecated and will be removed on or after 10-01-2024. For internal use by SAM.js only."),this._assetPool}projects(){this._core.hostAssetContext.organizations;const e=new jb(this._assetPool,this._projectInterface,this._projectUpdater,this._core);return new Uo(this._assetPool,[e],new Fb)}createProject(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s,c;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=e.name,i=e.gradientID,zn(n)){r.next=3;break}throw we.create(ge.BAD_REQUEST,"Invalid name provided for the rename operation.");case 3:return r.next=5,t.getGradient(i);case 5:return o=r.sent,r.next=8,t._projectInterface.createProject({[tt.APP_METADATA]:{"project:rendition":{gradientId:o.gradientID}},"repo:name":n});case 8:return a=r.sent,s=t._assetPool.createMutationSession(),c=t._projectUpdater.updateRemoteItem(s,a),s.commit(),r.abrupt("return",c);case 13:case"end":return r.stop()}}),r)})))()}resolveProjectByName(e){var t=this;return me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._projectInterface.resolveProjectByName(e);case 2:return n=r.sent,i=n["repo:assetId"],t._core.collaborationContext.confirmAccess(i),o=t._assetPool.createMutationSession(),a=t._projectUpdater.updateRemoteItem(o,n),o.commit(),r.abrupt("return",a);case 9:case"end":return r.stop()}}),r)})))()}validateProjectNameForCreate(e,t,r){var n=this;return me(he().mark((function i(){var o,a;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(zn(e)){i.next=2;break}throw we.create(ge.BAD_REQUEST,"Invalid project name.");case 2:return o=e,t&&(o=Jn(e,t)),i.prev=4,i.next=7,n._projectInterface.validateProjectName(o,r);case 7:i.next=19;break;case 9:if(i.prev=9,i.t0=i.catch(4),(a=i.t0).code!==ge.NOT_FOUND){i.next=16;break}return i.abrupt("return",!0);case 16:if(a.code!==ge.CONFLICT){i.next=18;break}return i.abrupt("return",!1);case 18:throw i.t0;case 19:return i.abrupt("return",!1);case 20:case"end":return i.stop()}}),i,null,[[4,9]])})))()}getProjectbyID(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(n=t._assetPool.getLocalItemById(e))){r.next=4;break}return t._core.collaborationContext.confirmAccess(e),r.abrupt("return",n);case 4:return r.next=6,t._core.collaborationContext.confirmAccess(e);case 6:return r.next=8,t._projectInterface.getProject(e);case 8:return i=r.sent,o=t._assetPool.createMutationSession(),(n=t._projectUpdater.updateRemoteItem(o,i)).hasPermission(Br.Write)||"org"!==n.repositoryOwner.type?t._projectUpdater.updateLocalItem(o,n,{allowInLists:!0}):t._checkForInvite(n),o.commit(),r.abrupt("return",n);case 14:case"end":return r.stop()}}),r)})))()}_checkForInvite(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=new ac(t._core),r.next=3,n.getQueryResponse({limit:1,asset_id:e.id,[Ji.SHARED_VIA_INVITE]:!0});case 3:r.sent.result_sets[0].items.length&&(i=t._assetPool.createUpdateSession(),t._projectUpdater.updateLocalItem(i,e,{allowInLists:!0}),i.commit());case 5:case"end":return r.stop()}}),r)})))()}_getGradients(){var e=this;return me(he().mark((function t(){var r,n,i,o,a,s;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e._core._environment.getValue("LOCALE"),t.next=3,e._projectInterface.getGradients(r);case 3:return n=t.sent,i=n.default,o=e._gradientPool.createUpdateSession(),a=Db(n.children,i,r),s=Iy.updateRemoteItems(o,a),o.commit(),t.abrupt("return",s);case 10:case"end":return t.stop()}}),t)})))()}getGradients(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._getGradients();case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}getGradient(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t._gradientPool.getLocalItemById(e),i=t._core._environment.getValue("LOCALE"),!n||n.languageCode!==i){r.next=4;break}return r.abrupt("return",n);case 4:return r.next=6,t._getGradients();case 6:if(o=t._gradientPool.getLocalItemById(e)){r.next=14;break}if(!t._defaultGradient||t._defaultGradient.languageCode!==i){r.next=10;break}return r.abrupt("return",t._defaultGradient);case 10:if(t._gradientPool.forEach((e=>{e.isDefault&&(t._defaultGradient=e)})),!t._defaultGradient){r.next=13;break}return r.abrupt("return",t._defaultGradient);case 13:throw we.create(ge.UNKNOWN,`Gradient ID does not exist ${e}`);case 14:return r.abrupt("return",o);case 15:case"end":return r.stop()}}),r)})))()}updateProject(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i={},!t.gradientID){n.next=15;break}return n.next=4,r.getGradient(t.gradientID);case 4:return o=n.sent,n.next=7,r.getProjectbyID(e);case 7:return a=n.sent,s=a.projectLinks,i=Object.assign(Object.assign({},i),{gradientID:o.gradientID}),n.next=12,r._projectInterface.patchProject(s,i);case 12:c=r._assetPool.createMutationSession(),r._projectUpdater.updateRemoteItem(c,{"repo:assetId":a.id,_embedded:{[tt.APP_METADATA]:{"project:rendition":{gradientId:o.gradientID}}}}),c.commit();case 15:case"end":return n.stop()}}),n)})))()}canCreateProjects(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,t._projectInterface.getCapability(Wr.CREATE,e);case 3:return r.abrupt("return",!0);case 6:if(r.prev=6,r.t0=r.catch(0),Le(r.t0)){r.next=10;break}throw r.t0;case 10:return r.abrupt("return",!1);case 11:case"end":return r.stop()}}),r,null,[[0,6]])})))()}_canRestoreProject(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!t._canRestoreProjectCache.has(e)){r.next=2;break}return r.abrupt("return",t._canRestoreProjectCache.get(e));case 2:return r.next=4,t.canCreateProjects(e);case 4:return n=r.sent,t._canRestoreProjectCache.set(e,n),r.abrupt("return",n);case 7:case"end":return r.stop()}}),r)})))()}_getCachedRestoreCapability(e){return this._canRestoreProjectCache.get(e)||!1}canCreateProjectReason(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,t._projectInterface.getCapability(Wr.CREATE,e);case 3:return r.abrupt("return",$r.ALLOWED);case 6:if(r.prev=6,r.t0=r.catch(0),Le(r.t0)){r.next=10;break}return r.abrupt("return",$r.UNKNOWN);case 10:r.t1=r.t0.subCode,r.next=r.t1===ve.PROJECTS_ADMIN_ONLY?13:r.t1===ve.PROJECTS_NO_HOME_REPOSITORY?14:r.t1===ve.PROJECTS_INVALID_REPOSITORY?15:16;break;case 13:return r.abrupt("return",$r.ADMIN_DISABLED);case 14:return r.abrupt("return",$r.NO_HOME_REPOSITORY);case 15:return r.abrupt("return",$r.INVALID_REPOSITORY);case 16:return r.abrupt("return",$r.UNKNOWN);case 17:case"end":return r.stop()}}),r,null,[[0,6]])})))()}getProjectsSearchSource(e){const t=new sl({_query:e,_projectsOnly:!0}),r=new ul(this._core.hostAssetContext._assetPool,this._core,this._core.hostAssetContext._globalSearchInterfaceV3,t);return new Uo(this._assetPool,[r],t)}_callContextAPI(e,t){var r=this;return me(he().mark((function n(){var i,o;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._projectInterface._discoverProjectLinks();case 2:return i=n.sent,o=i[tt.PROJECTS_CONTEXT].href,n.next=6,r._projectInterface._issueContextAPIRequest(e,t,o);case 6:return n.abrupt("return",n.sent);case 7:case"end":return n.stop()}}),n)})))()}getProjectOrder(e="ascending",t="name"){return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.resolve().then((function(){return Bv}));case 2:return n=r.sent,i=n.default,r.abrupt("return",new i(e,t));case 5:case"end":return r.stop()}}),r)})))()}getProjectFilter(e){return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.resolve().then((function(){return fy}));case 2:return r=t.sent,n=r.default,t.abrupt("return",new n(e));case 5:case"end":return t.stop()}}),t)})))()}}Ie([Ue],Zb.prototype,"projects",null),Ie([Dt],Zb.prototype,"createProject",null),Ie([(e,t,r)=>{const n=Symbol(`@consolidated ${t}`),i=r.value;if(!i)throw we.create(ge.BAD_REQUEST,"@consolidated decorator can only be applied to a method");r.value=me(he().mark((function e(...r){var o,a,s,c,l;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=null===(o=this[Fe])||void 0===o?void 0:o.get(t),s=void 0===a?"default":r[a],c=this[n]||(this[n]=new Map),!(l=c.get(s))){e.next=8;break}return e.abrupt("return",l);case 8:return l=i.apply(this,r),c.set(s,l),l.finally((()=>{c.delete(s)})),e.abrupt("return",l);case 12:case"end":return e.stop()}}),e,this)})))},Ae(0,Ze)],Zb.prototype,"validateProjectNameForCreate",null),Ie([Dt,At,Ae(0,Ze)],Zb.prototype,"getProjectbyID",null);var Bb=Object.freeze({__proto__:null,default:Zb}),Gb="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{},Ub="1.9.0",Hb=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,zb=function(e){var t=new Set([e]),r=new Set,n=e.match(Hb);if(!n)return function(){return!1};var i=+n[1],o=+n[2],a=+n[3];if(null!=n[4])return function(t){return t===e};function s(e){return r.add(e),!1}function c(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(Hb);if(!n)return s(e);var l=+n[1],u=+n[2],d=+n[3];return null!=n[4]||i!==l?s(e):0===i?o===u&&a<=d?c(e):s(e):o<=u?c(e):s(e)}}(Ub),Vb=Ub.split(".")[0],Yb=Symbol.for("opentelemetry.js.api."+Vb),Wb=Gb;function Kb(e,t,r,n){var i;void 0===n&&(n=!1);var o=Wb[Yb]=null!==(i=Wb[Yb])&&void 0!==i?i:{version:Ub};if(!n&&o[e]){var a=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(a.stack||a.message),!1}return o.version!==Ub?(a=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+e+" does not match previously registered API v"+Ub),r.error(a.stack||a.message),!1):(o[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v1.9.0."),!0)}function $b(e){var t,r,n=null===(t=Wb[Yb])||void 0===t?void 0:t.version;if(n&&zb(n))return null===(r=Wb[Yb])||void 0===r?void 0:r[e]}function qb(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v1.9.0.");var r=Wb[Yb];r&&delete r[e]}var Xb,Jb=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Qb("debug",this._namespace,e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Qb("error",this._namespace,e)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Qb("info",this._namespace,e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Qb("warn",this._namespace,e)},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Qb("verbose",this._namespace,e)},e}();function Qb(e,t,r){var n=$b("diag");if(n)return r.unshift(t),n[e].apply(n,function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}([],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}(r),!1))}!function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"}(Xb||(Xb={}));var e_=function(){function e(){function e(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=$b("diag");if(n)return n[e].apply(n,function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}([],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}(t),!1))}}var t=this;t.setLogger=function(e,r){var n,i,o;if(void 0===r&&(r={logLevel:Xb.INFO}),e===t){var a=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(n=a.stack)&&void 0!==n?n:a.message),!1}"number"==typeof r&&(r={logLevel:r});var s=$b("diag"),c=function(e,t){function r(r,n){var i=t[r];return"function"==typeof i&&e>=n?i.bind(t):function(){}}return e<Xb.NONE?e=Xb.NONE:e>Xb.ALL&&(e=Xb.ALL),t=t||{},{error:r("error",Xb.ERROR),warn:r("warn",Xb.WARN),info:r("info",Xb.INFO),debug:r("debug",Xb.DEBUG),verbose:r("verbose",Xb.VERBOSE)}}(null!==(i=r.logLevel)&&void 0!==i?i:Xb.INFO,e);if(s&&!r.suppressOverrideMessage){var l=null!==(o=(new Error).stack)&&void 0!==o?o:"<failed to generate stacktrace>";s.warn("Current logger will be overwritten from "+l),c.warn("Current logger will overwrite one already registered from "+l)}return Kb("diag",c,t,!0)},t.disable=function(){qb("diag",t)},t.createComponentLogger=function(e){return new Jb(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),t_=function(){function e(e){this._entries=e?new Map(e):new Map}return e.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map((function(e){var t=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}(e,2);return[t[0],t[1]]}))},e.prototype.setEntry=function(t,r){var n=new e(this._entries);return n._entries.set(t,r),n},e.prototype.removeEntry=function(t){var r=new e(this._entries);return r._entries.delete(t),r},e.prototype.removeEntries=function(){for(var t,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=new e(this._entries);try{for(var a=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),s=a.next();!s.done;s=a.next()){var c=s.value;o._entries.delete(c)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return o},e.prototype.clear=function(){return new e},e}();function r_(e){return void 0===e&&(e={}),new t_(new Map(Object.entries(e)))}function n_(e){return Symbol.for(e)}e_.instance();var i_,o_,a_=new function e(t){var r=this;r._currentContext=t?new Map(t):new Map,r.getValue=function(e){return r._currentContext.get(e)},r.setValue=function(t,n){var i=new e(r._currentContext);return i._currentContext.set(t,n),i},r.deleteValue=function(t){var n=new e(r._currentContext);return n._currentContext.delete(t),n}},s_=(i_=function(e,t){return i_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},i_(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}i_(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c_=function(){function e(){}return e.prototype.createGauge=function(e,t){return __},e.prototype.createHistogram=function(e,t){return E_},e.prototype.createCounter=function(e,t){return b_},e.prototype.createUpDownCounter=function(e,t){return w_},e.prototype.createObservableGauge=function(e,t){return L_},e.prototype.createObservableCounter=function(e,t){return x_},e.prototype.createObservableUpDownCounter=function(e,t){return O_},e.prototype.addBatchObservableCallback=function(e,t){},e.prototype.removeBatchObservableCallback=function(e){},e}(),l_=function(){},u_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s_(t,e),t.prototype.add=function(e,t){},t}(l_),d_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s_(t,e),t.prototype.add=function(e,t){},t}(l_),p_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s_(t,e),t.prototype.record=function(e,t){},t}(l_),h_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s_(t,e),t.prototype.record=function(e,t){},t}(l_),f_=function(){function e(){}return e.prototype.addCallback=function(e){},e.prototype.removeCallback=function(e){},e}(),m_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s_(t,e),t}(f_),g_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s_(t,e),t}(f_),v_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s_(t,e),t}(f_),y_=new c_,b_=new u_,__=new p_,E_=new h_,w_=new d_,x_=new m_,L_=new g_,O_=new v_,S_={get:function(e,t){if(null!=e)return e[t]},keys:function(e){return null==e?[]:Object.keys(e)}},T_={set:function(e,t,r){null!=e&&(e[t]=r)}},P_=function(){function e(){}return e.prototype.active=function(){return a_},e.prototype.with=function(e,t,r){for(var n=[],i=3;i<arguments.length;i++)n[i-3]=arguments[i];return t.call.apply(t,function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}([r],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}(n),!1))},e.prototype.bind=function(e,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),I_="context",A_=new P_,C_=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(e){return Kb(I_,e,e_.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,t,r){for(var n,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return(n=this._getContextManager()).with.apply(n,function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}([e,t,r],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}(i),!1))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return $b(I_)||A_},e.prototype.disable=function(){this._getContextManager().disable(),qb(I_,e_.instance())},e}();!function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"}(o_||(o_={}));var k_="0000000000000000",D_="00000000000000000000000000000000",N_={traceId:D_,spanId:k_,traceFlags:o_.NONE},R_=function(){function e(e){void 0===e&&(e=N_),this._spanContext=e}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return this},e.prototype.setAttributes=function(e){return this},e.prototype.addEvent=function(e,t){return this},e.prototype.addLink=function(e){return this},e.prototype.addLinks=function(e){return this},e.prototype.setStatus=function(e){return this},e.prototype.updateName=function(e){return this},e.prototype.end=function(e){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(e,t){},e}(),M_=n_("OpenTelemetry Context Key SPAN");function j_(e){return e.getValue(M_)||void 0}function F_(){return j_(C_.getInstance().active())}function Z_(e,t){return e.setValue(M_,t)}function B_(e){return e.deleteValue(M_)}function G_(e,t){return Z_(e,new R_(t))}function U_(e){var t;return null===(t=j_(e))||void 0===t?void 0:t.spanContext()}var H_=/^([0-9a-f]{32})$/i,z_=/^[0-9a-f]{16}$/i;function V_(e){return r=e.traceId,H_.test(r)&&r!==D_&&(t=e.spanId,z_.test(t)&&t!==k_);var t,r}function Y_(e){return new R_(e)}var W_=C_.getInstance(),K_=function(){function e(){}return e.prototype.startSpan=function(e,t,r){if(void 0===r&&(r=W_.active()),Boolean(null==t?void 0:t.root))return new R_;var n,i=r&&U_(r);return"object"==typeof(n=i)&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&V_(i)?new R_(i):new R_},e.prototype.startActiveSpan=function(e,t,r,n){var i,o,a;if(!(arguments.length<2)){2===arguments.length?a=t:3===arguments.length?(i=t,a=r):(i=t,o=r,a=n);var s=null!=o?o:W_.active(),c=this.startSpan(e,i,s),l=Z_(s,c);return W_.with(l,a,void 0,c)}},e}(),$_=new K_,q_=function(){function e(e,t,r,n){this._provider=e,this.name=t,this.version=r,this.options=n}return e.prototype.startSpan=function(e,t,r){return this._getTracer().startSpan(e,t,r)},e.prototype.startActiveSpan=function(e,t,r,n){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):$_},e}(),X_=new(function(){function e(){}return e.prototype.getTracer=function(e,t,r){return new K_},e}()),J_=function(){function e(){}return e.prototype.getTracer=function(e,t,r){var n;return null!==(n=this.getDelegateTracer(e,t,r))&&void 0!==n?n:new q_(this,e,t,r)},e.prototype.getDelegate=function(){var e;return null!==(e=this._delegate)&&void 0!==e?e:X_},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t,r){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(e,t,r)},e}(),Q_=C_.getInstance(),eE=e_.instance(),tE=new(function(){function e(){}return e.prototype.getMeter=function(e,t,r){return y_},e}()),rE="metrics",nE=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(e){return Kb(rE,e,e_.instance())},e.prototype.getMeterProvider=function(){return $b(rE)||tE},e.prototype.getMeter=function(e,t,r){return this.getMeterProvider().getMeter(e,t,r)},e.prototype.disable=function(){qb(rE,e_.instance())},e}(),iE=nE.getInstance(),oE=function(){function e(){}return e.prototype.inject=function(e,t){},e.prototype.extract=function(e,t){return e},e.prototype.fields=function(){return[]},e}(),aE=n_("OpenTelemetry Baggage Key");function sE(e){return e.getValue(aE)||void 0}function cE(){return sE(C_.getInstance().active())}function lE(e,t){return e.setValue(aE,t)}function uE(e){return e.deleteValue(aE)}var dE="propagation",pE=new oE,hE=function(){function e(){this.createBaggage=r_,this.getBaggage=sE,this.getActiveBaggage=cE,this.setBaggage=lE,this.deleteBaggage=uE}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(e){return Kb(dE,e,e_.instance())},e.prototype.inject=function(e,t,r){return void 0===r&&(r=T_),this._getGlobalPropagator().inject(e,t,r)},e.prototype.extract=function(e,t,r){return void 0===r&&(r=S_),this._getGlobalPropagator().extract(e,t,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){qb(dE,e_.instance())},e.prototype._getGlobalPropagator=function(){return $b(dE)||pE},e}(),fE=hE.getInstance(),mE="trace",gE=function(){function e(){this._proxyTracerProvider=new J_,this.wrapSpanContext=Y_,this.isSpanContextValid=V_,this.deleteSpan=B_,this.getSpan=j_,this.getActiveSpan=F_,this.getSpanContext=U_,this.setSpan=Z_,this.setSpanContext=G_}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(e){var t=Kb(mE,this._proxyTracerProvider,e_.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},e.prototype.getTracerProvider=function(){return $b(mE)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){qb(mE,e_.instance()),this._proxyTracerProvider=new J_},e}(),vE={context:Q_,diag:eE,metrics:iE,propagation:fE,trace:gE.getInstance()};const yE={"Content-Type":Qe};function bE(e){const t=[],r=[{key:"subject",type:"enum",isRequired:!1,ref:Wg},{key:"grades",type:"string[]",isRequired:!1},{key:"period",type:"string",isRequired:!1}];t.push(...ns(r,e));const n="string"==typeof e.name&&null!==e.name,i="string"==typeof e.id&&null!==e.id;return n||i||t.push("name or id is missing"),t}class _E extends Pt{_monitorResponse(e){return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e);case 1:case"end":return t.stop()}}),t)})))()}_getUrl(e){return`https://${this._core._environment.endpoints.CLASSROOMS_HOST}${e}`}createClassroom(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doPost(t._getUrl("/api/v1/classrooms"),yE,JSON.stringify({className:e.name,subject:e.subject,grades:e.grades,period:e.period}),[201]);case 2:return n=r.sent,r.next=5,n.json();case 5:return i=r.sent,r.abrupt("return",i);case 7:case"end":return r.stop()}}),r)})))()}createClassroomFromVirtual(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doPost(t._getUrl(`/api/v1/classrooms/virtual/${e}/create`),{"Content-Type":Qe},void 0,[201]);case 2:return n=r.sent,r.next=5,n.json();case 5:return i=r.sent,r.abrupt("return",i);case 7:case"end":return r.stop()}}),r)})))()}updateClassroomFromVirtual(e,t){var r=this;return me(he().mark((function n(){var i,o;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPost(r._getUrl(`/api/v1/classrooms/virtual/${e}/update`),{"Content-Type":Qe},JSON.stringify({className:t.name,subject:t.subject,grades:t.grades,period:t.period}),[201]);case 2:return i=n.sent,n.next=5,i.json();case 5:return o=n.sent,n.abrupt("return",o);case 7:case"end":return n.stop()}}),n)})))()}deleteClassroom(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doDelete(t._getUrl(`/api/v1/classrooms/${e}`),yE,[202]);case 2:case"end":return r.stop()}}),r)})))()}deleteVirtualClassroom(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doPost(t._getUrl(`/api/v1/classrooms/virtual/${e}/delete`),yE,void 0,[202]);case 2:case"end":return r.stop()}}),r)})))()}getClassroom(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t._getResponse(t._getUrl(`/api/v1/classrooms/${e}`)),r.abrupt("return",n.then((e=>{var t;return null!==(t=e.importedFrom)&&void 0!==t||(e.importedFrom={}),e})));case 2:case"end":return r.stop()}}),r)})))()}getClassrooms(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e._getResponse(e._getUrl("/api/v1/classrooms")),t.abrupt("return",r.then((e=>e.map((e=>{var t;return null!==(t=e.importedFrom)&&void 0!==t||(e.importedFrom={}),e})))));case 2:case"end":return t.stop()}}),t)})))()}refreshClassroomCode(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._doPut(t._getUrl(`/api/v1/classrooms/${e}/code/refresh`),void 0,void 0,[200]).then((e=>e.json())));case 1:case"end":return r.stop()}}),r)})))()}updateClassroom(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPatch(r._getUrl(`/api/v1/classrooms/${e}`),{"Content-Type":Qe},JSON.stringify({className:t.name,subject:t.subject,grades:t.grades,period:t.period}));case 2:return i=n.sent,n.abrupt("return",i.json());case 4:case"end":return n.stop()}}),n)})))()}getClassroomTeachers(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t.getClassroomMembers(e,Xg.TEACHER));case 1:case"end":return r.stop()}}),r)})))()}getClassroomStudents(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.getClassroomMembers(e,Xg.STUDENT);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}getClassroomMembers(e,t){var r=this;return me(he().mark((function n(){var i,o,a;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=t===Xg.NONE?"":`/${t}s`,o=`/api/v1/classrooms/${e}/members${i}`,n.next=4,r._getResponse(r._getUrl(o));case 4:return(a=n.sent).members.forEach((t=>{t.classroomId=e,t.computedKey=is(e,t.userId)})),n.abrupt("return",a.members);case 7:case"end":return n.stop()}}),n)})))()}getMembership(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._getResponse(t._getUrl(`/api/v1/classrooms/${e}/members/status`)));case 1:case"end":return r.stop()}}),r)})))()}blockStudent(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPost(r._getUrl(`/api/v1/classrooms/${e}/members/students/block`),yE,JSON.stringify({studentId:t}),[200]);case 2:return i=n.sent,n.next=5,i.json();case 5:return n.abrupt("return",n.sent);case 6:case"end":return n.stop()}}),n)})))()}unblockStudent(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doPost(r._getUrl(`/api/v1/classrooms/${e}/members/students/unblock`),yE,JSON.stringify({studentId:t}),[200]);case 2:return i=n.sent,n.next=5,i.json();case 5:return n.abrupt("return",n.sent);case 6:case"end":return n.stop()}}),n)})))()}removeStudent(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._doDelete(r._getUrl(`/api/v1/classrooms/${e}/members/students?studentId=${t}`),yE,[202]);case 2:return i=n.sent,n.next=5,i.json();case 5:return n.abrupt("return",n.sent);case 6:case"end":return n.stop()}}),n)})))()}}class EE{constructor(e,t){this._ClassroomMemberPool=e,this._classroomsInterface=t}loadPage(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_loadPage(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.filter,i=n,r.next=4,t._classroomsInterface.getClassroomMembers(i.classroomId,i.role);case 4:return o=r.sent,a=t._ClassroomMemberPool.createLoaderUpdateSession(Date.now()),s=ov.updateRemoteItems(a,o),a.commit(),r.abrupt("return",{items:s,total:s.length,loadNextPage:void 0});case 9:case"end":return r.stop()}}),r)})))()}}const wE=Object.values(Wg);class xE extends Nn{constructor(e,t){super(e,t),this._core=e,this._code="",this._importSource={},this._isDeleted=!1,this._isVirtual=!1,this._grades=[],this._memberRole=Xg.NONE,this._name="",this._period="",this._status=Vg.ACTIVE,this._subject=Wg.noSubject,this._classroomsInterface=new _E(this._core);const r=new EE(this._core.classroomContext._classroomMemberPool,this._classroomsInterface);this._members=new Uo(this._core.classroomContext._classroomMemberPool,[r],new lv({classroomId:this.id}))}get code(){return this._code}get created(){if(this._created)return new Date(this._created)}get importSource(){return this._importSource}get isDeleted(){return this._isDeleted}get isVirtual(){return this._isVirtual}get grades(){return this._grades}get members(){return this._members}get memberRole(){return this._memberRole}get name(){return this._name}get period(){return this._period}get status(){return this._status}get subject(){return this._subject}get type(){return this._type}get userCount(){return this._userCount}delete(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._classroomsInterface.deleteClassroom(e.id);case 2:case"end":return t.stop()}}),t)})))()}refreshCode(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e._classroomsInterface.refreshClassroomCode(e.id);case 1:case"end":return t.stop()}}),t)})))()}update(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._core.classroomContext.updateClassroom(t.id,e));case 1:case"end":return r.stop()}}),r)})))()}}Ie([$e],xE.prototype,"code",null),Ie([$e],xE.prototype,"created",null),Ie([$e],xE.prototype,"importSource",null),Ie([$e],xE.prototype,"isDeleted",null),Ie([$e],xE.prototype,"isVirtual",null),Ie([$e],xE.prototype,"grades",null),Ie([$e],xE.prototype,"members",null),Ie([$e],xE.prototype,"memberRole",null),Ie([$e],xE.prototype,"name",null),Ie([$e],xE.prototype,"period",null),Ie([$e],xE.prototype,"status",null),Ie([$e],xE.prototype,"subject",null),Ie([$e],xE.prototype,"type",null),Ie([$e],xE.prototype,"userCount",null);const LE=new Di({localItemType:xE,remoteIdProperty:"classId",getAlternateId:function(e){return e.virtualId},propertyUpdater:new Hi({_code:{name:"classCode",format:"string"},_created:{name:"createdOn",format:"string"},_importSource:{name:"importedFrom",format:"object",set:(e,t)=>{t._importSource={id:e.sourceId,type:e.source,synced:e.lastUpdatedAt?new Date(e.lastUpdatedAt):void 0}}},_isDeleted:{name:"deleted",format:"boolean"},_isVirtual:{name:"isVirtualClassroom",format:"boolean"},_grades:{isArray:!0,name:"grades"},_memberRole:{name:"memberRole",format:"string"},_name:{name:"className",format:"string"},_period:{name:"period",format:"string"},_status:{name:"status",format:"string",choices:Object.values(Vg)},_subject:{name:"subject",format:"string",choices:wE},_type:{name:"type",format:"string",choices:Object.values(Yg)},_userCount:{name:"userCount",format:"number"},_virtualId:{name:"virtualId",format:"string"}})});class OE{constructor(e,t){this._classroomPool=e,this._classroomsInterface=t}loadPage(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_loadPage(e,t){var r=this;return me(he().mark((function e(){var t,n,i;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r._classroomsInterface.getClassrooms();case 2:return t=e.sent,n=r._classroomPool.createLoaderUpdateSession(Date.now()),i=LE.updateRemoteItems(n,t),n.commit(),e.abrupt("return",{items:i,total:i.length,loadNextPage:void 0});case 7:case"end":return e.stop()}}),e)})))()}}class SE{constructor(e,t,r){this._assignmentPool=e,this._assignmentInterface=t,this._core=r}loadPage(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_loadPage(e,t){var r=this;return me(he().mark((function t(){var n,i,o,a,s,c;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.filter.classroomId,i=e.filter.submissions,t.t0=r._assignmentInterface,t.t1=Object,t.t2=Object.assign({},e),t.t3=n,t.next=8,r._core.classroomContext.validateStudentAssignmentsFilter(i,n);case 8:return t.t4=t.sent,t.t5={classroomId:t.t3,submissions:t.t4},t.t6=t.t1.assign.call(t.t1,t.t2,t.t5),t.next=13,t.t0.getAssignments.call(t.t0,t.t6);case 13:return o=t.sent,a=Date.now(),s=r._assignmentPool.createLoaderUpdateSession(a),c=xs.updateRemoteItems(s,o.children),s.commit(),t.abrupt("return",{items:c,total:o.children.length,mostRecentValidMutation:a});case 19:case"end":return t.stop()}}),t)})))()}}class TE{constructor(e,t){this._StudentAssignmentPool=e,this._StudentAssignmentsInterface=t}loadPage(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}observeStudentsFolder({remoteStudentAssignments:e}){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e[0],i=n["classroom:context"]["assignment:studentsContext"]["assignment:studentsAssetId"],r.abrupt("return",t._StudentAssignmentPool._core.hostAssetContext.getAssetWithCloudID(i));case 3:case"end":return r.stop()}}),r)})))()}_loadPage(e,t){var r=this;return me(he().mark((function t(){var n,i,o,a,s,c,l,u,d,p,h,f;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.filter,i=e.implicitFilter,o=i.assignmentId,a=i.assignmentCode,s=n.assignmentId,c=n.assignmentCode,l=n.loadDocuments,o||a||(i.assignmentId=s,i.assignmentCode=c),u=i.assignmentId,d=i.assignmentCode,p=[],t.next=8,r._StudentAssignmentsInterface.getStudentAssignments({assignmentCode:d,assignmentId:u,loadDocuments:l});case 8:return h=t.sent,f=h.children,p=r._StudentAssignmentPool._core.classroomContext._updateStudentAssignmentsCache({remoteStudentAssignments:f,assignmentCode:d}),f.length>0&&r.observeStudentsFolder({remoteStudentAssignments:f}).then((e=>{i._monitoredFolder=e})),t.abrupt("return",{items:p,total:p.length,loadNextPage:void 0});case 13:case"end":return t.stop()}}),t)})))()}}class PE{constructor(e,t){this._core=e,this._assetPool=t,this._assignmentInterface=new us(this._core),this._classroomsInterface=new _E(this._core),this._studentAssignmentsInterface=new Os(this._core),this._classroomPool=new Jo(this._core,"classroom"),this._classroomMemberPool=new Jo(this._core,"classroomMember")}get assignmentPool(){return this._assetPool}getClassroomById(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(ts(e,"id"),n=t._classroomsInterface,i=t._classroomPool,o=i.getLocalItemById(e)){r.next=11;break}return r.next=7,n.getClassroom(e);case 7:a=r.sent,s=i.createUpdateSession(),o=LE.updateRemoteItem(s,t._processRemoteClassroomItem(e,a)),s.commit();case 11:return r.abrupt("return",o);case 12:case"end":return r.stop()}}),r)})))()}getClassroomByCode(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(ts(e,"classCode"),!(n=t._classroomPool.toArray().find((t=>t.code===e)))){r.next=4;break}return r.abrupt("return",n);case 4:return r.abrupt("return",t.getClassroomById(e));case 5:case"end":return r.stop()}}),r)})))()}getClassrooms(){return new Uo(this._classroomPool,[new OE(this._classroomPool,this._classroomsInterface)])}getClassroomMembers(){return new Uo(this._classroomMemberPool,[new EE(this._classroomMemberPool,this._classroomsInterface)])}getAssignments(){const e=new SE(this._assetPool,this._assignmentInterface,this._core);return new Uo(this._assetPool,[e])}_getStudentAssignmentsSource(e){const t=new TE(this._assetPool,this._studentAssignmentsInterface);return new Uo(this._assetPool,[t],e)}getStudentAssignments(e){return this._getStudentAssignmentsSource(new _s(e))}cleanAssignmentName(e){return e.trimEnd()}createClassroom(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=vE.trace.getTracer("SAM"),r.abrupt("return",n.startActiveSpan("SAM::createClassroom",{},vE.context.active(),function(){var r=me(he().mark((function r(n){var i,o,a,s,c,l;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!((o=bE(e)).length>0)){r.next=4;break}throw n.end(),we.create(ge.BAD_REQUEST,JSON.stringify(o));case 4:if(!e.id){r.next=11;break}return r.next=7,t._classroomsInterface.createClassroomFromVirtual(e.id);case 7:(a=r.sent).virtualId=e.id,r.next=18;break;case 11:if(zn(s=(null===(i=e.name)||void 0===i?void 0:i.trim())||"")){r.next=15;break}throw n.end(),we.create(ge.BAD_REQUEST,"Invalid class name provided for the creation operation.");case 15:return r.next=17,t._classroomsInterface.createClassroom(Object.assign(Object.assign({},e),{name:s}));case 17:a=r.sent;case 18:return c=t._classroomPool.createMutationSession(),l=LE.updateRemoteItem(c,a),c.commit(),n.end(),r.abrupt("return",l);case 23:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()));case 2:case"end":return r.stop()}}),r)})))()}createAssignment(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s,c,l,u,d,p,h,f,m,g,v,y,b;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!((n=ls(e)).length>0)){r.next=3;break}throw we.create(ge.BAD_REQUEST,JSON.stringify(n));case 3:if(i=e.classroomId,!(o=t._classroomPool.toArray().find((t=>t._virtualId===e.classroomId)))){r.next=9;break}i=o.id,r.next=19;break;case 9:return r.next=11,t.getClassroomById(e.classroomId);case 11:if(!(a=r.sent).isVirtual){r.next=19;break}return r.next=15,t.createClassroom({id:a.id});case 15:if(s=r.sent,(i=s.id)!==e.classroomId){r.next=19;break}throw we.create(ge.BAD_REQUEST,"Cannot create an assignment with a virtual classroom.");case 19:if(zn(c=t.cleanAssignmentName(e.name))){r.next=22;break}throw we.create(ge.BAD_REQUEST,"Invalid name provided for the creation operation.");case 22:return l=e.templateIds,u=e.references,(d=Pe(e,["templateIds","references"])).name=c,h=null!=u?u:[],f=(p=null!=l?l:[]).length+h.length>0,m=d.status||$a.DRAFT,ic(d,"status")&&!f||(d.status=$a.DRAFT),r.next=31,t._assignmentInterface.createAssignment(Object.assign(Object.assign({},d),{classroomId:i}));case 31:if(g=r.sent,v=t._assetPool.createMutationSession(),y=xs.updateRemoteItem(v,g),v.commit(),b={},p.length>0&&(b.templateIds=p),h.length>0&&(b.references=h),!f){r.next=41;break}return r.next=41,t.updateAssignment(y.id,Object.assign(Object.assign({},b),{status:m}));case 41:return r.abrupt("return",y);case 42:case"end":return r.stop()}}),r)})))()}_assignAssignment(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._assetPool.getLocalItemById(e)){r.next=3;break}throw we.create(ge.NOT_FOUND,`Could not find assignment to assign with ID of "${e}"`);case 3:return r.abrupt("return",t.updateAssignment(e,{status:$a.ASSIGNED}));case 4:case"end":return r.stop()}}),r)})))()}getAssignmentByID(e,t,r){var n=this;return me(he().mark((function i(){var o,a,s,c;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(ts(e,"id"),r&&ts(r,"classroomId"),!(o=n._assetPool.getLocalItemById(e))){i.next=5;break}return i.abrupt("return",o);case 5:return i.next=7,n.validateStudentAssignmentsFilter(t,r);case 7:return a=i.sent,i.next=10,n._assignmentInterface.getAssignment(e,a);case 10:return s=i.sent,c=n._assetPool.createMutationSession(),o=xs.updateRemoteItem(c,s),c.commit(),i.abrupt("return",o);case 15:case"end":return i.stop()}}),i)})))()}getAssignmentByCode(e,t,r){var n=this;return me(he().mark((function i(){var o,a,s,c;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(ts(e,"code"),r&&ts(r,"classroomId"),!(o=n._assetPool.toArray().find((t=>t.code===e)))){i.next=5;break}return i.abrupt("return",o);case 5:return i.next=7,n.validateStudentAssignmentsFilter(t,r);case 7:return a=i.sent,i.next=10,n._assignmentInterface.getAssignmentByCode(e,a);case 10:return s=i.sent,c=n._assetPool.createMutationSession(),o=xs.updateRemoteItem(c,s),c.commit(),i.abrupt("return",o);case 15:case"end":return i.stop()}}),i)})))()}getStudentAssignmentById(e,t){var r=this;return me(he().mark((function n(){var i,o;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(i=r._assetPool.getLocalItemById(e))){n.next=3;break}return n.abrupt("return",i);case 3:return n.next=5,r._studentAssignmentsInterface.getStudentAssignment(e,t);case 5:return o=n.sent,n.abrupt("return",r._updateStudentAssignmentCache({remoteStudentAssignment:o}));case 7:case"end":return n.stop()}}),n)})))()}_discardAssignment(e){return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.discard();case 2:case"end":return t.stop()}}),t)})))()}_restoreAssignment(e){return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.restore();case 2:case"end":return t.stop()}}),t)})))()}_computeRemoteStudentAssignment({remoteStudentAssignment:e,assignmentId:t,assignmentCode:r}){return t&&(e.computedAssignmentId=t),r&&(e.computedAssignmentCode=r),e}_updateStudentAssignmentsCache(e){const t=e.remoteStudentAssignments,r=e.assignmentId,n=e.assignmentCode,i=t.map((e=>{const t={remoteStudentAssignment:e,assignmentCode:n,assignmentId:r||os(e)};return this._computeRemoteStudentAssignment(t)})),o=this._assetPool.createMutationSession(),a=ks.updateRemoteItems(o,i);return o.commit(),a}_computeRemoteStudentAssignmentFiles({remoteStudentAssignmentFiles:e,studentAssignmentId:t}){return[...e].map((e=>(e.computedStudentAssignmentId=t,e)))}_updateStudentAssignmentFilesCache(e){const t=e.remoteStudentAssignmentFiles,r=e.session,n=e.studentAssignmentId,i=this._computeRemoteStudentAssignmentFiles({remoteStudentAssignmentFiles:t,studentAssignmentId:n}),o=Wa.updateRemoteItems(r,i);return r.commit(),o}_updateStudentAssignmentCache({remoteStudentAssignment:e,assignmentCode:t}){return this._updateStudentAssignmentsCache({remoteStudentAssignments:[e],assignmentCode:t})[0]}_returnAssignment(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._studentAssignmentsInterface.return(e);case 2:return n=r.sent,r.abrupt("return",t._updateStudentAssignmentCache({remoteStudentAssignment:n}));case 4:case"end":return r.stop()}}),r)})))()}_startAssignment(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._studentAssignmentsInterface.start(e);case 2:return n=r.sent,r.abrupt("return",t._updateStudentAssignmentCache({remoteStudentAssignment:n}));case 4:case"end":return r.stop()}}),r)})))()}submitAssignment(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=e.studentAssignmentId,!e.assignmentId){r.next=6;break}return r.next=4,t.getAssignmentByID(e.assignmentId);case 4:i=r.sent,n=i.studentAssignments[0].id;case 6:if(n){r.next=8;break}throw we.create(ge.BAD_REQUEST,"Either studentAssignmentId or assignmentId is required to submit an assignment");case 8:return r.next=10,t._studentAssignmentsInterface.submit({studentAssignmentId:n,submissionId:e.submissionId,links:e.links});case 10:return o=r.sent,t._updateStudentAssignmentCache({remoteStudentAssignment:o}),r.abrupt("return",o);case 13:case"end":return r.stop()}}),r)})))()}updateStudentAssignmentFile(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(null!==(i=t["assignment:sourceAssets"])&&void 0!==i||(t["assignment:sourceAssets"]=[]),null!==(o=t["assignment:sourceTasks"])&&void 0!==o||(t["assignment:sourceTasks"]=[]),null!==(a=t["assignment:sourceTutorials"])&&void 0!==a||(t["assignment:sourceTutorials"]=[]),s=[{op:"add",path:"/assignment:sourceAssets",value:t["assignment:sourceAssets"]},{op:"add",path:"/assignment:sourceTasks",value:t["assignment:sourceTasks"]},{op:"add",path:"/assignment:sourceTutorials",value:t["assignment:sourceTutorials"]}],"string"!=typeof e){n.next=10;break}return n.next=7,r._core.hostAssetContext.getAssetWithCloudID(e);case 7:n.t0=n.sent,n.next=11;break;case 10:n.t0=e;case 11:return c=n.t0,n.next=14,c.patchAppMetadata(s);case 14:return n.abrupt("return",c);case 15:case"end":return n.stop()}}),n)})))()}validateAssignmentNameForCreate(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._validateAssignmentName(e,t);case 2:case"end":return n.stop()}}),n)})))()}validateStudentAssignmentsFilter(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e||e!==Xa.ANY){n.next=8;break}if(t){n.next=3;break}throw we.create(ge.BAD_REQUEST,"Cannot fetch specified assignment submission type without classroomId");case 3:return n.next=5,r.getClassroomMembership(t);case 5:if(n.sent.role!==Xg.STUDENT){n.next=8;break}throw we.create(ge.BAD_REQUEST,'Student role cannot request assignment submission type "ANY"');case 8:return n.abrupt("return",e);case 9:case"end":return n.stop()}}),n)})))()}validateAssignmentNameForUpdate(e,t,r){var n=this;return me(he().mark((function i(){return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n._validateAssignmentName(e,t,r);case 2:case"end":return i.stop()}}),i)})))()}_validateAssignmentName(e,t,r){var n=this;return me(he().mark((function i(){var o,a,s,c,l;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(0!==(o=e.trim()).length){i.next=3;break}throw we.create(ge.BAD_REQUEST,"The assignment name cannot be blank.");case 3:if(zn(o)){i.next=5;break}throw we.create(ge.BAD_REQUEST,"The assignment name is an invalid platform repo name.");case 5:if(!o.endsWith(".")){i.next=7;break}throw we.create(ge.BAD_REQUEST,"The assignment name cannot end with a period.");case 7:if(t){i.next=9;break}return i.abrupt("return");case 9:return i.next=11,n.getClassroomById(t);case 11:if(!i.sent.isVirtual){i.next=14;break}return i.abrupt("return");case 14:return a=n.getAssignments(),i.t0=a,i.next=18,n.getAssignmentOrder();case 18:return i.t1=i.sent,i.next=21,n.getAssignmentFilter({classroomId:t});case 21:return i.t2=i.sent,i.t3={},s=i.t0.getList.call(i.t0,i.t1,i.t2,i.t3),i.next=26,Bo(s);case 26:if(c=n._core._environment.getValue("LOCALE"),!(l=s.items.find((e=>e.name.toLocaleLowerCase(c)===o.toLocaleLowerCase(c))))){i.next=31;break}if(r&&l.id===r){i.next=31;break}throw we.create(ge.CONFLICT,"The assignment name must be unique within the classroom.");case 31:case"end":return i.stop()}}),i)})))()}_renameAssignment(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.getAssignmentByID(e);case 2:if(i=n.sent,n.prev=3,i.repositoryID){n.next=7;break}return n.next=7,i._load();case 7:return n.abrupt("return",i.rename(t));case 10:if(n.prev=10,n.t0=n.catch(3),!(n.t0 instanceof we)){n.next=14;break}throw n.t0;case 14:throw we.create(ge.INTERNAL_ERROR,`Could not rename asset "${e}"`);case 15:case"end":return n.stop()}}),n,null,[[3,10]])})))()}updateAssignment(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return ts(e,"assignmentId"),t.references,i=t.status,t.templateIds,o=Pe(t,["references","status","templateIds"]),n.next=4,r._getUpdatedAssignmentMaterials(e,t);case 4:return a=n.sent,s=o,a.shouldUpdateTemplates&&(s.templateIds=a.updatedTemplateIds),a.shouldUpdateReferences&&(s.referenceIds=a.updatedReferenceIds),c=[],ic(t,"name")&&(s.name=r.cleanAssignmentName(t.name),c.push(r._renameAssignment(e,s.name))),i===$a.ASSIGNED&&(s.status=i),c.push(r._updateAssignmentMetadata(e,s)),n.next=15,Promise.all(c);case 15:r._discardAssets(a.assetsToDiscard);case 16:case"end":return n.stop()}}),n)})))()}_updateAssignmentMetadata(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(0!==Object.keys(t).length){n.next=2;break}return n.abrupt("return");case 2:if(i=Object.entries(qa).reduce(((e,[r,n])=>{if(ic(t,r)){const i=t[r];i instanceof Date?e[n]=i.toISOString():e[n]="dueDate"!==r||i?i:""}return e}),{"repo:assetId":e}),0===(o=r._getUpdateAssignmentOps(i)).length){n.next=11;break}return n.next=7,r._assignmentInterface.patchAssignment(e,o);case 7:a=n.sent,s=r._assetPool.createMutationSession(),xs.updateRemoteItem(s,a),s.commit();case 11:case"end":return n.stop()}}),n)})))()}_getAssignmentMaterialsFolderAsset(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.getAssignmentByID(e);case 2:return n=r.sent,i=`${n.repoPath}/materials`,r.next=6,t._core.hostAssetContext.getAssetWithRepoPath(i,n.repositoryID);case 6:if(o=r.sent){r.next=9;break}throw we.create(ge.BAD_REQUEST,`Could not find materials folder with path of "${i}"`);case 9:return r.abrupt("return",o);case 10:case"end":return r.stop()}}),r)})))()}_getAssets(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.allSettled(e.map((e=>t._core.hostAssetContext.getAssetWithCloudID(e))));case 2:return r.abrupt("return",r.sent.map(((t,r)=>{if("fulfilled"===t.status)return t.value;throw we.wrapErrorIfNeeded(ge.INTERNAL_ERROR,`Failed to get asset with ID of "${e[r]}"`,t.reason)})));case 3:case"end":return r.stop()}}),r)})))()}_discardAssets(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(0!==e.length){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,t._getAssets(e);case 4:return n=r.sent,r.next=7,Promise.allSettled(n.map((e=>e.discard())));case 7:case"end":return r.stop()}}),r)})))()}_getUpdateAssignmentOps(e){const t=Object.entries(e).filter((([e])=>e.startsWith("assignment:"))).map((([e,t])=>({op:"replace",path:`/${e}`,value:t})));return t}_copyAssetsToMaterialsFolder(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(0!==t.length){n.next=2;break}return n.abrupt("return",[]);case 2:return n.next=4,r.getAssignmentByID(e);case 4:return i=n.sent,n.next=7,r._getAssets(t);case 7:return o=n.sent,a=o.map(((e,t)=>{const n=e.extension?`.${e.extension}`:"";return e._copyWithDestMetadata(i.repositoryID,`${i.repoPath}/materials`,`${i.name} ${r._getFormattedCreatedDateHelper({includeFormattedDate:!0,date:new Date})} ${t}${n}`)})),n.next=11,Promise.allSettled(a);case 11:return s=n.sent.map(((e,r)=>{if("fulfilled"===e.status)return e.value;throw we.wrapErrorIfNeeded(ge.INTERNAL_ERROR,`Failed to copy asset with ID of "${t[r]}"`,e.reason)})),n.abrupt("return",s.map((e=>e.id)));case 13:case"end":return n.stop()}}),n)})))()}_getFormattedCreatedDateHelper({includeFormattedDate:e,date:t}){const r=this._core._environment.getValue("LOCALE"),n=e?{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",fractionalSecondDigits:3,hourCycle:"h24"}:{hour:"numeric",minute:"numeric",second:"numeric"};return new Intl.DateTimeFormat(r,n).format(t).replace(/[/:]/g,".")}_determineAssetDifferences(e,t,r){var n=this;return me(he().mark((function i(){var o,a,s,c;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.getAssignmentByID(e);case 2:if(o=i.sent,r){i.next=5;break}return i.abrupt("return",{assetsToCopy:[],assetsToKeep:[],assetsToDiscard:o[t]});case 5:return a=o[t].filter((e=>!r.includes(e))),s=r.filter((e=>!o[t].includes(e))),c=o[t].filter((e=>r.includes(e))),i.abrupt("return",{assetsToCopy:s,assetsToKeep:c,assetsToDiscard:a});case 9:case"end":return i.stop()}}),i)})))()}_getUpdatedAssignmentMaterials(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l,u,d,p,h,f,m,g,v,y,b,_;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(a=ic(t,"templateIds"),s=ic(t,"references"),c={updatedTemplateIds:[],updatedReferenceIds:[],assetsToDiscard:[],shouldUpdateTemplates:a,shouldUpdateReferences:s},l=[],u=0,d=[],!a){n.next=14;break}return n.next=9,r._determineAssetDifferences(e,"templateIds",t.templateIds);case 9:p=n.sent,c.assetsToDiscard.push(...p.assetsToDiscard),l.push(...p.assetsToCopy),c.updatedTemplateIds.push(...p.assetsToKeep),u=l.length;case 14:if(!s){n.next=23;break}return h=null!==(o=null===(i=t.references)||void 0===i?void 0:i.reduce(((e,t)=>("string"==typeof t?e.referenceIds.push(t):e.referencesToImport.push(t),e)),{referenceIds:[],referencesToImport:[]}))&&void 0!==o?o:{referenceIds:[],referencesToImport:[]},f=h.referenceIds,m=h.referencesToImport,n.next=18,r._determineAssetDifferences(e,"referenceIds",f);case 18:g=n.sent,c.assetsToDiscard.push(...g.assetsToDiscard),l.push(...g.assetsToCopy),c.updatedReferenceIds.push(...g.assetsToKeep),m.length>0&&d.push(me(he().mark((function t(){var n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=[],t.next=3,r.importNewReferencesForAssignment(e,m);case 3:t.sent.forEach((e=>{"fulfilled"===e.status&&n.push(e.value.id)})),c.updatedReferenceIds.push(...n);case 6:case"end":return t.stop()}}),t)}))));case 23:return v=[],d.push(me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r._copyAssetsToMaterialsFolder(e,l);case 2:v=t.sent;case 3:case"end":return t.stop()}}),t)})))),n.next=27,Promise.all(d.map((e=>e())));case 27:return y=[v.slice(0,u),v.slice(u)],b=y[0],_=y[1],c.updatedTemplateIds.push(...b),c.updatedReferenceIds.push(..._),n.abrupt("return",c);case 31:case"end":return n.stop()}}),n)})))()}importNewReferencesForAssignment(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._getAssignmentMaterialsFolderAsset(e);case 2:return i=n.sent,n.abrupt("return",Promise.allSettled(t.map(function(){var e=me(he().mark((function e(t){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.importFile(t.content,t.name,t.mediaType,!0,0,!1));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())));case 4:case"end":return n.stop()}}),n)})))()}getStudentAssignmentFiles({studentDirectoryId:e,order:t}){var r=this;return me(he().mark((function n(){var i,o;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return ts(e,"studentDirectoryId"),n.next=3,r._core.hostAssetContext.getAssetWithCloudID(e);case 3:return i=n.sent,o=i.children.getList(t||Xi.default,new As,{loadAllPages:!0}),n.next=7,Bo(o);case 7:return n.abrupt("return",o.items);case 8:case"end":return n.stop()}}),n)})))()}refreshClassroomCodes(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return ts(e,"classIds"),r.next=3,Promise.allSettled(e.map((e=>t._classroomsInterface.refreshClassroomCode(e))));case 3:return n=r.sent,i=n.filter((e=>"fulfilled"===e.status)).map((e=>e.value)),r.next=7,Promise.allSettled(i.map(function(){var e=me(he().mark((function e({classroomId:r,classcode:n}){var i;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._classroomsInterface.getClassroom(r);case 2:return(i=e.sent).classCode=n,e.abrupt("return",i);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 7:o=r.sent,a=o.filter((e=>"fulfilled"===e.status)).map((e=>e.value)),s=t._classroomPool.createMutationSession(),LE.updateRemoteItems(s,a),s.commit();case 12:case"end":return r.stop()}}),r)})))()}deleteClassrooms(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(ts(e,"ids"),!Array.isArray(e)){r.next=6;break}return r.next=4,Promise.all(e.map((e=>t.deleteClassrooms(e))));case 4:r.next=20;break;case 6:return r.next=8,t.getClassroomById(e);case 8:if(!(n=r.sent).isVirtual){r.next=14;break}return r.next=12,t._classroomsInterface.deleteVirtualClassroom(e);case 12:r.next=16;break;case 14:return r.next=16,t._classroomsInterface.deleteClassroom(e);case 16:(i=t._classroomPool.createUpdateSession()).queueDiscardedItem(n),i.commit(),t._classroomPool.removeLocalItems([n.id]);case 20:case"end":return r.stop()}}),r)})))()}updateClassroom(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return ts(e,"classroomId"),n.next=3,r.getClassroomById(e);case 3:if(a=n.sent,null!==(i=t.name)&&void 0!==i||(t.name=a.name),!a.isVirtual){n.next=12;break}return n.next=8,r._classroomsInterface.updateClassroomFromVirtual(a.id,t);case 8:(o=n.sent).virtualId=a.id,n.next=15;break;case 12:return n.next=14,r._classroomsInterface.updateClassroom(e,t);case 14:o=n.sent;case 15:s=r._classroomPool.createMutationSession(),LE.updateRemoteItem(s,r._processRemoteClassroomItem(e,o)),s.commit();case 18:case"end":return n.stop()}}),n)})))()}_processRemoteClassroomItem(e,t){const r=this._classroomPool.getLocalItemById(e);return(null==r?void 0:r._virtualId)&&(t.virtualId=r._virtualId),t}getClassroomMembership(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return ts(e,"classroomId"),r.abrupt("return",t._classroomsInterface.getMembership(e));case 2:case"end":return r.stop()}}),r)})))()}blockStudentFromClassroom(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return ts(e,"classroomId"),ts(t,"studentId"),n.abrupt("return",r._classroomsInterface.blockStudent(e,t));case 3:case"end":return n.stop()}}),n)})))()}unblockStudentFromClassroom(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return ts(e,"classroomId"),ts(t,"studentId"),n.abrupt("return",r._classroomsInterface.unblockStudent(e,t));case 3:case"end":return n.stop()}}),n)})))()}removeStudentFromClassroom(e,t){var r=this;return me(he().mark((function n(){var i,o,a;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return ts(e,"classroomId"),ts(t,"studentId"),n.next=4,r._classroomsInterface.removeStudent(e,t);case 4:return i=n.sent,(o=r._classroomMemberPool.getLocalItemById(is(e,t)))&&((a=r._classroomMemberPool.createUpdateSession()).queueDiscardedItem(o),a.commit(),r._classroomMemberPool.removeLocalItems([is(e,t)])),n.abrupt("return",i);case 8:case"end":return n.stop()}}),n)})))()}getClassroomOrder(e="ascending",t="name"){return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.resolve().then((function(){return nv}));case 2:return n=r.sent,i=n.default,r.abrupt("return",new i(e,t));case 5:case"end":return r.stop()}}),r)})))()}getAssignmentOrder(e="ascending",t="name"){return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.resolve().then((function(){return mv}));case 2:return n=r.sent,i=n.default,r.abrupt("return",new i(e,t));case 5:case"end":return r.stop()}}),r)})))()}getAssignmentFilter(e={}){return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.resolve().then((function(){return gv}));case 2:return r=t.sent,n=r.default,t.abrupt("return",new n(e));case 5:case"end":return t.stop()}}),t)})))()}getStudentAssignmentOrder(e="ascending",t="studentDisplayName"){return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.resolve().then((function(){return ys}));case 2:return n=r.sent,i=n.default,r.abrupt("return",new i(e,t));case 5:case"end":return r.stop()}}),r)})))()}getStudentAssignmentFilter(e){return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.resolve().then((function(){return vv}));case 2:return r=t.sent,n=r.default,t.abrupt("return",new n(e));case 5:case"end":return t.stop()}}),t)})))()}getStudentAssignmentFileOrder(e="ascending",t="name"){return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.resolve().then((function(){return _v}));case 2:return n=r.sent,i=n.default,r.abrupt("return",new i(e,t));case 5:case"end":return r.stop()}}),r)})))()}getStudentAssignmentFileFilter(e,t){return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.resolve().then((function(){return Ev}));case 2:return n=r.sent,i=n.default,r.abrupt("return",new i(e,t));case 5:case"end":return r.stop()}}),r)})))()}getClassroomMemberOrder(e="ascending",t="name"){return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.resolve().then((function(){return cv}));case 2:return n=r.sent,i=n.default,r.abrupt("return",new i(e,t));case 5:case"end":return r.stop()}}),r)})))()}getClassroomMemberFilter(e){return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.resolve().then((function(){return uv}));case 2:return r=t.sent,n=r.default,t.abrupt("return",new n(e));case 5:case"end":return t.stop()}}),t)})))()}}Ie([Dt,At,Ae(0,Ze)],PE.prototype,"getClassroomById",null),Ie([Dt,At,Ae(0,Ze)],PE.prototype,"getClassroomByCode",null),Ie([Ue],PE.prototype,"getClassrooms",null),Ie([Ue],PE.prototype,"getClassroomMembers",null),Ie([Ue],PE.prototype,"getAssignments",null),Ie([Dt,At],PE.prototype,"createClassroom",null),Ie([Dt,At],PE.prototype,"createAssignment",null),Ie([Dt,At,Ae(0,Ze)],PE.prototype,"getAssignmentByID",null),Ie([Dt,At,Ae(0,Ze)],PE.prototype,"getAssignmentByCode",null),Ie([Dt,At,Ae(0,Ze)],PE.prototype,"getStudentAssignmentById",null),Ie([At],PE.prototype,"_discardAssignment",null),Ie([At],PE.prototype,"_restoreAssignment",null),Ie([At],PE.prototype,"_returnAssignment",null),Ie([At],PE.prototype,"_startAssignment",null),Ie([At],PE.prototype,"submitAssignment",null),Ie([At],PE.prototype,"_validateAssignmentName",null),Ie([At],PE.prototype,"_renameAssignment",null),Ie([At],PE.prototype,"updateAssignment",null),Ie([At],PE.prototype,"_updateAssignmentMetadata",null),Ie([At],PE.prototype,"refreshClassroomCodes",null);var IE=Object.freeze({__proto__:null,default:PE});class AE extends Pt{_getMelvilleUrl(e){return`https://${this._core._environment.endpoints.MELVILLE_HOST}${e}`}getCustomModels(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s,c,l;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(null==e?void 0:e.limit)||void 0!==(null==e?void 0:e.start)){r.next=2;break}throw we.create(ge.BAD_REQUEST,"[Melville] If limit is provided, start must also be provided.");case 2:return e=CE(e),n=st(t._getMelvilleUrl("/api/v1/custom-models"),e),i=$c(n),o=le(i,2),a=o[0],s=o[1],c={"Cache-Control":"no-cache, no-store, max-age=0"},l=Object.assign(Object.assign({},c),s),r.next=9,t._getResponse(a,{headers:l});case 9:return r.abrupt("return",r.sent);case 10:case"end":return r.stop()}}),r)})))()}getCustomModelById(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._getResponse(t._getMelvilleUrl(`/api/v1/custom-models/${e}`),{headers:{"Content-Type":"application/json"}});case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}getCustomModelsUsingPageLink(e){var t=this;return me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=$c(t._getMelvilleUrl(e.href)),i=le(n,2),o=i[0],a=i[1],r.abrupt("return",t._getResponse(o,{headers:a}));case 2:case"end":return r.stop()}}),r)})))()}createTrainingSet(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=e["firefly#cme"]||e["firefly#ffmodel"],e.name){r.next=3;break}throw we.create(ge.BAD_REQUEST,"Invalid argument: missing required name");case 3:if(e.projectId){r.next=5;break}throw we.create(ge.BAD_REQUEST,"Invalid argument: missing required projectId. The parent must be a project");case 5:if(n.schemaVersion){r.next=7;break}throw we.create(ge.BAD_REQUEST,"Invalid argument: missing required schemaVersion.");case 7:if(n.trainingMode){r.next=9;break}throw we.create(ge.BAD_REQUEST,"Invalid argument: missing required trainingMode.");case 9:return i={name:e.name,parent_assetId:e.projectId,roles:[{type:"cm_training_set"}],"firefly#cme":Object.assign(Object.assign({},n),{version:n.schemaVersion})},r.next=12,t._core.getLibraryContext();case 12:return o=r.sent,r.abrupt("return",o._createLibrary(i));case 14:case"end":return r.stop()}}),r)})))()}getTrainingSetById(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._core.getLibraryContext();case 2:return n=r.sent,r.abrupt("return",n._getLibraryRemotely(e,{selectors:["details"]}));case 4:case"end":return r.stop()}}),r)})))()}createCustomModel(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=3,t._doPost(t._getMelvilleUrl("/api/v1/custom-models"),{"Content-Type":"application/json"},JSON.stringify(e),[201]);case 3:return n=r.sent,r.abrupt("return",n.json());case 5:case"end":return r.stop()}}),r)})))()}updateCustomModel(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=`/api/v1/custom-models/${e}`,n.next=3,r._doPut(r._getMelvilleUrl(i),{"Content-Type":"application/json"},JSON.stringify(t),[204,201,200]);case 3:case"end":return n.stop()}}),n)})))()}deleteCustomModel(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=`/api/v1/custom-models/${e}`,r.next=3,t._doDelete(t._getMelvilleUrl(n),{"Content-Type":"application/json"},[204]);case 3:case"end":return r.stop()}}),r)})))()}discardCustomModel(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doPost(t._getMelvilleUrl(`/api/v1/custom-models/${e}/discard`),{"Content-Type":"application/json"},"",[204]);case 2:case"end":return r.stop()}}),r)})))()}restoreCustomModel(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._doPost(t._getMelvilleUrl(`/api/v1/custom-models/${e}/restore`),{"Content-Type":"application/json"},"",[204]);case 2:case"end":return r.stop()}}),r)})))()}publish(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=`/api/v1/custom-models/${e}/publish`,r.next=3,t._doPost(t._getMelvilleUrl(n),void 0,void 0,[200]);case 3:return i=r.sent,r.next=6,i.json();case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r)})))()}unpublish(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=`/api/v1/custom-models/${e}/unpublish`,r.next=3,t._doPost(t._getMelvilleUrl(n),void 0,void 0,[200]);case 3:return i=r.sent,r.next=6,i.json();case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r)})))()}}const CE=e=>Object.fromEntries(Object.entries(e).map((([e,t])=>Array.isArray(t)?[e,t.sort()]:[e,t])).sort());function kE(e){return e.isCustomModel}class DE extends ua{constructor(e,t,r){super(e,t,r),this._core=e,this.isCustomModel=!0,this._displayName="",this._conceptId="",this._trainingMode="",this._compression="",this._schemaVersion="",this._customModelInterface=new AE(this._core)}trainingSet(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.getLibraryContext();case 2:return r=t.sent,t.next=5,r.getLibraryByAssetId(e.trainingSetInfo.id);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)})))()}permanentlyDelete(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._customModelInterface.deleteCustomModel(e.id);case 2:r=e._core.hostAssetContext._assetPool,(n=r.createUpdateSession("Delete Custom Model")).queueDiscardedItem(e),n.commit(),r.removeLocalItems([e.id]);case 7:case"end":return t.stop()}}),t)})))()}discard(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isDiscarded){t.next=2;break}throw we.create(ge.INVALID_OPERATION,"Asset is already discarded");case 2:return t.next=4,e._customModelInterface.discardCustomModel(e.id);case 4:return t.next=6,e._core.getCustomModelContext();case 6:return r=t.sent,n=r._assetPool.createUpdateSession("discard custom model"),t.next=10,e._core.getAssetContext();case 10:t.sent._adobeAssetUpdater.updateLocalItem(n,e,{"repo:state":"DISCARDED"}),n.commit();case 13:case"end":return t.stop()}}),t)})))()}restore(){var e=this;return me(he().mark((function t(){var r,n,i;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isDiscarded){t.next=2;break}throw we.create(ge.INVALID_OPERATION,"Cannot restore an asset that is not discarded");case 2:return t.next=4,e._core.getAssetContext();case 4:return r=t.sent,t.next=7,e._customModelInterface.restoreCustomModel(e.id);case 7:n=e._core._getAssetPool(),i=n.createUpdateSession("restore custom model"),r._adobeAssetUpdater.updateLocalItem(i,e,{"repo:state":"ACTIVE"}),i.commit();case 11:case"end":return t.stop()}}),t)})))()}publish(){var e=this;return me(he().mark((function t(){var r,n,i;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("published"!==e.publishedState){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e._customModelInterface.publish(e.id);case 4:return r=t.sent,t.next=7,e._core.getCustomModelContext();case 7:return n=t.sent,i=e._core.hostAssetContext._assetPool.createUpdateSession(),n._customModelUpdaterMelville.updateLocalItem(i,e,r),i.commit(),t.abrupt("return");case 12:case"end":return t.stop()}}),t)})))()}unpublish(){var e=this;return me(he().mark((function t(){var r,n,i;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("unpublished"!==e.publishedState){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e._customModelInterface.unpublish(e.id);case 4:return r=t.sent,t.next=7,e._core.getCustomModelContext();case 7:return n=t.sent,i=e._core.hostAssetContext._assetPool.createUpdateSession(),n._customModelUpdaterMelville.updateLocalItem(i,e,r),i.commit(),t.abrupt("return");case 12:case"end":return t.stop()}}),t)})))()}get displayName(){return this._displayName}get inferenceReady(){return this.appMetadata.data["cme:inferenceReady"]}get publishedState(){return this.appMetadata.data["cme:publishedState"]}get category(){return this.appMetadata.data["cme:category"]}get signature(){return this.appMetadata.data["cme:signature"]}get baseModelName(){var e;return null===(e=this.appMetadata.data["cme:baseModel"])||void 0===e?void 0:e.name}get baseModelVersion(){var e;return null===(e=this.appMetadata.data["cme:baseModel"])||void 0===e?void 0:e.version}get trainingInfo(){return{trainingState:this.appMetadata.data["cme:training"].state,progress:this.appMetadata.data["cme:training"].progress,jobId:this.appMetadata.data["cme:training"].jobId,errorMessage:this.appMetadata.data["cme:training"].errorMessage,errorCode:this.appMetadata.data["cme:training"].errorCode,links:this.appMetadata.data["cme:training"].links}}get trainingSetInfo(){return{id:this.appMetadata.data["cme:trainingSet"]["repo:assetId"],version:this.appMetadata.data["cme:trainingSet"]["repo:version"]}}get samplePrompt(){return this.appMetadata.data["cme:samplePrompt"]}get renditionUrl(){return super.getRenditionURL(Zn)}get conceptId(){return this._conceptId}get trainingMode(){return this._trainingMode}get baseModelSuperclass(){return this._baseModelSuperclass}get deltaWeightsID(){return this._deltaWeightsID}get contentType(){return this._contentType}get compression(){return this._compression}get schemaVersion(){return this._schemaVersion}get hasDefaultGeneratorPermissions(){return this.hasPermission(Br.Read)&&!this.hasPermission(Br.Write)&&!this.hasPermission(Br.WriteComment)}update(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(n=Object.keys(e).filter((e=>Xr.includes(e)))).length){r.next=3;break}throw we.create(ge.UNSUPPORTED,`Update keys are unsupported: [${n}]. Use CustomModel.patchAppMetadata`);case 3:return r.next=5,t._core.getCustomModelContext();case 5:return i=r.sent,r.next=8,i.updateCustomModel(t.id,e);case 8:case"end":return r.stop()}}),r)})))()}patchAppMetadata(e){const t=e.map((e=>e.path)).filter((e=>!Xr.includes(e.substring(1))));if(t.length)throw we.create(ge.UNSUPPORTED,`Patch paths are unsupported: [${t}]. Use "CustomModel.update"`);return super.patchAppMetadata(e)}}Ie([Ue,$e],DE.prototype,"trainingSet",null),Ie([$e],DE.prototype,"displayName",null),Ie([$e],DE.prototype,"inferenceReady",null),Ie([$e],DE.prototype,"publishedState",null),Ie([$e],DE.prototype,"category",null),Ie([$e],DE.prototype,"baseModelName",null),Ie([$e],DE.prototype,"baseModelVersion",null),Ie([$e],DE.prototype,"trainingInfo",null),Ie([$e],DE.prototype,"trainingSetInfo",null),Ie([$e],DE.prototype,"samplePrompt",null),Ie([$e],DE.prototype,"renditionUrl",null),Ie([$e],DE.prototype,"conceptId",null),Ie([$e],DE.prototype,"trainingMode",null),Ie([$e],DE.prototype,"deltaWeightsID",null),Ie([$e],DE.prototype,"contentType",null),Ie([$e],DE.prototype,"compression",null),Ie([$e],DE.prototype,"schemaVersion",null);const NE=new Di({localItemType:DE,remoteIdProperty:"repo:assetId",propertyUpdater:new Hi({"_appMetadata._data":{name:"application_metadata",format:"object_subset",set:(e,t)=>{t.appMetadata._mergeData(e)}},_displayName:{name:"repo:name",format:{parse:e=>{const t=e.lastIndexOf(".");return e.slice(0,t)},isEqual:tn}},_conceptId:{name:"firefly#ffmodel",format:{parse:e=>e.conceptId,isEqual:tn}},_contentType:{name:"firefly#ffmodel",format:{parse:e=>e.contentType,isEqual:tn}},_trainingMode:{name:"firefly#ffmodel",format:{parse:e=>e.trainingMode,isEqual:tn}},_baseModelSuperclass:{name:"firefly#ffmodel",format:{parse:e=>e.baseModelSuperclass,isEqual:tn}},_deltaWeightsID:{name:"firefly#ffmodel",format:{parse:e=>e.deltaWeightsID,isEqual:tn}},_compression:{name:"firefly#ffmodel",format:{parse:e=>e.compression,isEqual:tn}},_permissions:{get:function(e){return void 0!==e.asset_acl?Ur(e.asset_acl):Ni},format:"number"},_schemaVersion:{name:"firefly#ffmodel",format:{parse:e=>e.schemaVersion,isEqual:tn}},__links:{name:"_links",format:"object"},_name:"repo:name",_path:"repo:path",_created:{name:"repo:createDate",format:"date_as_number"},_modified:{name:"repo:modifyDate",format:"date_as_number"},_createdBy:"repo:createdBy",_version:"version",_etag:"repo:etag",_storageRegion:"storage:region",_size:{name:"repo:size",format:"number"}})});class RE extends zi{constructor(e={}){const t=e.trainingSetId,r=e.generatorOnly;super(Pe(e,["trainingSetId","generatorOnly"])),this._trainingSetId=t,this._generatorOnly=r}matches(e){return!!kE(e)&&(!this._trainingSetId||this._trainingSetId===e.trainingSetInfo.id)&&!(this._generatorOnly&&!e.hasDefaultGeneratorPermissions)&&super.matches(e)}get hash(){return[this._trainingSetId?`trainingSetId:${this._trainingSetId}`:void 0,this._generatorOnly?"generator_only":void 0].filter((e=>e)).join(":")}getRelationToFilter(e){const t=super.getRelationToFilter(e);return"disjoint"===t||this._trainingSetId&&e._trainingSetId&&this._trainingSetId!==e._trainingSetId||!!this._generatorOnly!=!!e._generatorOnly?"disjoint":t}}class ME{constructor(e,t,r){this._assetPool=e,this._core=t,this._libraryId=r}loadPage(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._loadPage();case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}_loadPage(){var e=this;return me(he().mark((function t(){var r,n,i,o,a,s,c,l;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.getLibraryContext();case 2:return r=t.sent,t.next=5,r._libraryInterface.getLibraryData(e._libraryId);case 5:if(n=t.sent,i=e._core._environment.getValue("USS_LIST_UPDATE_LATENCY"),o=Date.now()-i,a=e._assetPool.createLoaderUpdateSession(o),r._libraryUpdater.updateRemoteItem(a,n),a.commit(),s=[],!n.roles.some((e=>"cm_training_set"===e.type))){t.next=19;break}if(c=n.custom_models){t.next=16;break}return t.abrupt("return",{items:s,total:0});case 16:l=e._assetPool.createLoaderUpdateSession(o),s=NE.updateRemoteItems(l,c),l.commit();case 19:return t.abrupt("return",{items:s,total:s.length});case 20:case"end":return t.stop()}}),t)})))()}}class jE extends ua{constructor(e,t,r){super(e,t,r),this._core=e,this.isLibrary=!0,this._libraryInterface=new qc(this._core),this._libraryDataLoadInfo={state:"NOT_LOADED"},this._type="application/vnd.adobe.library+dcx",this._needsRepoMetadata=!0,_i.manageLazyLoading(this,[{event:Sg,fetchData:this._refreshEditingRestricted}])}get customModelInfo(){return this._populateLibraryDataIfNotLoading(),this._customModelInfo}get _libraryLoaded(){return"LOADED"===this._libraryDataLoadInfo.state}_setLibraryLoadState(e){if(e!==this._libraryDataLoadInfo.state)if(this._libraryDataLoadInfo.state=e,"LOADED"===e)this._libraryDataLoadInfo.resolve&&this._libraryDataLoadInfo.resolve();else if("LOADING"===e){let e;this._libraryDataLoadInfo.promise=new Promise((t=>{e=t})),this._libraryDataLoadInfo.resolve=e}else"NOT_LOADED"===e&&(this._libraryDataLoadInfo.resolve&&this._libraryDataLoadInfo.resolve(),this.emit(xg))}_waitForLibraryLoad(e=!1){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t._populateLibraryDataIfNotLoading(),r.next=3,t._libraryDataLoadInfo.promise;case 3:if(!e||t._libraryLoaded){r.next=6;break}return r.next=6,t._waitForLibraryLoad(!1);case 6:return r.abrupt("return",t._libraryDataLoadInfo.promise);case 7:case"end":return r.stop()}}),r)})))()}_load({repoMetadata:e,appMetadata:t,effectivePermission:r}={}){var n=()=>super._load,i=this;return me(he().mark((function o(){return he().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,n().call(i,{repoMetadata:e,appMetadata:t,effectivePermission:r});case 2:i._needsRepoMetadata=!1,i._setLibraryLoadState("NOT_LOADED");case 4:case"end":return o.stop()}}),o)})))()}get elementsCount(){return this._populateLibraryDataIfNotLoading(),this._elementsCount}get displayName(){return this._populateLibraryDataIfNotLoading(),this._displayName}get roles(){return this._populateLibraryDataIfNotLoading(),this._libraryRoles}get renditionGrid(){return this._populateLibraryDataIfNotLoading(),this._renditionGridTiles}setRoles(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={roles:Array.isArray(e)?e:[e]},r.next=3,t._libraryInterface.updateMetadata(t.id,n);case 3:return t._setLibraryLoadState("NOT_LOADED"),r.next=6,t._populateLibraryDataIfNotLoading();case 6:case"end":return r.stop()}}),r)})))()}get isBookmarked(){return this._populateLibraryDataIfNotLoading(),this._libraryLoaded?!!this._bookmark:void 0}get _isPublic(){return this._libraryLoaded?"public"===this._ownership:void 0}get ownership(){return this._populateLibraryDataIfNotLoading(),this._ownership}getCustomModels(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null===(r=e.roles)||void 0===r?void 0:r.filter((e=>"cm_training_set"===e.type))){t.next=2;break}throw we.create(ge.INVALID_OPERATION,"Can only get custom models from training set libraries");case 2:return n=e._core._getAssetPool(),t.abrupt("return",new Uo(n,[new ME(n,e._core,e.id)],new RE({trainingSetId:e.id})));case 4:case"end":return t.stop()}}),t)})))()}get libraryManifestId(){return this._populateLibraryDataIfNotLoading(),this._legacyLibraryId}move(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t.moveLibrary(e));case 1:case"end":return r.stop()}}),r)})))()}duplicate(e){var t=()=>super.duplicate,r=this;return me(he().mark((function n(){var i,o;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(r.ancestorIDs&&r.ancestorIDs.length>0)){n.next=2;break}return n.abrupt("return",t().call(r,e));case 2:if(!r._parentAssetId){n.next=12;break}return n.next=5,r._core.getAssetContext();case 5:return i=n.sent,n.next=8,i.getAssetWithCloudID(r._parentAssetId);case 8:return o=n.sent,n.next=11,r._copy(o,e);case 11:return n.abrupt("return",n.sent);case 12:return n.abrupt("return",Promise.reject(we.create(ge.BAD_REQUEST,"Library.duplicate() requires at least one of { this.ancestorIDs, this._parentAssetId } to be defined.")));case 13:case"end":return n.stop()}}),n)})))()}moveLibrary(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._libraryInterface.moveLibrary(r.cloudID,e.cloudID,t);case 2:return i=n.sent,n.next=5,r._core.getAssetContext();case 5:return o=n.sent,a=o._assetPool.createUpdateSession("move library"),n.next=9,r._core.getLibraryContext();case 9:s=n.sent,i.library_urn!==r.id?a.queueDiscardedItem(r):(s._libraryUpdater.updateLocalItem(a,r,i),r._setLibraryLoadState("LOADED")),a.commit();case 12:case"end":return n.stop()}}),n)})))()}rename(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._libraryInterface.updateMetadata(t.id,{name:e});case 2:t._setLibraryLoadState("NOT_LOADED");case 3:case"end":return r.stop()}}),r)})))()}discard(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isDiscarded){t.next=2;break}throw we.create(ge.INVALID_OPERATION,"Asset is already discarded");case 2:return t.next=4,e._libraryInterface.discardLibrary(e.cloudID);case 4:return t.next=6,e._core.getLibraryContext();case 6:return r=t.sent,n=r._assetPool.createUpdateSession("discard library"),t.next=10,e._core.getAssetContext();case 10:t.sent._adobeAssetUpdater.updateLocalItem(n,e,{"repo:state":"DISCARDED"}),n.commit();case 13:case"end":return t.stop()}}),t)})))()}permanentlyDelete(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._libraryInterface.permanentlyDeleteLibrary(e.cloudID);case 2:return t.next=4,e._core.getLibraryContext();case 4:r=t.sent,(n=r._assetPool.createUpdateSession("permanently delete library")).queueDiscardedItem(e),n.commit();case 8:case"end":return t.stop()}}),t)})))()}restore(){var e=this;return me(he().mark((function t(){var r,n,i;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isDiscarded){t.next=2;break}throw we.create(ge.INVALID_OPERATION,"Cannot restore an asset that is not discarded");case 2:return t.next=4,e._core.getAssetContext();case 4:return r=t.sent,t.next=7,e._libraryInterface.restoreLibrary(e.cloudID);case 7:n=e._core._getAssetPool(),i=n.createUpdateSession("restore library"),r._adobeAssetUpdater.updateLocalItem(i,e,{"repo:state":"ACTIVE"}),i.commit();case 11:case"end":return t.stop()}}),t)})))()}_copy(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r.copyLibrary(e,t));case 1:case"end":return n.stop()}}),n)})))()}copyLibrary(e,t,r){var n=this;return me(he().mark((function i(){var o,a,s,c,l;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n._libraryInterface.copyLibrary(n.cloudID,t,null==e?void 0:e.cloudID,r);case 2:return o=i.sent,a=n._core._getAssetPool(),s=a.createUpdateSession("copy library"),i.next=7,n._core.getLibraryContext();case 7:return c=i.sent,(l=c._libraryUpdater.updateRemoteItem(s,o))._setLibraryLoadState("LOADED"),s.commit(),i.abrupt("return",l);case 12:case"end":return i.stop()}}),i)})))()}bookmark(){var e=this;return me(he().mark((function t(){var r,n,i,o,a,s;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._waitForLibraryLoad(!0);case 2:if(!e.isBookmarked){t.next=4;break}return t.abrupt("return");case 4:if(r={},!e._isPublic){t.next=9;break}return t.abrupt("return",Promise.reject("Bookmarking public libraries not implemented."));case 9:r={id:e._legacyLibraryId,type:"collab",urn:e.cloudID};case 10:return t.next=12,e._libraryInterface.bookmarkLibraries([r]);case 12:return n=t.sent,i=n.bookmarks,o=i.find((t=>t.id===e._legacyLibraryId)),t.next=17,e._core.getLibraryContext();case 17:a=t.sent,s=a._assetPool.createUpdateSession("bookmark library"),a._libraryUpdater.updateLocalItem(s,e,{bookmark:o}),s.commit();case 21:case"end":return t.stop()}}),t)})))()}unbookmark(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._waitForLibraryLoad(!0);case 2:if(n=null===(r=e._bookmark)||void 0===r?void 0:r.id){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,e._libraryInterface.unbookmarkLibrary(n);case 7:return t.next=9,e._core.getLibraryContext();case 9:i=t.sent,o=i._assetPool.createUpdateSession("unbookmark library"),i._libraryUpdater.updateLocalItem(o,e,{bookmark:void 0}),o.commit();case 13:case"end":return t.stop()}}),t)})))()}_populateLibraryDataIfNotLoading(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("NOT_LOADED"!==e._libraryDataLoadInfo.state){t.next=13;break}return e._setLibraryLoadState("LOADING"),t.next=4,e._core.getLibraryContext();case 4:return r=t.sent,t.next=7,e._libraryInterface.getLibraryData(e.id,{isDiscarded:e.isDiscarded});case 7:n=t.sent,i=e._core._getAssetPool(),o=i.createUpdateSession(),r._libraryUpdater.updateLocalItem(o,e,n),e._setLibraryLoadState("LOADED"),o.commit();case 13:case"end":return t.stop()}}),t)})))()}get isEditingRestricted(){return this._isEditingRestricted}get _isCCIProjectLibrary(){var e,t;return null!==(t=this.ownership&&"team"===this.ownership&&"user"===this.storageAssignee.type&&(null===(e=this.repoPath)||void 0===e?void 0:e.startsWith("/projects/")))&&void 0!==t&&t}setEditingRestricted(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._ensureLink(tt.AC_POLICY);case 2:return n.next=4,r._getAssetInterface();case 4:return i=n.sent,n.next=7,i.setEditingInheritanceRestricted(e,t);case 7:r._isEditingRestricted=e,_i.updatedExternally(r,Og);case 9:case"end":return n.stop()}}),n)})))()}_refreshEditingRestricted(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._ensureLink(tt.AC_POLICY);case 2:return t.next=4,e._getAssetInterface();case 4:return r=t.sent,t.next=7,r.getEditingInheritanceRestricted();case 7:e._isEditingRestricted=t.sent;case 8:case"end":return t.stop()}}),t)})))()}_reloadPermissions(){var e=()=>super._reloadPermissions,t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return _i.setLoadStatus(t,Og,bi.NotLoaded),r.abrupt("return",e().call(t));case 2:case"end":return r.stop()}}),r)})))()}}Ie([$e(Lg,"_customModelInfo")],jE.prototype,"customModelInfo",null),Ie([$e(Lg)],jE.prototype,"elementsCount",null),Ie([$e(Lg)],jE.prototype,"displayName",null),Ie([$e(Lg)],jE.prototype,"roles",null),Ie([$e(Lg)],jE.prototype,"renditionGrid",null),Ie([$e(Lg)],jE.prototype,"isBookmarked",null),Ie([$e(Lg)],jE.prototype,"_isPublic",null),Ie([$e(Lg)],jE.prototype,"ownership",null),Ie([Ue],jE.prototype,"getCustomModels",null),Ie([$e(Lg)],jE.prototype,"libraryManifestId",null),Ie([Ei(Sg,"_isEditingRestricted")],jE.prototype,"isEditingRestricted",null);const FE={_bookmark:{name:"bookmark",format:"object"},_libraryRoles:{name:"roles",format:"object",isArray:!0},_ownership:"ownership",_legacyLibraryId:"id",_renditionGrid:{name:"rendition_grid",format:"object"},_customModelInfo:{name:"firefly#cme",format:{parse:e=>{const t=Object.assign(Object.assign({},e),{schemaVersion:e.version?e.version:e.schemaVersion});return delete t.version,t},isEqual:nn}},_renditionGridRaw:{name:"rendition_grid",format:"object",set:(e,t)=>{const r=t;!function(e,t){var r,n;let i=null!==(r=t._renditionGridTiles)&&void 0!==r?r:t._renditionGridTiles=[];const o=[e.main,...null!==(n=e.tiles)&&void 0!==n?n:[]].filter((e=>!!e));o.forEach(((e,r)=>{const n=i.find((t=>t.elementId===e.elementId));n?(n._index=r,"href"===e.type?n._renditionUrl=e.rendition:n._renditionData=e.rendition):i.push(new Py(e,r,t))})),i=i.filter((e=>!!o.find((t=>t.elementId===e.elementId))||(e._releaseRenditions(),!1))),i.sort(((e,t)=>e._index-t._index)),t._renditionGridTiles=i}(e,r),r._renditionGridRaw=e}},_displayName:"name",_elementsCount:{name:"elements_count",format:"number"},_parentAssetId:{name:"parent_assetId",format:"string"}},ZE={_etag:"manifest_etag",_path:"storage_path",_version:"version",_created:{name:"created_date",format:"date_as_number"},_modified:{name:"modified_date",format:"date_as_number"},_discarded:{name:"archived_date",format:"date_as_number"},_createdBy:"created_by",_modifiedBy:"modified_by",_discardedBy:"archived_by","_appMetadata._data":{name:"application_metadata",format:"object_subset",set:(e,t)=>{t.appMetadata._mergeData(e)}},_storageAssignee:{name:"storage_assignee",format:pa},_size:{name:"storage_used",format:"number"},_permissions:{get:function(e){return void 0!==e.asset_acl?Ur(e.asset_acl):"public"===e.ownership?Br.Read|Br.Ack|Br.ReadAppMetadata:"private"===e.ownership?Gr:Ni},format:"number"},_isSharedWithYouAsset:{get:function(e,t){if(e.collaboration){const r=t._core._environment.getValue("USER_ID");return e.collaboration.collaborators.some((e=>"DIRECT"===e.inheritanceType&&e.collaborator===r))}return Ni},format:"boolean"},_isShared:{get:function(e){return e.collaboration?e.collaboration.collaborators.some((e=>"DIRECT"===e.inheritanceType)):Ni},format:"boolean"},_directCollaboratorCount:{get:function(e){return e.collaboration?e.collaboration.collaborators.filter((e=>"DIRECT"===e.inheritanceType)).length:Ni},format:"number"},_isPublicLink:{get:function(e){return e.collaboration?!!e.collaboration.public:Ni},format:"boolean"},_shareFlagsAreDirty:{get:function(e){return!e.collaboration&&Ni},format:"boolean"}},BE=Object.assign(Object.assign({},FE),ZE),GE=new Di({localItemType:jE,remoteIdProperty:"library_urn",changeEventMap:new Map([["_libraryRoles",Lg],["_displayName",Lg],["_legacyLibraryId",Lg],["_bookmark",Lg],["_ownership",Lg],["_renditionGridRaw",Lg],["_elementsCount",Lg]]),propertyUpdater:new Hi(BE)});class UE extends zi{constructor(e){super({_isSharedWithYou:!0}),this.filterOptions=e,(null==e?void 0:e.owner)&&e.owner.length>0&&(this._owner=new Set([...e.owner])),(null==e?void 0:e.roles)&&e.roles.length>0&&(this._roles=new Set([...e.roles]))}get _hash(){return[super.hash,this._owner?`owner=${[...this._owner].sort().join(",")}`:void 0,this._roles?`roles=${[...this._roles].sort().join(",")}`:void 0].filter((e=>!!e)).join(":")}matches(e){return!!e.isLibrary&&!(this._owner&&!Rg(e,this._owner))&&!(this._roles&&!Mg(e,this._roles))&&super.matches(e)}getRelationToFilter(e){const t=[super.getRelationToFilter(e),jg(this._owner,e._owner),Fg(this._roles,e._roles)];return t.includes("disjoint")?"disjoint":t.includes("unknown")?"unknown":"subset"}}UE.TrainingSets=new UE({owner:[Pg.All],roles:[Ag.TrainingSet]});class HE{constructor(e,t,r){this._libraryPool=e,this._libraryInterface=t,this._libraryUpdater=r}supportsFilter(e){return void 0!==e}loadPage(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_loadPage(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l,u,d,p,h,f,m,g,v,y;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t){n.next=7;break}return e.limit&&(t.href=t.href.replace(/limit=[0-9]*/,`limit=${e.limit}`)),n.next=4,r._libraryInterface.getLibrariesWithLink(t);case 4:o=n.sent,n.next=23;break;case 7:return a=e.limit,s=e.filter,c=e.implicitFilter,l=e.order,u=c._owner||s._owner||Bg.DEFAULT._owner,d=c._roles||s._roles,(p={}).owner=[...u].sort().join(","),d&&(p.roles=[...d].sort().join(",")),s._project&&(p.team=s._project),p.orderBy="ascending"===l.direction?Cg[l.field]:`-${Cg[l.field]}`,a&&(p.limit=a,p.start||(p.start=0)),p.selector="rendition_grid,collaboration",n.next=22,r._libraryInterface.getLibraries(p);case 22:o=n.sent;case 23:return h=r._libraryPool._core._environment.getValue("USS_LIST_UPDATE_LATENCY"),f=Date.now()-h,m=r._libraryPool.createLoaderUpdateSession(f),(g=r._libraryUpdater.updateRemoteItems(m,o.libraries)).forEach((e=>e._setLibraryLoadState("LOADED"))),g.forEach((e=>_i.updatedByItemUpdater(e,fo))),m.commit(),(y=null===(i=o._links)||void 0===i?void 0:i.next)&&(v=e=>r._loadPage(e,y)),n.abrupt("return",{items:g,total:o.total_count,loadNextPage:v,mostRecentValidMutation:f});case 33:case"end":return n.stop()}}),n)})))()}}class zE{constructor(e,t,r){this._libraryPool=e,this._libraryInterface=t,this._libraryUpdater=r}supportsFilter(e){return void 0!==e}loadPage(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_loadPage(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l,u,d,p,h,f,m,g,v;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(a=e.implicitFilter,s=a._query,c=r._libraryPool._core._environment.getValue("PROJECTS_LIST_UPDATE_LATENCY"),l=Date.now()-c,!t){n.next=11;break}return e.limit&&(t.href=t.href.replace(/limit=[0-9]*/,`limit=${e.limit}`)),n.next=8,r._libraryInterface.searchLibrariesWithLink(s,t);case 8:u=n.sent,n.next=14;break;case 11:return n.next=13,r._libraryInterface.searchLibraries(s);case 13:u=n.sent;case 14:d=r._libraryPool.createLoaderUpdateSession(l),p=r._libraryUpdater.updateRemoteItems(d,null!==(i=u.libraries)&&void 0!==i?i:[]),h=ue(p);try{for(h.s();!(f=h.n()).done;)m=f.value,_i.updatedByItemUpdater(m,fo)}catch(e){h.e(e)}finally{h.f()}return d.commit(),(v=null===(o=u._links)||void 0===o?void 0:o.next)&&(g=e=>r._loadPage(e,v)),a._matchingIDsFromSearch=new Set([...a._matchingIDsFromSearch||[],...p.map((e=>e.id))]),n.abrupt("return",{items:p,total:u.total_count,loadNextPage:g,mostRecentValidMutation:l});case 23:case"end":return n.stop()}}),n)})))()}}class VE extends zi{constructor(e){var t,r;super(),this._query="",this._query=null!==(r=null===(t=e.query)||void 0===t?void 0:t.trim())&&void 0!==r?r:""}get hash(){return[super.hash,this.query?`query=${this._query}`:void 0].filter((e=>e)).join(":")}get query(){return this._query}matches(e){return!!e.isLibrary&&!(this._matchingIDsFromSearch&&!this._matchingIDsFromSearch.has(e.id))&&!(this._query&&!this._matchingIDsFromSearch)&&super.matches(e)}getRelationToFilter(e){return this.query.toLowerCase()!==e.query.toLowerCase()?"disjoint":super.getRelationToFilter(e)}}class YE extends hn{constructor(e,t){super(),this._asset=void 0,this._callback=()=>{this.emit("change")},this._cacheKey=e,this._path=t}get cacheKey(){return this._cacheKey}get path(){return this._path}get asset(){return this._asset}ensureExistence(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=e._core._environment,o=i.cache,a=r._cacheKey,n.next=5,o.getItem(a);case 5:if(s=n.sent,n.prev=6,s===wr){n.next=13;break}return n.next=10,e.getAssetWithCloudID(s);case 10:n.t0=n.sent,n.next=16;break;case 13:return n.next=15,e.getAssetWithRepoPath(r._path);case 15:n.t0=n.sent;case 16:return c=n.t0,o.setItem(a,c.cloudID),n.abrupt("return",r._setAsset(c,o));case 21:if(n.prev=21,n.t1=n.catch(6),n.t1.code!==ge.NOT_FOUND){n.next=29;break}return i.debug(`${r._path} not found, creating it now`),n.next=27,r._create(e,t);case 27:return c=n.sent,n.abrupt("return",r._setAsset(c,o));case 29:throw n.t1;case 30:case"end":return n.stop()}}),n,null,[[6,21]])})))()}_setAsset(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r._asset=e,n.next=3,t.setItem(r._cacheKey,e.cloudID);case 3:return r._setUpWatcher(),n.abrupt("return",e);case 5:case"end":return n.stop()}}),n)})))()}}class WE extends YE{constructor(){super("SYNC_GROUP_ID","/assets/adobe-libraries")}_create(e,t){var r=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getHomeFolder();case 2:return t.next=4,t.sent.createFolder(r.path);case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)})))()}_setUpWatcher(){var e;null===(e=this._asset)||void 0===e||e.on("change",this._callback)}}class KE extends YE{constructor(e,t){super(e,t)}_create(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.getBookmarks();case 2:return n.abrupt("return",e.getAssetWithRepoPath(r.path));case 3:case"end":return n.stop()}}),n)})))()}_setUpWatcher(){var e,t;null===(e=this._asset)||void 0===e||e.on("change",this._callback),null===(t=this._asset)||void 0===t||t.appMetadata.on("change",this._callback)}}class $E extends KE{constructor(){super("COLLAB_BOOKMARKS_ID","/sync/adobe-libraries/collab-bookmarks.json")}}class qE extends KE{constructor(){super("PUBLIC_BOOKMARKS_ID","/sync/adobe-libraries/bookmarks.json")}}class XE{constructor(e,t){this._core=e,this.__assetPool=t,this._libraryUpdater=GE,this._libraryInterface=new qc(this._core),this._syncGroupLocation=new WE,this._publicBookmarkLocation=new qE,this._collabBookmarkLocation=new $E}get _assetPool(){return this.__assetPool}get librariesSource(){const e=new HE(this._assetPool,this._libraryInterface,this._libraryUpdater);return this._ensureSubscriptionLocationExistence().then((()=>{this._publicBookmarkLocation.on("change",this._onPublicBookmarksChanged.bind(this)),this._collabBookmarkLocation.on("change",this._onCollabBookmarksChanged.bind(this))})).catch((e=>{this._core._environment.error(`Error ensuring subscription location existence: ${e}`)})),new Uo(this._assetPool,[e],new UE)}_onPublicBookmarksChanged(){var e,t=ue(this.librariesSource._getLists());try{for(t.s();!(e=t.n()).done;){const t=e.value;t.filter._owner.has(Pg.Public)&&t.refresh()}}catch(e){t.e(e)}finally{t.f()}}_onCollabBookmarksChanged(){var e,t=ue(this.librariesSource._getLists());try{for(t.s();!(e=t.n()).done;){const t=e.value;t.filter._owner.has(Pg.Incoming)&&t.refresh()}}catch(e){t.e(e)}finally{t.f()}}_createLibrary(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(zn(e.name)){r.next=2;break}throw we.create(ge.BAD_REQUEST,"Invalid name provided for the createLibrary operation.");case 2:return r.next=4,t._libraryInterface.createLibrary(e);case 4:return n=r.sent,i=t._assetPool.createMutationSession(),(o=t._libraryUpdater.updateRemoteItem(i,n))._setLibraryLoadState("LOADED"),i.commit(),r.abrupt("return",o);case 10:case"end":return r.stop()}}),r)})))()}getLibrarySearchSource(e){const t=new VE({query:e}),r=new zE(this._assetPool,this._libraryInterface,this._libraryUpdater);return new Uo(this._assetPool,[r],t)}createPersonalLibrary(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={syncCreate:!0,name:e.name,roles:e.roles},r.abrupt("return",t._createLibrary(n));case 2:case"end":return r.stop()}}),r)})))()}_getLibraryLocally(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t._assetPool.getLocalItemById(e)){r.next=3;break}return r.abrupt("return",void 0);case 3:return r.next=5,n._waitForLibraryLoad();case 5:return r.abrupt("return",n);case 6:case"end":return r.stop()}}),r)})))()}_getLibraryRemotely(e,t){var r=this;return me(he().mark((function n(){var i,o,a;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._libraryInterface.getLibraryData(e,t);case 2:if(i=n.sent){n.next=5;break}return n.abrupt("return",void 0);case 5:return o=r._assetPool.createMutationSession(),a=r._libraryUpdater.updateRemoteItem(o,i),o.commit(),n.abrupt("return",a);case 9:case"end":return n.stop()}}),n)})))()}_isValidURN(e){return/^urn:[a-zA-Z0-9][a-zA-Z0-9-]{0,31}:[a-zA-Z0-9()+,\-.:=@;$_!*'%/?#]+$/.test(e)}getLibraryByAssetId(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=function(){var e=me(he().mark((function e(r){var n;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._getLibraryLocally(r);case 2:if(n=e.sent){e.next=7;break}return e.next=6,t._getLibraryRemotely(r);case 6:n=e.sent;case 7:return e.abrupt("return",n);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),i=function(){var e=me(he().mark((function e(r){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._getLibraryRemotely(r);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),!t._isValidURN(e)){r.next=8;break}return r.next=5,n(e);case 5:r.t0=r.sent,r.next=11;break;case 8:return r.next=10,i(e);case 10:r.t0=r.sent;case 11:if(o=r.t0){r.next=14;break}throw we.create(ge.NOT_FOUND,`Library not found for the given ID: ${e}`);case 14:return r.abrupt("return",o);case 15:case"end":return r.stop()}}),r)})))()}get syncGroupLocation(){return this._syncGroupLocation}get publicBookmarkLocation(){return this._publicBookmarkLocation}get collabBookmarkLocation(){return this._collabBookmarkLocation}_ensureSubscriptionLocationExistence(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.getAssetContext();case 2:return r=t.sent,t.abrupt("return",Promise.allSettled([e._syncGroupLocation.ensureExistence(r,e._libraryInterface),e._publicBookmarkLocation.ensureExistence(r,e._libraryInterface),e._collabBookmarkLocation.ensureExistence(r,e._libraryInterface)]).then((e=>{e.forEach((e=>{if("rejected"===e.status)throw e.reason}))})));case 4:case"end":return t.stop()}}),t)})))()}getLibraryOrder(e="descending",t="modified"){return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.resolve().then((function(){return Ng}));case 2:return n=r.sent,i=n.default,r.abrupt("return",new i(e,t));case 5:case"end":return r.stop()}}),r)})))()}getLibraryFilter(e){return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.resolve().then((function(){return ev}));case 2:return r=t.sent,n=r.default,t.abrupt("return",new n(e));case 5:case"end":return t.stop()}}),t)})))()}_getLibrariesModule(){var e=this;return me(he().mark((function t(){var r,n,i,o,a,s,c;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._ccLibraries){t.next=18;break}return t.prev=1,t.next=4,Promise.resolve().then((function(){return fA}));case 4:r=t.sent,n=r.default,i=r.CloudDriver,o=e._core._environment.getValue("ACCESS_TOKEN"),a=e._core._environment.getValue("ENVIRONMENT")===an.Production?"production":"staging",s=new i(me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{env:a,token:o,samCore:e._core,options:{}});case 1:case"end":return t.stop()}}),t)})))),c={disableLocalFallthrough:!0,skipConnectingOnInit:!1,disablePreemptiveLibraryLoad:!0},e._ccLibraries=new n(s,c),t.next=18;break;case 14:throw t.prev=14,t.t0=t.catch(1),e._core._environment.error(`Error loading CCLibraries module: ${t.t0}`),t.t0;case 18:return t.abrupt("return",e._ccLibraries);case 19:case"end":return t.stop()}}),t,null,[[1,14]])})))()}}Ie([Ue],XE.prototype,"librariesSource",null),Ie([Dt],XE.prototype,"createPersonalLibrary",null),Ie([Dt],XE.prototype,"getLibraryByAssetId",null);var JE=Object.freeze({__proto__:null,default:XE});class QE{constructor(e,t,r){this._assetPool=e,this._core=t,this._customModelInterface=r}loadPage(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_loadPage(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l,u,d,p,h,f,m;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t){n.next=6;break}return n.next=3,r._customModelInterface.getCustomModelsUsingPageLink(t);case 3:o=n.sent,n.next=14;break;case 6:return a=e.order,s=e.limit,c=a.field,(l={}).orderBy="ascending"===a.direction?Gv[c]:`-${Gv[c]}`,s&&(l.limit=s,l.start||(l.start=0)),n.next=13,r._customModelInterface.getCustomModels(l);case 13:o=n.sent;case 14:return u=r._core._environment.getValue("USS_LIST_UPDATE_LATENCY"),d=Date.now()-u,p=r._assetPool.createLoaderUpdateSession(d),h=NE.updateRemoteItems(p,o.custom_models),p.commit(),(m=null===(i=o._links)||void 0===i?void 0:i.next)&&(f=e=>r._loadPage(e,m)),n.abrupt("return",{items:h,total:o.total_count,loadNextPage:f,mostRecentValidMutation:d});case 22:case"end":return n.stop()}}),n)})))()}}const ew=(e,t)=>e||t?{min:tw(t),max:tw(e)}:void 0,tw=e=>e?e.toISOString():e;class rw{constructor(e,t){this._core=e,this._customModelContext=t,this._ussInterface=this._core.hostAssetContext._ussInterface,this._ussLoaderHelper=new go(this._core.hostAssetContext._assetPool,e,this)}supportsFilter(e){return void 0!==e}loadPage(e){return this._ussLoaderHelper.loadPage(e)}_getUSSResults(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s,c,l,u;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=e.implicitFilter.query,a=e.filter.listingOptions,s=e.order,c=ew(null==a?void 0:a.createDateMax,null==a?void 0:a.createDateMin),l=ew(null==a?void 0:a.modifyDateMax,null==a?void 0:a.modifyDateMin),u=Object.assign(Object.assign({hints:[{acp_platform_v2:!0,creative_cloud_rendition_v2:!0}],asset_name:o,limit:null!==(n=e.limit)&&void 0!==n?n:100,start_index:null!==(i=null==e?void 0:e.start)&&void 0!==i?i:0,[Ji.TYPE]:[qr],creative_cloud_asset_type:"dcx"},zv(s)),{fetch_fields:{includes:["_embedded","stock_content","link_additional_metadata","app_metadata","firefly#cme$$baseModelName","firefly#cme$$baseModelVersion","firefly#cme$$conceptId","firefly#cme$$trainingMode","firefly#cme$$superclass","firefly#cme$$version","firefly#ffmodel"]},"app_metadata$$cme:publishedState":null==a?void 0:a.publishedState,sync_created_date:c?{range:c}:void 0,sync_updated_date:l?{range:l}:void 0}),r.abrupt("return",t._ussInterface.getQueryResponse(u));case 5:case"end":return r.stop()}}),r)})))()}_postProcessPage({implicitFilter:e},t){const r=t.items;e._matchingIDsFromSearch=new Set([...e._matchingIDsFromSearch||[],...r.map((e=>e.id))])}}class nw extends RE{constructor(e){const t=e.query;super(Pe(e,["query"])),this._query=t.trim()}get hash(){return[super.hash,`query=${this.query}`].filter((e=>e)).join(":")}get query(){return this._query}matches(e){return!(this._matchingIDsFromSearch&&!this._matchingIDsFromSearch.has(e.id))&&!(this._query&&!this._matchingIDsFromSearch)&&super.matches(e)}getRelationToFilter(e){return this.query.toLowerCase()!==e.query.toLowerCase()?"disjoint":super.getRelationToFilter(e)}}class iw extends ua{constructor(){super(...arguments),this.isCustomModel=!0,this._inferenceReady=!1,this._publishedState=Qr.UNPUBLISHED,this._samplePrompt="",this._displayName="",this._baseModelName="",this._baseModelVersion="",this._conceptId="",this._trainingMode=""}get inferenceReady(){return this._inferenceReady}get publishedState(){return this._publishedState}get samplePrompt(){return this._samplePrompt}get renditionUrl(){return this._renditionUrl}get displayName(){return this._displayName}get baseModelName(){return this._baseModelName}get baseModelVersion(){return this._baseModelVersion}get conceptId(){return this._conceptId}get trainingMode(){return this._trainingMode}}Ie([$e],iw.prototype,"inferenceReady",null),Ie([$e],iw.prototype,"publishedState",null),Ie([$e],iw.prototype,"samplePrompt",null),Ie([$e],iw.prototype,"renditionUrl",null),Ie([$e],iw.prototype,"displayName",null),Ie([$e],iw.prototype,"baseModelName",null),Ie([$e],iw.prototype,"baseModelVersion",null),Ie([$e],iw.prototype,"conceptId",null),Ie([$e],iw.prototype,"trainingMode",null);const ow=new Di({localItemType:iw,remoteIdProperty:"assetId",propertyUpdater:new Hi({_inferenceReady:{name:"inferenceReady",format:"boolean"},_publishedState:"publishedState",_samplePrompt:"samplePrompt",_renditionUrl:"renditionUrl",_displayName:"displayName",_baseModelName:"baseModelName",_baseModelVersion:"baseModelVersion",_conceptId:"conceptId",_trainingMode:"trainingMode",_links:{name:"_links",format:"object"},_name:"assetName",_path:"path",_created:{name:"createDate",format:"date"},_modified:{name:"modifyDate",format:"date"},_createdBy:"createdBy",_version:"version",_etag:"etag",_storageRegion:"region",_size:{name:"size",format:"number"}})});class aw{constructor(e,t,r){this._assetPool=e,this._core=t,this._customModelInterface=r}loadPage(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._loadPage(e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}_loadPage(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l,u,d,p,h,f;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=e.order,a=e.limit,s=e.filter,c=s.listingOptions,l=Object.assign({orderBy:Yv[o.field],limit:a},c),n.next=6,r._customModelInterface.getCustomModels(t?Object.assign(Object.assign({},l),{startIndex:t}):l);case 6:return u=n.sent,d=r._assetPool.createLoaderUpdateSession(Date.now()-r._core._environment.getValue("USS_LIST_UPDATE_LATENCY")),p=ow.updateRemoteItems(d,u.items),d.commit(),(f=null===(i=u.nextPage)||void 0===i?void 0:i.startIndex)&&(h=e=>r._loadPage(e,f)),n.abrupt("return",{items:p,loadNextPage:h,total:u.total});case 13:case"end":return n.stop()}}),n)})))()}}const sw={VA6C2:"va6",VA6:"va6",VA7:"va6",JPN3:"jpn3",IRL1:"irl1"};class cw extends Pt{_getMelvilleUrl(e){return`https://${this._core._environment.endpoints.MELVILLE_HOST}${e}`}_getFetchOptionOverrides(e,t){var r=()=>super._getFetchOptionOverrides,n=this;return me(he().mark((function i(){var o,a,s;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,r().call(n,e,t);case 2:return o=i.sent,a=o.href,s=o.options,i.abrupt("return",{href:a,options:Object.assign(Object.assign({},s),{headers:Object.assign(Object.assign({},s.headers),{"X-Product-Location":`SAM.js/${wn}`})})});case 6:case"end":return i.stop()}}),i)})))()}_getUrl(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._core.hostAssetContext.getHomeFolder();case 2:return n=r.sent,i=sw[n.storageRegion],o=t._core._environment.endpoints.ACP_CS_HOST,a=o.split(".")[0],s=`${a}-${i}`,r.abrupt("return",`https://${o.replace(a,s)}/fps/${e}`);case 8:case"end":return r.stop()}}),r)})))()}getCustomModels(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e?JSON.parse(JSON.stringify(e)):{},r.t0=st,r.next=4,t._getUrl("customModels");case 4:return r.t1=r.sent,r.t2=n,i=(0,r.t0)(r.t1,r.t2),r.abrupt("return",t._getResponse(i));case 8:case"end":return r.stop()}}),r)})))()}createTrainingSet(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.name){r.next=2;break}throw we.create(ge.BAD_REQUEST,"Invalid argument: missing required name");case 2:if(e.projectId){r.next=4;break}throw we.create(ge.BAD_REQUEST,"Invalid argument: missing required projectId. The parent must be a project");case 4:if(e["firefly#ffmodel"].schemaVersion){r.next=6;break}throw we.create(ge.BAD_REQUEST,"Invalid argument: missing required schemaVersion.");case 6:return n={name:e.name,parent_assetId:e.projectId,roles:[{type:"cm_training_set"}],"firefly#ffmodel":e["firefly#ffmodel"],"firefly#cme":Object.assign(Object.assign({},e["firefly#ffmodel"]),{version:e["firefly#ffmodel"].schemaVersion})},r.next=9,t._core.getLibraryContext();case 9:return i=r.sent,r.abrupt("return",i._createLibrary(n));case 11:case"end":return r.stop()}}),r)})))()}getTrainingSetById(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._core.getLibraryContext();case 2:return n=r.sent,r.abrupt("return",n._getLibraryRemotely(e));case 4:case"end":return r.stop()}}),r)})))()}createCustomModel(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=3,t._doPost(t._getMelvilleUrl("/api/v1/custom-models"),{"Content-Type":"application/json"},JSON.stringify(e),[201,200]);case 3:if(n=r.sent,i=n.headers.get("asset-id")){r.next=7;break}throw we.create(ge.NOT_FOUND,"Asset id for newly created custom model not returned by melville");case 7:return r.abrupt("return",{id:i});case 8:case"end":return r.stop()}}),r)})))()}}class lw{constructor(e,t,r){this._assetPool=e,this._core=t,this._customModelInterface=r}supportsFilter(e){return void 0!==e}loadPage(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._loadPage(e));case 1:case"end":return r.stop()}}),r)})))()}_loadPage(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l,u,d,p,h,f,m,g,v;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=e.order,a=e.limit,s=e.implicitFilter,c=e.filter,l=s,d="listingOptions"in(u=c)&&u.listingOptions||[],p=Object.assign(Object.assign({orderBy:Yv[o.field],limit:a},d),{name:l.query}),n.next=7,r._customModelInterface.getCustomModels(t?Object.assign(Object.assign({},p),{startIndex:t}):p);case 7:return h=n.sent,f=r._assetPool.createLoaderUpdateSession(Date.now()-r._core._environment.getValue("USS_LIST_UPDATE_LATENCY")),m=ow.updateRemoteItems(f,h.items),f.commit(),(v=null===(i=h.nextPage)||void 0===i?void 0:i.startIndex)&&(g=e=>r._loadPage(e,v)),s._matchingIDsFromSearch=new Set([...s._matchingIDsFromSearch||[],...m.map((e=>e.id))]),n.abrupt("return",{items:m,loadNextPage:g,total:h.total});case 15:case"end":return n.stop()}}),n)})))()}}class uw extends zi{constructor(e){super(e)}matches(e){return!!e.isCustomModel&&super.matches(e)}getRelationToFilter(e){return super.getRelationToFilter(e)}}class dw extends uw{constructor(e){const t=e.query;super(Pe(e,["query"])),this._query=t.trim()}get hash(){return[super.hash,`query=${this.query}`].filter((e=>e)).join(":")}get query(){return this._query}matches(e){return!(this._matchingIDsFromSearch&&!this._matchingIDsFromSearch.has(e.id))&&!(this._query&&!this._matchingIDsFromSearch)&&super.matches(e)}getRelationToFilter(e){return this.query.toLowerCase()!==e.query.toLowerCase()?"disjoint":super.getRelationToFilter(e)}}class pw{constructor(e,t){this._core=e,this._assetPool=t,this._customModelInterface=new cw(this._core),this._customModelUpdater=ow,this._libraryInterface=new qc(this._core)}getCustomModelOrder(e="descending",t="modified"){return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.resolve().then((function(){return $v}));case 2:return n=r.sent,i=n.default,r.abrupt("return",new i(e,t));case 5:case"end":return r.stop()}}),r)})))()}getCustomModelFilter(e){return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.resolve().then((function(){return yy}));case 2:return r=t.sent,n=r.default,t.abrupt("return",new n(e));case 5:case"end":return t.stop()}}),t)})))()}customModelSearchSource(e){const t=new dw({query:e});return new Uo(this._assetPool,[new lw(this._assetPool,this._core,this._customModelInterface)],t)}get customModelSource(){return new Uo(this._assetPool,[new aw(this._assetPool,this._core,this._customModelInterface)],new uw)}createTrainingSet(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._customModelInterface.createTrainingSet(e));case 1:case"end":return r.stop()}}),r)})))()}trainingSetsSource(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.getLibraryContext();case 2:return r=t.sent,n=new HE(r._assetPool,e._libraryInterface,GE),t.abrupt("return",new Uo(r._assetPool,[n],UE.TrainingSets));case 5:case"end":return t.stop()}}),t)})))()}getTrainingSetById(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._customModelInterface.getTrainingSetById(e));case 1:case"end":return r.stop()}}),r)})))()}createCustomModel(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._customModelInterface.createCustomModel(e));case 1:case"end":return r.stop()}}),r)})))()}}Ie([Ue],pw.prototype,"customModelSource",null),Ie([Ue],pw.prototype,"trainingSetsSource",null);class hw extends Bg{constructor(e){super(Object.assign(Object.assign({},e),{owner:[Pg.All],roles:[Ag.TrainingSet]}))}}hw.DEFAULT=new hw;class fw{constructor(e={}){this._customModelFilter=e.customModelFilter||new my,this._trainingSetFilter=e.trainingSetFilter||new hw}get _owner(){return this._trainingSetFilter?this._trainingSetFilter._owner:void 0}get _roles(){return this._trainingSetFilter?this._trainingSetFilter._roles:void 0}matches(e){return kE(e)?!!this._customModelFilter&&this._customModelFilter.matches(e):!!e.isLibrary&&!!this._trainingSetFilter&&this._trainingSetFilter.matches(e)}get hash(){var e,t;return["dashboardFilter",null===(e=this._customModelFilter)||void 0===e?void 0:e.hash,null===(t=this._trainingSetFilter)||void 0===t?void 0:t.hash].filter((e=>e)).join(":")}getRelationToFilter(e){let t="subset";e._customModelFilter&&(t=this._customModelFilter?this._customModelFilter.getRelationToFilter(e._customModelFilter):"unknown");let r="subset";return e._trainingSetFilter&&(r=this._trainingSetFilter?this._trainingSetFilter.getRelationToFilter(e._trainingSetFilter):"unknown"),"disjoint"===t||"disjoint"===r?"disjoint":"unknown"===t||"unknown"===r?"unknown":"subset"}}class mw{constructor(e,t){this._core=e,this._assetPool=t,this._customModelInterface=new AE(this._core),this._customModelUpdaterMelville=NE,this._libraryInterface=new qc(this._core)}get legacyCustomModelContext(){return this._LegacyCustomModelContext||(this._LegacyCustomModelContext=new pw(this._core,this._assetPool)),this._LegacyCustomModelContext}customModelSearchSource(e){const t=new nw({query:e});return new Uo(this._assetPool,[new rw(this._core,this)],t)}customModelDashboardSource(){const e=new fw({customModelFilter:new RE({generatorOnly:!0}),trainingSetFilter:UE.TrainingSets});return new Uo(this._assetPool,[new QE(this._assetPool,this._core,this._customModelInterface),new HE(this._assetPool,this._libraryInterface,GE)],e)}get customModelSource(){return new Uo(this._assetPool,[new QE(this._assetPool,this._core,this._customModelInterface)],new RE)}createTrainingSet(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._customModelInterface.createTrainingSet(e));case 1:case"end":return r.stop()}}),r)})))()}trainingSetsSource(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._core.getLibraryContext();case 2:return r=t.sent,n=new HE(r._assetPool,e._libraryInterface,GE),t.abrupt("return",new Uo(r._assetPool,[n],UE.TrainingSets));case 5:case"end":return t.stop()}}),t)})))()}getTrainingSetById(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._customModelInterface.getTrainingSetById(e));case 1:case"end":return r.stop()}}),r)})))()}updateTrainingSet(e,t,r=!1){var n=this;return me(he().mark((function i(){var o,a;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!r||t.schemaVersion&&t.trainingMode){i.next=2;break}throw we.create(ge.BAD_REQUEST,"Schema version and training mode are required fields on the training set metadata. To overwrite all metadata, these must be included in the payload.");case 2:return i.next=4,n.getTrainingSetById(e);case 4:if(o=i.sent){i.next=7;break}throw we.create(ge.NOT_FOUND,"Training set not found");case 7:return a=r?{"firefly#cme":Object.assign({},t)}:{"firefly#cme":Object.assign(Object.assign({},o.customModelInfo),t)},i.next=10,n._libraryInterface.updateMetadata(o.id,a);case 10:return i.next=12,n.getTrainingSetById(o.id);case 12:case"end":return i.stop()}}),i)})))()}createCustomModel(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._customModelInterface.createCustomModel(e);case 2:return n=r.sent,i=t._assetPool.createMutationSession(),o=t._customModelUpdaterMelville.updateRemoteItem(i,n),i.commit(),r.abrupt("return",o);case 7:case"end":return r.stop()}}),r)})))()}_fetchAndUpdateCustomModelById(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._customModelInterface.getCustomModelById(e);case 2:return n=r.sent,i=t._assetPool.createMutationSession(),o=t._customModelUpdaterMelville.updateRemoteItem(i,n),i.commit(),r.abrupt("return",o);case 7:case"end":return r.stop()}}),r)})))()}getCustomModelById(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(n=t._assetPool.getLocalItemById(e))){r.next=5;break}if(n.isCustomModel){r.next=4;break}throw we.create(ge.INVALID_OPERATION,"Attempting to fetch asset type that is not a custom model");case 4:return r.abrupt("return",n);case 5:return r.abrupt("return",t._fetchAndUpdateCustomModelById(e));case 6:case"end":return r.stop()}}),r)})))()}updateCustomModel(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._customModelInterface.updateCustomModel(e,t);case 2:return n.next=4,r._fetchAndUpdateCustomModelById(e);case 4:case"end":return n.stop()}}),n)})))()}getCustomModelOrder(e="descending",t="modified"){return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.resolve().then((function(){return Vv}));case 2:return n=r.sent,i=n.default,r.abrupt("return",new i(e,t));case 5:case"end":return r.stop()}}),r)})))()}getCustomModelFilter(e){return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.resolve().then((function(){return vy}));case 2:return r=t.sent,n=r.default,t.abrupt("return",new n(e));case 5:case"end":return t.stop()}}),t)})))()}}Ie([Ue],mw.prototype,"customModelSource",null),Ie([Dt],mw.prototype,"createTrainingSet",null),Ie([Ue],mw.prototype,"trainingSetsSource",null),Ie([Dt],mw.prototype,"getTrainingSetById",null),Ie([Dt],mw.prototype,"createCustomModel",null),Ie([Dt],mw.prototype,"getCustomModelById",null);var gw=Object.freeze({__proto__:null,default:mw});const vw=["repo:repositoryId","repo:name","repo:etag","stRef:relativePath","stRef:documentID"];function yw(e){const t=e._permissions;return t===Br.Ack||t===Br.None}const bw=["application/illustrator"];class _w extends xi{constructor(e,t){super(e._core),this._assetLinkList=e,this._data=t,this._resolutionErrors=[],this._onChange=()=>{var e,t;const r=null===(e=this._resolvedAssets)||void 0===e?void 0:e.filter(yw);(null==r?void 0:r.length)&&(this._resolutionErrors=r.map((e=>we.create(e._permissions===Br.Ack?ge.ACCESS_DENIED:ge.NOT_FOUND,"lost access"))),this._resolvedAssets=null===(t=this._resolvedAssets)||void 0===t?void 0:t.filter((e=>!r.includes(e)))),this.emit("change"),this._assetLinkList._onChange()}}_setLinkData(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r._data=e,t&&(r._resolvedAssets=[t]),r._onChange(),r.adobeAsset&&r.assetID===r.adobeAsset.cloudID){n.next=6;break}return n.next=6,r._resolveWithRetry();case 6:return n.abrupt("return",r);case 7:case"end":return n.stop()}}),n)})))()}_setLinkedAsset(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t._getLinkDataForAsset(e),r.abrupt("return",t._setLinkData(n,e));case 2:case"end":return r.stop()}}),r)})))()}_getLinkDataForAsset(e){var t,r;const n={"repo:assetId":e.cloudID,"repo:repositoryId":e.repositoryID,"repo:etag":e.etag,"dc:format":e.mediaType,"repo:name":e.name,"stRef:documentID":null===(t=e.embeddedMetadata.data)||void 0===t?void 0:t["xmpMM:DocumentID"],"stRef:instanceID":null===(r=e.embeddedMetadata.data)||void 0===r?void 0:r["xmpMM:InstanceID"],"stRef:manager":"Adobe Cloud"},i=this._assetLinkList.containerAsset;return i&&i.repositoryID===e.repositoryID&&(n["stRef:relativePath"]=kn.relative(kn.dirname(i.repoPath),e.repoPath)),n}_serializeLinkData(e){return JSON.stringify(e,Object.keys(e).sort())}_resolveWithRetry(){return this._resolve()}_resolve(){var e=this;return me(he().mark((function t(){var r,n,i,o,a,s,c;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=[],i=[],o=e=>{if(![ge.NOT_FOUND,ge.ACCESS_DENIED].includes(e.code))throw e;i.push(e)},t.prev=3,t.next=6,e._context.getAssetWithCloudID(e.assetID);case 6:if((a=t.sent).embeddedMetadata.isLoaded){t.next=10;break}return t.next=10,a.embeddedMetadata.load();case 10:n.push(a),t.next=17;break;case 13:t.prev=13,t.t0=t.catch(3),e._core._environment.error(`Failed to resolve link by id (${e.assetID}): ${t.t0}`),o(t.t0);case 17:if(s=e._assetLinkList.containerAsset,!e.relativePath||!s||s.repositoryID!==e.repositoryID){t.next=34;break}return c=kn.join(kn.dirname(s.repoPath),e.relativePath),t.prev=20,t.next=23,e._context.getAssetWithRepoPath(c,e.repositoryID);case 23:if((a=t.sent).embeddedMetadata.isLoaded){t.next=27;break}return t.next=27,a.embeddedMetadata.load();case 27:n[0]&&n[0].cloudID===a.cloudID||((null===(r=n[0])||void 0===r?void 0:r.isDiscarded)?n.unshift(a):n.push(a)),t.next=34;break;case 30:t.prev=30,t.t1=t.catch(20),e._core._environment.error(`Failed to resolve link by path: ${e.repositoryID}, ${c}`),o(t.t1);case 34:e._resolvedAssets&&e._resolvedAssets.forEach((t=>t.off("change",e._onChange))),n.forEach((t=>t.on("change",e._onChange))),e._resolvedAssets=n,e._resolutionErrors=i,e._onChange();case 39:case"end":return t.stop()}}),t,null,[[3,13],[20,30]])})))()}get _context(){return this._assetLinkList._manager._context}get adobeAsset(){var e;return null===(e=this._resolvedAssets)||void 0===e?void 0:e[0]}get alternativeAdobeAsset(){var e;return null===(e=this._resolvedAssets)||void 0===e?void 0:e[1]}get linkStatus(){if(!this._resolvedAssets)return"UpToDate";if(!this.adobeAsset)return this._resolutionErrors.some((e=>e.code===ge.ACCESS_DENIED))?"Restricted":"Broken";if(this.adobeAsset.isDiscarded)return"Discarded";const e=this.adobeAsset.embeddedMetadata.data["xmpMM:InstanceID"]||"",t=!e&&!this.instanceID||bw.includes(this.type),r=e!==this.instanceID||t&&this.etag!==this.adobeAsset.etag;if(this.alternativeAdobeAsset||r)return"OutOfDate";const n=this._getLinkDataForAsset(this.adobeAsset),i=vw.some((e=>n[e]!==this._data[e]));return i?"MetadataOutOfDate":"UpToDate"}get fragmentIdentifier(){return this._data["stRef:fromPart"]||""}get version(){return this._data["repo:version"]||""}get assetID(){return this._data["repo:assetId"]}get repositoryID(){return this._data["repo:repositoryId"]||""}get name(){return this._data["repo:name"]||""}get type(){return this._data["dc:format"]||""}get etag(){return this._data["repo:etag"]||""}get relativePath(){return this._data["stRef:relativePath"]||""}get documentID(){return this._data["stRef:documentID"]||""}get instanceID(){return this._data["stRef:instanceID"]||""}getAssetLinkRef(){return Object.assign({},this._data)}getAssetLinkRefString(){return this._serializeLinkData(this._data)}getNewAssetLinkRef(e){return this._getLinkDataForAsset(e)}getNewAssetLinkRefString(e){return this._serializeLinkData(this.getNewAssetLinkRef(e))}updateWithAsset(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._setLinkedAsset(e);case 2:return r.abrupt("return",t.getAssetLinkRefString());case 3:case"end":return r.stop()}}),r)})))()}updateWithLinkRef(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._setLinkData(e);case 2:return r.abrupt("return",e);case 3:case"end":return r.stop()}}),r)})))()}updateWithLinkRefString(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._setLinkData(JSON.parse(e));case 2:return r.abrupt("return",e);case 3:case"end":return r.stop()}}),r)})))()}acceptMetadataChanges(){if(this.adobeAsset&&"MetadataOutOfDate"===this.linkStatus){const e=this._getLinkDataForAsset(this.adobeAsset);this._data=Object.assign(Object.assign({},this._data),e),this._onChange()}return this.getAssetLinkRefString()}}Ie([At],_w.prototype,"_setLinkData",null),Ie([It],_w.prototype,"_resolveWithRetry",null),Ie([$e],_w.prototype,"adobeAsset",null),Ie([$e],_w.prototype,"alternativeAdobeAsset",null),Ie([$e],_w.prototype,"linkStatus",null),Ie([$e],_w.prototype,"fragmentIdentifier",null),Ie([$e],_w.prototype,"version",null),Ie([$e],_w.prototype,"assetID",null),Ie([$e],_w.prototype,"repositoryID",null),Ie([$e],_w.prototype,"name",null),Ie([$e],_w.prototype,"type",null),Ie([$e],_w.prototype,"etag",null),Ie([$e],_w.prototype,"relativePath",null),Ie([$e],_w.prototype,"documentID",null),Ie([$e],_w.prototype,"instanceID",null),Ie([$e],_w.prototype,"getAssetLinkRef",null),Ie([$e],_w.prototype,"getAssetLinkRefString",null),Ie([$e],_w.prototype,"getNewAssetLinkRef",null),Ie([$e],_w.prototype,"getNewAssetLinkRefString",null);class Ew extends Li{constructor(e,t){super(e._core),this._manager=e,this._containerAsset=t,this._links=new Set,this._directlyMonitoredAssetIDs=new Map,this._onChange=()=>{this.emit("change")},this._refreshLinks=(e=new Set(this.monitoredAssetIDs))=>{this.forEach((t=>{!t.adobeAsset&&e.has(t.assetID)&&t._resolveWithRetry()}))},this._onONSNotification=e=>{this._refreshLinks(e);const t=this._monitoredAssetIDs,r=new Set;e.forEach((e=>{t.has(e)&&r.add(e);const n=this._directlyMonitoredAssetIDs.get(e.toLowerCase());n&&r.add(n)})),this.emit("notified",[...r])}}addAssetID(e){this._directlyMonitoredAssetIDs.set(e.toLowerCase(),e),this._onChange()}removeAssetID(e){this._directlyMonitoredAssetIDs.delete(e.toLowerCase()),this._onChange()}add(e){var t=this;return Promise.all(e.map(function(){var e=me(he().mark((function e(r){var n,i;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="string"==typeof r?JSON.parse(r):r,i=new _w(t,n),t._links.add(i),t._onChange(),e.next=6,i._resolveWithRetry();case 6:return e.abrupt("return",i);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()))}create(e,t,r){var n=this;return me(he().mark((function i(){var o,a;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o="string"==typeof e?e:e.cloudID,a=new _w(n,{"repo:assetId":o,"stRef:fromPart":t,"repo:version":r,"stRef:manager":"Adobe Cloud"}),n._links.add(a),n._onChange(),i.next=6,a._resolve();case 6:return a.adobeAsset&&a._setLinkedAsset(a.adobeAsset),i.abrupt("return",a);case 8:case"end":return i.stop()}}),i)})))()}remove(e){this._links.delete(e),this._onChange()}clear(){this._links.clear(),this._onChange()}get count(){return this._links.size}get links(){return[...this._links]}get _monitoredAssetIDs(){const e=new Set(this._directlyMonitoredAssetIDs.values());return this.forEach((t=>{e.add(t.assetID),t.alternativeAdobeAsset&&e.add(t.alternativeAdobeAsset.cloudID)})),e}get monitoredAssetIDs(){return[...this._monitoredAssetIDs]}forEach(e){this._links.forEach(e)}get containerAsset(){return this._containerAsset}activate(e=0){gi("AssetLinkList.activate",`AssetLinkList.activate(${e}) is deprecated - lists are always monitored for notifications.This method will be removed on or after 2024-10-01.`)}deactivate(){gi("AssetLinkList.deactivate","AssetLinkList.deactivate() is deprecated - lists are always monitored for notifications. This method will be removed on or after 2024-10-01.")}get isActive(){return gi("AssetLinkList.isActive","AssetLinkList.isActive is deprecated - lists are always monitored for notifications. This method will be removed on or after 2024-10-01."),!0}updateContainerAsset(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t._containerAsset=e,t._onChange(),r.next=4,Promise.all(Array.from(t._links).map((e=>e._resolveWithRetry())));case 4:case"end":return r.stop()}}),r)})))()}clone(e){e.links.forEach((e=>this._links.add(e)))}}Ie([$e],Ew.prototype,"count",null),Ie([$e],Ew.prototype,"links",null),Ie([$e],Ew.prototype,"monitoredAssetIDs",null),Ie([$e],Ew.prototype,"forEach",null),Ie([$e],Ew.prototype,"containerAsset",null),Ie([$e],Ew.prototype,"isActive",null);class ww extends xi{constructor(e){super(e._core),this._context=e,this._lists=new Set,this._onListChange=()=>{this._context._updateONSSubscriptions()}}createList(e){const t=new Ew(this,e);return t.on("change",this._onListChange),this._lists.add(t),this.emit("change"),t}removeList(e){this._lists.delete(e),e.off("change",this._onListChange),this.emit("change")}get lists(){return[...this._lists]}}Ie([$e],ww.prototype,"lists",null);var xw=Object.freeze({__proto__:null,default:ww});const Lw={"application/andrew-inset":{exts:["ez"]},"application/applixware":{exts:["aw"]},"application/atom+xml":{exts:["atom"]},"application/atomcat+xml":{exts:["atomcat"]},"application/atomsvc+xml":{exts:["atomsvc"]},"application/ccxml+xml":{exts:["ccxml"]},"application/cdmi-capability":{exts:["cdmia"]},"application/cdmi-container":{exts:["cdmic"]},"application/cdmi-domain":{exts:["cdmid"]},"application/cdmi-object":{exts:["cdmio"]},"application/cdmi-queue":{exts:["cdmiq"]},"application/cu-seeme":{exts:["cu"]},"application/davmount+xml":{exts:["davmount"]},"application/docbook+xml":{exts:["dbk"]},"application/dssc+der":{exts:["dssc"]},"application/dssc+xml":{exts:["xdssc"]},"application/ecmascript":{exts:["ecma"]},"application/emma+xml":{exts:["emma"]},"application/epub+zip":{exts:["epub"]},"application/exi":{exts:["exi"]},"application/font-tdpfr":{exts:["pfr"]},"application/gml+xml":{exts:["gml"]},"application/gpx+xml":{exts:["gpx"]},"application/gxf":{exts:["gxf"]},"application/hyperstudio":{exts:["stk"]},"application/illustrator":{exts:["ai"],badge:"Ai"},"application/illustrator-text":{exts:["ai"],badge:"Ai"},"application/illustrator.template":{exts:["ait"],badge:"Ai"},"application/inkml+xml":{exts:["ink","inkml"]},"application/ipfix":{exts:["ipfix"]},"application/java-archive":{exts:["jar"]},"application/java-serialized-object":{exts:["ser"]},"application/java-vm":{exts:["class"]},"application/javascript":{exts:["js"]},"application/json":{exts:["json"]},"application/jsonml+json":{exts:["jsonml"]},"application/lost+xml":{exts:["lostxml"]},"application/mac-binhex40":{exts:["hqx"]},"application/mac-compactpro":{exts:["cpt"]},"application/mads+xml":{exts:["mads"]},"application/marc":{exts:["mrc"]},"application/marcxml+xml":{exts:["mrcx"]},"application/mathematica":{exts:["ma","nb","mb"]},"application/mathml+xml":{exts:["mathml"]},"application/mbox":{exts:["mbox"]},"application/mediaservercontrol+xml":{exts:["mscml"]},"application/metalink+xml":{exts:["metalink"]},"application/metalink4+xml":{exts:["meta4"]},"application/mets+xml":{exts:["mets"]},"application/mods+xml":{exts:["mods"]},"application/mp21":{exts:["m21","mp21"]},"application/mp4":{exts:["mp4s"]},"application/msword":{exts:["doc","dot"]},"application/mxf":{exts:["mxf"]},"application/octet-stream":{exts:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy"]},"application/oda":{exts:["oda"]},"application/oebps-package+xml":{exts:["opf"]},"application/ogg":{exts:["ogx"]},"application/omdoc+xml":{exts:["omdoc"]},"application/onenote":{exts:["onetoc","onetoc2","onetmp","onepkg"]},"application/oxps":{exts:["oxps"]},"application/patch-ops-error+xml":{exts:["xer"]},"application/pdf":{exts:["pdf"],badge:"PDF"},"application/pgp-encrypted":{exts:["pgp"]},"application/pgp-signature":{exts:["asc","sig"]},"application/photoshop":{exts:["psd"],badge:"Ps"},"application/photoshop.large":{exts:["psb"],badge:"Ps"},"application/pics-rules":{exts:["prf"]},"application/pkcs10":{exts:["p10"]},"application/pkcs7-mime":{exts:["p7m","p7c"]},"application/pkcs7-signature":{exts:["p7s"]},"application/pkcs8":{exts:["p8"]},"application/pkix-attr-cert":{exts:["ac"]},"application/pkix-cert":{exts:["cer"]},"application/pkix-crl":{exts:["crl"]},"application/pkix-pkipath":{exts:["pkipath"]},"application/pkixcmp":{exts:["pki"]},"application/pls+xml":{exts:["pls"]},"application/postscript":{exts:["ai","eps","ps"]},"application/prs.cww":{exts:["cww"]},"application/pskc+xml":{exts:["pskcxml"]},"application/rdf+xml":{exts:["rdf"]},"application/reginfo+xml":{exts:["rif"]},"application/relax-ng-compact-syntax":{exts:["rnc"]},"application/resource-lists+xml":{exts:["rl"]},"application/resource-lists-diff+xml":{exts:["rld"]},"application/rls-services+xml":{exts:["rs"]},"application/rpki-ghostbusters":{exts:["gbr"]},"application/rpki-manifest":{exts:["mft"]},"application/rpki-roa":{exts:["roa"]},"application/rsd+xml":{exts:["rsd"]},"application/rss+xml":{exts:["rss"]},"application/rtf":{exts:["rtf"]},"application/sbml+xml":{exts:["sbml"]},"application/scvp-cv-request":{exts:["scq"]},"application/scvp-cv-response":{exts:["scs"]},"application/scvp-vp-request":{exts:["spq"]},"application/scvp-vp-response":{exts:["spp"]},"application/sdp":{exts:["sdp"]},"application/set-payment-initiation":{exts:["setpay"]},"application/set-registration-initiation":{exts:["setreg"]},"application/shf+xml":{exts:["shf"]},"application/smil+xml":{exts:["smi","smil"]},"application/sparql-query":{exts:["rq"]},"application/sparql-results+xml":{exts:["srx"]},"application/srgs":{exts:["gram"]},"application/srgs+xml":{exts:["grxml"]},"application/sru+xml":{exts:["sru"]},"application/ssdl+xml":{exts:["ssdl"]},"application/ssml+xml":{exts:["ssml"]},"application/tei+xml":{exts:["tei","teicorpus"]},"application/thraud+xml":{exts:["tfi"]},"application/timestamped-data":{exts:["tsd"]},"application/vnd.3gpp.pic-bw-large":{exts:["plb"]},"application/vnd.3gpp.pic-bw-small":{exts:["psb"]},"application/vnd.3gpp.pic-bw-var":{exts:["pvb"]},"application/vnd.3gpp2.tcap":{exts:["tcap"]},"application/vnd.3m.post-it-notes":{exts:["pwn"]},"application/vnd.accpac.simply.aso":{exts:["aso"]},"application/vnd.accpac.simply.imp":{exts:["imp"]},"application/vnd.acucobol":{exts:["acu"]},"application/vnd.acucorp":{exts:["atc","acutc"]},"application/vnd.adobe.ae.graphic+zip":{exts:["aegraphic","mogrt"]},"application/vnd.adobe.air-application-installer-package+zip":{exts:["air"]},"application/vnd.adobe.animate-xfl+zip":{exts:["fla","xfl"],badge:"An"},"application/vnd.adobe.animate-oam+zip":{exts:["oam"]},"application/vnd.adobe.animate-sym+zip":{exts:["sym"],badge:"SYM"},"application/vnd.adobe.animate-swf+zip":{exts:["swa"]},"application/vnd.adobe.characterstyle+json":{exts:["style"]},"application/vnd.adobe.characterstyle+snippet":{exts:["idms"]},"application/vnd.adobe.charts+zip":{exts:["zip"],badge:"PDF"},"application/vnd.adobe.ch.puppet+zip":{exts:["puppet"]},"application/vnd.adobe.color+json":{exts:["ase"]},"application/vnd.adobe.colortheme+json":{exts:["ase"]},"application/vnd.adobe.cube+txt":{exts:["cube"]},"application/vnd.adobe.element.agc+json":{exts:["agc"],badge:"Xd"},"application/vnd.adobe.exr.light+zip":{exts:["exr"]},"application/vnd.adobe.fbx.3d+zip":{exts:["fbx"]},"application/vnd.adobe.formscentral.fcdt":{exts:["fcdt"]},"application/vnd.adobe.fxp":{exts:["fxp","fxpl"]},"application/vnd.adobe.hz.express+dcxucf":{exts:["dcxucf"]},"application/vnd.adobe.ibl.light+zip":{exts:["ibl","zip"]},"application/vnd.adobe.illustrator.template":{exts:["ait"],badge:"Ai"},"application/vnd.adobe.indesign-idms":{exts:["idms"],badge:"Id"},"application/vnd.adobe.indesign-idms-text":{exts:["idms"],badge:"Id"},"application/vnd.adobe.indesign.template":{exts:["indt"],badge:"Id"},"application/vnd.adobe.layerstyle":{exts:["asl"]},"application/vnd.adobe.look+xml":{exts:["look"]},"application/vnd.adobe.graphic+json":{exts:["json"]},"application/vnd.adobe.mdl.material+zip":{exts:["mdl","zip"]},"application/vnd.adobe.muse-collection":{exts:["muse"],badge:"Mu"},"application/vnd.adobe.nxdcomponent+dcx":{exts:["agc"],badge:"Xd"},"application/vnd.adobe.obj.3d+zip":{exts:["obj","zip"]},"application/vnd.adobe.paragraphstyle+json":{exts:["style"]},"application/vnd.adobe.paragraphstyle+snippet":{exts:["idms"]},"application/vnd.adobe.photoshop.template":{exts:["psdt"],badge:"Ps"},"application/vnd.adobe.ppro.graphic+zip":{exts:["prgraphic","mogrt"]},"application/vnd.adobe.ribbon.brush+zip":{exts:["brush"]},"application/vnd.adobe.sbsar+zip":{exts:["sbsar"]},"application/vnd.adobe.scatter.brush+zip":{exts:["brush"]},"application/vnd.adobe.vector.brush+zip":{exts:["brush"]},"application/vnd.adobe.text+json":{exts:["text-json"]},"application/vnd.adobe.theo.document+dcxucf":{exts:["dcxucf"]},"application/vnd.adobe.xdcomponent+dcx":{exts:["agc"],badge:"Xd"},"application/vnd.adobe.xd.cloudproject+dcx":{exts:["dcx"],badge:"Xd"},"application/vnd.adobe.xdp+xml":{exts:["xdp"]},"application/vnd.adobe.xfdf":{exts:["xfdf"]},"application/vnd.ahead.space":{exts:["ahead"]},"application/vnd.airzip.filesecure.azf":{exts:["azf"]},"application/vnd.airzip.filesecure.azs":{exts:["azs"]},"application/vnd.amazon.ebook":{exts:["azw"]},"application/vnd.americandynamics.acc":{exts:["acc"]},"application/vnd.amiga.ami":{exts:["ami"]},"application/vnd.android.package-archive":{exts:["apk"]},"application/vnd.anser-web-certificate-issue-initiation":{exts:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{exts:["fti"]},"application/vnd.antix.game-component":{exts:["atx"]},"application/vnd.apple.installer+xml":{exts:["mpkg"]},"application/vnd.apple.mpegurl":{exts:["m3u8"]},"application/vnd.aristanetworks.swi":{exts:["swi"]},"application/vnd.astraea-software.iota":{exts:["iota"]},"application/vnd.audiograph":{exts:["aep"]},"application/vnd.blueice.multipass":{exts:["mpm"]},"application/vnd.bmi":{exts:["bmi"]},"application/vnd.businessobjects":{exts:["rep"]},"application/vnd.chemdraw+xml":{exts:["cdxml"]},"application/vnd.chipnuts.karaoke-mmd":{exts:["mmd"]},"application/vnd.cinderella":{exts:["cdy"]},"application/vnd.claymore":{exts:["cla"]},"application/vnd.cloanto.rp9":{exts:["rp9"]},"application/vnd.clonk.c4group":{exts:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{exts:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{exts:["c11amz"]},"application/vnd.commonspace":{exts:["csp"]},"application/vnd.contact.cmsg":{exts:["cdbcmsg"]},"application/vnd.cosmocaller":{exts:["cmc"]},"application/vnd.crick.clicker":{exts:["clkx"]},"application/vnd.crick.clicker.keyboard":{exts:["clkk"]},"application/vnd.crick.clicker.palette":{exts:["clkp"]},"application/vnd.crick.clicker.template":{exts:["clkt"]},"application/vnd.crick.clicker.wordbank":{exts:["clkw"]},"application/vnd.criticaltools.wbs+xml":{exts:["wbs"]},"application/vnd.ctc-posml":{exts:["pml"]},"application/vnd.cups-ppd":{exts:["ppd"]},"application/vnd.curl.car":{exts:["car"]},"application/vnd.curl.pcurl":{exts:["pcurl"]},"application/vnd.dart":{exts:["dart"]},"application/vnd.data-vision.rdz":{exts:["rdz"]},"application/vnd.dece.data":{exts:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{exts:["uvt","uvvt"]},"application/vnd.dece.unspecified":{exts:["uvx","uvvx"]},"application/vnd.dece.zip":{exts:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{exts:["fe_launch"]},"application/vnd.dna":{exts:["dna"]},"application/vnd.dolby.mlp":{exts:["mlp"]},"application/vnd.dpgraph":{exts:["dpg"]},"application/vnd.dreamfactory":{exts:["dfac"]},"application/vnd.ds-keypoint":{exts:["kpxx"]},"application/vnd.dvb.ait":{exts:["ait"]},"application/vnd.dvb.service":{exts:["svc"]},"application/vnd.dynageo":{exts:["geo"]},"application/vnd.ecowin.chart":{exts:["mag"]},"application/vnd.enliven":{exts:["nml"]},"application/vnd.epson.esf":{exts:["esf"]},"application/vnd.epson.msf":{exts:["msf"]},"application/vnd.epson.quickanime":{exts:["qam"]},"application/vnd.epson.salt":{exts:["slt"]},"application/vnd.epson.ssf":{exts:["ssf"]},"application/vnd.eszigno3+xml":{exts:["es3","et3"]},"application/vnd.ezpix-album":{exts:["ez2"]},"application/vnd.ezpix-package":{exts:["ez3"]},"application/vnd.fdf":{exts:["fdf"]},"application/vnd.fdsn.mseed":{exts:["mseed"]},"application/vnd.fdsn.seed":{exts:["seed","dataless"]},"application/vnd.adobe.firefly.cme.weights":{exts:["pt"]},"application/vnd.adobe.firefly.cme.weights+gzip":{exts:["pt.gzip"]},"application/vnd.flographit":{exts:["gph"]},"application/vnd.fluxtime.clip":{exts:["ftc"]},"application/vnd.framemaker":{exts:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{exts:["fnc"]},"application/vnd.frogans.ltf":{exts:["ltf"]},"application/vnd.fsc.weblaunch":{exts:["fsc"]},"application/vnd.fujitsu.oasys":{exts:["oas"]},"application/vnd.fujitsu.oasys2":{exts:["oa2"]},"application/vnd.fujitsu.oasys3":{exts:["oa3"]},"application/vnd.fujitsu.oasysgp":{exts:["fg5"]},"application/vnd.fujitsu.oasysprs":{exts:["bh2"]},"application/vnd.fujixerox.ddd":{exts:["ddd"]},"application/vnd.fujixerox.docuworks":{exts:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{exts:["xbd"]},"application/vnd.fuzzysheet":{exts:["fzs"]},"application/vnd.genomatix.tuxedo":{exts:["txd"]},"application/vnd.geogebra.file":{exts:["ggb"]},"application/vnd.geogebra.tool":{exts:["ggt"]},"application/vnd.geometry-explorer":{exts:["gex","gre"]},"application/vnd.geonext":{exts:["gxt"]},"application/vnd.geoplan":{exts:["g2w"]},"application/vnd.geospace":{exts:["g3w"]},"application/vnd.gmx":{exts:["gmx"]},"application/vnd.google-earth.kml+xml":{exts:["kml"]},"application/vnd.google-earth.kmz":{exts:["kmz"]},"application/vnd.grafeq":{exts:["gqf","gqs"]},"application/vnd.groove-account":{exts:["gac"]},"application/vnd.groove-help":{exts:["ghf"]},"application/vnd.groove-identity-message":{exts:["gim"]},"application/vnd.groove-injector":{exts:["grv"]},"application/vnd.groove-tool-message":{exts:["gtm"]},"application/vnd.groove-tool-template":{exts:["tpl"]},"application/vnd.groove-vcard":{exts:["vcg"]},"application/vnd.hal+xml":{exts:["hal"]},"application/vnd.handheld-entertainment+xml":{exts:["zmm"]},"application/vnd.hbci":{exts:["hbci"]},"application/vnd.hhe.lesson-player":{exts:["les"]},"application/vnd.hp-hpgl":{exts:["hpgl"]},"application/vnd.hp-hpid":{exts:["hpid"]},"application/vnd.hp-hps":{exts:["hps"]},"application/vnd.hp-jlyt":{exts:["jlt"]},"application/vnd.hp-pcl":{exts:["pcl"]},"application/vnd.hp-pclxl":{exts:["pclxl"]},"application/vnd.ibm.minipay":{exts:["mpy"]},"application/vnd.ibm.modcap":{exts:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{exts:["irm"]},"application/vnd.ibm.secure-container":{exts:["sc"]},"application/vnd.iccprofile":{exts:["icc","icm"]},"application/vnd.igloader":{exts:["igl"]},"application/vnd.immervision-ivp":{exts:["ivp"]},"application/vnd.immervision-ivu":{exts:["ivu"]},"application/vnd.insors.igm":{exts:["igm"]},"application/vnd.intercon.formnet":{exts:["xpw","xpx"]},"application/vnd.intergeo":{exts:["i2g"]},"application/vnd.intu.qbo":{exts:["qbo"]},"application/vnd.intu.qfx":{exts:["qfx"]},"application/vnd.ipunplugged.rcprofile":{exts:["rcprofile"]},"application/vnd.irepository.package+xml":{exts:["irp"]},"application/vnd.is-xpr":{exts:["xpr"]},"application/vnd.isac.fcs":{exts:["fcs"]},"application/vnd.jam":{exts:["jam"]},"application/vnd.jcp.javame.midlet-rms":{exts:["rms"]},"application/vnd.jisp":{exts:["jisp"]},"application/vnd.joost.joda-archive":{exts:["joda"]},"application/vnd.kahootz":{exts:["ktz","ktr"]},"application/vnd.kde.karbon":{exts:["karbon"]},"application/vnd.kde.kchart":{exts:["chrt"]},"application/vnd.kde.kformula":{exts:["kfo"]},"application/vnd.kde.kivio":{exts:["flw"]},"application/vnd.kde.kontour":{exts:["kon"]},"application/vnd.kde.kpresenter":{exts:["kpr","kpt"]},"application/vnd.kde.kspread":{exts:["ksp"]},"application/vnd.kde.kword":{exts:["kwd","kwt"]},"application/vnd.kenameaapp":{exts:["htke"]},"application/vnd.kidspiration":{exts:["kia"]},"application/vnd.kinar":{exts:["kne","knp"]},"application/vnd.koan":{exts:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{exts:["sse"]},"application/vnd.las.las+xml":{exts:["lasxml"]},"application/vnd.llamagraphics.life-balance.desktop":{exts:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{exts:["lbe"]},"application/vnd.lotus-1-2-3":{exts:["123"]},"application/vnd.lotus-approach":{exts:["apr"]},"application/vnd.lotus-freelance":{exts:["pre"]},"application/vnd.lotus-notes":{exts:["nsf"]},"application/vnd.lotus-organizer":{exts:["org"]},"application/vnd.lotus-screencam":{exts:["scm"]},"application/vnd.lotus-wordpro":{exts:["lwp"]},"application/vnd.macports.portpkg":{exts:["portpkg"]},"application/vnd.mcd":{exts:["mcd"]},"application/vnd.medcalcdata":{exts:["mc1"]},"application/vnd.mediastation.cdkey":{exts:["cdkey"]},"application/vnd.mfer":{exts:["mwf"]},"application/vnd.mfmp":{exts:["mfm"]},"application/vnd.micrografx.flo":{exts:["flo"]},"application/vnd.micrografx.igx":{exts:["igx"]},"application/vnd.mif":{exts:["mif"]},"application/vnd.mobius.daf":{exts:["daf"]},"application/vnd.mobius.dis":{exts:["dis"]},"application/vnd.mobius.mbk":{exts:["mbk"]},"application/vnd.mobius.mqy":{exts:["mqy"]},"application/vnd.mobius.msl":{exts:["msl"]},"application/vnd.mobius.plc":{exts:["plc"]},"application/vnd.mobius.txf":{exts:["txf"]},"application/vnd.mophun.application":{exts:["mpn"]},"application/vnd.mophun.certificate":{exts:["mpc"]},"application/vnd.mozilla.xul+xml":{exts:["xul"]},"application/vnd.ms-artgalry":{exts:["cil"]},"application/vnd.ms-cab-compressed":{exts:["cab"]},"application/vnd.ms-excel":{exts:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{exts:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{exts:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{exts:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{exts:["xltm"]},"application/vnd.ms-fontobject":{exts:["eot"]},"application/vnd.ms-htmlhelp":{exts:["chm"]},"application/vnd.ms-ims":{exts:["ims"]},"application/vnd.ms-lrm":{exts:["lrm"]},"application/vnd.ms-officetheme":{exts:["thmx"]},"application/vnd.ms-pki.seccat":{exts:["cat"]},"application/vnd.ms-pki.stl":{exts:["stl"]},"application/vnd.ms-powerpoint":{exts:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{exts:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{exts:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{exts:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{exts:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{exts:["potm"]},"application/vnd.ms-project":{exts:["mpp","mpt"]},"application/vnd.ms-word.document.macroenabled.12":{exts:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{exts:["dotm"]},"application/vnd.ms-works":{exts:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{exts:["wpl"]},"application/vnd.ms-xpsdocument":{exts:["xps"]},"application/vnd.mseq":{exts:["mseq"]},"application/vnd.musician":{exts:["mus"]},"application/vnd.muvee.style":{exts:["msty"]},"application/vnd.mynfc":{exts:["taglet"]},"application/vnd.neurolanguage.nlu":{exts:["nlu"]},"application/vnd.nitf":{exts:["ntf","nitf"]},"application/vnd.noblenet-directory":{exts:["nnd"]},"application/vnd.noblenet-sealer":{exts:["nns"]},"application/vnd.noblenet-web":{exts:["nnw"]},"application/vnd.nokia.n-gage.data":{exts:["ngdat"]},"application/vnd.nokia.radio-preset":{exts:["rpst"]},"application/vnd.nokia.radio-presets":{exts:["rpss"]},"application/vnd.novadigm.edm":{exts:["edm"]},"application/vnd.novadigm.edx":{exts:["edx"]},"application/vnd.novadigm.ext":{exts:["ext"]},"application/vnd.oasis.opendocument.chart":{exts:["odc"]},"application/vnd.oasis.opendocument.chart-template":{exts:["otc"]},"application/vnd.oasis.opendocument.database":{exts:["odb"]},"application/vnd.oasis.opendocument.formula":{exts:["odf"]},"application/vnd.oasis.opendocument.formula-template":{exts:["odft"]},"application/vnd.oasis.opendocument.graphics":{exts:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{exts:["otg"]},"application/vnd.oasis.opendocument.image":{exts:["odi"]},"application/vnd.oasis.opendocument.image-template":{exts:["oti"]},"application/vnd.oasis.opendocument.presentation":{exts:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{exts:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{exts:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{exts:["ots"]},"application/vnd.oasis.opendocument.text":{exts:["odt"]},"application/vnd.oasis.opendocument.text-master":{exts:["odm"]},"application/vnd.oasis.opendocument.text-template":{exts:["ott"]},"application/vnd.oasis.opendocument.text-web":{exts:["oth"]},"application/vnd.olpc-sugar":{exts:["xo"]},"application/vnd.oma.dd2+xml":{exts:["dd2"]},"application/vnd.openofficeorg.extension":{exts:["oxt"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{exts:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide":{exts:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{exts:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.template":{exts:["potx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{exts:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{exts:["xltx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{exts:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{exts:["dotx"]},"application/vnd.osgeo.mapguide.package":{exts:["mgp"]},"application/vnd.osgi.dp":{exts:["dp"]},"application/vnd.osgi.subsystem":{exts:["esa"]},"application/vnd.palm":{exts:["pdb","pqa","oprc"]},"application/vnd.pawaafile":{exts:["paw"]},"application/vnd.pg.format":{exts:["str"]},"application/vnd.pg.osasli":{exts:["ei6"]},"application/vnd.picsel":{exts:["efif"]},"application/vnd.pmi.widget":{exts:["wg"]},"application/vnd.pocketlearn":{exts:["plf"]},"application/vnd.powerbuilder6":{exts:["pbd"]},"application/vnd.previewsystems.box":{exts:["box"]},"application/vnd.proteus.magazine":{exts:["mgz"]},"application/vnd.publishare-delta-tree":{exts:["qps"]},"application/vnd.pvi.ptid1":{exts:["ptid"]},"application/vnd.quark.quarkxpress":{exts:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.realvnc.bed":{exts:["bed"]},"application/vnd.recordare.musicxml":{exts:["mxl"]},"application/vnd.recordare.musicxml+xml":{exts:["musicxml"]},"application/vnd.rig.cryptonote":{exts:["cryptonote"]},"application/vnd.rim.cod":{exts:["cod"]},"application/vnd.rn-realmedia":{exts:["rm"]},"application/vnd.rn-realmedia-vbr":{exts:["rmvb"]},"application/vnd.route66.link66+xml":{exts:["link66"]},"application/vnd.sailingtracker.track":{exts:["st"]},"application/vnd.seemail":{exts:["see"]},"application/vnd.sema":{exts:["sema"]},"application/vnd.semd":{exts:["semd"]},"application/vnd.semf":{exts:["semf"]},"application/vnd.shana.informed.formdata":{exts:["ifm"]},"application/vnd.shana.informed.formtemplate":{exts:["itp"]},"application/vnd.shana.informed.interchange":{exts:["iif"]},"application/vnd.shana.informed.package":{exts:["ipk"]},"application/vnd.simtech-mindmapper":{exts:["twd","twds"]},"application/vnd.smaf":{exts:["mmf"]},"application/vnd.smart.teacher":{exts:["teacher"]},"application/vnd.solent.sdkm+xml":{exts:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{exts:["dxp"]},"application/vnd.spotfire.sfs":{exts:["sfs"]},"application/vnd.stardivision.calc":{exts:["sdc"]},"application/vnd.stardivision.draw":{exts:["sda"]},"application/vnd.stardivision.impress":{exts:["sdd"]},"application/vnd.stardivision.math":{exts:["smf"]},"application/vnd.stardivision.writer":{exts:["sdw","vor"]},"application/vnd.stardivision.writer-global":{exts:["sgl"]},"application/vnd.stepmania.package":{exts:["smzip"]},"application/vnd.stepmania.stepchart":{exts:["sm"]},"application/vnd.sun.xml.calc":{exts:["sxc"]},"application/vnd.sun.xml.calc.template":{exts:["stc"]},"application/vnd.sun.xml.draw":{exts:["sxd"]},"application/vnd.sun.xml.draw.template":{exts:["std"]},"application/vnd.sun.xml.impress":{exts:["sxi"]},"application/vnd.sun.xml.impress.template":{exts:["sti"]},"application/vnd.sun.xml.math":{exts:["sxm"]},"application/vnd.sun.xml.writer":{exts:["sxw"]},"application/vnd.sun.xml.writer.global":{exts:["sxg"]},"application/vnd.sun.xml.writer.template":{exts:["stw"]},"application/vnd.sus-calendar":{exts:["sus","susp"]},"application/vnd.svd":{exts:["svd"]},"application/vnd.symbian.install":{exts:["sis","sisx"]},"application/vnd.syncml+xml":{exts:["xsm"]},"application/vnd.syncml.dm+wbxml":{exts:["bdm"]},"application/vnd.syncml.dm+xml":{exts:["xdm"]},"application/vnd.tao.intent-module-archive":{exts:["tao"]},"application/vnd.tcpdump.pcap":{exts:["pcap","cap","dmp"]},"application/vnd.tmobile-livetv":{exts:["tmo"]},"application/vnd.trid.tpt":{exts:["tpt"]},"application/vnd.triscape.mxs":{exts:["mxs"]},"application/vnd.trueapp":{exts:["tra"]},"application/vnd.ufdl":{exts:["ufd","ufdl"]},"application/vnd.uiq.theme":{exts:["utz"]},"application/vnd.umajin":{exts:["umj"]},"application/vnd.unity":{exts:["unityweb"]},"application/vnd.uoml+xml":{exts:["uoml"]},"application/vnd.vcx":{exts:["vcx"]},"application/vnd.visio":{exts:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{exts:["vis"]},"application/vnd.vsf":{exts:["vsf"]},"application/vnd.wap.wbxml":{exts:["wbxml"]},"application/vnd.wap.wmlc":{exts:["wmlc"]},"application/vnd.wap.wmlscriptc":{exts:["wmlsc"]},"application/vnd.webturbo":{exts:["wtb"]},"application/vnd.wolfram.player":{exts:["nbp"]},"application/vnd.wordperfect":{exts:["wpd"]},"application/vnd.wqd":{exts:["wqd"]},"application/vnd.wt.stf":{exts:["stf"]},"application/vnd.xara":{exts:["xar"]},"application/vnd.xfdl":{exts:["xfdl"]},"application/vnd.yamaha.hv-dic":{exts:["hvd"]},"application/vnd.yamaha.hv-script":{exts:["hvs"]},"application/vnd.yamaha.hv-voice":{exts:["hvp"]},"application/vnd.yamaha.openscoreformat":{exts:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{exts:["osfpvg"]},"application/vnd.yamaha.smaf-audio":{exts:["saf"]},"application/vnd.yamaha.smaf-phrase":{exts:["spf"]},"application/vnd.yellowriver-custom-menu":{exts:["cmp"]},"application/vnd.zul":{exts:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{exts:["zaz"]},"application/voicexml+xml":{exts:["vxml"]},"application/widget":{exts:["wgt"]},"application/winhlp":{exts:["hlp"]},"application/wsdl+xml":{exts:["wsdl"]},"application/wspolicy+xml":{exts:["wspolicy"]},"application/x-7z-compressed":{exts:["7z"]},"application/x-abiword":{exts:["abw"]},"application/x-ace-compressed":{exts:["ace"]},"application/x-apple-diskimage":{exts:["dmg"]},"application/x-authorware-bin":{exts:["aab","x32","u32","vox"]},"application/x-authorware-map":{exts:["aam"]},"application/x-authorware-seg":{exts:["aas"]},"application/x-bcpio":{exts:["bcpio"]},"application/x-bittorrent":{exts:["torrent"]},"application/x-blorb":{exts:["blb","blorb"]},"application/x-bzip":{exts:["bz"]},"application/x-bzip2":{exts:["bz2","boz"]},"application/x-cbr":{exts:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{exts:["vcd"]},"application/x-cfs-compressed":{exts:["cfs"]},"application/x-chat":{exts:["chat"]},"application/x-chess-pgn":{exts:["pgn"]},"application/x-conference":{exts:["nsc"]},"application/x-cpio":{exts:["cpio"]},"application/x-csh":{exts:["csh"]},"application/x-debian-package":{exts:["deb","udeb"]},"application/x-dgc-compressed":{exts:["dgc"]},"application/x-director":{exts:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{exts:["wad"]},"application/x-dtbncx+xml":{exts:["ncx"]},"application/x-dtbook+xml":{exts:["dtb"]},"application/x-dtbresource+xml":{exts:["res"]},"application/x-dvi":{exts:["dvi"]},"application/x-envoy":{exts:["evy"]},"application/x-eva":{exts:["eva"]},"application/x-font-bdf":{exts:["bdf"]},"application/x-font-ghostscript":{exts:["gsf"]},"application/x-font-linux-psf":{exts:["psf"]},"application/x-font-otf":{exts:["otf"]},"application/x-font-pcf":{exts:["pcf"]},"application/x-font-snf":{exts:["snf"]},"application/x-font-ttf":{exts:["ttf","ttc"]},"application/x-font-type1":{exts:["pfa","pfb","pfm","afm"]},"application/font-woff":{exts:["woff"]},"application/x-freearc":{exts:["arc"]},"application/x-futuresplash":{exts:["spl"]},"application/x-gca-compressed":{exts:["gca"]},"application/x-glulx":{exts:["ulx"]},"application/x-gnumeric":{exts:["gnumeric"]},"application/x-gramps-xml":{exts:["gramps"]},"application/x-gtar":{exts:["gtar"]},"application/x-hdf":{exts:["hdf"]},"application/x-install-instructions":{exts:["install"]},"application/x-iso9660-image":{exts:["iso"]},"application/x-java-jnlp-file":{exts:["jnlp"]},"application/x-latex":{exts:["latex"]},"application/x-lzh-compressed":{exts:["lzh","lha"]},"application/x-mie":{exts:["mie"]},"application/x-mobipocket-ebook":{exts:["prc","mobi"]},"application/x-ms-application":{exts:["application"]},"application/x-ms-shortcut":{exts:["lnk"]},"application/x-ms-wmd":{exts:["wmd"]},"application/x-ms-wmz":{exts:["wmz"]},"application/x-ms-xbap":{exts:["xbap"]},"application/x-msaccess":{exts:["mdb"]},"application/x-msbinder":{exts:["obd"]},"application/x-mscardfile":{exts:["crd"]},"application/x-msclip":{exts:["clp"]},"application/x-msdownload":{exts:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{exts:["mvb","m13","m14"]},"application/x-msmetafile":{exts:["wmf","wmz","emf","emz"]},"application/x-msmoney":{exts:["mny"]},"application/x-mspublisher":{exts:["pub"]},"application/x-msschedule":{exts:["scd"]},"application/x-msterminal":{exts:["trm"]},"application/x-mswrite":{exts:["wri"]},"application/x-netcdf":{exts:["nc","cdf"]},"application/x-nzb":{exts:["nzb"]},"application/x-pkcs12":{exts:["p12","pfx"]},"application/x-pkcs7-certificates":{exts:["p7b","spc"]},"application/x-pkcs7-certreqresp":{exts:["p7r"]},"application/x-rar-compressed":{exts:["rar"]},"application/x-research-info-systems":{exts:["ris"]},"application/x-sh":{exts:["sh"]},"application/x-shar":{exts:["shar"]},"application/x-shockwave-flash":{exts:["swf"]},"application/x-silverlight-app":{exts:["xap"]},"application/x-sql":{exts:["sql"]},"application/x-stuffit":{exts:["sit"]},"application/x-stuffitx":{exts:["sitx"]},"application/x-subrip":{exts:["srt"]},"application/x-sv4cpio":{exts:["sv4cpio"]},"application/x-sv4crc":{exts:["sv4crc"]},"application/x-t3vm-image":{exts:["t3"]},"application/x-tads":{exts:["gam"]},"application/x-tar":{exts:["tar"]},"application/x-tcl":{exts:["tcl"]},"application/x-tex":{exts:["tex"]},"application/x-tex-tfm":{exts:["tfm"]},"application/x-texinfo":{exts:["texinfo","texi"]},"application/x-tgif":{exts:["obj"]},"application/x-ustar":{exts:["ustar"]},"application/x-wais-source":{exts:["src"]},"application/x-x509-ca-cert":{exts:["der","crt"]},"application/x-xfig":{exts:["fig"]},"application/x-xliff+xml":{exts:["xlf"]},"application/x-xpinstall":{exts:["xpi"]},"application/x-xz":{exts:["xz"]},"application/x-zmachine":{exts:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/xaml+xml":{exts:["xaml"]},"application/xcap-diff+xml":{exts:["xdf"]},"application/xenc+xml":{exts:["xenc"]},"application/xhtml+xml":{exts:["xhtml","xht"]},"application/xml":{exts:["xml","xsl"]},"application/xml-dtd":{exts:["dtd"]},"application/xop+xml":{exts:["xop"]},"application/xproc+xml":{exts:["xpl"]},"application/xslt+xml":{exts:["xslt"]},"application/xspf+xml":{exts:["xspf"]},"application/xv+xml":{exts:["mxml","xhvml","xvml","xvm"]},"application/yang":{exts:["yang"]},"application/yin+xml":{exts:["yin"]},"application/zip":{exts:["zip"]},"audio/3gpp":{exts:["3gpp"],badge:"3GPP"},"audio/3gpp2":{exts:["3gpp2"],badge:"3GPP"},"audio/aac":{exts:["aac"],badge:"AAC"},"audio/aacp":{exts:["aacp"],badge:"AAC"},"audio/adpcm":{exts:["adp"]},"audio/aif":{exts:["aif"],badge:"AIF"},"audio/basic":{exts:["au","snd"]},"audio/m4a":{exts:["m4a"],badge:"M4A"},"audio/midi":{exts:["mid","midi","kar","rmi"]},"audio/mp3":{exts:["mp3"],badge:"MP3"},"audio/mp4":{exts:["mp4a"]},"audio/mpeg":{exts:["mpga","mp2","mp2a","m2a"],badge:"MP2"},"audio/mpeg3":{exts:["mp3","m3a"],badge:"MP3"},"audio/ogg":{exts:["oga","ogg","spx"]},"audio/s3m":{exts:["s3m"]},"audio/silk":{exts:["sil"]},"audio/vnd.dece.audio":{exts:["uva","uvva"]},"audio/vnd.digital-winds":{exts:["eol"]},"audio/vnd.dra":{exts:["dra"]},"audio/vnd.dts":{exts:["dts"]},"audio/vnd.dts.hd":{exts:["dtshd"]},"audio/vnd.lucent.voice":{exts:["lvp"]},"audio/vnd.ms-playready.media.pya":{exts:["pya"]},"audio/vnd.nuera.ecelp4800":{exts:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{exts:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{exts:["ecelp9600"]},"audio/vnd.rip":{exts:["rip"]},"audio/wav":{exts:["wav"],badge:"WAV"},"audio/webm":{exts:["weba"]},"audio/x-aac":{exts:["aac"],badge:"AAC"},"audio/x-aiff":{exts:["aiff","aifc"],badge:"AIFF"},"audio/x-caf":{exts:["caf"]},"audio/x-flac":{exts:["flac"]},"audio/x-matroska":{exts:["mka"]},"audio/x-mpegurl":{exts:["m3u"]},"audio/x-ms-wax":{exts:["wax"]},"audio/x-ms-wma":{exts:["wma"]},"audio/x-pn-realaudio":{exts:["ram","ra"]},"audio/x-pn-realaudio-plugin":{exts:["rmp"]},"audio/x-wav":{exts:["wav"]},"audio/xm":{exts:["xm"]},"chemical/x-cdx":{exts:["cdx"]},"chemical/x-cif":{exts:["cif"]},"chemical/x-cmdf":{exts:["cmdf"]},"chemical/x-cml":{exts:["cml"]},"chemical/x-csml":{exts:["csml"]},"chemical/x-xyz":{exts:["xyz"]},"document/vnd.adobe.cpsd+dcx":{exts:["psdc"],badge:"Ps"},"document/vnd.adobe.illustrator+dcx":{exts:["aic"],badge:"Ai"},"image/bmp":{exts:["bmp"],badge:"BMP"},"image/cgm":{exts:["cgm"]},"image/dng":{exts:["dng"],badge:"DNG"},"image/g3fax":{exts:["g3"]},"image/gif":{exts:["gif"],badge:"GIF"},"image/heic":{exts:["heic"],badge:"HEIC"},"image/heif":{exts:["heif"],badge:"HEIF"},"image/ief":{exts:["ief"]},"image/jpeg":{exts:["jpeg","jpg","jpe"],badge:"JPEG"},"image/jpg":{exts:["jpeg","jpg"],badge:"JPG"},"image/ktx":{exts:["ktx"]},"image/png":{exts:["png"],badge:"PNG"},"image/prs.btif":{exts:["btif"]},"image/sgi":{exts:["sgi"]},"image/svg+xml":{exts:["svg","svgz"],badge:"SVG"},"image/tiff":{exts:["tiff","tif"],badge:"TIFF"},"image/vnd.adobe.photoshop":{exts:["psd"],badge:"Ps"},"image/vnd.adobe.photoshop.template":{exts:["psdt"],badge:"Ps"},"image/vnd.adobe.pattern+png":{exts:["png"]},"image/vnd.adobe.shape+svg":{exts:["shape"],badge:"SVG"},"image/vnd.dece.graphic":{exts:["uvi","uvvi","uvg","uvvg"]},"image/vnd.dvb.subtitle":{exts:["sub"]},"image/vnd.djvu":{exts:["djvu","djv"]},"image/vnd.dwg":{exts:["dwg"]},"image/vnd.dxf":{exts:["dxf"]},"image/vnd.fastbidsheet":{exts:["fbs"]},"image/vnd.fpx":{exts:["fpx"]},"image/vnd.fst":{exts:["fst"]},"image/vnd.fujixerox.edmics-mmr":{exts:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{exts:["rlc"]},"image/vnd.ms-modi":{exts:["mdi"]},"image/vnd.ms-photo":{exts:["wdp"]},"image/vnd.net-fpx":{exts:["npx"]},"image/vnd.radiance":{exts:["hdr"]},"image/vnd.wap.wbmp":{exts:["wbmp"]},"image/vnd.xiff":{exts:["xif"]},"image/webp":{exts:["webp"]},"image/x-3ds":{exts:["3ds"]},"image/x-adobe-dng":{exts:["dng"],badge:"DNG"},"image/x-adobe-photoshop-brush":{exts:["abr"]},"image/x-cmu-raster":{exts:["ras"]},"image/x-cmx":{exts:["cmx"]},"image/x-freehand":{exts:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{exts:["ico"]},"image/x-mrsid-image":{exts:["sid"]},"image/x-pcx":{exts:["pcx"]},"image/x-pict":{exts:["pic","pct"]},"image/x-portable-anymap":{exts:["pnm"]},"image/x-portable-bitmap":{exts:["pbm"]},"image/x-portable-graymap":{exts:["pgm"]},"image/x-portable-pixmap":{exts:["ppm"]},"image/x-rgb":{exts:["rgb"]},"image/x-tga":{exts:["tga"]},"image/x-xbitmap":{exts:["xbm"]},"image/x-xpixmap":{exts:["xpm"]},"image/x-xwindowdump":{exts:["xwd"]},"message/rfc822":{exts:["eml","mime"]},"model/gltf-binary":{exts:["glb"]},"model/gltf+json":{exts:["gltf"]},"model/iges":{exts:["igs","iges"]},"model/mesh":{exts:["msh","mesh","silo"]},"model/vnd.usdz+zip":{exts:["usdz"]},"model/vnd.adobe.dn+dcx":{exts:["dn"]},"model/vnd.adobe.dn+dcxucf":{exts:["dn"]},"model/vnd.collada+xml":{exts:["dae"]},"model/vnd.dwf":{exts:["dwf"]},"model/vnd.gdl":{exts:["gdl"]},"model/vnd.gtw":{exts:["gtw"]},"model/vnd.mts":{exts:["mts"]},"model/vnd.vtu":{exts:["vtu"]},"model/vrml":{exts:["wrl","vrml"]},"model/x3d+binary":{exts:["x3db","x3dbz"]},"model/x3d+vrml":{exts:["x3dv","x3dvz"]},"model/x3d+xml":{exts:["x3d","x3dz"]},"text/cache-manifest":{exts:["appcache"]},"text/calendar":{exts:["ics","ifb"]},"text/css":{exts:["css"]},"text/csv":{exts:["csv"]},"text/html":{exts:["html","htm"]},"text/n3":{exts:["n3"]},"text/plain":{exts:["txt","text","conf","def","list","log","in"]},"text/prs.lines.tag":{exts:["dsc"]},"text/richtext":{exts:["rtx"]},"text/sgml":{exts:["sgml","sgm"]},"text/tab-separated-values":{exts:["tsv"]},"text/troff":{exts:["t","tr","roff","man","me","ms"]},"text/turtle":{exts:["ttl"]},"text/uri-list":{exts:["uri","uris","urls"]},"text/vcard":{exts:["vcard"]},"text/vnd.curl":{exts:["curl"]},"text/vnd.curl.dcurl":{exts:["dcurl"]},"text/vnd.curl.scurl":{exts:["scurl"]},"text/vnd.curl.mcurl":{exts:["mcurl"]},"text/vnd.dvb.subtitle":{exts:["sub"]},"text/vnd.fly":{exts:["fly"]},"text/vnd.fmi.flexstor":{exts:["flx"]},"text/vnd.graphviz":{exts:["gv"]},"text/vnd.in3d.3dml":{exts:["3dml"]},"text/vnd.in3d.spot":{exts:["spot"]},"text/vnd.sun.j2me.app-descriptor":{exts:["jad"]},"text/vnd.wap.wml":{exts:["wml"]},"text/vnd.wap.wmlscript":{exts:["wmls"]},"text/x-asm":{exts:["s","asm"]},"text/x-c":{exts:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-fortran":{exts:["f","for","f77","f90"]},"text/x-java-source":{exts:["java"]},"text/x-opml":{exts:["opml"]},"text/x-pascal":{exts:["p","pas"]},"text/x-nfo":{exts:["nfo"]},"text/x-setext":{exts:["etx"]},"text/x-sfv":{exts:["sfv"]},"text/x-uuencode":{exts:["uu"]},"text/x-vcalendar":{exts:["vcs"]},"text/x-vcard":{exts:["vcf"]},"video/3gpp":{exts:["3gp"]},"video/3gpp2":{exts:["3g2"]},"video/h261":{exts:["h261"]},"video/h263":{exts:["h263"]},"video/h264":{exts:["h264"]},"video/jpeg":{exts:["jpgv"]},"video/jpm":{exts:["jpm","jpgm"]},"video/mj2":{exts:["mj2","mjp2"]},"video/mp4":{exts:["mp4","mp4v","mpg4"],badge:"MP4"},"video/mpeg":{exts:["mpeg","mpg","mpe","m1v","m2v"],badge:"MPEG"},"video/ogg":{exts:["ogv"]},"video/quicktime":{exts:["mov","qt"],badge:"MOV"},"video/vnd.dece.hd":{exts:["uvh","uvvh"]},"video/vnd.dece.mobile":{exts:["uvm","uvvm"]},"video/vnd.dece.pd":{exts:["uvp","uvvp"]},"video/vnd.dece.sd":{exts:["uvs","uvvs"]},"video/vnd.dece.video":{exts:["uvv","uvvv"]},"video/vnd.dvb.file":{exts:["dvb"]},"video/vnd.fvt":{exts:["fvt"]},"video/vnd.mpegurl":{exts:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{exts:["pyv"]},"video/vnd.uvvu.mp4":{exts:["uvu","uvvu"]},"video/vnd.vivo":{exts:["viv"]},"video/webm":{exts:["webm"]},"video/x-f4v":{exts:["f4v"]},"video/x-fli":{exts:["fli"]},"video/x-flv":{exts:["flv"]},"video/x-m4v":{exts:["m4v"]},"video/x-matroska":{exts:["mkv","mk3d","mks"]},"video/x-mng":{exts:["mng"]},"video/x-ms-asf":{exts:["asf","asx","wmv"],badge:"WMV"},"video/x-ms-vob":{exts:["vob"]},"video/x-ms-wm":{exts:["wm"]},"video/x-ms-wmv":{exts:["wmv"],badge:"WMV"},"video/x-ms-wmx":{exts:["wmx"]},"video/x-ms-wvx":{exts:["wvx"]},"video/x-msvideo":{exts:["avi"]},"video/x-quicktime":{exts:["mov"],badge:"MOV"},"video/x-sgi-movie":{exts:["movie"]},"video/x-smv":{exts:["smv"]},"x-conference/x-cooltalk":{exts:["ice"]},"3d/vnd.adobe.dn+dcxucf":{exts:["dn"]}},Ow=new Set(["application/x-indesign","application/postscript","application/illustrator","application/pdf","application/vnd.adobe.psremix","application/vnd.adobe.pstouch","application/vnd.adobe.ideas","application/vnd.adobe.ase","image/jpeg","image/jpg","image/pjpeg","image/tiff","image/gif","image/bmp","image/x-ms-bmp","image/svg+xml","image/png","image/x-png","image/jp2","image/psd","image/vnd.adobe.photoshop","image/heic","application/photoshop","application/x-photoshop","image/raw","image/dng","image/x-adobe-dng","video/mp4","video/mpeg","video/x-ms-wmv","video/3gpp","video/3gpp2","video/quicktime","video/x-msvideo","video/x-flv","video/x-ms-asf","video/x-m4v","video/mp2t","application/mxf","application/x-shockwave-flash","application/vnd.adobe.brushes.brush+ucf","application/vnd.adobe.collage","application/vnd.adobe.proto","application/msword","application/msexcel","application/mspowerpoint","application/vnd.ms-publisher","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","text/plain","text/rtf","application/illustrator.template","application/vnd.adobe.indesign.template","application/vnd.adobe.photoshop.template","image/vnd.adobe.photoshop.template"]),Sw={};function Tw(e){var t;return e?(null===(t=Lw[e.toLowerCase()])||void 0===t?void 0:t.exts)||function(e){const t=e.match(/application\/x-adobe-libraries-(.+)/);return t?[t[1]]:[]}(e.toLowerCase()):[]}function Pw(e){return e?Sw[e.toLowerCase()]||function(e){return[`application/x-adobe-libraries-${e}`]}(e.toLowerCase()):[]}function Iw(e){return Ow.has(e)}Object.keys(Lw).forEach((e=>{Lw[e].exts.forEach((t=>{Sw[t]=Sw[t]||[],Sw[t].push(e)}))}));const Aw=[1,1,2,3,5,8,13,21,34,55],Cw=10485760,kw=[45623,45625],Dw=[15e3,3e4],Nw=Dw.length,Rw=5242880,Mw={photoshop:"TOOLKIT_NAME_PHOTOSHOP",photoshop_swatches:"TOOLKIT_NAME_PHOTOSHOP_SWATCHES",photoshop_brushes:"TOOLKIT_NAME_PHOTOSHOP_BRUSHES",photoshop_gradients:"TOOLKIT_NAME_PHOTOSHOP_GRADIENTS",photoshop_patterns:"TOOLKIT_NAME_PHOTOSHOP_PATTERNS",photoshop_styles:"TOOLKIT_NAME_PHOTOSHOP_STYLES",photoshop_shapes:"TOOLKIT_NAME_PHOTOSHOP_SHAPES",photoshop_swatches_prerelease:"TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR",photoshop_brushes_prerelease:"TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR",photoshop_gradients_prerelease:"TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR",photoshop_patterns_prerelease:"TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR",photoshop_styles_prerelease:"TOOLKIT_NAME_PHOTOSHOP_STYLES_PR",photoshop_shapes_prerelease:"TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR"},jw={IMAGE_ELEMENT_TYPE:"application/vnd.adobe.element.image+dcx",COLOR_ELEMENT_TYPE:"application/vnd.adobe.element.color+dcx",COLOR_THEME_ELEMENT_TYPE:"application/vnd.adobe.element.colortheme+dcx",BRUSH_ELEMENT_TYPE:"application/vnd.adobe.element.brush+dcx",CHARACTER_STYLE_ELEMENT_TYPE:"application/vnd.adobe.element.characterstyle+dcx",PARAGRAPH_STYLE_ELEMENT_TYPE:"application/vnd.adobe.element.paragraphstyle+dcx",FONT_ELEMENT_TYPE:"application/vnd.adobe.element.font+dcx",LAYER_STYLE_ELEMENT_TYPE:"application/vnd.adobe.element.layerstyle+dcx",LOOK_ELEMENT_TYPE:"application/vnd.adobe.element.look+dcx",CAPSULE_ELEMENT_TYPE:"application/vnd.adobe.element.graphic+dcx",VIDEO_ELEMENT_TYPE:"application/vnd.adobe.element.video+dcx",THREE_D_ELEMENT_TYPE:"application/vnd.adobe.element.3d+dcx",LIGHT_ELEMENT_TYPE:"application/vnd.adobe.element.light+dcx",MATERIAL_ELEMENT_TYPE:"application/vnd.adobe.element.material+dcx",PATTERN_ELEMENT_TYPE:"application/vnd.adobe.element.pattern+dcx",TEMPLATE_ELEMENT_TYPE:"application/vnd.adobe.element.template+dcx",TEXT_ELEMENT_TYPE:"application/vnd.adobe.element.text+dcx",ANIMATION_ELEMENT_TYPE:"application/vnd.adobe.element.animation+dcx",LIBRARY_TYPE:"application/vnd.adobe.library+dcx",GRADIENT_ELEMENT_TYPE:"application/vnd.adobe.element.gradient+dcx",COMPONENT_ELEMENT_TYPE:"application/vnd.adobe.element.component+dcx",AUDIO_ELEMENT_TYPE:"application/vnd.adobe.element.audio+dcx",ML_MODEL_ELEMENT_TYPE:"application/vnd.adobe.element.mlmodel+dcx"},Fw=/^application\/vnd\.adobe\.element\.(.*)\+dcx$/,Zw={ACCC:"Creative Cloud Desktop",AEFT:"After Effects",CCX:"CCX",DRWV:"Dreamweaver",Figma:"Figma",FLPR:"FlashPro",FRED:"Fred",GoogleSlides:"Google Slides",IDSN:"InDesign",ILST:"Illustrator",ILST_UXP:"Illustrator",KBRG:"Bridge",PHXS:"Photoshop",PHXS_UXP:"Photoshop",PowerPoint:"Microsoft PowerPoint",PPRO:"Premiere Pro",SPRK:"XD",STGR:"Stager",StyleGuide:"Style Guide",Word:"Microsoft Word"},Bw={MAX_ELEMENTS:1e4,MAX_REMOVED_ELEMENTS:2e3,MAX_COMPONENT_SIZE:1073741824,DL_NAMESPACE:"library",VALID_RELATIONS:["primary","rendition","alternate"],DEFAULT_GROUP_CLASSIFIER:"$default",ELEMENT_ACTIONS:["edit","openStock","editInSource"],LIBRARY_ACTIONS:["editInSource"],DOCUMENT_LIBRARY_ACTION_PRODUCT_MAP:{types:{"application/vnd.adobe.xd.cloudproject+dcx":["SPKR"]},products:{}},ELEMENT_ACTION_PRODUCT_MAP:{types:{"application/vnd.adobe.element.image+dcx":{"application/illustrator":["ILST_EDIT","ILST_PLACE","IDSN_PLACE"],"image/svg+xml":["ILST_EDIT","ILST_PLACE"],"application/vnd.adobe.indesign-idms":["IDSN_EDIT","IDSN_PLACE"],"image/vnd.adobe.photoshop":["PHXS_EDIT","PHXS_PLACE","IDSN_PLACE"],"application/photoshop":["PHXS_EDIT","PHXS_PLACE","IDSN_PLACE"],"application/photoshop.large":["PHXS_EDIT","PHXS_PLACE","IDSN_PLACE"],"image/png":["PHXS_EDIT","PHXS_PLACE","ILST_PLACE","IDSN_PLACE","PPRO_PLACE","AEFT_PLACE"],"image/jpeg":["PHXS_EDIT","PHXS_PLACE","ILST_PLACE","IDSN_PLACE","PPRO_PLACE","AEFT_PLACE"],"image/jpg":["PHXS_EDIT","PHXS_PLACE","IDSN_PLACE","ILST_PLACE","PPRO_PLACE","AEFT_PLACE"],"image/gif":["PHXS_EDIT","PHXS_PLACE","ILST_PLACE","IDSN_PLACE","PPRO_PLACE","AEFT_PLACE"],"image/bmp":["PHXS_EDIT","PHXS_PLACE","ILST_PLACE","IDSN_PLACE","PPRO_PLACE","AEFT_PLACE"],"image/x-portable-bitmap":["PHXS_EDIT","PHXS_PLACE"],"image/x-pict":["PHXS_EDIT","PHXS_PLACE"],"image/x-pcx":["PHXS_EDIT","PHXS_PLACE"],"image/x-portable-graymap":["PHXS_EDIT","PHXS_PLACE"],"image/x-portable-anymap":["PHXS_EDIT","PHXS_PLACE"],"image/x-portable-pixmap":["PHXS_EDIT","PHXS_PLACE"],"image/x-tga":["PHXS_EDIT","PHXS_PLACE"],"image/tiff":["PHXS_EDIT","PHXS_PLACE"],"image/vnd.wap.wbmp":["PHXS_EDIT","PHXS_PLACE"]},"application/vnd.adobe.element.text+dcx":{"application/illustrator-text":["ILST_EDIT_TEXT"],"application/vnd.adobe.indesign-idms-text":["IDSN_EDIT_TEXT"]},"application/vnd.adobe.element.template+dcx":{"image/vnd.adobe.photoshop.template":["PHXS_PLACE"],"application/illustrator.template":["ILST_PLACE"],"application/vnd.adobe.indesign.template":["IDSN_PLACE"]},"application/vnd.adobe.element.3d+dcx":{"application/vnd.adobe.obj.3d+zip":["ESHR_PLACE"]},"application/vnd.adobe.element.material+dcx":{"application/vnd.adobe.mdl.material+zip":["ESHR_PLACE"]},"application/vnd.adobe.element.light+dcx":{"application/vnd.adobe.ibl.light+zip":["ESHR_PLACE"]},"application/vnd.adobe.element.animation+dcx":{"application/vnd.adobe.animate-xfl+zip":["FLPR_EDIT"],"application/vnd.adobe.animate-sym+zip":["FLPR_EDIT"]}},products:{}},VECTOR_RENDITION_ELEMENT_TYPES:["application/illustrator"],ANALYTICS_ENABLED:!1,DEVICE_DESCRIPTION:!1},Gw="cclibraries",Uw="LIBS",Hw=JSON.stringify({apiVersion:12}),zw=["start","limit","selector","type","orderBy","group","owner"],Vw={OK:200,CREATED:201,ACCEPTED:202,NO_CONTENT:204,MULTIPLE_CHOICES:300,BAD_REQUEST:400,UNAUTHORIZED:401,FORBIDDEN:403,NOT_FOUND:404,CONFLICT:409,PRECONDITION_FAILED:412,UNSUPPOERTED_MEDIA_TYPE:415,IM_A_TEAPOT:418,INTERNAL_SERVER_ERROR:500,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503},Yw="AbortError",Ww="@PLACEHOLDER-[a-f0-9]{8}-(?:[a-f0-9]{4}-){3}[a-f0-9]{12}",Kw=new RegExp(`^${Ww}$`),$w=new RegExp(`(${Ww})`),qw=()=>`@PLACEHOLDER-${br.v4()}`,Xw=e=>Kw.test(e),Jw=e=>Object.assign({ownership:"private",groups:[],elements:[],documentationElements:[],deletable:!0,removedElements:[],areElementsLoaded:!0,isLibraryLoaded:!0,isWritable:!0,isParentWritable:!0,details:{elementCount:0,documentationElementCount:0,removedElementCount:0},removeType:"delete"},e);function Qw(e){try{if(e&&"object"==typeof e&&!Array.isArray(e))return e;const t=JSON.parse(e);if(t&&"object"==typeof t&&!Array.isArray(t))return t}catch(e){return}}function ex(e){const t=rx(e);return t?JSON.stringify(t,Object.keys(t).sort()):""}const tx=new RegExp("([^/]+);node=(.*)");function rx(e){return Qw(e)||function(e){const t=e.match(tx);if(!t)return;const r=le(t,3);return{"dc:format":"application/vnd.adobe.library+dcx","stRef:documentID":r[1],"stRef:fromPart":`id=${r[2]}`}}(e)}function nx(e){var t;const r=rx(e);if(r)return{libraryAssetId:r["repo:assetId"],libraryId:r["stRef:documentID"],elementId:null===(t=r["stRef:fromPart"])||void 0===t?void 0:t.substring(3)}}function ix(e){const t=e&&e.replace(/^.*[\\/]/,""),r=t?t.lastIndexOf("."):-1;if(-1!==r)return t.substr(r+1).toLowerCase()}function ox(e){return le(Pw(ix(e))||[],1)[0]||"application/octet-stream"}function ax(e){e.sort(((e,t)=>t.size-e.size));const t=Math.ceil(e.length/6);return e.splice(0,t).reduce(((e,t)=>e+Math.round(t.size/1024*2.5)),0)}function sx(e){return new Promise((t=>{const r=new FileReader;r.onload=e=>{var r;const n=new Image;n.onload=()=>{t({width:n.width,height:n.height})},n.onerror=()=>{t(void 0)},n.src=null===(r=e.target)||void 0===r?void 0:r.result},r.readAsDataURL(e)}))}function cx(e,t){return lx.apply(this,arguments)}function lx(){return(lx=me(he().mark((function e(t,r){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Iw(r)){e.next=2;break}return e.abrupt("return");case 2:if(e.prev=2,"undefined"==typeof window||!window.FileReader||!window.Image){e.next=7;break}return e.abrupt("return",sx(t));case 7:return e.abrupt("return");case 8:e.next=13;break;case 10:return e.prev=10,e.t0=e.catch(2),e.abrupt("return");case 13:case"end":return e.stop()}}),e,null,[[2,10]])})))).apply(this,arguments)}class ux extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}const dx=["OPERATION_CANCELLED","EXCEEDS_MAX_LIBRARY_SIZE","THUMBNAIL_NOT_AVAILABLE","RENDITION_NOT_AVAILABLE","URL_VALIDATION_FAILED","CORRUPTED_LIBRARY","TRANSFER_ABORTED","TRANSFER_ERROR","NETWORK_ERROR","EXCEEDS_QUOTA","EXCEEDS_COMPONENT_LIMIT","RETRYABLE_SERVER_ERROR","LOGGED_OUT","FILE_TOO_LARGE","INVALID_DATA","FS_ERROR","OUT_OF_SPACE","ACCESS_DENIED","NOT_ALLOWED","DELETED_LOCALLY","REQUIRES_FILESYSTEM","NOT_SUPPORTED","NOT_IMPLEMENTED","INVALID_PARAMETER","READ_ONLY","CONNECTION_FAILED","REQUEST_FAILED","INVALID_RESPONSE","INVALID_JSON"];class px extends ux{constructor(e,t,r,n){(function(e){const t=e;return!!t.code&&!!t.message})(e)&&(t=e.message,r=e.libraryId,n=e.underlyingError,e=e.code),super(`[${e}] ${t}`),this.code=e,this.libraryId=r,this.underlyingError=n}}class hx{constructor(){this._emitter=new hn}get DANGEROUS(){return{removeAllListeners:e=>(e?this._emitter.removeAllListeners(e):this._emitter.removeAllListeners(),this)}}addListener(e,t){return this._emitter.addListener(e,t),this}on(e,t){return this.addListener(e,t)}once(e,t){return this._emitter.once(e,t),this}removeListener(e,t){return this._emitter.removeListener(e,t),this}off(e,t){return this.removeListener(e,t)}setMaxListeners(e){return this._emitter.setMaxListeners(e),this}getMaxListeners(){return this._emitter.getMaxListeners()}listeners(e){return this._emitter.listeners(e)}rawListeners(e){return this._emitter.rawListeners(e)}emit(e,...t){return this._emitter.emit(e,...t)}listenerCount(e){return this._emitter.listenerCount(e)}prependListener(e,t){return this._emitter.prependListener(e,t),this}prependOnceListener(e,t){return this._emitter.prependOnceListener(e,t),this}eventNames(){return this._emitter.eventNames()}}class fx extends Event{constructor(e,t){super("messageLogged"),this.message=e,this.logLevel=t}}var mx,gx=new class extends hn{_loggerEvent(e,t){this.emit("messageLogged",new fx(`[CCLibs] ${e}`,t))}log(e){this._loggerEvent(e,ec.Info)}warn(e){this._loggerEvent(e,ec.Warn),console.warn(e)}error(e){this._loggerEvent(e,ec.Err),console.error(e)}info(e){this._loggerEvent(e,ec.Info)}debug(e){this._loggerEvent(e,ec.Debug)}};class vx{constructor(e){this.data=e}get config(){return this.data.config}get user(){return this.data.user}get ignoreRenditionGrids(){return this.data.ignoreRenditionGrids}get installedApps(){return this.data.installedApps||[]}get processInfo(){return this.data.processInfo}get environment(){return this.data.environment}get renditionSize(){return this.data.config.RENDITION_SIZES}get fullRenditionConfig(){return this.data.config.FULL_RENDITION_CONFIG}}function yx(e,t){return new Promise(((r,n)=>{const i=()=>{clearTimeout(o),null==t||t.removeEventListener("abort",i),n(new DOMException("Request aborted","AbortError"))},o=setTimeout((()=>{null==t||t.removeEventListener("abort",i),r()}),e);t&&(t.addEventListener("abort",i),t.aborted&&i())}))}function bx(e,...t){for(var r=0,n=t;r<n.length;r++){const t=n[r];for(const r in t)"object"==typeof t[r]&&e[r]?bx(e[r],t[r]):Object.assign(e,{[r]:t[r]})}return e}function _x(e){const t={};return Object.keys(e).forEach((r=>{if("object"==typeof e[r]){const n=_x(e[r]);Object.keys(n).forEach((e=>{t[`${r}.${e}`]=n[e]}))}else t[r]=e[r]})),t}function Ex(e){let t;return function(r,n,i){const o=i.value;i.value=function(...r){clearTimeout(t),t=setTimeout((()=>o.apply(this,r)),e)}}}function wx(e,t){return`CCLibraries_${null==e?void 0:e.id}_${t}`}function xx(e,t){let r;return{future:new Promise(((...n)=>{r=setTimeout(n[e],t)})),cancel:()=>clearTimeout(r)}}!function(e){e[e.RESOLVE=0]="RESOLVE",e[e.REJECT=1]="REJECT"}(mx||(mx={}));const Lx=(...e)=>{const t=new AbortController,r=()=>{t.abort(),e.forEach((e=>e.removeEventListener("abort",r)))};return e.some((e=>e.aborted))?r():e.forEach((e=>e.addEventListener("abort",r))),t.signal},Ox=new class{constructor(){this.signalToReasonMap=new WeakMap}getSignal(e){var t;return null!==(t=e.signal)&&void 0!==t?t:e}reason(e){return this.signalToReasonMap.get(this.getSignal(e))}give(e,t){this.signalToReasonMap.set(this.getSignal(e),t)}};var Sx;function Tx(e){return Px.apply(this,arguments)}function Px(){return Px=me(he().mark((function e(t){var r,n,i,o,a,s,c,l,u;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=[],e.prev=1,s=!0,c=je(t);case 3:return e.next=5,c.next();case 5:if(l=e.sent,r=l.done){e.next=13;break}o=l.value,s=!1;try{u=o,a.push(...u)}finally{s=!0}case 11:e.next=3;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(1),n={error:e.t0};case 18:if(e.prev=18,e.prev=19,s||r||!(i=c.return)){e.next=23;break}return e.next=23,i.call(c);case 23:if(e.prev=23,!n){e.next=26;break}throw n.error;case 26:return e.finish(23);case 27:return e.finish(18);case 28:return e.abrupt("return",a);case 29:case"end":return e.stop()}}),e,null,[[1,15,18,28],[19,,23,27]])}))),Px.apply(this,arguments)}!function(e){e.CONNECTED="connected",e.CONNECTING="connecting",e.LOADING="loading",e.ERROR="error"}(Sx||(Sx={}));class Ix extends hx{constructor(e){super(),this._connector=e,this._isConnected=!1,this._failedConnectionAttempt=!1,this._options={},this._config=new vx({config:{},environment:"production"}),this._cachedFetch=function(e){const t=new Map;return(...r)=>{const n=JSON.stringify(r),i=t.get(n);if(i)return i;const o=e.apply(void 0,r);return t.set(n,o),setTimeout((()=>o.finally((()=>t.delete(n))))),o}}(fetch),this._loadElementsAbortController=new AbortController}get config(){return this._config}get environment(){return this._config.environment}get token(){return this._token}get isConnected(){return this._isConnected}get connectionState(){return this._failedConnectionAttempt?Sx.ERROR:this.isConnected?Sx.CONNECTED:this._connectionPromise?Sx.CONNECTING:Sx.LOADING}resetAbortController(){this._abortController=new AbortController}get abortController(){return this._abortController}init(e={},t=(()=>{}),r=(()=>{})){return this._options=Object.assign(Object.assign({},this._options),e),this.on("connect",t),this.on("disconnect",r),this._options.skipConnectingOnInit?Promise.resolve():this.connect()}get _isConnectingOrConnected(){return Boolean(this._abortController&&!this._abortController.signal.aborted)}connect(){return this._isConnectingOrConnected||(this.resetAbortController(),this._connectionPromise=this._connect(),this.emit("connecting")),this._connectionPromise}_attemptToConnect(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",new Promise(function(){var r=me(he().mark((function r(n){var i,o,a,s,c;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,i=xx(mx.REJECT,1e4),o=i.future,a=i.cancel,s=new AbortController,r.next=5,Promise.race([t._connector(s.signal),o]).finally((()=>{s.abort(),a()}));case 5:if(c=r.sent,!(null==e?void 0:e.aborted)){r.next=8;break}return r.abrupt("return",n(!1));case 8:return r.next=10,t._handleConnected(c);case 10:return t._isConnected=!0,r.abrupt("return",n(!0));case 14:return r.prev=14,r.t0=r.catch(0),r.abrupt("return",n(!1));case 17:case"end":return r.stop()}}),r,null,[[0,14]])})));return function(e){return r.apply(this,arguments)}}()).then((e=>(t._failedConnectionAttempt=!e,t._failedConnectionAttempt&&t.emit("failedConnection"),e))));case 1:case"end":return r.stop()}}),r)})))()}_connect(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=null===(r=e._abortController)||void 0===r?void 0:r.signal,i=0;case 2:return t.next=4,e._attemptToConnect(n);case 4:if(t.sent){t.next=23;break}if(!(void 0!==e._options.retryCount&&e._options.retryCount<=i)){t.next=8;break}return gx.log(`[DRIVER] Failed to connect to server (Attempt: ${i}). Exceeded max retries.`),t.abrupt("return");case 8:return o=1e3*Aw[Math.min(i,Aw.length-1)],gx.log(`[DRIVER] Failed to connect to server (Attempt: ${i}). Will retry in ${o}ms.`),t.prev=10,t.next=13,yx(o,n);case 13:t.next=20;break;case 15:if(t.prev=15,t.t0=t.catch(10),!(t.t0 instanceof Error&&"AbortError"===t.t0.name)){t.next=19;break}return t.abrupt("return");case 19:throw t.t0;case 20:i+=1,t.next=2;break;case 23:e.emit("connect",e);case 24:case"end":return t.stop()}}),t,null,[[10,15]])})))()}disconnect(){var e,t;null===(e=this._abortController)||void 0===e||e.abort(),this._isConnected=!1,this._failedConnectionAttempt=!1,null===(t=this._handleDisconnected)||void 0===t||t.call(this),this.emit("disconnect",this)}reconnect(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return gx.warn("Process restart. Attempting to reconnect"),e.disconnect(),t.next=4,e.connect();case 4:case"end":return t.stop()}}),t)})))()}sleep(e,t){var r,n;return yx(e,t&&(null===(r=this._abortController)||void 0===r?void 0:r.signal)?Lx(t,this._abortController.signal):null===(n=this._abortController)||void 0===n?void 0:n.signal)}getAllLibraries(e,t){return Tx(this.getLibraries(e,t))}getAllElements(e,t,r){return Tx(this.getElements(e,t,r))}getAllDocumentationElements(e,t,r){return Tx(this.getDocumentationElements(e,t,r))}getAllRemovedElements(e,t,r){return Tx(this.getRemovedElements(e,t,r))}getAllGroups(e){return Tx(this.getGroups(e))}publishBrand(e){throw new px("NOT_IMPLEMENTED","Driver.publishBrand is not implemented.")}unpublishBrand(e){throw new px("NOT_IMPLEMENTED","Driver.unpublishBrand is not implemented.")}setRenditionCacheChangeListener(e){}addWatchedLibrary(e){}removeWatchedLibrary(e){}addLibrariesSyncGroupListener(e){}removeLibrariesSyncGroupListener(){}operationFactory(e,t,r){return new e(t,r)}getOperationTypes(e){return this._operationTypes}constructOperation(e){var t;if(0===e.actions.length)return;if(this._options.readOnly)throw new px("NOT_ALLOWED","Cannot perform write action -- in read-only mode.");const r=null===(t=this.getOperationTypes(e))||void 0===t?void 0:t.find((t=>t.supportsAction(e.actions[0])));if(!r)throw new Error;const n=this.operationFactory(r,this,e);var i,o=ue(e.actions);try{for(o.s();!(i=o.n()).done;){const e=i.value;if(!n.addAction(e))break}}catch(e){o.e(e)}finally{o.f()}return n}getLocalSettings(){var e;const t=null!==(e=this._localStorage)&&void 0!==e?e:new Map;return{config:Object.fromEntries(t.entries())}}}class Ax extends hx{constructor(){super(...arguments),this._abortController=new AbortController,this._isComplete=!1,this._progress=0}abort(){this.DANGEROUS.removeAllListeners(),this._abortController.abort()}get isComplete(){return 100===this.progress}get progress(){return this._progress}set progress(e){this._progress=Math.min(e,100)}}class Cx extends ux{static isRequestError(e){return!!e.code}constructor(e,t,r,n){super(`[${e}] ${t}`),this._code=e,this._response=r,this._underlyingError=n}get code(){return this._code}get response(){return this._response}get underlyingError(){return this._underlyingError}set underlyingError(e){this._underlyingError=e}setResponse(e){return this.response?gx.warn("Request Error response reference is already set."):this._response=e,this}}function kx(e,t){return Dx(null==e?void 0:e.status,t).setResponse(e)}function Dx(e,t){switch(e){case 304:return new Cx("NOT_MODIFIED","Response has not changed.");case 401:return new Cx("UNAUTHORIZED","Token expired or invalid");case 403:return new Cx("INVALID_CREDENTIALS","You do not have access to this resource.");case 404:return new Cx("ENOENT"===t?t:"NOT_FOUND","Resource not found");case 408:return new Cx("REQUEST_TIMEOUT","Server could not respond in a timely manner");case 412:return new Cx("PRECONDITION_FAILED","This resource does not match the requisite conditions.");case 422:return new Cx("INVALID_DATA","Library is corrupt, unzipping failed.");case 507:return new Cx("OUT_OF_SPACE","Hard disk ran out of space.");default:return new Cx("GENERIC_ERROR",`Something went wrong: ${e}`)}}function Nx(e){const t=kx(e._additionalInfo.response);return t.underlyingError=e,t}class Rx{constructor(e,t,r,n,i){this.url=e,this.headers=t,this.status=r,this.statusText=n,this._text=i}get ok(){const e=this.status;return e>=Vw.OK&&e<Vw.MULTIPLE_CHOICES}get redirected(){return!1}get type(){return"basic"}json(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.abrupt("return",JSON.parse(e._text));case 4:throw t.prev=4,t.t0=t.catch(0),new px("INVALID_DATA",`Failed to parse JSON response from '${e.url}' async request.`,void 0,t.t0);case 7:case"end":return t.stop()}}),t,null,[[0,4]])})))()}text(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._text);case 1:case"end":return t.stop()}}),t)})))()}get trailer(){throw new px("NOT_IMPLEMENTED","AsyncResponse.trailer not implemented.")}clone(){const e=new Headers;return this.headers.forEach(((t,r)=>e.set(r,t))),new Rx(this.url,e,this.status,this.statusText,this._text)}get bodyUsed(){throw new px("NOT_IMPLEMENTED","AsyncResponse.bodyUsed not implemented.")}get body(){throw new px("NOT_IMPLEMENTED","AsyncResponse.body not implemented.")}arrayBuffer(){return me(he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new px("NOT_IMPLEMENTED","AsyncResponse.arrayBuffer not implemented.");case 1:case"end":return e.stop()}}),e)})))()}blob(){return me(he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new px("NOT_IMPLEMENTED","AsyncResponse.blob not implemented.");case 1:case"end":return e.stop()}}),e)})))()}formData(){return me(he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new px("NOT_IMPLEMENTED","AsyncResponse.formData not implemented.");case 1:case"end":return e.stop()}}),e)})))()}}const Mx=function(){let e=33;const t=["^(["];for(let r=34;r<=127;++r)127!==r&&-1==='()<@,;:"/[]={}'.indexOf(String.fromCharCode(r))||(t.push("\\"+e.toString(8)),e<r-1&&t.push("-\\"+(r-1).toString(8)),e=r+1);return t.push("]+):(.*)$"),new RegExp(t.join(""))}(),jx=/^[^\s]+\s+(\d+)\s*(.*)$/;class Fx{constructor(e){this._text=e,this._index=0}readLine(){const e=this._index,t=this._text,r=t.indexOf("\n",e);if(-1===r)return;this._index=r+1;let n=t.slice(e,r);return n.endsWith("\r")&&(n=n.slice(0,-1)),n}get remainderText(){return this._text.slice(this._index)}}function Zx(e,t){if(!t)throw new px("INVALID_DATA","Invalid async response body.");const r=new Fx(t);let n,i;const o=r.readLine();if(o){const e=o.match(jx);if(!e)throw new px("INVALID_DATA","Invalid status line for async response.");if(n=parseInt(e[1],10),!n)throw new px("INVALID_DATA","Could not find status code for async response.");i=e[2]}else n=Vw.OK,i="";const a=[];let s,c=r.readLine();for(;c;){const e=c.match(Mx);e?(s=e[1],a.push([s,e[2]])):s&&a.push([s,c]),c=r.readLine()}return new Rx(e,new Headers(a),n,i,r.remainderText)}class Bx extends Ax{constructor(e,t){super(),this._driver=e,this._handleResponse(t)}cancel(){this.abort(),this._location&&(this._driver.abortOperation(this._location),this._location=void 0)}get error(){return this._error}_handleResponse(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s,c,l,u;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,e;case 3:if(i=r.sent,![Vw.NO_CONTENT,Vw.OK].includes(i.status)){r.next=17;break}if(t.progress=100,i.status!==Vw.OK){r.next=10;break}return r.next=9,i.text().then((e=>(o=e,Zx("",e)))).then((e=>(s=e.headers,e.json().catch((()=>{}))))).catch((()=>JSON.parse(o))).catch((()=>{gx.error(`Error parsing async response: ${i}`)}));case 9:a=r.sent;case 10:if(!(null==a?void 0:a.exception_code)){r.next=14;break}throw new Cx(a.status,a.message,i,a);case 14:return t.emit("change",!0,a,s),t.DANGEROUS.removeAllListeners(),r.abrupt("return");case 17:if(i.status!==Vw.ACCEPTED){r.next=36;break}return c={},r.prev=19,r.next=22,i.json();case 22:c=r.sent,r.next=27;break;case 25:r.prev=25,r.t0=r.catch(19);case 27:if(c.progress&&(t.progress=c.progress,t.emit("change")),(l=null!==(n=i.headers.get("location"))&&void 0!==n?n:c.href)&&(t._location=l),u=i.headers.get("retry-after")?parseInt(i.headers.get("retry-after"),10):1,t._location){r.next=33;break}throw new Cx("MALFORMED_RESPONSE","Location header is missing from ops monitor response");case 33:return r.next=35,t._driver.sleep(1e3*u,t._abortController.signal);case 35:return r.abrupt("return",t._handleResponse(t._driver.fetch(t._location,{signal:t._abortController.signal})));case 36:throw new Cx("UNEXPECTED_RESPONSE",`Unexpected response from ops monitor: ${i.status}`);case 39:r.prev=39,r.t1=r.catch(0),t._error=r.t1,t.progress=100,t.emit("change",!0),t.DANGEROUS.removeAllListeners();case 45:case"end":return r.stop()}}),r,null,[[0,39],[19,25]])})))()}}var Gx={staging:{hostname:"ccx-melville-stage.adobe.io",invitation_hostname:"invitations-stage.adobe.io",teams_hostname:"ccprojects-stage.adobe.io",platform_hostname:"platform-cs-stage.adobe.io"},production:{hostname:"libraries.adobe.io",invitation_hostname:"invitations.adobe.io",teams_hostname:"ccprojects.adobe.io",platform_hostname:"platform-cs.adobe.io"}};function Ux(e,t,r){const n=r.value;r.value=me(he().mark((function e(...t){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this._actions.length){e.next=2;break}throw new px("NOT_SUPPORTED","Operation must have at least one action to be executed.",this._library.id);case 2:return gx.log(`[OPERATION] Performing ${this._actions.length} actions.`),e.abrupt("return",n.apply(this,t));case 4:case"end":return e.stop()}}),e,this)})))}class Hx{static supportsAction(e){return this.prototype.supportsAction(e)}constructor(e,t){this._actions=[],this._driver=e,this._library=t}addAction(e){return!!this.supportsAction(e)&&(this._actions.push(e),!0)}get actions(){return this._actions}}class zx extends Hx{constructor(){super(...arguments),this._actionMappers={}}get action(){return this._actions[0]}execute(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._actionMappers[e.action.name||""](e.action);case 2:return r=t.sent,t.abrupt("return",{actions:[r]});case 4:case"end":return t.stop()}}),t)})))()}addAction(e){return 1!==this._actions.length&&super.addAction(e)}}Ie([Ux],zx.prototype,"execute",null);const Vx="platform-cs",Yx=["https://platform-cs.adobe.io/index","https://platform-cs-stage.adobe.io/index"],Wx={Priority:"u=1"};function Kx(e){const t=e.split(".");if(3===t.length)try{return JSON.parse(atob(t[1]))}catch(e){return}}function $x(e){const t=Kx(e);if(t)return{user:{id:t.user_id,clientId:t.client_id}}}function qx(e){const t=Kx(e);if(t){const e=Date.now()-parseInt(t.created_at,10);return Math.max(parseInt(t.expires_in,10)-e,0)}}function Xx(e){let t;try{t=new URL(e)}catch(t){return{url:e,headers:{}}}return t.hostname.includes(Vx)?(Yx.includes(e)&&(t.hostname=t.hostname.replace(Vx,"platform-cs-edge")),{url:t.href,headers:Object.assign({},Wx)}):{url:e,headers:{}}}function Jx(e,t=200){const r=e.data.renditionUrl,n=void 0===r?{}:r,i="string"==typeof n?{template:n}:n,o=i.template,a=i.substitutions,s=void 0===a?{}:a;if(o)return Xx(Je(o).fill(Object.assign(Object.assign({},s),{size:`${t}`,type:"image/png"}))).url}function Qx(e){let t;switch(e.type){case"application/vnd.adobe.element.color+dcx":t=e=>{const t=e.representations.map((e=>e.getValue("color","data"))).find((e=>e&&"RGB"===e.mode));if(t)return{id:e.id,type:"application/vnd.adobe.element.color+dcx",rendition:{swatches:[[{alpha:t.alpha,mode:t.mode,type:t.type,value:t.value}]]}}};break;case"application/vnd.adobe.element.colortheme+dcx":t=e=>{const t=e.getPrimaryRepresentation();return t&&{id:e.id,type:"application/vnd.adobe.element.colortheme+dcx",rendition:t.getValue("colortheme","data")}};break;case"application/vnd.adobe.element.gradient+dcx":t=e=>{const t=e.getPrimaryRepresentation();return t&&{id:e.id,type:"application/vnd.adobe.element.gradient+dcx",rendition:t.getValue("gradient","data")}};break;default:t=e=>{let t=Jx(e);if(t||(t=e.getThumbnailURL(202)),t)return{id:e.id,type:"href",rendition:t}}}return t(e)}function eL(e){if(0===e.elements.length)return;const t=[...e.elements].sort(((e,t)=>t.modified-e.modified)),r=[...e.elements].sort(((e,t)=>e.created-t.created));let n=r.find((e=>{if("application/vnd.adobe.element.image+dcx"!==e.type)return;const t=Qx(e);return t&&"href"===t.type}));const i={gridGenerationEtag:e.etag};n&&(i.main=Qx(n));for(let e=0;e<r.length&&!i.main;e++)i.main=Qx(r[e])||void 0,n=i.main&&r[e];i.tiles=[];for(let e=0;e<t.length&&i.tiles.length<3;e++){if(t[e]===n)continue;const r=Qx(t[e]);r&&i.tiles.push(r)}return i}var tL;function rL(e,t=e.manifest.data){var r,n,i,o,a,s,c;const l=null===(r=e.manifest)||void 0===r?void 0:r.etag,u=nL(e,null===(n=t.children)||void 0===n?void 0:n.find((e=>"elements"===e.name))),d=nL(e,null===(i=t.children)||void 0===i?void 0:i.find((e=>"removed_elements"===e.name))),p=nL(e,null===(o=t.children)||void 0===o?void 0:o.find((e=>"documentation_elements"===e.name))),h=null===(a=t.children)||void 0===a?void 0:a.find((e=>"groups"===e.name)),f=(null===(s=null==h?void 0:h.children)||void 0===s?void 0:s.map((e=>({id:e.id,name:e.name,classifier:e["library#classifier"],order:e["library#order"],parentId:e["library#parentId"],sourceRef:e["library#sourceRef"],customData:aL(e)}))))||[],m={id:t.id,name:t.name,etag:l,localizedNames:t["library#localizedName"],toolkitId:t["toolkit#id"],documentId:t["library#documentId"],documentType:t["library#documentType"],createdBy:e.createdBy,modifiedBy:e.modifiedBy,createdDate:e.created.valueOf(),modifiedDate:e.modified.valueOf(),version:t.components&&t.components[0].version,roles:t["library#roles"],description:t["library#description"],details:{elementCount:u.length,documentationElementCount:p.length,removedElementCount:d.length},groups:f,elements:u,documentationElements:p,removedElements:d,customData:aL(t),isLibraryLoaded:!0,areElementsLoaded:!0,appMetadata:null===(c=e.appMetadata)||void 0===c?void 0:c.data};return t.components&&t.components[0].version&&(m.version=t.components[0].version),m}function nL(e,t){var r;return t&&(null===(r=t.children)||void 0===r?void 0:r.map((t=>{const r={id:t.id,name:t.name,isAutoNamed:t["library#autoName"],type:t.type,tags:t.tags||[],dependencyIds:t["library#dependencies"]||[],localizedNames:t["library#localizedName"],createdDate:t["library#created"],createdLocally:!1,createdContext:t["library#createdData"]||{},modifiedDate:t["library#modified"],modifiedLocally:!1,description:t["library#description"],descriptionModifiedLocally:!1,removedLocally:!1,representations:oL(e,t),groups:t["library#groups"]?Object.entries(t["library#groups"]).map((([e,{order:t}])=>{const r=le(e.split("#"),2),n=r[0];return{id:r[1],classifier:n,order:t}})):[],sourceRef:t["library#sourceRef"],roles:t["library#roles"],customData:aL(t)};return function(e,t){var r;const n=e.links[tL.RENDITION],i=null===(r=null==n?void 0:n[0])||void 0===r?void 0:r.href,o=function(e=[]){let t,r=0;var n,i=ue(e);try{for(i.s();!(n=i.n()).done;){const e=n.value,i=e.isFullSize?Number.POSITIVE_INFINITY:Math.max(e.height||0,e.width||0);(!t||e.isPreferredThumbnail&&!t.isPreferredThumbnail||"primary"===e.relationship&&"primary"!==t.relationship||"rendition"===e.relationship&&!["primary","rendition"].includes(null==t?void 0:t.relationship)||"rendition"===e.relationship&&"rendition"===t.relationship&&i>r)&&Iw(e.type)&&(t=e,r=i)}}catch(e){i.e(e)}finally{i.f()}return t}(t.representations);o&&(t.renditionUrl={template:i,substitutions:{fragment:`id=${o.id}`,size:200}})}(e,r),r})))||[]}function iL(e,t){var r;const n=e.links[tL.COMPONENT],i=null===(r=null==n?void 0:n[0])||void 0===r?void 0:r.href,o=i&&Je(i);return null==o?void 0:o.fill({revision:t.version,component_id:t.id})}function oL(e,t){var r,n;return[...(null===(r=t.components)||void 0===r?void 0:r.map((t=>({id:t.id,type:t.type,relationship:t.rel,url:iL(e,t),isFullSize:t["library#isFullSize"]||t["library#isfullSize"],isExternalLink:!1,width:t.width,height:t.height,contentLength:t.length,isPreferredThumbnail:t["library#isPreferredThumbnail"],customData:aL(t)}))))||[],...(null===(n=t.children)||void 0===n?void 0:n.map((e=>({id:e.id,type:e.type,linktype:e["library#linktype"],relationship:e["library#rel"],isFullSize:!1,isExternalLink:!1,customData:aL(e)}))))||[]]}function aL(e){const t={};for(var r=0,n=Object.entries(e);r<n.length;r++){const e=le(n[r],2),i=e[0],o=e[1],a=le(i.split("#"),2),s=a[0],c=a[1];"library"!==s&&c&&(t[i]=o)}return t}function sL(e,t){var r;const n=null===(r=t.links)||void 0===r?void 0:r[tL.MANIFEST].href,i=n?Je(n):void 0;return{id:t.versionId,assetId:e,createdDate:t.created.getTime(),createdBy:t.createdBy,manifestUrl:null==i?void 0:i.fill({})}}function cL(e,t){return{id:t.collaboratorID,assetId:e,imsUserId:t.imsUserId,email:t.email,name:t.name,role:t.role,type:t.type,inheritances:t.inheritances,isDirect:t.isDirect,hasContributorRole:t.hasContributorRole,hasName:t.hasName,invited:t.invited,isAdmin:t.isAdmin}}!function(e){e.DOWNLOAD="http://ns.adobe.com/adobecloud/rel/download",e.MANIFEST="http://ns.adobe.com/adobecloud/rel/manifest",e.APPLICATION="http://ns.adobe.com/adobecloud/rel/metadata/application",e.EMBEDDED="http://ns.adobe.com/adobecloud/rel/metadata/embedded",e.REPOSITORY="http://ns.adobe.com/adobecloud/rel/metadata/repository",e.PRIMARY="http://ns.adobe.com/adobecloud/rel/primary",e.RENDITION="http://ns.adobe.com/adobecloud/rel/rendition",e.COMPONENT="http://ns.adobe.com/adobecloud/rel/component",e.RESOLVE="http://ns.adobe.com/adobecloud/rel/resolve/id",e.BLOCK_INIT="http://ns.adobe.com/adobecloud/rel/block/init",e.BLOCK_TRANSFER="http://ns.adobe.com/adobecloud/rel/block/transfer",e.BLOCK_FINALIZE="http://ns.adobe.com/adobecloud/rel/block/finalize"}(tL||(tL={}));const lL=/^[A-Z0-9]{30}$/,uL=["color#data","colortheme#data","channel#data","imageguideline#data","gradient#data","audio#data","font#data","characterstyle#data","paragraphstyle#data","text#data","3d#data","video#data","pattern#data","candy#data","graphic#data","clio#data","firefly#cme"];function dL(e){return(null==e?void 0:e.id)&&(null==e?void 0:e.storage_href)&&(null==e?void 0:e.asset_id)&&(null==e?void 0:e.type)&&(null==e?void 0:e.content_length)&&(null==e?void 0:e.etag)&&(null==e?void 0:e.version)}function pL(e){var t,r;const n={id:null!==(t=e.elementId)&&void 0!==t?t:br.v4(),name:"temp rendition element",type:e.type,createdDate:Date.now(),modifiedDate:Date.now(),representations:[{id:br.v4(),type:e.rendition_mimetype,relationship:"primary",isFullSize:!1,isExternalLink:!1,isPreferredThumbnail:!0}],groups:[]};switch(e.type){case"application/vnd.adobe.gradient.noise+json":case"href":n.type="application/vnd.adobe.element.image+dcx",n.renditionUrl=e.rendition,n.representations[0].type="image/png",n.representations[0].url=e.rendition;break;case"application/vnd.adobe.color+json":case"application/vnd.adobe.element.color+dcx":n.representations[0].customData={"color#data":null===(r=e.rendition.swatches[0])||void 0===r?void 0:r.find((e=>"RGB"===e.mode))};break;case"application/vnd.adobe.colortheme+json":case"application/vnd.adobe.element.colortheme+dcx":n.representations[0].type="application/vnd.adobe.colortheme+json",n.representations[0].customData={"colortheme#data":e.rendition};break;case"application/vnd.adobe.gradient+json":case"application/vnd.adobe.element.gradient+dcx":n.representations[0].customData={"gradient#data":e.rendition};break;default:return}return n}function hL(e){return"public"===e.ownership&&lL.test(e.id)}function fL(e,t=!1,r=!1){var n,i,o,a;const s=e.manifest_etag||'""',c=!t&&(e=>{const t=e.asset_acl;if(!t)return;const r=t["http://ns.adobe.com/adobecloud/rel/primary"];if(r)return r.includes("write");const n=t["*"];return!!n&&n.includes("write")})(e),l=Object.assign({id:"public"===e.ownership&&(null===(n=e.bookmark)||void 0===n?void 0:n.id)||e.id,name:e.name,ownership:"team"===e.ownership?"incoming":e.ownership,etag:s,version:e.version,default:e.default,localizedNames:e.localized_names,toolkitId:e.toolkit_id,documentId:e.document_id,documentType:e.document_type,createdDate:e.created_date,modifiedDate:e.modified_date,createdBy:e.created_by,modifiedBy:e.modified_by,groups:null===(i=e.groups)||void 0===i?void 0:i.map(gL),details:{elementCount:e.elements_count,documentationElementCount:0,removedElementCount:e.removed_elements_count},appMetadata:e.application_metadata,collaboration:e.collaboration,assetId:e.library_urn,isWritable:c,isParentWritable:!0,removeType:c?"discard":"none",deletable:c,roles:e.roles,description:e.description,owner:null===(o=e.storage_assignee)||void 0===o?void 0:o.id,ownerType:e.ownership?"team"===e.ownership?"org":"user":void 0,customData:aL(e),isLibraryLoaded:!0,publicLinkId:hL(e)?e.id:void 0,bookmark:e.bookmark},r?function(e,t){var r;if(!e||!e.main)return{};const n=pL(e.main),i=(null===(r=e.tiles)||void 0===r?void 0:r.filter(Boolean).map(pL))||[];return{renditionGrid:{main:n?{id:n.id}:void 0,tiles:i.map((e=>e?{id:e.id}:void 0)).filter(Boolean),gridGenerationEtag:t},elements:[n,...i].filter(Boolean)}}(e.rendition_grid,s):{});return(e.workspace_urn||e.parent_assetId)&&(l.team={id:null!==(a=e.workspace_urn)&&void 0!==a?a:e.parent_assetId}),l}function mL(e){var t,r,n,i,o;return{id:e.id,name:e.name,isAutoNamed:e.is_auto_named,type:e.type,tags:e.tags||[],dependencyIds:e.dependency_ids||[],localizedNames:e.localized_names||{},createdDate:e.created_date,createdLocally:!1,createdContext:(null===(t=e.details)||void 0===t?void 0:t.created)||{},modifiedDate:e.modified_date,modifiedLocally:!1,description:null===(r=e.details)||void 0===r?void 0:r.description,descriptionModifiedLocally:!1,removedLocally:!1,representations:(null===(n=e.representations)||void 0===n?void 0:n.map(yL))||[],renditionUrl:"href"===(null===(i=e.thumbnail)||void 0===i?void 0:i.type)&&e.thumbnail.rendition,groups:(null===(o=e.groups)||void 0===o?void 0:o.map(vL))||[],sourceRef:e.sourceRef,roles:e.roles,customData:aL(e)}}function gL(e){return{id:e.id,classifier:e.classifier,name:e.name,order:e.order,parentId:e.parent_id,createdDate:e.created_date,modifiedDate:e.modified_date,sourceRef:e.sourceRef}}function vL(e){return{id:e.id,classifier:e.classifier,order:e.order}}function yL(e){var t,r,n,i;return{id:e.id,type:e.type,linktype:e.linktype,relationship:e.relationship,isFullSize:e.is_full_size,isExternalLink:e.is_external_link,height:e.height,width:e.width,contentLength:e.content_length,url:null===(r=null===(t=e._links)||void 0===t?void 0:t["http://ns.adobe.com/melville/rel/primary"])||void 0===r?void 0:r.href,blockDownloadUrl:null===(i=null===(n=e._links)||void 0===n?void 0:n["http://ns.adobe.com/melville/rel/download"])||void 0===i?void 0:i.href,customData:{"channel#data":e["channel#data"],"imageguideline#data":e["imageguideline#data"],"color#data":e["color#data"],"characterstyle#data":e["characterstyle#data"],"paragraphstyle#data":e["paragraphstyle#data"],"gradient#data":e["gradient#data"],"colortheme#data":e["colortheme#data"],"font#data":e["font#data"],"adobestock#trackingdata":e["adobestock#trackingdata"],"firefly#cme":e["firefly#cme"]}}}function bL(e){return{name:e.name,id:e.id,isWritable:"editor"===e.collaboratorRole,owner:e.repositoryOwner,ownerName:e.repositoryName}}function _L(e){var t;return Object.assign({id:e.id,name:e.name,roles:e.roles,description:e.description,tags:e.tags,sourceRef:e.sourceRef,group:null===(t=e.groups)||void 0===t?void 0:t[0]},xL(e.customData))}function EL(e){return{id:e.id,libraryAssetId:e.parent_id,name:e.name,type:e.type,createdDate:e.created_date,modifiedDate:e.modified_date,renditionUrl:e.thumbnail.rendition,tags:e.tags,roles:e.roles,representations:e.representations.map(yL),groups:(e.groups||[]).map(vL)}}function wL(e){var t,r,n,i,o;const a=dL(e.source)?e.source:void 0;return Object.assign({id:null!==(t=null==a?void 0:a.id)&&void 0!==t?t:e.id,type:null!==(r=null==a?void 0:a.type)&&void 0!==r?r:e.type,relationship:e.relationship,path:e.path,is_full_size:e.isFullSize,is_external_link:e.isExternalLink,width:null!==(n=null==a?void 0:a.width)&&void 0!==n?n:e.width,height:null!==(i=null==a?void 0:a.height)&&void 0!==i?i:e.height,content_length:null!==(o=null==a?void 0:a.content_length)&&void 0!==o?o:e.contentLength,is_preferred_thumbnail:e.isPreferredThumbnail,name:null==a?void 0:a.name,storage_href:null==a?void 0:a.storage_href,asset_id:null==a?void 0:a.asset_id,etag:null==a?void 0:a.etag,md5:null==a?void 0:a.md5,version:null==a?void 0:a.version},xL(e.customData,uL))}function xL(e={},t){const r={};for(var n=0,i=Object.entries(e);n<i.length;n++){const e=le(i[n],2),o=e[0],a=e[1],s=o;!(null==t?void 0:t.includes(s))&&t||(r[s]=a)}return r}function LL(e,t){var r;return Object.assign(Object.assign({},_L(e)),{client:t,type:e.type,representations:null===(r=e.representations)||void 0===r?void 0:r.map(wL)})}function OL(e){return(t,r,n)=>{const i=n.value;return n.value=function(...t){const r=vE.trace.getTracer("cclibraries-jsapi"),n=vE.context.active();return r.startActiveSpan(e,{},n,(e=>{const r=i.apply(this,t);return Promise.resolve(r).then((()=>{e.end()})).catch((()=>{e.end()})),r}))},n}}function SL(e,t){var r;null===(r=vE.trace.getActiveSpan())||void 0===r||r.setAttribute(e,t||"")}const TL=e=>e.map((e=>{const t=e.id,r=e.version,n=Pe(e,["id","version"]);return Object.assign(Object.assign({},n),{"repo:assetId":t,"repo:version":r})})),PL={read:"team_view",all:"team_edit"},IL=["createLibrary","removeLibrary","unfollowLibrary","leaveLibrary","permanentlyDeleteLibrary","copyLibrary","moveLibrary"];class AL extends zx{constructor(){var e,t,r,n,i,o;super(...arguments),e=this,this._actionMappers={createLibrary:e=>this._createLibraryActionMap(e),copyLibrary:e=>this._createLibraryActionMap(e),removeLibrary:(o=me(he().mark((function t(r){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._removeLibrary();case 2:return t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)}))),function(e){return o.apply(this,arguments)}),permanentlyDeleteLibrary:(i=me(he().mark((function t(r){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._permanentlyDeleteLibrary();case 2:return t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)}))),function(e){return i.apply(this,arguments)}),unfollowLibrary:(n=me(he().mark((function t(r){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._unfollowLibrary();case 2:return t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)}))),function(e){return n.apply(this,arguments)}),leaveLibrary:(r=me(he().mark((function t(r){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._leaveLibrary();case 2:return t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)}))),function(e){return r.apply(this,arguments)}),moveLibrary:(t=me(he().mark((function t(r){var n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._moveLibrary();case 2:return n=t.sent,t.abrupt("return",Object.assign(Object.assign({},r),{data:n,originalAction:r}));case 4:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})},this._createLibraryActionMap=function(){var t=me(he().mark((function t(r){var n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._createLibrary(r);case 2:return n=t.sent,t.abrupt("return",Object.assign(Object.assign({},r),{type:"update",data:n,originalAction:r}));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}supportsAction(e){return IL.includes(e.name)}_createLibrary(e){return new Promise(((t,r)=>{var n,i;const o=null!==(n=e.data)&&void 0!==n?n:{},a=o.name,s=o.team,c=o.roles,l=o.documentExtractionData,u=null!==(i=e.flags)&&void 0!==i?i:{},d=u.permissionInheritance,p=u.source,h=u.includeAppMetadata,f={name:a,roles:c,documentExtractionData:(null==l?void 0:l.length)>0?TL(l):void 0,source:null==p?void 0:p.assetId,parent_assetId:null==s?void 0:s.id,access:PL[d]||void 0,includeResources:h?[{relType:"http://ns.adobe.com/adobecloud/rel/metadata/application"},{relType:"http://ns.adobe.com/adobecloud/rel/primary"}]:void 0},m=this._driver.fetch("/api/v1/libraries?invocation_mode=async",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(f)}),g=new Bx(this._driver,m);g.on("change",((e,n)=>{if(e)if(g.error)r(g.error);else if(n){const e=fL(n);(null==l?void 0:l.length)>0&&e.assetId&&this._patchBrandAppMetadata(e.assetId,"/brand:extractedFrom",TL(l)),e.isWritable=!0,e.isParentWritable=!0,t(e)}else t(void 0)}))}))}_removeLibrary(){return this._driver.fetch(`/api/v1/libraries/${this._library.assetId}`,{method:"DELETE"})}_permanentlyDeleteLibrary(){return this._driver.fetch(`/api/v1/libraries/${this._library.assetId}?permanent=true`,{method:"DELETE"})}_unfollowLibrary(){var e;return this._driver.fetch(`/api/v1/libraries/bookmarks/${null===(e=this._library.bookmark)||void 0===e?void 0:e.id}`,{method:"DELETE"})}_leaveLibrary(){var e=this;return me(he().mark((function t(){var r,n,i,o,a;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=null===(r=e._driver.config.user)||void 0===r?void 0:r.id,t.next=3,e._driver.fetch(`https://${e._driver.driverConfig.invitation_hostname}/api/v4/share/${e._library.assetId}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({collaborators:[{action:"remove",id:i}]})});case 3:return o=t.sent,t.next=6,o.json();case 6:if(a=t.sent,null===(n=a.collaborators)||void 0===n?void 0:n.find((e=>e.statusCode>300))){t.next=12;break}return t.abrupt("return",e._unfollowLibrary());case 12:throw kx(o);case 13:case"end":return t.stop()}}),t)})))()}_moveLibrary(){return this._driver.moveLibrary(this._library.assetId,this.action.data.team.id,this.action.data.owner)}_patchBrandAppMetadata(e,t,r){var n=this;return me(he().mark((function i(){var o;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n._driver.getAssetWithCloudID(e);case 2:null==(o=i.sent)||o.patchAppMetadata([{op:"add",path:t,value:r}]);case 4:case"end":return i.stop()}}),i)})))()}}Ie([OL("cclibraries-cloudDriver-createLibrary")],AL.prototype,"_createLibrary",null);const CL=e=>e.replace(/ |\t|\n/g,""),kL=/^(\$\.(?:elements|removedElements|documentationElements))\[\?\(@\.id=="([^"]+)"\)\]$/,DL=/^\$\.groups\[\?\(@\.id=="([^"]+)"\)\]$/;function NL(e){return e=CL(e),le(kL.exec(e)||[],3)[2]}function RL(e){return e=CL(e),le(kL.exec(e)||[],2)[1]}function ML(e){return e=CL(e),le(DL.exec(e)||[],2)[1]}class jL extends Hx{supportsAction(e){return["moveElement","copyElement","dependent"].includes(e.name)}addAction(e){var t,r,n,i,o,a;if(!this.supportsAction(e))return!1;const s=this._actions[this._actions.length-1];return s||"dependent"===e.name?e.library===(null===(t=e.link)||void 0===t?void 0:t.library)?"dependent"===e.name?s.link===e&&(this._actions.push(e),!0):(null===(r=e.library)||void 0===r?void 0:r.actions.indexOf(e))+1===(null===(i=null===(n=e.link)||void 0===n?void 0:n.library)||void 0===i?void 0:i.actions.indexOf(e.link))&&super.addAction(e):(null===(o=s.link)||void 0===o?void 0:o.library)===(null===(a=e.link)||void 0===a?void 0:a.library)&&s.type===e.type&&super.addAction(e):super.addAction(e)}execute(){var e=this;return me(he().mark((function t(){var r,n,i,o,a,s,c,l,u,d,p;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n="moveElement"===e._actions[0].name,i=null===(r=e._actions[0].link)||void 0===r?void 0:r.library,o=e._actions.filter((e=>"dependent"!==e.name)),a=o.map((e=>NL(e.path))),t.next=6,e._doMoveCopyRequest(n,e._library,i,a);case 6:if(s=t.sent,c=s.elements,l=s.etag,u=s.sourceEtag,c.length===o.length){t.next=12;break}throw new Error;case 12:return i===e._library?(d=[],p=e._actions.map((e=>{if("dependent"!==e.name)return e;const t=o.findIndex((t=>t===e.link||t.originalAction===e.link));return Object.assign(Object.assign({},e),{data:c[t],originalAction:e})}))):(p=e._actions,d=e._actions.map(((e,t)=>Object.assign(Object.assign({},e.link),{data:c[t],originalAction:e.link})))),t.abrupt("return",{actions:p,etag:u,linkedActions:d,linkedEtag:l});case 14:case"end":return t.stop()}}),t)})))()}}Ie([Ux],jL.prototype,"execute",null);class FL extends jL{_doMoveCopyRequest(e,t,r,n){var i=this;return me(he().mark((function t(){var o,a,s,c;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=i._library.assetId,a=r.assetId,t.next=4,i._driver.fetch(`/api/v1/libraries/${a}/elements`,{method:"POST",headers:{"Content-Type":"application/json","If-Match":r.etag},body:JSON.stringify({[e?"self":"source"]:{id:o,elements:n,"if-match":i._library.etag}})});case 4:return s=t.sent,t.next=7,s.json();case 7:return c=t.sent,t.abrupt("return",{elements:c.elements.map(mL),etag:s.headers.get("etag"),sourceEtag:s.headers.get("x-source-etag")});case 9:case"end":return t.stop()}}),t)})))()}}function ZL(e){return"undefined"!=typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}function BL(e,t,r){var n;const i=r.reduce(((e,r)=>r(e,t)),e);return i!==e&&(i.originalAction=e),"aggregate"===i.type&&(i.actions=null===(n=i.actions)||void 0===n?void 0:n.map((e=>BL(e,t,r)))),i}function GL(e,t){var r,n,i;t||(t=e);const o={};var a,s=ue(e);try{for(s.s();!(a=s.n()).done;){const e=a.value;Xw(null===(n=null===(r=e.originalAction)||void 0===r?void 0:r.data)||void 0===n?void 0:n.id)&&(o[null===(i=e.originalAction)||void 0===i?void 0:i.data.id]=e.data)}}catch(e){s.e(e)}finally{s.f()}const c=[UL,HL,zL];return t.map((e=>BL(e,o,c)))}function UL(e,t){var r;const n=e.path&&function(e){const t=NL(e)||ML(e);return Xw(t)&&t}(e.path);if(n){const s=null===(r=t[n])||void 0===r?void 0:r.id;if(s)return Object.assign(Object.assign({},e),{path:(i=e.path,o=n,a=s,i.replace(o,a))})}var i,o,a;return e}function HL(e,t){var r,n,i,o,a,s,c,l,u,d;let p=!1;const h=[];if(null===(n=null===(r=e.data)||void 0===r?void 0:r.groups)||void 0===n||n.forEach((e=>{var r;if(e.id&&Xw(e.id)){const n=null===(r=t[e.id])||void 0===r?void 0:r.id;if(n)return p=!0,void h.push(Object.assign(Object.assign({},e),{id:n}))}h.push(e)})),p)return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{groups:h})});if((null===(i=e.data)||void 0===i?void 0:i.id)&&Xw(null===(o=e.data)||void 0===o?void 0:o.id)){const r=null===(s=t[null===(a=e.data)||void 0===a?void 0:a.id])||void 0===s?void 0:s.id;r&&(e.data.id=r)}if((null===(c=e.data)||void 0===c?void 0:c.parentId)&&Xw(null===(l=e.data)||void 0===l?void 0:l.parentId)){const r=null===(d=t[null===(u=e.data)||void 0===u?void 0:u.parentId])||void 0===d?void 0:d.id;r&&(e.data.parentId=r)}return e}function zL(e,t){var r,n;const i=[];let o=!1;const a=e=>{let r=Object.assign({},e);if(e.id&&Xw(e.id)){const n=t[e.id];n&&(r=n,o=!0)}return r};return null===(n=null===(r=e.data)||void 0===r?void 0:r.representations)||void 0===n||n.forEach((e=>{e.source&&(e.source=a(e.source)),i.push(a(e))})),o?Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{representations:i})}):e}function VL(e){var t;const r={};for(let a=0;a<e.length;a+=1){const s=e[a],c=null===(t=s.body)||void 0===t?void 0:t.id;if("POST"===s.method&&Xw(c)&&(r[c]=`$${a}.id`,delete s.body.id),["PUT","DELETE"].includes(s.method)){const e=(o=s.path,le($w.exec(o)||[],1)[0]);if(e){if(!r[e])throw new Error(`Unmapped placeholder ID: ${e}`);s.path=s.path.replace(e,r[e])}}if(["PUT","POST"].includes(s.method)){if(s.path.startsWith("elements")&&s.body.representations&&WL(s.body.representations),s.path.startsWith("elements")&&s.body.groups){var n,i=ue(s.body.groups);try{for(i.s();!(n=i.n()).done;){const e=n.value;if(Xw(e.id)){if(!r[e.id])throw new Error(`Unmapped placeholder ID: ${e.id}`);e.id=r[e.id]}}}catch(e){i.e(e)}finally{i.f()}}if(s.path.startsWith("groups")&&s.body.parent_id&&Xw(s.body.parent_id)){if(!r[s.body.parent_id])throw new Error(`Unmapped placeholder ID: ${s.body.parent_id}`);s.body.parent_id=r[s.body.parent_id]}}}var o;return e}function YL(e,t){const r={};for(var n=0,i=Object.entries(e);n<i.length;n++){const e=le(i[n],2),o=e[0],a=e[1];(void 0!==a||(null==t?void 0:t.includes(o)))&&(r[o]=a)}return r}function WL(e){var t,r=ue(e);try{for(r.s();!(t=r.n()).done;){const e=t.value;Xw(e.id)&&(e.id=void 0)}}catch(e){r.e(e)}finally{r.f()}return e}const KL=["updateLibrary","createElement","updateElement","removeElement","restoreElement","deleteElement","createGroup","removeGroup"];function $L(e,t){return Object.assign(Object.assign({},e),{data:t,originalAction:e})}const qL={updateLibrary:(e,t)=>$L(e,YL(fL(t,!1,!1),["documentId","documentType","roles"])),createElement:(e,t)=>$L(e,mL(t.elements[0])),updateElement:(e,t)=>$L(e,mL(t.elements[0])),restoreElement:e=>e,removeElement:e=>e,deleteElement:e=>e,createGroup:(e,t)=>$L(e,gL(t)),removeGroup:e=>e};class XL extends Hx{constructor(){super(...arguments),this._baseLibraryOperationPath=`/api/v1/libraries/${this._library.assetId}`,this._actionMappers={updateLibrary:e=>{return{method:"PUT",path:"metadata",body:(t=e.data,Object.assign({name:t.name,document_id:t.documentId,roles:t.roles,description:t.description},xL(t.customData)))};var t},createElement:e=>({method:"POST",path:"elements",body:LL(e.data,this._driver.getClientInfo())}),updateElement:e=>({method:"PUT",path:"elements/metadata",body:{elements:[_L(Object.assign({id:NL(e.path)},e.data))]}}),removeElement:e=>({method:"DELETE",path:`elements/${NL(e.path)}`}),restoreElement:e=>({method:"POST",path:"archive",body:{elementIds:[`${e.data.id}`]}}),deleteElement:e=>({method:"DELETE",path:`elements/${NL(e.path)}`,query_params:{permanent:"true"}}),createGroup:e=>{return{method:"POST",path:"groups",body:(t=e.data,r=this._driver.getClientInfo(),{group:{name:t.name,classifier:t.classifier,order:t.order,parent_id:t.parentId},client:r})};var t,r},removeGroup:e=>{var t;return{method:"DELETE",path:`groups/${ML(e.path)}`,query_params:(null===(t=e.flags)||void 0===t?void 0:t.includeElements)?{include_contents:"true"}:void 0}}},this._actions=[]}execute(){var e=this;return me(he().mark((function t(){var r,n,i,o,a,s;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e._actions.map((t=>e._actionMappers[t.name](t))),n=VL(r),t.next=4,e._driver.fetch(e._baseLibraryOperationPath,{method:"PATCH",headers:{"Content-Type":"application/json","If-Match":e._library.etag},body:JSON.stringify({requests:n.map((t=>Object.assign(Object.assign({},t),{path:`${e._baseLibraryOperationPath}/${t.path}`})))})});case 4:return i=t.sent,t.next=7,i.json();case 7:if(o=t.sent,a=o.responses,Array.isArray(a)&&a.length===e._actions.length){t.next=11;break}throw new px("INVALID_RESPONSE","Malformed batch response.",e._library.id);case 11:return s=e._actions.map(((e,t)=>qL[e.name](e,a[t]))),s=GL(s),t.abrupt("return",{actions:s,etag:i.headers.get("ETag")});case 14:case"end":return t.stop()}}),t)})))()}supportsAction(e){return function(e){return KL.includes(e.name)}(e)}}Ie([Ux,OL("cclibraries-cloudDriver-batchOperation")],XL.prototype,"execute",null);class JL extends Hx{supportsAction(e){return"updateElementContent"===e.name}addAction(e){return(!this._actions[0]||this._actions[0].path===e.path)&&super.addAction(e)}execute(){var e=this;return me(he().mark((function t(){var r,n,i,o,a;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e._actions[e._actions.length-1],t.next=3,e._updateElementContent(NL(r.path),r.data);case 3:return n=t.sent,t.next=6,n.json();case 6:return i=t.sent,o=mL(i.elements[0]),a=e._actions.map(((t,r)=>r!==e._actions.length-1?Object.assign(Object.assign({},t),{type:"no-op",originalAction:t}):Object.assign(Object.assign({},t),{data:o,originalAction:t}))),t.abrupt("return",{actions:a,etag:n.headers.get("ETag")});case 10:case"end":return t.stop()}}),t)})))()}_updateElementContent(e,t){return WL(t.representations),this._driver.fetch(`/api/v1/libraries/${this._library.assetId}/elements/${e}/representations`,{method:"PUT",headers:{"If-Match":this._library.etag,"Content-Type":"application/json"},body:JSON.stringify(LL(t,this._driver.getClientInfo()))})}}Ie([Ux,OL("cclibraries-cloudDriver-updateElementContent")],JL.prototype,"execute",null);class QL extends Hx{constructor(){super(...arguments),this._actionMappers={}}execute(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.actions.map((t=>e._actionMappers[t.name](t))),t.next=3,Promise.all(r);case 3:return t.t0=t.sent,t.abrupt("return",{actions:t.t0});case 5:case"end":return t.stop()}}),t)})))()}}Ie([Ux],QL.prototype,"execute",null);class eO extends QL{constructor(){var e,t;super(...arguments),e=this,this._actionMappers={uploadComponent:(t=me(he().mark((function t(r){var n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=JSON,t.next=3,e._driver.stageRepresentationForCommit(r.library,r.data.file,r.data.type);case 3:return t.t1=t.sent,n=t.t0.parse.call(t.t0,t.t1),t.abrupt("return",Object.assign(Object.assign({},r),{data:n,originalAction:r}));case 6:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})}}supportsAction(e){return"uploadComponent"===e.name}}function tO(e){const t={};do{const r=e.indexOf("<");if(-1===r)break;let n=e.indexOf("<",r+1);-1===n&&(n=e.length);const i=rO(e.substring(r,n));i&&(t[i.rel]=i),e=e.substring(n)}while(e.length>0);return t}function rO(e){const t=e.match(/^<(.*)>;/);if(!t)return;const r={href:t[1]};var n,i=ue(e.matchAll(/\s([\w:]*)="([^"]*)"[;,]?/g));try{for(i.s();!(n=i.n()).done;){const e=n.value,t=e[1],i=e[2];r[t]=nO(i)}}catch(e){i.e(e)}finally{i.f()}return r}function nO(e){if("true"===e||"false"===e)return"true"===e;const t=+e;return isNaN(t)?e:t}var iO={},oO=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)),aO="%[a-f0-9]{2}",sO=new RegExp(aO,"gi"),cO=new RegExp("("+aO+")+","gi");function lO(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],lO(r),lO(n))}function uO(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(sO),r=1;r<t.length;r++)t=(e=lO(t,r).join("")).match(sO);return e}}var dO=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=cO.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var n=uO(r[0]);n!==r[0]&&(t[r[0]]=n)}r=cO.exec(e)}t["%C2"]="�";for(var i=Object.keys(t),o=0;o<i.length;o++){var a=i[o];e=e.replace(new RegExp(a,"g"),t[a])}return e}(e)}},pO=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]},hO=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),o=0;o<n.length;o++){var a=n[o],s=e[a];(i?-1!==t.indexOf(a):t(a,s,e))&&(r[a]=s)}return r};!function(e){const t=oO,r=dO,n=pO,i=hO;function o(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function a(e,r){return r.encode?r.strict?t(e):encodeURIComponent(e):e}function s(e,t){return t.decode?r(e):e}function c(e){return Array.isArray(e)?e.sort():"object"==typeof e?c(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function l(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function u(e){const t=(e=l(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function d(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function p(e,t){o((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const i="string"==typeof r&&r.includes(e.arrayFormatSeparator),o="string"==typeof r&&!i&&s(r,e).includes(e.arrayFormatSeparator);r=o?s(r,e):r;const a=i||o?r.split(e.arrayFormatSeparator).map((t=>s(t,e))):null===r?r:s(r,e);n[t]=a};case"bracket-separator":return(t,r,n)=>{const i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i)return void(n[t]=r?s(r,e):r);const o=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>s(t,e)));void 0!==n[t]?n[t]=[].concat(n[t],o):n[t]=o};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),i=Object.create(null);if("string"!=typeof e)return i;if(!(e=e.trim().replace(/^[?#&]/,"")))return i;var a,l=ue(e.split("&"));try{for(l.s();!(a=l.n()).done;){const e=a.value;if(""===e)continue;let o=le(n(t.decode?e.replace(/\+/g," "):e,"="),2),c=o[0],l=o[1];l=void 0===l?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?l:s(l,t),r(s(c,t),l,i)}}catch(e){l.e(e)}finally{l.f()}for(var u=0,p=Object.keys(i);u<p.length;u++){const e=p[u],r=i[e];if("object"==typeof r&&null!==r)for(var h=0,f=Object.keys(r);h<f.length;h++){const e=f[h];r[e]=d(r[e],t)}else i[e]=d(r,t)}return!1===t.sort?i:(!0===t.sort?Object.keys(i).sort():Object.keys(i).sort(t.sort)).reduce(((e,t)=>{const r=i[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=c(r):e[t]=r,e}),Object.create(null))}e.extract=u,e.parse=p,e.stringify=(e,t)=>{if(!e)return"";o((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const i=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[a(t,e),"[",i,"]"].join("")]:[...r,[a(t,e),"[",a(i,e),"]=",a(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[a(t,e),"[]"].join("")]:[...r,[a(t,e),"[]=",a(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?n:(i=null===i?"":i,0===n.length?[[a(r,e),t,a(i,e)].join("")]:[[n,a(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,a(t,e)]:[...r,[a(t,e),"=",a(n,e)].join("")]}}(t),i={};for(var s=0,c=Object.keys(e);s<c.length;s++){const t=c[s];r(t)||(i[t]=e[t])}const l=Object.keys(i);return!1!==t.sort&&l.sort(t.sort),l.map((r=>{const i=e[r];return void 0===i?"":null===i?a(r,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?a(r,t)+"[]":i.reduce(n(r),[]).join("&"):a(r,t)+"="+a(i,t)})).filter((e=>e.length>0)).join("&")},e.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const r=le(n(e,"#"),2),i=r[0],o=r[1];return Object.assign({url:i.split("?")[0]||"",query:p(u(e),t)},t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:s(o,t)}:{})},e.stringifyUrl=(t,r)=>{r=Object.assign({encode:!0,strict:!0},r);const n=l(t.url).split("?")[0]||"",i=e.extract(t.url),o=e.parse(i,{sort:!1}),s=Object.assign(o,t.query);let c=e.stringify(s,r);c&&(c=`?${c}`);let u=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(t.url);return t.fragmentIdentifier&&(u=`#${a(t.fragmentIdentifier,r)}`),`${n}${c}${u}`},e.pick=(t,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0},n);const o=e.parseUrl(t,n),a=o.url,s=o.query,c=o.fragmentIdentifier;return e.stringifyUrl({url:a,query:i(s,r),fragmentIdentifier:c},n)},e.exclude=(t,r,n)=>{const i=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return e.pick(t,i,n)}}(iO);var fO,mO,gO={exports:{}},vO={exports:{}};fO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",mO={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&mO.rotl(e,8)|4278255360&mO.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=mO.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],r=0,n=0;r<e.length;r++,n+=8)t[n>>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r<32*e.length;r+=8)t.push(e[r>>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r<e.length;r++)t.push((e[r]>>>4).toString(16)),t.push((15&e[r]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substr(r,2),16));return t},bytesToBase64:function(e){for(var t=[],r=0;r<e.length;r+=3)for(var n=e[r]<<16|e[r+1]<<8|e[r+2],i=0;i<4;i++)8*r+6*i<=8*e.length?t.push(fO.charAt(n>>>6*(3-i)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],r=0,n=0;r<e.length;n=++r%4)0!=n&&t.push((fO.indexOf(e.charAt(r-1))&Math.pow(2,-2*n+8)-1)<<2*n|fO.indexOf(e.charAt(r))>>>6-2*n);return t}},vO.exports=mO;var yO={utf8:{stringToBytes:function(e){return yO.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(yO.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r<e.length;r++)t.push(255&e.charCodeAt(r));return t},bytesToString:function(e){for(var t=[],r=0;r<e.length;r++)t.push(String.fromCharCode(e[r]));return t.join("")}}},bO=yO,_O=function(e){return null!=e&&(EO(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&EO(e.slice(0,0))}(e)||!!e._isBuffer)};function EO(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}!function(){var e=vO.exports,t=bO.utf8,r=_O,n=bO.bin,i=function i(o,a){o.constructor==String?o=a&&"binary"===a.encoding?n.stringToBytes(o):t.stringToBytes(o):r(o)?o=Array.prototype.slice.call(o,0):Array.isArray(o)||o.constructor===Uint8Array||(o=o.toString());for(var s=e.bytesToWords(o),c=8*o.length,l=1732584193,u=-271733879,d=-1732584194,p=271733878,h=0;h<s.length;h++)s[h]=16711935&(s[h]<<8|s[h]>>>24)|4278255360&(s[h]<<24|s[h]>>>8);s[c>>>5]|=128<<c%32,s[14+(c+64>>>9<<4)]=c;var f=i._ff,m=i._gg,g=i._hh,v=i._ii;for(h=0;h<s.length;h+=16){var y=l,b=u,_=d,E=p;l=f(l,u,d,p,s[h+0],7,-680876936),p=f(p,l,u,d,s[h+1],12,-389564586),d=f(d,p,l,u,s[h+2],17,606105819),u=f(u,d,p,l,s[h+3],22,-1044525330),l=f(l,u,d,p,s[h+4],7,-176418897),p=f(p,l,u,d,s[h+5],12,1200080426),d=f(d,p,l,u,s[h+6],17,-1473231341),u=f(u,d,p,l,s[h+7],22,-45705983),l=f(l,u,d,p,s[h+8],7,1770035416),p=f(p,l,u,d,s[h+9],12,-1958414417),d=f(d,p,l,u,s[h+10],17,-42063),u=f(u,d,p,l,s[h+11],22,-1990404162),l=f(l,u,d,p,s[h+12],7,1804603682),p=f(p,l,u,d,s[h+13],12,-40341101),d=f(d,p,l,u,s[h+14],17,-1502002290),l=m(l,u=f(u,d,p,l,s[h+15],22,1236535329),d,p,s[h+1],5,-165796510),p=m(p,l,u,d,s[h+6],9,-1069501632),d=m(d,p,l,u,s[h+11],14,643717713),u=m(u,d,p,l,s[h+0],20,-373897302),l=m(l,u,d,p,s[h+5],5,-701558691),p=m(p,l,u,d,s[h+10],9,38016083),d=m(d,p,l,u,s[h+15],14,-660478335),u=m(u,d,p,l,s[h+4],20,-405537848),l=m(l,u,d,p,s[h+9],5,568446438),p=m(p,l,u,d,s[h+14],9,-1019803690),d=m(d,p,l,u,s[h+3],14,-187363961),u=m(u,d,p,l,s[h+8],20,1163531501),l=m(l,u,d,p,s[h+13],5,-1444681467),p=m(p,l,u,d,s[h+2],9,-51403784),d=m(d,p,l,u,s[h+7],14,1735328473),l=g(l,u=m(u,d,p,l,s[h+12],20,-1926607734),d,p,s[h+5],4,-378558),p=g(p,l,u,d,s[h+8],11,-2022574463),d=g(d,p,l,u,s[h+11],16,1839030562),u=g(u,d,p,l,s[h+14],23,-35309556),l=g(l,u,d,p,s[h+1],4,-1530992060),p=g(p,l,u,d,s[h+4],11,1272893353),d=g(d,p,l,u,s[h+7],16,-155497632),u=g(u,d,p,l,s[h+10],23,-1094730640),l=g(l,u,d,p,s[h+13],4,681279174),p=g(p,l,u,d,s[h+0],11,-358537222),d=g(d,p,l,u,s[h+3],16,-722521979),u=g(u,d,p,l,s[h+6],23,76029189),l=g(l,u,d,p,s[h+9],4,-640364487),p=g(p,l,u,d,s[h+12],11,-421815835),d=g(d,p,l,u,s[h+15],16,530742520),l=v(l,u=g(u,d,p,l,s[h+2],23,-995338651),d,p,s[h+0],6,-198630844),p=v(p,l,u,d,s[h+7],10,1126891415),d=v(d,p,l,u,s[h+14],15,-1416354905),u=v(u,d,p,l,s[h+5],21,-57434055),l=v(l,u,d,p,s[h+12],6,1700485571),p=v(p,l,u,d,s[h+3],10,-1894986606),d=v(d,p,l,u,s[h+10],15,-1051523),u=v(u,d,p,l,s[h+1],21,-2054922799),l=v(l,u,d,p,s[h+8],6,1873313359),p=v(p,l,u,d,s[h+15],10,-30611744),d=v(d,p,l,u,s[h+6],15,-1560198380),u=v(u,d,p,l,s[h+13],21,1309151649),l=v(l,u,d,p,s[h+4],6,-145523070),p=v(p,l,u,d,s[h+11],10,-1120210379),d=v(d,p,l,u,s[h+2],15,718787259),u=v(u,d,p,l,s[h+9],21,-343485551),l=l+y>>>0,u=u+b>>>0,d=d+_>>>0,p=p+E>>>0}return e.endian([l,u,d,p])};i._ff=function(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},i._gg=function(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},i._hh=function(e,t,r,n,i,o,a){var s=e+(t^r^n)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},i._ii=function(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+(i>>>0)+a;return(s<<o|s>>>32-o)+t},i._blocksize=16,i._digestsize=16,gO.exports=function(t,r){if(null==t)throw new Error("Illegal argument "+t);var o=e.wordsToBytes(i(t,r));return r&&r.asBytes?o:r&&r.asString?n.bytesToString(o):e.bytesToHex(o)}}();var wO=gO.exports;const xO={field:"modifiedDate",direction:"descending"},LO={modifiedDate:"modified_date",name:"name"};class OO{constructor(e){this._driver=e}routePublicLibraryRequestIfNeeded(e,t,r,...n){return"public"===e.ownership&&e.data.publicLinkId?t(e.data.publicLinkId,this.getLibraryParams(e),...n):r(e.assetId,...n)}getLibraryParams(e){return{modifiedDate:e.modified,areElementsLoaded:e.areElementsLoaded,elements:e.data.elements}}getLibraryByPublicLinkId(e,t,r={}){var n,i;return Re(this,arguments,he().mark((function o(){var a;return he().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,Ne(this._getLibrary(e));case 3:return a=o.sent,(null==t?void 0:t.areElementsLoaded)&&(a.elements=t.elements),o.next=7,Ne(a);case 7:return o.next=9,o.sent;case 9:if(!(null==t?void 0:t.areElementsLoaded)||t.modifiedDate!==a.modifiedDate){o.next=13;break}return o.next=12,Ne(void 0);case 12:return o.abrupt("return",o.sent);case 13:return o.t0=Ne,o.delegateYield(Me(je(this._getAllElements(e,Object.assign({},r.elementParams)))),"t1",15);case 15:return o.t2=o.t1,o.next=18,(0,o.t0)(o.t2);case 18:o.next=24;break;case 20:if(o.prev=20,o.t3=o.catch(0),null===(i=null===(n=r.elementParams)||void 0===n?void 0:n.abortController)||void 0===i?void 0:i.signal.aborted){o.next=24;break}throw o.t3;case 24:case"end":return o.stop()}}),o,this,[[0,20]])})))}getElementsByPublicLinkId(e,t,r=xO,n=100,i){return Re(this,arguments,he().mark((function t(){var o,a,s;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=e=>e.elements.map(mL),a=`${"descending"===r.direction?"-":""}${LO[r.field]}`,s={limit:n,orderBy:a,selector:["default","representations","details"]},t.t0=Ne,t.delegateYield(Me(je(this.fetchAllPages(`/api/v1/public/libraries/${e}/elements?${iO.stringify(s,{arrayFormat:"comma"})}`,o,i))),"t1",5);case 5:return t.t2=t.t1,t.next=8,(0,t.t0)(t.t2);case 8:case"end":return t.stop()}}),t,this)})))}getRemovedElementsByPublicLinkId(e,t,r=xO,n=100,i){return Re(this,arguments,he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ne(void 0);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))}getDocumentationElementsByPublicLinkId(e,t,r=xO,n=100,i){return Re(this,arguments,he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ne(void 0);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))}getElement(e,t,r){return this.fetch(`/api/v1/public/libraries/${e}/elements/${r}?selector=default,representations,details,tags`).then((e=>e.json())).then((e=>mL(e)))}_getLibrary(e){return this.fetch(`/api/v1/public/libraries/${e}?selector=default,rendition_grid,details`).then((e=>e.json())).then((e=>fL(e,!0)))}_getAllElements(e,t){var r,n,i;return Re(this,arguments,he().mark((function o(){var a,s,c,l,u,d,p,h,f,m,g,v,y,b;return he().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:u={},d=0,p=[["elements","getElementsByPublicLinkId"],["documentationElements","getDocumentationElementsByPublicLinkId"],["removedElements","getRemovedElementsByPublicLinkId"]];case 3:if(!(d<p.length)){o.next=47;break}if(h=le(p[d],2),f=h[0],m=h[1],!(null===(r=null==t?void 0:t.types)||void 0===r?void 0:r.includes(f))){o.next=44;break}o.prev=6,g=!0,s=void 0,v=je(this[m](e,void 0,null==t?void 0:t.sort,void 0,null===(n=null==t?void 0:t.abortController)||void 0===n?void 0:n.signal));case 8:return o.next=10,Ne(v.next());case 10:if(y=o.sent,a=y.done){o.next=29;break}if(l=y.value,g=!1,o.prev=15,b=l,u[f]=u[f]||[],null===(i=u[f])||void 0===i||i.push(...b),!(null==t?void 0:t.loadProgressively)){o.next=24;break}return o.next=22,Ne({[f]:u[f]});case 22:return o.next=24,o.sent;case 24:return o.prev=24,g=!0,o.finish(24);case 27:o.next=8;break;case 29:o.next=34;break;case 31:o.prev=31,o.t0=o.catch(6),s={error:o.t0};case 34:if(o.prev=34,o.prev=35,g||a||!(c=v.return)){o.next=39;break}return o.next=39,Ne(c.call(v));case 39:if(o.prev=39,!s){o.next=42;break}throw s.error;case 42:return o.finish(39);case 43:return o.finish(34);case 44:d++,o.next=3;break;case 47:return o.next=49,Ne(Object.assign({areElementsLoaded:!0},t.loadProgressively?{}:u));case 49:return o.next=51,o.sent;case 51:case"end":return o.stop()}}),o,this,[[6,31,34,44],[15,,24,27],[35,,39,43]])})))}fetchAllPages(e,t,r){var n,i;return Re(this,arguments,he().mark((function o(){var a,s,c,l,u,d,p;return he().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:s=e;case 1:if(!s){o.next=21;break}return o.next=4,Ne(this.fetch(s,{signal:r}).then((e=>e.json())));case 4:return c=o.sent,o.next=7,Ne(t(c));case 7:return o.next=9,o.sent;case 9:if(null!=a||(a=c.total_count),l=null===(i=null===(n=c._links)||void 0===n?void 0:n.page)||void 0===i?void 0:i.href,u=c._page,d=l&&Je(l),p=parseInt(u.start)+u.count,d&&u&&!(p>a)){o.next=18;break}return o.next=17,Ne(void 0);case 17:return o.abrupt("return",o.sent);case 18:s=d.fill({orderBy:u.orderBy,start:`${p}`,limit:`${u.count}`,selector:"default,representations,details"}),o.next=1;break;case 21:case"end":return o.stop()}}),o,this)})))}fetch(e,t){var r,n;return(null===(r=this._driver.config.user)||void 0===r?void 0:r.id)&&((t=t||{}).headers=t.headers||{},t.headers["x-gw-ims-user-id"]=null===(n=this._driver.config.user)||void 0===n?void 0:n.id),this._driver.fetch(e,t)}}class SO extends hx{constructor(e){super(),this._driver=e,this._onChangeCallback=(e,t,r)=>{var n;const i=r;null===(n=this._changeCallback)||void 0===n||n.call(this,i)}}connect(){var e;this._librariesToMonitor=this._driver.createAssetLinkList(),null===(e=this._librariesToMonitor)||void 0===e||e.on("notified",this._onChangeCallback)}disconnect(){var e,t;this._changeCallback=void 0,null===(e=this._librariesToMonitor)||void 0===e||e.clear(),null===(t=this._librariesToMonitor)||void 0===t||t.off("notified",this._onChangeCallback),this._librariesToMonitor=void 0}get isConnected(){return!!this._librariesToMonitor}setWatchedLibraries(e,t){var r=this;return me(he().mark((function n(){var i,o;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r._librariesToMonitor){n.next=2;break}return n.abrupt("return");case 2:i=r._librariesToMonitor,o=new Set(e.map((e=>e.assetId))),i.monitoredAssetIDs.forEach((e=>!o.has(e)&&i.removeAssetID(e))),o.forEach((e=>e&&i.addAssetID(e))),r._changeCallback=t;case 7:case"end":return n.stop()}}),n)})))()}addWatchedLibrary(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e.assetId&&(null===(n=t._librariesToMonitor)||void 0===n||n.addAssetID(e.assetId));case 1:case"end":return r.stop()}}),r)})))()}removeWatchedLibrary(e){var t;e.assetId&&(null===(t=this._librariesToMonitor)||void 0===t||t.removeAssetID(e.assetId))}addLibrariesSyncGroupListener(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!t._syncGroupListener&&e){r.next=2;break}return r.abrupt("return");case 2:return t._syncGroupListener={notify:e},i=void 0,r.prev=4,r.next=7,null===(n=t._driver.sam)||void 0===n?void 0:n.hostAssetContext.getAssetWithRepoPath("/assets/adobe-libraries");case 7:i=r.sent,r.next=15;break;case 10:if(r.prev=10,r.t0=r.catch(4),21!==r.t0.code){r.next=14;break}return r.abrupt("return");case 14:throw r.t0;case 15:if(i){r.next=18;break}return delete t._syncGroupListener,r.abrupt("return");case 18:t._syncGroupListener.asset=i,i.on("change",e);case 20:case"end":return r.stop()}}),r,null,[[4,10]])})))()}removeLibrariesSyncGroupListener(){if(this._syncGroupListener){const e=this._syncGroupListener,t=e.asset,r=e.notify;null==t||t.off("change",r),delete this._syncGroupListener}}}function TO(e,t){return e.next().then((e=>({result:e,index:t})))}function PO(...e){return Re(this,arguments,he().mark((function t(){var r,n,i;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e.map(TO),n=r.length;case 2:if(!n){t.next=18;break}return t.next=5,Ne(Promise.race(r));case 5:if((i=t.sent).result.done){t.next=14;break}return t.next=9,Ne(i.result.value);case 9:return t.next=11,t.sent;case 11:r[i.index]=TO(e[i.index],i.index),t.next=16;break;case 14:r[i.index]=new Promise((()=>{})),n--;case 16:t.next=2;break;case 18:case"end":return t.stop()}}),t)})))}class IO{constructor(){this._data=new Map}get length(){return this._data.size}key(e){return Array.from(this._data.keys())[e]}getItem(e){return this._data.get(e)}setItem(e,t){this._data.set(e,t)}removeItem(e){this._data.delete(e)}clear(){this._data.clear()}}class AO{constructor(e,t){this._settings=new Map,this._storageKey=e,this._storage=null!=t?t:"undefined"!=typeof window?window.localStorage:new IO,this._load()}entries(){return this._settings.entries()}setItem(e,t){this._settings.set(e,t),this._save()}getItem(e){return this._settings.get(e)}_setItem(e,t){this._storage.setItem(e,t)}_load(){const e=this._storage.getItem(this._storageKey);if(e)try{this._settings=new Map(JSON.parse(e))}catch(e){gx.error("Error restoring previous settings."),this._storage.removeItem(this._storageKey)}}_save(){const e=JSON.stringify(Array.from(this._settings.entries()));this._setItem(this._storageKey,e)}}function CO(e){var t;return{name:e.name,id:e.id,owner:e.storageAssignee,ownerName:null!==(t=e.storageAssignee.displayName)&&void 0!==t?t:"",isWritable:!0}}function kO(e){return{type:e.type,angle:e.angle,stops:e.stops}}function DO(e){return new Promise(((t,r)=>{function n(){e.status!==_o.Loading&&(e.errors&&r(e.errors),e.off(Po,n),t())}e.on(Po,n),n()}))}const NO={field:"modifiedDate",direction:"descending"},RO={modifiedDate:"modified_date",name:"name"},MO=["off","error","warn","info","debug"];class jO extends Ix{constructor(){super(...arguments),this._fetch=fetch,this._notificationManager=new SO(this),this._assets=new Map,this._operationTypes=[FL,AL,XL,JL,eO],this._publicExt=new OO(this)}getLibrary(e,t){return this._publicExt.routePublicLibraryRequestIfNeeded(e,this._publicExt.getLibraryByPublicLinkId.bind(this._publicExt),this.getLibraryByAssetId.bind(this),t)}getElements(e,...t){return this._publicExt.routePublicLibraryRequestIfNeeded(e,this._publicExt.getElementsByPublicLinkId.bind(this._publicExt),this._getElementsByAssetId.bind(this),...t)}getRemovedElements(e,...t){return this._publicExt.routePublicLibraryRequestIfNeeded(e,this._publicExt.getRemovedElementsByPublicLinkId.bind(this._publicExt),this._getRemovedElementsByAssetId.bind(this),...t)}getDocumentationElements(e,...t){return this._publicExt.routePublicLibraryRequestIfNeeded(e,this._publicExt.getDocumentationElementsByPublicLinkId.bind(this._publicExt),this._getDocumentationElementsByAssetId.bind(this),...t)}getElement(e,t){return this._publicExt.routePublicLibraryRequestIfNeeded(e,this._publicExt.getElement.bind(this._publicExt),this._getElement.bind(this),t)}_handleConnected(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s,c,l,u,d,p;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(p=$x(e.token),t._localStorage=new AO(wx(null==p?void 0:p.user,"cloud"),e.localStorage),t._env=e.env,t._token=e.token,t._refreshAccessToken=e.refreshAccessToken,t._clientId=null===(n=null==p?void 0:p.user)||void 0===n?void 0:n.clientId,t._analyticsEnabled=(null===(o=null===(i=e.config)||void 0===i?void 0:i.processInfo)||void 0===o?void 0:o.analyticsEnabled)||!1,t._ignoreRenditionGrids=(null===(a=e.config)||void 0===a?void 0:a.ignoreRenditionGrids)||!1,t._codeVersion=null===(c=null===(s=e.config)||void 0===s?void 0:s.processInfo)||void 0===c?void 0:c.codeVersion,t._fetch=e.fetch||fetch.bind(globalThis),r.prev=10,!e.samCore){r.next=15;break}t._sam=e.samCore,r.next=18;break;case 15:return r.next=17,rc({USER_ID:null===(l=null==p?void 0:p.user)||void 0===l?void 0:l.id,CLIENT_ID:t._clientId,ACCESS_TOKEN:t._token,ENVIRONMENT:"staging"===t._env?an.Stage:an.Production,HOST_PRODUCT_DATA:{PRODUCT_ID:"CCLibraries",PRODUCT_LOCATION:"cc-libraries-js/1.0"},DISABLE_ONS:null!==(u=e.samDisableOns)&&void 0!==u&&u,HIGH_PRIORITY_RAPI_REQUESTS:!0},{persistentCache:e.samPersistentCache,refreshAccessToken:e.refreshAccessToken});case 17:t._sam=r.sent;case 18:t._sam.on(Sr,t._samLoggingHandler),r.next=30;break;case 21:if(r.prev=21,r.t0=r.catch(10),!((e.handleConnectRetries||0)<3)){r.next=29;break}if(19!==r.t0.code){r.next=29;break}return r.next=27,null===(d=t._refreshAccessToken)||void 0===d?void 0:d.call(t);case 27:e.handleConnectRetries=(e.handleConnectRetries||0)+1,t._handleConnected(e);case 29:throw r.t0;case 30:return t._notificationManager.connect(),r.next=33,t.getConfiguration();case 33:case"end":return r.stop()}}),r,null,[[10,21]])})))()}_handleDisconnected(){var e,t;null===(e=this._sam)||void 0===e||e.off(Sr,this._samLoggingHandler),null===(t=this._notificationManager)||void 0===t||t.disconnect(),this._assets.clear()}_samLoggingHandler(e){e.logLevel&&gx[MO[e.logLevel]](`[SAM] ${e.message}`)}getConfiguration(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.getLocalSettings(),n=$x(e._token),e._config=new vx(Object.assign(Object.assign(Object.assign({},r),n),{environment:e._env,processInfo:{analyticsEnabled:e._analyticsEnabled,codeVersion:e._codeVersion,syncingEnabled:!0},ignoreRenditionGrids:e._ignoreRenditionGrids})),t.abrupt("return",e.config);case 4:case"end":return t.stop()}}),t)})))()}get driverConfig(){return Gx[this._env]}get sam(){return this._sam}updateOptions(e){this._options=e}fetchAccessToken(e,t,r,n){return Promise.resolve({access_token:this._token,expires_in:qx(this._token)})}getLibraryById(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,t.getLibraryByAssetId(e).next();case 4:return n=r.sent,i=n.value,r.abrupt("return",i);case 7:case"end":return r.stop()}}),r)})))()}getLibraryByAssetId(e,t={}){var r,n;return Re(this,arguments,he().mark((function i(){var o,a,s,c;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(e){i.next=4;break}return i.next=3,Ne({});case 3:case 22:return i.abrupt("return",i.sent);case 4:if(o=t.etag,a=["default"],t.getRenditionGrid&&a.push("rendition_grid"),t.getAppMetadata&&a.push("app_metadata"),t.elementParams){i.next=23;break}return i.prev=9,i.next=12,Ne(this._getLibrary(e,o,a));case 12:return i.next=14,i.sent;case 14:i.next=20;break;case 16:if(i.prev=16,i.t0=i.catch(9),i.t0 instanceof Cx&&"NOT_MODIFIED"===i.t0.code){i.next=20;break}throw i.t0;case 20:return i.next=22,Ne(void 0);case 23:if((s=this._getManifest(e,t)).then((()=>{var e;const r=null===(e=t.elementParams)||void 0===e?void 0:e.abortController;r&&(r.abort(),Ox.give(r,"REQUEST NOT NEEDED"))})),!(null===(r=t.elementParams)||void 0===r?void 0:r.loadProgressively)){i.next=53;break}return i.prev=26,i.prev=27,i.next=30,Ne(this._getLibrary(e,o,a));case 30:return c=i.sent,o=c.etag,i.next=34,Ne(c);case 34:return i.next=36,i.sent;case 36:i.next=42;break;case 38:if(i.prev=38,i.t1=i.catch(27),i.t1 instanceof Cx&&"NOT_MODIFIED"===i.t1.code&&t.elementParams){i.next=42;break}throw i.t1;case 42:return i.t2=Ne,i.delegateYield(Me(je(this._getAllElements(e,Object.assign(Object.assign({},t.elementParams),{etag:o})))),"t3",44);case 44:return i.t4=i.t3,i.next=47,(0,i.t2)(i.t4);case 47:i.next=53;break;case 49:if(i.prev=49,i.t5=i.catch(26),(null===(n=t.elementParams.abortController)||void 0===n?void 0:n.signal.aborted)||i.t5 instanceof Cx&&"NOT_FOUND"===i.t5.code){i.next=53;break}throw i.t5;case 53:return i.next=55,Ne(s);case 55:return i.next=57,i.sent;case 57:case"end":return i.stop()}}),i,this,[[9,16],[26,49],[27,38]])})))}_getLibrary(e,t,r=["default"]){const n={};n["if-none-match"]=t||"*";const i=new URLSearchParams({selector:r});r.includes("app_metadata")&&i.set("randomizer",br.v4());const o=`/api/v1/libraries/${e}?${i.toString()}`;return this.fetch(o,{headers:n}).then((e=>e.json())).then((e=>fL(e,this._options.readOnly,null==r?void 0:r.includes("rendition_grid"))))}getAssetWithCloudID(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.t0=t._assets.get(e),r.t0){r.next=5;break}return r.next=4,null===(n=t._sam)||void 0===n?void 0:n.hostAssetContext.getAssetWithCloudID(e);case 4:r.t0=r.sent;case 5:return i=r.t0,t._assets.set(e,i),r.abrupt("return",i);case 8:case"end":return r.stop()}}),r)})))()}createAssetLinkList(){var e;return null===(e=this._sam)||void 0===e?void 0:e.assetLinkManager.createList()}_getManifest(e,t){var r=this;return me(he().mark((function n(){var i,o,a;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,r.getAssetWithCloudID(e);case 3:i=n.sent,n.next=9;break;case 6:throw n.prev=6,n.t0=n.catch(0),Nx(n.t0);case 9:if(i&&!(null==i?void 0:i.isDiscarded)){n.next=11;break}throw Dx(404);case 11:return n.prev=11,o=[i.manifest],t.getAppMetadata&&o.push(i.appMetadata),n.next=16,Promise.all(o.map((e=>!e.isLoaded&&e.load())));case 16:return a=rL(i),i.manifest.unload(),n.abrupt("return",a);case 21:throw n.prev=21,n.t1=n.catch(11),Nx(n.t1);case 24:case"end":return n.stop()}}),n,null,[[0,6],[11,21]])})))()}getLibraries(e,t=!0){return Re(this,arguments,he().mark((function r(){var n,i,o,a,s,c;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!this._options.enableBrandLifecycleManagement){r.next=29;break}return r.next=3,Ne(this.getProjectByName("Adobe GenStudio Brands"));case 3:if(n=r.sent){r.next=17;break}return gx.error("[CLOUD DRIVER] M3 - Adobe GenStudio Brands project not found."),i={itemFilter:["publishedBrands"],roles:["brand"]},r.t0=Ne,r.delegateYield(Me(je(this.getLibrariesList(e,i))),"t1",9);case 9:return r.t2=r.t1,r.next=12,(0,r.t0)(r.t2);case 12:return r.next=14,Ne(void 0);case 14:case 26:return r.abrupt("return",r.sent);case 17:return gx.info("[CLOUD DRIVER] M3 - Loading brands inside project."),o={team:[n.id],roles:["brand"]},r.t3=Ne,r.delegateYield(Me(je(this.getLibrariesList(e,o))),"t4",21);case 21:return r.t5=r.t4,r.next=24,(0,r.t3)(r.t5);case 24:return r.next=26,Ne(void 0);case 27:r.next=39;break;case 29:return gx.info("[CLOUD DRIVER] M2 - Loading all libraries."),a={owner:["private","incoming"],selector:t?["rendition_grid"]:["default"]},s={owner:["public"],selector:t?["rendition_grid","details"]:["default","details"]},c=[this.getLibrariesList(e,a),this.getLibrariesList(e,s)],this._options.includeApprovedBrandsInLibraries&&(gx.info("[CLOUD DRIVER] M2 - Loading approved brands."),c.push(this.getApprovedBrandLibraries(e))),r.t6=Ne,r.delegateYield(Me(je(PO(...c))),"t7",36);case 36:return r.t8=r.t7,r.next=39,(0,r.t6)(r.t8);case 39:case"end":return r.stop()}}),r,this)})))}getApprovedBrandLibraries(e){return Re(this,arguments,he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=Ne,t.delegateYield(Me(je(this.fetchAllApprovedBrandPages("/api/v1/search",this._getLibrariesResponseMapper(),e))),"t1",2);case 2:return t.t2=t.t1,t.next=5,(0,t.t0)(t.t2);case 5:case"end":return t.stop()}}),t,this)})))}fetchAllApprovedBrandPages(e,t,r){var n,i;return Re(this,arguments,he().mark((function o(){var a,s;return he().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:a=e;case 1:if(!a){o.next=12;break}return o.next=4,Ne(this.fetch(a,{signal:r,method:"POST",body:JSON.stringify({library_roles_type:["approvedbrand"]}),headers:{owner:"all","content-type":"application/json"}}).then((e=>e.json())));case 4:return s=o.sent,o.next=7,Ne(t(s));case 7:return o.next=9,o.sent;case 9:a=null===(i=null===(n=s._links)||void 0===n?void 0:n.next)||void 0===i?void 0:i.href,o.next=1;break;case 12:case"end":return o.stop()}}),o,this)})))}getLibrariesList(e,t){return Re(this,arguments,he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=Ne,r.delegateYield(Me(je(this.fetchAllPages(this._getLibrariesURL(t),{},this._getLibrariesResponseMapper(t),e))),"t1",2);case 2:return r.t2=r.t1,r.next=5,(0,r.t0)(r.t2);case 5:case"end":return r.stop()}}),r,this)})))}getLibrariesPage(e,t){return Re(this,arguments,he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=Ne,r.delegateYield(Me(je(this.fetchOnePage(this._getLibrariesURL(t),this._getLibrariesResponseMapper(t),e,!1))),"t1",2);case 2:return r.t2=r.t1,r.next=5,(0,r.t0)(r.t2);case 5:case"end":return r.stop()}}),r,this)})))}getPresignedDownloadUrl(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.fetch(e);case 2:return n=r.sent,r.next=5,n.json();case 5:return i=r.sent,o={size:(a=i).size,type:a.type,url:a.href},r.abrupt("return",o);case 8:case"end":return r.stop()}var a}),r)})))()}loadVersionHistory(e){var t=this;return me(he().mark((function r(){var n,i,o,a;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=null===(n=t._sam)||void 0===n?void 0:n.hostAssetContext,r.next=3,i.getAssetWithCloudID(e);case 3:return o=r.sent,r.next=6,new Promise(((e,t)=>{(a=o.versions.getList(Eg.default,void 0,{loadAllPages:!0})).on(Po,(function r(){(null==a?void 0:a.status)!==_o.Loading&&(null==a||a.off(Po,r),(null==a?void 0:a.errors)&&t(),e())}))}));case 6:return r.abrupt("return",null==a?void 0:a.items.map((t=>sL(e,t))));case 7:case"end":return r.stop()}}),r)})))()}loadVersion(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=null===(i=r._sam)||void 0===i?void 0:i.hostAssetContext,n.next=3,o.getAssetWithCloudID(e);case 3:return a=n.sent,n.next=6,r.fetch(t);case 6:return s=n.sent,n.next=9,s.json();case 9:return c=n.sent,n.abrupt("return",rL(a,c));case 11:case"end":return n.stop()}}),n)})))()}getCollaborators(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=null===(n=t._sam)||void 0===n?void 0:n.collaborationContext.getCollaborators(e),r.next=3,new Promise(((e,t)=>{null==(o=null==i?void 0:i.getList(oy.default,void 0,{loadAllPages:!0}))||o.on(Po,(function r(){(null==o?void 0:o.status)!==_o.Loading&&(null==o||o.off(Po,r),(null==o?void 0:o.errors)?t():e())}))}));case 3:return r.abrupt("return",null==o?void 0:o.items.map((t=>cL(e,t))));case 4:case"end":return r.stop()}}),r)})))()}followLibrary(e,t){return this.fetch("/api/v1/libraries/bookmarks",{method:"POST",body:JSON.stringify({bookmarks:[{type:"collab",id:t,urn:e}]}),headers:{"content-type":"application/json"}}).then((()=>{}))}moveLibrary(e,t,r){return new Promise(((n,i)=>{const o={"content-type":"application/json"};r&&(o["x-organization-id"]=r);const a=this.fetch(`/api/v1/libraries?${iO.stringify({invocation_mode:"async"})}`,{method:"POST",body:JSON.stringify({self:e,repository:t}),headers:o}),s=new Bx(this,a);s.on("change",((e,t)=>{e&&(s.error?i(s.error):n(YL(fL(t))))}))}))}importLibrary(e){throw new Error("Not implemented")}exportLibrary(e,t){throw new Error("Not implemented")}publishBrand(e){if(!e.assetId)throw new px("INVALID_PARAMETER","Brand asset id must be defined for publishing. Please wait before trying again.");return this.fetch(`/api/v1/brands/${e.assetId}/publish`,{method:"POST",headers:{"content-type":"application/json"}})}unpublishBrand(e){let t;if(e.publishedTo)t=e.publishedTo;else{if(!e.publishedFrom)throw new px("INVALID_PARAMETER","Brand must be publsihed before unpublishing. Please wait before trying again.");t=e.assetId}return this.fetch(`/api/v1/brands/${t}/unpublish`,{method:"POST",headers:{"content-type":"application/json"}})}abortOperation(e){return me(he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("Not supported in cloud mode.");case 1:case"end":return e.stop()}}),e)})))()}setLibraryChangeListener(e,t){this._notificationManager.setWatchedLibraries(e,(e=>t(e,"assetId")))}setSyncStateListener(){}removeLibraryChangeListener(){this._notificationManager.disconnect()}removeSyncStateListener(){}removeFontDataChangeListeners(){}addWatchedLibrary(e){this._notificationManager.addWatchedLibrary(e)}removeWatchedLibrary(e){this._notificationManager.removeWatchedLibrary(e),this._assets.delete(e.assetId)}addLibrariesSyncGroupListener(e){this._notificationManager.addLibrariesSyncGroupListener(e)}removeLibrariesSyncGroupListener(){this._notificationManager.removeLibrariesSyncGroupListener()}_getLibrariesURL(e){return`/api/v1/libraries?${new URLSearchParams(e).toString()}`}_getLibrariesResponseMapper(e){return t=>void 0===t.libraries?[]:t.libraries.map((t=>{var r,n;return fL(t,this._options.readOnly,null===(n=null===(r=null==e?void 0:e.selector)||void 0===r?void 0:r.includes("rendition_grid"))||void 0===n||n)}))}_getElement(e,t){return this.fetch(`/api/v1/libraries/${e}/elements/${t}?selector=default,representations,details,tags`).then((e=>e.json())).then((e=>mL(e)))}_getAllElements(e,t){var r,n;return Re(this,arguments,he().mark((function i(){var o,a,s,c,l,u,d,p,h,f,m,g,v,y;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:l={},u=0,d=[["elements","_getElementsByAssetId"],["documentationElements","_getDocumentationElementsByAssetId"],["removedElements","_getRemovedElementsByAssetId"]];case 3:if(!(u<d.length)){i.next=47;break}if(p=le(d[u],2),h=p[0],f=p[1],!t.types.includes(h)){i.next=44;break}i.prev=6,m=!0,a=void 0,g=je(this[f](e,t.sort,t.etag,void 0,null===(r=t.abortController)||void 0===r?void 0:r.signal));case 8:return i.next=10,Ne(g.next());case 10:if(v=i.sent,o=v.done){i.next=29;break}if(c=v.value,m=!1,i.prev=15,y=c,l[h]=l[h]||[],null===(n=l[h])||void 0===n||n.push(...y),!t.loadProgressively){i.next=24;break}return i.next=22,Ne({[h]:l[h]});case 22:return i.next=24,i.sent;case 24:return i.prev=24,m=!0,i.finish(24);case 27:i.next=8;break;case 29:i.next=34;break;case 31:i.prev=31,i.t0=i.catch(6),a={error:i.t0};case 34:if(i.prev=34,i.prev=35,m||o||!(s=g.return)){i.next=39;break}return i.next=39,Ne(s.call(g));case 39:if(i.prev=39,!a){i.next=42;break}throw a.error;case 42:return i.finish(39);case 43:return i.finish(34);case 44:u++,i.next=3;break;case 47:return i.next=49,Ne(Object.assign({areElementsLoaded:!0},t.loadProgressively?{}:l));case 49:return i.next=51,i.sent;case 51:case"end":return i.stop()}}),i,this,[[6,31,34,44],[15,,24,27],[35,,39,43]])})))}_getElementsByAssetId(e,t=NO,r,n=100,i){return Re(this,arguments,he().mark((function o(){return he().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.t0=Ne,o.delegateYield(Me(je(this._getElementsOfTypeByAssetId("elements",e,t,r,n,i))),"t1",2);case 2:return o.t2=o.t1,o.next=5,(0,o.t0)(o.t2);case 5:case"end":return o.stop()}}),o,this)})))}_getRemovedElementsByAssetId(e,t=NO,r,n=100,i){return Re(this,arguments,he().mark((function o(){return he().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.t0=Ne,o.delegateYield(Me(je(this._getElementsOfTypeByAssetId("archive",e,t,r,n,i))),"t1",2);case 2:return o.t2=o.t1,o.next=5,(0,o.t0)(o.t2);case 5:case"end":return o.stop()}}),o,this)})))}_getDocumentationElementsByAssetId(e,t=NO,r,n=100,i){return Re(this,arguments,he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ne(Promise.resolve([]));case 2:return e.next=4,e.sent;case 4:case"end":return e.stop()}}),e)})))}_getElementsOfTypeByAssetId(e,t,r=NO,n,i=100,o){return Re(this,arguments,he().mark((function a(){var s,c,l;return he().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s=e=>e.elements.map((e=>{if(!e.manifest_etag&&'""'===n||e.manifest_etag===n)return mL(e);throw new Cx("PRECONDITION_FAILED",`An element did not match the provided etag: ${n}`)})),c=`${"descending"===r.direction?"-":""}${RO[r.field]}`,l={limit:i,orderBy:c,selector:["default","representations","details"]},a.t0=Ne,a.delegateYield(Me(je(this.fetchAllPages(`/api/v1/libraries/${t}/${e}?${iO.stringify(l,{arrayFormat:"comma"})}`,{},s,o))),"t1",5);case 5:return a.t2=a.t1,a.next=8,(0,a.t0)(a.t2);case 8:case"end":return a.stop()}}),a,this)})))}getSearchResults(e,t,r,n){return Re(this,arguments,he().mark((function i(){var o,a,s;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=r.field,a=r.direction,s="modifiedDate"===o?"modified_date":"name","descending"===a&&(s=`-${s}`),i.t0=Ne,i.delegateYield(Me(je(this.fetchAllPages("/api/v1/search",{method:"POST",signal:n,headers:{"Content-Type":"application/json"},body:JSON.stringify({query_string:e,library_id:t.library_id,asset_type:["element"],orderBy:s,limit:300})},(e=>e.elements.map(EL))))),"t1",5);case 5:return i.t2=i.t1,i.next=8,(0,i.t0)(i.t2);case 8:case"end":return i.stop()}}),i,this)})))}getTeams(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetch(`https://${e.driverConfig.teams_hostname}/api/v2/teams`);case 2:return r=t.sent,t.next=5,r.json();case 5:if(void 0!==(n=t.sent).teams){t.next=8;break}return t.abrupt("return",[]);case 8:return t.abrupt("return",n.teams.filter((e=>"org"===e.repositoryOwner.type)).map(bL));case 9:case"end":return t.stop()}}),t)})))()}getProjects(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._sam){t.next=2;break}return t.abrupt("return",[]);case 2:return t.next=4,e._sam.projectContext.projects().getList(Zv.default,hy.AllProjects,{loadAllPages:!0});case 4:return r=t.sent,t.next=7,DO(r);case 7:return t.abrupt("return",r.items.map(CO));case 8:case"end":return t.stop()}}),t)})))()}getProjectByName(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._sam){r.next=2;break}return r.abrupt("return",void 0);case 2:return r.next=4,t.getProjects();case 4:return r.abrupt("return",r.sent.find((t=>t.name===e)));case 5:case"end":return r.stop()}}),r)})))()}getProjectGradient(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._sam){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,t._sam.projectContext.getProjectbyID(e.id);case 4:return n=r.sent,r.abrupt("return",t._sam.projectContext.getGradient(n.gradientID).then(kO));case 6:case"end":return r.stop()}}),r)})))()}getGroups(e){return Re(this,arguments,he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ne(Promise.resolve(void 0));case 2:return e.next=4,e.sent;case 4:case"end":return e.stop()}}),e)})))}getRenditionUrl(e,t){let r;try{const n=Jx(e,t);if(!n)return"";r=new URL(n)}catch(e){return gx.log(String(e)),""}return r.searchParams.set("api_key",this._clientId),r.searchParams.set("user_token",this._token),r.toString()}getAuthenticatedThumbnailURL(e,t){return Promise.resolve(this.getRenditionUrl(e,t))}getRenditionPath(e,t,r){return Promise.resolve("")}getRendition(e,t){return this.fetch(Jx(e,t))}getRepresentationContent(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e.contentLength<Cw)){r.next=4;break}n=e.data.url,r.next=9;break;case 4:return r.next=6,t.getPresignedDownloadUrl(e.data.blockDownloadUrl);case 6:i=r.sent,(n=i&&i.url)||(n=e.data.url);case 9:return r.abrupt("return",t.fetch(n));case 10:case"end":return r.stop()}}),r)})))()}setLocalSetting(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=JSON.stringify(t),null===(i=r._localStorage)||void 0===i||i.setItem(e,t);case 2:case"end":return n.stop()}}),n)})))()}getLocalSetting(e){var t;const r=null===(t=this._localStorage)||void 0===t?void 0:t.getItem(e);return r&&JSON.parse(r)}getInstalledVersion(e){throw new Error("Not supported in cloud mode.")}setFontDataChangeListener(e){}moveUrlQueryParamsToHeaders(e,t={}){const r=le(e.split("?"),2),n=r[0],i=r[1],o=new URLSearchParams(i);var a,s=ue(zw);try{for(s.s();!(a=s.n()).done;){const e=a.value,r=o.get(e);r&&(t[e]=r,o.delete(e))}}catch(e){s.e(e)}finally{s.f()}return[`${n}${[...o].length>0?"?":""}${o}`,t]}sendAction(e){return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:throw new px("NOT_SUPPORTED","Application actions are not supported in a cloud environment",e.item.id);case 1:case"end":return t.stop()}}),t)})))()}openInCCD(e){return me(he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("Not supported in cloud mode.");case 1:case"end":return e.stop()}}),e)})))()}fetch(e,t,r={}){var n=this;return me(he().mark((function i(){var o,a,s,c,l,u,d,p,h;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return SL("path",e),(t=t||{}).headers=t.headers||{},t.headers["x-api-key"]=n._clientId,!1!==r.includeAuthHeader&&(t.headers.Authorization=`Bearer ${n._token}`),c=Xx(e),l=c.url,u=c.headers,e=l,t.headers=Object.assign(Object.assign({},u),t.headers),t.signal=t.signal?Lx(t.signal,null===(o=n._abortController)||void 0===o?void 0:o.signal):null===(a=n._abortController)||void 0===a?void 0:a.signal,e.startsWith("/")&&(e=`https://${n.driverConfig.hostname}${e}`),d=Date.now(),i.next=13,n._fetch(e,t).catch((e=>{if(e.name===Yw)return new Response("{}");throw gx.info(`Error - ${e} (${Date.now()-d}ms)`),e}));case 13:if(p=i.sent,h=p.headers.get("X-Request-Id")||"no requestId",gx.info(`[${h}] ${t.method||"GET"} ${e} ${p.status} (${Date.now()-d}ms)`),!(p.status>=300)){i.next=22;break}return"UNAUTHORIZED"===kx(p).code&&(null===(s=n._refreshAccessToken)||void 0===s||s.call(n)),i.next=21,n._getFetchError(p);case 21:throw i.sent;case 22:return i.abrupt("return",p);case 23:case"end":return i.stop()}}),i)})))()}_getFetchError(e){return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(403!==e.status){t.next=11;break}return t.prev=1,t.next=4,e.json();case 4:if("string"!=typeof(r=t.sent).type||"quota"!==r.type.toLowerCase()){t.next=7;break}return t.abrupt("return",new px("EXCEEDS_QUOTA",r.problem_type_message||"Storage quota exceeded"));case 7:t.next=11;break;case 9:t.prev=9,t.t0=t.catch(1);case 11:return t.abrupt("return",kx(e));case 12:case"end":return t.stop()}}),t,null,[[1,9]])})))()}fetchAllPages(e,t,r,n,i=!0){var o,a;return Re(this,arguments,he().mark((function s(){var c,l,u,d,p,h,f;return he().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:c=e;case 1:if(!c){s.next=14;break}return l=t.headers,u=void 0===l?{}:l,d=Pe(t,["headers"]),i&&(p=this.moveUrlQueryParamsToHeaders(c,u),h=le(p,1),c=h[0]),s.next=6,Ne(this.fetch(c,Object.assign(Object.assign({signal:n},d),{headers:u})).then((e=>e.json())));case 6:return f=s.sent,s.next=9,Ne(r(f));case 9:return s.next=11,s.sent;case 11:c=null===(a=null===(o=f._links)||void 0===o?void 0:o.next)||void 0===a?void 0:a.href,s.next=1;break;case 14:case"end":return s.stop()}}),s,this)})))}fetchOnePage(e,t,r,n=!0){return Re(this,arguments,he().mark((function i(){var o,a,s,c;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n&&(a=this.moveUrlQueryParamsToHeaders(e),s=le(a,2),e=s[0],o=s[1]),i.next=3,Ne(this.fetch(e,{signal:r,headers:o}).then((e=>e.json())));case 3:return c=i.sent,i.next=6,Ne(t(c));case 6:return i.next=8,i.sent;case 8:case"end":return i.stop()}}),i,this)})))}copyFile(e,t,r){return me(he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("Not supported in cloud mode.");case 1:case"end":return e.stop()}}),e)})))()}getFileSize(e){return me(he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("Not supported in cloud mode.");case 1:case"end":return e.stop()}}),e)})))()}getRenditionGrid(e){throw new Error("Not supported in cloud mode.")}stageRepresentationForCommit(e,t,r){var n=this;return me(he().mark((function i(){var o,a,s,c,l,u,d,p,h,f,m,g,v,y;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return a=r||t.type,i.next=3,n._fetchLibraryLinks(e);case 3:if(s=i.sent,c=s[tL.COMPONENT],l=s[tL.BLOCK_INIT],u=(null==l?void 0:l["repo:maxSingleTransferSize"])||Cw,c){i.next=9;break}throw new px("NOT_ALLOWED","Library is missing component upload link",e.id);case 9:return d=br.v4(),p=Je(c.href),h=p.fill({component_id:d}),i.next=14,cx(t,a);case 14:if(f=i.sent,m={id:d,storage_href:h,asset_id:e.assetId,type:a,content_length:t.size,name:t.name,width:null==f?void 0:f.width,height:null==f?void 0:f.height},!(t.size>u&&l)){i.next=27;break}return i.next=19,n._initializeBlockUpload(l,d,t,a);case 19:return g=i.sent,i.next=22,n._transferBlocks(g,t);case 22:return i.next=24,n._finalizeBlockUpload(g);case 24:return v=i.sent,Object.assign(m,v),i.abrupt("return",JSON.stringify(m));case 27:return i.t0=n,i.t1=h,i.t2={"Content-Type":a},i.next=32,t.arrayBuffer();case 32:return i.t3=i.sent,i.t4={method:"PUT",headers:i.t2,body:i.t3},i.next=36,i.t0.fetch.call(i.t0,i.t1,i.t4);case 36:return y=i.sent,Object.assign(m,{etag:y.headers.get("etag"),md5:null!==(o=y.headers.get("content-md5"))&&void 0!==o?o:void 0,version:y.headers.get("revision")}),i.abrupt("return",JSON.stringify(m));case 39:case"end":return i.stop()}}),i)})))()}_fetchLibraryLinks(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s,c,l;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.assetId){r.next=2;break}throw new px("NOT_SUPPORTED","Library does not have an assetId",e.id);case 2:return r.next=4,t.fetch(`https://${t.driverConfig.platform_hostname}`);case 4:return n=r.sent,r.next=7,n.json();case 7:return i=r.sent._links,o=i[tL.RESOLVE],a=Je(o.href),s=a.fill({id:e.assetId}),r.next=13,t.fetch(s,{method:"HEAD"});case 13:return c=r.sent,l=c.headers.get("link"),r.abrupt("return",l?tO(l):{});case 16:case"end":return r.stop()}}),r)})))()}_initializeBlockUpload(e,t,r,n){var i=this;return me(he().mark((function o(){var a,s;return he().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a={"repo:size":r.size,"repo:blocksize":e["repo:maxSingleTransferSize"]||Cw,"repo:reltype":tL.COMPONENT,component_id:t,"dc:format":n},o.next=3,i.fetch(e.href,{method:"POST",headers:{"Content-Type":"application/vnd.adobecloud.bulk-transfer+json"},body:JSON.stringify(a)});case 3:return s=o.sent,o.next=6,s.json();case 6:return o.abrupt("return",o.sent);case 7:case"end":return o.stop()}}),o)})))()}_transferBlocks(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:for(i=e["repo:blocksize"],o=e._links[tL.BLOCK_TRANSFER],a=0,s=[],c=0;a<=t.size;c+=1)l=Math.min(a+i,t.size),s.push(r.fetch(o[c].href,{method:"PUT",headers:{"Content-Length":String(l-a)},body:t.slice(a,l),duplex:"half"},{includeAuthHeader:!1})),a+=i;return n.next=7,Promise.all(s);case 7:return n.abrupt("return",n.sent);case 8:case"end":return n.stop()}}),n)})))()}_finalizeBlockUpload(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s,c;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=e._links[tL.BLOCK_FINALIZE],o=i.href,i.templated&&(a=Je(i.href),o=a.fill({})),s=t.fetch(o,{method:"POST",headers:{"Content-Type":"application/vnd.adobecloud.bulk-transfer+json"},body:JSON.stringify(e)}),r.next=6,s;case 6:if((c=r.sent).status!==Vw.ACCEPTED){r.next=9;break}return r.abrupt("return",new Promise(((e,r)=>{const n=new Bx(t,s);n.on("change",((t,i,o)=>{var a;t&&(n.error?r(n.error):e({etag:o.get("etag"),md5:null!==(a=o.get("content-md5"))&&void 0!==a?a:void 0,version:o.get("version")}))}))})));case 9:return r.abrupt("return",{etag:c.headers.get("etag"),md5:null!==(n=c.headers.get("content-md5"))&&void 0!==n?n:void 0,version:c.headers.get("version")});case 10:case"end":return r.stop()}}),r)})))()}getLocalDriver(){return new mS((()=>this._requestProcessToUploadData(br.v4(),Date.now())))}_requestProcessToUploadData(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l,u,d;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(Date.now()-t>15e3)){n.next=3;break}throw gx.log("Timed out and no response received from process and/or server"),new Error("Unable to get process connection info (timed out)");case 3:for(o=wO(null===(i=r.config.user)||void 0===i?void 0:i.id),a=`https://${e}.${o}.adobelocalhost.com`,s=[],c=kw[0];c<=kw[1];c+=1)s.push(`${a}:${c}`);return r.resetAbortController(),n.next=10,Promise.allSettled(s.map((e=>fetch(e))));case 10:return n.prev=10,n.next=13,Promise.all([r._fetchProcessConnectInfo(e).catch((()=>{})),yx(1e3)]);case 13:if(l=n.sent,u=le(l,1),d=u[0]){n.next=18;break}throw new Cx("MALFORMED_RESPONSE",`Invalid response retrieving process connection data for uuid: ${e}`);case 18:return n.abrupt("return",d);case 21:return n.prev=21,n.t0=n.catch(10),gx.error(String(n.t0)),n.abrupt("return",r._requestProcessToUploadData(e,t));case 25:case"end":return n.stop()}}),n,null,[[10,21]])})))()}_fetchProcessConnectInfo(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=`https://${t.driverConfig.hostname}/api/v1/client-tokens/${e}`,r.next=3,t.fetch(n).then((e=>e.json()),(e=>gx.error(e)));case 3:if(i=r.sent,o=JSON.parse(i.token),a=o.restApiToken,s=o.restApiPort,a&&s){r.next=7;break}throw new Cx("MALFORMED_RESPONSE","Response did not include necessary process connection data");case 7:return r.abrupt("return",{hostname:`http://127.0.0.1:${s}`,token:a});case 8:case"end":return r.stop()}}),r)})))()}getClientInfo(){var e;return{deviceId:`${this._clientId}-${null===(e=this.config.user)||void 0===e?void 0:e.id}`,device:"undefined"!=typeof window?window.navigator.userAgent:"node-js",app:this._clientId}}getTempDir(e){return me(he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("Not supported in cloud mode.");case 1:case"end":return e.stop()}}),e)})))()}ignoreLocalSyncEvents(){return!1}}Ie([OL("cclibraries-cloudDriver-getLibraryById")],jO.prototype,"getLibraryById",null),Ie([OL("cclibraries-cloudDriver-getAllElements")],jO.prototype,"_getAllElements",null),Ie([OL("cclibraries-cloudDriver-getElementsOfTypeByAssetId")],jO.prototype,"_getElementsOfTypeByAssetId",null),Ie([OL("cclibraries-cloudDriver-getTeams")],jO.prototype,"getTeams",null),Ie([OL("cclibraries-cloudDriver-getProjects")],jO.prototype,"getProjects",null),Ie([OL("cclibraries-cloudDriver-getProjectByName")],jO.prototype,"getProjectByName",null),Ie([OL("cclibraries-cloudDriver-getProjectGradient")],jO.prototype,"getProjectGradient",null),Ie([OL("cclibraries-cloudDriver-getRendition")],jO.prototype,"getRendition",null),Ie([OL("cclibraries-cloudDriver-fetch")],jO.prototype,"fetch",null),Ie([OL("cclibraries-cloudDriver-stageRepresentationForCommit")],jO.prototype,"stageRepresentationForCommit",null);class FO{static getInstance(e){let t=this.libAbortControllerMap.get(e);return t||(t=new AbortController,this.libAbortControllerMap.set(e,t)),t}static removeInstance(e){return this.libAbortControllerMap.delete(e)}}function ZO(e,t=!1){var r;const n=!t&&e.is_writable,i={id:e.id,etag:e.etag,name:e.name,ownership:e.ownership,default:e.default,localizedNames:e.localized_names,toolkitId:e.toolkit_id,documentId:e.document_id,documentType:e.document_type,createdDate:e.created_date,modifiedDate:e.modified_date,groups:(e.groups||[]).map(HO),details:{elementCount:e.details.num_elements,documentationElementCount:e.details.num_documentation_elements,removedElementCount:e.details.num_archived_elements},renditionGrid:e.rendition_grid,collaboration:e.collaboration,assetId:e.asset_id,isWritable:n,isParentWritable:!t&&e.is_parent_writable,team:e.team_id?{id:e.team_id}:void 0,roles:e.roles,owner:e.owner,ownerType:e.owner_type,customData:e.custom_data,isLibraryLoaded:!0,storageUsed:e.storage_used,publicLinkId:(o=e.public_link,null==o?void 0:o.substring(o.lastIndexOf("/")+1)),locallyManaged:e.locally_managed,bookmark:e.bookmark,removeType:null!==(r=e.remove_type)&&void 0!==r?r:n?"delete":"none",deletable:n};var o;return e.elements&&(i.elements=e.elements.map(GO)),i}function BO(e){var t,r;return{id:e.id,name:e.name,ownership:e.ownership,default:e.default,localized_names:e.localizedNames,toolkit_id:e.toolkitId,document_id:e.documentId,document_type:e.documentType,groups:null===(t=e.groups)||void 0===t?void 0:t.map(zO),collaboration:e.collaboration,details:{num_elements:0,num_documentation_elements:0,num_archived_elements:0},team_id:null===(r=e.team)||void 0===r?void 0:r.id,roles:e.roles,custom_data:e.customData}}function GO(e){var t,r,n;return{id:e.id,name:e.name,isAutoNamed:e.is_auto_named,autoName:e.auto_name,type:e.type,libraryId:null===(t=e.library)||void 0===t?void 0:t.id,sourceRef:e.source_ref,sourceModifiedDate:e.source_modified_date,tags:e.tags,dependencyIds:e.dependency_ids,localizedNames:e.localized_names,createdDate:e.created_date,createdLocally:e.created_locally,createdBy:e.created_by,createdContext:e.created_context,modifiedDate:e.modified_date,modifiedLocally:e.modified_locally,modifiedBy:e.modified_by,modifiedContext:e.modified_context,description:e.description,descriptionModifiedDate:e.description_modified_date,descriptionModifiedLocally:e.description_modified_locally,descriptionModifiedBy:e.description_modified_by,descriptionModifiedContext:e.description_modified_context,removedDate:e.removed_date,removedLocally:e.removed_locally,removedBy:e.removed_by,removedContext:e.removed_context,representations:null===(r=e.representations)||void 0===r?void 0:r.map(WO),groups:null===(n=e.groups)||void 0===n?void 0:n.map(VO),roles:e.roles,customData:e.custom_data,elementRef:e.element_ref}}function UO(e){var t,r;return{id:e.id,name:e.name,is_auto_named:e.isAutoNamed,auto_name:e.autoName,type:e.type,source_ref:e.sourceRef,description:e.description,tags:e.tags,dependency_ids:e.dependencyIds,localized_names:e.localizedNames,created_date:e.createdDate,modified_date:e.modifiedDate,representations:null===(t=e.representations)||void 0===t?void 0:t.map((e=>KO(e,!1))),groups:null===(r=e.groups)||void 0===r?void 0:r.map(YO),roles:e.roles,custom_data:e.customData}}function HO(e){return{id:e.id,classifier:e.classifier,name:e.name,order:e.order,parentId:e.parent_id,localizedNames:e.localized_names,createdDate:e.created_date,createdBy:e.created_by,createdContext:e.created_context,createdLocally:e.created_locally,modifiedDate:e.modified_date,modifiedBy:e.modified_by,modifiedContext:e.modified_context,modifiedLocally:e.modified_locally,sourceRef:e.source_ref,customData:e.custom_data}}function zO(e){return{id:e.id,classifier:e.classifier,name:e.name,order:e.order,parent_id:e.parentId,localized_names:e.localizedNames,created_date:e.createdDate,modified_date:e.modifiedDate,source_ref:e.sourceRef,custom_data:e.customData}}function VO(e){return{id:e.id,classifier:e.classifier,order:e.order}}function YO(e){return{id:e.id,classifier:e.classifier,order:e.order}}function WO(e){var t;return{id:e.id,type:e.type,relationship:e.relationship,isFullSize:e.is_full_size,isExternalLink:e.is_external_link,isPreferredThumbnail:e.is_preferred_thumbnail,customData:e.custom_data,path:e.path,width:e.width,height:e.height,contentLength:e.content_length,url:e.url,children:null===(t=e.children)||void 0===t?void 0:t.map(WO)}}function KO(e,t=!1){var r;return{id:e.id,type:e.type,relationship:t?void 0:e.relationship,is_full_size:!1,is_external_link:!1,source:e.source,children:null===(r=e.children)||void 0===r?void 0:r.map((e=>KO(e,!0))),custom_data:e.customData}}function $O(e){return{name:e.name,id:e.id,owner:{type:e.ownerType,id:e.ownerId},ownerName:e.ownerName,isWritable:e.permissions.includes("write")}}function qO(e){return{name:e.name,id:e.id,owner:{type:e.storageAssignee.type,id:e.storageAssignee.id},ownerName:e.storageAssignee.displayName,isReadOnly:e.isReadOnly,isWritable:!0}}function XO(e,t){if(e=(e||"0").toString().replace(/(\.0)*$/,"").replace(/[^.0-9]+/gim,"."),t=(t||"0").toString().replace(/(\.0)*$/,"").replace(/[^.0-9]+/gim,"."),(isNaN(parseInt(e,10))||parseInt(e,10)>250)&&(e="0"),(isNaN(parseInt(t,10))||parseInt(t,10)>250)&&(t="0"),e===t)return 0;const r=e.split("."),n=t.split(".");let i;for(let e=0;e<r.length&&e<n.length;e++){if(i=parseInt(r[e],10)-parseInt(n[e],10),isNaN(i))return isNaN(parseInt(r[e],10))?1:-1;if(i>0)return-1;if(i<0)return 1}return i=r.length-n.length,i>0?-1:i<0?1:0}FO.libAbortControllerMap=new Map;const JO=["updateLibrary","createElement","updateElement","removeElement","restoreElement","deleteElement","createGroup","updateGroup","removeGroup"];function QO(e,t){return Object.assign(Object.assign({},e),{data:t,originalAction:e})}const eS={updateLibrary:(e,t)=>QO(e,ZO(t)),createElement:(e,t)=>QO(e,GO(t)),updateElement:(e,t)=>QO(e,GO(t)),restoreElement:(e,t)=>QO(e,GO(t)),removeElement:e=>e,deleteElement:e=>e,createGroup:(e,t)=>QO(e,HO(t)),updateGroup:(e,t)=>QO(e,HO(t)),removeGroup:e=>e};class tS extends Hx{constructor(){super(...arguments),this._actionMappers={updateLibrary:e=>({method:"PUT",path:"",body:BO(e.data)}),createElement:e=>({method:"POST",path:"elements",body:UO(e.data)}),updateElement:e=>({method:"PUT",path:`elements/${NL(e.path)}`,body:UO(e.data)}),removeElement:e=>({method:"DELETE",path:`elements/${NL(e.path)}`}),restoreElement:e=>({method:"POST",path:`removed_elements/${e.data.id}/restore`}),deleteElement:e=>({method:"DELETE",path:`elements/${NL(e.path)}?permanent=true`}),createGroup:e=>({method:"POST",path:"groups",body:zO(e.data)}),updateGroup:e=>({method:"PUT",path:`groups/${ML(e.path)}`,body:zO(e.data)}),removeGroup:e=>{var t;return{method:"DELETE",path:`groups/${ML(e.path)}${(null===(t=e.flags)||void 0===t?void 0:t.includeElements)?"?include_contents=true":""}`}}},this._actions=[]}execute(){var e=this;return me(he().mark((function t(){var r,n,i,o,a;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e._actions.map((t=>e._actionMappers[t.name](t))),n=VL(r),t.next=4,e._driver.fetch(`/libraries/${e._library.id}`,{method:"PATCH",headers:{"If-Match":e._library.etag},body:JSON.stringify(n)});case 4:return i=t.sent,t.next=7,i.json();case 7:if(o=t.sent,Array.isArray(o)&&o.length===e._actions.length){t.next=10;break}throw new px("INVALID_RESPONSE","Malformed batch response.",e._library.id);case 10:return a=e._actions.map(((e,t)=>eS[e.name](e,o[t]))),a=GL(a),t.abrupt("return",{actions:a,etag:i.headers.get("ETag")});case 13:case"end":return t.stop()}}),t)})))()}supportsAction(e){return function(e){return JO.includes(e.name)}(e)}}Ie([Ux],tS.prototype,"execute",null);class rS extends Hx{supportsAction(e){return"updateElementContent"===e.name}addAction(e){return(!this._actions[0]||this._actions[0].path===e.path)&&super.addAction(e)}execute(){var e=this;return me(he().mark((function t(){var r,n,i,o,a;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e._actions[e._actions.length-1],t.next=3,e._updateElementContent(NL(r.path),r.data);case 3:return n=t.sent,t.next=6,n.json();case 6:return i=t.sent,o=GO(i),a=e._actions.map(((t,r)=>r!==e._actions.length-1?Object.assign(Object.assign({},t),{type:"no-op",originalAction:t}):Object.assign(Object.assign({},t),{data:o,originalAction:t}))),t.abrupt("return",{actions:a,etag:n.headers.get("ETag")});case 10:case"end":return t.stop()}}),t)})))()}_updateElementContent(e,t){const r=Object.assign(Object.assign({},t),{representations:WL(ZL(t.representations))});return this._driver.fetch(`/libraries/${this._library.id}/elements/${e}`,{method:"PUT",headers:{"If-Match":this._library.etag},body:JSON.stringify(UO(r))})}}Ie([Ux],rS.prototype,"execute",null);class nS extends zx{constructor(){var e,t,r,n,i;super(...arguments),e=this,this._actionMappers={createLibrary:e=>this._createLibraryActionMap(e),copyLibrary:e=>this._createLibraryActionMap(e),permanentlyDeleteLibrary:e=>this._permanentlyDeleteLibrary(e),removeLibrary:(i=me(he().mark((function t(r){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._removeLibrary();case 2:return t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)}))),function(e){return i.apply(this,arguments)}),unfollowLibrary:(n=me(he().mark((function t(r){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._removeLibrary("unfollow");case 2:return t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)}))),function(e){return n.apply(this,arguments)}),leaveLibrary:(r=me(he().mark((function t(r){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._removeLibrary("leave");case 2:return t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)}))),function(e){return r.apply(this,arguments)}),moveLibrary:(t=me(he().mark((function t(r){var n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._moveLibrary();case 2:return n=t.sent,t.abrupt("return",Object.assign(Object.assign({},r),{data:n,originalAction:r}));case 4:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})}}supportsAction(e){return["createLibrary","removeLibrary","permanentlyDeleteLibrary","unfollowLibrary","leaveLibrary","copyLibrary","moveLibrary"].includes(e.name)}_createLibraryActionMap(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._createLibrary(e);case 2:return n=r.sent,r.abrupt("return",Object.assign(Object.assign({},e),{type:"update",data:n,originalAction:e}));case 4:case"end":return r.stop()}}),r)})))()}_createLibrary(e){const t=e.data,r=void 0===t?{}:t,n=e.flags,i=void 0===n?{}:n;return new Promise(((e,t)=>{var n,o;const a=this._driver.fetch("/libraries",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:r.name,team_id:null===(n=r.team)||void 0===n?void 0:n.id,roles:r.roles,team_permission_inheritance:i.permissionInheritance,source:null===(o=i.source)||void 0===o?void 0:o.id})}),s=new Bx(this._driver,a);s.on("change",((r,n)=>{if(r){s.error&&t(s.error);const r=n?ZO(n):void 0;e(r)}}))}))}_permanentlyDeleteLibrary(e){throw new Error("permanentlyDeleteLibrary not supported by LocalDriver, use removeLibrary instead")}_removeLibrary(e="remove"){return"remove"===e&&FO.getInstance(this._library.id).abort(),this._driver.fetch(`/libraries/${this._library.id}?action=${e}`,{method:"DELETE"}).then((()=>{"remove"===e&&FO.removeInstance(this._library.id)}))}_moveLibrary(){return this._driver.moveLibrary(this._library.id,this.action.data.team.id)}}class iS extends QL{constructor(){var e,t;super(...arguments),e=this,this._actionMappers={uploadComponent:(t=me(he().mark((function t(r){var n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._driver.stageRepresentationForCommit(r.library,r.data.file,r.data.type);case 2:return n=t.sent,t.abrupt("return",Object.assign(Object.assign({},r),{data:{path:n},originalAction:r}));case 4:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})}}supportsAction(e){return"uploadComponent"===e.name}}class oS extends jL{_doMoveCopyRequest(e,t,r,n){var i=this;return me(he().mark((function t(){var o,a,s,c;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=i._library.id,a=r.id,t.next=4,i._driver.fetch(`/libraries/${a}/elements`,{method:"POST",headers:{"If-Match":r.etag},body:JSON.stringify({[e?"self":"source"]:{id:o,elements:n,etag:i._library.etag}})});case 4:return s=t.sent,t.next=7,s.json();case 7:return c=t.sent,t.abrupt("return",{elements:c.elements.map(GO),etag:s.headers.get("ETag"),sourceEtag:s.headers.get("Source-ETag")});case 9:case"end":return t.stop()}}),t)})))()}}class aS extends Hx{get action(){return this._actions[0]}supportsAction(e){return["moveGroup","copyGroup","dependent"].includes(e.name)}addAction(e){return!!this.supportsAction(e)&&(this._actions[this._actions.length-1]||"dependent"===e.name?"dependent"===e.name&&super.addAction(e):super.addAction(e))}execute(){var e=this;return me(he().mark((function t(){var r,n,i,o,a,s,c,l,u,d,p;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i="moveGroup"===e.action.name,o=e._library.id,a=null===(r=e.action.link)||void 0===r?void 0:r.library,s=null==a?void 0:a.id,c=ML(e.action.path),t.next=7,e._driver.fetch(`/libraries/${s}/groups`,{method:"POST",headers:{"If-Match":null==a?void 0:a.etag},body:JSON.stringify({[i?"self":"source"]:{id:o,group_id:c,include_contents:null===(n=e.action.flags)||void 0===n?void 0:n.includeElements,etag:e._library.etag}})});case 7:return l=t.sent,t.next=10,l.json();case 10:return u=t.sent,a===e._library?(d=[],p=e._actions.map((e=>"dependent"!==e.name?e:Object.assign(Object.assign({},e),{data:u,originalAction:e})))):(p=e._actions,d=e._actions.map((e=>Object.assign(Object.assign({},e.link),{data:u,originalAction:e.link})))),t.abrupt("return",{actions:p,etag:l.headers.get("Source-ETag"),linkedActions:d});case 13:case"end":return t.stop()}}),t)})))()}}Ie([Ux],aS.prototype,"execute",null);var sS,cS,lS,uS=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")},dS="undefined"==typeof window?class extends hn{constructor(e){super();const t=e.replace(/http(s?):\/\//,"ws$1://");this._ws=new uS(t),this._ws.addEventListener("message",(e=>{try{const t=JSON.parse(e.data),r=t.type,n=t.message;gx.log(`[NOTIFICATIONS] Received event: ${r}`),this.emit(r,n)}catch(e){this.emit("error",new px("INVALID_JSON","Received invalid JSON"))}})),this._ws.addEventListener("error",(e=>{this.close(),this.emit("error",e)}))}get isOpen(){return this._ws.readyState===this._ws.OPEN}close(){this.isOpen&&(this.removeAllListeners(),this._ws.close())}}:(null===(lS=null===(cS=null===(sS=null===window||void 0===window?void 0:window.navigator)||void 0===sS?void 0:sS.userAgent)||void 0===cS?void 0:cS.startsWith)||void 0===lS?void 0:lS.call(cS,"Adobe UXP Runtime"))?class extends hn{constructor(e){super();const t=e.replace(/http(s?):\/\//,"ws$1://");this._ws=new WebSocket(t),this._ws.addEventListener("message",(e=>{try{const t=JSON.parse(e.data),r=t.type,n=t.message;gx.log(`[NOTIFICATIONS] Received event: ${r}`),this.emit(r,n)}catch(e){this.emit("error",new px("INVALID_JSON","Received invalid JSON"))}})),this._ws.addEventListener("error",(e=>{this.close(),this.emit("error",e)}))}get isOpen(){return this._ws.readyState===this._ws.OPEN}close(){this.isOpen&&(this.removeAllListeners(),this._ws.close())}}:class extends hn{constructor(e){super(),this._listenedEvents=new Set,this._errorCount=0,this._eventSource=new EventSource(e),this._eventSource.onopen=()=>{this._errorCount=0},this._eventSource.onerror=e=>{this._errorCount+=1,this._errorCount>=3&&(this.close(),this.emit("error",e))}}on(e,t){return super.on(e,t),this._listenedEvents.has(e)||(this._listenedEvents.add(e),this._eventSource.addEventListener(e,(t=>{gx.log(`[NOTIFICATIONS] Received event: ${e}`);try{this.emit(e,JSON.parse(t.data))}catch(e){t.data?this.emit("error",new px("INVALID_JSON","Received invalid JSON")):this.emit("error",new px("INVALID_RESPONSE","Received invalid response (no data)"))}}))),this}close(){this.removeAllListeners(),this._eventSource.close()}};class pS{constructor(e,t,r=2e3,n=8e3){this.vulcanInterface=e,this.VulcanMessage=t,this._timeout=r,this._launchTimeout=n}_generateListener(e,t){const r=n=>{clearTimeout(this._timeoutId),this.removeListener(r,t),e(n)};return r}_connectionInfoHandler(e,t){var r=this;return me(he().mark((function n(){var i,o;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(null==t?void 0:t.aborted)){n.next=2;break}return n.abrupt("return");case 2:if(e){n.next=4;break}throw new px("REQUEST_FAILED","No Vulcan response received");case 4:if(n.prev=4,i=JSON.parse(r.getPayload(e)),o={apiVersion:i.apiVersion,apiMinVersion:i.apiMinVersion,apiMaxVersion:i.apiMaxVersion},!i.updateRequired){n.next=9;break}return n.abrupt("return",Object.assign(Object.assign({},o),{updateRequired:i.updateRequired}));case 9:if(!i.serviceToken||!i.serviceHostname){n.next=11;break}return n.abrupt("return",Object.assign(Object.assign({},o),{token:i.serviceToken,hostname:i.serviceHostname}));case 11:throw new px("INVALID_RESPONSE","Incorrect data was returned via Vulcan");case 14:throw n.prev=14,n.t0=n.catch(4),new px("INVALID_RESPONSE","Incorrect data was returned via Vulcan",void 0,n.t0);case 17:case"end":return n.stop()}}),n,null,[[4,14]])})))()}_launchProcessHandler(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(null==t?void 0:t.aborted)){n.next=2;break}return n.abrupt("return");case 2:if(e){n.next=4;break}throw new px("REQUEST_FAILED","No Vulcan response received");case 4:return n.abrupt("return",r._requestConnectionInfo(t));case 5:case"end":return n.stop()}}),n)})))()}_launchProcess(e){return new Promise((t=>{const r=this._generateListener((r=>t(this._launchProcessHandler(r,e))),this.getMessageType("INITIALIZE"));this._timeoutId=setTimeout(r,this._launchTimeout),this.sendMessage(r,this.getMessageType("INITIALIZE")),this.launchApp(r)}))}_requestConnectionInfo(e){return new Promise((t=>{const r=this._generateListener((r=>{t(this._connectionInfoHandler(r,e))}));this._timeoutId=setTimeout(r,this._timeout),this.sendMessage(r)}))}connect(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._requestConnectionInfo(e).catch(function(){var r=me(he().mark((function r(n){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.isAppRunning().catch((()=>!1));case 2:if(r.sent){r.next=4;break}return r.abrupt("return",t._launchProcess(e));case 4:throw n;case 5:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()));case 1:case"end":return r.stop()}}),r)})))()}getMessageType(e){return this.messageTypes[e]}}const hS={field:"modifiedDate",direction:"descending"},fS={reconnectOnErrors:[401,403],reconnectOnNoResponse:!0};class mS extends Ix{constructor(e,t={}){super(e),this._libraryChangeListener=()=>{},this._renditionCacheChangeListener=()=>{},this._lastNotificationPayload={},this._operationTypes=[tS,rS,nS,oS,aS,iS],this._handleConfigurationMutation=e=>{const t=new vx(e);return this._needToReconnect(t)&&this.reconnect(),this._config=t,this.emit("configChange"),this.config},this._handleRenditionCacheMutation=e=>{this._renditionCacheChangeListener(GO(e))},this._handleLibraryMutation=e=>{if(!e)return;const t=new Set(Object.keys(e)),r=Object.keys(this._lastNotificationPayload).filter((r=>{const n=e[r];return t.delete(r),!n||"number"!=typeof n&&"string"!=typeof n}));r.push(...t),this._lastNotificationPayload=Object.keys(e).reduce(((t,r)=>{const n=e[r];return"number"==typeof n||"string"==typeof n?n&&(t[r]=n):t[r]=n.modified_date,t}),{}),this._libraryChangeListener(r)},this._options=t}getLibrary(e,t){return this._getLibraryById(e.id,t)}getElements(e,...t){return this._getElementsByLibraryId(e.id,...t)}getRemovedElements(e,...t){return this._getRemovedElementsByLibraryId(e.id,...t)}getDocumentationElements(e,...t){return this._getDocumentationElementsByLibraryId(e.id,...t)}getElement(e,t){return this._getElement(e.id,t)}reconnect(){var e;return null===(e=this._notificationEventSource)||void 0===e||e.close(),this.isConnected?super.reconnect():Promise.resolve()}_handleConnected(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!("updateRequired"in e)){r.next=3;break}throw t._handleConfigurationMutation({config:{},environment:t._config.environment,processInfo:{updateRequired:e.updateRequired,apiVersion:e.apiVersion}}),new px("CONNECTION_FAILED",`LocalDriver failed to connect - ${e.updateRequired} update required`);case 3:return t._hostname=e.hostname,t._token=e.token,t._cloudParams=e.cloudParams,t._notificationEventSource=new dS(`${t._hostname}/notifications?token=${t._token}`),t._notificationEventSource.on("error",(e=>{e instanceof px&&"INVALID_JSON"===e.code?gx.log("[NOTIFICATIONS] Received invalid JSON object."):t.reconnect()})),r.next=10,t.getConfiguration();case 10:t._notificationEventSource.on("configurationMutation",t._handleConfigurationMutation.bind(t)),t._notificationEventSource.on("libraryMutation",t._handleLibraryMutation.bind(t)),t._notificationEventSource.on("renditionCacheMutation",t._handleRenditionCacheMutation.bind(t));case 13:case"end":return r.stop()}}),r)})))()}_handleDisconnected(){var e;null===(e=this._notificationEventSource)||void 0===e||e.close()}get cloudParams(){var e,t;if(this._cloudParams&&(null===(e=this.config.user)||void 0===e?void 0:e.id))return Object.assign(Object.assign({},this._cloudParams),{userId:null===(t=this.config.user)||void 0===t?void 0:t.id})}getCloudDriver(){var e=this;if(!this.cloudParams)return;const t=function(){var t=me(he().mark((function t(){var r,n,i,o,a,s,c;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.cloudParams,n=r.userId,i=r.clientId,o=r.clientSecret,a=r.scopes,t.next=3,e.fetchAccessToken(n,i,o,a);case 3:return s=t.sent,c=s.access_token,t.abrupt("return",{env:e.config.environment,token:c});case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return new jO(t)}fetchAccessToken(e,t,r,n){var i;return this.fetch("/configuration/access_token",{method:"POST",body:JSON.stringify({userId:null===(i=this._config.user)||void 0===i?void 0:i.id,clientId:t,clientSecret:r,scopes:n})}).then((e=>e.json()))}_getElement(e,t){return this.fetch(`/libraries/${e}/elements/${t}`).then((e=>e.json())).then(GO)}_getElementsOfType(e,t,r=hS,n,i){return Re(this,arguments,he().mark((function r(){var o,a,s;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o={},n&&(o["if-none-match"]=n),r.next=4,Ne(this.fetch(`/libraries/${t}/${e}`,{headers:o,signal:i}));case 4:return a=r.sent,r.next=7,Ne(a.json());case 7:return s=r.sent,r.next=10,Ne(s.elements.map(GO));case 10:return r.next=12,r.sent;case 12:case"end":return r.stop()}}),r,this)})))}_getElementsByLibraryId(e,t=hS,r,n,i){return Re(this,arguments,he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=Ne,n.delegateYield(Me(je(this._getElementsOfType("elements",e,t,r,i))),"t1",2);case 2:return n.t2=n.t1,n.next=5,(0,n.t0)(n.t2);case 5:case"end":return n.stop()}}),n,this)})))}getSearchResults(e,t,r,n){return Re(this,arguments,he().mark((function i(){var o,a,s,c,l,u,d;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t.elements_only=!0,o="name"===r.field?"name":"modified_date","descending"===r.direction&&(o=`-${o}`),a=e=>{var t,r;return null!==(r=null===(t=e.results)||void 0===t?void 0:t.map(GO))&&void 0!==r?r:[]},s={method:"POST",headers:{"Content-Type":"application/json"},signal:n},c=300,"type"===r.sectionType){i.next=15;break}return s.body=JSON.stringify({q:e,order_by:o,filters:t,limit:c}),i.t0=Ne,i.delegateYield(Me(je(this.fetchAllPages("/search",s,a))),"t1",10);case 10:return i.t2=i.t1,i.next=13,(0,i.t0)(i.t2);case 13:i.next=37;break;case 15:l=ue(r.sections),i.prev=16,l.s();case 18:if((u=l.n()).done){i.next=29;break}return d=u.value,t.element_types=t.element_types=[d],s.body=JSON.stringify({q:e,order_by:o,filters:t,limit:c}),i.t3=Ne,i.delegateYield(Me(je(this.fetchAllPages("/search",s,a))),"t4",24);case 24:return i.t5=i.t4,i.next=27,(0,i.t3)(i.t5);case 27:i.next=18;break;case 29:i.next=34;break;case 31:i.prev=31,i.t6=i.catch(16),l.e(i.t6);case 34:return i.prev=34,l.f(),i.finish(34);case 37:case"end":return i.stop()}}),i,this,[[16,31,34,37]])})))}fetchAllPages(e,t,r){var n,i,o,a;return Re(this,arguments,he().mark((function s(){var c,l,u;return he().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:c=e;case 1:if(!c){s.next=14;break}return s.next=4,Ne(this.fetch(c,t).then((e=>e.json())));case 4:return l=s.sent,s.next=7,Ne(r(l));case 7:return s.next=9,s.sent;case 9:c=null===(i=null===(n=l._links)||void 0===n?void 0:n.next)||void 0===i?void 0:i.uri,(u=null===(a=null===(o=l._links)||void 0===o?void 0:o.next)||void 0===a?void 0:a.body)&&(t.body=JSON.stringify(u)),s.next=1;break;case 14:case"end":return s.stop()}}),s,this)})))}_getDocumentationElementsByLibraryId(e,t=hS,r){return Re(this,arguments,he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=Ne,n.delegateYield(Me(je(this._getElementsOfType("documentation_elements",e,t,r))),"t1",2);case 2:return n.t2=n.t1,n.next=5,(0,n.t0)(n.t2);case 5:case"end":return n.stop()}}),n,this)})))}_getRemovedElementsByLibraryId(e,t=hS,r){return Re(this,arguments,he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=Ne,n.delegateYield(Me(je(this._getElementsOfType("removed_elements",e,t,r))),"t1",2);case 2:return n.t2=n.t1,n.next=5,(0,n.t0)(n.t2);case 5:case"end":return n.stop()}}),n,this)})))}getTeams(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetch("/teams");case 2:return r=t.sent,t.next=5,r.json();case 5:return n=t.sent,t.abrupt("return",void 0!==n.teams?n.teams.map($O):[]);case 7:case"end":return t.stop()}}),t)})))()}getProjects(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetch("/projects");case 2:return i=t.sent,t.next=5,i.json();case 5:return o=t.sent,t.abrupt("return",null!==(n=null===(r=null==o?void 0:o.projects)||void 0===r?void 0:r.map(qO))&&void 0!==n?n:[]);case 7:case"end":return t.stop()}}),t)})))()}getProjectGradient(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.fetch(`/projects/${e.id}/gradient`);case 2:return n=r.sent,r.next=5,n.json();case 5:return i=r.sent,r.abrupt("return",i.gradient?{type:(o=i.gradient).type,angle:o.angle,stops:o.stops}:void 0);case 7:case"end":return r.stop()}var o}),r)})))()}getGroups(e){return Re(this,arguments,he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ne(Promise.resolve(void 0));case 2:return e.next=4,e.sent;case 4:case"end":return e.stop()}}),e)})))}getLibraries(){return Re(this,arguments,he().mark((function e(){var t;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="/libraries",this._options.ignoreRenditionGrids||(t+="?includeRenditionGrid=true"),e.next=4,Ne(this.fetch(t).then((e=>e.json())).then((e=>void 0!==e.libraries?e.libraries.map((e=>ZO(e,this._options.readOnly))):[])));case 4:return e.next=6,e.sent;case 6:case"end":return e.stop()}}),e,this)})))}getLibrariesList(){return Re(this,arguments,he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ne(Promise.resolve(void 0));case 2:return e.next=4,e.sent;case 4:case"end":return e.stop()}}),e)})))}getLibrariesPage(){return Re(this,arguments,he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ne(Promise.resolve(void 0));case 2:return e.next=4,e.sent;case 4:case"end":return e.stop()}}),e)})))}_getAllElements(e,t){var r,n;return Re(this,arguments,he().mark((function i(){var o,a,s,c,l,u,d,p,h,f,m,g,v,y;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:l={},u=0,d=[["elements","_getElementsByLibraryId"],["documentationElements","_getDocumentationElementsByLibraryId"],["removedElements","_getRemovedElementsByLibraryId"]];case 3:if(!(u<d.length)){i.next=47;break}if(p=le(d[u],2),h=p[0],f=p[1],!t.types.includes(h)){i.next=44;break}i.prev=6,m=!0,a=void 0,g=je(this[f](e,t.sort,t.etag,void 0,null===(r=t.abortController)||void 0===r?void 0:r.signal));case 8:return i.next=10,Ne(g.next());case 10:if(v=i.sent,o=v.done){i.next=29;break}if(c=v.value,m=!1,i.prev=15,y=c,l[h]=l[h]||[],null===(n=l[h])||void 0===n||n.push(...y),!t.loadProgressively){i.next=24;break}return i.next=22,Ne({[h]:l[h]});case 22:return i.next=24,i.sent;case 24:return i.prev=24,m=!0,i.finish(24);case 27:i.next=8;break;case 29:i.next=34;break;case 31:i.prev=31,i.t0=i.catch(6),a={error:i.t0};case 34:if(i.prev=34,i.prev=35,m||o||!(s=g.return)){i.next=39;break}return i.next=39,Ne(s.call(g));case 39:if(i.prev=39,!a){i.next=42;break}throw a.error;case 42:return i.finish(39);case 43:return i.finish(34);case 44:u++,i.next=3;break;case 47:return i.next=49,Ne(Object.assign({areElementsLoaded:!0},t.loadProgressively?{}:l));case 49:return i.next=51,i.sent;case 51:case"end":return i.stop()}}),i,this,[[6,31,34,44],[15,,24,27],[35,,39,43]])})))}getLibraryById(e,t){var r=this;return me(he().mark((function n(){var i,o;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._getLibraryById(e,t).next();case 2:return i=n.sent,o=i.value,n.abrupt("return",o);case 5:case"end":return n.stop()}}),n)})))()}_getLibraryById(e,t={}){var r;return Re(this,arguments,he().mark((function n(){var i,o,a,s,c,l,u;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=t.etag,n.prev=1,o={},i&&(o["if-none-match"]=i),void 0!==t.optimisticFetch&&(a={optimisticFetch:t.optimisticFetch}),s=`/libraries/${e}`,this._options.ignoreRenditionGrids||(s+="?includeRenditionGrid=true"),n.next=9,Ne(this.fetch(s,{headers:o},a));case 9:if(202!==(c=n.sent).status){n.next=14;break}return n.next=13,Ne(void 0);case 13:return n.abrupt("return",n.sent);case 14:return n.next=16,Ne(c.json());case 16:return(l=n.sent).etag=c.headers.get("ETag"),t.elementParams?delete l.elements:null!==(r=l.elements)&&void 0!==r||(l.elements=[]),u=ZO(l,this._options.readOnly),n.next=22,Ne(u);case 22:return n.next=24,n.sent;case 24:n.next=30;break;case 26:if(n.prev=26,n.t0=n.catch(1),n.t0 instanceof Cx&&"NOT_MODIFIED"===n.t0.code&&t.elementParams){n.next=30;break}throw n.t0;case 30:if(!t.elementParams){n.next=36;break}return n.t1=Ne,n.delegateYield(Me(je(this._getAllElements(e,Object.assign(Object.assign({},t.elementParams),{etag:t.firstElementsLoad?void 0:i})))),"t2",33);case 33:return n.t3=n.t2,n.next=36,(0,n.t1)(n.t3);case 36:case"end":return n.stop()}}),n,this,[[1,26]])})))}followLibrary(e,t){return this.fetch("/libraries",{method:"POST",body:JSON.stringify({follow:!0,type:"collab",id:t,assetId:e})}).then((()=>{}))}moveLibrary(e,t){return new Promise(((r,n)=>{const i=this.fetch("/libraries",{method:"POST",body:JSON.stringify({self:e,team_id:t})}),o=new Bx(this,i);o.on("change",((e,t)=>{e&&(o.error?n(o.error):t?r(ZO(t)):r())}))}))}importLibrary(e,t=(()=>{})){if("string"!=typeof e)throw new Error("Input must be a local path in local mode.");const r=this.fetch("/libraries",{method:"POST",body:JSON.stringify({source:{path:e}})}),n=new Bx(this,r);return n.on("change",((e,r)=>{if(e){const e=r?ZO(r):void 0;t(n.error,e)}})),n}exportLibrary(e,t,r=(()=>{})){if(!t)throw new Error("Destination path is required in local mode.");const n=this.fetch(`/libraries/${e.id}/export`,{method:"POST",body:JSON.stringify({path:t})}),i=new Bx(this,n);return i.on("change",(e=>{e&&r(i.error)})),i}abortOperation(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t.fetch(e,{method:"DELETE"}));case 1:case"end":return r.stop()}}),r)})))()}getRenditionUrl(e,t){return`${this._hostname}/libraries/${e.library.id}/elements/${e.id}/renditions/${t}?token=${this._token}`}getAuthenticatedThumbnailURL(e,t){return this.fetch(`/libraries/${e.library.id}/elements/${e.id}/renditions/${t}/url`,{headers:{"cache-control":"none"}}).then((e=>e.json())).then((e=>e.url))}getRenditionPath(e,t,r){const n=FO.getInstance(e);return this.fetch(`/libraries/${e}/elements/${t}/renditions/${r}/path`,{headers:{"cache-control":"none"},signal:n.signal}).then((e=>e.json())).then((e=>e.path))}getRendition(e,t){return this.fetch(`/libraries/${e.library.id}/elements/${e.id}/renditions/${t}`)}getRepresentationContent(e){return this.fetch(`/libraries/${e.library.id}/elements/${e.element.id}/representations/${e.id}`)}setLibraryChangeListener(e,t){this._libraryChangeListener=t}setRenditionCacheChangeListener(e){this._renditionCacheChangeListener=e}setFontDataChangeListener(e){var t;this.removeFontDataChangeListeners(),null===(t=this._notificationEventSource)||void 0===t||t.on("fontDataMutation",e)}setSyncStateListener(e){var t,r;null===(t=this._notificationEventSource)||void 0===t||t.removeAllListeners("syncMutation"),null===(r=this._notificationEventSource)||void 0===r||r.on("syncMutation",e)}removeLibraryChangeListener(){var e;null===(e=this._notificationEventSource)||void 0===e||e.removeAllListeners("libraryMutation")}removeFontDataChangeListeners(){var e;null===(e=this._notificationEventSource)||void 0===e||e.removeAllListeners("fontDataMutation")}removeSyncStateListener(){var e;null===(e=this._notificationEventSource)||void 0===e||e.removeAllListeners("syncMutation")}removeRenditionCacheChangeListener(){var e;null===(e=this._notificationEventSource)||void 0===e||e.removeAllListeners("renditionCacheMutation")}_needToReconnect(e){var t,r,n;return(null===(r=null===(t=this.config)||void 0===t?void 0:t.user)||void 0===r?void 0:r.id)&&this.config.user.id!==(null===(n=e.user)||void 0===n?void 0:n.id)||!1}getConfiguration(){var e=this;return me(he().mark((function t(){var r,n;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetch("/configuration");case 2:return r=t.sent,t.next=5,r.json();case 5:return n=t.sent,e._handleConfigurationMutation(n),t.abrupt("return",e.config);case 8:case"end":return t.stop()}}),t)})))()}updateRenditionCacheConfiguration(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e||t){n.next=2;break}return n.abrupt("return",r.config);case 2:return n.next=4,r.updateConfiguration({RENDITION_SIZES:e,FULL_RENDITION_CONFIG:t}).catch((e=>{gx.error(`Unable to update process configuration. ${e}`)}));case 4:return n.abrupt("return",r.config);case 5:case"end":return n.stop()}}),n)})))()}updateConfiguration(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!Object.keys(e).length){r.next=8;break}return r.next=3,t.fetch("/configuration",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});case 3:return n=r.sent,r.next=6,n.json();case 6:i=r.sent,t._handleConfigurationMutation(i);case 8:return r.abrupt("return",t.config);case 9:case"end":return r.stop()}}),r)})))()}setLocalSetting(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return void 0===t&&(t=null),n.next=3,r.updateConfiguration(Object.fromEntries([[e,t]]));case 3:r._config.config[e]=t;case 4:case"end":return n.stop()}}),n)})))()}getLocalSetting(e){var t;return null===(t=this._config.config)||void 0===t?void 0:t[e]}getInstalledVersion(e){return this._config.installedApps.filter((t=>t.code.toLowerCase()===e.toLowerCase())).map((e=>e.version)).sort(XO)[0]}sendAction(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t.fetch("/action",{method:"POST",body:e.toJSON()}));case 1:case"end":return r.stop()}}),r)})))()}openInCCD(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t.fetch("/action/open_ccd",{method:"POST",body:JSON.stringify({path:e})}));case 1:case"end":return r.stop()}}),r)})))()}fetch(e,t,r={}){var n=this;return me(he().mark((function i(){var o,a,s,c,l,u,d,p;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return(t=t||{}).headers=t.headers||{},t.headers.token=n._token,t.headers["Content-Type"]=t.headers["Content-Type"]||"application/json",t.headers["x-client-version"]="15",r=Object.assign(Object.assign({},fS),r),!n._options.optimistic||void 0!==r.optimisticFetch&&!0!==r.optimisticFetch||(t.headers["x-optimism"]="true"),t.signal=t.signal?Lx(t.signal,null===(o=n._abortController)||void 0===o?void 0:o.signal):null===(a=n._abortController)||void 0===a?void 0:a.signal,i.prev=8,i.next=11,fetch(`${/^https?:\/\//.test(e)?"":n._hostname}${e}`,t);case 11:if(!((l=i.sent).status>=300)){i.next=18;break}return i.next=15,l.text();case 15:throw u=i.sent,d=u.replace(/["]+/g,""),kx(l,d);case 18:return i.abrupt("return",l);case 21:if(i.prev=21,i.t0=i.catch(8),!Cx.isRequestError(i.t0)){i.next=33;break}if(!(p=(null===(s=null==r?void 0:r.reconnectOnErrors)||void 0===s?void 0:s.includes(null===(c=i.t0.response)||void 0===c?void 0:c.status))&&n.isConnected)){i.next=29;break}n.reconnect(),i.next=31;break;case 29:if(p||i.t0.name!==Yw){i.next=31;break}return i.abrupt("return",new Response("{}"));case 31:i.next=34;break;case 33:"Failed to fetch"===i.t0.message&&(null==r?void 0:r.reconnectOnNoResponse)?(gx.warn(`Fetch request failed to respond: ${i.t0}`),n.reconnect()):"Network request failed"===i.t0.message&&(gx.warn(`Network request failed to respond: ${i.t0}`),n.reconnect());case 34:throw i.t0;case 35:case"end":return i.stop()}}),i,null,[[8,21]])})))()}copyFile(e,t,r=!1){var n=this;return me(he().mark((function i(){var o,a;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.fetch("/util/file/copy",{method:"POST",body:JSON.stringify({source:e,destination:t,allowOverride:Boolean(r)})},{reconnectOnNoResponse:!0,reconnectOnErrors:[401]});case 2:return o=i.sent,i.next=5,o.json();case 5:return a=i.sent,i.abrupt("return",a.path);case 7:case"end":return i.stop()}}),i)})))()}getFileSize(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.fetch("/util/file/size",{method:"POST",body:JSON.stringify({path:e})});case 2:return n=r.sent,r.next=5,n.json();case 5:return i=r.sent,r.abrupt("return",i.size);case 7:case"end":return r.stop()}}),r)})))()}getRenditionGrid(e){return e.renditionGrid}stageRepresentationForCommit(e,t,r){var n=this;return me(he().mark((function e(){var r,i,o,a,s;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!(t instanceof File)){e.next=9;break}return e.next=4,n.fetch("/util/file",{method:"POST",headers:{"Content-Type":null===(i=Pw(null===(r=t.name)||void 0===r?void 0:r.split(".")[1]))||void 0===i?void 0:i[0]},body:t});case 4:return a=e.sent,e.next=7,a.json();case 7:return s=e.sent,e.abrupt("return",s.path);case 9:e.next=15;break;case 11:if(e.prev=11,e.t0=e.catch(0),(null===(o=null===e.t0||void 0===e.t0?void 0:e.t0.response)||void 0===o?void 0:o.status)!==Vw.INTERNAL_SERVER_ERROR){e.next=15;break}return e.abrupt("return",Promise.reject(e.t0));case 15:return e.abrupt("return",t.path);case 16:case"end":return e.stop()}}),e,null,[[0,11]])})))()}isSystemFontAvailable(e,t){var r=this;return me(he().mark((function n(){var i,o;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.fetch("/util/font/available",{method:"POST",body:JSON.stringify({font_name:e,match_family:t})});case 2:return i=n.sent,n.next=5,i.json();case 5:return o=n.sent,n.abrupt("return",o.is_font_available);case 7:case"end":return n.stop()}}),n)})))()}getFontData(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.fetch("/util/font/data",{method:"POST",body:JSON.stringify({font_id:e})});case 2:return n=r.sent,r.next=5,n.json();case 5:return i=r.sent,r.abrupt("return",i.font_data);case 7:case"end":return r.stop()}}),r)})))()}getTempDir(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e&&e.id){r.next=2;break}throw new px("INVALID_PARAMETER","Need to pass a library with an ID");case 2:return r.next=4,t.fetch(`/libraries/${e.id}/temp_dir`);case 4:return n=r.sent,r.next=7,n.json();case 7:return i=r.sent,r.abrupt("return",i.path);case 9:case"end":return r.stop()}}),r)})))()}getCollaborators(e){throw new px("NOT_IMPLEMENTED","LocalDriver.getCollaborators not implemented.")}ignoreLocalSyncEvents(){return!0}}class gS extends jO{constructor(e,t,r={}){super((()=>t().then((e=>Object.assign({samDisableOns:!0},e))))),this._localConnector=e,this._cloudConnector=t,this._localDriver=new mS(e,Object.assign(Object.assign({},r),{optimistic:!0}))}connect(){return Promise.all([this.localDriver.connect(),super.connect()]).then((()=>{}))}get localDriver(){return this._localDriver}call(e,t,...r){return e.locallyManaged?this._localDriver[t](...r):super[t](...r)}_handleDisconnected(){super._handleDisconnected(),this.localDriver.isConnected&&this.localDriver.disconnect()}setLibraryChangeListener(e,t){this.localDriver.setLibraryChangeListener(e,t)}setFontDataChangeListener(e){this.localDriver.setFontDataChangeListener(e)}removeFontDataChangeListeners(){this.localDriver.removeFontDataChangeListeners()}getLibraries(){return this.localDriver.getLibraries()}getLibrary(e,t){return e.locallyManaged||(null==t?void 0:t.optimisticFetch)?this.localDriver.getLibrary(e,t):super.getLibrary(e,t)}getElements(e,t,r,n,i){return this.call(e,"getElements",t,r,n,i)}getElement(e,t){return this.call(e,"getElement",e,t)}getLibraryById(e,t){var r=()=>super.getLibraryById,n=this;return me(he().mark((function i(){return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!(null==t?void 0:t.optimisticFetch)&&!(null==t?void 0:t.locallyManaged)){i.next=2;break}return i.abrupt("return",n._localDriver._getLibraryById(e,t).next());case 2:return i.abrupt("return",r().call(n,e));case 3:case"end":return i.stop()}}),i)})))()}getRenditionUrl(e,t){return this.call(e.library,"getRenditionUrl",e,t)}getRendition(e,t){return this.call(e.library,"getRendition",e,t)}getRepresentationContent(e){return this.call(e.library,"getRepresentationContent",e)}getOperationTypes(e){return e.locallyManaged?this._localDriver.getOperationTypes(e):super.getOperationTypes(e)}operationFactory(e,t,r){return new e(r.locallyManaged?this._localDriver:this,r)}ignoreLocalSyncEvents(){return this.localDriver.isConnected?this.localDriver.ignoreLocalSyncEvents():super.ignoreLocalSyncEvents()}}function vS(e){return void 0!==e.launchAppEx?new _S(e):new bS(e)}class yS extends class{}{constructor(e){super(),this._specifer=Gw,this._vulcanInterface=e}addMessageListener(e,t,r){this.vulcanInterface.addMessageListener(e,t,r)}removeMessageListener(e,t,r){this.vulcanInterface.removeMessageListener(e,t,r)}dispatchMessage(e){this.vulcanInterface.dispatchMessage(e)}getPayload(e){return this.vulcanInterface.getPayload(e)}}class bS extends yS{constructor(e){super(e),this._vulcanInterface=e,this._specifer=Gw}get vulcanInterface(){return this._vulcanInterface}getTargetSpecifiers(){return this.vulcanInterface.getTargetSpecifiers()}launchApp(e,t){return this.vulcanInterface.launchApp(this._specifer,e,t)}isAppRunning(){return this.vulcanInterface.isAppRunning(this._specifer)}isAppInstalled(){return this.vulcanInterface.isAppInstalled(this._specifer)}getAppPath(){return this.vulcanInterface.getAppPath(this._specifer)}}class _S extends yS{constructor(e){super(e),this._specifer=Uw}get vulcanInterface(){return this._vulcanInterface}getTargetSpecifiers(){return this.vulcanInterface.getTargetSpecifiersEx()}launchApp(e,t){return this.vulcanInterface.launchAppEx(this._specifer,e,t)}isAppRunning(){return this.vulcanInterface.isAppRunningEx(this._specifer)}isAppInstalled(){return this.vulcanInterface.isAppInstalledEx(this._specifer)}getAppPath(){return this.vulcanInterface.getAppPathEx(this._specifer)}}class ES extends pS{constructor(e,t,r){super(vS(e),t,r),this.messageTypes={REQUEST:"vulcan.SuiteMessage.cclibraries.api.QueryRequest",RESPONSE:"vulcan.SuiteMessage.cclibraries.api.QueryResponse",INITIALIZE:"vulcan.SuiteMessage.cclibraries.service.Initialized"}}removeListener(e,t){return this.vulcanInterface.removeMessageListener(t||this.messageTypes.RESPONSE,e)}sendMessage(e,t){if(this.vulcanInterface.addMessageListener(t||this.messageTypes.RESPONSE,e),t!==this.messageTypes.INITIALIZE){const e=new this.VulcanMessage(this.messageTypes.REQUEST);e.setPayload(Hw),this.vulcanInterface.dispatchMessage(e)}}isAppRunning(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.vulcanInterface.isAppRunning());case 1:case"end":return t.stop()}}),t)})))()}launchApp(e){this.vulcanInterface.launchApp()}getPayload(e){return this.vulcanInterface.getPayload(e)}}class wS extends pS{constructor(e,t,r){super(vS(e),t,r),this.messageTypes={REQUEST:"cclibraries.api.QueryRequest",RESPONSE:"cclibraries.api.QueryResponse",INITIALIZE:"cclibraries.service.Initialized"}}_wrapHandler(e){return(t,r)=>e(r)}removeListener(e,t){return this.vulcanInterface.removeMessageListener(t||this.messageTypes.RESPONSE,e)}sendMessage(e,t){if(this.vulcanInterface.addMessageListener(t||this.messageTypes.RESPONSE,this._wrapHandler(e)),t!==this.messageTypes.INITIALIZE){const e=new this.VulcanMessage(this.messageTypes.REQUEST);e.data=Hw,this.vulcanInterface.dispatchMessage(e)}}isAppRunning(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.vulcanInterface.isAppRunning());case 1:case"end":return t.stop()}}),t)})))()}launchApp(e){this.vulcanInterface.launchApp()}getPayload(e){return e}}class xS extends pS{constructor(e,t,r){super(vS(e),t,r),this.messageTypes={REQUEST:"cclibraries.api.QueryRequest",RESPONSE:"cclibraries.api.QueryResponse",INITIALIZE:"cclibraries.service.Initialized"}}_wrapHandler(e){return(t,r)=>e(t)}removeListener(e,t){return this.vulcanInterface.removeMessageListener(t||this.messageTypes.RESPONSE,e)}sendMessage(e,t){if(this.vulcanInterface.addMessageListener(t||this.messageTypes.RESPONSE,this._wrapHandler(e)),t!==this.messageTypes.INITIALIZE){const e={message:Hw,type:t||this.messageTypes.REQUEST};this.vulcanInterface.dispatchMessage(e)}}isAppRunning(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.vulcanInterface.isAppRunning());case 1:case"end":return t.stop()}}),t)})))()}launchApp(e){this.vulcanInterface.launchApp()}getPayload(e){return e}}class LS extends pS{constructor(){super(...arguments),this.messageTypes={REQUEST:"vulcan.SuiteMessage.cclibraries.api.QueryRequest",RESPONSE:"vulcan.SuiteMessage.cclibraries.api.QueryResponse",INITIALIZE:null}}get _installedAppsFn(){const e=this.vulcanInterface.control,t=e.getInstalledApps,r=e.getInstalledAppsEx;return r?r.bind(this.vulcanInterface.control):t.bind(this.vulcanInterface.control)}_getCCLibrariesInstall(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._installedAppsFn();case 2:return t.abrupt("return",t.sent.find((e=>e.name===Gw||e.sapCode===Uw)));case 3:case"end":return t.stop()}}),t)})))()}removeListener(e,t){null!==t&&this.vulcanInterface.dispatcher.removeEventListener(this.messageTypes.RESPONSE,e)}sendMessage(e,t){null!==t&&(this.vulcanInterface.dispatcher.addEventListener(this.messageTypes.RESPONSE,e),this.vulcanInterface.dispatcher.broadcastMessage(new this.vulcanInterface.message(this.messageTypes.REQUEST,Hw)))}isAppRunning(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._getCCLibrariesInstall();case 2:if(t.t1=r=t.sent,t.t0=null===t.t1,t.t0){t.next=6;break}t.t0=void 0===r;case 6:if(!t.t0){t.next=10;break}t.t2=void 0,t.next=11;break;case 10:t.t2=r.isRunning();case 11:return t.abrupt("return",t.t2);case 12:case"end":return t.stop()}}),t)})))()}launchApp(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._getCCLibrariesInstall();case 2:if(!(n=r.sent)){r.next=7;break}return r.next=6,n.launch();case 6:e("launched");case 7:case"end":return r.stop()}}),r)})))()}getPayload(e){return e.payload}}class OS extends Ax{constructor(e){super(),this._generator=e,this._results=[],this._getPages()}_getPages(){var e=this;return me(he().mark((function t(){var r,n,i,o,a,s,c,l;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.prev=0,a=!0,s=je(e._generator(e._abortController.signal));case 2:return t.next=4,s.next();case 4:if(c=t.sent,r=c.done){t.next=12;break}o=c.value,a=!1;try{l=o,e._results.push(...l),e.emit("change",!1)}finally{a=!0}case 10:t.next=2;break;case 12:t.next=17;break;case 14:t.prev=14,t.t0=t.catch(0),n={error:t.t0};case 17:if(t.prev=17,t.prev=18,a||r||!(i=s.return)){t.next=22;break}return t.next=22,i.call(s);case 22:if(t.prev=22,!n){t.next=25;break}throw n.error;case 25:return t.finish(22);case 26:return t.finish(17);case 27:e.progress=100,e.emit("change",!0);case 29:case"end":return t.stop()}}),t,null,[[0,14,17,27],[18,,22,26]])})))()}get results(){return this._results}}var SS=new class{constructor(){this._contexts=new Map}register(e,t){const r=br.v4();return this._contexts.set(r,{createAtom:e,transaction:t}),()=>this._contexts.delete(r)}transaction(e){const t=Array.from(this._contexts.values()).reduce(((e,{transaction:t})=>()=>t((()=>e()))),e);return t()}reportObserved(e,t){var r,n=ue(this._contexts);try{for(n.s();!(r=n.n()).done;){const n=le(r.value,2),i=n[0],o=n[1].createAtom,a=`_atom_${i}_${t}`;let s=e[a];if(!s){const r=()=>s.reportChanged();s=o(`${e.constructor.name}${a}`,(()=>e.on(t,r)),(()=>e.off(t,r))),e[a]=s}s.reportObserved()}}catch(e){n.e(e)}finally{n.f()}}};function TS(...e){return function(t,r,n){const i=n.get?"get":n.value?"value":void 0;if(i){const t=n[i];n[i]=function(...r){var n,i=ue(e);try{for(i.s();!(n=i.n()).done;){const e=n.value;SS.reportObserved(this,e)}}catch(e){i.e(e)}finally{i.f()}return t.apply(this,r)}}}}function PS(...e){return(e=>"string"!=typeof e[0])(e)?TS("change")(...e):TS(...e)}function IS(e){return class extends e{constructor(...e){super(...e);for(var t=0,r=Object.values(this._childModelCaches);t<r.length;t++){const e=r[t].cache;e.on("change",(()=>this.emit("change"))),e.on("modelChange",(()=>this.emit("change")))}this._updateCaches()}}}class AS extends hx{constructor(e,t,r){super(),this._modelCache=e,this._parent=t,this._data=r,this._childModelCaches={},this._isCommitted=!1,this._waitingForCommit=!1,this._isSquelched=!1,this._receivedEventDuringSquelchPeriod=!1,this._commitFuture=new Promise(((e,t)=>{this._commitResolver=()=>{this._isCommitted=!0,e()},Xw(this._data.id)||this._commitResolver(),this.on("remove",(()=>{this._waitingForCommit&&!this._isCommitted&&t()}))}))}get id(){return this.data.id}get data(){return this._data}update(e,t=!0){var r;const n=Xw(this.id)&&e.id&&this.id!==e.id;return null===(r=this._modelCache)||void 0===r||r.updateIndices(this,e),Object.assign(this._data,e),this._updateCaches(t),t&&this.emit("change"),n&&this._commitResolver&&this._commitResolver(),this._data}get committed(){return this._waitingForCommit=!0,this._commitFuture}get isCommitted(){return this._isCommitted}squelchChangeEvents(){this._isSquelched=!0}unsquelchChangeEvents(){this._isSquelched=!1,this._receivedEventDuringSquelchPeriod&&(this._receivedEventDuringSquelchPeriod=!1,this.emit("change"))}emit(e,...t){return this._isSquelched&&"change"===e?(this._receivedEventDuringSquelchPeriod=!0,this.listenerCount(e)>0):super.emit(e,...t)}_updateCaches(e=!0){for(var t=0,r=Object.values(this._childModelCaches);t<r.length;t++){const n=r[t],i=n.cache,o=(0,n.accessor)(this.data);o&&i.replace(o,e)}}get apiRoot(){return this._parent.apiRoot}get driver(){var e;return(null===(e=this._modelCache)||void 0===e?void 0:e.driver)||this.apiRoot.driver}get isLocallyManaged(){return this.apiRoot.isLocallyManaged}}function CS(e,t,r){const n=r.set?"set":r.value?"value":void 0;if(n){const e=r[n];r[n]=function(...r){if(!(this.library?this.library:this).isWritable)throw new px("NOT_ALLOWED",`${t} requires write access`,this.id);return e.apply(this,r)}}}function kS(e,t,r){const n=r.set?"set":r.value?"value":void 0;if(n){const e=r[n];r[n]=function(...r){if(!this.apiRoot.cloudDriver)throw new px("NOT_ALLOWED",`${t} requires a cloud driver`);return e.apply(this,r)}}}function DS(e,t,r){const n=r.set?"set":r.value?"value":void 0;if(n){const e=r[n];r[n]=function(...r){if(!(this.apiRoot.driver instanceof mS))throw new px("NOT_ALLOWED",`${t} requires a local driver`);return e.apply(this,r)}}}function NS(e,t){var r,n=ue(t);try{for(n.s();!(r=n.n()).done;){const t=r.value;if(t.id===e.id)return t;if(t.children){const r=NS(e,t.children);if(r)return r}}}catch(e){n.e(e)}finally{n.f()}}function RS(e,t){if(e instanceof iT)return t;const r=ZL(e.element.data.representations),n=NS(e,r);return n&&(n.children=t),r}const MS={Date:!0,RegExp:!0,String:!0,Number:!0};function jS(e,t,r={cyclesFix:!0},n=[]){let i=[];const o=Array.isArray(e);for(const a in e){const s=e[a],c=o?+a:a;if(!(a in t)){i.push({type:"REMOVE",path:[c],oldValue:e[a]});continue}const l=t[a],u="object"==typeof s&&"object"==typeof l;if(!(s&&l&&u)||MS[Object.getPrototypeOf(s).constructor.name]||r.cyclesFix&&n.includes(s))s===l||u&&(isNaN(s)?s+""==l+"":+s==+l)||i.push({path:[c],type:"CHANGE",value:l,oldValue:s});else{const e=jS(s,l,r,r.cyclesFix?n.concat([s]):[]);i.push.apply(i,e.map((e=>(e.path.unshift(c),e))))}}const a=Array.isArray(t);for(const r in t)r in e||i.push({type:"CREATE",path:[a?+r:r],value:t[r]});return i}function FS(e,t,r){const n=r.value;r.value=function(...e){let t;this._squelchModelChangeEvents();try{t=n.apply(this,e)}finally{this._unsquelchModelChangeEvents()}return t}}class ZS extends hx{constructor(e,t,r=(null==e?void 0:e.driver)){super(),this._parent=e,this._Class=t,this._driver=r,this._models=[],this._indices=new Map,this._isSquelched=!1,this._changedModelsQueue=new Set,this._receivedEventDuringSquelchPeriod=!1,this._dataSinceLastReport=[],this._onModelChange=e=>{if(this._isSquelched)return this._receivedEventDuringSquelchPeriod=!0,void this._changedModelsQueue.add(e);this.emit("modelChange",[e])},this._squelchModelChangeEvents=()=>{this._receivedEventDuringSquelchPeriod=!1,this._isSquelched=!0},this._unsquelchModelChangeEvents=()=>{this._isSquelched=!1,this._receivedEventDuringSquelchPeriod&&(this.emit("modelChange",Array.from(this._changedModelsQueue)),this._changedModelsQueue.clear())},this.registerIndex("id")}registerIndex(e){this._indices.set(e,new Map)}updateIndices(e,t){var r,n=ue(this._indices.entries());try{for(n.s();!(r=n.n()).done;){const n=le(r.value,2),i=n[0],o=n[1],a=e.data[i],s=t[i];s&&a!==s&&(Xw(a)||o.delete(a),o.set(s,e))}}catch(e){n.e(e)}finally{n.f()}}get(e){return this.getByIndex("id",e)}getByIndex(e,t){var r;return null===(r=this._indices.get(e))||void 0===r?void 0:r.get(t)}add(e,t=!0){return this._add(e,t)}remove(e,t=!0){this._remove(e,t)}replace(e,t=!0){const r=Array.isArray(e)?e:[e];this._replace(r,t)}upsert(...e){this._upsertItems(e)&&this.emit("change")}all(){return this._models}get length(){return this._models.length}get driver(){return this._driver}get changes(){const e=[...this._dataSinceLastReport],t=this._models.map((e=>Pe(e.data,["elements","removedElements","documentationElements","groups"]))),r=jS(e,t,{cyclesFix:!1}).reduce(((r,n)=>{const i="REMOVE"===n.type?e[n.path[0]]:t[n.path[0]],o=i.id,a=i.previousPlaceholderId,s=r.get(o)||{id:o,previousPlaceholderId:a,changes:[]};return s.changes.push(n),r.set(o,s),r}),new Map);return this._dataSinceLastReport=t,[...r.values()]}_upsertItems(e,t=!0){let r=!1;var n,i=ue(this._findCachedModels(...e));try{for(i.s();!(n=i.n()).done;){const e=le(n.value,2),i=e[0],o=e[1];o?o.update(i,t):(this._add(i),r=!0)}}catch(e){i.e(e)}finally{i.f()}return r}_findCachedModels(...e){var t;const r=[];if(!(null===(t=this._indices)||void 0===t?void 0:t.size)||!(null==e?void 0:e.length))return r;const n=Array.from(this._indices.entries());for(var i=0,o=e;i<o.length;i++){const t=o[i];let c;var a,s=ue(n);try{for(s.s();!(a=s.n()).done;){const e=le(a.value,2),r=e[0];if(c=e[1].get(t[r]),c)break}}catch(e){s.e(e)}finally{s.f()}c?r.push([t,c]):r.push([t,this.getByIndex("id",t.previousPlaceholderId)])}return r}_add(e,t=!1){const r=new this._Class(this,this._parent,e);this._models.push(r);var n,i=ue(this._indices);try{for(i.s();!(n=i.n()).done;){const e=le(n.value,2),t=e[0];e[1].set(r.data[t],r)}}catch(e){i.e(e)}finally{i.f()}return t&&this.emit("change"),r.on("change",(()=>this._onModelChange(r))),r}_remove(e,t=!0){const r="string"==typeof e?this.get(e):e;if(r){this._models.splice(this._models.indexOf(r),1);var n,i=ue(this._indices.entries());try{for(i.s();!(n=i.n()).done;){const e=le(n.value,2),t=e[0],i=e[1];i.delete(r.data[t]),i.delete(r.data.previousPlaceholderId)}}catch(e){i.e(e)}finally{i.f()}r.emit("remove"),r.DANGEROUS.removeAllListeners(),t&&this.emit("change")}}_replace(e,t=!0){let r=this._upsertItems(e,t);const n=e.map((e=>e.id));this._models.filter((e=>!n.includes(e.id))).forEach((e=>{this._remove(e,!1),r=!0})),r&&t&&this.emit("change")}}Ie([FS],ZS.prototype,"replace",null),Ie([FS],ZS.prototype,"upsert",null);const BS=new WeakMap;function GS(e){return class extends e{constructor(){super(...arguments),this._isChangeListenerBound=!1}emit(e,...t){if("change"===e){if(this._isChangeListenerBound)return!0;this._isChangeListenerBound=!0;let e=BS.get(this._parent);if(!e){e=[],BS.set(this._parent,e);const t=()=>{var r;BS.delete(this._parent),this._parent.off("change",t),r=()=>{e&&e.forEach((e=>e()))},SS.transaction(r)};this._parent.on("change",t)}return e.push(((...e)=>{this._isChangeListenerBound=!1,super.emit("change",...e)})),!0}return super.emit(e,...t)}}}function US(e){e=null!=e?e:{};const t=[];for(var r=0,n=Object.entries(e);r<n.length;r++){const e=le(n[r],2),i=e[0],o=e[1],a=le(i.split("#",2),2),s=a[0],c=a[1];t.push({namespace:s,key:c,value:o})}return t}var HS;let zS=HS=class extends AS{constructor(){super(...arguments),this._childModelCaches={children:{cache:new ZS(this,GS(HS)),accessor:e=>e.children}}}get _childCache(){return this._childModelCaches.children.cache}get children(){return this._childCache.all()}get parent(){return this._parent}get element(){let e=this._parent;for(;e instanceof HS;)e=e._parent;return e}get library(){return this.element.library}get id(){return this._data.id}get isWritable(){return this.element.isWritable}get type(){const e=this._data.type;return"application/vnd.adobe.library.link+dcx"===e?this._data.linktype:e}get relationship(){return this._data.relationship}set relationship(e){this._updateRepresentationData({relationship:e})}get width(){return this._data.width}set width(e){this._updateRepresentationData({width:e})}get height(){return this._data.height}set height(e){this._updateRepresentationData({height:e})}get isFullSize(){return this._data.isFullSize}set isFullSize(e){this._updateRepresentationData({isFullSize:e})}get isPreferredThumbnail(){return this._data.isPreferredThumbnail}set isPreferredThumbnail(e){this._updateRepresentationData({isPreferredThumbnail:e})}get contentLength(){return this._data.contentLength}set contentLength(e){this._updateRepresentationData({contentLength:e})}get isDeletedLocally(){return!1}get isExternalLink(){return this._data.isExternalLink}isCompatibleType(e){const t=this.getCachedContentPath();if(t&&!this.isExternalLink){const r=ix(t);if(-1===Tw(e).indexOf(r))return!1}return e===this.type}getValue(e,t){var r;return null===(r=this._data.customData)||void 0===r?void 0:r[`${e}#${t}`]}getValues(){return US(this.data.customData)}setValue(e,t,r,n){this._updateRepresentationData({customData:Object.assign(Object.assign({},this.data.customData),{[`${e}#${t}`]:r})})}removeValue(e,t,r){this.setValue(e,t,null,r)}setContent(e,t,r){if(e instanceof Blob)return this.driver.stageRepresentationForCommit(this.library,new File([e],r,{type:e instanceof File?e.type:ox(r)})).then((e=>this.setStagedContent(e)));let n;if("string"!=typeof e||!["base64","utf8"].includes(t))throw new Error("Not implemented");return n=e,this._updateRepresentationData({source:{filename:r,data:n}})}setContentFromPath(e,t){if(!this.library.locallyManaged)throw new Error;return this._updateRepresentationData({source:{path:e,moveFile:!1}})}setStagedContent(e){try{const t=JSON.parse(e);if(!(dL(t)||t&&Xw(t.id)))throw new Error;return this._updateRepresentationData({source:t})}catch(e){throw new px("INVALID_PARAMETER","Payload is not consumable by remote target",this.library.id,e)}}setContentFromURL(e,t,r){return this._updateRepresentationData({source:{url:t,createLink:e,headers:r}})}getContentPath(){return Promise.resolve(this.getCachedContentPath())}getCachedContentPath(){return this._data.path}getContent(){return this.driver.getRepresentationContent(this).then((e=>e.blob()))}getContentURL(){return this._data.url}getAuthenticatedContentURL(){return Promise.resolve("")}createChild(e){const t=qw(),r=this.data.children?[...this.data.children]:[];return r.push({id:t,type:e,isFullSize:!1,isExternalLink:!1}),this.element.dispatch({name:"updateElementContent",type:"update",data:{representations:RS(this,r)}}),this.children.find((e=>e.id===t))}removeChild(e){const t=this.data.children?[...this.data.children]:[],r=t.findIndex((t=>t.id===e.id));-1!==r&&(t.splice(r,1),this.element.dispatch({name:"updateElementContent",type:"update",data:{representations:RS(this,t)}}))}testExternalLink(){return Promise.resolve(!1)}clearCachedExternalLink(){}getCachedExternalLinkError(){}getExternalLinkDownloadProgress(){if(this.isExternalLink){const e=`${this.library.id}.${this.element.id}.${this.id}`;return this.library.apiRoot.syncState.getExternalLinkDownloadProgressByKey(e)}}_updateRepresentationData(e){const t=(this.parent instanceof iT?this.parent.data.representations:this.parent.data.children||[]).filter((e=>e.id!==this.id));return this.element.dispatch({name:"updateElementContent",type:"update",data:{representations:RS(this.parent,[...t,Object.assign(Object.assign({},this.data),e)])}}),Promise.resolve()}};Ie([CS],zS.prototype,"relationship",null),Ie([CS],zS.prototype,"width",null),Ie([CS],zS.prototype,"height",null),Ie([CS],zS.prototype,"isFullSize",null),Ie([CS],zS.prototype,"isPreferredThumbnail",null),Ie([CS],zS.prototype,"contentLength",null),Ie([CS],zS.prototype,"setValue",null),Ie([CS],zS.prototype,"removeValue",null),Ie([CS],zS.prototype,"setContent",null),Ie([CS],zS.prototype,"setContentFromPath",null),Ie([CS],zS.prototype,"setStagedContent",null),Ie([CS],zS.prototype,"setContentFromURL",null),zS=HS=Ie([IS],zS);var VS=zS;function YS(e){return e=e.toString().replace(/(\.0)*$/,"").replace(/[^.0-9]+/gim,"."),(isNaN(parseInt(e,10))||parseInt(e,10)>250)&&(e="0"),e}function WS(e="0",t="0"){if(e===t)return 0;const r=YS(e).split("."),n=YS(t).split(".");let i;for(let e=0;e<r.length&&e<n.length;e++){const t=parseInt(r[e],10);if(i=t-parseInt(n[e],10),isNaN(i))return isNaN(t)?1:-1;if(i>0)return-1;if(i<0)return 1}return i=r.length-n.length,i>0?-1:i<0?1:0}class KS{constructor(e,t){this._item=e,this._applicationActionData=t}get item(){return this._item}get minVersion(){return this._applicationActionData.minVersion}get appCode(){return this._applicationActionData.appCode}get appName(){return this._applicationActionData.appName}get action(){return this._applicationActionData.action}get installedVersions(){return this.item.apiRoot.driver.config.installedApps.filter((e=>e.code===this._applicationActionData.appCode)).map((e=>e.version)).sort(WS)}isCompatibleVersionInstalled(){return this.installedVersions.length&&WS(this._applicationActionData.minVersion,this.installedVersions[0])>=0}invoke(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isCompatibleVersionInstalled()){t.next=2;break}throw new px("NOT_SUPPORTED","A compatible version of the application is needed for this action",e.item instanceof iT?e.item.library.id:e.item.id);case 2:return t.abrupt("return",e.item.apiRoot.driver.sendAction(e));case 3:case"end":return t.stop()}}),t)})))()}toJSON(){return JSON.stringify(Object.assign(Object.assign({},this._applicationActionData),this.item instanceof iT?{libraryId:this.item.library.id,elementId:this.item.id}:{libraryId:this.item.id}))}}function $S(e,t,r,n){return r.map((r=>{const i=n[r];if(i&&(!t||t===i.action))return new KS(e,i)})).filter(Boolean).sort(((e,t)=>(null==e?void 0:e.isCompatibleVersionInstalled)&&!(null==t?void 0:t.isCompatibleVersionInstalled)?-1:!(null==e?void 0:e.isCompatibleVersionInstalled)&&(null==t?void 0:t.isCompatibleVersionInstalled)?1:0))}const qS=e=>"RGB"===e.mode,XS=e=>qS(e)&&(!e.profileName||"sRGB IEC61966-2.1"===e.profileName),JS=(e,t,r)=>{let n=(Math.round(e)<<16|Math.round(t)<<8|Math.round(r)).toString(16);for(;n.length<6;)n="0"+n;return`#${n}`.toUpperCase()},QS=(e,t,r)=>{const n=`application/vnd.adobe.${t}+json`;for(let i=0;i<e.representations.length;i++){const o=e.representations[i];if(o.type===n){const e=o.getValue(t,"data");if(e&&(!r||r(e)))return e}}},eT=e=>t=>{const r=QS(t,e);if(r){const e=r.adbeFont&&r.adbeFont.style.toLowerCase();return!e||e.includes("normal")||e.includes("regular")?r.fontFamily:`${r.fontFamily} ${r.adbeFont.style}`}},tT={"application/vnd.adobe.element.color+dcx":e=>(e=>{const t=Array.isArray(e)?e.find(XS)||e.find(qS):e;return t&&t.value?JS(t.value.r,t.value.g,t.value.b):""})(QS(e,"color",XS)||QS(e,"color",qS)),"application/vnd.adobe.element.characterstyle+dcx":eT("characterstyle"),"application/vnd.adobe.element.paragraphstyle+dcx":eT("paragraphstyle"),"application/vnd.adobe.element.font+dcx":e=>{const t=QS(e,"font");return(null==t?void 0:t.name)||""}};class rT extends AS{get library(){return this._parent}get sourceRefString(){return this.data.sourceRef}get sourceRef(){if(!this.sourceRefString)return;let e=Qw(this.sourceRefString);if(!e){const t=le(this.sourceRefString.split("#"),2);e={"repo:assetId":t[0],"stRef:fromPart":t[1]};const r=this.data.sourceModifiedDate;r&&(e["stRef:fromPartInstanceID"]=`${r}`)}return e}set sourceRef(e){if("object"!=typeof e||!Qw(e))throw new px("INVALID_PARAMETER","sourceRef must be a valid JSON object",this.library.id);this.dispatch({name:this._updateAction,type:"update",data:{sourceRef:JSON.stringify(e,Object.keys(e).sort())}})}}Ie([PS],rT.prototype,"sourceRefString",null),Ie([PS,CS],rT.prototype,"sourceRef",null);let nT=class extends rT{constructor(){super(...arguments),this.isElement=!0,this._updateAction="updateElement",this._childModelCaches={representations:{cache:new ZS(this,GS(VS)),accessor:e=>e.representations}},this._lastLocalUpdateDate=0}get id(){return this.data.id}get type(){return this.data.type}get modified(){return Math.max(this.data.modifiedDate,this._lastLocalUpdateDate)}get created(){return this.data.createdDate}get instanceId(){const e=this.getPrimaryRepresentation();return null==e?void 0:e.id}getReference(){const e={"dc:format":this.library.type,"repo:assetId":this.library.assetId,"repo:name":this.library.name,"stRef:manager":"Adobe Cloud","stRef:documentID":this.library.id,"stRef:fromPart":`id=${this.id}`,"stRef:fromPartName":this.name};return this.instanceId&&(e["stRef:fromPartInstanceID"]=this.instanceId),this.sourceRef&&"application/vnd.adobe.firefly-recipe+dcx"!==this.sourceRef["dc:format"]&&(e["stRef:fromPartDerivedFrom"]=this.sourceRef),e}getReferenceString(){return ex(this.getReference())}getLegacyReference(){var e;return null!==(e=this.data.elementRef)&&void 0!==e?e:`cloud-asset://${this.library.id};node=${this.id}`}get name(){return this.isAutoNamed?(e=>{const t=tT[e.type];return t?t(e):""})(this):this.data.name}set name(e){this.dispatch({name:"updateElement",type:"update",data:{name:null==e?void 0:e.normalize()}})}get isAutoNamed(){const e=this.data.name,t=this.data.autoName;return!e||e===t}get isCommitted(){return!Xw(this.id)}getLocalizedName(e="en_US"){var t;return null===(t=this.data.localizedNames)||void 0===t?void 0:t[e]}getLocalizedNames(){return this.data.localizedNames||{}}setLocalizedName(e,t){return this.dispatch({name:"updateElement",type:"update",data:{localizedNames:Object.assign(Object.assign({},this.data.localizedNames),{[e]:t})}})}get library(){return this._parent}get isWritable(){return this.library.isWritable}get tags(){return this.data.tags||[]}set tags(e){this.dispatch({name:"updateElement",type:"update",data:{tags:e}})}get dependencies(){var e;return(null===(e=this._data.dependencyIds)||void 0===e?void 0:e.map((e=>this.library.getElementById(e))).filter((e=>!!e)))||[]}set dependencies(e){const t=e.map((e=>e.id));this.dispatch({name:"updateElement",type:"update",data:{dependencyIds:t}})}createGroup(){}getGroups(e="$default"){return this.library.getGroups(e).filter((e=>this.data.groups.find((t=>t.id===e.id))))}getOrderInGroup(e){if(e.library!==this.library)return;const t=this.data.groups.find((t=>t.classifier===e.classifierName&&t.id===e.id));return t&&t.order}setOrderInGroup(e,t,r=!0){const n=r?this.data.groups.filter((t=>t.classifier!==e.classifierName)):[...this.data.groups],i=this.data.groups.findIndex((({id:t})=>t===e.id)),o={id:e.id,classifier:e.classifierName,order:t};t||-1===i?t&&-1!==i?n.splice(i,1,o):-1===i&&n.push(o):n.splice(i,1),this.dispatch({name:"updateElement",type:"update",data:{groups:n}})}get description(){return this.data.description}set description(e){this.dispatch({name:"updateElement",type:"update",data:{description:e}})}get descriptionModified(){return this.data.descriptionModifiedDate}get descriptionModifiedBy(){return this.data.descriptionModifiedBy}get descriptionModifiedContext(){return this.data.descriptionModifiedContext}get wasDescriptionModifiedLocally(){return this.data.descriptionModifiedLocally}get modifiedBy(){return this.data.modifiedBy}get modifiedContext(){return this.data.modifiedContext}get wasModifiedLocally(){return this.data.modifiedLocally}get createdBy(){return this.data.createdBy}get createdContext(){return this.data.createdContext}get wasCreatedLocally(){return this.data.createdLocally}get removed(){return this._removed||this.data.removedDate}set removed(e){this._removed=e}get removedBy(){return this.data.removedBy}get removedContext(){return this.data.removedContext}get wasRemovedLocally(){return this.data.removedLocally}get isDeletedLocally(){return!1}beginOperation(){return this.library.beginOperation()}endOperation(e){return this.library.endOperation(e)}get representations(){return this._representationCache.all()}getPrimaryRepresentation(){return this.representations.find((e=>"primary"===e.relationship))}getRepresentationById(e){return this.representations.find((t=>t.id===e))}createRepresentation(e,t,r,n){const i=qw(),o=[...this.data.representations];return o.splice(1,0,{id:i,type:e,relationship:t,isFullSize:!1,isExternalLink:!1}),this.dispatch({name:"updateElementContent",type:"update",data:{representations:o}}),this.getRepresentationById(i)}removeRepresentation(e){const t=[...this.data.representations],r=t.findIndex((t=>t.id===e.id));-1!==r&&(t.splice(r,1),this.dispatch({name:"updateElementContent",type:"update",data:{representations:t}}))}removeAllRepresentations(){this.dispatch({name:"updateElementContent",type:"update",data:{renditionUrl:{},representations:[]}})}getValue(e,t){var r;return null===(r=this.data.customData)||void 0===r?void 0:r[`${e}#${t}`]}getValues(){return US(this.data.customData)}setValue(e,t,r){this.dispatch({name:"updateElement",type:"update",data:{customData:{[`${e}#${t}`]:r}}})}removeValue(e,t){this.setValue(e,t,null)}getThumbnailURL(e){return this.driver.getRenditionUrl(this,e)}getAuthenticatedThumbnailURL(e){return this.driver.getAuthenticatedThumbnailURL(this,e)}getThumbnailPath(e="full"){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.committed;case 2:return r.abrupt("return",t.driver.getRenditionPath(t.library.id,t.id,e));case 3:case"end":return r.stop()}}),r)})))()}getThumbnailContent(e){return this.driver.getRendition(this,e).then((e=>e.blob()))}setThumbnailCache(e,t){return Promise.resolve({})}getCachedThumbnailPath(e){return""}supportsVectorThumbnail(){const e=this.getPrimaryRepresentation();return!!e&&Bw.VECTOR_RENDITION_ELEMENT_TYPES.includes(e.type)}getActions(e){const t=this.getPrimaryRepresentation();if(!t)return[];if(this.library.documentType){const t=this.apiRoot.getOption("DOCUMENT_LIBRARY_ACTION_PRODUCT_MAP"),r=t.types[this.library.documentType]||[];return $S(this.library,e,r,t.products)}const r=this.apiRoot.getOption("ELEMENT_ACTION_PRODUCT_MAP");return $S(this,e,(r.types[this.type]||{})[t.type]||[],r.products)}get roles(){return this.data.roles||[]}set roles(e){this.dispatch({name:"updateElement",type:"update",data:{roles:e}})}get isStockAsset(){const e=Object.values(jw).includes(this.type),t=void 0!==this.getStockDataForElement();return e&&t}get isLicensed(){var e;return"purchased"===(null===(e=this.getStockDataForElement())||void 0===e?void 0:e.state)}get _representationCache(){return this._childModelCaches.representations.cache}update(e,t=!0){const r=super.update(e,!1);return t&&this.emit("change"),r}dispatch(e){e.path||(e.path=`$.elements[?(@.id == "${this.id}")]`),this._lastLocalUpdateDate=Date.now(),this.library.dispatch(e)}getStockDataForElement(e){const t=void 0===e?this.getPrimaryRepresentation():this.representations[e];let r=null==t?void 0:t.getValue("adobestock","trackingdata");return r&&(null==t?void 0:t.isExternalLink)&&(null==t?void 0:t.getCachedExternalLinkError())&&""!==(null==t?void 0:t.getContentURL())&&(r=this.getStockDataForElement(void 0===e?0:e+1)||Object.assign(Object.assign({},r),{state:"not_purchased"})),r}};Ie([PS],nT.prototype,"id",null),Ie([PS],nT.prototype,"modified",null),Ie([PS],nT.prototype,"created",null),Ie([PS,CS],nT.prototype,"name",null),Ie([PS],nT.prototype,"isAutoNamed",null),Ie([PS],nT.prototype,"isCommitted",null),Ie([PS],nT.prototype,"getLocalizedName",null),Ie([PS],nT.prototype,"getLocalizedNames",null),Ie([CS],nT.prototype,"setLocalizedName",null),Ie([PS],nT.prototype,"isWritable",null),Ie([PS],nT.prototype,"tags",null),Ie([PS,CS],nT.prototype,"dependencies",null),Ie([CS],nT.prototype,"createGroup",null),Ie([PS],nT.prototype,"getGroups",null),Ie([PS],nT.prototype,"getOrderInGroup",null),Ie([CS],nT.prototype,"setOrderInGroup",null),Ie([PS,CS],nT.prototype,"description",null),Ie([PS],nT.prototype,"descriptionModified",null),Ie([PS],nT.prototype,"descriptionModifiedBy",null),Ie([PS],nT.prototype,"descriptionModifiedContext",null),Ie([PS],nT.prototype,"wasDescriptionModifiedLocally",null),Ie([PS],nT.prototype,"modifiedBy",null),Ie([PS],nT.prototype,"modifiedContext",null),Ie([PS],nT.prototype,"wasModifiedLocally",null),Ie([PS],nT.prototype,"createdBy",null),Ie([PS],nT.prototype,"createdContext",null),Ie([PS],nT.prototype,"wasCreatedLocally",null),Ie([PS,CS],nT.prototype,"removed",null),Ie([PS],nT.prototype,"removedBy",null),Ie([PS],nT.prototype,"removedContext",null),Ie([PS],nT.prototype,"wasRemovedLocally",null),Ie([PS],nT.prototype,"isDeletedLocally",null),Ie([PS],nT.prototype,"representations",null),Ie([PS],nT.prototype,"getPrimaryRepresentation",null),Ie([PS],nT.prototype,"getRepresentationById",null),Ie([CS],nT.prototype,"createRepresentation",null),Ie([CS],nT.prototype,"removeRepresentation",null),Ie([CS],nT.prototype,"removeAllRepresentations",null),Ie([PS],nT.prototype,"getValue",null),Ie([PS],nT.prototype,"getValues",null),Ie([CS],nT.prototype,"setValue",null),Ie([CS],nT.prototype,"removeValue",null),Ie([PS],nT.prototype,"getCachedThumbnailPath",null),Ie([PS],nT.prototype,"supportsVectorThumbnail",null),Ie([PS],nT.prototype,"getActions",null),Ie([PS,CS],nT.prototype,"roles",null),nT=Ie([IS],nT);var iT=nT;function oT(e){return"insert"===e.type}function aT(e){return"update"===e.type}function sT(e){return"remove"===e.type}function cT(e){return"aggregate"===e.type}const lT=/(\.[a-zA-Z0-9]+)|(\[\?\(([^\[\]]+)\)\])/g,uT=/^\$(?:(\.[a-zA-Z0-9]+)|(\[\?\(([^\[\]]+)\)\]))*$/,dT=/^([^ ]+) *== *"(.+)"$/;function pT(){return function(e,t,r){const n=r.value;return r.value=function(e,t,...r){if(!uT.test(t))throw new px("INVALID_PARAMETER","JSON Path is not valid");return n.apply(this,[e,t,...r])},r}}class hT{static get(e,t){var r;return"$"===t?e:null===(r=t.match(lT))||void 0===r?void 0:r.reduce(((e,t)=>e&&this._handlePathPart(e,t)),e)}static set(e,t,r){if("$"===t)throw new px("INVALID_PARAMETER","Cannot set in root of object");const n=t.match(lT);if(n){const t=n.pop(),i=n.join("");if(!t)throw new px("INVALID_PARAMETER","JSON path must end in a field");let o=e;if(i&&(o=this.get(e,`$${i}`),!o))throw new px("INVALID_PARAMETER","JSON path parent does not exist");return o[t.substring(1)]=r,r}}static insert(e,t,r){var n;const i=null!==(n=this.get(e,t))&&void 0!==n?n:this.set(e,t,[]);Array.isArray(i)?i.push(r):gx.warn("JSONPath.insert failed to insert into non-array")}static remove(e,t){const r=null==t?void 0:t.match(lT),n=null==r?void 0:r.pop(),i=(null==r?void 0:r.reduce(((e,t)=>e&&this._handlePathPart(e,t)),e))||[];if(!(null==n?void 0:n.startsWith("[?(")))throw new px("INVALID_PARAMETER","JSON Path must end in a filter");if(!Array.isArray(i))return;const o=this._handleFilterExpression(i,n.substring(3,n.length-2)),a=i.indexOf(o);-1!==a&&i.splice(a,1)}static _handlePathPart(e,t){return t.startsWith("[?(")?this._handleFilterExpression(e,t.substring(3,t.length-2)):e[t.substring(1)]}static _handleFilterExpression(e,t){const r=le(dT.exec(t)||[],3),n=r[1],i=r[2],o=n.replace(/^@/,"$");if(Array.isArray(e))return e.find((e=>this.get(e,o)===i))}}function fT(e,t){return cT(t)?t.actions.reduce(((e,t)=>fT(e,t)),e):oT(t)?function(e,t){return hT.insert(e,t.path,t.data),e}(e,t):aT(t)?function(e,t){const r=hT.get(e,t.path);return Object.assign(r,t.data),e}(e,t):sT(t)?function(e,t){return hT.remove(e,t.path),e}(e,t):e}Ie([pT()],hT,"get",null),Ie([pT()],hT,"set",null),Ie([pT()],hT,"insert",null),Ie([pT()],hT,"remove",null);class mT{constructor(e=10){this._cache=new Map,this._capacity=e}has(e){if(this._cache.get(e))return e}add(e){if(this._cache.has(e))this._cache.delete(e);else if(this._cache.size>=this._capacity){const e=Array.from(this._cache.entries()).reduce(((e,t)=>e[1]<t[1]?e:t))[0];this._cache.delete(e)}this._cache.set(e,Date.now())}}const gT=Symbol("operationPending");class vT extends AS{constructor(e,t,r){super(e,t,r),this._actions=[],this._reducer=fT,this._operation=void 0,this._pendingActionSemaphore=0,this._pendingOperationResolvers=[],this._lastLocalUpdateDate=0,this._previouslySeenEtags=new mT,this._pendingActions=[],this._baseData=r,this._currentData=ZL(r)}get data(){return this._currentData}get baseData(){return this._baseData}get actions(){return this._actions}dispatch(e,t=!0){return this._dispatch(e,t)}revert(){this._actions=[],this._pendingActions=[],this._pendingActionSemaphore=0,this._currentData=ZL(this._baseData),this._updateCaches(),this.emit("change")}commit(e,t){this._confirmActionsAtHead(e),function(e){var t,r,n,i,o=ue(e);try{for(o.s();!(i=o.n()).done;){const e=i.value;e.data&&Xw(null===(r=null===(t=e.originalAction)||void 0===t?void 0:t.data)||void 0===r?void 0:r.id)&&(e.data.previousPlaceholderId=null===(n=e.originalAction)||void 0===n?void 0:n.data.id)}}catch(e){o.e(e)}finally{o.f()}}(e);let r=Object.assign({},this._baseData);var n,i=ue(e);try{for(i.s();!(n=i.n()).done;){const e=n.value;r=this._reducer(r,e),this._actions.shift()}}catch(e){i.e(e)}finally{i.f()}this._actions=GL(e,this._actions),t&&(this._previouslySeenEtags.add(this.etag),r.etag=t),this._lastLocalUpdateDate=Date.now(),this.update(r),e.forEach((e=>{var t;(function(e){return["removeLibrary","unfollowLibrary","leaveLibrary","permanentlyDeleteLibrary"].includes(e.name)})(e)&&(null===(t=this._modelCache)||void 0===t||t.remove(this,!1))})),this.emit("action",...e.map((e=>({type:"commit",action:e})))),this.emit("commit")}_confirmActionsAtHead(e){if(this._actions.length<e.length)return!1;for(const t in e)if(e[t]!==this._actions[t])return!1;return!0}update(e,t=!0){const r=Xw(this.id)&&e.id&&this.id!==e.id;return this._modelCache&&this._modelCache.updateIndices(this,e),this._baseData=Object.assign(Object.assign({},this._baseData),e),this._rebaseActions(),t&&this.emit("change"),r&&this._commitResolver&&this._commitResolver(),this._baseData}beginOperation(){this.squelchChangeEvents(),this._pendingActionSemaphore+=1,gx.log(`[STORE] Starting operation (Depth: ${this._pendingActionSemaphore})`)}endOperation(e){if(this._pendingActionSemaphore=Math.max(0,this._pendingActionSemaphore-1),gx.log(`[STORE] Ending operation (Depth: ${this._pendingActionSemaphore})`),0===this._pendingActionSemaphore){gx.log("[STORE] Reached end of operation stack. Adding actions to queue...");const e=this._collapseActions(this._pendingActions);return this._actions=this.actions.concat(e),this._pendingActions=[],this.emit("action",...e.map((e=>({type:"dispatch",action:e})))),this.unsquelchChangeEvents(),new Promise((e=>{const t=()=>{this._actions.length||(this._pendingOperationResolvers.forEach((e=>e())),this._pendingOperationResolvers=[],e(),this.off("commit",t))};this.on("commit",t)}))}return new Promise((e=>{this._pendingOperationResolvers.push(e)}))}get etag(){return this._baseData.etag}set etag(e){this._baseData.etag=e}get isOperationInProgress(){return 0!==this._pendingActionSemaphore}set operation(e){this._operation=e}get operation(){return this._operation}_dispatch(e,t=!0){(oT(e)||aT(e))&&(e.data=ZL(e.data));const r=this._reducer(this._currentData,e);this.isOperationInProgress?this._pendingActions.push(e):this._actions.push(e),this._currentData=r,this._lastLocalUpdateDate=Date.now(),t&&this.emit("change"),this.isOperationInProgress||this.emit("action",{type:"dispatch",action:e})}_rebaseActions(){this._currentData=[...this._actions,...this._pendingActions].reduce(((e,t)=>this._reducer(e,t)),ZL(this._baseData))}_collapseActions(e){return e}}class yT extends rT{constructor(){super(...arguments),this.isGroup=!0,this._isDeletedLocally=!1,this._updateAction="updateGroup"}get id(){return this.data.id}get classifierName(){return this.data.classifier}get name(){return this.data.name}set name(e){this.dispatch({name:"updateGroup",type:"update",data:{name:e}})}get order(){return this.data.order}set order(e){this.dispatch({name:"updateGroup",type:"update",data:{order:e}})}get modified(){return this.data.modifiedDate}get modifiedBy(){return this.data.modifiedBy}get modifiedContext(){return this.data.modifiedContext}get wasModifiedLocally(){return this.data.modifiedLocally}get created(){return this.data.createdDate}get createdBy(){return this.data.createdBy}get createdContext(){return this.data.createdContext}get wasCreatedLocally(){return this.data.createdLocally}getValue(e,t){var r;return null===(r=this.data.customData)||void 0===r?void 0:r[`${e}#${t}`]}getValues(){return US(this.data.customData)}get children(){return this.library.getGroups(this.classifierName).filter((e=>e.parent&&e.parent.id===this.id))}getFilteredChildren(e){return this.children.filter(e)}get elements(){const e=[],t=t=>void 0!==t.getOrderInGroup(this)&&e.push(t);return this.library.elements.forEach(t),this.library.documentationElements.forEach(t),e}isEmpty(){return 0===this.elements.length&&0===this.children.length}setValue(e,t,r,n){this.dispatch({name:"updateGroup",type:"update",data:{customData:Object.assign(Object.assign({},this.data.customData),{[`${e}#${t}`]:r})}})}removeValue(e,t,r){this.setValue(e,t,null,r)}get isDeletedLocally(){return this._isDeletedLocally}set isDeletedLocally(e){this._isDeletedLocally=e,this.emit("change")}get library(){return this._parent}getLocalizedName(e="en_US"){var t;return null===(t=this.data.localizedNames)||void 0===t?void 0:t[e]}getLocalizedNames(){return this.data.localizedNames||{}}setLocalizedName(e,t){return this.dispatch({name:"updateGroup",type:"update",data:{localizedNames:Object.assign(Object.assign({},this.data.localizedNames),{[e]:t})}})}get parent(){return this.library.getGroupById(this._data.parentId)}set parent(e){this.dispatch({name:"updateGroup",type:"update",data:{parentId:(null==e?void 0:e.id)||null}})}createChild(e,t){const r=qw();return this.dispatch({name:"createGroup",type:"insert",data:{id:r,name:e,order:t,classifier:this.classifierName,parentId:this.id},path:"$.groups"}),this.library.getGroupById(r)}dispatch(e){e.path||(e.path=`$.groups[?(@.id == "${this.id}")]`),this.library.dispatch(e)}update(e,t=!0){const r=super.update(e,!1);return t&&this.emit("change"),r}}Ie([PS,CS],yT.prototype,"name",null),Ie([PS,CS],yT.prototype,"order",null),Ie([PS],yT.prototype,"modified",null),Ie([PS],yT.prototype,"modifiedBy",null),Ie([PS],yT.prototype,"modifiedContext",null),Ie([PS],yT.prototype,"wasModifiedLocally",null),Ie([PS],yT.prototype,"created",null),Ie([PS],yT.prototype,"createdBy",null),Ie([PS],yT.prototype,"createdContext",null),Ie([PS],yT.prototype,"wasCreatedLocally",null),Ie([PS],yT.prototype,"getValue",null),Ie([PS],yT.prototype,"getValues",null),Ie([PS],yT.prototype,"children",null),Ie([PS],yT.prototype,"getFilteredChildren",null),Ie([PS],yT.prototype,"elements",null),Ie([PS],yT.prototype,"isEmpty",null),Ie([CS],yT.prototype,"setValue",null),Ie([CS],yT.prototype,"removeValue",null),Ie([PS],yT.prototype,"isDeletedLocally",null),Ie([PS],yT.prototype,"getLocalizedName",null),Ie([PS],yT.prototype,"getLocalizedNames",null),Ie([CS],yT.prototype,"setLocalizedName",null),Ie([CS,PS],yT.prototype,"parent",null);class bT extends AS{constructor(e,t,r){super(e,t,r),this._groupCache=new ZS(this,yT),this._elementCache=new ZS(this,iT),this._documentationElementCache=new ZS(this,iT),this._removedElementCache=new ZS(this,iT);const n=this.data,i=n.groups,o=n.elements,a=n.documentationElements,s=n.removedElements;i&&this._groupCache.replace(i),o&&this._elementCache.replace(o),a&&this._documentationElementCache.replace(a),s&&this._removedElementCache.replace(s)}get isPublic(){return"public"===this.data.ownership}get collaboration(){return this.data.collaboration}get elements(){return this._elementCache.all()}get elementCount(){return this.elements.length}get documentationElements(){return this._documentationElementCache.all()}get documentationElementCount(){return this.documentationElements.length}get removedElements(){return this._removedElementCache.all()}get removedElementCount(){return this.removedElements.length}getElementById(e){return this.elements.find((t=>t.id===e))}getElementsAndDependencies(e){const t={},r=e=>{const n=this.getElementById(e);if(!n||t[e])return;t[e]=n;const i=n.dependencies.map((e=>e.id))||[];i.forEach(r)};return e.forEach((e=>r(e.id))),Object.keys(t).map((e=>t[e]))}getFilteredElements(e){return this.elements.filter(e)}getGroupCount(e){return this.getGroups(e).length}getGroups(e){return this._groupCache.all().filter((t=>t.classifierName===e))}getGroupById(e){return this._groupCache.get(e)}getFilteredGroups(e="$default",t){var r;return(null===(r=this.getGroups(e))||void 0===r?void 0:r.filter(t))||[]}hasUngroupedElements(e="$default"){return this.elementCount>this.getGroups(e).reduce(((e,t)=>e+t.elements.length),0)}getLocalizedName(e){var t;return null===(t=this.data.localizedNames)||void 0===t?void 0:t[e]}getValue(e,t){var r;return null===(r=this.data.customData)||void 0===r?void 0:r[`${e}#${t}`]}getActions(){return[]}get areElementsLoaded(){return!0}get assetId(){return this.data.assetId}get created(){return this.data.createdDate}get documentId(){return this.data.documentId}get documentType(){return this.data.documentType}get isLibraryLoaded(){return!0}get isTransient(){return!0}get isDeletedLocally(){return!1}get isParentWritable(){return!1}get isPushedToServer(){return!0}get isWritable(){return!1}get modified(){return this.data.modifiedDate}get name(){return this.data.name}get owner(){return this.data.owner}get ownerType(){return this.data.ownerType}get ownership(){return this.data.ownership}get parentDirectoryId(){var e;return null===(e=this.data.team)||void 0===e?void 0:e.id}get team(){return this.apiRoot.teams.find((e=>{var t;return e.id===(null===(t=this.data.team)||void 0===t?void 0:t.id)}))||this.data.team}get toolkitId(){return this.data.toolkitId}get isDeletedFromServer(){return!1}get renditionGrid(){}get storageUsed(){return 0}get syncProgress(){return 0}get syncState(){}get isQuotaExceeded(){return!1}}class _T extends AS{get id(){return this._data.id}get createdDate(){return this._data.createdDate}get createdBy(){return this._data.createdBy}get library(){return this._parent}load(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e._libraryVersion){t.next=2;break}return t.abrupt("return",e._libraryVersion);case 2:return t.next=4,e.apiRoot.cloudDriver.loadVersion(e.library.assetId,e._data.manifestUrl);case 4:return r=t.sent,e._libraryVersion=new bT(void 0,e,r),t.abrupt("return",e._libraryVersion);case 7:case"end":return t.stop()}}),t)})))()}}Ie([kS],_T.prototype,"load",null);class ET extends AS{get imsUserId(){return this.data.imsUserId}get email(){return this.data.email}get name(){return this.data.name}get role(){return this.data.role}get inheritances(){return this.data.inheritances}get type(){return this.data.type}get isDirect(){return this.data.isDirect}get hasContributorRole(){return this.data.hasContributorRole}get hasName(){return this.data.hasName}get invited(){return this.data.invited}get isAdmin(){return this.data.isAdmin}get isPredefinedGroup(){return"predefinedPrincipal"===this.type}get isStorageAdminOnly(){var e;return 1===(null===(e=this.inheritances)||void 0===e?void 0:e.length)&&"deep_override"===this.inheritances[0]}}class wT extends hx{constructor(){super(...arguments),this._isLocked=!1,this._queue=[]}execute(e){const t=e=>(this.release(),e);return this.obtain().then(e).then((e=>t(e)),(e=>t(Promise.reject(e))))}_obtain(e){this._isLocked?this._queue.push(e):(this._isLocked=!0,this.emit("change"),e(null))}obtain(){return new Promise(((e,t)=>this._obtain((r=>r?t(r):e()))))}release(){if(this._queue.length>0){const e=this._queue.shift();setTimeout((()=>e(null)))}else this._isLocked=!1,this.emit("change")}abortPendingOperations(e){const t=this._queue;this._queue=[],t.forEach((t=>t(e)))}get isLocked(){return this._isLocked}hasPendingRequest(){return this._queue.length>0}}function xT(e,t,r){const n=r.value;r.value=me(he().mark((function e(...t){var r;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._lock=this._lock||new wT,e.next=3,this._lock.obtain();case 3:return e.prev=3,e.next=6,n.apply(this,t);case 6:return r=e.sent,this._lock.release(),e.abrupt("return",r);case 11:throw e.prev=11,e.t0=e.catch(3),this._lock.release(),e.t0;case 15:case"end":return e.stop()}}),e,this,[[3,11]])})))}const LT=[{test:e=>cT(e)&&["moveGroup","copyGroup"].includes(e.name),handler:function(e,t){var r;const n=[],i=ML(t.path),o=t.actions.map((e=>"removeElement"===e.name&&e.baseData)),a=(null===(r=e.elements)||void 0===r?void 0:r.filter((e=>e.groups.find((e=>e.id===i)))))||[];var s,c=ue(a.filter((e=>!o.find((t=>t.id===e.id)))));try{for(c.s();!(s=c.n()).done;){const e=s.value;n.push({name:"updateElement",type:"update",path:`$.elements[?(@.id == "${e.id}")]`,data:{groups:e.groups.filter((e=>e.id!==i))}})}}catch(e){c.e(e)}finally{c.f()}const l=o.filter((e=>!a.find((t=>t.id===e.id))));for(let e=t.actions.length-1;e>=0;e-=1){const r=t.actions[e];l.find((e=>e.id===r.baseData.id))&&t.actions.splice(e,1)}return n.push(t),n}},{test:e=>aT(e)&&"updateElementContent"===e.name,handler:function(e,t){const r=hT.get(e,t.path);return r&&r.modifiedDate!==t.baseData.modifiedDate&&!jS(r.representations,t.baseData.representations,{cyclesFix:!1}).find((e=>"id"!==e.path[1]&&"CREATE"!==e.type&&!(void 0===e.oldValue&&"REMOVE"===e.type)))||r&&r.modifiedDate===t.baseData.modifiedDate?[t]:[{name:"createElement",type:"insert",path:RL(t.path),data:ZL(Object.assign(Object.assign(Object.assign({},t.baseData),t.data),{id:qw()}))}]}},{test:e=>aT(e)&&"updateGroup"===e.name,handler:function(e,t){const r=hT.get(e,t.path);return r?[Object.assign(Object.assign({},t),{baseData:ZL(r)})]:[{name:"createGroup",type:"insert",path:"$.groups",data:ZL(Object.assign(Object.assign(Object.assign({},t.baseData),t.data),{id:qw()}))}]}},{test:e=>aT(e)&&"updateElement"===e.name,handler:function(e,t){const r=hT.get(e,t.path);return r?[Object.assign(Object.assign({},t),{baseData:ZL(r)})]:[]}},{test:e=>cT(e)&&"removeElement"===e.name,handler:function(e,t){const r=hT.get(e,t.path),n=t.actions.find((e=>"removeElement"===e.name));return r&&r.modifiedDate===(null==n?void 0:n.baseData.modifiedDate)?[t]:[]}},{test:e=>sT(e),handler:function(e,t){const r=hT.get(e,t.path);return r&&r.modifiedDate===t.baseData.modifiedDate?[t]:[]}}];function OT(e,t){var r,n=ue(LT);try{for(n.s();!(r=n.n()).done;){const n=r.value,i=n.test,o=n.handler;if(i(t))return o(e,t)}}catch(e){n.e(e)}finally{n.f()}return[t]}function ST(e){const t="incoming"===e.ownership&&"org"===e.ownerType;return Boolean("incoming"===e.ownership&&e.team||t)}function TT(e){var t;return!!(null===(t=e.roles)||void 0===t?void 0:t.find((e=>"brand"===e.type)))}function PT(e,t){var r,n;if(!e||function(e){var t;return!!(null===(t=e.roles)||void 0===t?void 0:t.find((e=>["cme","cm_training_set"].includes(e.type))))}(e))return!1;const i="incoming"===e.ownership,o="private"===e.ownership||"outgoing"===e.ownership,a=t?i:o,s=!!(null===(r=e.bookmark)||void 0===r?void 0:r.id),c=!!(null===(n=e.roles)||void 0===n?void 0:n.find((e=>"approvedbrand"===e.type)));return a||s||c}let IT=class extends vT{constructor(e,t,r){super(e,t,Object.assign({groups:[],elements:[],documentationElements:[],removedElements:[]},r)),this._lock=new wT,this._versionCache=new ZS(this,_T),this._collaboratorCache=new ZS(this,ET),this._isDeletedLocally=!1,this._childModelCaches={groups:{cache:new ZS(this,GS(yT)),accessor:e=>e.groups},elements:{cache:new ZS(this,GS(iT)),accessor:e=>e.elements},documentationElements:{cache:new ZS(this,GS(iT)),accessor:e=>e.documentationElements},removedElements:{cache:new ZS(this,GS(iT)),accessor:e=>e.removedElements}},this._hasExplicitlyLoadedElements=!1,this.isLibrary=!0,this.on("action",(()=>this.syncStatus={})),this.on("commit",(()=>this.syncStatus={})),this._lock.on("change",(()=>this.syncStatus={}))}obtainLock(){return this._lock.obtain()}releaseLock(){return this._lock.release()}get isLocked(){return this._lock.isLocked}load(e,t){return this._load(!1,e,t)}loadElements(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.areElementsLoaded&&t._hasExplicitlyLoadedElements){r.next=4;break}return t._hasExplicitlyLoadedElements=!0,r.next=4,t._load(!0,e);case 4:case"end":return r.stop()}}),r)})))()}clearElements(e=!0){const t=0===this.elements.length&&0===this.documentationElements.length;this.areElementsLoaded||t||this.update({elements:[],documentationElements:[],removedElements:[],areElementsLoaded:!1},e)}abortLoadElements(){this._loadElementsAbortController&&this._loadElementsAbortController.abort()}_load(e=!1,t,r){var n=this;return me(he().mark((function i(){var o,a,s,c,l,u,d,p,h,f,m,g,v,y,b,_;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:n._loadElementsAbortController=new AbortController,e&&!n.areElementsLoaded&&(n.apiRoot.abortSearch(),n.clearElements()),f={etag:n.data.appMetadata?void 0:n.data.etag,optimisticFetch:!0,firstElementsLoad:!n.areElementsLoaded,getRenditionGrid:!0,elementParams:e||n.areElementsLoaded?{types:n.apiRoot.options.elementTypes,sort:t,abortController:n._loadElementsAbortController,loadProgressively:!n.areElementsLoaded}:void 0},r&&(f.optimisticFetch=!1),n.data.appMetadata&&(f.getAppMetadata=!0),i.prev=5,i.prev=6,m=!0,g=je(n.driver.getLibrary(n,f));case 8:return i.next=10,g.next();case 10:if(v=i.sent,o=v.done){i.next=31;break}if(c=v.value,m=!1,i.prev=15,!(y=c).etag||f.getAppMetadata){i.next=21;break}if(!n._previouslySeenEtags.has(y.etag)){i.next=20;break}return i.abrupt("continue",29);case 20:n._previouslySeenEtags.add(y.etag);case 21:n.update(y),(b=null===(u=null===(l=y.appMetadata)||void 0===l?void 0:l["brand:publishedTo"])||void 0===u?void 0:u["repo:assetId"])&&n.apiRoot.resolveLibraryWithoutCache(b),(_=null===(p=null===(d=y.appMetadata)||void 0===d?void 0:d["brand:publishedFrom"])||void 0===p?void 0:p["repo:assetId"])&&n.apiRoot.resolveLibraryWithoutCache(_);case 26:return i.prev=26,m=!0,i.finish(26);case 29:i.next=8;break;case 31:i.next=36;break;case 33:i.prev=33,i.t0=i.catch(6),a={error:i.t0};case 36:if(i.prev=36,i.prev=37,m||o||!(s=g.return)){i.next=41;break}return i.next=41,s.call(g);case 41:if(i.prev=41,!a){i.next=44;break}throw a.error;case 44:return i.finish(41);case 45:return i.finish(36);case 46:i.next=59;break;case 48:if(i.prev=48,i.t1=i.catch(5),!(i.t1 instanceof Cx)){i.next=58;break}if("PRECONDITION_FAILED"!==i.t1.code){i.next=53;break}return i.abrupt("return",n._load(e,t,r));case 53:if("NOT_MODIFIED"!==i.t1.code){i.next=55;break}return i.abrupt("return");case 55:if("NOT_FOUND"!==i.t1.code){i.next=58;break}return Xw(n.id)||null===(h=n._modelCache)||void 0===h||h.remove(n.id),i.abrupt("return");case 58:throw i.t1;case 59:case"end":return i.stop()}}),i,null,[[5,48],[6,33,36,46],[15,,26,29],[37,,41,45]])})))()}loadGivenElements(e,t=!1,r=!1){if(!t&&this.data.areElementsLoaded)return;if(t||(e=e.filter((e=>!this.getElementById(e.id)))),0===e.length)return;const n=(this.data.elements||[]).concat(e);this.update({elements:n},r)}get type(){return"application/vnd.adobe.library+dcx"}get id(){return this.data.id}get version(){return this.data.version}get publicLinkId(){return this.data.publicLinkId}get bookmark(){var e;return{id:null===(e=this.data.bookmark)||void 0===e?void 0:e.id}}get previousPlaceHolderId(){return this._baseData.previousPlaceholderId}get isPublic(){return"public"===this.data.ownership}get ownership(){return this.data.ownership}get locallyManaged(){return!!this.data.locallyManaged}set locallyManaged(e){this.data.locallyManaged=e}get name(){return this.data.name}set name(e){this.dispatch({name:"updateLibrary",type:"update",data:{name:e}})}getLocalizedName(e="en_US"){return this.data.localizedNames[e]}getLocalizedNames(){return this.data.localizedNames||{}}setLocalizedName(e,t){return this.dispatch({name:"updateLibrary",type:"update",path:"$",data:{localizedNames:Object.assign(Object.assign({},this.data.localizedNames),{[e]:t})}})}get created(){return this.data.createdDate}get modified(){return Math.max(this.data.modifiedDate,this._lastLocalUpdateDate)}get createdBy(){return this.data.createdBy}get modifiedBy(){return this.data.modifiedBy}get toolkitId(){return this.data.toolkitId}set toolkitId(e){this.dispatch({name:"updateLibrary",type:"update",data:{toolkitId:e}})}get roles(){return this.data.roles||[]}set roles(e){this.dispatch({name:"updateLibrary",type:"update",data:{roles:e}})}get description(){return this.data.description}set description(e){this.dispatch({name:"updateLibrary",type:"update",data:{description:e}})}get copyGuidelines(){var e;return(null===(e=this.apiRoot.options.featureFlags)||void 0===e?void 0:e.enableGenStudioAPIs)?this.getValue("brand","copyGuidelines")||{}:(gx.warn("library.copyGuidelines is only accessible when the feature flag enableGenStudioAPIs is enabled."),{})}set copyGuidelines(e){var t;(null===(t=this.apiRoot.options.featureFlags)||void 0===t?void 0:t.enableGenStudioAPIs)?this.setValue("brand","copyGuidelines",e):gx.warn("library.copyGuidelines is only accessible when the feature flag enableGenStudioAPIs is enabled.")}get documentId(){return this.data.documentId}get renditionGrid(){var e;const t=this.data.etag!==(null===(e=this.data.renditionGrid)||void 0===e?void 0:e.gridGenerationEtag);return this.areElementsLoaded&&t?eL(this)||void 0:this.data.renditionGrid}get documentType(){return this.data.documentType}get collaboration(){return this.data.collaboration}get appMetadata(){return this.data.appMetadata||{}}get assetId(){return this.data.assetId}get isWritable(){return this.data.isWritable}get isParentWritable(){return this.data.isParentWritable}get removeType(){return this.data.removeType}get deletable(){return this.data.deletable}get owner(){var e;return this.data.owner||("private"===this.data.ownership?null===(e=this.driver.config.user)||void 0===e?void 0:e.id:void 0)}get ownerType(){return this.data.ownerType}get parentDirectoryId(){var e;return null===(e=this.data.team)||void 0===e?void 0:e.id}get team(){return"staging"===this.driver.config.environment&&gx.warn("Library.team is deprecated. Use Library.project instead."),this.apiRoot.teams.find((e=>{var t;return e.id===(null===(t=this.data.team)||void 0===t?void 0:t.id)}))||this.data.team}get project(){return this.apiRoot.projects.find((e=>{var t;return e.id===(null===(t=this.data.team)||void 0===t?void 0:t.id)}))||this.data.team}get isDeletedFromServer(){return!1}get isDeletedLocally(){return this._isDeletedLocally}set isDeletedLocally(e){this._isDeletedLocally=e,this.emit("change")}get isQuotaExceeded(){return!1}get storageUsed(){return this.data.storageUsed}set syncStatus({syncState:e,syncProgress:t}){const r=this._syncState,n=this._syncProgress;this._syncState=e,this._syncProgress=t,(this.isLocked||this._actions.length>0)&&(this._syncState=this._syncState||this._actions.length>0?"uploading":"downloading"),this._syncState===r&&this._syncProgress===n||this.emit("sync")}get syncState(){return this._syncState}get syncProgress(){return this._syncProgress}get syncError(){var e;return null===(e=this.apiRoot.syncState.errorMap.get(this.id))||void 0===e?void 0:e.error}get isPushedToServer(){return Boolean(this.assetId)}get areElementsLoaded(){return Boolean(this.data.areElementsLoaded)}get elements(){return this._elementCache.all()}get elementCount(){return this.elements.length}getFilteredElements(e){return this.elements.filter(e)}get documentationElements(){return this._documentationElementCache.all()}get documentationElementCount(){return this.documentationElements.length}get removedElements(){return this._removedElementCache.all()}get removedElementCount(){return this.removedElements.length}get publishedTo(){var e,t;return null===(t=null===(e=this.data.appMetadata)||void 0===e?void 0:e["brand:publishedTo"])||void 0===t?void 0:t["repo:assetId"]}get publishedFrom(){var e,t;return null===(t=null===(e=this.data.appMetadata)||void 0===e?void 0:e["brand:publishedFrom"])||void 0===t?void 0:t["repo:assetId"]}get lastPublishedVersion(){var e;return null===(e=this.data.appMetadata)||void 0===e?void 0:e["brand:lastPublishedVersion"]}get extractedFrom(){var e,t;return null===(t=null===(e=this.data.appMetadata)||void 0===e?void 0:e["brand:extractedFrom"])||void 0===t?void 0:t.map((e=>e["repo:assetId"]))}getElementById(e,t=!1,r=!1){var n,i=ue([this.elements,!t&&this.removedElements,!r&&this.documentationElements].filter(Boolean));try{for(i.s();!(n=i.n()).done;){const t=n.value.find((t=>t.id===e||t.data.previousPlaceholderId===e));if(t)return t}}catch(e){i.e(e)}finally{i.f()}}getReference(){return{"dc:format":this.type,"repo:assetId":this.assetId,"repo:name":this.name,"stRef:manager":"Adobe Cloud","stRef:documentID":this.id}}getReferenceString(){return ex(this.getReference())}createElement(e,t){return this._createElementAtPath(e,t,"$.elements")}createDocumentationElement(e,t){return this._createElementAtPath(e,t,"$.documentationElements")}_createElementAtPath(e,t,r){this.beginOperation();const n=qw();return this.dispatch({name:"createElement",type:"insert",path:r,data:{id:n,name:e,type:t,createdDate:Date.now(),modifiedDate:Date.now(),representations:[],groups:[]}}),this.getElementById(n)}removeElement(e,t){e.removed=Date.now();const r={name:"removeElement",path:`$.elements[?(@.id == "${e.id}")]`};if(t)this.dispatch(Object.assign(Object.assign({},r),{type:"remove"}));else{const t=[Object.assign(Object.assign({},r),{type:"remove"})];t.push({name:"createElement",type:"insert",path:"$.removedElements",data:e.data}),this.dispatch(Object.assign(Object.assign({},r),{type:"aggregate",actions:t}))}}restoreElement(e){const t=[{name:"restoreElement",type:"insert",path:"$.elements",data:e.data},{name:"removeElement",type:"remove",path:`$.removedElements[?(@.id == "${e.id}")]`}];return this.dispatch({name:"restoreElement",type:"aggregate",data:e.data,actions:t}),this.getElementById(e.id)}copyElement(e,t){return this._transferElement(e,t,!1)}moveElement(e,t){return this._transferElement(e,t,!0)}_transferElement(e,t,r){const n=qw(),i={name:r?"moveElement":"copyElement",type:r?"remove":"no-op",path:`$.elements[?(@.id == "${e.id}")]`,library:this},o={name:"dependent",type:"insert",path:"$.elements",library:t,data:Object.assign(Object.assign({},e.data),{id:n})};return i.link=o,o.link=i,this.dispatch(i),t.dispatch(o),Promise.resolve(t.getElementById(n))}stageRepresentationForCommit(e,t){var r=this;return me(he().mark((function n(){var i;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=qw(),r.dispatch({name:"uploadComponent",type:"no-op",data:{id:i,type:t,file:e}}),n.abrupt("return",JSON.stringify({id:i,type:t}));case 3:case"end":return n.stop()}}),n)})))()}getGroups(e="$default"){return this._groupCache.all().filter((t=>t.classifierName===e))}getGroupCount(e="$default"){return this.getGroups(e).length}getFilteredGroups(e="$default",t){var r;return(null===(r=this.getGroups(e))||void 0===r?void 0:r.filter(t))||[]}getGroupById(e){return this._groupCache.get(e)}createGroup(e,t,r="$default"){const n=qw();return this.dispatch({name:"createGroup",type:"insert",path:"$.groups",data:{id:n,name:e,order:t,classifier:r}}),this.getGroupById(n)}removeGroup(e,t){const r={name:"removeGroup",path:`$.groups[?(@.id == "${e.id}")]`};if(e.isDeletedLocally=!0,t){const t=[Object.assign(Object.assign({},r),{type:"remove"})];var n,i=ue(e.elements);try{for(i.s();!(n=i.n()).done;){const e=n.value;t.push({name:"removeElement",type:"remove",path:`$.elements[?(@.id == "${e.id}")]`})}}catch(e){i.e(e)}finally{i.f()}this.dispatch(Object.assign(Object.assign({},r),{type:"aggregate",flags:{includeElements:!0},actions:t}))}else this.dispatch(Object.assign(Object.assign({},r),{type:"remove"}))}copyGroup(e,t,r){return this._transferGroup(e,t,r,!1)}moveGroup(e,t,r){return this._transferGroup(e,t,r,!0)}_transferGroup(e,t,r,n){const i=[];if(n&&(i.push({type:"remove",path:`$.groups[?(@.id == "${e.id}")]`}),r)){var o,a=ue(e.elements);try{for(a.s();!(o=a.n()).done;){const e=o.value;i.push({type:"remove",path:`$.elements[?(@.id == "${e.id}")]`})}}catch(e){a.e(e)}finally{a.f()}}const s=qw(),c={name:n?"moveGroup":"copyGroup",type:n?"aggregate":"no-op",path:`$.groups[?(@.id == "${e.id}")]`,library:this,actions:i,flags:{includeElements:r}},l={name:"dependent",type:"insert",path:"$.groups",library:t,data:Object.assign(Object.assign({},e.data),{id:s})};return c.link=l,l.link=c,this.dispatch(c),t.dispatch(l),Promise.resolve(t.getGroupById(s))}hasUngroupedElements(e="$default"){return this.elementCount>this.getGroups(e).reduce(((e,t)=>e+t.elements.length),0)}getAuthenticatedRenditionURL(e){return Promise.resolve("")}getRenditionPath(e){return Promise.reject()}getRenditionURL(e){}setRendition(e,t,r,n){return Promise.reject()}setRenditionFromPath(e,t,r){return Promise.reject()}removeRendition(e){return Promise.reject()}sync(){return Promise.resolve(void 0)}getValue(e,t){var r;return null===(r=this.data.customData)||void 0===r?void 0:r[`${e}#${t}`]}getValues(){return US(this.data.customData)}setValue(e,t,r,n){this.dispatch({name:"updateLibrary",type:"update",data:{customData:{[`${e}#${t}`]:r}}})}removeValue(e,t,r){this.setValue(e,t,null,r)}linkToDocument(e,t){if(this.isDeletedLocally)throw new px("DELETED_LOCALLY","deleted/orphan object");if(e||t){if(!e||!t)throw new px("INVALID_PARAMETER","Need to pass strings for both documentId and documentType");this.dispatch({name:"updateLibrary",type:"update",data:{documentId:e,documentType:t}})}else this.dispatch({name:"updateLibrary",type:"update",data:{documentId:null,documentType:null}})}getElementsAndDependencies(e){const t={},r=e=>{const n=this.getElementById(e);if(!n||t[e])return;t[e]=n;const i=n.dependencies.map((e=>e.id))||[];i.forEach(r)};return e.forEach((e=>r(e.id))),Object.keys(t).map((e=>t[e]))}getActions(e){if(!this.documentType)return[];const t=this.apiRoot.getOption("DOCUMENT_LIBRARY_ACTION_PRODUCT_MAP");return $S(this,e,t.types[this.documentType]||[],t.products)}get _elementCache(){return this._childModelCaches.elements.cache}get _documentationElementCache(){return this._childModelCaches.documentationElements.cache}get _removedElementCache(){return this._childModelCaches.removedElements.cache}get _groupCache(){return this._childModelCaches.groups.cache}update(e,t=!0){const r=super.update(e,!1);return this._updateCaches(t),t&&this.emit("change"),r}get isLibraryLoaded(){return Boolean(this.data.isLibraryLoaded)}get isTransient(){return Boolean(this.data.isTransient)}loadVersionHistory(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.apiRoot.cloudDriver.loadVersionHistory(e.assetId);case 2:return r=t.sent,e._versionCache.upsert(...r),e.emit("change"),t.abrupt("return",e.versions);case 6:case"end":return t.stop()}}),t)})))()}get versions(){return this._versionCache.all()}loadCollaborators(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.assetId){t.next=6;break}return t.next=3,e.apiRoot.cloudDriver.getCollaborators(e.assetId);case 3:r=t.sent,e._collaboratorCache.upsert(...r),e.emit("change");case 6:return t.abrupt("return",e.collaborators);case 7:case"end":return t.stop()}}),t)})))()}get collaborators(){return this._collaboratorCache.all()}get visibleCollaborators(){return this.collaborators.filter((e=>!e.isPredefinedGroup&&!e.isStorageAdminOnly))}_dispatch(e){var t;if(this.isDeletedLocally)gx.log(`[LIBRARY] Cannot dispatch action on deleted library: ${this.id}`);else{if(e.path||(e.path="$"),e.library||(e.library=this),"aggregate"===e.type&&(null===(t=e.actions)||void 0===t||t.map((t=>{if("remove"===t.type){const r=hT.get(this._currentData,e.path);t.baseData={modifiedDate:r.modifiedDate}}return t}))),"remove"===e.type){const t=hT.get(this._currentData,e.path);e.baseData={modifiedDate:t.modifiedDate}}"update"===e.type&&(e.baseData=ZL(hT.get(this._currentData,e.path))),super._dispatch(e,!1),"no-op"!==e.type&&(this._updateCaches(),this.emit("change"))}}_collapseActions(e){const t=[],r={},n={};var i,o=ue(e);try{for(o.s();!(i=o.n()).done;){const e=i.value;if(["updateElement","updateElementContent"].includes(e.name)&&aT(e)){const t=NL(e.path),i=r[t];if(i){gx.log("[LIBRARY] Identified collapsible action (updateElement). Combining with (createElement)"),i.data=Object.assign(Object.assign({},i.data),e.data);continue}const o=n[t];if(o){o.data=Object.assign(Object.assign({},o.data),e.data);continue}}"createElement"===e.name&&oT(e)&&(r[e.data.id]=e),"updateElementContent"===e.name&&aT(e)&&(n[NL(e.path)]=e),t.push(e)}}catch(e){o.e(e)}finally{o.f()}return t}_rebaseActions(){let e=ZL(this._baseData);this._actions=this._actions.map((t=>{const r=OT(e,t);return e=r.reduce(((t,r)=>this._reducer(e,r)),e),r})).flat(),this._pendingActions=this._pendingActions.map((t=>{const r=OT(e,t);return e=r.reduce(((t,r)=>this._reducer(e,r)),e),r})).flat(),this._currentData=e}};Ie([xT],IT.prototype,"load",null),Ie([xT],IT.prototype,"loadElements",null),Ie([PS],IT.prototype,"id",null),Ie([PS],IT.prototype,"version",null),Ie([PS],IT.prototype,"publicLinkId",null),Ie([PS],IT.prototype,"bookmark",null),Ie([PS],IT.prototype,"previousPlaceHolderId",null),Ie([PS],IT.prototype,"locallyManaged",null),Ie([PS,CS],IT.prototype,"name",null),Ie([PS],IT.prototype,"getLocalizedName",null),Ie([PS],IT.prototype,"getLocalizedNames",null),Ie([CS],IT.prototype,"setLocalizedName",null),Ie([PS],IT.prototype,"created",null),Ie([PS],IT.prototype,"modified",null),Ie([PS],IT.prototype,"createdBy",null),Ie([PS],IT.prototype,"modifiedBy",null),Ie([PS,CS],IT.prototype,"toolkitId",null),Ie([PS,CS],IT.prototype,"roles",null),Ie([PS,CS],IT.prototype,"description",null),Ie([PS,CS],IT.prototype,"copyGuidelines",null),Ie([PS],IT.prototype,"documentId",null),Ie([PS],IT.prototype,"renditionGrid",null),Ie([PS],IT.prototype,"documentType",null),Ie([PS],IT.prototype,"collaboration",null),Ie([PS],IT.prototype,"appMetadata",null),Ie([PS],IT.prototype,"assetId",null),Ie([PS],IT.prototype,"isWritable",null),Ie([PS],IT.prototype,"isParentWritable",null),Ie([PS],IT.prototype,"removeType",null),Ie([PS],IT.prototype,"deletable",null),Ie([PS],IT.prototype,"owner",null),Ie([PS],IT.prototype,"ownerType",null),Ie([PS],IT.prototype,"parentDirectoryId",null),Ie([PS],IT.prototype,"team",null),Ie([PS],IT.prototype,"project",null),Ie([PS],IT.prototype,"isDeletedFromServer",null),Ie([PS],IT.prototype,"isDeletedLocally",null),Ie([PS],IT.prototype,"isQuotaExceeded",null),Ie([PS],IT.prototype,"storageUsed",null),Ie([PS("sync")],IT.prototype,"syncState",null),Ie([PS("sync")],IT.prototype,"syncProgress",null),Ie([PS("sync")],IT.prototype,"syncError",null),Ie([PS],IT.prototype,"isPushedToServer",null),Ie([PS],IT.prototype,"areElementsLoaded",null),Ie([PS],IT.prototype,"elements",null),Ie([PS],IT.prototype,"elementCount",null),Ie([PS],IT.prototype,"getFilteredElements",null),Ie([PS],IT.prototype,"documentationElements",null),Ie([PS],IT.prototype,"documentationElementCount",null),Ie([PS],IT.prototype,"removedElements",null),Ie([PS],IT.prototype,"removedElementCount",null),Ie([PS],IT.prototype,"publishedTo",null),Ie([PS],IT.prototype,"publishedFrom",null),Ie([PS],IT.prototype,"lastPublishedVersion",null),Ie([PS],IT.prototype,"extractedFrom",null),Ie([PS],IT.prototype,"getElementById",null),Ie([CS],IT.prototype,"createElement",null),Ie([CS],IT.prototype,"createDocumentationElement",null),Ie([CS],IT.prototype,"removeElement",null),Ie([CS],IT.prototype,"restoreElement",null),Ie([CS],IT.prototype,"moveElement",null),Ie([CS],IT.prototype,"stageRepresentationForCommit",null),Ie([PS],IT.prototype,"getGroups",null),Ie([PS],IT.prototype,"getGroupCount",null),Ie([PS],IT.prototype,"getFilteredGroups",null),Ie([PS],IT.prototype,"getGroupById",null),Ie([CS],IT.prototype,"createGroup",null),Ie([CS],IT.prototype,"removeGroup",null),Ie([CS],IT.prototype,"moveGroup",null),Ie([PS],IT.prototype,"hasUngroupedElements",null),Ie([PS],IT.prototype,"getAuthenticatedRenditionURL",null),Ie([PS],IT.prototype,"getRenditionPath",null),Ie([PS],IT.prototype,"getRenditionURL",null),Ie([CS],IT.prototype,"setRendition",null),Ie([CS],IT.prototype,"setRenditionFromPath",null),Ie([CS],IT.prototype,"removeRendition",null),Ie([PS],IT.prototype,"getValue",null),Ie([PS],IT.prototype,"getValues",null),Ie([CS],IT.prototype,"setValue",null),Ie([CS],IT.prototype,"removeValue",null),Ie([CS],IT.prototype,"linkToDocument",null),Ie([PS],IT.prototype,"getElementsAndDependencies",null),Ie([PS],IT.prototype,"getActions",null),Ie([kS],IT.prototype,"loadVersionHistory",null),Ie([PS,kS],IT.prototype,"versions",null),Ie([kS],IT.prototype,"loadCollaborators",null),Ie([PS],IT.prototype,"collaborators",null),Ie([PS],IT.prototype,"visibleCollaborators",null),IT=Ie([IS],IT);var AT=IT;class CT extends AS{get id(){return this._data.id}get name(){return this._data.name}get owner(){return this._data.owner}get ownerName(){return this._data.ownerName}get isReadOnly(){return this._data.isReadOnly}get isWritable(){return this._data.isWritable}_refreshGradient(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e._data.gradient){t.next=2;break}return t.abrupt("return",e._data.gradient);case 2:return t.next=4,e.apiRoot.driver.getProjectGradient(e);case 4:r=t.sent,e.update({gradient:r});case 6:case"end":return t.stop()}}),t)})))()}get gradientData(){return this._refreshGradient(),this._data.gradient}}Ie([PS],CT.prototype,"gradientData",null);const kT=[e=>{e.createObjectStore("libraries",{keyPath:"id"})}];function DT(e){return function(t,r,n){const i=n.value;n.value=me(he().mark((function t(...n){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.connect();case 2:if(this.supported){t.next=5;break}return gx.info(`IndexedDB not supported. Cannot complete ${r} request`),t.abrupt("return",e);case 5:return t.abrupt("return",i.apply(this,n));case 6:case"end":return t.stop()}}),t,this)})))}}class NT{constructor(e){this._databaseName=e}get supported(){if(void 0!==this._supported)return this._supported;"undefined"!=typeof window&&window.indexedDB||(this._supported=!1);try{const e=window.indexedDB.open("cclibs_indexeddb_test",1);e.onsuccess=()=>e.result.close(),this._supported=!0}catch(e){this._supported=!1}return this._supported||gx.info("IndexedDB not supported."),this._supported}connect(){return this.supported?(this._connectPromise=this._connectPromise||new Promise(((e,t)=>{const r=window.indexedDB.open(this._databaseName,kT.length);r.onerror=()=>{t(new px("CONNECTION_FAILED","Unable to connect to IndexedDB database"))},r.onupgradeneeded=e=>{this._database=r.result,this._createSchema(e.oldVersion)},r.onsuccess=()=>{this._database=r.result,e(this)}})),this._connectPromise):Promise.resolve(this)}get(e){return this.transaction("readonly",(t=>new Promise((r=>{const n=t.get(e);n.onsuccess=()=>{r(n.result)}}))))}getAll(){return this.transaction("readonly",(e=>new Promise((t=>{const r=e.getAll();r.onsuccess=()=>t(r.result)}))))}set(...e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.transaction("readwrite",(t=>{e.forEach((e=>t.put(e)))}));case 2:case"end":return r.stop()}}),r)})))()}delete(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.transaction("readwrite",(t=>{t.delete(e)}));case 2:case"end":return r.stop()}}),r)})))()}deleteAll(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.transaction("readwrite",(e=>{e.clear()}));case 2:case"end":return t.stop()}}),t)})))()}_createSchema(e){kT.slice(e).forEach((e=>e(this._database)))}transaction(e,t){return new Promise(((r,n)=>{var i;const o=null===(i=this._database)||void 0===i?void 0:i.transaction("libraries",e),a=o.objectStore("libraries"),s=t(a);o.onerror=()=>{n(o.error)},o.oncomplete=()=>{r(s||void 0)}}))}}Ie([DT()],NT.prototype,"get",null),Ie([DT([])],NT.prototype,"getAll",null),Ie([DT()],NT.prototype,"set",null),Ie([DT()],NT.prototype,"delete",null),Ie([DT()],NT.prototype,"deleteAll",null);class RT{constructor(e,t,r){this._fs=e,this._path=t,this._getData=r}get supported(){return!0}connect(){return Promise.resolve(this)}get(e){return Promise.reject("not implemented")}getAll(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e._fs.readFile(e._path,{encoding:"utf8"});case 3:if("string"==typeof(r=t.sent)){t.next=6;break}throw new Error("expected a string, got something else: "+typeof r);case 6:return t.abrupt("return",JSON.parse(r));case 9:return t.prev=9,t.t0=t.catch(0),gx.warn(`Unable to read cache file: ${t.t0}`),t.abrupt("return",[]);case 13:case"end":return t.stop()}}),t,null,[[0,9]])})))()}set(...e){return this._debouncedWriteFile()}delete(e){return this._debouncedWriteFile()}deleteAll(){return this._debouncedWriteFile()}_debouncedWriteFile(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._writeFile());case 1:case"end":return t.stop()}}),t)})))()}_writeFile(){var e=this;return me(he().mark((function t(){var r;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r=JSON.stringify(e._getData()),t.next=4,e._fs.writeFile(e._path,r,{encoding:"utf8"});case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),gx.warn(`Unable to write cache file: ${t.t0}`);case 9:case"end":return t.stop()}}),t,null,[[0,6]])})))()}}Ie([Ex(1e3)],RT.prototype,"_debouncedWriteFile",null);class MT extends ZS{constructor(e,t){var r;super(e,(r=t,class extends r{update(e,t=!0){var r;const n=super.update(e,t);return null===(r=this._modelCache)||void 0===r||r.persistUpdate(n),n}})),this.waitForHydrate()}init(e,t=!0,r){var n=this;return me(he().mark((function i(){return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!n.db){i.next=2;break}return i.abrupt("return");case 2:if(n.db=new NT(e),n.db.supported||!r){i.next=6;break}return i.next=6,n._createFileSystemCache(e,r);case 6:t&&n.hydrate();case 7:case"end":return i.stop()}}),i)})))()}_createFileSystemCache(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=t.fs,o=t.dir,a=!1,n.prev=2,n.next=5,i.lstat(o);case 5:n.sent&&(a=!0),n.next=11;break;case 9:n.prev=9,n.t0=n.catch(2);case 11:if(a){n.next=21;break}return n.prev=12,n.next=15,i.mkdir(o,{recursive:!0});case 15:a=!0,n.next=21;break;case 18:n.prev=18,n.t1=n.catch(12),gx.warn(`Unable to create cache directory: ${n.t1}`);case 21:if(a){n.next=23;break}return n.abrupt("return");case 23:s=o+e,r.db=new RT(i,s,(()=>r.all().map((e=>e.data))));case 25:case"end":return n.stop()}}),n,null,[[2,9],[12,18]])})))()}hydrate(){var e=()=>super._replace,t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!t.db){r.next=8;break}if(!t.db.supported){r.next=6;break}return r.next=4,t.db.getAll();case 4:(i=r.sent).length&&!t.length&&(gx.info(`Loaded ${i.length} libraries from local cache.`),t._bookmarkMigration(i),e().call(t,i));case 6:null===(n=t._resolveWaitForCacheRestore)||void 0===n||n.call(t),t.emit("hydrate");case 8:case"end":return r.stop()}}),r)})))()}waitForHydrate(){return this._cacheRestorePromise||(this._cacheRestorePromise=new Promise((e=>{this._resolveWaitForCacheRestore=e}))),this._cacheRestorePromise}persistUpdate(e){var t;(null===(t=this.db)||void 0===t?void 0:t.supported)&&(gx.info(`Library ${e.id} updated. Updating database entry`),this.driver.addWatchedLibrary(e),this.db.set(e))}_add(e,t=!1){var r;const n=super._add(e,t);return(null===(r=this.db)||void 0===r?void 0:r.supported)&&!Xw(n.id)&&(gx.info(`New library ${e.id} found. Adding database entry`),this.driver.addWatchedLibrary(n.data),this.db.set(e)),n}_remove(e){var t;const r="string"==typeof e?this.get(e):e;if(super._remove(e),null===(t=this.db)||void 0===t?void 0:t.supported){const t="string"==typeof e?e:e.id;r&&this.driver.removeWatchedLibrary(r.data),gx.info(`Library ${t} deleted. Deleting database entry`),this.db.delete(t)}}_replace(e,t=!0){var r;super._replace(e,t),(null===(r=this.db)||void 0===r?void 0:r.supported)&&(gx.info(`Replacing Stored Libraries with new ${e.length} libraries`),this.db.deleteAll(),this.db.set(...this.all().map((e=>e.data))))}_bookmarkMigration(e){e.map((e=>{(function(e){return e.ownership&&e.details})(e)&&"public"===e.ownership&&e.bookmark&&e.bookmark.id!==e.id&&(e.id=e.bookmark.id)}))}}class jT extends hx{constructor(e,t){super(),this._driver=e,this._orchestrator=t,this._state="ok",this._syncErrors=new Map,this._progress=100,this._transientProgress=[],this._externalLinkDownloadProgress={},this._handleLocalUpdate=this._handleUpdate.bind(this,"local"),this._handleRemoteUpdate=this._handleUpdate.bind(this,"remote")}init(){this._driver.setSyncStateListener(this._handleRemoteUpdate),this._orchestrator.on("syncChange",this._handleLocalUpdate),this._orchestrator.on("change",this._handleLocalUpdate)}halt(){this._driver.removeSyncStateListener(),this._orchestrator.off("syncChange",this._handleLocalUpdate),this._orchestrator.off("change",this._handleLocalUpdate)}get status(){return this._state}get primaryError(){return this._primaryError}get transientProgress(){var e;return null!==(e=this._transientProgress)&&void 0!==e?e:[]}get progress(){return this._progress}get errors(){return[...this._syncErrors.values()].map((e=>e.error))}get errorMap(){return this._syncErrors}get commitError(){return this._commitError}get externalLinkDownloadProgress(){return this._externalLinkDownloadProgress}getExternalLinkDownloadProgressByKey(e){return this._externalLinkDownloadProgress[e]}sync(){this._orchestrator.doOperations()}changeDriver(e){this._driver.removeSyncStateListener(),this._driver=e,this._driver.setSyncStateListener(this._handleRemoteUpdate)}_update(){const e=this._serialize();this._lastUpdate!==e&&(this._lastUpdate=e,gx.info(`SYNC STATUS UPDATE: ${this._lastUpdate}`),this.emit("change"))}_handleUpdate(e,t={}){var r,n,i,o,a,s,c;"local"===e?this._resolveLocalErrors(null===(r=t.details)||void 0===r?void 0:r.resolvedErrors):this._resolveRemoteErrors(null===(n=t.details)||void 0===n?void 0:n.errors),this._setErrors(null===(i=t.details)||void 0===i?void 0:i.errors,e),this._setPrimaryError(),this._setCommitError(t.commitError,e),this._setProgress(null===(o=t.details)||void 0===o?void 0:o.progress,null===(a=t.details)||void 0===a?void 0:a.operations,e),this._setState(t.state,e),this._setTransientProgress(null===(s=t.details)||void 0===s?void 0:s.newLibraryProgress,e),this._setExternalLinkDownloadProgress(null===(c=t.details)||void 0===c?void 0:c.externalLinkProgress,e),this._update()}_setState(e,t="local"){if(e&&"remote"===t)return void(this._state=e);if(this._driver.ignoreLocalSyncEvents())return;const r="object"==typeof window&&!window.navigator.onLine;this.errors.length||this.commitError||r?this._state="error":this._orchestrator.all().some((e=>!e.isDeletedLocally&&e.syncState))?this._state="syncing":this._state=null!=e?e:"ok"}_setPrimaryError(){this._primaryError=this.errors.reduce(((e,t)=>!e||dx.indexOf(t.code)>dx.indexOf(e.code)?t:e),void 0)}_setCommitError(e,t="local"){"remote"===t&&(this._commitError=e?new px(e):void 0)}_resolveLocalErrors(e={}){Object.keys(e).forEach((e=>{const t=this._syncErrors.get(e);t&&"local"===t.source&&this._syncErrors.delete(e)}))}_resolveRemoteErrors(e={}){this._syncErrors.forEach((({source:t},r)=>{"remote"!==t||e[r]||this._syncErrors.delete(r)}))}_setErrors(e,t="local"){e&&Object.entries(e).forEach((([e,r])=>{const n=this._syncErrors.get(e);if("local"===(null==n?void 0:n.source)&&"remote"===t)return;const i=this._orchestrator.get(e);i&&(i.syncStatus={syncState:void 0}),this._syncErrors.set(e,{error:new px(r),source:t})}))}_setProgress(e=100,t,r="local"){this._orchestrator.all().filter((e=>!e.isDeletedLocally)).map((e=>("remote"===r&&e.syncProgress&&(e.syncStatus={syncState:void 0}),e))).map((e=>{const r=null==t?void 0:t[e.id];r&&(r.type="unknown"===r.type?void 0:r.type,e.syncStatus={syncState:r.type,syncProgress:r.progress})})),"remote"===r&&(this._progress=e)}_setTransientProgress(e,t="local"){"remote"===t&&(this._transientProgress=e)}_setExternalLinkDownloadProgress(e,t="local"){"remote"===t&&(this._externalLinkDownloadProgress=null!=e?e:{})}_serialize(){const e=this.status,t=this.progress,r=this.commitError,n=this.primaryError,i=this.errors,o=this.transientProgress,a=this.externalLinkDownloadProgress;return JSON.stringify({status:e,progress:t,commitError:r,primaryError:n,errors:i,transientProgress:o,externalLinkDownloadProgress:a})}}class FT extends MT{constructor(e,t,r={}){var n;super(e,AT),n=this,this._driver=t,this._options=r,this._isPaused=!1,this._initialLibrariesLoaded=!1,this._isLoaded=!1,this._isLoading=!0,this._quietPeriodDuration=0,this._libraryPullLockCount=0,this._libraryRequestRetryMap=new Map,this._lockedLibraryPullCallbacks=[],this._isSyncGroupChangeInProgress=!1,this._hasUnhandledSyncGroupNotification=!1,this._loadedLibraryLists=new Map,this._inFlightOperations={},this._halt=()=>{this._isLoaded=!1,this._isLoading=!0,this._initialLibrariesLoaded=!1,this._driver.removeLibraryChangeListener(),this._driver.removeFontDataChangeListeners(),this.syncStatus.halt(),this.syncStatus.DANGEROUS.removeAllListeners(),this._driver.removeLibrariesSyncGroupListener(),this.isPaused&&this._setDriverConnectionListeners("off")},this._handleLibraryChange=(e,t)=>{this.emit("syncChange",{state:"syncing"}),0===e.length&&this._options.enableBrandLifecycleManagement&&this._handleRefreshGrid(),e.forEach((e=>{var r;const n=this.getByIndex(t||"id",e),i=t=>{t.then((()=>this.emit("syncChange",{details:{resolvedErrors:{[e]:{code:"REQUEST_FAILED"}}}}))).catch((t=>this.emit("syncChange",{state:"error",details:{errors:{[e]:{code:"REQUEST_FAILED",message:"Failed to fetch library",libraryId:e,underlyingError:t}}}})))},o=null!==(r=null==n?void 0:n.load(void 0,"notification"))&&void 0!==r?r:(()=>{if(!(this._libraryPullLockCount>0))return this._driver.getLibraryById(e,{optimisticFetch:!1}).then((e=>this.upsert(e)));this._lockedLibraryPullCallbacks.push((()=>i(this.lockedNewLibraryUpdate(e))))})();o&&i(o)}))},this._handleRenditionChange=function(){var e=me(he().mark((function e(t){var r,i,o,a,s,c,l;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.elementRef){e.next=2;break}return e.abrupt("return");case 2:if(i=nx(t.elementRef)||{},o=i.libraryId,a=i.elementId,o&&a){e.next=5;break}return e.abrupt("return");case 5:if(null==(s=n.get(o))?void 0:s.locallyManaged){e.next=8;break}return e.abrupt("return");case 8:c=[...null!==(r=s.data.elements)&&void 0!==r?r:[]],(l=null==c?void 0:c.findIndex((e=>e.id===a)))>-1?c[l]=t:c.push(t),s.update({elements:c}),s.update({renditionGrid:eL(s)});case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this._setRenditionCacheChangeListener=()=>{this._driver.setRenditionCacheChangeListener(this._handleRenditionChange)},this._setLibraryChangeListener=()=>{this._driver.setLibraryChangeListener([],this._handleLibraryChange)},this.handleSyncGroupChange=me(he().mark((function e(){var t,r,i,o,a,s;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n._isSyncGroupChangeInProgress){e.next=3;break}return n._hasUnhandledSyncGroupNotification=!0,e.abrupt("return");case 3:return n._isSyncGroupChangeInProgress=!0,n.emit("syncChange",{state:"syncing"}),e.prev=5,(t=n.all().map((e=>e.obtainLock()))).push(new Promise((e=>setTimeout(e,3e3)))),e.next=10,Promise.all(t);case 10:return e.next=12,n._driver.getAllLibraries();case 12:r=e.sent,i=n._diffLibraries(r),o=i.add,a=i.remove,s=i.promote,o.length&&n._cleanupRenditionElements(o).forEach((e=>n.add(e))),a.length&&a.forEach((e=>n.remove(e))),s.length&&s.forEach((e=>{const t=n.get(e.id);null==t||t.update(e)})),n.all().forEach((e=>{e.releaseLock()})),n._isSyncGroupChangeInProgress=!1,n.emit("syncChange",{state:"ok"}),n._hasUnhandledSyncGroupNotification&&(n._hasUnhandledSyncGroupNotification=!1,n.handleSyncGroupChange()),e.next=29;break;case 24:throw e.prev=24,e.t0=e.catch(5),n._isSyncGroupChangeInProgress=!1,n.emit("syncChange",{state:"error"}),e.t0;case 29:case"end":return e.stop()}}),e,null,[[5,24]])}))),this._diffLibraries=e=>{const t={add:[],promote:[],remove:[]},r={};return e.forEach((e=>{const n=this.get(e.id);n?e.assetId!==n.assetId&&t.promote.push(e):t.add.push(e),r[e.id]=e})),this.all().forEach((e=>{r[e.id]||Xw(e.id)||!PT(e.data,this._options.enableBrandLifecycleManagement)||t.remove.push(e)})),t},this._handleConnect=me(he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.isPaused){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,n.init(wx(n._driver.config.user,n._driver instanceof jO?"cloud":"local"),!0,n._options.fileSystemCache);case 4:n.syncStatus.on("change",(()=>n.emit("sync"))),n.syncStatus.init(),n._setLibraryChangeListener(),n._driver.setFontDataChangeListener((()=>{n.emit("fontDataChange")})),n._setRenditionCacheChangeListener(),n._apiRoot.options.disablePreemptiveLibraryLoad||n.initialLibrariesLoad(),n.emit("connect");case 11:case"end":return e.stop()}}),e)}))),this._onSync=()=>this.emit("syncChange"),this._onAction=(...e)=>{this.emit("report",...e),this._doOperations()},this._apiRoot=e,this.syncStatus=new jT(this._driver,this),this.registerIndex("assetId"),this._initializeDriver()}changeDriver(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.pause(!0,!0);case 2:t._driver=e,t.syncStatus.changeDriver(e),t._isPaused=!1,t._initialLibrariesLoaded=!1,t._initializeDriver();case 7:case"end":return r.stop()}}),r)})))()}_initializeDriver(){var e,t;this._loadedLibraryLists.clear(),this._driver.isConnected?(this._setDriverConnectionListeners("on"),this._handleConnect(),this._apiRoot.updateOptions(this._options)):this._driver.init(Object.assign({includeApprovedBrandsInLibraries:!!(null===(e=this._apiRoot.options)||void 0===e?void 0:e.includeApprovedBrandsInLibraries),enableBrandLifecycleManagement:!!(null===(t=this._apiRoot.options)||void 0===t?void 0:t.enableBrandLifecycleManagement)},this._options),this._handleConnect,this._halt)}_setDriverConnectionListeners(e="on"){"on"===e&&this._driver.listeners("connect").includes(this._handleConnect)||(this._driver[e]("connect",this._handleConnect),this._driver[e]("disconnect",this._halt))}lockedNewLibraryUpdate(e){const t=this.get(e);return t?t.load(void 0,"notification"):this._driver.getLibraryById(e,{optimisticFetch:!1}).then((e=>this.add(e)))}_handleRefreshGrid(){this._loadLibraryList("default",(()=>this._driver.getLibraries()))}_cleanupRenditionElements(e){var t,r=ue(e);try{for(r.s();!(t=r.n()).done;){const e=t.value,r=this.get(e.id);(null==r?void 0:r.areElementsLoaded)&&delete e.elements}}catch(e){r.e(e)}finally{r.f()}return e}initialLibrariesLoad(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e._initialLibrariesLoaded){t.next=2;break}return t.abrupt("return");case 2:return e._initialLibrariesLoaded=!0,t.next=5,e._loadLibraryList("default",(()=>e._driver.getLibraries()));case 5:e.driver.addLibrariesSyncGroupListener(e.handleSyncGroupChange),e._isLoaded=!0,e.emit("loaded");case 8:case"end":return t.stop()}}),t)})))()}_loadLibraryList(e,t){var r=this;return me(he().mark((function n(){var i,o,a,s,c,l,u,d,p,h,f,m,g,v,y,b;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r._isLoading=!0,c=[],r.emit("syncChange",{state:"syncing"}),n.next=5,r._driver.connect();case 5:r._apiRoot.refreshProjects(),n.prev=6,n.prev=7,l=!0,u=je(t());case 9:return n.next=11,u.next();case 11:if(d=n.sent,i=d.done){n.next=19;break}s=d.value,l=!1;try{p=s,r._cleanupRenditionElements(p),c.push(...p),r.upsert(...p)}finally{l=!0}case 17:n.next=9;break;case 19:n.next=24;break;case 21:n.prev=21,n.t0=n.catch(7),o={error:n.t0};case 24:if(n.prev=24,n.prev=25,l||i||!(a=u.return)){n.next=29;break}return n.next=29,a.call(u);case 29:if(n.prev=29,!o){n.next=32;break}throw o.error;case 32:return n.finish(29);case 33:return n.finish(24);case 34:h=[],f=r._loadedLibraryLists.size?r._loadedLibraryLists.get(e)||[]:r.all().map((e=>e.id)),m=ue(f);try{for(m.s();!(g=m.n()).done;)!(v=g.value)||Xw(v)||c.find((e=>e.id===v))||h.push(v)}catch(e){m.e(e)}finally{m.f()}for(y=0,b=h;y<b.length;y++)v=b[y],r.remove(v);r._isLoading=!1,r.emit("syncChange",{state:"ok"}),n.next=50;break;case 43:if(n.prev=43,n.t1=n.catch(6),r._isLoading=!1,r.emit("syncChange",{state:"error"}),n.t1.name===Yw){n.next=49;break}throw n.t1;case 49:return n.abrupt("return",[]);case 50:return r._loadedLibraryLists.set(e,c.map((e=>e.id))),n.abrupt("return",c);case 52:case"end":return n.stop()}}),n,null,[[6,43],[7,21,24,34],[25,,29,33]])})))()}loadList(e={}){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e=Object.fromEntries(Object.entries(e).map((([e,t])=>Array.isArray(t)?[e,t.sort()]:[e,t])).sort()),n=JSON.stringify(e),r.next=4,t._loadLibraryList(n,(()=>t._driver.getLibrariesList(void 0,e)));case 4:if(i=r.sent){r.next=7;break}return r.abrupt("return",[]);case 7:return r.abrupt("return",i.map((e=>t.get(e.id))));case 8:case"end":return r.stop()}}),r)})))()}loadPage(e={},t){var r=this;return me(he().mark((function n(){var i,o;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=Object.fromEntries(Object.entries(e).map((([e,t])=>Array.isArray(t)?[e,t.sort()]:[e,t])).sort()),i=JSON.stringify(e),n.next=4,r._loadLibraryList(i,(()=>r._driver.getLibrariesPage(t,e)));case 4:if(o=n.sent){n.next=7;break}return n.abrupt("return",[]);case 7:return n.abrupt("return",o.map((e=>r.get(e.id))));case 8:case"end":return n.stop()}}),n)})))()}get isLoading(){return this._isLoading}get isLoaded(){return this._isLoaded}get isPaused(){return this._isPaused}pause(e=!1,t=!1){var r=this;return me(he().mark((function n(){var i,o;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r._isPaused=!0,r._quietPeriodTimeoutId&&(clearTimeout(r._quietPeriodTimeoutId),delete r._quietPeriodTimeoutId),i=Object.values(r._inFlightOperations).map((e=>e.deref())).filter((e=>!!e)),o=Promise.all(i).then((()=>{})),!e){n.next=9;break}if(!t){n.next=8;break}return n.next=8,o;case 8:r._driver.disconnect();case 9:return r.emit("syncChange"),n.abrupt("return",o);case 11:case"end":return n.stop()}}),n)})))()}resume(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._isPaused){t.next=2;break}return t.abrupt("return");case 2:return e._isPaused=!1,e._setDriverConnectionListeners("on"),t.next=6,e._driver.reconnect();case 6:e.emit("syncChange"),e._doOperations();case 8:case"end":return t.stop()}}),t)})))()}doOperations(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e._isPaused){t.next=2;break}return t.abrupt("return");case 2:e.emit("syncChange"),e._doOperations();case 4:case"end":return t.stop()}}),t)})))()}get syncState(){return this.syncStatus.status}_doOperations(){this._quietPeriodTimeoutId?gx.log("[ORCHESTRATOR] Operation requested in quiet period..."):this._quietPeriodTimeoutId=setTimeout((()=>{gx.log("[ORCHESTRATOR] Performing operations..."),delete this._quietPeriodTimeoutId;var e,t=ue(this.all());try{for(t.s();!(e=t.n()).done;){const t=e.value;if(!this._canDoOperation(t))continue;const r=t.obtainLock().then((()=>this._doOperation(t))).finally((()=>{t.releaseLock(),delete this._inFlightOperations[t.id]}));this._inFlightOperations[t.id]=new WeakRef(r)}}catch(e){t.e(e)}finally{t.f()}}),this._quietPeriodDuration)}_canDoOperation(e){return!e.operation&&0!==e.actions.length&&!this._isPaused}_doOperation(e){if(this._canDoOperation(e))return gx.log(`[ORCHESTRATOR] Found pending actions for library: ${e.id}`),e.actions[0].link?this._doLinkedAction(e):this._doIsolatedAction(e)}_handleActionError(e,t,r=t){var n=this;return me(he().mark((function i(){var o,a,s,c,l;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if((s=t===r)||(null===(o=n._libraryRequestRetryMap.get(r))||void 0===o?void 0:o.inProgress)||r.releaseLock(),"AbortError"!==e.name){i.next=6;break}return t.operation=void 0,r.operation=void 0,i.abrupt("return");case 6:if(!(e instanceof Cx&&"PRECONDITION_FAILED"===e.code)){i.next=15;break}if(gx.log(`[ORCHESTRATOR] Server conflict. Pulling library: ${r.id}`),t.operation=void 0,r.operation=void 0,!n._isPaused){i.next=12;break}return i.abrupt("return");case 12:return i.next=14,Promise.all([t._load(void 0,void 0,"action"),!s&&r._load(void 0,void 0,"action")]);case 14:return i.abrupt("return",n._doOperation(t));case 15:if(!(e instanceof Cx)){i.next=44;break}if(t.operation=void 0,r.operation=void 0,!n._isPaused){i.next=20;break}return i.abrupt("return");case 20:if(c=n._libraryRequestRetryMap.get(t)||{retryCount:0},l=Dw[c.retryCount],c.retryCount++,n._libraryRequestRetryMap.set(t,c),!(c.retryCount<=Nw)){i.next=40;break}return n._libraryRequestRetryMap.set(t,Object.assign(Object.assign({},c),{inProgress:!0})),i.prev=26,i.next=29,n._driver.sleep(l);case 29:i.next=35;break;case 31:return i.prev=31,i.t0=i.catch(26),n._libraryRequestRetryMap.set(t,Object.assign(Object.assign({},c),{inProgress:!1})),i.abrupt("return");case 35:return n._libraryRequestRetryMap.set(t,Object.assign(Object.assign({},c),{inProgress:!1})),i.next=38,n._doOperation(t);case 38:i.next=43;break;case 40:t.revert(),s||r.revert(),n.emit("syncChange",{state:"error",details:{resolvedErrors:{[t.id]:{code:"REQUEST_FAILED"}},errors:{[t.id]:{code:"REQUEST_FAILED",message:"Action failed",libraryId:t.id,underlyingError:e}}}});case 43:return i.abrupt("return");case 44:if(!(e instanceof px)){i.next=53;break}if(t.operation=void 0,r.operation=void 0,!n._isPaused){i.next=49;break}return i.abrupt("return");case 49:return t.revert(),s||r.revert(),n.emit("syncChange",{state:"error",details:{errors:{[t.id]:{code:e.code,message:e.message,libraryId:null!==(a=e.libraryId)&&void 0!==a?a:t.id,underlyingError:e.underlyingError}}}}),i.abrupt("return");case 53:throw e;case 54:case"end":return i.stop()}}),i,null,[[26,31]])})))()}_doIsolatedAction(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s,c,l;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t._driver.constructOperation(e)){r.next=3;break}return r.abrupt("return");case 3:return e.operation=n,t.emit("report",...n.actions.map((e=>({type:"processing",action:e})))),i=n.actions.some((e=>{var t;return null===(t=e.flags)||void 0===t?void 0:t.lockNewLibraries})),i&&t._libraryPullLockCount++,r.prev=7,r.next=10,n.execute();case 10:return o=r.sent,a=o.actions,s=o.etag,r.next=15,e.commit(a,s);case 15:e.operation=void 0,gx.log(`[ORCHESTRATOR] Successfully completed ${a.length} actions for library: ${e.id}`),e.actions.length>0&&t._doOperations(),r.next=24;break;case 20:return r.prev=20,r.t0=r.catch(7),r.next=24,t._handleActionError(r.t0,e);case 24:if(r.prev=24,(c=t._libraryRequestRetryMap.get(e))&&!c.inProgress&&t._libraryRequestRetryMap.delete(e),i&&t._libraryPullLockCount--,0===t._libraryPullLockCount)for(;t._lockedLibraryPullCallbacks[0];)l=t._lockedLibraryPullCallbacks.shift(),setTimeout((()=>l&&l()));return r.finish(24);case 30:return r.abrupt("return");case 31:case"end":return r.stop()}}),r,null,[[7,20,24,30]])})))()}_doLinkedAction(e){var t,r=this;const n=e.actions[0];if("dependent"===n.name)return;const i=null===(t=n.link)||void 0===t?void 0:t.library;if(!i)return;const o=i.actions[0],a=e===i;if(a&&i.actions[1]!==n.link)throw new Error("CATASTROPHIC");if(a||!(null==i?void 0:i.operation)&&o===n.link)return e.operation=gT,i.operation=gT,Promise.resolve(!a&&i.obtainLock()).then((()=>{gx.log("[ORCHESTRATOR] Got lock on both libraries. Linked actions are ready to be executed.");const t=this._driver.constructOperation(e);if(t)return e.operation=t,i.operation=t,this.emit("report",...t.actions.map((e=>({type:"processing",action:e})))),t.execute().then((({actions:t,etag:r,linkedActions:n,linkedEtag:o})=>{e.operation=void 0,i.operation=void 0,e.commit(t,r),i.commit(n,o),a||i.releaseLock(),(e.actions.length>0||i.actions.length>0)&&this._doOperations()}),function(){var t=me(he().mark((function t(n){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r._handleActionError(n,e,i));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());i.releaseLock()}));gx.log("[ORCHESTRATOR] Action cannot be executed because linked action is not at head.")}_add(e,t=!1){const r=super._add(e,t);return r.on("action",this._onAction),r.on("sync",this._onSync),r}_remove(e){const t="string"==typeof e?this.get(e):e;t&&(t.off("action",this._onAction),t.off("sync",this._onSync)),super._remove(e)}}Ie([Ex(5e3)],FT.prototype,"_handleRefreshGrid",null);var ZT=function(e,t){return ZT=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},ZT(e,t)};function BT(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ZT(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var GT=function(){return GT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},GT.apply(this,arguments)};function UT(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var HT=function(e,t){return HT=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},HT(e,t)};function zT(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}HT(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var VT=function(){return VT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},VT.apply(this,arguments)};function YT(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function WT(e,t){var r=t&&t.cache?t.cache:nP,n=t&&t.serializer?t.serializer:JT;return(t&&t.strategy?t.strategy:XT)(e,{cache:r,serializer:n})}function KT(e,t,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),a=t.get(o);return void 0===a&&(a=e.call(this,n),t.set(o,a)),a}function $T(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function qT(e,t,r,n,i){return r.bind(t,e,n,i)}function XT(e,t){return qT(e,this,1===e.length?KT:$T,t.cache.create(),t.serializer)}"function"==typeof SuppressedError&&SuppressedError;var JT=function(){return JSON.stringify(arguments)};function QT(){this.cache=Object.create(null)}QT.prototype.get=function(e){return this.cache[e]},QT.prototype.set=function(e,t){this.cache[e]=t};var eP,tP,rP,nP={create:function(){return new QT}},iP={variadic:function(e,t){return qT(e,this,$T,t.cache.create(),t.serializer)},monadic:function(e,t){return qT(e,this,KT,t.cache.create(),t.serializer)}},oP=function(){return oP=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},oP.apply(this,arguments)};function aP(e){return e.type===tP.literal}function sP(e){return e.type===tP.argument}function cP(e){return e.type===tP.number}function lP(e){return e.type===tP.date}function uP(e){return e.type===tP.time}function dP(e){return e.type===tP.select}function pP(e){return e.type===tP.plural}function hP(e){return e.type===tP.pound}function fP(e){return e.type===tP.tag}function mP(e){return!(!e||"object"!=typeof e||e.type!==rP.number)}function gP(e){return!(!e||"object"!=typeof e||e.type!==rP.dateTime)}"function"==typeof SuppressedError&&SuppressedError,function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(eP||(eP={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(tP||(tP={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(rP||(rP={}));var vP=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,yP=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function bP(e){var t={};return e.replace(yP,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var _P=function(){return _P=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},_P.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var EP=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,wP=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,xP=/^(@+)?(\+|#+)?[rs]?$/g,LP=/(\*)(0+)|(#+)(0+)|(0+)/g,OP=/^(0+)$/;function SP(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(xP,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function TP(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function PP(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!OP.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function IP(e){return TP(e)||{}}function AP(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=_P(_P(_P({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return _P(_P({},e),IP(t))}),{}));continue;case"engineering":t=_P(_P(_P({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return _P(_P({},e),IP(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(LP,(function(e,r,n,i,o,a){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(OP.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(wP.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(wP,(function(e,r,n,i,o,a){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var o=i.options[0];"w"===o?t=_P(_P({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=_P(_P({},t),SP(o)))}else if(xP.test(i.stem))t=_P(_P({},t),SP(i.stem));else{var a=TP(i.stem);a&&(t=_P(_P({},t),a));var s=PP(i.stem);s&&(t=_P(_P({},t),s))}}return t}var CP,kP={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function DP(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(kP[r||""]||kP[n||""]||kP["".concat(n,"-001")]||kP["001"])[0]}var NP=new RegExp("^".concat(vP.source,"*")),RP=new RegExp("".concat(vP.source,"*$"));function MP(e,t){return{start:e,end:t}}var jP=!!String.prototype.startsWith&&"_a".startsWith("a",1),FP=!!String.fromCodePoint,ZP=!!Object.fromEntries,BP=!!String.prototype.codePointAt,GP=!!String.prototype.trimStart,UP=!!String.prototype.trimEnd,HP=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},zP=!0;try{zP="a"===(null===(CP=JP("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===CP?void 0:CP[0])}catch(e){zP=!1}var VP,YP=jP?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},WP=FP?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},KP=ZP?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],a=i[1];t[o]=a}return t},$P=BP?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},qP=GP?function(e){return e.trimStart()}:function(e){return e.replace(NP,"")},XP=UP?function(e){return e.trimEnd()}:function(e){return e.replace(RP,"")};function JP(e,t){return new RegExp(e,t)}if(zP){var QP=JP("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");VP=function(e,t){var r;return QP.lastIndex=t,null!==(r=QP.exec(e)[1])&&void 0!==r?r:""}}else VP=function(e,t){for(var r=[];;){var n=$P(e,t);if(void 0===n||nI(n)||iI(n))break;r.push(n),t+=n>=65536?2:1}return WP.apply(void 0,r)};var eI,tI=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(eP.UNMATCHED_CLOSING_TAG,MP(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&rI(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:tP.pound,location:MP(a,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:tP.literal,value:"<".concat(n,"/>"),location:MP(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!rI(this.char()))return this.error(eP.INVALID_TAG,MP(a,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error(eP.UNMATCHED_CLOSING_TAG,MP(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:tP.tag,value:n,children:o,location:MP(r,this.clonePosition())},err:null}:this.error(eP.INVALID_TAG,MP(a,this.clonePosition())))}return this.error(eP.UNCLOSED_TAG,MP(r,this.clonePosition()))}return this.error(eP.INVALID_TAG,MP(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var s=MP(r,this.clonePosition());return{val:{type:tP.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(rI(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return WP.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),WP(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(eP.EXPECT_ARGUMENT_CLOSING_BRACE,MP(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(eP.EMPTY_ARGUMENT,MP(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(eP.MALFORMED_ARGUMENT,MP(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(eP.EXPECT_ARGUMENT_CLOSING_BRACE,MP(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:tP.argument,value:n,location:MP(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(eP.EXPECT_ARGUMENT_CLOSING_BRACE,MP(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(eP.MALFORMED_ARGUMENT,MP(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=VP(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:MP(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(eP.EXPECT_ARGUMENT_TYPE,MP(o,s));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((v=this.parseSimpleArgStyleIfPossible()).err)return v;if(0===(h=XP(v.val)).length)return this.error(eP.EXPECT_ARGUMENT_STYLE,MP(this.clonePosition(),this.clonePosition()));c={style:h,styleLocation:MP(l,this.clonePosition())}}if((y=this.tryParseArgumentClose(n)).err)return y;var u=MP(n,this.clonePosition());if(c&&YP(null==c?void 0:c.style,"::",0)){var d=qP(c.style.slice(2));if("number"===a)return(v=this.parseNumberSkeletonFromString(d,c.styleLocation)).err?v:{val:{type:tP.number,value:r,location:u,style:v.val},err:null};if(0===d.length)return this.error(eP.EXPECT_DATE_TIME_SKELETON,u);var p=d;this.locale&&(p=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var a=1+(1&o),s=o<2?1:3+(o>>1),c=DP(t);for("H"!=c&&"k"!=c||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=c+r}else r+="J"===i?"H":i}return r}(d,this.locale));var h={type:rP.dateTime,pattern:p,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?bP(p):{}};return{val:{type:"date"===a?tP.date:tP.time,value:r,location:u,style:h},err:null}}return{val:{type:"number"===a?tP.number:"date"===a?tP.date:tP.time,value:r,location:u,style:null!==(i=null==c?void 0:c.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(eP.EXPECT_SELECT_ARGUMENT_OPTIONS,MP(f,oP({},f)));this.bumpSpace();var m=this.parseIdentifierIfPossible(),g=0;if("select"!==a&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(eP.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,MP(this.clonePosition(),this.clonePosition()));var v;if(this.bumpSpace(),(v=this.tryParseDecimalInteger(eP.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,eP.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return v;this.bumpSpace(),m=this.parseIdentifierIfPossible(),g=v.val}var y,b=this.tryParsePluralOrSelectOptions(e,a,t,m);if(b.err)return b;if((y=this.tryParseArgumentClose(n)).err)return y;var _=MP(n,this.clonePosition());return"select"===a?{val:{type:tP.select,value:r,options:KP(b.val),location:_},err:null}:{val:{type:tP.plural,value:r,options:KP(b.val),offset:g,pluralType:"plural"===a?"cardinal":"ordinal",location:_},err:null};default:return this.error(eP.INVALID_ARGUMENT_TYPE,MP(o,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(eP.EXPECT_ARGUMENT_CLOSING_BRACE,MP(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(eP.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,MP(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(EP).filter((function(e){return e.length>0}));r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],a=i.slice(1),s=0,c=a;s<c.length;s++)if(0===c[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:a})}return t}(e)}catch(e){return this.error(eP.INVALID_NUMBER_SKELETON,t)}return{val:{type:rP.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?AP(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i,o=!1,a=[],s=new Set,c=n.value,l=n.location;;){if(0===c.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(eP.EXPECT_PLURAL_ARGUMENT_SELECTOR,eP.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;l=MP(u,this.clonePosition()),c=this.message.slice(u.offset,this.offset())}if(s.has(c))return this.error("select"===t?eP.DUPLICATE_SELECT_ARGUMENT_SELECTOR:eP.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===c&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?eP.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:eP.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,MP(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(e+1,t,r);if(h.err)return h;var f=this.tryParseArgumentClose(p);if(f.err)return f;a.push([c,{value:h.val,location:MP(p,this.clonePosition())}]),s.add(c),this.bumpSpace(),c=(i=this.parseIdentifierIfPossible()).value,l=i.location}return 0===a.length?this.error("select"===t?eP.EXPECT_SELECT_ARGUMENT_SELECTOR:eP.EXPECT_PLURAL_ARGUMENT_SELECTOR,MP(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(eP.MISSING_OTHER_CLAUSE,MP(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=MP(n,this.clonePosition());return i?HP(o*=r)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=$P(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(YP(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&nI(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function rI(e){return e>=97&&e<=122||e>=65&&e<=90}function nI(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function iI(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function oI(e){e.forEach((function(e){if(delete e.location,dP(e)||pP(e))for(var t in e.options)delete e.options[t].location,oI(e.options[t].value);else cP(e)&&mP(e.style)||(lP(e)||uP(e))&&gP(e.style)?delete e.style.location:fP(e)&&oI(e.children)}))}function aI(e,t){void 0===t&&(t={}),t=oP({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new tI(e,t).parse();if(r.err){var n=SyntaxError(eP[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||oI(r.val),r.val}!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(eI||(eI={}));var sI,cI=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return zT(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),lI=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),eI.INVALID_VALUE,i)||this}return zT(t,e),t}(cI),uI=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),eI.INVALID_VALUE,n)||this}return zT(t,e),t}(cI),dI=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),eI.MISSING_VALUE,r)||this}return zT(t,e),t}(cI);function pI(e){return"function"==typeof e}function hI(e,t,r,n,i,o,a){if(1===e.length&&aP(e[0]))return[{type:sI.literal,value:e[0].value}];for(var s=[],c=0,l=e;c<l.length;c++){var u=l[c];if(aP(u))s.push({type:sI.literal,value:u.value});else if(hP(u))"number"==typeof o&&s.push({type:sI.literal,value:r.getNumberFormat(t).format(o)});else{var d=u.value;if(!i||!(d in i))throw new dI(d,a);var p=i[d];if(sP(u))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),s.push({type:"string"==typeof p?sI.literal:sI.object,value:p});else if(lP(u)){var h="string"==typeof u.style?n.date[u.style]:gP(u.style)?u.style.parsedOptions:void 0;s.push({type:sI.literal,value:r.getDateTimeFormat(t,h).format(p)})}else if(uP(u))h="string"==typeof u.style?n.time[u.style]:gP(u.style)?u.style.parsedOptions:n.time.medium,s.push({type:sI.literal,value:r.getDateTimeFormat(t,h).format(p)});else if(cP(u))(h="string"==typeof u.style?n.number[u.style]:mP(u.style)?u.style.parsedOptions:void 0)&&h.scale&&(p*=h.scale||1),s.push({type:sI.literal,value:r.getNumberFormat(t,h).format(p)});else{if(fP(u)){var f=u.children,m=u.value,g=i[m];if(!pI(g))throw new uI(m,"function",a);var v=g(hI(f,t,r,n,i,o).map((function(e){return e.value})));Array.isArray(v)||(v=[v]),s.push.apply(s,v.map((function(e){return{type:"string"==typeof e?sI.literal:sI.object,value:e}})))}if(dP(u)){if(!(y=u.options[p]||u.options.other))throw new lI(u.value,p,Object.keys(u.options),a);s.push.apply(s,hI(y.value,t,r,n,i))}else if(pP(u)){var y;if(!(y=u.options["=".concat(p)])){if(!Intl.PluralRules)throw new cI('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',eI.MISSING_INTL_API,a);var b=r.getPluralRules(t,{type:u.pluralType}).select(p-(u.offset||0));y=u.options[b]||u.options.other}if(!y)throw new lI(u.value,p,Object.keys(u.options),a);s.push.apply(s,hI(y.value,t,r,n,i,p-(u.offset||0)))}}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===sI.literal&&t.type===sI.literal?r.value+=t.value:e.push(t),e}),[])}(s)}function fI(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(sI||(sI={}));var mI,gI=function(){function e(t,r,n,i){void 0===r&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=o.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===sI.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return hI(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=o.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var s=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(a,["formatters"]);this.ast=e.__parse(t,VT(VT({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=function(e,t){return t?Object.keys(e).reduce((function(r,n){var i,o;return r[n]=(i=e[n],(o=t[n])?VT(VT(VT({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=VT(VT({},i[t]),o[t]||{}),e}),{})):i),r}),VT({},e)):e}(e.formats,n),this.formatters=i&&i.formatters||function(e){return void 0===e&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:WT((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,YT([void 0],t,!1)))}),{cache:fI(e.number),strategy:iP.variadic}),getDateTimeFormat:WT((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,YT([void 0],t,!1)))}),{cache:fI(e.dateTime),strategy:iP.variadic}),getPluralRules:WT((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,YT([void 0],t,!1)))}),{cache:fI(e.pluralRules),strategy:iP.variadic})}}(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=aI,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(mI||(mI={}));var vI=function(e){function t(r,n,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return(o=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return BT(t,e),t}(Error),yI=function(e){function t(t,r){return e.call(this,mI.UNSUPPORTED_FORMATTER,t,r)||this}return BT(t,e),t}(vI),bI=function(e){function t(t,r){return e.call(this,mI.INVALID_CONFIG,t,r)||this}return BT(t,e),t}(vI),_I=function(e){function t(t,r){return e.call(this,mI.MISSING_DATA,t,r)||this}return BT(t,e),t}(vI),EI=function(e){function t(t,r,n){var i=e.call(this,mI.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(r,"\n"),n)||this;return i.locale=r,i}return BT(t,e),t}(vI),wI=function(e){function t(t,r,n,i){var o=e.call(this,"".concat(t,"\nMessageID: ").concat(null==n?void 0:n.id,"\nDefault Message: ").concat(null==n?void 0:n.defaultMessage,"\nDescription: ").concat(null==n?void 0:n.description,"\n"),r,i)||this;return o.descriptor=n,o.locale=r,o}return BT(t,e),t}(EI),xI=function(e){function t(t,r){var n=e.call(this,mI.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(r,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map((function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)})).join(),")"):"id"," as fallback."))||this;return n.descriptor=t,n}return BT(t,e),t}(vI);function LI(e,t,r){return void 0===r&&(r={}),t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}var OI={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function SI(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function TI(e,t,r,n){var i,o=e&&e[t];if(o&&(i=o[r]),i)return i;n(new yI("No ".concat(t," format named: ").concat(r)))}function PI(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function II(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=GT({timeZone:t},e[n]),r}),{})}function AI(e,t){return Object.keys(GT(GT({},e),t)).reduce((function(r,n){return r[n]=GT(GT({},e[n]||{}),t[n]||{}),r}),{})}function CI(e,t){if(!t)return e;var r=gI.formats;return GT(GT(GT({},r),e),{date:AI(II(r.date,t),II(e.date||{},t)),time:AI(II(r.time,t),II(e.time||{},t))})}"function"==typeof SuppressedError&&SuppressedError,WT((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,PI([void 0],t,!1)))}),{strategy:iP.variadic}),WT((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,PI([void 0],t,!1)))}),{strategy:iP.variadic}),WT((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,PI([void 0],t,!1)))}),{strategy:iP.variadic}),WT((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.Locale).bind.apply(e,PI([void 0],t,!1)))}),{strategy:iP.variadic}),WT((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.ListFormat).bind.apply(e,PI([void 0],t,!1)))}),{strategy:iP.variadic});var kI=function(e,t,r,n,i){var o=e.locale,a=e.formats,s=e.messages,c=e.defaultLocale,l=e.defaultFormats,u=e.fallbackOnEmptyString,d=e.onError,p=e.timeZone,h=e.defaultRichTextElements;void 0===r&&(r={id:""});var f=r.id,m=r.defaultMessage;!function(e,t,r){if(void 0===r&&(r=Error),!e)throw new r("[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue")}(!!f);var g=String(f),v=s&&Object.prototype.hasOwnProperty.call(s,g)&&s[g];if(Array.isArray(v)&&1===v.length&&v[0].type===tP.literal)return v[0].value;if(!n&&v&&"string"==typeof v&&!h)return v.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=GT(GT({},h),n||{}),a=CI(a,p),l=CI(l,p),!v){if(!1===u&&""===v)return v;if((!m||o&&o.toLowerCase()!==c.toLowerCase())&&d(new xI(r,o)),m)try{return t.getMessageFormat(m,c,l,i).format(n)}catch(e){return d(new wI('Error formatting default message for: "'.concat(g,'", rendering default message verbatim'),o,r,e)),"string"==typeof m?m:g}return g}try{return t.getMessageFormat(v,o,a,GT({formatters:t},i||{})).format(n)}catch(e){d(new wI('Error formatting message: "'.concat(g,'", using ').concat(m?"default message":"id"," as fallback."),o,r,e))}if(m)try{return t.getMessageFormat(m,c,l,i).format(n)}catch(e){d(new wI('Error formatting the default message for: "'.concat(g,'", rendering message verbatim'),o,r,e))}return"string"==typeof v?v:"string"==typeof m?m:g},DI=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function NI(e,t,r,n){var i=e.locale,o=e.formats,a=e.onError,s=e.timeZone;void 0===n&&(n={});var c=n.format,l=GT(GT({},s&&{timeZone:s}),c&&TI(o,t,c,a)),u=LI(n,DI,l);return"time"!==t||u.hour||u.minute||u.second||u.timeStyle||u.dateStyle||(u=GT(GT({},u),{hour:"numeric",minute:"numeric"})),r(i,u)}function RI(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return NI(e,"date",t,a).format(s)}catch(t){e.onError(new EI("Error formatting date.",e.locale,t))}return String(s)}function MI(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return NI(e,"time",t,a).format(s)}catch(t){e.onError(new EI("Error formatting time.",e.locale,t))}return String(s)}function jI(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=r[2],s=void 0===a?{}:a,c=e.timeZone,l=e.locale,u=e.onError,d=LI(s,DI,c?{timeZone:c}:{});try{return t(l,d).formatRange(i,o)}catch(t){u(new EI("Error formatting date time range.",e.locale,t))}return String(i)}function FI(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return NI(e,"date",t,a).formatToParts(s)}catch(t){e.onError(new EI("Error formatting date.",e.locale,t))}return[]}function ZI(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return NI(e,"time",t,a).formatToParts(s)}catch(t){e.onError(new EI("Error formatting time.",e.locale,t))}return[]}var BI=["style","type","fallback","languageDisplay"];function GI(e,t,r,n){var i=e.locale,o=e.onError;Intl.DisplayNames||o(new cI('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',eI.MISSING_INTL_API));var a=LI(n,BI);try{return t(i,a).of(r)}catch(e){o(new EI("Error formatting display name.",i,e))}}var UI=["type","style"],HI=Date.now();function zI(e,t,r,n){void 0===n&&(n={});var i=VI(e,t,r,n).reduce((function(e,t){var r=t.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[]);return 1===i.length?i[0]:0===i.length?"":i}function VI(e,t,r,n){var i=e.locale,o=e.onError;void 0===n&&(n={}),Intl.ListFormat||o(new cI('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',eI.MISSING_INTL_API));var a=LI(n,UI);try{var s={},c=r.map((function(e,t){if("object"==typeof e){var r=function(e){return"".concat(HI,"_").concat(e,"_").concat(HI)}(t);return s[r]=e,r}return String(e)}));return t(i,a).formatToParts(c).map((function(e){return"literal"===e.type?e:GT(GT({},e),{value:s[e.value]||e.value})}))}catch(e){o(new EI("Error formatting list.",i,e))}return r}var YI=["type"];function WI(e,t,r,n){var i=e.locale,o=e.onError;void 0===n&&(n={}),Intl.PluralRules||o(new cI('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',eI.MISSING_INTL_API));var a=LI(n,YI);try{return t(i,a).select(r)}catch(e){o(new EI("Error formatting plural.",i,e))}return"other"}var KI=["numeric","style"];function $I(e,t,r,n,i){void 0===i&&(i={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new cI('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',eI.MISSING_INTL_API));try{return function(e,t,r){var n=e.locale,i=e.formats,o=e.onError;void 0===r&&(r={});var a=r.format,s=!!a&&TI(i,"relative",a,o)||{};return t(n,LI(r,KI,s))}(e,t,i).format(r,n)}catch(t){e.onError(new EI("Error formatting relative time.",e.locale,t))}return String(r)}var qI=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function XI(e,t,r){var n=e.locale,i=e.formats,o=e.onError;void 0===r&&(r={});var a=r.format,s=a&&TI(i,"number",a,o)||{};return t(n,LI(r,qI,s))}function JI(e,t,r,n){void 0===n&&(n={});try{return XI(e,t,n).format(r)}catch(t){e.onError(new EI("Error formatting number.",e.locale,t))}return String(r)}function QI(e,t,r,n){void 0===n&&(n={});try{return XI(e,t,n).formatToParts(r)}catch(t){e.onError(new EI("Error formatting number.",e.locale,t))}return[]}function eA(e,t){var r=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,i=WT((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,UT([void 0],t,!1)))}),{cache:SI(e.dateTime),strategy:iP.variadic}),o=WT((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,UT([void 0],t,!1)))}),{cache:SI(e.number),strategy:iP.variadic}),a=WT((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,UT([void 0],t,!1)))}),{cache:SI(e.pluralRules),strategy:iP.variadic});return{getDateTimeFormat:i,getNumberFormat:o,getMessageFormat:WT((function(e,t,r,n){return new gI(e,t,r,GT({formatters:{getNumberFormat:o,getDateTimeFormat:i,getPluralRules:a}},n||{}))}),{cache:SI(e.message),strategy:iP.variadic}),getRelativeTimeFormat:WT((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,UT([void 0],e,!1)))}),{cache:SI(e.relativeTime),strategy:iP.variadic}),getPluralRules:a,getListFormat:WT((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,UT([void 0],e,!1)))}),{cache:SI(e.list),strategy:iP.variadic}),getDisplayNames:WT((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,UT([void 0],e,!1)))}),{cache:SI(e.displayNames),strategy:iP.variadic})}}(t),n=GT(GT({},OI),e),i=n.locale,o=n.defaultLocale,a=n.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&a?a(new _I('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&a&&a(new _I('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new bI('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),function(e){var t;e.onWarn&&e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&e.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}(n),GT(GT({},n),{formatters:r,formatNumber:JI.bind(null,n,r.getNumberFormat),formatNumberToParts:QI.bind(null,n,r.getNumberFormat),formatRelativeTime:$I.bind(null,n,r.getRelativeTimeFormat),formatDate:RI.bind(null,n,r.getDateTimeFormat),formatDateToParts:FI.bind(null,n,r.getDateTimeFormat),formatTime:MI.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:jI.bind(null,n,r.getDateTimeFormat),formatTimeToParts:ZI.bind(null,n,r.getDateTimeFormat),formatPlural:WI.bind(null,n,r.getPluralRules),formatMessage:kI.bind(null,n,r),$t:kI.bind(null,n,r),formatList:zI.bind(null,n,r.getListFormat),formatListToParts:VI.bind(null,n,r.getListFormat),formatDisplayName:GI.bind(null,n,r.getDisplayNames)})}const tA="en-US",rA={"cs-CZ":()=>Promise.resolve().then((function(){return AA})),"da-DK":()=>Promise.resolve().then((function(){return YA})),"de-DE":()=>Promise.resolve().then((function(){return cC})),"en-US":()=>Promise.resolve().then((function(){return LC})),"es-ES":()=>Promise.resolve().then((function(){return BC})),"fi-FI":()=>Promise.resolve().then((function(){return rk})),"fr-CA":()=>Promise.resolve().then((function(){return yk})),"fr-FR":()=>Promise.resolve().then((function(){return Nk})),"fr-MA":()=>Promise.resolve().then((function(){return qk})),"hu-HU":()=>Promise.resolve().then((function(){return pD})),"it-IT":()=>Promise.resolve().then((function(){return PD})),"ja-JP":()=>Promise.resolve().then((function(){return zD})),"ko-KR":()=>Promise.resolve().then((function(){return oN})),"nb-NO":()=>Promise.resolve().then((function(){return EN})),"nl-NL":()=>Promise.resolve().then((function(){return jN})),"pl-PL":()=>Promise.resolve().then((function(){return QN})),"pt-BR":()=>Promise.resolve().then((function(){return mR})),"ru-RU":()=>Promise.resolve().then((function(){return CR})),"sv-SE":()=>Promise.resolve().then((function(){return WR})),"tr-TR":()=>Promise.resolve().then((function(){return lM})),"uk-UA":()=>Promise.resolve().then((function(){return OM})),"zh-CN":()=>Promise.resolve().then((function(){return GM})),"zh-TW":()=>Promise.resolve().then((function(){return nj})),"zu-ZU":()=>Promise.resolve().then((function(){return bj})),"zz-ZZ":()=>Promise.resolve().then((function(){return Rj}))};class nA{constructor(e="en-US"){this.setLocale(e)}get locale(){return this._locale}setLocale(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return rA[e]||(gx.log(`[INTL] ${e} is not a supported language. Falling back to en-US`),e=tA),r.next=3,t._loadLocaleData(e);case 3:return n=r.sent,i=n.messages,o=n.locale,t._intl=eA({locale:e,messages:i,defaultLocale:tA},{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}),t._locale=o,r.abrupt("return",e);case 9:case"end":return r.stop()}}),r)})))()}_loadLocaleData(e){return rA[e]().then((t=>({messages:t,locale:e}))).catch((e=>this._loadLocaleData(tA)))}formatMessage(e,t){if(this._intl)return this._intl.formatMessage({id:e},t);gx.log("[INTL] no localization data loaded")}}class iA extends hx{constructor(e){super(),this._driver=e,this._fontsCache={}}getFontData(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(n=t._fontsCache[e])){r.next=3;break}return r.abrupt("return",n);case 3:return r.next=5,t._driver.getFontData(e);case 5:return i=r.sent,t._updateFontData(e,i),r.abrupt("return",i);case 8:case"end":return r.stop()}}),r)})))()}_updateFontData(e,t){this._fontsCache[e]=t}isSystemFontAvailable(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r._driver.isSystemFontAvailable(e,t);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()}_clearCache(){this._fontsCache={},this.emit("change")}}Ie([PS],iA.prototype,"getFontData",null),Ie([PS],iA.prototype,"isSystemFontAvailable",null);class oA extends hx{constructor(){super(...arguments),this._map=new Map}set(e,t){this._map.set(e,t),this.emit("change")}delete(e){this._map.delete(e),this.emit("change")}clear(){this._map.clear(),this.emit("change")}entries(){return this._map.entries()}get(e){return this._map.get(e)}}function aA(e){let t="private";return e.isPublic?t="follow":e.collaboration&&(t="outgoing"===e.collaboration.state?"owner":e.isWritable?"edit":"view"),t=e.toolkitId?"presets":t,{content:{author:t},event:{context_guid:e.id},ccl:{library_storage_type:ST(e)?"business":"user"},"custom.library":{filter:TT(e)?"brands":"libraries"}}}function sA(e){var t;const r=aA(e.library),n=e.getPrimaryRepresentation(),i=n&&n.getValue("adobestock","trackingdata");r.ccl=r.ccl||{},i&&(r.ccl.tracking_data=JSON.stringify(i)),r.ccl.asset_linked_data=JSON.stringify({isLinked:!1}),r.content=r.content||{author:null},r.content.id=e.id;const o=e.getValue("capture","data");return r.content.action=o?null===(t=o.app)||void 0===t?void 0:t.split("-")[0]:e.createdContext&&e.createdContext.app,r.content.mimetype=e.type,r.content.type=cA(e),r.content.size=e.representations.reduce(((e,t)=>e+(t.contentLength||0)),0),r.content.extension=n?function(e){var t;return null===(t=Lw[e.toLowerCase()])||void 0===t?void 0:t.badge}(n.type):void 0,e.isStockAsset&&(r.content.status=e.isLicensed?"licensed":"unlicensed"),bx(r,function(e){const t=e.roles.find((e=>"brand"===e.type)),r={"custom.library":{asset_role:(null==t?void 0:t.usage)||"none",asset_priority:(null==t?void 0:t.priority)||"none"}};let n;switch(cA(e)){case"color":n=function(e){const t=e.getPrimaryRepresentation(),r=null==t?void 0:t.getValue("color","data");if((null==r?void 0:r.value)&&"RGB"===(null==r?void 0:r.mode)){const e=r.value,t=e.r,n=e.g,i=e.b;return{"custom.content":{name:JS(t,n,i)}}}return{}}(e);break;case"font":n=function(e){const t=e.getPrimaryRepresentation(),r=null==t?void 0:t.getValue("font","data");return r?{"custom.content":{name:r.postScriptName,status:r.isPremium?"premium":"free"}}:{}}(e);break;case"image":n=function(e){return{"custom.content":{name:e.name||""}}}(e);break;default:n={}}return Object.assign(Object.assign({},r),n)}(e))}function cA(e){const t=e.type.match(Fw);return t&&t.length>=2?t[1]:"unsupported"}Ie([PS("change")],oA.prototype,"entries",null),Ie([PS("change")],oA.prototype,"get",null);const lA={ALLOW_NO_TOKEN:!1,ANALYTICS_DEBOUNCE:15e3,ANALYTICS_MAX_QUEUED_EVENTS:50,ANALYTICS_PROJECT:"cclib-panel",ANALYTICS_USER_AGENT:"undefined"==typeof window?"cc-libraries-js/1.0":null===window||void 0===window?void 0:window.navigator.userAgent,ENVIRONMENT:"prod"};class uA{constructor(e){this.baseProperties={},this.apiRoot=e}get isInitialized(){return!!this.ingest}initialize(){var e=this;return me(he().mark((function t(){var r,n,i,o,a,s,c,l;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.apiKey&&e.product&&e.productLocation){t.next=2;break}throw new Error("apiKey, product, and productLocation must be set before using analytics");case 2:return r={getAccessToken:t=>t(void 0,e.apiRoot.driver.token)},t.next=5,Promise.resolve().then((function(){return Vj}));case 5:n=t.sent,i=n.default,o=e.product,(a=e.product.split("/")).length>=2&&(s=a[0],c=Zw[s]||s,l=a[1],o=`${c}/${l}`),e.ingest=new i(r,Object.assign({},lA,{ENVIRONMENT:"staging"===e.apiRoot.driver.environment?"stage":"prod",ANALYTICS_API_KEY:e.apiKey,ANALYTICS_X_PRODUCT:o,ANALYTICS_X_PRODUCT_LOCATIONS:e.productLocation})),e.setEnabled(e.apiRoot.getOption("ANALYTICS_ENABLED"));case 12:case"end":return t.stop()}}),t)})))()}setEnabled(e){var t;null===(t=this.ingest)||void 0===t||t.enable(e)}addBaseProperties(e){Object.assign(this.baseProperties,e)}setBaseProperties(e){this.baseProperties=e}reportUseElement(e,t){var r=this;return me(he().mark((function n(){var i,o,a;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=bx(r.basePayload(),{"event.workflow":"Library:Use Assets","event.subcategory":"Element","event.type":"click","event.subtype":"use"},sA(e),r.baseProperties,t||{}),a=_x(o),r.isInitialized){n.next=5;break}return n.next=5,r.initialize();case 5:null===(i=r.ingest)||void 0===i||i.postEvent(a);case 6:case"end":return n.stop()}}),n)})))()}reportCreateBrandFromDocument(e,t){var r=this;return me(he().mark((function n(){var i,o,a;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=bx(r.basePayload(),{"event.workflow":"Library:Create Library","event.subcategory":"New Library","event.type":"click","event.subtype":"create-from-document","event.pagename":"Root View"},aA(e),r.baseProperties,t||{}),a=_x(o),r.isInitialized){n.next=5;break}return n.next=5,r.initialize();case 5:null===(i=r.ingest)||void 0===i||i.postEvent(a);case 6:case"end":return n.stop()}}),n)})))()}reportPublishBrand(e,t){var r=this;return me(he().mark((function n(){var i,o,a;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=bx(r.basePayload(),{"event.workflow":"Library:Publish","event.subcategory":"Brand","event.type":"click","event.subtype":"publish"},aA(e),r.baseProperties,t||{}),a=_x(o),r.isInitialized){n.next=5;break}return n.next=5,r.initialize();case 5:null===(i=r.ingest)||void 0===i||i.postEvent(a);case 6:case"end":return n.stop()}}),n)})))()}reportUnpublishBrand(e,t){var r=this;return me(he().mark((function n(){var i,o,a;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=bx(r.basePayload(),{"event.workflow":"Library:Unpublish","event.subcategory":"Brand","event.type":"click","event.subtype":"unpublish"},aA(e),r.baseProperties,t||{}),a=_x(o),r.isInitialized){n.next=5;break}return n.next=5,r.initialize();case 5:null===(i=r.ingest)||void 0===i||i.postEvent(a);case 6:case"end":return n.stop()}}),n)})))()}reportEditElement(e,t){var r=this;return me(he().mark((function n(){var i,o,a;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=bx(r.basePayload(),{"event.workflow":"Library:Element Operations","event.subcategory":"Element","event.type":"click"},sA(e),r.baseProperties,t||{}),a=_x(o),r.isInitialized){n.next=5;break}return n.next=5,r.initialize();case 5:null===(i=r.ingest)||void 0===i||i.postEvent(a);case 6:case"end":return n.stop()}}),n)})))()}reportEditLibrary(e,t){var r=this;return me(he().mark((function n(){var i,o,a;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=bx(r.basePayload(),{"event.workflow":"Library:Library Operations","event.subcategory":"Metadata","event.type":"click"},aA(e),r.baseProperties,t||{}),a=_x(o),r.isInitialized){n.next=5;break}return n.next=5,r.initialize();case 5:null===(i=r.ingest)||void 0===i||i.postEvent(a);case 6:case"end":return n.stop()}}),n)})))()}basePayload(){var e,t,r,n,i,o,a,s,c,l,u,d,p,h,f,m;const g="error"===this.apiRoot.syncState.status&&("NETWORK_ERROR"===(null===(e=this.apiRoot.syncState.primaryError)||void 0===e?void 0:e.code)||"LOGGED_OUT"===(null===(t=this.apiRoot.syncState.primaryError)||void 0===t?void 0:t.code)),v=this.getOSName(),y=this.getOSVersion(),b=null===(r=this.product)||void 0===r?void 0:r.split("/"),_=null!==(n=null==b?void 0:b[0])&&void 0!==n?n:"Unknown",E=null!==(i=null==b?void 0:b.length)&&void 0!==i&&i?null==b?void 0:b[1]:"Unknown",w=null===(o=this.productLocation)||void 0===o?void 0:o.split("/");return{"consumer.name":_,"consumer.platform":v,"consumer.os_version":y,"consumer.version":E,"env.com.name":null!==(a=null==w?void 0:w[0])&&void 0!==a?a:"Unknown","env.com.version":null!==(s=null==w?void 0:w.length)&&void 0!==s&&s?null==w?void 0:w[1]:"Unknown","event.category":this.platform,"event.context_guid":"Unknown","event.guid":"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),"event.language":this.apiRoot.getLocale(),"event.offline":g,"event.session_guid":this.sessionGuid,"event.user_guid":null!==(u=null===(l=null===(c=this.apiRoot.driver.config)||void 0===c?void 0:c.user)||void 0===l?void 0:l.id)&&void 0!==u?u:"Unknown","event.org_guid":null!==(p=null===(d=null===window||void 0===window?void 0:window.top)||void 0===d?void 0:d.corpId)&&void 0!==p?p:"Unknown","source.client_id":null!==(m=null===(f=null===(h=this.apiRoot.driver.config)||void 0===h?void 0:h.user)||void 0===f?void 0:f.clientId)&&void 0!==m?m:"Unknown","source.name":_,"source.os_version":y,"source.platform":v,"source.version":E,"user.service_code":"creativecloud","user.service_level":this.userAccountStatus}}getOSName(){const e=this.apiRoot.getOption("DEVICE_DESCRIPTION"),t=e&&e.split("-")[0],r=window.navigator.platform;let n="Unknown Operation System";return"Win32"===r||"Windows"===r?n="Windows":"MacIntel"!==r&&"Macintosh"!==r||(n="Mac OS X"),t&&{win:"Windows",winarm:"Win-ARM:64",mac:"Mac OS X",macarm:"Mac-ARM:64"}[t]||n}getOSVersion(){const e=window.navigator.platform,t=window.navigator.userAgent;if("Win32"===e||"Windows"===e){let e="";return t.includes("Windows")&&(t.includes("Windows NT 6.1")?e="Windows 7":t.includes("Windows NT 6.2")?e="Windows 8":t.includes("Windows NT 6.3")?e="Windows 8.1":t.includes("Windows NT 10")&&(e="Windows 10"),e+=t.includes("WOW64")?" 64-bit":" 32-bit"),e}if("MacIntel"===e||"Macintosh"===e){const e=/[Apple Silicon | Mac OS X ]([0-9_.]+)/.exec(t);return e&&e[1]?e[1].replace(/_/g,"."):""}return""}}"undefined"==typeof global&&(window.global=window);const dA={enableBrandLifecycleManagement:!1,includeApprovedBrandsInLibraries:!1,elementTypes:["elements"],readOnly:!1,skipConnectingOnInit:!1};class pA extends hx{constructor(e,t={}){var r;super(),this._missingResolutionTargetsMap=new oA,this._resolutionProgressMap=new Map,this._teamsCache=new ZS(this,CT),this._handleDriverConnect=e=>e instanceof jO?this._handleCloudDriverConnect(e):e instanceof mS?this._handleLocalDriverConnect(e):void 0,this._handleDriverDisconnect=e=>{if(e instanceof mS)return this._handleLocalDriverDisconnect(e)},this.translate=(e,t)=>this._intl.formatMessage(e,t),global.CCLIBS=null!==(r=global.CCLIBS)&&void 0!==r?r:this,this._options=Object.assign(Object.assign({},dA),t),this._driver=e,this._options.mobXCreateAtom&&this._options.mobXTransaction&&SS.register(this._options.mobXCreateAtom,this._options.mobXTransaction),e instanceof jO?this._cloudDriver=e:this._options.cloudDriver instanceof jO&&(this._cloudDriver=this._options.cloudDriver),e instanceof mS&&(this._fontManager=new iA(e));const n=new uA(this);n.apiKey=this._options.ingestApiKey,n.product=this._options.product,n.productLocation=this._options.productLocation,n.platform=this._options.platform,n.sessionGuid=this._options.sessionGuid,n.userAccountStatus=this._options.userAccountStatus,this.utils=Object.assign(Object.assign({},pA.utils),{copyFile:this.copyFile.bind(this),getInstalledVersion:this.getInstalledVersion.bind(this),getFileSize:this.getFileSize.bind(this),getRenditionGrid:this.getRenditionGrid.bind(this),extractElementId:NL,extractGroupId:ML,metrics:n}),this._teamsCache.on("change",(()=>this.emit("teamChange"))),this._missingResolutionTargetsMap.on("change",(()=>this.emit("resolutionStatusChange"))),this._driver.on("connect",this._handleDriverConnect),this._driver.on("disconnect",this._handleDriverDisconnect),this._bindDriverEvents(),this._intl=new nA(this._options.locale),this._libraryCache=new FT(this,this._driver,{readOnly:this._options.readOnly,skipConnectingOnInit:this._options.skipConnectingOnInit,fileSystemCache:this._options.fileSystemCache,enableBrandLifecycleManagement:this._options.enableBrandLifecycleManagement,includeApprovedBrandsInLibraries:this._options.includeApprovedBrandsInLibraries}),this._bindLibraryCacheEvents(),gx.on("messageLogged",(e=>this.emit("messageLogged",e)))}changeDriver(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._libraryCache.changeDriver(e);case 2:return t._driver=e,t._driver instanceof mS&&(t._fontManager=new iA(t._driver)),t._driver.on("connect",t._handleDriverConnect),t._driver.on("disconnect",t._handleDriverDisconnect),t._bindDriverEvents(),i=new Promise((e=>n=e)),t._driver.once("connect",(()=>n())),r.abrupt("return",i);case 10:case"end":return r.stop()}}),r)})))()}_handleCloudDriverConnect(e){if(this._transientLibraryCache=new ZS(this,AT,this._cloudDriver),this.driver instanceof gS||this._options.disableLocalFallthrough)return this.emit("change"),void this.emit("driverConnect");e.getLocalDriver().init({retryCount:3,skipConnectingOnInit:this._options.skipConnectingOnInit},(e=>{this._libraryCache.pause(!0),this._libraryCache.DANGEROUS.removeAllListeners(),this._driver.DANGEROUS.removeAllListeners(),this._libraryCache=new FT(this,e,{readOnly:this._options.readOnly,skipConnectingOnInit:this._options.skipConnectingOnInit}),this._bindLibraryCacheEvents(),this._driver=e,this._bindDriverEvents(),this.emit("change")}))}_handleLocalDriverConnect(e){var t;e.updateRenditionCacheConfiguration(this.options.renditionSizes,this.options.fullRenditionConfig);const r=null!==(t=this.cloudDriver)&&void 0!==t?t:e.getCloudDriver();null==r||r.init({readOnly:!0},(e=>{this._cloudDriver=e,this._transientLibraryCache=new ZS(this,AT,this._cloudDriver)})),this.emit("driverConnect")}_handleLocalDriverDisconnect(e){this.emit("driverDisconnect")}_bindDriverEvents(){this._driver.on("configChange",(()=>this.emit("configChange"))),this._driver.on("connecting",(()=>this.emit("connecting"))),this._driver.on("failedConnection",(()=>this.emit("failedConnection")))}_bindLibraryCacheEvents(){this._libraryCache.on("connect",(()=>this.emit("connect"))),this._libraryCache.on("loaded",(()=>this.emit("loaded"))),this._libraryCache.on("hydrate",(()=>this.emit("restore"))),this._libraryCache.on("sync",(()=>this.emit("sync"))),this._libraryCache.on("report",((...e)=>this.emit("report",...e))),this._libraryCache.on("change",this._libraryCacheChangeHandler.bind(this)),this._libraryCache.on("modelChange",this._libraryCacheChangeHandler.bind(this)),this._libraryCache.on("fontDataChange",(()=>{var e;return null===(e=this.fontManager)||void 0===e?void 0:e._clearCache()}))}_libraryCacheChangeHandler(){this.emit("change",{libraries:this._libraryCache.changes})}makeObservable(e,t){return SS.register(e,t)}loadLibraryByAssetId(e){var t=this;return me(he().mark((function r(){var n,i,o,a,s,c,l,u,d;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t._transientLibraryCache){r.next=2;break}throw new Error("Transient cache is not ready!");case 2:if(!t.cloudDriver){r.next=30;break}r.prev=3,c=!0,l=je(t.cloudDriver.getLibraryByAssetId(e,{elementParams:{types:["elements"],loadProgressively:!0}}));case 5:return r.next=7,l.next();case 7:if(u=r.sent,n=u.done){r.next=15;break}a=u.value,c=!1;try{d=a,s?s.update(d):s=(s=d.id?t._transientLibraryCache.get(d.id):void 0)||t._transientLibraryCache.add(Object.assign(Object.assign({},d),{isTransient:!0}))}finally{c=!0}case 13:r.next=5;break;case 15:r.next=20;break;case 17:r.prev=17,r.t0=r.catch(3),i={error:r.t0};case 20:if(r.prev=20,r.prev=21,c||n||!(o=l.return)){r.next=25;break}return r.next=25,o.call(l);case 25:if(r.prev=25,!i){r.next=28;break}throw i.error;case 28:return r.finish(25);case 29:return r.finish(20);case 30:return r.abrupt("return",s);case 31:case"end":return r.stop()}}),r,null,[[3,17,20,30],[21,,25,29]])})))()}get apiRoot(){return this}get apiVersion(){return 2}get options(){return this._options}updateOptions(e){this._options=e}get driver(){return this._driver}get cloudDriver(){return this._cloudDriver}get libraries(){return this._libraryCache.initialLibrariesLoad(),this._libraryCache.all().filter((e=>!e.isDeletedLocally&&PT(e.data,this._options.enableBrandLifecycleManagement)))}getLibraries(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._libraryCache.loadList(e));case 1:case"end":return r.stop()}}),r)})))()}getLibrariesPage(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r._libraryCache.loadPage(e,t));case 1:case"end":return n.stop()}}),n)})))()}get connected(){return Boolean(this.driver.isConnected)}get areLibrariesLoaded(){var e;return Boolean(null===(e=this._libraryCache)||void 0===e?void 0:e.isLoaded)}get areLibrariesLoading(){var e;return null===(e=this._libraryCache)||void 0===e?void 0:e.isLoading}get userQuota(){var e;return null===(e=this.driver.config.user)||void 0===e?void 0:e.quota}get processInfo(){return Object.assign(Object.assign({},this.driver.config.processInfo),{environment:this.driver.config.environment})}get storageUsed(){return this.libraries.reduce(((e,t)=>"private"===t.ownership?e+t.storageUsed:e),0)}_refreshTeams(){var e=this;return me(he().mark((function t(){var r,n,i,o;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=null===(r=e._options.featureFlags)||void 0===r?void 0:r.enableProjects,i=(n?e._driver.getProjects:e._driver.getTeams).bind(e._driver),t.next=5,i();case 5:o=t.sent,e._teamsCache.replace(o),t.next=13;break;case 9:if(t.prev=9,t.t0=t.catch(0),t.t0.name===Yw){t.next=13;break}throw t.t0;case 13:return t.abrupt("return",e._teamsCache.all());case 14:case"end":return t.stop()}}),t,null,[[0,9]])})))()}refreshTeams(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"staging"===e.driver.config.environment&&gx.warn("CCLibraries.refreshTeams is deprecated. Use CCLibraries.refreshProjects instead."),t.abrupt("return",e._refreshTeams());case 2:case"end":return t.stop()}}),t)})))()}refreshProjects(){var e=this;return me(he().mark((function t(){return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._refreshTeams());case 1:case"end":return t.stop()}}),t)})))()}get teams(){return"staging"===this.driver.config.environment&&gx.warn("CCLibraries.teams is deprecated. Use CCLibraries.projects instead."),this._teamsCache.all()}get projects(){return this._teamsCache.all()}get userId(){var e,t,r;return null===(r=null===(t=null===(e=this._driver)||void 0===e?void 0:e.config)||void 0===t?void 0:t.user)||void 0===r?void 0:r.id}createLibrary(e,t={}){var r;const n=this._libraryCache.add(Jw({id:qw(),name:e,documentExtractionData:t.documentExtractionData,roles:t.roles,team:null===(r=t.team)||void 0===r?void 0:r.data,bookmark:t.team?{id:qw()}:void 0}));return n.dispatch({name:"createLibrary",type:"no-op",data:n.data,flags:{lockNewLibraries:!0,permissionInheritance:t.permissionInheritance}}),n}removeLibrary(e){e.dispatch({name:"removeLibrary",type:"no-op",path:"$"}),e.isDeletedLocally=!0}permanentlyDeleteLibrary(e){e.dispatch({name:"permanentlyDeleteLibrary",type:"no-op",path:"$"}),e.isDeletedLocally=!0}leaveLibrary(e){e.dispatch({name:"leaveLibrary",type:"no-op",path:"$"}),e.isDeletedLocally=!0}followLibrary(e,t){return this._driver.followLibrary(e,t)}unfollowLibrary(e){e.dispatch({name:"unfollowLibrary",type:"no-op",path:"$"}),e.isDeletedLocally=!0}importLibrary(e,t=(()=>{})){return this._driver.importLibrary(e,((e,r)=>{if(e)return t(e);this._libraryCache.upsert(r);const n=this._libraryCache.get(null==r?void 0:r.id);t(void 0,n)}))}exportLibrary(e,t,r=(()=>{})){return this._driver.exportLibrary(e,t,r)}getLibraryById(e){return this._libraryCache.get(e)}getLibraryByAssetId(e){return this._libraryCache.getByIndex("assetId",e)}copyLibrary(e,t={}){var r,n,i;const o=this._libraryCache.add(Jw({id:qw(),name:null!==(r=t.newName)&&void 0!==r?r:e.name,roles:e.roles,team:null===(n=t.team)||void 0===n?void 0:n.data,bookmark:t.team?{id:qw()}:void 0}));return o.dispatch({name:"copyLibrary",type:"no-op",data:{name:t.newName,team:null===(i=t.team)||void 0===i?void 0:i.data},flags:{lockNewLibraries:!0,permissionInheritance:t.permissionInheritance,source:e,includeAppMetadata:t.includeAppMetadata}}),o}moveLibrary(e,t){e.dispatch({name:"moveLibrary",type:"update",data:{team:{id:t.id,name:t.name},bookmark:{id:qw()},ownership:"incoming",ownerType:"org",owner:t.owner.id}})}getHybridSearchResults(e,t,r){const n=function(n){return Re(this,arguments,he().mark((function i(){var o,a,s,c,l,u,d,p,h,f,m,g;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return l=new RegExp(e,"ig"),u=this.libraries.filter((e=>(null==t?void 0:t.library_id)===e.id||!(null==t?void 0:t.library_id))).reduce(((e,t)=>{const r=t.elements.filter((e=>l.test(e.name)));return e.push(...r),e}),[]),i.next=4,Ne(u);case 4:return i.next=6,i.sent;case 6:d=u.map((e=>e.id)),(null==t?void 0:t.library_id)&&(p=this.getLibraryById(t.library_id),t=Object.assign(Object.assign({},t),{library_id:null==p?void 0:p.assetId})),i.prev=8,h=!0,f=je(this.driver.getSearchResults(e,t,r,n));case 10:return i.next=12,Ne(f.next());case 12:if(m=i.sent,o=m.done){i.next=28;break}return c=m.value,h=!1,i.prev=17,g=c,i.next=21,Ne(g.map((e=>{if(d.includes(e.id))return;const t=this.getLibraryByAssetId(e.libraryAssetId);return t?new iT(void 0,t,e):void 0})).filter(Boolean));case 21:return i.next=23,i.sent;case 23:return i.prev=23,h=!0,i.finish(23);case 26:i.next=10;break;case 28:i.next=33;break;case 30:i.prev=30,i.t0=i.catch(8),a={error:i.t0};case 33:if(i.prev=33,i.prev=34,h||o||!(s=f.return)){i.next=38;break}return i.next=38,Ne(s.call(f));case 38:if(i.prev=38,!a){i.next=41;break}throw a.error;case 41:return i.finish(38);case 42:return i.finish(33);case 43:case"end":return i.stop()}}),i,this,[[8,30,33,43],[17,,23,26],[34,,38,42]])})))}.bind(this);return this._searchLoader=new OS(n),this._searchLoader}getSearchResults(e,t,r){this.abortSearch();const n=(t=t||{})&&t.library_id;if(this._driver instanceof gS)return this.getHybridSearchResults(e,t,r);const i=function(i){return Re(this,arguments,he().mark((function o(){var a,s,c,l,u,d,p,h,f,m,g,v,y,b,_;return he().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:u=new Map,d=[],o.prev=2,p=!0,h=je(this._driver.getSearchResults(e,t,r,i));case 4:return o.next=6,Ne(h.next());case 6:if(f=o.sent,a=f.done){o.next=42;break}return l=f.value,p=!1,o.prev=11,m=l,o.next=15,Ne(m.forEach((e=>{const t=e.libraryId||n;let r=this.getLibraryById(t);if(r&&r.areElementsLoaded)return e;r||(r=this._libraryCache.add(Jw({id:t,name:t,areElementsLoaded:!1,isLibraryLoaded:!1})),d.push(t)),d.includes(t)||(r.abortLoadElements(),r.clearElements(!1),d.push(t));const i=u.get(r)||[];return i.push(e),u.set(r,i),e})));case 15:g=ue(u),o.prev=16,g.s();case 18:if((v=g.n()).done){o.next=24;break}return y=le(v.value,2),b=y[0],_=y[1],o.next=22,Ne(b.loadGivenElements(_,!1,!1));case 22:o.next=18;break;case 24:o.next=29;break;case 26:o.prev=26,o.t0=o.catch(16),g.e(o.t0);case 29:return o.prev=29,g.f(),o.finish(29);case 32:return u.clear(),o.next=35,Ne(m.map((e=>{const t=e.libraryId||n;if(!t)return;const r=this.getLibraryById(t);return null==r?void 0:r.getElementById(e.id)})));case 35:return o.next=37,o.sent;case 37:return o.prev=37,p=!0,o.finish(37);case 40:o.next=4;break;case 42:o.next=47;break;case 44:o.prev=44,o.t1=o.catch(2),s={error:o.t1};case 47:if(o.prev=47,o.prev=48,p||a||!(c=h.return)){o.next=52;break}return o.next=52,Ne(c.call(h));case 52:if(o.prev=52,!s){o.next=55;break}throw s.error;case 55:return o.finish(52);case 56:return o.finish(47);case 57:case"end":return o.stop()}}),o,this,[[2,44,47,57],[11,,37,40],[16,26,29,32],[48,,52,56]])})))}.bind(this);return this._searchLoader=new OS(i),this._searchLoader}abortSearch(){this._searchLoader&&this._searchLoader.abort()}copyFile(e,t,r){return this.driver.copyFile(e,t,r)}getInstalledVersion(e){return this.driver.getInstalledVersion(e)}getFileSize(e){return this.driver.getFileSize(e)}getRenditionGrid(e){return this.driver.getRenditionGrid(e)}getOption(e){var t,r,n;const i=function(e){if(!function(e){return/^[A-Z_]*$/.test(e)}(e))throw new ux("String must be upper snake case to convert");return e.toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()))}(e);return(null===(n=null===(r=null===(t=this._driver)||void 0===t?void 0:t.config)||void 0===r?void 0:r.processInfo)||void 0===n?void 0:n[i])||Bw[e]}setLocalSetting(e,t){var r=this;return me(he().mark((function n(){return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.prev=0,JSON.stringify(t),n.next=7;break;case 4:throw n.prev=4,n.t0=n.catch(0),new px("INVALID_PARAMETER","Value must be serializable to JSON");case 7:return n.next=9,r._driver.setLocalSetting(e,t);case 9:case"end":return n.stop()}}),n,null,[[0,4]])})))()}getLocalSetting(e){return this._driver.getLocalSetting(e)}getLocale(){return this._intl.locale}setLocale(e){return this._intl.setLocale(e)}isConnected(){return Boolean(this.driver.isConnected)}get connectionState(){return this.driver.connectionState}reconnect(){var e;this.isConnected()||null===(e=this._driver)||void 0===e||e.connect()}disconnect(){var e;null===(e=this._driver)||void 0===e||e.disconnect()}isSyncingEnabled(){var e;return null===(e=this._driver.config.processInfo)||void 0===e?void 0:e.syncingEnabled}enableSyncing(){return this._libraryCache.resume(),this._setSyncEnabledConfig(!0)}disableSyncing(e=!1){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._setSyncEnabledConfig(!1);case 2:t._libraryCache.pause(e);case 3:case"end":return r.stop()}}),r)})))()}_setSyncEnabledConfig(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t.setLocalSetting("processInfo",Object.assign(Object.assign({},t._driver.config.processInfo),{syncingEnabled:e})));case 1:case"end":return r.stop()}}),r)})))()}_resolveLibrary(e){var t=this;return me(he().mark((function r(){var n,i;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=`library#${e}`,t._resolutionProgressMap.has(n)||(i=t.driver.getLibraryById(e).then((e=>(t._libraryCache.upsert(e),t._libraryCache.get(e.id)))).catch((e=>{if("NOT_FOUND"!==e.code)throw gx.log(String(e)),e})).finally((()=>{t._resolutionProgressMap.delete(n)})),t._resolutionProgressMap.set(n,i)),r.abrupt("return",t._resolutionProgressMap.get(n));case 3:case"end":return r.stop()}}),r)})))()}_resolveElementById(e,t,r=!1){var n=this;return me(he().mark((function i(){var o,a;return he().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(e){i.next=2;break}return i.abrupt("return");case 2:if(!(o=e.getElementById(t,!r))){i.next=5;break}return i.abrupt("return",o);case 5:return i.prev=5,i.next=8,n.driver.getElement(e,t);case 8:return a=i.sent,e.loadGivenElements([a],!1,!0),i.abrupt("return",e.getElementById(t,!r));case 13:if(i.prev=13,i.t0=i.catch(5),"NOT_FOUND"===i.t0.code){i.next=18;break}throw gx.log(String(i.t0)),i.t0;case 18:return i.abrupt("return");case 19:case"end":return i.stop()}}),i,null,[[5,13]])})))()}resolveLibraryById(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._libraryCache.waitForHydrate();case 2:if(!(n=t.getLibraryById(e))){r.next=5;break}return r.abrupt("return",n);case 5:return r.abrupt("return",t._resolveLibrary(e));case 6:case"end":return r.stop()}}),r)})))()}resolveLibraryByAssetId(e){var t=this;return me(he().mark((function r(){var n;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t._libraryCache.waitForHydrate();case 2:if(!(n=t.getLibraryByAssetId(e))){r.next=5;break}return r.abrupt("return",n);case 5:return r.abrupt("return",t._resolveLibrary(e));case 6:case"end":return r.stop()}}),r)})))()}resolveLibraryWithoutCache(e){var t=this;return me(he().mark((function r(){return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",t._resolveLibrary(e));case 1:case"end":return r.stop()}}),r)})))()}resolveCachedLibraryReference(e){if(!e)return;const t=nx(e).libraryId;return t?this.getLibraryById(t)||this._getLinkReferenceStatus(e):void 0}resolveLibraryReference(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:if(n=nx(e),i=n.libraryAssetId,o=n.libraryId,i||o){r.next=5;break}return r.abrupt("return");case 5:if(!t.isLocallyManaged){r.next=7;break}return r.abrupt("return",t.resolveLibraryById(o));case 7:return r.abrupt("return",t.resolveLibraryByAssetId(i));case 8:case"end":return r.stop()}}),r)})))()}resolveElementReference(e,t=!1){var r=this;return me(he().mark((function n(){var i,o,a;return he().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e){n.next=2;break}return n.abrupt("return");case 2:if(i=nx(e),o=i.elementId){n.next=5;break}return n.abrupt("return");case 5:return n.next=7,r.resolveElementReferenceToLibrary(e);case 7:if(a=n.sent){n.next=10;break}return n.abrupt("return");case 10:return n.abrupt("return",r._resolveElementById(a,o,t));case 11:case"end":return n.stop()}}),n)})))()}resolveCachedElementReference(e,t=!1){if(!e)return;const r=nx(e),n=r.libraryId,i=r.elementId;if(!n||!i)return;const o=this.getLibraryById(n);return(null==o?void 0:o.getElementById(i,!t))||this._getLinkReferenceStatus(e,!0,t)}resolveElementReferenceToLibrary(e){var t=this;return me(he().mark((function r(){var n,i,o;return he().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:if(n=nx(e),i=n.libraryAssetId,o=n.libraryId,i||o){r.next=5;break}return r.abrupt("return");case 5:if(!t.isLocallyManaged){r.next=7;break}return r.abrupt("return",t.resolveLibraryById(o));case 7:return r.abrupt("return",t.resolveLibraryByAssetId(i));case 8:case"end":return r.stop()}}),r)})))()}resolveCachedElementReferenceToLibrary(e){return this.resolveCachedLibraryReference(e)}_getLinkReferenceStatus(e,t=!1,r=!1){const n=t?"element":"library",i=r&&"removed",o=`${ex(e)}#${n}#${i}`;if(this._missingResolutionTargetsMap.get(o))return null;this._resolveElementReferenceAndNotify(e,o,t,r)}_resolveElementReferenceAndNotify(e,t,r=!1,n=!1){if(!this._resolutionProgressMap.has(t)){const i=(r?this.resolveElementReference.bind(this):this.resolveElementReferenceToLibrary.bind(this))(e,n).then((e=>{this._missingResolutionTargetsMap.set(t,!e)})).finally((()=>{this._resolutionProgressMap.delete(t)}));this._resolutionProgressMap.set(t,i)}return this._resolutionProgressMap.get(t)}openInCCD(e){return this._driver.openInCCD(e)}get canAccessLocalProcess(){return this._driver instanceof mS}getAccessToken(e,t,r,n){return this._driver.fetchAccessToken(e,t,r,n)}getLibraryByToolkitId(e){let t=le(this.libraries.filter((t=>t.toolkitId===e)).sort(((e,t)=>e.created-t.created)),1)[0];if(!t){const r=this.translate(Mw[e]);t=this.createLibrary(r),t.toolkitId=e}return t}getDefaultLibrary(){const e=this.getLocalSetting("defaultLibrary");if(e){const t=e.id,r=e.assetId,n=this.resolveCachedElementReferenceToLibrary({"repo:assetId":r,"stRef:documentID":t,"stRef:fromPart":""});if(void 0===n||(null==n?void 0:n.isWritable))return n}return this._options.disableFallbackDefaultLibrary?null:this.libraries.reduce(((e,t)=>{const r=!e||(e.created||0)>(t.created||0);return"private"===t.ownership&&r?t:e}),null)}setDefaultLibrary(e){if(e&&!e.isWritable)throw new px("INVALID_PARAMETER","Read-only libraries cannot be set as default");this.setLocalSetting("defaultLibrary",{id:null==e?void 0:e.id,assetId:null==e?void 0:e.assetId}),this._setDefaultLibraryMonitor()}_setDefaultLibraryMonitor(){var e;null===(e=this._disposeDefaultLibraryMonitor)||void 0===e||e.call(this);const t=this.getDefaultLibrary();if(t){const e=t.id,r=t.assetId,n=()=>{t.id===e&&t.assetId===r||this.setDefaultLibrary(t)};this._disposeDefaultLibraryMonitor=()=>t.off("change",n),t.on("change",n)}}get syncState(){return this._libraryCache.syncStatus}get retryTime(){}getTempDir(e){return this.driver.getTempDir(e)}get fontManager(){return this._fontManager}get isLocallyManaged(){return this.driver instanceof mS}publishBrand(e){return this._driver.publishBrand(e)}unpublishBrand(e){return this._driver.unpublishBrand(e)}}pA.errors=px,pA.utils={getExtensions:Tw,getMimeTypes:Pw},Ie([kS],pA.prototype,"loadLibraryByAssetId",null),Ie([PS],pA.prototype,"options",null),Ie([PS],pA.prototype,"libraries",null),Ie([PS],pA.prototype,"getLibraries",null),Ie([PS],pA.prototype,"getLibrariesPage",null),Ie([PS("driverConnect","driverDisconnect","loaded")],pA.prototype,"connected",null),Ie([PS("loaded")],pA.prototype,"areLibrariesLoaded",null),Ie([PS("loaded","sync")],pA.prototype,"areLibrariesLoading",null),Ie([PS("configChange")],pA.prototype,"userQuota",null),Ie([DS,PS("configChange")],pA.prototype,"processInfo",null),Ie([PS],pA.prototype,"storageUsed",null),Ie([PS("teamChange")],pA.prototype,"refreshTeams",null),Ie([PS("teamChange")],pA.prototype,"refreshProjects",null),Ie([PS("teamChange")],pA.prototype,"teams",null),Ie([PS("teamChange")],pA.prototype,"projects",null),Ie([PS("configChange")],pA.prototype,"userId",null),Ie([PS("configChange")],pA.prototype,"getOption",null),Ie([PS("configChange")],pA.prototype,"getLocalSetting",null),Ie([PS("driverConnect","driverDisconnect","loaded")],pA.prototype,"isConnected",null),Ie([PS("driverConnect","driverDisconnect","loaded","connecting","failedConnection")],pA.prototype,"connectionState",null),Ie([PS("configChange")],pA.prototype,"isSyncingEnabled",null),Ie([PS("change","resolutionStatusChange")],pA.prototype,"resolveCachedLibraryReference",null),Ie([PS("change","resolutionStatusChange")],pA.prototype,"resolveCachedElementReference",null),Ie([PS("change","resolutionStatusChange")],pA.prototype,"resolveCachedElementReferenceToLibrary",null),Ie([PS("sync")],pA.prototype,"syncState",null),Ie([DS],pA.prototype,"fontManager",null),Ie([kS],pA.prototype,"publishBrand",null),Ie([kS],pA.prototype,"unpublishBrand",null);const hA={mimeTypeToExtensions:Tw,extensionToMimeTypes:Pw,canComputeRenditionFromMimeType:Iw,getSNISettings:()=>({TLS_DISCOVERY_PORT_RANGE:kw}),isPlaceholderId:Xw,parseLinkReference:rx,serializeLinkReference:ex,estimateUploadTime:function(e){const t=e.reduce(((e,t)=>(t.size>Rw?e.asimov.push(t):e.standard.push(t),e)),{standard:[],asimov:[]}),r=t.standard,n=t.asimov;return Math.max(ax(r),ax(function(e){return e.map((e=>{const t=e.size,r=Math.floor(t/Rw),n=t%Rw,i=r+(n?1:0);return Array.from({length:i},((e,t)=>({size:t===i-1?n:Rw})))})).flat()}(n)))}};var fA=Object.freeze({__proto__:null,utils:hA,LocalDriver:mS,CloudDriver:jO,HybridDriver:gS,cepConnector:(e,t,r=8e3)=>{const n=new ES(e,t,r);return e=>n.connect(e)},ccdConnector:(e,t,r=8e3)=>{const n=new wS(e,t,r);return e=>n.connect(e)},nodeConnector:(e,t,r=8e3)=>{const n=new xS(e,t,r);return e=>n.connect(e)},uxpConnector:(e,t=8e3)=>{const r=new LS(e,void 0,t);return e=>r.connect(e)},ProgressiveLoader:OS,Element:iT,Library:AT,Representation:VS,Group:yT,default:pA}),mA="Vaše sada nástrojů",gA="Vaše knihovna aplikace Photoshop",vA="Vaše vzorníky v aplikaci Photoshop",yA="Vaše štětce v aplikaci Photoshop",bA="Vaše přechody v aplikaci Photoshop",_A="Vaše vzory v aplikaci Photoshop",EA="Vaše styly v aplikaci Photoshop",wA="Vaše tvary v aplikaci Photoshop",xA="Vzorky barev předběžné verze aplikace Ps",LA="Štětce předběžné verze aplikace Ps",OA="Přechody předběžné verze aplikace Ps",SA="Vzory předběžné verze aplikace Ps",TA="Styly předběžné verze aplikace Ps",PA="Tvary předběžné verze aplikace Ps",IA={TOOLKIT_NAME_DEFAULT:mA,TOOLKIT_NAME_PHOTOSHOP:gA,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:vA,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:yA,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:bA,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:_A,TOOLKIT_NAME_PHOTOSHOP_STYLES:EA,TOOLKIT_NAME_PHOTOSHOP_SHAPES:wA,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:xA,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:LA,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:OA,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:SA,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:TA,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:PA},AA=Object.freeze({__proto__:null,TOOLKIT_NAME_DEFAULT:mA,TOOLKIT_NAME_PHOTOSHOP:gA,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:vA,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:yA,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:bA,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:_A,TOOLKIT_NAME_PHOTOSHOP_STYLES:EA,TOOLKIT_NAME_PHOTOSHOP_SHAPES:wA,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:xA,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:LA,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:OA,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:SA,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:TA,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:PA,default:IA}),CA="Din værktøjspakke",kA="Dit Photoshop-bibliotek",DA="Dine Photoshop-farveprøver",NA="Dine Photoshop-pensler",RA="Dine Photoshop-farveforløb",MA="Dine Photoshop-mønstre",jA="Dine Photoshop-typer",FA="Dine Photoshop-former",ZA="Dine Ps Prerelease-farveprøver",BA="Dine Ps Prerelease-pensler",GA="Dine Ps Prerelease-farveforløb",UA="Dine Ps Prerelease-mønstre",HA="Dine Ps Prerelease-typer",zA="Dine Ps Prerelease-former",VA={TOOLKIT_NAME_DEFAULT:CA,TOOLKIT_NAME_PHOTOSHOP:kA,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:DA,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:NA,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:RA,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:MA,TOOLKIT_NAME_PHOTOSHOP_STYLES:jA,TOOLKIT_NAME_PHOTOSHOP_SHAPES:FA,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:ZA,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:BA,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:GA,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:UA,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:HA,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:zA},YA=Object.freeze({__proto__:null,TOOLKIT_NAME_DEFAULT:CA,TOOLKIT_NAME_PHOTOSHOP:kA,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:DA,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:NA,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:RA,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:MA,TOOLKIT_NAME_PHOTOSHOP_STYLES:jA,TOOLKIT_NAME_PHOTOSHOP_SHAPES:FA,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:ZA,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:BA,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:GA,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:UA,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:HA,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:zA,default:VA}),WA="Ihr Toolkit",KA="Ihre Photoshop-Bibliothek",$A="Ihre Photoshop-Farbfelder",qA="Ihre Photoshop-Pinsel",XA="Ihre Photoshop-Verläufe",JA="Ihre Photoshop-Muster",QA="Ihre Photoshop-Stile",eC="Ihre Photoshop-Formen",tC="Ihre Ps Prerelease-Farbfelder",rC="Ihre Ps Prerelease-Pinsel",nC="Ihre Ps Prerelease-Verläufe",iC="Ihre Ps Prerelease-Muster",oC="Ihre Ps Prerelease-Stile",aC="Ihre Ps Prerelease-Formen",sC={TOOLKIT_NAME_DEFAULT:WA,TOOLKIT_NAME_PHOTOSHOP:KA,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:$A,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:qA,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:XA,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:JA,TOOLKIT_NAME_PHOTOSHOP_STYLES:QA,TOOLKIT_NAME_PHOTOSHOP_SHAPES:eC,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:tC,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:rC,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:nC,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:iC,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:oC,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:aC},cC=Object.freeze({__proto__:null,TOOLKIT_NAME_DEFAULT:WA,TOOLKIT_NAME_PHOTOSHOP:KA,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:$A,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:qA,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:XA,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:JA,TOOLKIT_NAME_PHOTOSHOP_STYLES:QA,TOOLKIT_NAME_PHOTOSHOP_SHAPES:eC,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:tC,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:rC,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:nC,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:iC,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:oC,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:aC,default:sC}),lC="Your Toolkit",uC="Your Photoshop Library",dC="Your Photoshop Swatches",pC="Your Photoshop Brushes",hC="Your Photoshop Gradients",fC="Your Photoshop Patterns",mC="Your Photoshop Styles",gC="Your Photoshop Shapes",vC="Your Ps Prerelease Swatches",yC="Your Ps Prerelease Brushes",bC="Your Ps Prerelease Gradients",_C="Your Ps Prerelease Patterns",EC="Your Ps Prerelease Styles",wC="Your Ps Prerelease Shapes",xC={TOOLKIT_NAME_DEFAULT:lC,TOOLKIT_NAME_PHOTOSHOP:uC,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:dC,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:pC,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:hC,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:fC,TOOLKIT_NAME_PHOTOSHOP_STYLES:mC,TOOLKIT_NAME_PHOTOSHOP_SHAPES:gC,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:vC,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:yC,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:bC,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:_C,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:EC,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:wC},LC=Object.freeze({__proto__:null,TOOLKIT_NAME_DEFAULT:lC,TOOLKIT_NAME_PHOTOSHOP:uC,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:dC,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:pC,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:hC,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:fC,TOOLKIT_NAME_PHOTOSHOP_STYLES:mC,TOOLKIT_NAME_PHOTOSHOP_SHAPES:gC,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:vC,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:yC,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:bC,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:_C,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:EC,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:wC,default:xC}),OC="Su kit de herramientas",SC="Su biblioteca de Photoshop",TC="Sus muestras de Photoshop",PC="Sus pinceles de Photoshop",IC="Sus degradados de Photoshop",AC="Sus motivos de Photoshop",CC="Sus estilos de Photoshop",kC="Sus formas de Photoshop",DC="Sus muestras de la versión previa de Ps",NC="Sus pinceles de la versión previa de Ps",RC="Sus degradados de la versión previa de Ps",MC="Sus motivos de la versión previa de Ps",jC="Sus estilos de la versión previa de Ps",FC="Sus formas de la versión previa de Ps",ZC={TOOLKIT_NAME_DEFAULT:OC,TOOLKIT_NAME_PHOTOSHOP:SC,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:TC,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:PC,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:IC,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:AC,TOOLKIT_NAME_PHOTOSHOP_STYLES:CC,TOOLKIT_NAME_PHOTOSHOP_SHAPES:kC,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:DC,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:NC,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:RC,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:MC,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:jC,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:FC},BC=Object.freeze({__proto__:null,TOOLKIT_NAME_DEFAULT:OC,TOOLKIT_NAME_PHOTOSHOP:SC,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:TC,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:PC,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:IC,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:AC,TOOLKIT_NAME_PHOTOSHOP_STYLES:CC,TOOLKIT_NAME_PHOTOSHOP_SHAPES:kC,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:DC,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:NC,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:RC,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:MC,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:jC,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:FC,default:ZC}),GC="Oma työkalusarja",UC="Oma Photoshop-kirjasto",HC="Omat Photoshop-värimallit",zC="Omat Photoshop-siveltimet",VC="Omat Photoshop-liukuvärit",YC="Omat Photoshop-kuviot",WC="Omat Photoshop-tyylit",KC="Omat Photoshop-muodot",$C="Omat Ps Prerelease -värimallit",qC="Omat Ps Prerelease -siveltimet",XC="Omat Ps Prerelease -liukuvärit",JC="Omat Ps Prerelease -kuviot",QC="Omat Ps Prerelease -tyylit",ek="Omat Ps Prerelease -muodot",tk={TOOLKIT_NAME_DEFAULT:GC,TOOLKIT_NAME_PHOTOSHOP:UC,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:HC,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:zC,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:VC,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:YC,TOOLKIT_NAME_PHOTOSHOP_STYLES:WC,TOOLKIT_NAME_PHOTOSHOP_SHAPES:KC,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:$C,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:qC,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:XC,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:JC,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:QC,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:ek},rk=Object.freeze({__proto__:null,TOOLKIT_NAME_DEFAULT:GC,TOOLKIT_NAME_PHOTOSHOP:UC,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:HC,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:zC,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:VC,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:YC,TOOLKIT_NAME_PHOTOSHOP_STYLES:WC,TOOLKIT_NAME_PHOTOSHOP_SHAPES:KC,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:$C,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:qC,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:XC,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:JC,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:QC,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:ek,default:tk}),nk="Votre boîte à outils",ik="Votre bibliothèque Photoshop",ok="Vos nuances Photoshop",ak="Vos pinceaux Photoshop",sk="Vos dégradés Photoshop",ck="Vos motifs Photoshop",lk="Vos styles Photoshop",uk="Vos formes Photoshop",dk="Vos nuances Version préliminaire Ps",pk="Vos pinceaux Version préliminaire Ps",hk="Vos dégradés Version préliminaire Ps",fk="Vos motifs Version préliminaire Ps",mk="Vos styles Version préliminaire Ps",gk="Vos formes Version préliminaire Ps",vk={TOOLKIT_NAME_DEFAULT:nk,TOOLKIT_NAME_PHOTOSHOP:ik,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:ok,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:ak,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:sk,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:ck,TOOLKIT_NAME_PHOTOSHOP_STYLES:lk,TOOLKIT_NAME_PHOTOSHOP_SHAPES:uk,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:dk,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:pk,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:hk,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:fk,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:mk,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:gk},yk=Object.freeze({__proto__:null,TOOLKIT_NAME_DEFAULT:nk,TOOLKIT_NAME_PHOTOSHOP:ik,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:ok,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:ak,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:sk,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:ck,TOOLKIT_NAME_PHOTOSHOP_STYLES:lk,TOOLKIT_NAME_PHOTOSHOP_SHAPES:uk,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:dk,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:pk,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:hk,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:fk,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:mk,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:gk,default:vk}),bk="Votre boîte à outils",_k="Votre bibliothèque Photoshop",Ek="Vos nuances Photoshop",wk="Vos pinceaux Photoshop",xk="Vos dégradés Photoshop",Lk="Vos motifs Photoshop",Ok="Vos styles Photoshop",Sk="Vos formes Photoshop",Tk="Vos nuances Version préliminaire Ps",Pk="Vos pinceaux Version préliminaire Ps",Ik="Vos dégradés Version préliminaire Ps",Ak="Vos motifs Version préliminaire Ps",Ck="Vos styles Version préliminaire Ps",kk="Vos formes Version préliminaire Ps",Dk={TOOLKIT_NAME_DEFAULT:bk,TOOLKIT_NAME_PHOTOSHOP:_k,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:Ek,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:wk,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:xk,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:Lk,TOOLKIT_NAME_PHOTOSHOP_STYLES:Ok,TOOLKIT_NAME_PHOTOSHOP_SHAPES:Sk,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:Tk,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:Pk,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:Ik,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:Ak,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:Ck,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:kk},Nk=Object.freeze({__proto__:null,TOOLKIT_NAME_DEFAULT:bk,TOOLKIT_NAME_PHOTOSHOP:_k,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:Ek,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:wk,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:xk,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:Lk,TOOLKIT_NAME_PHOTOSHOP_STYLES:Ok,TOOLKIT_NAME_PHOTOSHOP_SHAPES:Sk,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:Tk,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:Pk,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:Ik,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:Ak,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:Ck,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:kk,default:Dk}),Rk="Votre boîte à outils",Mk="Votre bibliothèque Photoshop",jk="Vos nuances Photoshop",Fk="Vos pinceaux Photoshop",Zk="Vos dégradés Photoshop",Bk="Vos motifs Photoshop",Gk="Vos styles Photoshop",Uk="Vos formes Photoshop",Hk="Vos nuances Version préliminaire Ps",zk="Vos pinceaux Version préliminaire Ps",Vk="Vos dégradés Version préliminaire Ps",Yk="Vos motifs Version préliminaire Ps",Wk="Vos styles Version préliminaire Ps",Kk="Vos formes Version préliminaire Ps",$k={TOOLKIT_NAME_DEFAULT:Rk,TOOLKIT_NAME_PHOTOSHOP:Mk,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:jk,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:Fk,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:Zk,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:Bk,TOOLKIT_NAME_PHOTOSHOP_STYLES:Gk,TOOLKIT_NAME_PHOTOSHOP_SHAPES:Uk,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:Hk,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:zk,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:Vk,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:Yk,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:Wk,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:Kk},qk=Object.freeze({__proto__:null,TOOLKIT_NAME_DEFAULT:Rk,TOOLKIT_NAME_PHOTOSHOP:Mk,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:jk,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:Fk,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:Zk,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:Bk,TOOLKIT_NAME_PHOTOSHOP_STYLES:Gk,TOOLKIT_NAME_PHOTOSHOP_SHAPES:Uk,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:Hk,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:zk,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:Vk,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:Yk,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:Wk,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:Kk,default:$k}),Xk="Az Ön eszköztára",Jk="Az Ön Photoshop könyvtára",Qk="Az Ön Photoshop színtárai",eD="Az Ön Photoshop ecsetei",tD="Az Ön Photoshop színátmenetei",rD="Az Ön Photoshop mintái",nD="Az Ön Photoshop stílusai",iD="Az Ön Photoshop alakzatai",oD="PS előzetes kiadás – színtárak",aD="PS előzetes kiadás – ecsetek",sD="PS előzetes kiadás – színátmenetek",cD="PS előzetes kiadás – minták",lD="PS előzetes kiadás – stílusok",uD="PS előzetes kiadás – alakzatok",dD={TOOLKIT_NAME_DEFAULT:Xk,TOOLKIT_NAME_PHOTOSHOP:Jk,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:Qk,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:eD,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:tD,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:rD,TOOLKIT_NAME_PHOTOSHOP_STYLES:nD,TOOLKIT_NAME_PHOTOSHOP_SHAPES:iD,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:oD,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:aD,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:sD,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:cD,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:lD,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:uD},pD=Object.freeze({__proto__:null,TOOLKIT_NAME_DEFAULT:Xk,TOOLKIT_NAME_PHOTOSHOP:Jk,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:Qk,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:eD,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:tD,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:rD,TOOLKIT_NAME_PHOTOSHOP_STYLES:nD,TOOLKIT_NAME_PHOTOSHOP_SHAPES:iD,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:oD,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:aD,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:sD,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:cD,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:lD,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:uD,default:dD}),hD="Il vostro toolkit",fD="La vostra Libreria Photoshop",mD="Campioni di Photoshop personali",gD="Pennelli di Photoshop personali",vD="Sfumature di Photoshop personali",yD="Pattern di Photoshop personali",bD="Stili di Photoshop personali",_D="Forme di Photoshop personali",ED="I campioni Ps Prerelease",wD="I pennelli Ps Prerelease",xD="Le sfumature Ps Prerelease",LD="I pattern Ps Prerelease",OD="Gli stili Ps Prerelease",SD="Le forme Ps Prerelease",TD={TOOLKIT_NAME_DEFAULT:hD,TOOLKIT_NAME_PHOTOSHOP:fD,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:mD,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:gD,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:vD,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:yD,TOOLKIT_NAME_PHOTOSHOP_STYLES:bD,TOOLKIT_NAME_PHOTOSHOP_SHAPES:_D,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:ED,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:wD,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:xD,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:LD,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:OD,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:SD},PD=Object.freeze({__proto__:null,TOOLKIT_NAME_DEFAULT:hD,TOOLKIT_NAME_PHOTOSHOP:fD,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:mD,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:gD,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:vD,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:yD,TOOLKIT_NAME_PHOTOSHOP_STYLES:bD,TOOLKIT_NAME_PHOTOSHOP_SHAPES:_D,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:ED,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:wD,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:xD,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:LD,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:OD,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:SD,default:TD}),ID="自分の Toolkit",AD="Photoshop ライブラリ",CD="あなたの Photoshop スウォッチ",kD="あなたの Photoshop ブラシ",DD="あなたの Photoshop グラデーション",ND="あなたの Photoshop パターン",RD="あなたの Photoshop スタイル",MD="あなたの Photoshop シェイプ",jD="Ps プレリリースのサンプル",FD="Ps プレリリースのブラシ",ZD="Ps プレリリースのグラデーション",BD="Ps プレリリースのパターン",GD="Ps プレリリースのスタイル",UD="Ps プレリリースのシェイプ",HD={TOOLKIT_NAME_DEFAULT:ID,TOOLKIT_NAME_PHOTOSHOP:AD,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:CD,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:kD,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:DD,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:ND,TOOLKIT_NAME_PHOTOSHOP_STYLES:RD,TOOLKIT_NAME_PHOTOSHOP_SHAPES:MD,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:jD,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:FD,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:ZD,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:BD,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:GD,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:UD},zD=Object.freeze({__proto__:null,TOOLKIT_NAME_DEFAULT:ID,TOOLKIT_NAME_PHOTOSHOP:AD,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:CD,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:kD,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:DD,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:ND,TOOLKIT_NAME_PHOTOSHOP_STYLES:RD,TOOLKIT_NAME_PHOTOSHOP_SHAPES:MD,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:jD,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:FD,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:ZD,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:BD,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:GD,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:UD,default:HD}),VD="Photoshop Library",YD="Photoshop 견본",WD="Photoshop 브러시",KD="Photoshop 그래디언트",$D="Photoshop 패턴",qD="Photoshop 스타일",XD="Photoshop 모양",JD="Ps 사전 릴리스 견본",QD="Ps 사전 릴리스 브러시",eN="Ps 사전 릴리스 그래디언트",tN="Ps 사전 릴리스 패턴",rN="Ps 사전 릴리스 스타일",nN="Ps 사전 릴리스 모양",iN={TOOLKIT_NAME_DEFAULT:"툴킷",TOOLKIT_NAME_PHOTOSHOP:VD,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:YD,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:WD,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:KD,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:$D,TOOLKIT_NAME_PHOTOSHOP_STYLES:qD,TOOLKIT_NAME_PHOTOSHOP_SHAPES:XD,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:JD,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:QD,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:eN,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:tN,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:rN,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:nN},oN=Object.freeze({__proto__:null,TOOLKIT_NAME_DEFAULT:"툴킷",TOOLKIT_NAME_PHOTOSHOP:VD,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:YD,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:WD,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:KD,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:$D,TOOLKIT_NAME_PHOTOSHOP_STYLES:qD,TOOLKIT_NAME_PHOTOSHOP_SHAPES:XD,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:JD,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:QD,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:eN,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:tN,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:rN,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:nN,default:iN}),aN="Ditt verktøysett",sN="Ditt Photoshop-bibliotek",cN="Dine Photoshop-fargekart",lN="Dine Photoshop-pensler",uN="Dine Photoshop-graderinger",dN="Dine Photoshop-mønstre",pN="Dine Photoshop-stiler",hN="Dine Photoshop-former",fN="Dine forhåndsutgivelsesfargekart for Ps",mN="Dine forhåndsutgivelsespensler for Ps",gN="Dine forhåndsutgivelsesgraderinger for Ps",vN="Dine forhåndsutgivelsesmønstre for Ps",yN="Dine forhåndsutgivelsesstiler for Ps",bN="Dine forhåndsutgivelsesformer for Ps",_N={TOOLKIT_NAME_DEFAULT:aN,TOOLKIT_NAME_PHOTOSHOP:sN,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:cN,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:lN,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:uN,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:dN,TOOLKIT_NAME_PHOTOSHOP_STYLES:pN,TOOLKIT_NAME_PHOTOSHOP_SHAPES:hN,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:fN,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:mN,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:gN,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:vN,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:yN,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:bN},EN=Object.freeze({__proto__:null,TOOLKIT_NAME_DEFAULT:aN,TOOLKIT_NAME_PHOTOSHOP:sN,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:cN,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:lN,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:uN,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:dN,TOOLKIT_NAME_PHOTOSHOP_STYLES:pN,TOOLKIT_NAME_PHOTOSHOP_SHAPES:hN,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:fN,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:mN,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:gN,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:vN,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:yN,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:bN,default:_N}),wN="Uw toolkit",xN="Uw Photoshop-bibliotheek",LN="Uw Photoshop-stalen",ON="Uw Photoshop-penselen",SN="Uw Photoshop-verlopen",TN="Uw Photoshop-patronen",PN="Uw Photoshop-stijlen",IN="Uw Photoshop-vormen",AN="Ps Prerelease-stalen",CN="Ps Prerelease-penselen",kN="Ps Prerelease-verlopen",DN="Ps Prerelease-patronen",NN="Ps Prerelease-stijlen",RN="Ps Prerelease-vormen",MN={TOOLKIT_NAME_DEFAULT:wN,TOOLKIT_NAME_PHOTOSHOP:xN,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:LN,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:ON,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:SN,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:TN,TOOLKIT_NAME_PHOTOSHOP_STYLES:PN,TOOLKIT_NAME_PHOTOSHOP_SHAPES:IN,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:AN,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:CN,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:kN,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:DN,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:NN,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:RN},jN=Object.freeze({__proto__:null,TOOLKIT_NAME_DEFAULT:wN,TOOLKIT_NAME_PHOTOSHOP:xN,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:LN,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:ON,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:SN,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:TN,TOOLKIT_NAME_PHOTOSHOP_STYLES:PN,TOOLKIT_NAME_PHOTOSHOP_SHAPES:IN,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:AN,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:CN,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:kN,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:DN,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:NN,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:RN,default:MN}),FN="Twój zestaw narzędzi",ZN="Biblioteka programu Photoshop",BN="Próbki programu Photoshop",GN="Pędzle programu Photoshop",UN="Gradienty programu Photoshop",HN="Wzory programu Photoshop",zN="Style programu Photoshop",VN="Kształty programu Photoshop",YN="Próbki we wstępnym wydaniu Ps",WN="Pędzle we wstępnym wydaniu Ps",KN="Gradienty we wstępnym wydaniu Ps",$N="Wzory we wstępnym wydaniu Ps",qN="Style we wstępnym wydaniu Ps",XN="Kształty we wstępnym wydaniu Ps",JN={TOOLKIT_NAME_DEFAULT:FN,TOOLKIT_NAME_PHOTOSHOP:ZN,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:BN,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:GN,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:UN,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:HN,TOOLKIT_NAME_PHOTOSHOP_STYLES:zN,TOOLKIT_NAME_PHOTOSHOP_SHAPES:VN,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:YN,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:WN,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:KN,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:$N,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:qN,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:XN},QN=Object.freeze({__proto__:null,TOOLKIT_NAME_DEFAULT:FN,TOOLKIT_NAME_PHOTOSHOP:ZN,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:BN,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:GN,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:UN,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:HN,TOOLKIT_NAME_PHOTOSHOP_STYLES:zN,TOOLKIT_NAME_PHOTOSHOP_SHAPES:VN,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:YN,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:WN,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:KN,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:$N,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:qN,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:XN,default:JN}),eR="Seu kit de ferramentas",tR="Sua biblioteca do Photoshop",rR="Suas amostras do Photoshop",nR="Seus pincéis do Photoshop",iR="Seus gradientes do Photoshop",oR="Seus padrões do Photoshop",aR="Seus estilos do Photoshop",sR="Suas formas do Photoshop",cR="Suas amostras de pré-lançamento do Ps",lR="Seus pincéis de pré-lançamento do Ps",uR="Seus gradientes de pré-lançamento do Ps",dR="Seus padrões de pré-lançamento do Ps",pR="Seus estilos de pré-lançamento do Ps",hR="Suas formas de pré-lançamento do Ps",fR={TOOLKIT_NAME_DEFAULT:eR,TOOLKIT_NAME_PHOTOSHOP:tR,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:rR,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:nR,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:iR,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:oR,TOOLKIT_NAME_PHOTOSHOP_STYLES:aR,TOOLKIT_NAME_PHOTOSHOP_SHAPES:sR,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:cR,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:lR,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:uR,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:dR,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:pR,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:hR},mR=Object.freeze({__proto__:null,TOOLKIT_NAME_DEFAULT:eR,TOOLKIT_NAME_PHOTOSHOP:tR,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:rR,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:nR,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:iR,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:oR,TOOLKIT_NAME_PHOTOSHOP_STYLES:aR,TOOLKIT_NAME_PHOTOSHOP_SHAPES:sR,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:cR,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:lR,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:uR,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:dR,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:pR,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:hR,default:fR}),gR="Инструменты",vR="Библиотека Photoshop",yR="Ваши образцы Photoshop",bR="Ваши кисти Photoshop",_R="Ваши градиенты Photoshop",ER="Ваши узоры Photoshop",wR="Ваши стили Photoshop",xR="Ваши фигуры Photoshop",LR="Ваши образцы предв. версии Ps",OR="Ваши кисти предв. версии Ps",SR="Ваши градиенты предв. версии Ps",TR="Ваши узоры предв. версии Ps",PR="Ваши стили предв. версии Ps",IR="Ваши фигуры предв. версии Ps",AR={TOOLKIT_NAME_DEFAULT:gR,TOOLKIT_NAME_PHOTOSHOP:vR,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:yR,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:bR,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:_R,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:ER,TOOLKIT_NAME_PHOTOSHOP_STYLES:wR,TOOLKIT_NAME_PHOTOSHOP_SHAPES:xR,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:LR,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:OR,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:SR,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:TR,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:PR,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:IR},CR=Object.freeze({__proto__:null,TOOLKIT_NAME_DEFAULT:gR,TOOLKIT_NAME_PHOTOSHOP:vR,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:yR,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:bR,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:_R,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:ER,TOOLKIT_NAME_PHOTOSHOP_STYLES:wR,TOOLKIT_NAME_PHOTOSHOP_SHAPES:xR,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:LR,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:OR,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:SR,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:TR,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:PR,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:IR,default:AR}),kR="Ditt Toolkit",DR="Ditt Photoshop-bibliotek",NR="Dina Photoshop-färgrutor",RR="Dina Photoshop-penslar",MR="Dina Photoshop-övertoningar",jR="Dina Photoshop-mönster",FR="Dina Photoshop-format",ZR="Dina Photoshop-former",BR="Färgrutor i den tidiga Ps-versionen",GR="Penslar i den tidiga Ps-versionen",UR="Övertoningar i den tidiga Ps-versionen",HR="Mönster i den tidiga Ps-versionen",zR="Format i den tidiga Ps-versionen",VR="Former i den tidiga Ps-versionen",YR={TOOLKIT_NAME_DEFAULT:kR,TOOLKIT_NAME_PHOTOSHOP:DR,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:NR,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:RR,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:MR,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:jR,TOOLKIT_NAME_PHOTOSHOP_STYLES:FR,TOOLKIT_NAME_PHOTOSHOP_SHAPES:ZR,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:BR,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:GR,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:UR,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:HR,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:zR,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:VR},WR=Object.freeze({__proto__:null,TOOLKIT_NAME_DEFAULT:kR,TOOLKIT_NAME_PHOTOSHOP:DR,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:NR,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:RR,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:MR,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:jR,TOOLKIT_NAME_PHOTOSHOP_STYLES:FR,TOOLKIT_NAME_PHOTOSHOP_SHAPES:ZR,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:BR,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:GR,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:UR,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:HR,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:zR,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:VR,default:YR}),KR="Araç Setiniz",$R="Photoshop Kitaplığınız",qR="Photoshop Renk Örnekleriniz",XR="Photoshop Fırçalarınız",JR="Photoshop Degradeleriniz",QR="Photoshop Desenleriniz",eM="Photoshop Stilleriniz",tM="Photoshop Şekilleriniz",rM="Ps Ön Sürüm Renk Örnekleriniz",nM="Ps Ön Sürüm Fırçalarınız",iM="Ps Ön Sürüm Degradeleriniz",oM="Ps Ön Sürüm Desenleriniz",aM="Ps Ön Sürüm Stilleriniz",sM="Ps Ön Sürüm Şekilleriniz",cM={TOOLKIT_NAME_DEFAULT:KR,TOOLKIT_NAME_PHOTOSHOP:$R,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:qR,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:XR,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:JR,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:QR,TOOLKIT_NAME_PHOTOSHOP_STYLES:eM,TOOLKIT_NAME_PHOTOSHOP_SHAPES:tM,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:rM,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:nM,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:iM,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:oM,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:aM,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:sM},lM=Object.freeze({__proto__:null,TOOLKIT_NAME_DEFAULT:KR,TOOLKIT_NAME_PHOTOSHOP:$R,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:qR,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:XR,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:JR,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:QR,TOOLKIT_NAME_PHOTOSHOP_STYLES:eM,TOOLKIT_NAME_PHOTOSHOP_SHAPES:tM,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:rM,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:nM,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:iM,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:oM,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:aM,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:sM,default:cM}),uM="Мій інструментарій",dM="Моя бібліотека Photoshop",pM="Ваші зразки робіт, створені за допомогою Photoshop",hM="Ваші пензлі Photoshop",fM="Ваші градієнти Photoshop",mM="Ваші візерунки Photoshop",gM="Ваші стилі Photoshop",vM="Ваші фігури Photoshop",yM="Ваші зразки Ps, доступні напередодні випуску",bM="Ваші пензлі Ps, доступні напередодні випуску",_M="Ваші градієнти Ps, доступні напередодні випуску",EM="Ваші візерунки Ps, доступні напередодні випуску",wM="Ваші стилі Ps, доступні напередодні випуску",xM="Ваші фігури Ps, доступні напередодні випуску",LM={TOOLKIT_NAME_DEFAULT:uM,TOOLKIT_NAME_PHOTOSHOP:dM,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:pM,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:hM,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:fM,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:mM,TOOLKIT_NAME_PHOTOSHOP_STYLES:gM,TOOLKIT_NAME_PHOTOSHOP_SHAPES:vM,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:yM,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:bM,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:_M,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:EM,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:wM,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:xM},OM=Object.freeze({__proto__:null,TOOLKIT_NAME_DEFAULT:uM,TOOLKIT_NAME_PHOTOSHOP:dM,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:pM,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:hM,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:fM,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:mM,TOOLKIT_NAME_PHOTOSHOP_STYLES:gM,TOOLKIT_NAME_PHOTOSHOP_SHAPES:vM,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:yM,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:bM,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:_M,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:EM,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:wM,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:xM,default:LM}),SM="您的工具箱",TM="您的 Photoshop 库",PM="您的 Photoshop 色板",IM="您的 Photoshop 画笔",AM="您的 Photoshop 渐变",CM="您的 Photoshop 图案",kM="您的 Photoshop 样式",DM="您的 Photoshop 形状",NM="您的 PS Prerelease 色板",RM="您的 PS Prerelease 画笔",MM="您的 PS Prerelease 渐变",jM="您的 PS Prerelease 图案",FM="您的 PS Prerelease 样式",ZM="您的 PS Prerelease 形状",BM={TOOLKIT_NAME_DEFAULT:SM,TOOLKIT_NAME_PHOTOSHOP:TM,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:PM,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:IM,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:AM,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:CM,TOOLKIT_NAME_PHOTOSHOP_STYLES:kM,TOOLKIT_NAME_PHOTOSHOP_SHAPES:DM,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:NM,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:RM,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:MM,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:jM,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:FM,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:ZM},GM=Object.freeze({__proto__:null,TOOLKIT_NAME_DEFAULT:SM,TOOLKIT_NAME_PHOTOSHOP:TM,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:PM,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:IM,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:AM,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:CM,TOOLKIT_NAME_PHOTOSHOP_STYLES:kM,TOOLKIT_NAME_PHOTOSHOP_SHAPES:DM,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:NM,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:RM,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:MM,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:jM,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:FM,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:ZM,default:BM}),UM="您的工具組。",HM="您的 Photoshop 資料庫",zM="您的 Photoshop 色票",VM="您的 Photoshop 筆刷",YM="您的 Photoshop 漸層",WM="您的 Photoshop 圖樣圖樣",KM="您的 Photoshop 樣式",$M="您的 Photoshop 形狀",qM="您的 Ps 預先發佈色票",XM="您的 Ps 預先發佈筆刷",JM="您的 Ps 預先發佈漸層",QM="您的 Ps 預先發佈圖樣",ej="您的 Ps 預先發佈樣式",tj="您的 Ps 預先發佈形狀",rj={TOOLKIT_NAME_DEFAULT:UM,TOOLKIT_NAME_PHOTOSHOP:HM,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:zM,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:VM,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:YM,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:WM,TOOLKIT_NAME_PHOTOSHOP_STYLES:KM,TOOLKIT_NAME_PHOTOSHOP_SHAPES:$M,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:qM,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:XM,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:JM,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:QM,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:ej,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:tj},nj=Object.freeze({__proto__:null,TOOLKIT_NAME_DEFAULT:UM,TOOLKIT_NAME_PHOTOSHOP:HM,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:zM,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:VM,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:YM,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:WM,TOOLKIT_NAME_PHOTOSHOP_STYLES:KM,TOOLKIT_NAME_PHOTOSHOP_SHAPES:$M,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:qM,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:XM,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:JM,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:QM,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:ej,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:tj,default:rj}),ij="Your Toolkit",oj="Your Photoshop Library",aj="Your Photoshop Swatches",sj="Your Photoshop Brushes",cj="Your Photoshop Gradients",lj="Your Photoshop Patterns",uj="Your Photoshop Styles",dj="Your Photoshop Shapes",pj="Your Ps Prerelease Swatches",hj="Your Ps Prerelease Brushes",fj="Your Ps Prerelease Gradients",mj="Your Ps Prerelease Patterns",gj="Your Ps Prerelease Styles",vj="Your Ps Prerelease Shapes",yj={TOOLKIT_NAME_DEFAULT:ij,TOOLKIT_NAME_PHOTOSHOP:oj,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:aj,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:sj,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:cj,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:lj,TOOLKIT_NAME_PHOTOSHOP_STYLES:uj,TOOLKIT_NAME_PHOTOSHOP_SHAPES:dj,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:pj,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:hj,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:fj,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:mj,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:gj,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:vj},bj=Object.freeze({__proto__:null,TOOLKIT_NAME_DEFAULT:ij,TOOLKIT_NAME_PHOTOSHOP:oj,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:aj,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:sj,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:cj,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:lj,TOOLKIT_NAME_PHOTOSHOP_STYLES:uj,TOOLKIT_NAME_PHOTOSHOP_SHAPES:dj,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:pj,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:hj,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:fj,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:mj,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:gj,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:vj,default:yj}),_j="[u] ćčŁįb_Your Toolkit",Ej="[t] ćčŁįb_Your Photoshop Library",wj="[m] ćčŁįb_Your Photoshop Swatches",xj="[i] ćčŁįb_Your Photoshop Brushes",Lj="[h] ćčŁįb_Your Photoshop Gradients",Oj="[j] ćčŁįb_Your Photoshop Patterns",Sj="[l] ćčŁįb_Your Photoshop Styles",Tj="[k] ćčŁįb_Your Photoshop Shapes",Pj="[qB] ćčŁįb_Your Ps Prerelease Swatches",Ij="[p+] ćčŁįb_Your Ps Prerelease Brushes",Aj="[p8] ćčŁįb_Your Ps Prerelease Gradients",Cj="[p9] ćčŁįb_Your Ps Prerelease Patterns",kj="[qA] ćčŁįb_Your Ps Prerelease Styles",Dj="[p/] ćčŁįb_Your Ps Prerelease Shapes",Nj={TOOLKIT_NAME_DEFAULT:_j,TOOLKIT_NAME_PHOTOSHOP:Ej,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:wj,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:xj,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:Lj,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:Oj,TOOLKIT_NAME_PHOTOSHOP_STYLES:Sj,TOOLKIT_NAME_PHOTOSHOP_SHAPES:Tj,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:Pj,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:Ij,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:Aj,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:Cj,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:kj,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:Dj},Rj=Object.freeze({__proto__:null,TOOLKIT_NAME_DEFAULT:_j,TOOLKIT_NAME_PHOTOSHOP:Ej,TOOLKIT_NAME_PHOTOSHOP_SWATCHES:wj,TOOLKIT_NAME_PHOTOSHOP_BRUSHES:xj,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS:Lj,TOOLKIT_NAME_PHOTOSHOP_PATTERNS:Oj,TOOLKIT_NAME_PHOTOSHOP_STYLES:Sj,TOOLKIT_NAME_PHOTOSHOP_SHAPES:Tj,TOOLKIT_NAME_PHOTOSHOP_SWATCHES_PR:Pj,TOOLKIT_NAME_PHOTOSHOP_BRUSHES_PR:Ij,TOOLKIT_NAME_PHOTOSHOP_GRADIENTS_PR:Aj,TOOLKIT_NAME_PHOTOSHOP_PATTERNS_PR:Cj,TOOLKIT_NAME_PHOTOSHOP_STYLES_PR:kj,TOOLKIT_NAME_PHOTOSHOP_SHAPES_PR:Dj,default:Nj});function Mj(e,t){var r=e.toString();if(r.length<t){var n=[];n.length=t-r.length+1,r=n.join("0")+r}return r}function jj(e,t){return Object.getOwnPropertyNames(t).forEach((function(r){if("object"==typeof t[r])"object"!=typeof e[r]&&(e[r]={}),jj(e[r],t[r]);else{var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n)}})),e}function Fj(e,t,r){e.forEach((function(e){setTimeout((function(){e(t,r)}))}))}var Zj={prod:"cc-api-data.adobe.io",stage:"cc-api-data-stage.adobe.io",dev:"cc-api-data-dev.adobe.io"},Bj="/ingest",Gj={ENVIRONMENT:"prod",ALLOW_NO_TOKEN:!1,ANALYTICS_INGEST_TYPE:"dunamis",ANALYTICS_MAX_QUEUED_EVENTS:50,ANALYTICS_DEBOUNCE:1e4,ANALYTICS_API_KEY:null,ANALYTICS_USER_AGENT:null,ANALYTICS_X_PRODUCT:null,ANALYTICS_X_PRODUCT_LOCATION:void 0,ANALYTICS_PROJECT:null,ANALYTICS_USER_REGION:"UNKNOWN",TIMESTAMP_PROPERTY_NAME:"event.dts_end"},Uj=["ANALYTICS_API_KEY","ANALYTICS_X_PRODUCT","ANALYTICS_PROJECT"];function Hj(e,t){e=e||{},t=t||{};var r=e=>{throw this._log(e),new Error("ERROR: "+e)};this._queuedEvents=[],this._queuedCallbacks=[],this._lastSendTime=0,this._isEnabled=!1,this._dependencies=jj({},e),e.getAccessToken&&"function"==typeof e.getAccessToken||r("Missing dependency: getAccessToken"),this._options={},Object.keys(Gj).forEach((e=>{this._options[e]=t[e]||Gj[e]})),Uj.forEach((e=>{this._options[e]||r("Missing option: "+e)})),"undefined"==typeof fetch&&r("Ingest requires fetch - if in a node environment, set 'global.fetch = require('node-fetch');'")}Hj.prototype._log=function(e){var t=this._dependencies.log;t&&t("Ingest :: "+e)},Hj.prototype._getAgent=function(e,t){this._dependencies.getAgent?this._dependencies.getAgent(e,t):t(null,{})},Hj.prototype._getAccessToken=function(e){this._dependencies.getAccessToken(e)},Hj.prototype._clearAccessToken=function(){this._dependencies.clearAccessToken&&this._dependencies.clearAccessToken()},Hj.prototype._getEnvironment=function(){return Zj[this._options.ENVIRONMENT]?this._options.ENVIRONMENT:"prod"},Hj.prototype._getAnalyticsHost=function(){return Zj[this._getEnvironment()]},Hj.prototype._formatTimestamp=function(e){var t=e.getFullYear(),r=Mj(e.getMonth()+1,2),n=Mj(e.getDate(),2),i=Mj(e.getHours(),2),o=Mj(e.getMinutes(),2),a=Mj(e.getSeconds(),2),s=Mj(e.getMilliseconds(),3),c=e.getTimezoneOffset(),l=c<0?"+":"-",u=Math.floor(Math.abs(c)/60),d=Math.abs(c)%60;return t+"-"+r+"-"+n+"T"+i+":"+o+":"+a+"."+s+(l+Mj(u,2)+Mj(d,2))},Hj.prototype._updateDebounce=function(e){var t=e&&(e["retry-after"]||e["Retry-After"]),r=0;if(t){var n;try{n=parseInt(t,10)}catch(e){}if(n)r=Math.max(0,n);else{var i=Date.parse(t);if(i){var o=(new Date).valueOf();r=Math.max(0,i-o)/1e3+Math.floor(10*Math.random())}}}this._options.ANALYTICS_DEBOUNCE=Math.max(1e3*r,this._options.ANALYTICS_DEBOUNCE)},Hj.prototype._queueEvent=function(e){this._queuedEvents.length>=this._options.ANALYTICS_MAX_QUEUED_EVENTS&&this._queuedEvents.shift(),this._queuedEvents.push(e)},Hj.prototype._requeueEvents=function(e){this._queuedEvents=e.concat(this._queuedEvents),this._queuedEvents=function(e,t){var r=e;if(e&&e.length>t&&t>0){var n=e.length-t;r=e.slice(n,e.length)}return r}(this._queuedEvents,this._options.ANALYTICS_MAX_QUEUED_EVENTS)},Hj.prototype._sendAnalytics=function(e,t,r){if(r=r||0,t&&this._queuedCallbacks.push(t),!this._isEnabled||0===this._queuedEvents.length){var n=this._queuedCallbacks;return this._queuedCallbacks=[],void(this._isEnabled?Fj(n,null,0):Fj(n,new Error("Analytics Disabled")))}var i=this._options.ANALYTICS_DEBOUNCE;if(e&&(i=0,clearTimeout(this._pendingSendAnalyticsTimeout),this._pendingSendAnalyticsTimeout=void 0),this._sendingEvents||this._pendingSendAnalyticsTimeout)e&&(this._fastFollow=!0);else{var o=(new Date).valueOf();if(o-this._lastSendTime<i)this._pendingSendAnalyticsTimeout=setTimeout((()=>{this._pendingSendAnalyticsTimeout=void 0,this._sendAnalytics()}),i);else{this._lastSendTime=o,this._sendingEvents=this._queuedEvents,this._sendingCallbacks=this._queuedCallbacks,this._queuedEvents=[],this._queuedCallbacks=[];var a,s=(a=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)})()+a()+"-"+a()+"-"+a()+"-"+a()+"-"+a()+a()+a(),c="["+s+"] ",l={events:this._sendingEvents},u=e=>{var t=this._queuedEvents?this._queuedEvents.length:0;if(this._sendingEvents){var r=this._sendingEvents.length;e?(this._requeueEvents(this._sendingEvents),this._log(c+"Error sending "+r+" events: "+e)):this._log(c+"Success sending "+r+" events: "+JSON.stringify(this._sendingEvents)),delete this._sendingEvents;var n=this._sendingCallbacks;delete this._sendingCallbacks,e?Fj(n,e):Fj(n,null,r)}t>0&&this._sendAnalytics(this._fastFollow),this._fastFollow=!1},d=(e,t)=>{if(this._updateDebounce(t),401===e&&0===r)return this._clearAccessToken(),this._requeueEvents(this._sendingEvents),delete this._sendingEvents,this._queuedCallbacks=this._sendingCallbacks.concat(this._queuedCallbacks),delete this._sendingCallbacks,this._log(c+"Access token is expired. Retry one more time."),void this._sendAnalytics(!0,void 0,r+1);200===e?u():u(new Error("Unexpected Response: "+e))};this._getAccessToken(((e,t)=>{if(e&&!this._options.ALLOW_NO_TOKEN)return void u(e);if(!(t&&0!==t.length||this._options.ALLOW_NO_TOKEN))return void u(new Error("No access token"));var r="https://"+this._getAnalyticsHost();this._log(c+"Sending analytics to "+r+Bj);const n={"x-api-key":this._options.ANALYTICS_API_KEY,"X-Product":this._options.ANALYTICS_X_PRODUCT,"User-Agent":this._options.ANALYTICS_USER_AGENT||this._options.ANALYTICS_API_KEY,"X-Request-Id":s,"Content-Type":"application/json"};t&&(n.Authorization="Bearer "+t),this._options.ANALYTICS_X_PRODUCT_LOCATION&&(n["X-Product-Location"]=this._options.ANALYTICS_X_PRODUCT_LOCATION),this._getAgent(r,((e,t)=>{const i={method:"POST",headers:n,body:JSON.stringify(l)};t&&t.agent?i.agent=t&&t.agent:jj(i,t||{}),fetch(r+Bj,i).then((e=>{d(e.status,e.headers)}),u)}))}))}}},Hj.prototype.enable=function(e){this._isEnabled=e,e&&this._sendAnalytics(!0)},Hj.prototype.postEvent=function(e,t,r){var n=r||{},i="event.dts_start",o="event.coll_dts",a=n.TIMESTAMP_PROPERTY_NAME||this._options.TIMESTAMP_PROPERTY_NAME,s=n.ANALYTICS_PROJECT||this._options.ANALYTICS_PROJECT,c=n.ANALYTICS_INGEST_TYPE||this._options.ANALYTICS_INGEST_TYPE;e[o]&&e[o]instanceof Date&&(e[o]=this._formatTimestamp(e[o])),e[i]&&e[i]instanceof Date&&(e[i]=this._formatTimestamp(e[i])),e[a]||(e[a]=this._formatTimestamp(new Date)),e[a]instanceof Date&&(e[a]=this._formatTimestamp(e[a]));var l={time:e[a],project:s,environment:this._getEnvironment(),ingesttype:c,data:e};e.simulate?(this._log("event sim:"+JSON.stringify(l)),t&&Fj([t],null,0)):(this._queueEvent(l),this._sendAnalytics(!1,t))},Hj.prototype.flush=function(e,t){this._sendAnalytics(e,t)};var zj=Hj,Vj=Object.freeze(function(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(r){if("default"!==r&&!(r in e)){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}}))})),Object.freeze(e)}({__proto__:null,default:zj},[zj]))},97582:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__addDisposableResource:()=>R,__assign:()=>o,__asyncDelegator:()=>O,__asyncGenerator:()=>L,__asyncValues:()=>S,__await:()=>x,__awaiter:()=>f,__classPrivateFieldGet:()=>k,__classPrivateFieldIn:()=>N,__classPrivateFieldSet:()=>D,__createBinding:()=>g,__decorate:()=>s,__disposeResources:()=>j,__esDecorate:()=>l,__exportStar:()=>v,__extends:()=>i,__generator:()=>m,__importDefault:()=>C,__importStar:()=>A,__makeTemplateObject:()=>T,__metadata:()=>h,__param:()=>c,__propKey:()=>d,__read:()=>b,__rest:()=>a,__rewriteRelativeImportExtension:()=>F,__runInitializers:()=>u,__setFunctionName:()=>p,__spread:()=>_,__spreadArray:()=>w,__spreadArrays:()=>E,__values:()=>y,default:()=>Z});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function s(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function c(e,t){return function(r,n){t(r,n,e)}}function l(e,t,r,n,i,o){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,c=n.kind,l="getter"===c?"get":"setter"===c?"set":"value",u=!t&&e?n.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),p=!1,h=r.length-1;h>=0;h--){var f={};for(var m in n)f[m]="access"===m?{}:n[m];for(var m in n.access)f.access[m]=n.access[m];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var g=(0,r[h])("accessor"===c?{get:d.get,set:d.set}:d[l],f);if("accessor"===c){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(s=a(g.get))&&(d.get=s),(s=a(g.set))&&(d.set=s),(s=a(g.init))&&i.unshift(s)}else(s=a(g))&&("field"===c?i.unshift(s):d[l]=s)}u&&Object.defineProperty(u,n.name,d),p=!0}function u(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function h(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))}function m(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}var g=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function v(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||g(t,e,r)}function y(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function _(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function E(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}function w(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function x(e){return this instanceof x?(this.v=e,this):new x(e)}function L(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",(function(e){return function(t){return Promise.resolve(t).then(e,l)}})),n[Symbol.asyncIterator]=function(){return this},n;function a(e,t){i[e]&&(n[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||s(e,t)}))},t&&(n[e]=t(n[e])))}function s(e,t){try{(r=i[e](t)).value instanceof x?Promise.resolve(r.value.v).then(c,l):u(o[0][2],r)}catch(e){u(o[0][3],e)}var r}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function O(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:x(e[n](t)),done:!1}:i?i(t):t}:i}}function S(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=y(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,(t=e[r](t)).done,t.value)}))}}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var P=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},I=function(e){return I=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},I(e)};function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=I(e),n=0;n<r.length;n++)"default"!==r[n]&&g(t,e,r[n]);return P(t,e),t}function C(e){return e&&e.__esModule?e:{default:e}}function k(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function D(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function N(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function R(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var M="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function j(e){function t(t){e.error=e.hasError?new M(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function i(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(i,(function(e){return t(e),i()}))}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function F(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,(function(e,r,n,i,o){return r?t?".jsx":".js":!n||i&&o?n+i+"."+o.toLowerCase()+"js":e})):e}const Z={__extends:i,__assign:o,__rest:a,__decorate:s,__param:c,__esDecorate:l,__runInitializers:u,__propKey:d,__setFunctionName:p,__metadata:h,__awaiter:f,__generator:m,__createBinding:g,__exportStar:v,__values:y,__read:b,__spread:_,__spreadArrays:E,__spreadArray:w,__await:x,__asyncGenerator:L,__asyncDelegator:O,__asyncValues:S,__makeTemplateObject:T,__importStar:A,__importDefault:C,__classPrivateFieldGet:k,__classPrivateFieldSet:D,__classPrivateFieldIn:N,__addDisposableResource:R,__disposeResources:j,__rewriteRelativeImportExtension:F}},58400:e=>{"use strict";e.exports={select:"Vybrat"}},62064:e=>{"use strict";e.exports={select:"Vælg"}},67580:e=>{"use strict";e.exports=JSON.parse('{"select":"Auswählen"}')},265:e=>{"use strict";e.exports={select:"Select"}},35737:e=>{"use strict";e.exports=JSON.parse('{"select":"Seleccionar"}')},45432:e=>{"use strict";e.exports={select:"Valitse"}},99846:e=>{"use strict";e.exports=JSON.parse('{"select":"Sélectionner"}')},55046:e=>{"use strict";e.exports=JSON.parse('{"select":"Kijelölés"}')},14124:e=>{"use strict";e.exports=JSON.parse('{"select":"Seleziona"}')},17169:e=>{"use strict";e.exports={select:"選択"}},2555:e=>{"use strict";e.exports={select:"선택"}},3934:e=>{"use strict";e.exports={select:"Velg"}},51893:e=>{"use strict";e.exports=JSON.parse('{"select":"Selecteren"}')},70598:e=>{"use strict";e.exports={select:"Zaznacz"}},90086:e=>{"use strict";e.exports=JSON.parse('{"select":"Selecionar"}')},15335:e=>{"use strict";e.exports={select:"Выбрать"}},12791:e=>{"use strict";e.exports={select:"Markera"}},79977:e=>{"use strict";e.exports={select:"Seç"}},62717:e=>{"use strict";e.exports={select:"Вибрати"}},99451:e=>{"use strict";e.exports={select:"选择"}},76026:e=>{"use strict";e.exports={select:"選取"}},22187:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Vymazat hledání"}')},95066:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Ryd søgning"}')},28306:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Suche zurücksetzen"}')},19641:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Clear search"}')},59358:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Borrar búsqueda"}')},14879:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Tyhjennä haku"}')},11034:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Effacer la recherche"}')},51600:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Keresés törlése"}')},19202:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Cancella ricerca"}')},36079:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"検索をクリア"}')},88024:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"검색 지우기"}')},81459:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Tøm søk"}')},19878:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Zoekactie wissen"}')},84738:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Wyczyść zawartość wyszukiwania"}')},98384:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Limpar pesquisa"}')},73755:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Очистить поиск"}')},45116:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Rensa sökning"}')},60199:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Aramayı temizle"}')},92403:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"Очистити пошук"}')},57349:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"清除搜索"}')},72113:e=>{"use strict";e.exports=JSON.parse('{"Clear search":"清除搜尋條件"}')},78712:e=>{"use strict";e.exports=JSON.parse('{"close":"Zavřít","error":"Chyba","info":"Informace","success":"Úspěch","warning":"Upozornění"}')},22344:e=>{"use strict";e.exports=JSON.parse('{"close":"Luk","error":"Fejl","info":"Oplysninger","success":"Fuldført","warning":"Advarsel"}')},86919:e=>{"use strict";e.exports=JSON.parse('{"close":"Schließen","error":"Fehler","info":"Informationen","success":"Erfolg","warning":"Warnung"}')},60342:e=>{"use strict";e.exports=JSON.parse('{"close":"Close","error":"Error","warning":"Warning","success":"Success","info":"Information"}')},89340:e=>{"use strict";e.exports=JSON.parse('{"close":"Cerrar","error":"Error","info":"Información","success":"Éxito","warning":"Advertencia"}')},74633:e=>{"use strict";e.exports=JSON.parse('{"close":"Sulje","error":"Virhe","info":"Tiedot","success":"Onnistui","warning":"Varoitus"}')},78313:e=>{"use strict";e.exports=JSON.parse('{"close":"Fermer","error":"Erreur","info":"Informations","success":"Succès","warning":"Avertissement"}')},87992:e=>{"use strict";e.exports=JSON.parse('{"close":"Bezárás","error":"Hiba","info":"Információ","success":"Siker","warning":"Figyelmeztetés"}')},20160:e=>{"use strict";e.exports=JSON.parse('{"close":"Chiudi","error":"Errore","info":"Informazioni","success":"Operazione riuscita","warning":"Avvertenza"}')},19660:e=>{"use strict";e.exports=JSON.parse('{"close":"閉じる","error":"エラー","info":"情報","success":"成功","warning":"警告"}')},2437:e=>{"use strict";e.exports=JSON.parse('{"close":"닫기","error":"오류","info":"정보","success":"성공","warning":"경고"}')},66830:e=>{"use strict";e.exports=JSON.parse('{"close":"Lukk","error":"Feil","info":"Informasjon","success":"Vellykket","warning":"Advarsel"}')},30653:e=>{"use strict";e.exports=JSON.parse('{"close":"Sluiten","error":"Fout","info":"Informatie","success":"Geslaagd","warning":"Waarschuwing"}')},44612:e=>{"use strict";e.exports=JSON.parse('{"close":"Zamknij","error":"Błąd","info":"Informacja","success":"Powodzenie","warning":"Ostrzeżenie"}')},71689:e=>{"use strict";e.exports=JSON.parse('{"close":"Fechar","error":"Erro","info":"Informação","success":"Sucesso","warning":"Aviso"}')},37281:e=>{"use strict";e.exports=JSON.parse('{"close":"Закрыть","error":"Ошибка","info":"Информация","success":"Успешно","warning":"Предупреждение"}')},85308:e=>{"use strict";e.exports=JSON.parse('{"close":"Stäng","error":"Fel","info":"Information","success":"Lyckades","warning":"Varning"}')},24542:e=>{"use strict";e.exports=JSON.parse('{"close":"Kapat","error":"Hata","info":"Bilgiler","success":"Başarılı","warning":"Uyarı"}')},57933:e=>{"use strict";e.exports=JSON.parse('{"close":"Закрити","error":"Помилка","info":"Інформація","success":"Успішно","warning":"Попередження"}')},51525:e=>{"use strict";e.exports=JSON.parse('{"close":"关闭","error":"错误","info":"信息","success":"成功","warning":"警告"}')},33621:e=>{"use strict";e.exports=JSON.parse('{"close":"關閉","error":"錯誤","info":"資訊","success":"成功","warning":"警告"}')}},__webpack_module_cache__={},deferred,leafPrototypes,getProto,inProgress,dataWebpackPrefix;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},deferred=[],__webpack_require__.O=(e,t,r,n)=>{if(!t){var i=1/0;for(c=0;c<deferred.length;c++){for(var[t,r,n]=deferred[c],o=!0,a=0;a<t.length;a++)(!1&n||i>=n)&&Object.keys(__webpack_require__.O).every((e=>__webpack_require__.O[e](t[a])))?t.splice(a--,1):(o=!1,n<i&&(i=n));if(o){deferred.splice(c--,1);var s=r();void 0!==s&&(e=s)}}return e}n=n||0;for(var c=deferred.length;c>0&&deferred[c-1][2]>n;c--)deferred[c]=deferred[c-1];deferred[c]=[t,r,n]},__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},getProto=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,__webpack_require__.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var r=Object.create(null);__webpack_require__.r(r);var n={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var i=2&t&&e;"object"==typeof i&&!~leafPrototypes.indexOf(i);i=getProto(i))Object.getOwnPropertyNames(i).forEach((t=>n[t]=()=>e[t]));return n.default=()=>e,__webpack_require__.d(r,n),r},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce(((t,r)=>(__webpack_require__.f[r](e,t),t)),[])),__webpack_require__.u=e=>(({59:"css/AEFT-css-generated-15-main-scss",144:"SpIconCCLibrary",188:"SpTray",201:"SpMenu",208:"XIconShop",386:"SpIconFlag",406:"css/IDSN-css-light-main-scss",437:"css/PPRO-css-generated-53-main-scss",487:"XIconCCLibrary",515:"XIconBrush",532:"css/PPRO-css-generated-50-main-scss",539:"css/AEFT-css-generated-43-main-scss",554:"XIconUserGroup",583:"css/PPRO-css-generated-23-main-scss",608:"css/CLIO-css-light-main-scss",622:"css/AEFT-css-generated-5-main-scss",669:"SpProgressCircle",748:"SpIconLink",810:"css/AEFT-css-generated-80-main-scss",834:"SpIconShoppingCart",926:"css/PPRO-css-generated-98-main-scss",956:"SpIconInvite",1016:"css/PPRO-css-generated-55-main-scss",1071:"css/PowerPoint-css-lighter-main-scss",1255:"SpActionGroup",1258:"XIconMore",1311:"css/PPRO-css-generated-15-main-scss",1331:"css/STGR-css-darker-main-scss",1341:"css/PPRO-css-generated-45-main-scss",1441:"css/AEFT-css-generated-83-main-scss",1465:"css/StyleGuide-css-lighter-main-scss",1573:"css/IDSN-css-lighter-main-scss",1583:"css/PHXS-css-darker-main-scss",1596:"SpIconRefresh",1605:"SpIconDownloadFromCloudOutline",1672:"css/KBRG-css-darker-main-scss",1766:"css/AEFT-css-generated-60-main-scss",1776:"SpIconOpenIn",1813:"css/AEFT-css-generated-3-main-scss",1839:"css/DRWV-css-light-main-scss",1861:"SpDropZone",1866:"XIconChevronRight",1890:"css/DRWV-css-darker-main-scss",1892:"SWCExpressMediumScale",1894:"XIconCheckmark",1952:"css/PPRO-css-generated-35-main-scss",1977:"SpIconCloudDisconnected",2e3:"css/AEFT-css-generated-48-main-scss",2002:"css/PPRO-css-generated-25-main-scss",2012:"css/AEFT-css-generated-98-main-scss",2039:"SWCExpressDarkestTheme",2120:"SpIconClose",2124:"css/AEFT-css-generated-63-main-scss",2131:"css/PPRO-css-generated-63-main-scss",2194:"css/PPRO-css-generated-70-main-scss",2205:"SpIconSortOrderDown",2216:"css/PPRO-css-generated-73-main-scss",2261:"SpCheckbox",2269:"css/PPRO-css-generated-83-main-scss",2360:"SpIllustratedMessage",2369:"css/PPRO-css-generated-33-main-scss",2397:"css/PPRO-css-dark-main-scss",2399:"css/AEFT-css-generated-58-main-scss",2425:"css/PPRO-css-generated-8-main-scss",2472:"css/PPRO-css-generated-3-main-scss",2497:"css/AEFT-css-generated-30-main-scss",2509:"XIconCloud",2515:"SpIconInfoOutline",2517:"SpIconLinkOut",2581:"css/AEFT-css-generated-38-main-scss",2620:"XIconSortOrderDown",2625:"css/AEFT-css-generated-25-main-scss",2636:"SpIconTextParagraph",2652:"XIconFolderAdd",2659:"SWCExpressLargeScale",2663:"css/PHXS_UXP-css-light-main-scss",2668:"SpActionMenu",2697:"SpIconCloudError",2716:"css/AEFT-css-generated-45-main-scss",2729:"SWCLightTheme",2764:"XIconClassicGridView",2777:"css/KBRG-css-dark-main-scss",2819:"SpIconCloud",2861:"css/AEFT-css-generated-95-main-scss",2880:"css/AEFT-css-light-main-scss",2923:"css/AEFT-css-generated-10-main-scss",2968:"SpIconText",2984:"css/PPRO-css-generated-60-main-scss",2988:"XIconFlag",3019:"css/PPRO-css-light-main-scss",3113:"css/CLIO-css-darker-main-scss",3149:"SpIconFilter",3223:"SpSwitch",3239:"css/AEFT-css-generated-53-main-scss",3240:"css/ILST_UXP-css-lighter-main-scss",3241:"css/PPRO-css-generated-58-main-scss",3326:"css/ACCC-css-darker-main-scss",3368:"css/AEFT-css-generated-50-main-scss",3461:"SpIconAdd",3482:"css/AEFT-css-generated-78-main-scss",3498:"SpIconUserGroup",3633:"css/DRWV-css-lighter-main-scss",3659:"css/PPRO-css-generated-38-main-scss",3681:"css/AEFT-css-generated-8-main-scss",3703:"css/AEFT-css-generated-93-main-scss",3764:"SpPicker",3769:"css/PPRO-css-generated-20-main-scss",3775:"css/PHXS-css-light-main-scss",3795:"SpIconGlobe",3869:"css/PowerPoint-css-darker-main-scss",3878:"css/PPRO-css-generated-40-main-scss",3882:"SpIconFolder",3945:"css/PPRO-css-generated-48-main-scss",4029:"css/ILST-css-light-main-scss",4031:"css/ILST_UXP-css-dark-main-scss",4051:"SpButtonGroup",4067:"SpIconSortOrderUp",4135:"css/PPRO-css-generated-68-main-scss",4146:"XIconVisibility",4192:"css/KBRG-css-lighter-main-scss",4214:"css/Word-css-lighter-main-scss",4231:"css/AEFT-css-darker-main-scss",4255:"SpIconDate",4268:"SWCMediumScale",4306:"SpDialog",4356:"css/AEFT-css-generated-18-main-scss",4386:"css/STGR-css-lighter-main-scss",4400:"SpActionButton",4450:"css/PPRO-css-generated-13-main-scss",4537:"SpOverlay",4541:"SpIconBrush",4549:"css/AEFT-css-generated-55-main-scss",4587:"SpIconUserLock",4589:"css/AEFT-css-generated-88-main-scss",4665:"css/PPRO-css-generated-75-main-scss",4668:"css/IDSN-css-darker-main-scss",4671:"css/DRWV-css-dark-main-scss",4687:"XIconCloudError",4738:"css/AEFT-css-generated-28-main-scss",4764:"SpIconClassicGridView",4787:"XIconLockClosed",4788:"SpIconBuilding",4882:"css/AEFT-css-generated-23-main-scss",4923:"css/IDSN-css-dark-main-scss",4959:"css/PHXS_UXP-css-dark-main-scss",5019:"css/ILST_UXP-css-light-main-scss",5035:"SpIconRename",5108:"css/AEFT-css-generated-85-main-scss",5144:"SpTheme",5155:"XIconRefresh",5169:"css/FLPR-css-dark-main-scss",5180:"css/ACCC-css-light-main-scss",5339:"SpCard",5341:"css/KBRG-css-lighter_mondo-main-scss",5378:"XIconImage",5408:"css/AEFT-css-generated-73-main-scss",5458:"SWCLargeScale",5502:"SpButton",5529:"SpPopover",5537:"SpIconMagnify",5548:"css/ILST-css-lighter-main-scss",5549:"SpIconSettings",5599:"css/AEFT-css-dark-main-scss",5660:"SpColorArea",5661:"css/PHXS-css-dark-main-scss",5670:"SpIconChevronLeft",5706:"SpIconMore",5724:"SpIconLockClosed",5812:"css/Figma-css-dark-main-scss",5874:"css/AEFT-css-generated-35-main-scss",5883:"SpIconShowMenu",5895:"css/GoogleSlides-css-lighter-main-scss",5897:"css/Figma-css-lighter-main-scss",6030:"css/ILST_UXP-css-darker-main-scss",6085:"XIconColorPalette",6142:"XIconBuilding",6153:"XIconFilter",6160:"XIconChevronLeft",6282:"XIconDelete",6284:"css/PPRO-css-generated-28-main-scss",6289:"css/PPRO-css-generated-10-main-scss",6301:"SpIconColorPalette",6305:"XIconSortOrderUp",6318:"XIconShoppingCart",6321:"css/PPRO-css-generated-18-main-scss",6365:"XIconText",6414:"SpIconImage",6462:"SpIconRailRightClose",6465:"css/KBRG-css-dark_mondo-main-scss",6488:"css/PPRO-css-generated-78-main-scss",6552:"css/PPRO-css-generated-5-main-scss",6589:"css/KBRG-css-light_mondo-main-scss",6624:"SpIconFolderOpen",6707:"XIconAddCircle",6754:"SpIconAddCircle",6776:"css/PPRO-css-generated-93-main-scss",6817:"SpTooltip",6837:"SpIconPublishRemove",6875:"SWCExpressLightTheme",6900:"css/AEFT-css-generated-75-main-scss",6939:"SpIconVisibility",6991:"SpIconDelete",7050:"css/AEFT-css-generated-13-main-scss",7057:"css/AEFT-css-generated-65-main-scss",7075:"XIconClose",7128:"css/PHXS-css-lighter-main-scss",7136:"css/PPRO-css-generated-43-main-scss",7213:"XIconEdit",7242:"SpIconBrowse",7254:"css/ILST-css-dark-main-scss",7283:"SpIconViewList",7311:"SWCLightestTheme",7326:"css/PPRO-css-generated-85-main-scss",7334:"css/AEFT-css-generated-20-main-scss",7423:"css/PPRO-css-generated-88-main-scss",7487:"SpIconUser",7553:"XIconShowMenu",7633:"XIconAdd",7665:"SpIconHelpOutline",7674:"SpIconEdit",7685:"SpIconShop",7725:"css/AEFT-css-dark-v7-main-scss",7775:"XIconFolder",7776:"css/ILST-css-darker-main-scss",7793:"SpIconGlobeSearch",7876:"XIconShare",7933:"css/SPRK-css-lighter-main-scss",7938:"css/GenStudio-css-lighter-main-scss",8051:"SWCDarkestTheme",8104:"XIconSettings",8121:"SpIconFilterCheck",8202:"SWCExpressLightestTheme",8211:"css/AEFT-css-generated-70-main-scss",8237:"css/AEFT-css-generated-90-main-scss",8320:"css/FLPR-css-lighter-main-scss",8362:"css/PHXS_UXP-css-lighter-main-scss",8422:"XIconInfo",8499:"css/PPRO-css-dark-v7-main-scss",8544:"css/PPRO-css-generated-95-main-scss",8637:"SpIconAlert",8655:"XIconRename",8684:"SWCDarkTheme",8689:"SWCExpressDarkTheme",8697:"SpIconChevronRight",8719:"XIconInvite",8740:"css/PPRO-css-generated-65-main-scss",8762:"XIconChevronDown",8797:"css/CLIO-css-lighter-main-scss",8843:"css/PPRO-css-generated-90-main-scss",8849:"SpStatusLight",8867:"XIconUser",8885:"SpTextfield",8908:"XIconCloudDisconnected",9011:"css/CLIO-css-dark-main-scss",9020:"SpIconFolderAdd",9107:"css/AEFT-css-generated-68-main-scss",9196:"SpIconChevronDown",9198:"SpColorSlider",9217:"XIconLink",9219:"SpIconOrganisations",9222:"XIconViewList",9297:"css/PHXS_UXP-css-darker-main-scss",9369:"css/AEFT-css-generated-40-main-scss",9469:"XIconAlert",9623:"css/PPRO-css-darker-main-scss",9686:"SpIconCheckmark",9690:"css/AH-css-darker-main-scss",9729:"css/Word-css-darker-main-scss",9754:"css/PPRO-css-generated-80-main-scss",9776:"css/PPRO-css-generated-30-main-scss",9860:"SpIconShare",9864:"SpIconInfo",9910:"css/AH-css-light-main-scss",9988:"css/AEFT-css-generated-33-main-scss"}[e]||e)+".bundle.js"),__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),inProgress={},dataWebpackPrefix="CCLibraries:",__webpack_require__.l=(e,t,r,n)=>{if(inProgress[e])inProgress[e].push(t);else{var i,o;if(void 0!==r)for(var a=document.getElementsByTagName("script"),s=0;s<a.length;s++){var c=a[s];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")==dataWebpackPrefix+r){i=c;break}}i||(o=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,__webpack_require__.nc&&i.setAttribute("nonce",__webpack_require__.nc),i.setAttribute("data-webpack",dataWebpackPrefix+r),i.src=e,0!==i.src.indexOf(window.location.origin+"/")&&(i.crossOrigin="anonymous")),inProgress[e]=[t];var l=(t,r)=>{i.onerror=i.onload=null,clearTimeout(u);var n=inProgress[e];if(delete inProgress[e],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach((e=>e(r))),t)return t(r)},u=setTimeout(l.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=l.bind(null,i.onerror),i.onload=l.bind(null,i.onload),o&&document.head.appendChild(i)}},__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),__webpack_require__.p="",(()=>{var e={179:0,3312:0};__webpack_require__.f.j=(t,r)=>{var n=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(3312!=t){var i=new Promise(((r,i)=>n=e[t]=[r,i]));r.push(n[2]=i);var o=__webpack_require__.p+__webpack_require__.u(t),a=new Error;__webpack_require__.l(o,(r=>{if(__webpack_require__.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var i=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",a.name="ChunkLoadError",a.type=i,a.request=o,n[1](a)}}),"chunk-"+t,t)}else e[t]=0},__webpack_require__.O.j=t=>0===e[t];var t=(t,r)=>{var n,i,[o,a,s]=r,c=0;if(o.some((t=>0!==e[t]))){for(n in a)__webpack_require__.o(a,n)&&(__webpack_require__.m[n]=a[n]);if(s)var l=s(__webpack_require__)}for(t&&t(r);c<o.length;c++)i=o[c],__webpack_require__.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return __webpack_require__.O(l)},r=self.webpackChunkCCLibraries=self.webpackChunkCCLibraries||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),__webpack_require__.O(void 0,[3312],(()=>__webpack_require__(77123))),__webpack_require__.O(void 0,[3312],(()=>__webpack_require__(32390))),__webpack_require__.O(void 0,[3312],(()=>__webpack_require__(75523))),__webpack_require__.O(void 0,[3312],(()=>__webpack_require__(71674))),__webpack_require__.O(void 0,[3312],(()=>__webpack_require__(37460))),__webpack_require__.O(void 0,[3312],(()=>__webpack_require__(25587))),__webpack_require__.O(void 0,[3312],(()=>__webpack_require__(56143))),__webpack_require__.O(void 0,[3312],(()=>__webpack_require__(67738))),__webpack_require__.O(void 0,[3312],(()=>__webpack_require__(28972))),__webpack_require__.O(void 0,[3312],(()=>__webpack_require__(92188)));var __webpack_exports__=__webpack_require__.O(void 0,[3312],(()=>__webpack_require__(18413)));return __webpack_exports__=__webpack_require__.O(__webpack_exports__),__webpack_exports__=__webpack_exports__.default,__webpack_exports__})()));